react-frontend-common-components 0.0.92 → 0.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/app-avatar/app-avatar.d.ts +8 -0
- package/dist/components/app-back-arrow/app-back-arrow.d.ts +12 -0
- package/dist/components/app-badge/app-badge.d.ts +15 -0
- package/dist/components/app-bread-crumb/app-bread-crumb.d.ts +6 -0
- package/dist/components/app-button/app-button.d.ts +16 -0
- package/dist/components/app-card/app-card.d.ts +14 -0
- package/dist/components/app-carousel/app-carousel.d.ts +15 -0
- package/dist/components/app-chart/app-chart.d.ts +13 -0
- package/dist/components/app-checkbox-text/app-checkbox-text.d.ts +10 -0
- package/dist/components/app-collapse/app-collapse.d.ts +13 -0
- package/dist/components/app-custom-loader/app-custom-loader.d.ts +6 -0
- package/dist/components/app-divider/app-divider.d.ts +6 -0
- package/dist/components/app-float-button/app-float-button.d.ts +9 -0
- package/dist/components/app-image-box/app-image-box.d.ts +15 -0
- package/dist/components/app-input/app-input.d.ts +26 -0
- package/dist/components/app-label/app-label.d.ts +10 -0
- package/dist/components/app-list/app-list.d.ts +8 -0
- package/dist/components/app-loader/app-loader.d.ts +10 -0
- package/dist/components/app-location-map/app-location-map.d.ts +16 -0
- package/dist/components/app-modal/app-modal.d.ts +16 -0
- package/dist/components/app-otp-field/app-otp-field.d.ts +16 -0
- package/dist/components/app-pagination/app-pagination.d.ts +12 -0
- package/dist/components/app-password-input/app-password-input.d.ts +25 -0
- package/dist/components/app-phone-input/app-phone-input.d.ts +11 -0
- package/dist/components/app-popover/app-popover.d.ts +13 -0
- package/dist/components/app-progress/app-progress.d.ts +12 -0
- package/dist/components/app-radio-group/app-radio-group.d.ts +13 -0
- package/dist/components/app-select/app-select.d.ts +25 -0
- package/dist/components/app-select-add/app-select-add.d.ts +10 -0
- package/dist/components/app-sidebar/app-sidebar.d.ts +23 -0
- package/dist/components/app-tab/app-tab.d.ts +11 -0
- package/dist/components/app-table/app-table.d.ts +14 -0
- package/dist/components/app-tag/app-tag.d.ts +13 -0
- package/dist/components/app-textarea/app-textarea.d.ts +23 -0
- package/dist/components/app-title/app-title.d.ts +10 -0
- package/dist/components/app-toggle-button/app-toggle-button.d.ts +10 -0
- package/dist/components/app-upload-image/app-upload-image.d.ts +18 -0
- package/dist/components/over-view-card/over-view-card.d.ts +8 -0
- package/dist/index.d.ts +449 -0
- package/dist/index.js +8 -22
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +64 -0
- package/dist/index.mjs.map +1 -0
- package/dist/themes/icons/icons.d.ts +10 -0
- package/package.json +6 -6
- package/rollup.config.js +5 -1
package/dist/index.mjs
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
import*as e from"react";import t,{version as n,isValidElement as o,useContext as r,createContext as i,useRef as a,useLayoutEffect as s,useEffect as l,forwardRef as c,useState as u,useMemo as d,Children as p,createRef as f,useCallback as h,useImperativeHandle as g,cloneElement as m,memo as v,PureComponent as b}from"react";import*as y from"react-dom";import x,{createPortal as C,unstable_batchedUpdates as w,flushSync as S}from"react-dom";var k=function(){return k=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},k.apply(this,arguments)};function E(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var $,N={exports:{}},M={};var I,P={};
|
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?N.exports=function(){if($)return M;$=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,o){var s,l={},c=null,u=null;for(s in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:i.current}}return M.Fragment=o,M.jsx=s,M.jsxs=s,M}():N.exports=(I||(I=1,"production"!==process.env.NODE_ENV&&function(){var e,n=t,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m=Symbol.iterator,v=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=v.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var r=n.map((function(e){return String(e)}));r.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,r)}("error",e,n)}function y(e){return e.displayName||"Context"}function x(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case r:return"Portal";case s:return"Profiler";case a:return"StrictMode";case d:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return y(e)+".Consumer";case l:return y(e._context)+".Provider";case u:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:x(e.type)||"Memo";case h:var n=e,o=n._payload,g=n._init;try{return x(g(o))}catch(e){return null}}return null}e=Symbol.for("react.module.reference");var C,w,S,k,E,O,$,N=Object.assign,M=0;function I(){}I.__reactDisabledLog=!0;var L,j=v.ReactCurrentDispatcher;function D(e,t,n){if(void 0===L)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+e}var A,T=!1,R="function"==typeof WeakMap?WeakMap:Map;function _(e,t){if(!e||T)return"";var n,o=A.get(e);if(void 0!==o)return o;T=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=j.current,j.current=null,function(){if(0===M){C=console.log,w=console.info,S=console.warn,k=console.error,E=console.group,O=console.groupCollapsed,$=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&A.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{T=!1,j.current=r,function(){if(0==--M){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:C}),info:N({},e,{value:w}),warn:N({},e,{value:S}),error:N({},e,{value:k}),group:N({},e,{value:E}),groupCollapsed:N({},e,{value:O}),groupEnd:N({},e,{value:$})})}M<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?D(p):"";return"function"==typeof e&&A.set(e,f),f}function z(e,t,n){if(null==e)return"";if("function"==typeof e)return _(e,!(!(o=e.prototype)||!o.isReactComponent));var o;if("string"==typeof e)return D(e);switch(e){case d:return D("Suspense");case p:return D("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return _(e.render,!1);case f:return z(e.type,t,n);case h:var r=e,i=r._payload,a=r._init;try{return z(a(i),t,n)}catch(e){}}return""}A=new R;var B=Object.prototype.hasOwnProperty,H={},F=v.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,n=z(e.type,e._source,t?t.type:null);F.setExtraStackFrame(n)}else F.setExtraStackFrame(null)}var V=Array.isArray;function K(e){return V(e)}function q(e){return""+e}function X(e){if(function(e){try{return q(e),!1}catch(e){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),q(e)}var U,G,Y,Q=v.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};function J(e,t,n,r,i){var a,s={},l=null,c=null;for(a in void 0!==n&&(X(n),l=""+n),function(e){if(B.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(X(t.key),l=""+t.key),function(e){if(B.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&&Q.current&&t&&Q.current.stateNode!==t){var n=x(Q.current.type);Y[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',x(Q.current.type),e.ref),Y[n]=!0)}}(t,i)),t)B.call(t,a)&&!Z.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===s[a]&&(s[a]=u[a])}if(l||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){U||(U=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(s,d),c&&function(e,t){var n=function(){G||(G=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(s,d)}return function(e,t,n,r,i,a,s){var l={$$typeof:o,type:e,key:t,ref:n,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,i,r,Q.current,s)}Y={};var ee,te=v.ReactCurrentOwner,ne=v.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=z(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}function ie(){if(te.current){var e=x(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var ae={};function se(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();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(!ae[n]){ae[n]=!0;var o="";e&&e._owner&&e._owner!==te.current&&(o=" It was passed a child from "+x(e._owner.type)+"."),oe(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),oe(null)}}}function le(e,t){if("object"==typeof e)if(K(e))for(var n=0;n<e.length;n++){var o=e[n];re(o)&&se(o,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,a=r.call(e);!(i=a.next()).done;)re(i.value)&&se(i.value,t)}}function ce(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!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var o=x(n);!function(e,t,n,o,r){var i=Function.call.bind(B);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((o||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(W(r),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",n,a,typeof s),W(null)),s instanceof Error&&!(s.message in H)&&(H[s.message]=!0,W(r),b("Failed %s type: %s",n,s.message),W(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||ee||(ee=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ue={};function de(t,n,r,m,v,y){var C=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===s||t===a||t===d||t===p||t===g||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===l||t.$$typeof===c||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)}(t);if(!C){var w,S="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),S+=ie(),null===t?w="null":K(t)?w="array":void 0!==t&&t.$$typeof===o?(w="<"+(x(t.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):w=typeof t,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,S)}var k=J(t,n,r,v,y);if(null==k)return k;if(C){var E=n.children;if(void 0!==E)if(m)if(K(E)){for(var O=0;O<E.length;O++)le(E[O],t);Object.freeze&&Object.freeze(E)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,t)}if(B.call(n,"key")){var $=x(t),N=Object.keys(n).filter((function(e){return"key"!==e})),M=N.length>0?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}";ue[$+M]||(b('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',M,$,N.length>0?"{"+N.join(": ..., ")+": ...}":"{}",$),ue[$+M]=!0)}return t===i?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){oe(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),oe(null);break}}null!==e.ref&&(oe(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}(k):ce(k),k}var pe=function(e,t,n){return de(e,t,n,!1)},fe=function(e,t,n){return de(e,t,n,!0)};P.Fragment=i,P.jsx=pe,P.jsxs=fe}()),P);var L=N.exports,j={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=r(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var i in e)t.call(e,i)&&e[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(j);var D=O(j.exports);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},A.apply(null,arguments)}function T(e){return T="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},T(e)}var R=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),z=Symbol.for("react.fragment");function B(e){return e&&"object"===T(e)&&(e.$$typeof===R||e.$$typeof===_)&&e.type===z}function H(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?o=o.concat(H(e)):B(e)&&e.props?o=o.concat(H(e.props.children,n)):o.push(e))})),o}var F={},W=[];function V(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=W.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function K(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=W.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function q(){F={}}function X(e,t,n){t||F[n]||(e(!1,n),F[n]=!0)}function U(e,t){X(V,e,t)}function G(e,t){X(K,e,t)}function Y(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T(t)?t:t+""}function Q(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ee(e){return e instanceof HTMLElement||e instanceof SVGElement}function te(e){return e&&"object"===T(e)&&ee(e.nativeElement)?e.nativeElement:ee(e)?e:null}function ne(e){var n,o=te(e);return o||(e instanceof t.Component?null===(n=x.findDOMNode)||void 0===n?void 0:n.call(x,e):null)}U.preMessage=function(e){W.push(e)},U.resetWarned=q,U.noteOnce=G;var oe,re={exports:{}},ie={};var ae,se={};
|
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?re.exports=function(){if(oe)return ie;oe=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case o:case i:case r:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),ie.ContextConsumer=s,ie.ContextProvider=a,ie.Element=t,ie.ForwardRef=c,ie.Fragment=o,ie.Lazy=f,ie.Memo=p,ie.Portal=n,ie.Profiler=i,ie.StrictMode=r,ie.Suspense=u,ie.SuspenseList=d,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(e){return g(e)===s},ie.isContextProvider=function(e){return g(e)===a},ie.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ie.isForwardRef=function(e){return g(e)===c},ie.isFragment=function(e){return g(e)===o},ie.isLazy=function(e){return g(e)===f},ie.isMemo=function(e){return g(e)===p},ie.isPortal=function(e){return g(e)===n},ie.isProfiler=function(e){return g(e)===i},ie.isStrictMode=function(e){return g(e)===r},ie.isSuspense=function(e){return g(e)===u},ie.isSuspenseList=function(e){return g(e)===d},ie.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},ie.typeOf=g,ie}():re.exports=(ae||(ae=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case o:case i:case r:case u:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case s:case c:case f:case p:case a:return m;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var m=s,v=a,b=t,y=c,x=o,C=f,w=p,S=n,k=i,E=r,O=u,$=d,N=!1,M=!1;se.ContextConsumer=m,se.ContextProvider=v,se.Element=b,se.ForwardRef=y,se.Fragment=x,se.Lazy=C,se.Memo=w,se.Portal=S,se.Profiler=k,se.StrictMode=E,se.Suspense=O,se.SuspenseList=$,se.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},se.isConcurrentMode=function(e){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},se.isContextConsumer=function(e){return g(e)===s},se.isContextProvider=function(e){return g(e)===a},se.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},se.isForwardRef=function(e){return g(e)===c},se.isFragment=function(e){return g(e)===o},se.isLazy=function(e){return g(e)===f},se.isMemo=function(e){return g(e)===p},se.isPortal=function(e){return g(e)===n},se.isProfiler=function(e){return g(e)===i},se.isStrictMode=function(e){return g(e)===r},se.isSuspense=function(e){return g(e)===u},se.isSuspenseList=function(e){return g(e)===d},se.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},se.typeOf=g}()),se);var le=re.exports;function ce(t,n,o){var r=e.useRef({});return"value"in r.current&&!o(r.current.condition,n)||(r.current.value=t(),r.current.condition=n),r.current.value}var ue=Number(n.split(".")[0]),de=function(e,t){"function"==typeof e?e(t):"object"===T(e)&&e&&"current"in e&&(e.current=t)},pe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){de(t,e)}))}},fe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ce((function(){return pe.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},he=function(e){var t,n;if(!e)return!1;if(ge(e)&&ue>=19)return!0;var o=le.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===le.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===le.ForwardRef)};function ge(e){return o(e)&&!B(e)}var me=function(e){if(e&&ge(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},ve=e.createContext(null);var be=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),ye="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,xe="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ce="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(xe):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var we=["top","right","bottom","left","width","height","size","weight"],Se="undefined"!=typeof MutationObserver,ke=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){Ce(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ye&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Se?(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(){ye&&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;we.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}(),Ee=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Oe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||xe},$e=je(0,0,0,0);function Ne(e){return parseFloat(e)||0}function Me(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ne(e["border-"+n+"-width"])}),0)}function Ie(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return $e;var o=Oe(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Ne(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=Ne(o.width),l=Ne(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=Me(o,"left","right")+i),Math.round(l+a)!==n&&(l-=Me(o,"top","bottom")+a)),!function(e){return e===Oe(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return je(r.left,r.top,s,l)}var Pe="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Oe(e).SVGGraphicsElement}:function(e){return e instanceof Oe(e).SVGElement&&"function"==typeof e.getBBox};function Le(e){return ye?Pe(e)?function(e){var t=e.getBBox();return je(0,0,t.width,t.height)}(e):Ie(e):$e}function je(e,t,n,o){return{x:e,y:t,width:n,height:o}}var De=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=je(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Le(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}(),Ae=function(e,t){var n,o,r,i,a,s,l,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),Ee(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);Ee(this,{target:e,contentRect:c})},Te=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new be,"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 Oe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new De(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 Oe(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 Ae(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}(),Re="undefined"!=typeof WeakMap?new WeakMap:new be,_e=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ke.getInstance(),o=new Te(t,n,this);Re.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){_e.prototype[e]=function(){var t;return(t=Re.get(this))[e].apply(t,arguments)}}));var ze=void 0!==xe.ResizeObserver?xe.ResizeObserver:_e,Be=new Map;function He(e){e.forEach((function(e){var t,n=e.target;null===(t=Be.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var Fe=new ze(He);function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Y(o.key),o)}}function Ke(e,t,n){return t&&Ve(e.prototype,t),n&&Ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e,t){return qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qe(e,t)}function Xe(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&&qe(e,t)}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}function Ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ge=function(){return!!e})()}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qe(e,t){if(t&&("object"==T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ye(e)}function Ze(e){var t=Ge();return function(){var n,o=Ue(e);if(t){var r=Ue(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Qe(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Je=function(){Xe(n,e.Component);var t=Ze(n);function n(){return We(this,n),t.apply(this,arguments)}return Ke(n,[{key:"render",value:function(){return this.props.children}}]),n}();function et(t,n){var o=t.children,r=t.disabled,i=e.useRef(null),a=e.useRef(null),s=e.useContext(ve),l="function"==typeof o,c=l?o(i):o,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&e.isValidElement(c)&&he(c),p=d?me(c):null,f=fe(p,i),h=function(){var e;return ne(i.current)||(i.current&&"object"===T(i.current)?ne(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||ne(a.current)};e.useImperativeHandle(n,(function(){return h()}));var g=e.useRef(t);g.current=t;var m=e.useCallback((function(e){var t=g.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,a=r.height,l=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),p=Math.floor(a);if(u.current.width!==d||u.current.height!==p||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var f={width:d,height:p,offsetWidth:l,offsetHeight:c};u.current=f;var h=l===Math.round(i)?i:l,m=c===Math.round(a)?a:c,v=J(J({},f),{},{offsetWidth:h,offsetHeight:m});null==s||s(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return e.useEffect((function(){var e=h();return e&&!r&&function(e,t){Be.has(e)||(Be.set(e,new Set),Fe.observe(e)),Be.get(e).add(t)}(e,m),function(){return function(e,t){Be.has(e)&&(Be.get(e).delete(t),Be.get(e).size||(Fe.unobserve(e),Be.delete(e)))}(e,m)}}),[i.current,r]),e.createElement(Je,{ref:a},d?e.cloneElement(c,{ref:f}):c)}var tt=e.forwardRef(et);"production"!==process.env.NODE_ENV&&(tt.displayName="SingleObserver");function nt(t,n){var o=t.children,r="function"==typeof o?[o]:H(o);return"production"!==process.env.NODE_ENV&&(r.length>1?V(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===r.length&&V(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map((function(o,r){var i=(null==o?void 0:o.key)||"".concat("rc-observer-key","-").concat(r);return e.createElement(tt,A({},t,{key:i,ref:0===r?n:void 0}),o)}))}var ot=e.forwardRef(nt);function rt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function at(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function st(e,t){if(e){if("string"==typeof e)return it(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)?it(e,t):void 0}}function lt(e){return function(e){if(Array.isArray(e))return it(e)}(e)||at(e)||st(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&&(ot.displayName="ResizeObserver"),ot.Collection=function(t){var n=t.children,o=t.onBatchResize,r=e.useRef(0),i=e.useRef([]),a=e.useContext(ve),s=e.useCallback((function(e,t,n){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){s===r.current&&(null==o||o(i.current),i.current=[])})),null==a||a(e,t,n)}),[o,a]);return e.createElement(ve.Provider,{value:s},n)};var ct=function(e){return+setTimeout(e,16)},ut=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ct=function(e){return window.requestAnimationFrame(e)},ut=function(e){return window.cancelAnimationFrame(e)});var dt=0,pt=new Map;function ft(e){pt.delete(e)}var ht=function(e){var t=dt+=1;return function n(o){if(0===o)ft(t),e();else{var r=ct((function(){n(o-1)}));pt.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function gt(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t=ht((n=>()=>{t=null,e.apply(void 0,lt(n))})(o))}};return n.cancel=()=>{ht.cancel(t),t=null},n}function mt(e){if(Array.isArray(e))return e}function vt(){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 bt(e,t){return mt(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||st(e,t)||vt()}function yt(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function xt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ct(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}ht.cancel=function(e){var t=pt.get(e);return ft(e),ut(t)},"production"!==process.env.NODE_ENV&&(ht.ids=function(){return pt});var wt="data-rc-order",St="data-rc-priority",kt=new Map;function Et(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function Ot(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function $t(e){return Array.from((kt.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!xt())return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(wt,a),s&&i&&l.setAttribute(St,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=Ot(t),u=c.firstChild;if(o){if(s){var d=(t.styles||$t(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(wt)))return!1;var t=Number(e.getAttribute(St)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ot(t);return(t.styles||$t(n)).find((function(n){return n.getAttribute(Et(t))===e}))}function It(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Mt(e,t);n&&Ot(t).removeChild(n)}function Pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Ot(n),r=$t(o),i=J(J({},n),{},{styles:r});!function(e,t){var n=kt.get(e);if(!n||!Ct(document,n)){var o=Nt("",t),r=o.parentNode;kt.set(e,r),e.removeChild(o)}}(o,i);var a=Mt(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Nt(e,i);return u.setAttribute(Et(i),t),u}function Lt(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if(U(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],r[l],s))return!1;return!0}if(t&&r&&"object"===T(t)&&"object"===T(r)){var c=Object.keys(t);return c.length===Object.keys(r).length&&c.every((function(n){return e(t[n],r[n],s)}))}return!1}(e,t)}function Dt(e){return e.join("%")}var At=function(){function e(t){We(this,e),Q(this,"instanceId",void 0),Q(this,"cache",new Map),this.instanceId=t}return Ke(e,[{key:"get",value:function(e){return this.opGet(Dt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Dt(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}(),Tt="data-token-hash",Rt="data-css-hash",_t="__cssinjs_instance__";var zt=e.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Rt,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[_t]=t[_t]||e,t[_t]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(Rt,"]"))).forEach((function(t){var n,r=t.getAttribute(Rt);o[r]?t[_t]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new At(e)}(),defaultCache:!0});var Bt=function(){function e(){We(this,e),Q(this,"cache",void 0),Q(this,"keys",void 0),Q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ke(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r?r=null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):r=void 0})),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=bt(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=bt(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Q(Bt,"MAX_CACHE_SIZE",20),Q(Bt,"MAX_CACHE_OFFSET",5);var Ht=0,Ft=function(){function e(t){We(this,e),Q(this,"derivatives",void 0),Q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ht,0===t.length&&V(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ht+=1}return Ke(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Wt=new Bt;function Vt(e){var t=Array.isArray(e)?e:[e];return Wt.has(t)||Wt.set(t,new Ft(t)),Wt.get(t)}var Kt=new WeakMap,qt={};var Xt=new WeakMap;function Ut(e){var t=Xt.get(e)||"";return t||(Object.keys(e).forEach((function(n){var o=e[n];t+=n,o instanceof Ft?t+=o.id:o&&"object"===T(o)?t+=Ut(o):t+=o})),t=yt(t),Xt.set(e,t)),t}function Gt(e,t){return yt("".concat(t,"_").concat(Ut(e)))}var Yt=xt();function Qt(e){return"number"==typeof e?"".concat(e,"px"):e}function Zt(e,t,n){var o;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]:{}),{},(Q(o={},Tt,t),Q(o,Rt,n),o)),i=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(i,">").concat(e,"</style>")}var Jt=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()},en=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=bt(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},tn=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=bt(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])r[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=Jt(s,null==n?void 0:n.prefix);o[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),r[s]="var(".concat(u,")")}})),[r,en(o,t,{scope:null==n?void 0:n.scope})]},nn="test"!==process.env.NODE_ENV&&xt()?e.useLayoutEffect:e.useEffect,on=function(t,n){var o=e.useRef(!0);nn((function(){return t(o.current)}),n),nn((function(){return o.current=!1,function(){o.current=!0}}),[])},rn=function(e,t){on((function(t){if(!t)return e()}),t)},an=J({},e).useInsertionEffect,sn=an?function(e,t,n){return an((function(){return e(),t()}),n)}:function(t,n,o){e.useMemo(t,o),on((function(){return n(!0)}),o)},ln=void 0!==J({},e).useInsertionEffect?function(t){var n=[],o=!1;return e.useEffect((function(){return o=!1,function(){o=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){o?"production"!==process.env.NODE_ENV&&V(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):n.push(e)}}:function(){return function(e){e()}};var cn=!1;var un="production"===process.env.NODE_ENV?function(){return!1}:function(){return cn};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var dn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(dn&&"function"==typeof dn.webpackHotUpdate){var pn=dn.webpackHotUpdate;dn.webpackHotUpdate=function(){return cn=!0,setTimeout((function(){cn=!1}),0),pn.apply(void 0,arguments)}}}function fn(t,n,o,r,i){var a=e.useContext(zt).cache,s=Dt([t].concat(lt(n))),l=ln([s]),c=un(),u=function(e){a.opUpdate(s,(function(t){var n=bt(t||[void 0,void 0],2),i=n[0],a=void 0===i?0:i,s=n[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==r||r(l,c),l=null);var u=[a,l||o()];return e?e(u):u}))};e.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var p=d[1];return sn((function(){null==i||i(p)}),(function(e){return u((function(t){var n=bt(t,2),o=n[0],r=n[1];return e&&0===o&&(null==i||i(p)),[o+1,r]})),function(){a.opUpdate(s,(function(t){var n=bt(t||[],2),o=n[0],i=void 0===o?0:o,c=n[1];return 0===i-1?(l((function(){!e&&a.opGet(s)||null==r||r(c,!1)})),null):[i-1,c]}))}}),[s]),p}var hn={},gn="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",mn=new Map;function vn(e,t){mn.set(e,(mn.get(e)||0)-1);var n=Array.from(mn.keys()),o=n.filter((function(e){return(mn.get(e)||0)<=0}));n.length-o.length>0&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Tt,'="').concat(e,'"]')).forEach((function(e){var n;e[_t]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),mn.delete(e)}))}var bn="token";function yn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r(zt),i=o.cache.instanceId,a=o.container,s=n.salt,l=void 0===s?"":s,c=n.override,u=void 0===c?hn:c,d=n.formatToken,p=n.getComputedToken,f=n.cssVar,h=function(e,t){for(var n=Kt,o=0;o<t.length;o+=1){var r=t[o];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(qt)||n.set(qt,e()),n.get(qt)}((function(){return Object.assign.apply(Object,[{}].concat(lt(t)))}),t),g=Ut(h),m=Ut(u),v=f?Ut(f):"",b=fn(bn,[l,e.id,g,m,v],(function(){var t,n=p?p(h,u,e):function(e,t,n,o){var r=J(J({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r}(h,u,e,d),o=J({},n),r="";if(f){var i=bt(tn(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],r=i[1]}var a=Gt(n,l);n._tokenKey=a,o._tokenKey=Gt(o,l);var s=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=s,function(e){mn.set(e,(mn.get(e)||0)+1)}(s);var c="".concat(gn,"-").concat(yt(a));return n._hashId=c,[n,c,o,r,(null==f?void 0:f.key)||""]}),(function(e){vn(e[0]._themeKey,i)}),(function(e){var t=bt(e,4),n=t[0],o=t[3];if(f&&o){var r=Pt(o,yt("css-variables-".concat(n._themeKey)),{mark:Rt,prepend:"queue",attachTo:a,priority:-999});r[_t]=i,r.setAttribute(Tt,n._themeKey)}}));return b}var xn={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},Cn="comm",wn="rule",Sn="decl",kn=Math.abs,En=String.fromCharCode;function On(e){return e.trim()}function $n(e,t,n){return e.replace(t,n)}function Nn(e,t,n){return e.indexOf(t,n)}function Mn(e,t){return 0|e.charCodeAt(t)}function In(e,t,n){return e.slice(t,n)}function Pn(e){return e.length}function Ln(e,t){return t.push(e),e}var jn=1,Dn=1,An=0,Tn=0,Rn=0,_n="";function zn(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:jn,column:Dn,length:a,return:"",siblings:s}}function Bn(){return Rn=Tn>0?Mn(_n,--Tn):0,Dn--,10===Rn&&(Dn=1,jn--),Rn}function Hn(){return Rn=Tn<An?Mn(_n,Tn++):0,Dn++,10===Rn&&(Dn=1,jn++),Rn}function Fn(){return Mn(_n,Tn)}function Wn(){return Tn}function Vn(e,t){return In(_n,e,t)}function Kn(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 qn(e){return On(Vn(Tn-1,Gn(91===e?e+2:40===e?e+1:e)))}function Xn(e){for(;(Rn=Fn())&&Rn<33;)Hn();return Kn(e)>2||Kn(Rn)>3?"":" "}function Un(e,t){for(;--t&&Hn()&&!(Rn<48||Rn>102||Rn>57&&Rn<65||Rn>70&&Rn<97););return Vn(e,Wn()+(t<6&&32==Fn()&&32==Hn()))}function Gn(e){for(;Hn();)switch(Rn){case e:return Tn;case 34:case 39:34!==e&&39!==e&&Gn(Rn);break;case 40:41===e&&Gn(e);break;case 92:Hn()}return Tn}function Yn(e,t){for(;Hn()&&e+Rn!==57&&(e+Rn!==84||47!==Fn()););return"/*"+Vn(t,Tn-1)+"*"+En(47===e?e:Hn())}function Qn(e){for(;!Kn(Fn());)Hn();return Vn(e,Tn)}function Zn(e){return function(e){return _n="",e}(Jn("",null,null,null,[""],e=function(e){return jn=Dn=1,An=Pn(_n=e),Tn=0,[]}(e),0,[0],e))}function Jn(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,v=1,b=0,y="",x=r,C=i,w=o,S=y;m;)switch(h=b,b=Hn()){case 40:if(108!=h&&58==Mn(S,d-1)){-1!=Nn(S+=$n(qn(b),"&","&\f"),"&\f",kn(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=qn(b);break;case 9:case 10:case 13:case 32:S+=Xn(h);break;case 92:S+=Un(Wn()-1,7);continue;case 47:switch(Fn()){case 42:case 47:Ln(to(Yn(Hn(),Wn()),t,n,l),l),5!=Kn(h||1)&&5!=Kn(Fn()||1)||!Pn(S)||" "===In(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:s[c++]=Pn(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(S=$n(S,/\f/g,"")),f>0&&(Pn(S)-d||0===g&&47===h)&&Ln(f>32?no(S+";",o,n,d-1,l):no($n(S," ","")+";",o,n,d-2,l),l);break;case 59:S+=";";default:if(Ln(w=eo(S,t,n,c,u,r,s,y,x=[],C=[],d,i),i),123===b)if(0===u)Jn(S,t,w,w,x,i,d,s,C);else{switch(p){case 99:if(110===Mn(S,3))break;case 108:if(97===Mn(S,2))break;default:u=0;case 100:case 109:case 115:}u?Jn(e,w,w,o&&Ln(eo(e,w,w,0,0,r,s,y,r,x=[],d,C),C),r,C,d,s,o?x:C):Jn(S,w,w,w,[""],C,0,s,C)}}c=u=f=0,g=v=1,y=S="",d=a;break;case 58:d=1+Pn(S),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Bn())continue;switch(S+=En(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Pn(S)-1)*v,v=1;break;case 64:45===Fn()&&(S+=qn(Hn())),p=Fn(),u=d=Pn(y=S+=Qn(Wn())),b++;break;case 45:45===h&&2==Pn(S)&&(g=0)}}return i}function eo(e,t,n,o,r,i,a,s,l,c,u,d){for(var p=r-1,f=0===r?i:[""],h=function(e){return e.length}(f),g=0,m=0,v=0;g<o;++g)for(var b=0,y=In(e,p+1,p=kn(m=a[g])),x=e;b<h;++b)(x=On(m>0?f[b]+" "+y:$n(y,/&\f/g,f[b])))&&(l[v++]=x);return zn(e,t,n,0===r?wn:s,l,c,u,d)}function to(e,t,n,o){return zn(e,t,n,Cn,En(Rn),In(e,2,-2),0,o)}function no(e,t,n,o,r){return zn(e,t,n,Sn,In(e,0,o),In(e,o+1,-1),o,r)}function oo(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function ro(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Sn:return e.return=e.return||e.value;case Cn:return"";case"@keyframes":return e.return=e.value+"{"+oo(e.children,o)+"}";case wn:if(!Pn(e.value=e.props.join(",")))return""}return Pn(n=oo(e.children,o))?e.return=e.value+"{"+n+"}":""}function io(e,t){var n=t.path,o=t.parentSelectors;U(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var ao,so=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)))&&io("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},lo=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&io("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},co="data-ant-cssinjs-cache-path",uo="_FILE_STYLE__",po=!0;function fo(e){return function(){if(!ao&&(ao={},xt())){var e=document.createElement("div");e.className=co,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=bt(e.split(":"),2),n=t[0],o=t[1];ao[n]=o}));var n,o=document.querySelector("style[".concat(co,"]"));o&&(po=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!ao[e]}var ho="_skip_check_",go="_multi_value_";function mo(e){return oo(Zn(e),ro).replace(/\{%%%\:[^;];}/g,";")}function vo(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(lt(n.slice(1))).join(" ")})).join(",")}var bo=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,p=void 0===d?[]:d,f=n.linters,h=void 0===f?[]:f,g="",m={};function v(t){var o=t.getName(s);if(!m[o]){var r=bt(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];m[o]="@keyframes ".concat(t.getName(s)).concat(r)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var o="string"!=typeof t||r?t:{};if("string"==typeof o)g+="".concat(o,"\n");else if(o._keyframe)v(o);else{var l=p.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(l).forEach((function(t){var o=l[t];if("object"!==T(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===T(e)&&e&&(ho in e||go in e)}(o)){var d;function S(e,t){"production"===process.env.NODE_ENV||"object"===T(o)&&null!=o&&o[ho]||[so,lo].concat(lt(h)).forEach((function(n){return n(e,t,{path:c,hashId:s,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;xn[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(s)),g+="".concat(n,":").concat(r,";")}var p=null!==(d=null==o?void 0:o.value)&&void 0!==d?d:o;"object"===T(o)&&null!=o&&o[go]&&Array.isArray(p)?p.forEach((function(e){S(t,e)})):S(t,p)}else{var f=!1,b=t.trim(),y=!1;(r||i)&&s?b.startsWith("@")?f=!0:b=vo("&"===b?"":t,s,u):!r||s||"&"!==b&&""!==b||(b="",y=!0);var x=bt(e(o,n,{root:y,injectHash:f,parentSelectors:[].concat(lt(a),[b])}),2),C=x[0],w=x[1];m=J(J({},m),w),g+="".concat(b).concat(C)}}))}})),r?l&&(g&&(g="@layer ".concat(l.name," {").concat(g,"}")),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,m]};function yo(e,t){return yt("".concat(e.join("%")).concat(t))}function xo(){return null}var Co="style";function wo(t,n){var o=t.token,r=t.path,i=t.hashId,a=t.layer,s=t.nonce,l=t.clientOnly,c=t.order,u=void 0===c?0:c,d=e.useContext(zt),p=d.autoClear,f=d.mock,h=d.defaultCache,g=d.hashPriority,m=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,x=d.cache,C=d.layer,w=o._tokenKey,S=[w];C&&S.push("layer"),S.push.apply(S,lt(r));var k=Yt;"production"!==process.env.NODE_ENV&&void 0!==f&&(k="client"===f);var E=fn(Co,S,(function(){var e=S.join("|");if(fo(e)){var t=function(e){var t=ao[e],n=null;if(t&&xt())if(po)n=uo;else{var o=document.querySelector("style[".concat(Rt,'="').concat(ao[e],'"]'));o?n=o.innerHTML:delete ao[e]}return[n,t]}(e),o=bt(t,2),s=o[0],c=o[1];if(s)return[s,w,c,{},l,u]}var d=n(),p=bt(bo(d,{hashId:i,hashPriority:g,layer:C?a:void 0,path:r.join("-"),transformers:b,linters:y}),2),f=p[0],h=p[1],m=mo(f),v=yo(S,m);return[m,w,v,h,l,u]}),(function(e,t){var n=bt(e,3)[2];(t||p)&&Yt&&It(n,{mark:Rt})}),(function(e){var t=bt(e,4),n=t[0];t[1];var o=t[2],r=t[3];if(k&&n!==uo){var i={mark:Rt,prepend:!C&&"queue",attachTo:m,priority:u},a="function"==typeof s?s():s;a&&(i.csp={nonce:a});var l=[],c=[];Object.keys(r).forEach((function(e){e.startsWith("@layer")?l.push(e):c.push(e)})),l.forEach((function(e){Pt(mo(r[e]),"_layer-".concat(e),J(J({},i),{},{prepend:!0}))}));var d=Pt(n,o,i);d[_t]=x.instanceId,d.setAttribute(Tt,w),"production"!==process.env.NODE_ENV&&d.setAttribute("data-cache-path",S.join("|")),c.forEach((function(e){Pt(mo(r[e]),"_effect-".concat(e),i)}))}})),O=bt(E,3),$=O[0],N=O[1],M=O[2];return function(t){var n,o;v&&!k&&h?n=e.createElement("style",A({},(Q(o={},Tt,N),Q(o,Rt,M),o),{dangerouslySetInnerHTML:{__html:$}})):n=e.createElement(xo,null);return e.createElement(e.Fragment,null,n,t)}}var So,ko="cssVar";Q(So={},Co,(function(e,t,n){var o=bt(e,6),r=o[0],i=o[1],a=o[2],s=o[3],l=o[4],c=o[5],u=(n||{}).plain;if(l)return null;var d=r,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Zt(r,i,a,p,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Zt(mo(s[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Q(So,bn,(function(e,t,n){var o=bt(e,5),r=o[2],i=o[3],a=o[4],s=(n||{}).plain;if(!i)return null;var l=r._tokenKey;return[-999,l,Zt(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Q(So,ko,(function(e,t,n){var o=bt(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;if(!r)return null;return[-999,i,Zt(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var Eo=function(){function e(t,n){We(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=n}return Ke(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 Oo(e){return e.notSplit=!0,e}Oo(["borderTop","borderBottom"]),Oo(["borderTop"]),Oo(["borderBottom"]),Oo(["borderLeft","borderRight"]),Oo(["borderLeft"]),Oo(["borderRight"]);var $o=i({});function No(e){return mt(e)||at(e)||st(e)||vt()}function Mo(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function Io(e,t,n,o){if(!t.length)return n;var r,i=No(t),a=i[0],s=i.slice(1);return r=e||"number"!=typeof a?Array.isArray(e)?lt(e):J({},e):[],o&&void 0===n&&1===s.length?delete r[a][s[0]]:r[a]=Io(r[a],s,n,o),r}function Po(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!Mo(e,t.slice(0,-1))?e:Io(e,t,n,o)}function Lo(e){return Array.isArray(e)?[]:{}}var jo="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Do(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Lo(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),s=Mo(e,n),l=Array.isArray(s);if(l||"object"===T(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=Mo(o,n);l?o=Po(o,n,[]):c&&"object"===T(c)||(o=Po(o,n,Lo(s))),jo(s).forEach((function(e){t([].concat(lt(n),[e]),a)}))}}else o=Po(o,n,s)}([])})),o}function Ao(){}let To=null;let Ro=Ao;"production"!==process.env.NODE_ENV&&(Ro=(e,t,n)=>{U(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(To=null,q())});const _o=e.createContext({}),zo="production"!==process.env.NODE_ENV?t=>{const{strict:n}=e.useContext(_o),o=(e,o,r)=>{if(!e)if(!1===n&&"deprecated"===o){const e=To;To||(To={}),To[t]=To[t]||[],To[t].includes(r||"")||To[t].push(r||""),e||console.warn("[antd] There exists deprecated usage in your code:",To)}else"production"!==process.env.NODE_ENV&&Ro(e,t,r)};return o.deprecated=(e,t,n,r)=>{o(e,"deprecated",`\`${t}\` is deprecated. Please use \`${n}\` instead.${r?` ${r}`:""}`)},o}:()=>{const e=()=>{};return e.deprecated=Ao,e};var Bo=Ro,Ho=i(void 0),Fo={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"},Wo=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 Vo={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ko={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"]},Wo),timePickerLocale:Object.assign({},Vo)},qo="${label} is not a valid ${type}",Xo={locale:"en",Pagination:Fo,DatePicker:Ko,TimePicker:Vo,Calendar:Ko,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:qo,method:qo,array:qo,object:qo,number:qo,date:qo,boolean:qo,integer:qo,float:qo,regexp:qo,email:qo,url:qo,hex:qo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Uo=Object.assign({},Xo.Modal),Go=[];const Yo=()=>Go.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Xo.Modal);function Qo(){return Uo}const Zo=i(void 0),Jo=(t,n)=>{const o=e.useContext(Zo),r=e.useMemo((()=>{var e;const r=n||Xo[t],i=null!==(e=null==o?void 0:o[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})}),[t,n,o]);return[r,e.useMemo((()=>{const e=null==o?void 0:o.locale;return(null==o?void 0:o.exist)&&!e?Xo.locale:e}),[o])]},er="internalMark",tr=t=>{const{locale:n={},children:o,_ANT_MARK__:r}=t;if("production"!==process.env.NODE_ENV){const e=zo("LocaleProvider");"production"!==process.env.NODE_ENV&&e(r===er,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Go.push(t),Uo=Yo(),()=>{Go=Go.filter((e=>e!==t)),Uo=Yo()}}Uo=Object.assign({},Xo.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(Zo.Provider,{value:i},o)};"production"!==process.env.NODE_ENV&&(tr.displayName="LocaleProvider");const nr=Math.round;function or(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const rr=(e,t,n)=>0===n?e:e/100;function ir(e,t){const n=t||255;return e>n?n:e<0?0:e}class ar{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Q(this,"isValid",!0),Q(this,"r",0),Q(this,"g",0),Q(this,"b",0),Q(this,"a",1),Q(this,"_h",void 0),Q(this,"_s",void 0),Q(this,"_l",void 0),Q(this,"_v",void 0),Q(this,"_max",void 0),Q(this,"_min",void 0),Q(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function o(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(e instanceof ar)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=ir(e.r),this.g=ir(e.g),this.b=ir(e.b),this.a="number"==typeof e.a?ir(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:nr(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],i={r:nr(r("r")),g:nr(r("g")),b:nr(r("b")),a:nr(100*r("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>nr((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=nr(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=nr(100*this.getSaturation()),n=nr(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=ir(t,n),o}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=nr(255*n);this.r=e,this.g=e,this.b=e}let r=0,i=0,a=0;const s=e/60,l=(1-Math.abs(2*n-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(r=l,i=c):s>=1&&s<2?(r=c,i=l):s>=2&&s<3?(i=l,a=c):s>=3&&s<4?(i=c,a=l):s>=4&&s<5?(r=c,a=l):s>=5&&s<6&&(r=l,a=c);const u=n-l/2;this.r=nr(255*(r+u)),this.g=nr(255*(i+u)),this.b=nr(255*(a+u))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=nr(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const i=e/60,a=Math.floor(i),s=i-a,l=nr(n*(1-t)*255),c=nr(n*(1-t*s)*255),u=nr(n*(1-t*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=or(e,rr);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=or(e,rr);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=or(e,((e,t)=>t.includes("%")?nr(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var sr=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function lr(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function cr(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(100*o)/100);var o}function ur(e,t,n){var o;return o=n?e.v+.05*t:e.v-.15*t,o=Math.max(0,Math.min(1,o)),Math.round(100*o)/100}function dr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=new ar(e),r=o.toHsv(),i=5;i>0;i-=1){var a=new ar({h:lr(r,i,!0),s:cr(r,i,!0),v:ur(r,i,!0)});n.push(a)}n.push(o);for(var s=1;s<=4;s+=1){var l=new ar({h:lr(r,s),s:cr(r,s),v:ur(r,s)});n.push(l)}return"dark"===t.theme?sr.map((function(e){var o=e.index,r=e.amount;return new ar(t.backgroundColor||"#141414").mix(n[o],r).toHexString()})):n.map((function(e){return e.toHexString()}))}var pr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},fr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];fr.primary=fr[5];var hr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];hr.primary=hr[5];var gr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];gr.primary=gr[5];var mr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];mr.primary=mr[5];var vr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];vr.primary=vr[5];var br=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];br.primary=br[5];var yr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];yr.primary=yr[5];var xr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];xr.primary=xr[5];var Cr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Cr.primary=Cr[5];var wr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];wr.primary=wr[5];var Sr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Sr.primary=Sr[5];var kr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];kr.primary=kr[5];var Er=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Er.primary=Er[5];var Or={red:fr,volcano:hr,orange:gr,gold:mr,yellow:vr,lime:br,green:yr,cyan:xr,blue:Cr,geekblue:wr,purple:Sr,magenta:kr,grey:Er};const $r={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"},Nr=Object.assign(Object.assign({},$r),{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});function Mr(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 Ir(e){return Math.min(1,Math.max(0,e))}function Pr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Lr(e){return e<=1?"".concat(100*Number(e),"%"):e}function jr(e){return 1===e.length?"0"+e:String(e)}function Dr(e,t,n){e=Mr(e,255),t=Mr(t,255),n=Mr(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,s=(o+r)/2;if(o===r)a=0,i=0;else{var l=o-r;switch(a=s>.5?l/(2-o-r):l/(o+r),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:s}}function Ar(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 Tr(e,t,n){e=Mr(e,255),t=Mr(t,255),n=Mr(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,s=o-r,l=0===o?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function Rr(e,t,n,o){var r=[jr(Math.round(e).toString(16)),jr(Math.round(t).toString(16)),jr(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function _r(e){return zr(e)/255}function zr(e){return parseInt(e,16)}var Br={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 Hr(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Br[e])e=Br[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Kr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Kr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Kr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Kr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Kr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Kr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Kr.hex8.exec(e),n)return{r:zr(n[1]),g:zr(n[2]),b:zr(n[3]),a:_r(n[4]),format:t?"name":"hex8"};if(n=Kr.hex6.exec(e),n)return{r:zr(n[1]),g:zr(n[2]),b:zr(n[3]),format:t?"name":"hex"};if(n=Kr.hex4.exec(e),n)return{r:zr(n[1]+n[1]),g:zr(n[2]+n[2]),b:zr(n[3]+n[3]),a:_r(n[4]+n[4]),format:t?"name":"hex8"};if(n=Kr.hex3.exec(e),n)return{r:zr(n[1]+n[1]),g:zr(n[2]+n[2]),b:zr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(qr(e.r)&&qr(e.g)&&qr(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Mr(t,255),g:255*Mr(n,255),b:255*Mr(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):qr(e.h)&&qr(e.s)&&qr(e.v)?(a=Lr(e.s),s=Lr(e.v),r=function(e,t,n){e=6*Mr(e,360),t=Mr(t,100),n=Mr(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=o%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):qr(e.h)&&qr(e.s)&&qr(e.l)&&(a=Lr(e.s),l=Lr(e.l),r=function(e,t,n){var o,r,i;if(e=Mr(e,360),t=Mr(t,100),n=Mr(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;o=Ar(s,a,e+1/3),r=Ar(s,a,e),i=Ar(s,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Pr(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var Fr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Wr="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),Vr="[\\s|\\(]+(".concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")[,|\\s]+(").concat(Fr,")\\s*\\)?"),Kr={CSS_UNIT:new RegExp(Fr),rgb:new RegExp("rgb"+Wr),rgba:new RegExp("rgba"+Vr),hsl:new RegExp("hsl"+Wr),hsla:new RegExp("hsla"+Vr),hsv:new RegExp("hsv"+Wr),hsva:new RegExp("hsva"+Vr),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 qr(e){return Boolean(Kr.CSS_UNIT.exec(String(e)))}var Xr=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=Hr(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Pr(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=Tr(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=Tr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Dr(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=Dr(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Rr(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i,a=[jr(Math.round(e).toString(16)),jr(Math.round(t).toString(16)),jr(Math.round(n).toString(16)),jr((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Mr(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*Mr(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Rr(this.r,this.g,this.b,!1),t=0,n=Object.entries(Br);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Ir(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=Ir(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=Ir(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=Ir(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:o,s:r,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ur(e){return(e+8)/e}const Gr=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Ur(e)})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),r=n[1],i=n[0],a=n[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*r),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};const Yr=(e,t)=>new Xr(e).setAlpha(t).toRgbString(),Qr=(e,t)=>new Xr(e).darken(t).toHexString(),Zr=e=>{const t=dr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Jr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Yr(o,.88),colorTextSecondary:Yr(o,.65),colorTextTertiary:Yr(o,.45),colorTextQuaternary:Yr(o,.25),colorFill:Yr(o,.15),colorFillSecondary:Yr(o,.06),colorFillTertiary:Yr(o,.04),colorFillQuaternary:Yr(o,.02),colorBgSolid:Yr(o,1),colorBgSolidHover:Yr(o,.75),colorBgSolidActive:Yr(o,.95),colorBgLayout:Qr(n,4),colorBgContainer:Qr(n,0),colorBgElevated:Qr(n,0),colorBgSpotlight:Yr(o,.85),colorBgBlur:"transparent",colorBorder:Qr(n,15),colorBorderSecondary:Qr(n,6)}};const ei=Vt((function(e){pr.pink=pr.magenta,Or.pink=Or.magenta;const t=Object.keys($r).map((t=>{const n=e[t]===pr[t]?Or[t]:dr(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(r),f=n(i),h=n(a),g=n(s),m=o(c,u),v=n(e.colorLink||e.colorInfo),b=new Xr(h[1]).mix(new Xr(h[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Xr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:Zr,generateNeutralColorPalettes:Jr})),Gr(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},(e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}})(o))}(e))})),ti={token:Nr,override:{override:Nr},hashed:!0},ni=t.createContext(ti),oi="ant",ri="anticon",ii=["outlined","borderless","filled"],ai=e.createContext({getPrefixCls:(e,t)=>t||(e?`${oi}-${e}`:oi),iconPrefixCls:ri}),si=`-ant-${Date.now()}-${Math.random()}`;function li(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new Xr(e),i=dr(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new Xr(t.primaryColor),i=dr(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Xr(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);xt()?Pt(n,`${si}-dynamic-theme`):"production"!==process.env.NODE_ENV&&Bo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ci=e.createContext(!1),ui=t=>{let{children:n,disabled:o}=t;const r=e.useContext(ci);return e.createElement(ci.Provider,{value:null!=o?o:r},n)},di=e.createContext(void 0),pi=t=>{let{children:n,size:o}=t;const r=e.useContext(di);return e.createElement(di.Provider,{value:o||r},n)};var fi=Ke((function e(){We(this,e)})),hi="CALC_UNIT",gi=new RegExp(hi,"g");function mi(e){return"number"==typeof e?"".concat(e).concat(hi):e}var vi=function(){Xe(t,fi);var e=Ze(t);function t(n,o){var r;We(this,t),Q(Ye(r=e.call(this)),"result",""),Q(Ye(r),"unitlessCssVar",void 0),Q(Ye(r),"lowPriority",void 0);var i=T(n);return r.unitlessCssVar=o,n instanceof t?r.result="(".concat(n.result,")"):"number"===i?r.result=mi(n):"string"===i&&(r.result=n),r}return Ke(t,[{key:"add",value:function(e){return e instanceof t?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(mi(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(mi(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof t?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(o=!1),this.result=this.result.replace(gi,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),t}(),bi=function(){Xe(t,fi);var e=Ze(t);function t(n){var o;return We(this,t),Q(Ye(o=e.call(this)),"result",0),n instanceof t?o.result=n.result:"number"==typeof n&&(o.result=n),o}return Ke(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(),yi=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function xi(t){var n=e.useRef();n.current=t;var o=e.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return o}function Ci(t){var n=e.useRef(!1),o=bt(e.useState(t),2),r=o[0],i=o[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[r,function(e,t){t&&n.current||i(e)}]}function wi(e){return void 0!==e}function Si(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=bt(Ci((function(){return wi(r)?r:wi(o)?"function"==typeof o?o():o:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==r?r:l,d=a?a(u):u,p=xi(i),f=bt(Ci([u]),2),h=f[0],g=f[1];return rn((function(){var e=h[0];l!==e&&p(l,e)}),[h]),rn((function(){wi(r)||c(r)}),[r]),[d,xi((function(e,t){c(e,t),g([u],t)}))]}function ki(e,t,n,o){var r=J({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach((function(t){var n,o=bt(t,2),i=o[0],a=o[1];("production"!==process.env.NODE_ENV&&U(!(null!=r&&r[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=r&&r[i]||null!=r&&r[a])&&(null!==(n=r[a])&&void 0!==n||(r[a]=null==r?void 0:r[i]))}));var i=J(J({},n),r);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Ei="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Oi=!0;function $i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ei)return Object.assign.apply(Object,[{}].concat(t));Oi=!1;var o={};return t.forEach((function(e){"object"===T(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Oi=!0,o}var Ni={};function Mi(){}function Ii(e,t,n){var o;return"function"==typeof n?n($i(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}}var Pi=function(){function e(){We(this,e),Q(this,"map",new Map),Q(this,"objectIDMap",new WeakMap),Q(this,"nextID",0),Q(this,"lastAccessBeat",new Map),Q(this,"accessBeat",0)}return Ke(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"===T(e)?"obj_".concat(t.getObjectID(e)):"".concat(T(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))})),this.accessBeat=0}}}]),e}(),Li=new Pi;var ji=function(){return{}};const Di=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ai(e){return e>=0&&e<=255}function Ti(e,t){const{r:n,g:o,b:r,a:i}=new Xr(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Xr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((o-s*(1-e))/e),c=Math.round((r-l*(1-e))/e);if(Ai(t)&&Ai(i)&&Ai(c))return new Xr({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Xr({r:n,g:o,b:r,a:1}).toRgbString()}var Ri=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function _i(e){const{override:t}=e,n=Ri(e,["override"]),o=Object.assign({},t);Object.keys(Nr).forEach((e=>{delete o[e]}));const r=Object.assign(Object.assign({},n),o),i=1200,a=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Ti(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Ti(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Ti(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:3*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Ti(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Xr("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Xr("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Xr("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}var zi=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Bi={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},Hi={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},Fi={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Wi=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=zi(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=_i(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=zi(n,["theme"]);let i=r;o&&(i=Wi(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function Vi(){const{token:e,hashed:n,theme:o,override:r,cssVar:i}=t.useContext(ni),a=`5.21.5-${n||""}`,s=o||ei,[l,c,u]=yn(s,[Nr,e],{salt:a,override:r,getComputedToken:Wi,formatToken:_i,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Bi,ignore:Hi,preserve:Fi}});return[s,u,n?c:"",l,i]}const Ki={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},qi=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}},Xi=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"}}}),Ui=e=>({outline:`${Qt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Gi=e=>({"&:focus-visible":Object.assign({},Ui(e))}),Yi=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Gi(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Qi=(e,t)=>{const[n,o]=Vi();return wo({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:Zi,genComponentStyleHook:Ji,genSubStyleComponent:ea}=function(e){var n=e.useCSP,o=void 0===n?ji:n,i=e.useToken,a=e.usePrefix,s=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function u(n,r,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(n)?n:[n,n],p=bt(d,1)[0],f=d.join("-"),h=e.layer||{name:"antd"};return function(e){var n,d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,m=i(),v=m.theme,b=m.realToken,y=m.hashId,x=m.token,C=m.cssVar,w=a(),S=w.rootPrefixCls,k=w.iconPrefixCls,E=o(),O=C?"css":"js",$=(n=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Jt(t,C.prefix)),e.add(Jt(t,yi(p,C.prefix)))})),function(e,t){var n="css"===e?vi:bi;return function(e){return new n(e,t)}}(O,e)},d=[O,p,null==C?void 0:C.prefix],t.useMemo((function(){var e=Li.get(d);if(e)return e;var t=n();return Li.set(d,t),t}),d)),N=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 Qt(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 Qt(e)})).join(","),")")}}}(O),M=N.max,I=N.min,P={theme:v,token:x,hashId:y,nonce:function(){return E.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};"function"==typeof s&&wo(J(J({},P),{},{clientOnly:!1,path:["Shared",S]}),(function(){return s(x,{prefix:{rootPrefixCls:S,iconPrefixCls:k},csp:E})}));var L=wo(J(J({},P),{},{path:[f,e,k]}),(function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,o=Mi;return Ei&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return Oi&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;Ni[e]={global:Array.from(t),component:J(J({},null===(o=Ni[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(x),n=t.token,o=t.flush,i=Ii(p,b,c),a=".".concat(e),s=ki(p,b,i,{deprecatedTokens:u.deprecatedTokens});C&&i&&"object"===T(i)&&Object.keys(i).forEach((function(e){i[e]="var(".concat(Jt(e,yi(p,C.prefix)),")")}));var d=$i(n,{componentCls:a,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(S),calc:$,max:M,min:I},C?i:s),f=r(d,{hashId:y,prefixCls:e,rootPrefixCls:S,iconPrefixCls:k});o(p,s);var h="function"==typeof l?l(d,e,g,u.resetFont):null;return[!1===u.resetStyle?null:h,f]}));return[L,y]}}return{genStyleHooks:function(e,n,o,a){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},p=J(J({},"function"==typeof c?c(e):{}),{},Q({},l("zIndexPopup"),!0));Object.keys(d).forEach((function(e){p[l(e)]=d[e]}));var f=J(J({},a),{},{unitless:p,prefixToken:l}),h=u(e,n,o,f),g=function(e,n,o){var a=o.unitless,s=o.injectStyle,l=void 0===s||s,c=o.prefixToken,u=o.ignore,d=function(t){var s=t.rootCls,l=t.cssVar,d=void 0===l?{}:l,p=i().realToken;return function(e,t){var n=e.key,o=e.prefix,i=e.unitless,a=e.ignore,s=e.token,l=e.scope,c=void 0===l?"":l,u=r(zt),d=u.cache.instanceId,p=u.container,f=s._tokenKey,h=[].concat(lt(e.path),[n,c,f]),g=fn(ko,h,(function(){var e=t(),r=bt(tn(e,n,{prefix:o,unitless:i,ignore:a,scope:c}),2),s=r[0],l=r[1];return[s,l,yo(h,l),n]}),(function(e){var t=bt(e,3)[2];Yt&&It(t,{mark:Rt})}),(function(e){var t=bt(e,3),o=t[1],r=t[2];if(o){var i=Pt(o,r,{mark:Rt,prepend:"queue",attachTo:p,priority:-999});i[_t]=d,i.setAttribute(Tt,n)}}))}({path:[e],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:p,scope:s},(function(){var t=Ii(e,p,n),r=ki(e,p,t,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(t).forEach((function(e){r[c(e)]=r[e],delete r[e]})),r})),null},p=function(n){var o=i().cssVar;return[function(r){return l&&o?t.createElement(t.Fragment,null,t.createElement(d,{rootCls:n,cssVar:o,component:e}),r):r},null==o?void 0:o.key]};return p}(s,o,f);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=bt(h(e,t),2)[1],o=bt(g(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=u(e,t,n,J({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),r=function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(r.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),r},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=r(ai);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r]=Vi();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=r(ai);return Qi(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":Xi(e)}],getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==o&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[r]:a})}},getCompUnitless:()=>Bi});function ta(e,t){return Di.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const na=Object.assign({},e),{useId:oa}=na,ra=void 0===oa?()=>"":oa;var ia=["children"],aa=e.createContext({});function sa(t){var n=t.children,o=Lt(t,ia);return e.createElement(aa.Provider,{value:o},n)}var la=function(){Xe(n,e.Component);var t=Ze(n);function n(){return We(this,n),t.apply(this,arguments)}return Ke(n,[{key:"render",value:function(){return this.props.children}}]),n}();var ca="none",ua="appear",da="enter",pa="leave",fa="none",ha="prepare",ga="start",ma="active",va="end",ba="prepared";function ya(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 xa=function(e,t){var n={animationend:ya("Animation","AnimationEnd"),transitionend:ya("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(xt(),"undefined"!=typeof window?window:{}),Ca={};if(xt()){var wa=document.createElement("div");Ca=wa.style}var Sa={};function ka(e){if(Sa[e])return Sa[e];var t=xa[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Ca)return Sa[e]=t[i],Sa[e]}return""}var Ea=ka("animationend"),Oa=ka("transitionend"),$a=!(!Ea||!Oa),Na=Ea||"animationend",Ma=Oa||"transitionend";function Ia(e,t){if(!e)return null;if("object"===T(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Pa=xt()?s:l,La=[ha,ga,ma,va],ja=[ha,ba],Da=!1;function Aa(e){return e===ma||e===va}var Ta=function(t,n,o){var r=bt(Ci(fa),2),i=r[0],a=r[1],s=function(){var t=e.useRef(null);function n(){ht.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=ht((function(){r<=1?o({isCanceled:function(){return i!==t.current}}):e(o,r-1)}));t.current=i},n]}(),l=bt(s,2),c=l[0],u=l[1];var d=n?ja:La;return Pa((function(){if(i!==fa&&i!==va){var e=d.indexOf(i),t=d[e+1],n=o(i);n===Da?a(t,!0):t&&c((function(e){function o(){e.isCanceled()||a(t,!0)}!0===n?o():Promise.resolve(n).then(o)}))}}),[t,i]),e.useEffect((function(){return function(){u()}}),[]),[function(){a(ha,!0)},i]};function Ra(t,n,o,r){var i,s,c,u=r.motionEnter,d=void 0===u||u,p=r.motionAppear,f=void 0===p||p,h=r.motionLeave,g=void 0===h||h,m=r.motionDeadline,v=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,x=r.onLeavePrepare,C=r.onAppearStart,w=r.onEnterStart,S=r.onLeaveStart,k=r.onAppearActive,E=r.onEnterActive,O=r.onLeaveActive,$=r.onAppearEnd,N=r.onEnterEnd,M=r.onLeaveEnd,I=r.onVisibleChanged,P=bt(Ci(),2),L=P[0],j=P[1],D=(i=ca,s=bt(e.useReducer((function(e){return e+1}),0),2)[1],c=e.useRef(i),[xi((function(){return c.current})),xi((function(e){c.current="function"==typeof e?e(c.current):e,s()}))]),A=bt(D,2),T=A[0],R=A[1],_=bt(Ci(null),2),z=_[0],B=_[1],H=T(),F=a(!1),W=a(null);function V(){return o()}var K=a(!1);function q(){R(ca),B(null,!0)}var X=xi((function(e){var t=T();if(t!==ca){var n=V();if(!e||e.deadline||e.target===n){var o,r=K.current;t===ua&&r?o=null==$?void 0:$(n,e):t===da&&r?o=null==N?void 0:N(n,e):t===pa&&r&&(o=null==M?void 0:M(n,e)),r&&!1!==o&&q()}}})),U=function(t){var n=a();function o(e){e&&(e.removeEventListener(Ma,t),e.removeEventListener(Na,t))}return e.useEffect((function(){return function(){o(n.current)}}),[]),[function(e){n.current&&n.current!==e&&o(n.current),e&&e!==n.current&&(e.addEventListener(Ma,t),e.addEventListener(Na,t),n.current=e)},o]}(X),G=bt(U,1)[0],Y=function(e){switch(e){case ua:return Q(Q(Q({},ha,b),ga,C),ma,k);case da:return Q(Q(Q({},ha,y),ga,w),ma,E);case pa:return Q(Q(Q({},ha,x),ga,S),ma,O);default:return{}}},Z=e.useMemo((function(){return Y(H)}),[H]),ee=bt(Ta(H,!t,(function(e){if(e===ha){var t=Z[ha];return t?t(V()):Da}var n;ne in Z&&B((null===(n=Z[ne])||void 0===n?void 0:n.call(Z,V(),null))||null);return ne===ma&&H!==ca&&(G(V()),m>0&&(clearTimeout(W.current),W.current=setTimeout((function(){X({deadline:!0})}),m))),ne===ba&&q(),true})),2),te=ee[0],ne=ee[1],oe=Aa(ne);K.current=oe;var re=a(null);Pa((function(){if(!F.current||re.current!==n){j(n);var e,o=F.current;F.current=!0,!o&&n&&f&&(e=ua),o&&n&&d&&(e=da),(o&&!n&&g||!o&&v&&!n&&g)&&(e=pa);var r=Y(e);e&&(t||r[ha])?(R(e),te()):R(ca),re.current=n}}),[n]),l((function(){(H===ua&&!f||H===da&&!d||H===pa&&!g)&&R(ca)}),[f,d,g]),l((function(){return function(){F.current=!1,clearTimeout(W.current)}}),[]);var ie=e.useRef(!1);l((function(){L&&(ie.current=!0),void 0!==L&&H===ca&&((ie.current||L)&&(null==I||I(L)),ie.current=!0)}),[L,H]);var ae=z;return Z[ha]&&ne===ga&&(ae=J({transition:"none"},ae)),[H,ne,ae,null!=L?L:n]}var _a=function(t){var n=t;"object"===T(t)&&(n=t.transitionSupport);var o=e.forwardRef((function(t,o){var r=t.visible,i=void 0===r||r,s=t.removeOnLeave,l=void 0===s||s,c=t.forceRender,u=t.children,d=t.motionName,p=t.leavedClassName,f=t.eventProps,h=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(aa).motion),g=a(),m=a();var v=bt(Ra(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:ne(m.current)}catch(e){return null}}),t),4),b=v[0],y=v[1],x=v[2],C=v[3],w=e.useRef(C);C&&(w.current=!0);var S,k=e.useCallback((function(e){g.current=e,de(o,e)}),[o]),E=J(J({},f),{},{visible:i});if(u)if(b===ca)S=C?u(J({},E),k):!l&&w.current&&p?u(J(J({},E),{},{className:p}),k):c||!l&&!p?u(J(J({},E),{},{style:{display:"none"}}),k):null;else{var O;y===ha?O="prepare":Aa(y)?O="active":y===ga&&(O="start");var $=Ia(d,"".concat(b,"-").concat(O));S=u(J(J({},E),{},{className:D(Ia(d,b),Q(Q({},$,$&&O),d,"string"==typeof d)),style:x}),k)}else S=null;e.isValidElement(S)&&he(S)&&(me(S)||(S=e.cloneElement(S,{ref:k})));return e.createElement(la,{ref:m},S)}));return o.displayName="CSSMotion",o}($a),za="add",Ba="keep",Ha="remove",Fa="removed";function Wa(e){var t;return J(J({},t=e&&"object"===T(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Va(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Wa)}var Ka=["component","children","onVisibleChanged","onAllRemoved"],qa=["status"],Xa=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ua(t){const{children:n}=t,[,o]=Vi(),{motion:r}=o,i=e.useRef(!1);return i.current=i.current||!1===r,i.current?e.createElement(sa,{motion:r},n):n}!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_a,o=function(){Xe(o,e.Component);var t=Ze(o);function o(){var e;We(this,o);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Q(Ye(e=t.call.apply(t,[this].concat(r))),"state",{keyEntities:[]}),Q(Ye(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:J(J({},e),{},{status:Fa})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Fa})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Ke(o,[{key:"render",value:function(){var t=this,o=this.state.keyEntities,r=this.props,i=r.component,a=r.children,s=r.onVisibleChanged;r.onAllRemoved;var l=Lt(r,Ka),c=i||e.Fragment,u={};return Xa.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,e.createElement(c,l,o.map((function(o,r){var i=o.status,l=Lt(o,qa),c=i===za||i===Ba;return e.createElement(n,A({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null==s||s(e,{key:l.key}),e||t.removeKey(l.key)}}),(function(e,t){return a(J(J({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=Va(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=Va(e),a=Va(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var s=a[i];if(s.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return J(J({},e),{},{status:za})}))),o=i),n.push(J(J({},s),{},{status:Ba})),o+=1,t=!0;break}}t||n.push(J(J({},e),{},{status:Ha}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return J(J({},e),{},{status:za})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==Ha}))).forEach((function(t){t.key===e&&(t.status=Ba)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Fa||e.status!==Ha}))}}}]),o}();Q(o,"defaultProps",{component:"div"})}($a);const Ga=e.memo((e=>{let{dropdownMatchSelectWidth:t}=e;return zo("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(Ga.displayName="PropWarning");var Ya="production"!==process.env.NODE_ENV?Ga:()=>null,Qa=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let Za=!1;const Ja="production"!==process.env.NODE_ENV?e=>{"production"!==process.env.NODE_ENV&&Bo(!Za,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,es=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ts,ns,os,rs;function is(){return ts||oi}function as(){return ns||ri}const ss=t=>{const{children:n,csp:o,autoInsertSpaceInButton:r,alert:i,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,splitter:p,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:m,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:C,segmented:w,statistic:S,spin:k,calendar:E,carousel:O,cascader:$,collapse:N,typography:M,checkbox:I,descriptions:P,divider:L,drawer:j,skeleton:D,steps:A,image:T,layout:R,list:_,mentions:z,modal:B,progress:H,result:F,slider:W,breadcrumb:V,menu:K,pagination:q,input:X,textArea:U,empty:G,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ue,notification:de,tree:pe,colorPicker:fe,datePicker:he,rangePicker:ge,flex:me,wave:ve,dropdown:be,warning:ye,tour:xe,floatButtonGroup:Ce,variant:we,inputNumber:Se,treeSelect:ke}=t,Ee=e.useCallback(((e,n)=>{const{prefixCls:o}=t;if(n)return n;const r=o||b.getPrefixCls("");return e?`${r}-${e}`:r}),[b.getPrefixCls,t.prefixCls]),Oe=y||b.iconPrefixCls||ri,$e=o||b.csp;Qi(Oe,$e);const Ne=function(e,t,n){var o,r;const i=zo("ConfigProvider"),a=e||{},s=!1!==a.inherit&&t?t:Object.assign(Object.assign({},ti),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:ti.hashed,cssVar:null==t?void 0:t.cssVar}),l=ra();if("production"!==process.env.NODE_ENV){const e=a.cssVar||s.cssVar,t=!!("object"==typeof a.cssVar&&(null===(r=a.cssVar)||void 0===r?void 0:r.key)||l);"production"!==process.env.NODE_ENV&&i(!e||t,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ce((()=>{var o,r;if(!e)return t;const i=Object.assign({},s.components);Object.keys(e.components||{}).forEach((t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}));const c=`css-var-${l.replace(/:/g,"")}`,u=(null!==(o=a.cssVar)&&void 0!==o?o:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(r=a.cssVar)||void 0===r?void 0:r.key)||c});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:i,cssVar:u})}),[a,s],((e,t)=>e.some(((e,n)=>!jt(e,t[n],!0)))))}(x,b.theme,{prefixCls:Ee("")});"production"!==process.env.NODE_ENV&&(Za=Za||!!Ne);const Me={csp:$e,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:l||v,direction:u,space:d,splitter:p,virtual:f,popupMatchSelectWidth:null!=g?g:h,popupOverflow:m,getPrefixCls:Ee,iconPrefixCls:Oe,theme:Ne,segmented:w,statistic:S,spin:k,calendar:E,carousel:O,cascader:$,collapse:N,typography:M,checkbox:I,descriptions:P,divider:L,drawer:j,skeleton:D,steps:A,image:T,input:X,textArea:U,layout:R,list:_,mentions:z,modal:B,progress:H,result:F,slider:W,breadcrumb:V,menu:K,pagination:q,empty:G,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:se,timePicker:le,upload:ue,notification:de,tree:pe,colorPicker:fe,datePicker:he,rangePicker:ge,flex:me,wave:ve,dropdown:be,warning:ye,tour:xe,floatButtonGroup:Ce,variant:we,inputNumber:Se,treeSelect:ke};if("production"!==process.env.NODE_ENV){zo("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const Ie=Object.assign({},b);Object.keys(Me).forEach((e=>{void 0!==Me[e]&&(Ie[e]=Me[e])})),es.forEach((e=>{const n=t[e];n&&(Ie[e]=n)})),void 0!==r&&(Ie.button=Object.assign({autoInsertSpace:r},Ie.button));const Pe=ce((()=>Ie),Ie,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),Le=e.useMemo((()=>({prefixCls:Oe,csp:$e})),[Oe,$e]);let je=e.createElement(e.Fragment,null,e.createElement(Ya,{dropdownMatchSelectWidth:h}),n);const De=e.useMemo((()=>{var e,t,n,o;return Do((null===(e=Xo.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Pe.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Pe.form)||void 0===o?void 0:o.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Pe,null==s?void 0:s.validateMessages]);Object.keys(De).length>0&&(je=e.createElement(Ho.Provider,{value:De},je)),l&&(je=e.createElement(tr,{locale:l,_ANT_MARK__:er},je)),(Oe||$e)&&(je=e.createElement($o.Provider,{value:Le},je)),c&&(je=e.createElement(pi,{size:c},je)),je=e.createElement(Ua,null,je);const Ae=e.useMemo((()=>{const e=Ne||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=Qa(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Vt(t):ei,s={};Object.entries(o||{}).forEach((e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"==typeof o.algorithm)&&(o.theme=Vt(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},Nr),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:r})}),[Ne]);return x&&(je=e.createElement(ni.Provider,{value:Ae},je)),Pe.warning&&(je=e.createElement(_o.Provider,{value:Pe.warning},je)),void 0!==C&&(je=e.createElement(ui,{disabled:C},je)),e.createElement(ai.Provider,{value:Pe},je)},ls=t=>{const n=e.useContext(ai),o=e.useContext(Zo);return e.createElement(ss,Object.assign({parentContext:n,legacyLocale:o},t))};ls.ConfigContext=ai,ls.SizeContext=di,ls.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(ts=t),void 0!==n&&(ns=n),"holderRender"in e&&(rs=r),o&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?os=o:("production"!==process.env.NODE_ENV&&Bo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),li(is(),o)))},ls.useConfig=function(){return{componentDisabled:r(ci),componentSize:r(di)}},Object.defineProperty(ls,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&Bo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),di)}),"production"!==process.env.NODE_ENV&&(ls.displayName="ConfigProvider");var cs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function us(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function ds(e){return function(e){return us(e)instanceof ShadowRoot}(e)?us(e):null}function ps(e){return"object"===T(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===T(e.icon)||"function"==typeof e.icon)}function fs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o,r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[(o=n,o.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=r;return t}),{})}function hs(e,n,o){return o?t.createElement(e.tag,J(J({key:n},fs(e.attrs)),o),(e.children||[]).map((function(t,o){return hs(t,"".concat(n,"-").concat(e.tag,"-").concat(o))}))):t.createElement(e.tag,J({key:n},fs(e.attrs)),(e.children||[]).map((function(t,o){return hs(t,"".concat(n,"-").concat(e.tag,"-").concat(o))})))}function gs(e){return dr(e)[0]}function ms(e){return e?Array.isArray(e)?e:[e]:[]}var vs=["icon","className","onClick","style","primaryColor","secondaryColor"],bs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var ys=function(t){var n,o,i,a,s,c,u,d,p=t.icon,f=t.className,h=t.onClick,g=t.style,m=t.primaryColor,v=t.secondaryColor,b=Lt(t,vs),y=e.useRef(),x=bs;if(m&&(x={primaryColor:m,secondaryColor:v||gs(m)}),n=y,o=r($o),i=o.csp,a=o.prefixCls,s=o.layer,c="\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&&(c=c.replace(/anticon/g,a)),s&&(c="@layer ".concat(s," {\n").concat(c,"\n}")),l((function(){var e=ds(n.current);Pt(c,"@ant-design-icons",{prepend:!s,csp:i,attachTo:e})}),[]),u=ps(p),d="icon should be icon definiton, but got ".concat(p),U(u,"[@ant-design/icons] ".concat(d)),!ps(p))return null;var C=p;return C&&"function"==typeof C.icon&&(C=J(J({},C),{},{icon:C.icon(x.primaryColor,x.secondaryColor)})),hs(C.icon,"svg-".concat(C.name),J(J({className:f,onClick:h,style:g,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},b),{},{ref:y}))};function xs(e){var t=bt(ms(e),2),n=t[0],o=t[1];return ys.setTwoToneColors({primaryColor:n,secondaryColor:o})}ys.displayName="IconReact",ys.getTwoToneColors=function(){return J({},bs)},ys.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;bs.primaryColor=t,bs.secondaryColor=n||gs(t),bs.calculated=!!n};var Cs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xs(Cr.primary);var ws=e.forwardRef((function(t,n){var o=t.className,r=t.icon,i=t.spin,a=t.rotate,s=t.tabIndex,l=t.onClick,c=t.twoToneColor,u=Lt(t,Cs),d=e.useContext($o),p=d.prefixCls,f=void 0===p?"anticon":p,h=d.rootClassName,g=D(h,f,Q(Q({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||"loading"===r.name),o),m=s;void 0===m&&l&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=bt(ms(c),2),y=b[0],x=b[1];return e.createElement("span",A({role:"img","aria-label":r.name},u,{ref:n,tabIndex:m,onClick:l,className:g}),e.createElement(ys,{icon:r,primaryColor:y,secondaryColor:x,style:v}))}));ws.displayName="AntdIcon",ws.getTwoToneColor=function(){var e=ys.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ws.setTwoToneColor=xs;var Ss=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:cs}))},ks=e.forwardRef(Ss);
|
26
|
+
/** */"production"!==process.env.NODE_ENV&&(ks.displayName="CheckCircleFilled");var Es={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"},Os=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Es}))},$s=e.forwardRef(Os);"production"!==process.env.NODE_ENV&&($s.displayName="CloseCircleFilled");var Ns={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"},Ms=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Ns}))},Is=e.forwardRef(Ms);"production"!==process.env.NODE_ENV&&(Is.displayName="CloseOutlined");var Ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Ls=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Ps}))},js=e.forwardRef(Ls);"production"!==process.env.NODE_ENV&&(js.displayName="ExclamationCircleFilled");var Ds={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},As=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Ds}))},Ts=e.forwardRef(As);"production"!==process.env.NODE_ENV&&(Ts.displayName="InfoCircleFilled");var Rs="".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 _s(e,t){return 0===e.indexOf(t)}function zs(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:J({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||_s(n,"aria-"))||t.data&&_s(n,"data-")||t.attr&&Rs.includes(n))&&(o[n]=e[n])})),o}function Bs(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const Hs=(e,n,o)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof o?o(e.props||{}):o):n;function Fs(e,t){return Hs(e,e,t)}function Ws(e){return null!=e&&e===e.window}const Vs=e=>{var t,n;if("undefined"==typeof window)return 0;let o=0;return Ws(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!Ws(e)&&"number"!=typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o};function Ks(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,i=n(),a=Vs(i),s=Date.now(),l=()=>{const t=Date.now()-s,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);Ws(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?ht(l):"function"==typeof o&&o()};ht(l)}const qs=e=>{const[,,,,t]=Vi();return t?`${e}-css-var`:""};var Xs={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>=Xs.F1&&t<=Xs.F12)return!1;switch(t){case Xs.ALT:case Xs.CAPS_LOCK:case Xs.CONTEXT_MENU:case Xs.CTRL:case Xs.DOWN:case Xs.END:case Xs.ESC:case Xs.HOME:case Xs.INSERT:case Xs.LEFT:case Xs.MAC_FF_META:case Xs.META:case Xs.NUMLOCK:case Xs.NUM_CENTER:case Xs.PAGE_DOWN:case Xs.PAGE_UP:case Xs.PAUSE:case Xs.PRINT_SCREEN:case Xs.RIGHT:case Xs.SHIFT:case Xs.UP:case Xs.WIN_KEY:case Xs.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Xs.ZERO&&e<=Xs.NINE)return!0;if(e>=Xs.NUM_ZERO&&e<=Xs.NUM_MULTIPLY)return!0;if(e>=Xs.A&&e<=Xs.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Xs.SPACE:case Xs.QUESTION_MARK:case Xs.NUM_PLUS:case Xs.NUM_MINUS:case Xs.NUM_PERIOD:case Xs.NUM_DIVISION:case Xs.SEMICOLON:case Xs.DASH:case Xs.EQUALS:case Xs.COMMA:case Xs.PERIOD:case Xs.SLASH:case Xs.APOSTROPHE:case Xs.SINGLE_QUOTE:case Xs.OPEN_SQUARE_BRACKET:case Xs.BACKSLASH:case Xs.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Us={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"},Gs=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Us}))},Ys=e.forwardRef(Gs);"production"!==process.env.NODE_ENV&&(Ys.displayName="LoadingOutlined");const Qs=t.createContext(void 0);"production"!==process.env.NODE_ENV&&(Qs.displayName="zIndexContext");const Zs=100,Js={Modal:Zs,Drawer:Zs,Popover:Zs,Popconfirm:Zs,Tooltip:Zs,Tour:Zs,FloatButton:Zs},el={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const tl=(e,n)=>{const[,o]=Vi(),r=t.useContext(Qs),i=function(e){return e in Js}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=r?r:0;t+=i?(r?0:o.zIndexPopupBase)+Js[e]:el[e],a=[void 0===r?n:t,t]}if("production"!==process.env.NODE_ENV){const t=zo(e),r=o.zIndexPopupBase+1100,i=a[0]||0;"production"!==process.env.NODE_ENV&&t(void 0!==n||i<=r,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function nl(){nl=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(o||[]);return r(a,"_invoke",{value:O(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",g="completed",m={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var C=Object.getPrototypeOf,w=C&&C(C(P([])));w&&w!==n&&o.call(w,a)&&(x=w);var S=y.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(r,i,a,s){var l=d(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==T(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function O(t,n,o){var r=p;return function(i,a){if(r===h)throw Error("Generator is already running");if(r===g){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=$(s,o);if(l){if(l===m)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var c=d(t,n,o);if("normal"===c.type){if(r=o.done?g:f,c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=g,o.method="throw",o.arg=c.arg)}}}function $(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function 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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(T(t)+" is not iterable")}return b.prototype=y,r(S,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(E.prototype),c(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new E(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=P,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function ol(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function rl(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ol(i,o,r,a,s,"next",e)}function s(e){ol(i,o,r,a,s,"throw",e)}a(void 0)}))}}var il,al=J({},y),sl=al.version,ll=al.render,cl=al.unmountComponentAtNode;try{Number((sl||"").split(".")[0])>=18&&(il=al.createRoot)}catch(e){}function ul(e){var t=al.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===T(t)&&(t.usingClientEntryPoint=e)}var dl="__rc_react_root__";function pl(e,t){il?function(e,t){ul(!0);var n=t[dl]||il(t);ul(!1),n.render(e),t[dl]=n}(e,t):function(e,t){null==ll||ll(e,t)}(e,t)}function fl(e){return hl.apply(this,arguments)}function hl(){return(hl=rl(nl().mark((function e(t){return nl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[dl])||void 0===e||e.unmount(),delete t[dl]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gl(e){cl(e)}function ml(e){return vl.apply(this,arguments)}function vl(){return(vl=rl(nl().mark((function e(t){return nl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===il){e.next=2;break}return e.abrupt("return",fl(t));case 2:gl(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const bl=()=>({height:0,opacity:0}),yl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},xl=e=>({height:e?e.offsetHeight:0}),Cl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,wl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:oi}-motion-collapse`,onAppearStart:bl,onEnterStart:bl,onAppearActive:yl,onEnterActive:yl,onLeaveStart:xl,onLeaveActive:bl,onAppearEnd:Cl,onEnterEnd:Cl,onLeaveEnd:Cl,motionDeadline:500}},Sl=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var kl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1};const El=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 Ol=Ji("Wave",(e=>[El(e)]));const $l=`${oi}-wave-target`;function Nl(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Ml(e){return Number.isNaN(e)?0:e}const Il=t=>{const{className:n,target:o,component:r}=t,i=e.useRef(null),[a,s]=e.useState(null),[l,c]=e.useState([]),[u,d]=e.useState(0),[p,f]=e.useState(0),[h,g]=e.useState(0),[m,v]=e.useState(0),[b,y]=e.useState(!1),x={left:u,top:p,width:h,height:m,borderRadius:l.map((e=>`${e}px`)).join(" ")};function C(){const e=getComputedStyle(o);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Nl(t)?t:Nl(n)?n:Nl(o)?o:null}(o));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:r}=e;d(t?o.offsetLeft:Ml(-parseFloat(n))),f(t?o.offsetTop:Ml(-parseFloat(r))),g(o.offsetWidth),v(o.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>Ml(parseFloat(e)))))}if(a&&(x["--wave-color"]=a),e.useEffect((()=>{if(o){const e=ht((()=>{C(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(o)),()=>{ht.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const w=("Checkbox"===r||"Radio"===r)&&(null==o?void 0:o.classList.contains($l));return e.createElement(_a,{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;ml(e).then((()=>{null==e||e.remove()}))}return!1}},((t,o)=>{let{className:r}=t;return e.createElement("div",{ref:pe(i,o),className:D(n,r,{"wave-quick":w}),style:x})}))},Pl=(t,n)=>{var o;const{component:r}=n;if("Checkbox"===r&&!(null===(o=t.querySelector("input"))||void 0===o?void 0:o.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild),pl(e.createElement(Il,Object.assign({},n,{target:t})),i)},Ll=(t,n,o)=>{const{wave:r}=e.useContext(ai),[,i,a]=Vi(),s=xi((e=>{const s=t.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${$l}`)||s,{showEffect:c}=r||{};(c||Pl)(l,{className:n,token:i,component:o,event:e,hashId:a})})),l=e.useRef();return e=>{ht.cancel(l.current),l.current=ht((()=>{s(e)}))}},jl=e=>{const{children:n,disabled:o,component:i}=e,{getPrefixCls:s}=r(ai),l=a(null),c=s("wave"),[,u]=Ol(c),d=Ll(l,D(c,u),i);if(t.useEffect((()=>{const e=l.current;if(!e||1!==e.nodeType||o)return;const t=t=>{!kl(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[o]),!t.isValidElement(n))return null!=n?n:null;return Fs(n,{ref:he(n)?pe(n.ref,l):l})};"production"!==process.env.NODE_ENV&&(jl.displayName="Wave");const Dl=e=>{const n=t.useContext(di);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])},Al=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Tl=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Rl=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var _l=Zi("Space",(e=>{const t=$i(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Tl(t),Rl(t),Al(t)]}),(()=>({})),{resetStyle:!1}),zl=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Bl=e.createContext(null),Hl=(t,n)=>{const o=e.useContext(Bl),r=e.useMemo((()=>{if(!o)return"";const{compactDirection:e,isFirstItem:r,isLastItem:i}=o,a="vertical"===e?"-vertical-":"-";return D(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:r,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})}),[t,n,o]);return{compactSize:null==o?void 0:o.compactSize,compactDirection:null==o?void 0:o.compactDirection,compactItemClassnames:r}},Fl=t=>{let{children:n}=t;return e.createElement(Bl.Provider,{value:null},n)},Wl=t=>{var{children:n}=t,o=zl(t,["children"]);return e.createElement(Bl.Provider,{value:o},n)};var Vl=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Kl=e.createContext(void 0),ql=/^[\u4E00-\u9FA5]{2}$/,Xl=ql.test.bind(ql);function Ul(e){return"danger"===e?{danger:!0}:{type:e}}function Gl(e){return"string"==typeof e}function Yl(e){return"text"===e||"link"===e}function Ql(e,n){let o=!1;const r=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(o&&n){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);o=n})),t.Children.map(r,(e=>function(e,n){if(null==e)return;const o=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Gl(e.type)&&Xl(e.props.children)?Fs(e,{children:e.props.children.split("").join(o)}):Gl(e)?Xl(e)?t.createElement("span",null,e.split("").join(o)):t.createElement("span",null,e):Bs(e)?t.createElement("span",null,e):e}(e,n)))}const Zl=c(((e,n)=>{const{className:o,style:r,children:i,prefixCls:a}=e,s=D(`${a}-icon`,o);return t.createElement("span",{ref:n,className:s,style:r},i)})),Jl=c(((e,n)=>{const{prefixCls:o,className:r,style:i,iconClassName:a}=e,s=D(`${o}-loading-icon`,r);return t.createElement(Zl,{prefixCls:o,className:s,style:i,ref:n},t.createElement(Ys,{className:a}))})),ec=()=>({width:0,opacity:0,transform:"scale(0)"}),tc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),nc=e=>{const{prefixCls:n,loading:o,existIcon:r,className:i,style:a}=e,s=!!o;return r?t.createElement(Jl,{prefixCls:n,className:i,style:a}):t.createElement(_a,{visible:s,motionName:`${n}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:ec,onAppearActive:tc,onEnterStart:ec,onEnterActive:tc,onLeaveStart:tc,onLeaveActive:ec},((e,o)=>{let{className:r,style:s}=e;return t.createElement(Jl,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),s),ref:o,iconClassName:r})}))},oc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),rc=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},oc(`${t}-primary`,r),oc(`${t}-danger`,i)]}};var ic=["b"],ac=["v"],sc=function(e){return Math.round(Number(e||0))},lc=function(){Xe(t,ar);var e=Ze(t);function t(n){return We(this,t),e.call(this,function(e){if(e instanceof ar)return e;if(e&&"object"===T(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return J(J({},Lt(t,ic)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(n))}return Ke(t,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=sc(100*e.s),n=sc(100*e.b),o=sc(e.h),r=e.a,i="hsb(".concat(o,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(o,", ").concat(t,"%, ").concat(n,"%, ").concat(r.toFixed(0===r?0:2),")");return 1===r?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return J(J({},Lt(e,ac)),{},{b:t,a:this.a})}}]),t}(),cc=function(e){return e instanceof lc?e:new lc(e)},uc=cc("#1677ff"),dc=function(e){var t=e.offset,n=e.targetRef,o=e.containerRef,r=e.color,i=e.type,a=o.current.getBoundingClientRect(),s=a.width,l=a.height,c=n.current.getBoundingClientRect(),u=c.width/2,d=c.height/2,p=(t.x+u)/s,f=1-(t.y+d)/l,h=r.toHsb(),g=p,m=(t.x+u)/s*360;if(i)switch(i){case"hue":return cc(J(J({},h),{},{h:m<=0?0:m}));case"alpha":return cc(J(J({},h),{},{a:g<=0?0:g}))}return cc({h:h.h,s:p<=0?0:p,b:f>=1?1:f,a:h.a})},pc=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},fc=function(e){var n=e.color,o=e.prefixCls,r=e.className,i=e.style,a=e.onClick,s="".concat(o,"-color-block");return t.createElement("div",{className:D(s,r),style:i,onClick:a},t.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function hc(e){var t=e.targetRef,n=e.containerRef,o=e.direction,r=e.onDragChange,i=e.onDragChangeComplete,s=e.calculate,c=e.color,d=e.disabledDrag,p=bt(u({x:0,y:0}),2),f=p[0],h=p[1],g=a(null),m=a(null);l((function(){h(s())}),[c]),l((function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",m.current),g.current=null,m.current=null}}),[]);var v=function(e){var i=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,o=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-o}}(e),a=i.pageX,s=i.pageY,l=n.current.getBoundingClientRect(),c=l.x,u=l.y,d=l.width,p=l.height,h=t.current.getBoundingClientRect(),g=h.width,m=h.height,v=g/2,b=m/2,y=Math.max(0,Math.min(a-c,d))-v,x=Math.max(0,Math.min(s-u,p))-b,C={x:y,y:"x"===o?f.y:x};if(0===g&&0===m||g!==m)return!1;null==r||r(C)},b=function(e){e.preventDefault(),v(e)},y=function(e){e.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",m.current),g.current=null,m.current=null,null==i||i()};return[f,function(e){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",m.current),d||(v(e),document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),document.addEventListener("touchmove",b),document.addEventListener("touchend",y),g.current=b,m.current=y)}]}var gc=function(e){var n=e.size,o=void 0===n?"default":n,r=e.color,i=e.prefixCls;return t.createElement("div",{className:D("".concat(i,"-handler"),Q({},"".concat(i,"-handler-sm"),"small"===o)),style:{backgroundColor:r}})},mc=function(e){var n=e.children,o=e.style,r=e.prefixCls;return t.createElement("div",{className:"".concat(r,"-palette"),style:J({position:"relative"},o)},n)},vc=c((function(e,n){var o=e.children,r=e.x,i=e.y;return t.createElement("div",{ref:n,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},o)})),bc=function(e){var n=e.color,o=e.onChange,r=e.prefixCls,i=e.onChangeComplete,s=e.disabled,l=a(),c=a(),u=a(n),d=xi((function(e){var t=dc({offset:e,targetRef:c,containerRef:l,color:n});u.current=t,o(t)})),p=bt(hc({color:n,containerRef:l,targetRef:c,calculate:function(){return pc(n)},onDragChange:d,onDragChangeComplete:function(){return null==i?void 0:i(u.current)},disabledDrag:s}),2),f=p[0],h=p[1];return t.createElement("div",{ref:l,className:"".concat(r,"-select"),onMouseDown:h,onTouchStart:h},t.createElement(mc,{prefixCls:r},t.createElement(vc,{x:f.x,y:f.y,ref:c},t.createElement(gc,{color:n.toRgbString(),prefixCls:r})),t.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},yc=function(e){var n=e.colors,o=e.children,r=e.direction,i=void 0===r?"to right":r,a=e.type,s=e.prefixCls,l=d((function(){return n.map((function(e,t){var o=cc(e);return"alpha"===a&&t===n.length-1&&(o=new lc(o.setA(1))),o.toRgbString()})).join(",")}),[n,a]);return t.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},o)},xc=function(e){var n=e.prefixCls,o=e.colors,r=e.disabled,i=e.onChange,s=e.onChangeComplete,l=e.color,c=e.type,u=a(),d=a(),p=a(l),f=function(e){return"hue"===c?e.getHue():100*e.a},h=xi((function(e){var t=dc({offset:e,targetRef:d,containerRef:u,color:l,type:c});p.current=t,i(f(t))})),g=bt(hc({color:l,targetRef:d,containerRef:u,calculate:function(){return pc(l,c)},onDragChange:h,onDragChangeComplete:function(){s(f(p.current))},direction:"x",disabledDrag:r}),2),m=g[0],v=g[1],b=t.useMemo((function(){if("hue"===c){var e=l.toHsb();return e.s=1,e.b=1,e.a=1,new lc(e)}return l}),[l,c]),y=t.useMemo((function(){return o.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[o]);return t.createElement("div",{ref:u,className:D("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:v,onTouchStart:v},t.createElement(mc,{prefixCls:n},t.createElement(vc,{x:m.x,y:m.y,ref:d},t.createElement(gc,{size:"small",color:b.toHexString(),prefixCls:n})),t.createElement(yc,{colors:y,type:c,prefixCls:n})))};var Cc=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],wc=c((function(n,o){var r=n.value,i=n.defaultValue,a=n.prefixCls,s=void 0===a?"rc-color-picker":a,l=n.onChange,c=n.onChangeComplete,u=n.className,p=n.style,f=n.panelRender,h=n.disabledAlpha,g=void 0!==h&&h,m=n.disabled,v=void 0!==m&&m,b=function(t){return e.useMemo((function(){return[(t||{}).slider||xc]}),[t])}(n.components),y=bt(b,1)[0],x=function(e,t){var n=bt(Si(e,{value:t}),2),o=n[0],r=n[1];return[d((function(){return cc(o)}),[o]),r]}(i||uc,r),C=bt(x,2),w=C[0],S=C[1],k=d((function(){return w.setA(1).toRgbString()}),[w]),E=function(e,t){r||S(e),null==l||l(e,t)},O=function(e){return new lc(w.setHue(e))},$=function(e){return new lc(w.setA(e/100))},N=D("".concat(s,"-panel"),u,Q({},"".concat(s,"-panel-disabled"),v)),M={prefixCls:s,disabled:v,color:w},I=t.createElement(t.Fragment,null,t.createElement(bc,A({onChange:E},M,{onChangeComplete:c})),t.createElement("div",{className:"".concat(s,"-slider-container")},t.createElement("div",{className:D("".concat(s,"-slider-group"),Q({},"".concat(s,"-slider-group-disabled-alpha"),g))},t.createElement(y,A({},M,{type:"hue",colors:Cc,min:0,max:359,value:w.getHue(),onChange:function(e){E(O(e),{type:"hue",value:e})},onChangeComplete:function(e){c&&c(O(e))}})),!g&&t.createElement(y,A({},M,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:k}],min:0,max:100,value:100*w.a,onChange:function(e){E($(e),{type:"alpha",value:e})},onChangeComplete:function(e){c&&c($(e))}}))),t.createElement(fc,{color:w.toRgbString(),prefixCls:s})));return t.createElement("div",{className:N,style:p,ref:o},"function"==typeof f?f(I):I)}));"production"!==process.env.NODE_ENV&&(wc.displayName="ColorPicker");let Sc=function(){return Ke((function e(t){var n;if(We(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const o=Array.isArray(t);o&&t.length?(this.colors=t.map((t=>{let{color:n,percent:o}=t;return{color:new e(n),percent:o}})),this.metaColor=new lc(this.colors[0].color.metaColor)):this.metaColor=new lc(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return((e,t)=>e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"")(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const o=e.colors[n];return t.percent===o.percent&&t.color.equals(o.color)})):this.toHexString()===e.toHexString())}}])}();var kc={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"},Ec=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:kc}))},Oc=e.forwardRef(Ec);"production"!==process.env.NODE_ENV&&(Oc.displayName="RightOutlined");var $c=t.forwardRef((function(e,n){var o=e.prefixCls,r=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=e.classNames,d=e.styles,p=bt(t.useState(l||r),2),f=p[0],h=p[1];return t.useEffect((function(){(r||l)&&h(!0)}),[r,l]),f?t.createElement("div",{ref:n,className:D("".concat(o,"-content"),Q(Q({},"".concat(o,"-content-active"),l),"".concat(o,"-content-inactive"),!l),i),style:a,role:c},t.createElement("div",{className:D("".concat(o,"-content-box"),null==u?void 0:u.body),style:null==d?void 0:d.body},s)):null}));$c.displayName="PanelContent";var Nc=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Mc=t.forwardRef((function(e,n){var o=e.showArrow,r=void 0===o||o,i=e.headerClass,a=e.isActive,s=e.onItemClick,l=e.forceRender,c=e.className,u=e.classNames,d=void 0===u?{}:u,p=e.styles,f=void 0===p?{}:p,h=e.prefixCls,g=e.collapsible,m=e.accordion,v=e.panelKey,b=e.extra,y=e.header,x=e.expandIcon,C=e.openMotion,w=e.destroyInactivePanel,S=e.children,k=Lt(e,Nc),E="disabled"===g,O="header"===g,$="icon"===g,N=null!=b&&"boolean"!=typeof b,M=function(){null==s||s(v)},I="function"==typeof x?x(e):t.createElement("i",{className:"arrow"});I&&(I=t.createElement("div",{className:"".concat(h,"-expand-icon"),onClick:["header","icon"].includes(g)?M:void 0},I));var P=D(Q(Q(Q({},"".concat(h,"-item"),!0),"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),E),c),L={className:D(i,Q(Q(Q({},"".concat(h,"-header"),!0),"".concat(h,"-header-collapsible-only"),O),"".concat(h,"-icon-collapsible-only"),$),d.header),"aria-expanded":a,"aria-disabled":E,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Xs.ENTER&&e.which!==Xs.ENTER||M()},style:f.header};return O||$||(L.onClick=M,L.role=m?"tab":"button",L.tabIndex=E?-1:0),t.createElement("div",A({},k,{ref:n,className:P}),t.createElement("div",L,r&&I,t.createElement("span",{className:"".concat(h,"-header-text"),onClick:"header"===g?M:void 0},y),N&&t.createElement("div",{className:"".concat(h,"-extra")},b)),t.createElement(_a,A({visible:a,leavedClassName:"".concat(h,"-content-hidden")},C,{forceRender:l,removeOnLeave:w}),(function(e,n){var o=e.className,r=e.style;return t.createElement($c,{ref:n,prefixCls:h,className:o,classNames:d,style:r,styles:f,isActive:a,forceRender:l,role:m?"tabpanel":void 0},S)})))})),Ic=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function Pc(e,n,o){return Array.isArray(e)?function(e,n){var o=n.prefixCls,r=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return e.map((function(e,n){var d=e.children,p=e.label,f=e.key,h=e.collapsible,g=e.onItemClick,m=e.destroyInactivePanel,v=Lt(e,Ic),b=String(null!=f?f:n),y=null!=h?h:i,x=null!=m?m:a,C=!1;return C=r?l[0]===b:l.indexOf(b)>-1,t.createElement(Mc,A({},v,{prefixCls:o,key:b,panelKey:b,isActive:C,accordion:r,openMotion:c,expandIcon:u,header:p,collapsible:y,onItemClick:function(e){"disabled"!==y&&(s(e),null==g||g(e))},destroyInactivePanel:x}),d)}))}(e,o):H(n).map((function(e,n){return function(e,n,o){if(!e)return null;var r=o.prefixCls,i=o.accordion,a=o.collapsible,s=o.destroyInactivePanel,l=o.onItemClick,c=o.activeKey,u=o.openMotion,d=o.expandIcon,p=e.key||String(n),f=e.props,h=f.header,g=f.headerClass,m=f.destroyInactivePanel,v=f.collapsible,b=f.onItemClick,y=!1;y=i?c[0]===p:c.indexOf(p)>-1;var x=null!=v?v:a,C={key:p,panelKey:p,header:h,headerClass:g,isActive:y,prefixCls:r,destroyInactivePanel:null!=m?m:s,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==b||b(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(C).forEach((function(e){void 0===C[e]&&delete C[e]})),t.cloneElement(e,C))}(e,n,o)}))}function Lc(e){var t=e;if(!Array.isArray(t)){var n=T(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var jc=t.forwardRef((function(e,n){var o=e.prefixCls,r=void 0===o?"rc-collapse":o,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,p=e.openMotion,f=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,m=e.onChange,v=e.items,b=D(r,c),y=bt(Si([],{value:h,onChange:function(e){return null==m?void 0:m(e)},defaultValue:g,postState:Lc}),2),x=y[0],C=y[1];U(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=Pc(v,u,{prefixCls:r,accordion:l,openMotion:p,expandIcon:f,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return C((function(){return l?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter((function(t){return t!==e})):[].concat(lt(x),[e])}))},activeKey:x});return t.createElement("div",A({ref:n,className:b,style:s,role:l?"tablist":void 0},zs(e,{aria:!0,data:!0})),w)})),Dc=Object.assign(jc,{Panel:Mc});Dc.Panel;const Ac=e.forwardRef(((t,n)=>{if("production"!==process.env.NODE_ENV){zo("Collapse.Panel").deprecated(!("disabled"in t),"disabled",'collapsible="disabled"')}const{getPrefixCls:o}=e.useContext(ai),{prefixCls:r,className:i,showArrow:a=!0}=t,s=o("collapse",r),l=D({[`${s}-no-arrow`]:!a},i);return e.createElement(Dc.Panel,Object.assign({ref:n},t,{prefixCls:s,className:l}))})),Tc=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`}}}),Rc=e=>({animationDuration:e,animationFillMode:"both"}),_c=e=>({animationDuration:e,animationFillMode:"both"}),zc=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:Object.assign(Object.assign({},Rc(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},_c(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Bc=new Eo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Hc=new Eo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Fc=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[zc(o,Bc,Hc,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Wc=new Eo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vc=new Eo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Kc=new Eo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qc=new Eo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Xc=new Eo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Uc=new Eo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Gc={"move-up":{inKeyframes:new Eo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Eo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Wc,outKeyframes:Vc},"move-left":{inKeyframes:Kc,outKeyframes:qc},"move-right":{inKeyframes:Xc,outKeyframes:Uc}},Yc=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Gc[t];return[zc(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Qc=new Eo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Zc=new Eo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Jc=new Eo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),eu=new Eo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),tu=new Eo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),nu=new Eo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ou=new Eo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ru=new Eo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),iu={"slide-up":{inKeyframes:Qc,outKeyframes:Zc},"slide-down":{inKeyframes:Jc,outKeyframes:eu},"slide-left":{inKeyframes:tu,outKeyframes:nu},"slide-right":{inKeyframes:ou,outKeyframes:ru}},au=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=iu[t];return[zc(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},su=new Eo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),lu=new Eo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),cu=new Eo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),uu=new Eo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),du=new Eo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pu=new Eo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),fu={zoom:{inKeyframes:su,outKeyframes:lu},"zoom-big":{inKeyframes:cu,outKeyframes:uu},"zoom-big-fast":{inKeyframes:cu,outKeyframes:uu},"zoom-left":{inKeyframes:new Eo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Eo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Eo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Eo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:du,outKeyframes:pu},"zoom-down":{inKeyframes:new Eo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Eo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},hu=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=fu[t];return[zc(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},gu=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSizeLG:g,lineHeight:m,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:w,fontSizeIcon:S,contentPadding:k,fontHeight:E,fontHeightLG:O}=e,$=`${Qt(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},qi(e)),{backgroundColor:r,border:$,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Qt(l)} ${Qt(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:m,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:S,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:s,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(x).sub(o).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Qt(l)} ${Qt(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},mu=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},vu=e=>{const{componentCls:t,headerBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},bu=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var yu=Zi("Collapse",(e=>{const t=$i(e,{collapseHeaderPaddingSM:`${Qt(e.paddingXS)} ${Qt(e.paddingSM)}`,collapseHeaderPaddingLG:`${Qt(e.padding)} ${Qt(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[gu(t),vu(t),bu(t),mu(t),Tc(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const xu=e.forwardRef(((t,n)=>{const{getPrefixCls:o,direction:r,collapse:i}=e.useContext(ai),{prefixCls:a,className:s,rootClassName:l,style:c,bordered:u=!0,ghost:d,size:p,expandIconPosition:f="start",children:h,expandIcon:g}=t,m=Dl((e=>{var t;return null!==(t=null!=p?p:e)&&void 0!==t?t:"middle"})),v=o("collapse",a),b=o(),[y,x,C]=yu(v);if("production"!==process.env.NODE_ENV){const e=zo("Collapse");"production"!==process.env.NODE_ENV&&e("left"!==f&&"right"!==f,"deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.")}const w=e.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),S=null!=g?g:null==i?void 0:i.expandIcon,k=e.useCallback((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="function"==typeof S?S(t):e.createElement(Oc,{rotate:t.isActive?90:void 0,"aria-label":t.isActive?"expanded":"collapsed"});return Fs(n,(()=>{var e;return{className:D(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${v}-arrow`)}}))}),[S,v]),E=D(`${v}-icon-position-${w}`,{[`${v}-borderless`]:!u,[`${v}-rtl`]:"rtl"===r,[`${v}-ghost`]:!!d,[`${v}-${m}`]:"middle"!==m},null==i?void 0:i.className,s,l,x,C),O=Object.assign(Object.assign({},wl(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),$=e.useMemo((()=>h?H(h).map(((e,t)=>{var n,o;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(o=e.key)&&void 0!==o?o:String(t),{disabled:r,collapsible:i}=e.props;return Fs(e,Object.assign(Object.assign({},rt(e.props,["disabled"])),{key:n,collapsible:null!=i?i:r?"disabled":void 0}))}return e})):null),[h]);return y(e.createElement(Dc,Object.assign({ref:n,openMotion:O},rt(t,["rootClassName"]),{expandIcon:k,prefixCls:v,className:E,style:Object.assign(Object.assign({},null==i?void 0:i.style),c)}),$))}));"production"!==process.env.NODE_ENV&&(xu.displayName="Collapse");var Cu=Object.assign(xu,{Panel:Ac});const wu=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return $i(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},Su=e=>{var t,n,o,r,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:Ur(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Ur(l),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Ur(c),f=((e,t)=>{const{r:n,g:o,b:r,a:i}=e.toRgb(),a=new lc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*o+.114*r>192})(new Sc(e.colorBgSolid),"#fff")?"#000":"#fff";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",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,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,solidTextColor:f,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},ku=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Qt(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({},Gi(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"}}}},Eu=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Ou=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),$u=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Nu=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Mu=(e,t,n,o,r,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},Eu(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),Iu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Nu(e))}),Pu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Lu=(e,t,n,o)=>{const r=o&&["link","text"].includes(o)?Pu:Iu;return Object.assign(Object.assign({},r(e)),Eu(e.componentCls,t,n))},ju=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Lu(e,o,r))}),Du=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Lu(e,o,r))}),Au=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Tu=(e,t,n,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Lu(e,n,o))}),Ru=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Lu(e,o,r,n))}),_u=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ju(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Au(e)),Tu(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Ru(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Mu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),zu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Du(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Au(e)),Tu(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ru(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Mu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Bu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ju(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Du(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Au(e)),Tu(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ru(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ru(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Mu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Hu=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:_u(e),[`${t}-color-primary`]:zu(e),[`${t}-color-dangerous`]:Bu(e)}},Fu=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Du(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ru(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ju(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ru(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Wu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:r,lineHeight:i,height:o,padding:`${Qt(c)} ${Qt(s)}`,borderRadius:a,[`&${u}`]:{width:o,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Ou(e)},{[`${n}${n}-round${t}`]:$u(e)}]},Vu=e=>{const t=$i(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Wu(t,e.componentCls)},Ku=e=>{const t=$i(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Wu(t,`${e.componentCls}-sm`)},qu=e=>{const t=$i(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Wu(t,`${e.componentCls}-lg`)},Xu=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Uu=Zi("Button",(e=>{const t=wu(e);return[ku(t),Vu(t),Ku(t),qu(t),Xu(t),Hu(t),Fu(t),rc(t)]}),Su,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Gu(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",s=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Yu(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Qu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},Gu(e,o,t)),Yu(n,o,t))}}function Zu(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 Ju(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Zu(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const ed=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% + ${Qt(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% + ${Qt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var td=ea(["Button","compact"],(e=>{const t=wu(e);return[Qu(t),Ju(t),ed(t)]}),Su),nd=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const od={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},rd=t.forwardRef(((e,n)=>{var o,i,a,s;const{loading:c=!1,prefixCls:h,color:g,variant:m,type:v,danger:b=!1,shape:y="default",size:x,styles:C,disabled:w,className:S,rootClassName:k,children:E,icon:O,iconPosition:$="start",ghost:N=!1,block:M=!1,htmlType:I="button",classNames:P,style:L={},autoInsertSpace:j}=e,A=nd(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),T=v||"default",[R,_]=d((()=>{if(g&&m)return[g,m];const e=od[T]||[];return b?["danger",e[1]]:e}),[v,g,m,b]),z="danger"===R?"dangerous":R,{getPrefixCls:B,direction:H,button:F}=r(ai),W=null===(o=null!=j?j:null==F?void 0:F.autoInsertSpace)||void 0===o||o,V=B("btn",h),[K,q,X]=Uu(V),U=r(ci),G=null!=w?w:U,Y=r(Kl),Q=d((()=>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}}(c)),[c]),[Z,J]=u(Q.loading),[ee,te]=u(!1),ne=pe(n,f()),oe=1===p.count(E)&&!O&&!Yl(_);l((()=>{let e=null;return Q.delay>0?e=setTimeout((()=>{e=null,J(!0)}),Q.delay):J(Q.loading),function(){e&&(clearTimeout(e),e=null)}}),[Q]),l((()=>{if(!ne||!ne.current||!W)return;const e=ne.current.textContent;oe&&Xl(e)?ee||te(!0):ee&&te(!1)}),[ne]);const re=t.useCallback((t=>{var n;Z||G?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,Z,G]);if("production"!==process.env.NODE_ENV){const e=zo("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof O&&O.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${O}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(N&&Yl(_)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ie,compactItemClassnames:ae}=Hl(V,H),se={large:"lg",small:"sm",middle:void 0},le=Dl((e=>{var t,n;return null!==(n=null!==(t=null!=x?x:ie)&&void 0!==t?t:Y)&&void 0!==n?n:e})),ce=le&&null!==(i=se[le])&&void 0!==i?i:"",ue=Z?"loading":O,de=rt(A,["navigate"]),fe=D(V,q,X,{[`${V}-${y}`]:"default"!==y&&y,[`${V}-${T}`]:T,[`${V}-dangerous`]:b,[`${V}-color-${z}`]:z,[`${V}-variant-${_}`]:_,[`${V}-${ce}`]:ce,[`${V}-icon-only`]:!E&&0!==E&&!!ue,[`${V}-background-ghost`]:N&&!Yl(_),[`${V}-loading`]:Z,[`${V}-two-chinese-chars`]:ee&&W&&!Z,[`${V}-block`]:M,[`${V}-rtl`]:"rtl"===H,[`${V}-icon-end`]:"end"===$},ae,S,k,null==F?void 0:F.className),he=Object.assign(Object.assign({},null==F?void 0:F.style),L),ge=D(null==P?void 0:P.icon,null===(a=null==F?void 0:F.classNames)||void 0===a?void 0:a.icon),me=Object.assign(Object.assign({},(null==C?void 0:C.icon)||{}),(null===(s=null==F?void 0:F.styles)||void 0===s?void 0:s.icon)||{}),ve=O&&!Z?t.createElement(Zl,{prefixCls:V,className:ge,style:me},O):t.createElement(nc,{existIcon:!!O,prefixCls:V,loading:Z}),be=E||0===E?Ql(E,oe&&W):null;if(void 0!==de.href)return K(t.createElement("a",Object.assign({},de,{className:D(fe,{[`${V}-disabled`]:G}),href:G?void 0:de.href,style:he,onClick:re,ref:ne,tabIndex:G?-1:0}),ve,be));let ye=t.createElement("button",Object.assign({},A,{type:I,className:fe,style:he,onClick:re,disabled:G,ref:ne}),ve,be,!!ae&&t.createElement(td,{key:"compact",prefixCls:V}));return Yl(_)||(ye=t.createElement(jl,{component:"Button",disabled:Z},ye)),K(ye)})),id=rd;function ad(e){return!!(null==e?void 0:e.then)}id.Group=t=>{const{getPrefixCls:n,direction:o}=e.useContext(ai),{prefixCls:r,size:i,className:a}=t,s=Vl(t,["prefixCls","size","className"]),l=n("btn-group",r),[,,c]=Vi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}if("production"!==process.env.NODE_ENV){const e=zo("Button.Group");"production"!==process.env.NODE_ENV&&e(!i||["large","small","middle"].includes(i),"usage","Invalid prop `size`.")}const d=D(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===o},a,c);return e.createElement(Kl.Provider,{value:i},e.createElement("div",Object.assign({},s,{className:d})))},id.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(id.displayName="Button");const sd=t=>{const{type:n,children:o,prefixCls:r,buttonProps:i,close:a,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=t,p=e.useRef(!1),f=e.useRef(null),[h,g]=Ci(!1),m=function(){null==a||a.apply(void 0,arguments)};e.useEffect((()=>{let e=null;return s&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return e.createElement(id,Object.assign({},Ul(n),{onClick:e=>{if(p.current)return;if(p.current=!0,!d)return void m();let t;if(l){if(t=d(e),u&&!ad(t))return p.current=!1,void m(e)}else if(d.length)t=d(a),p.current=!1;else if(t=d(),!ad(t))return void m();(e=>{ad(e)&&(g(!0),e.then((function(){g(!1,!0),m.apply(void 0,arguments),p.current=!1}),(e=>{if(g(!1,!0),p.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:r},i,{ref:f}),o)},ld=t.createContext({}),{Provider:cd}=ld,ud=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:o,isSilent:i,mergedOkCancel:a,rootPrefixCls:s,close:l,onCancel:c,onConfirm:u}=r(ld);return a?t.createElement(sd,{isSilent:i,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==u||u(!1)},autoFocus:"cancel"===e,buttonProps:n,prefixCls:`${s}-btn`},o):null},dd=()=>{const{autoFocusButton:e,close:n,isSilent:o,okButtonProps:i,rootPrefixCls:a,okTextLocale:s,okType:l,onConfirm:c,onOk:u}=r(ld);return t.createElement(sd,{isSilent:o,type:l||"primary",actionFn:u,close:function(){null==n||n.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:i,prefixCls:`${a}-btn`},s)};var pd,fd=e.createContext(null),hd=[];function gd(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var o,r,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";Pt("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),o=l,r=c}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,f=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),It(t),{width:p,height:f}}function md(e){return"undefined"==typeof document?0:(void 0===pd&&(pd=gd()),pd.width)}function vd(e){return"undefined"!=typeof document&&e&&e instanceof Element?gd(e):{width:0,height:0}}var bd="rc-util-locker-".concat(Date.now()),yd=0;function xd(t){var n=!!t,o=bt(e.useState((function(){return yd+=1,"".concat(bd,"_").concat(yd)})),1)[0];on((function(){if(n){var e=vd(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Pt("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else It(o);return function(){It(o)}}),[n,o])}var Cd=function(e){return!1!==e&&(xt()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},wd=e.forwardRef((function(t,n){var o=t.open,r=t.autoLock,i=t.getContainer,a=t.debug,s=t.autoDestroy,l=void 0===s||s,c=t.children,u=bt(e.useState(o),2),d=u[0],p=u[1],f=d||o;"production"!==process.env.NODE_ENV&&U(xt()||!o,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),e.useEffect((function(){(l||o)&&p(o)}),[o,l]);var h=bt(e.useState((function(){return Cd(i)})),2),g=h[0],m=h[1];e.useEffect((function(){var e=Cd(i);m(null!=e?e:null)}));var v=function(t,n){var o=bt(e.useState((function(){if(!xt())return null;var e=document.createElement("div");return"production"!==process.env.NODE_ENV&&n&&e.setAttribute("data-debug",n),e})),1)[0],r=e.useRef(!1),i=e.useContext(fd),a=bt(e.useState(hd),2),s=a[0],l=a[1],c=i||(r.current?void 0:function(e){l((function(t){return[e].concat(lt(t))}))});function u(){o.parentElement||document.body.appendChild(o),r.current=!0}function d(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),r.current=!1}return on((function(){return t?i?i(u):u():d(),d}),[t]),on((function(){s.length&&(s.forEach((function(e){return e()})),l(hd))}),[s]),[o,c]}(f&&!g,a),b=bt(v,2),y=b[0],x=b[1],w=null!=g?g:y;xd(r&&o&&xt()&&(w===y||w===document.body));var S=null;c&&he(c)&&n&&(S=c.ref);var k=fe(S,n);if(!f||!xt()||void 0===g)return null;var E=!1===w||!1,O=c;return n&&(O=e.cloneElement(c,{ref:k})),e.createElement(fd.Provider,{value:x},E?O:C(O,w))}));"production"!==process.env.NODE_ENV&&(wd.displayName="Portal");var Sd=e.createContext({});var kd=0,Ed=J({},e).useId,Od=Ed?function(e){var t=Ed();return e||("test"===process.env.NODE_ENV?"test-id":t)}:function(t){var n=bt(e.useState("ssr-id"),2),o=n[0],r=n[1];return e.useEffect((function(){var e=kd;kd+=1,r("rc_unique_".concat(e))}),[]),t||("test"===process.env.NODE_ENV?"test-id":o)};function $d(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function Nd(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}var Md=e.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),Id={width:0,height:0,overflow:"hidden",outline:"none"},Pd={outline:"none"},Ld=t.forwardRef((function(e,n){var o=e.prefixCls,r=e.className,i=e.style,s=e.title,l=e.ariaId,c=e.footer,u=e.closable,p=e.closeIcon,f=e.onClose,h=e.children,g=e.bodyStyle,m=e.bodyProps,v=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,x=e.holderRef,C=e.visible,w=e.forceRender,S=e.width,k=e.height,E=e.classNames,O=e.styles,$=t.useContext(Sd).panel,N=fe(x,$),M=a(),I=a();t.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=M.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===I.current?M.current.focus({preventScroll:!0}):e||t!==M.current||I.current.focus({preventScroll:!0})}}}));var P={};void 0!==S&&(P.width=S),void 0!==k&&(P.height=k);var L=c?t.createElement("div",{className:D("".concat(o,"-footer"),null==E?void 0:E.footer),style:J({},null==O?void 0:O.footer)},c):null,j=s?t.createElement("div",{className:D("".concat(o,"-header"),null==E?void 0:E.header),style:J({},null==O?void 0:O.header)},t.createElement("div",{className:"".concat(o,"-title"),id:l},s)):null,R=d((function(){return"object"===T(u)&&null!==u?u:u?{closeIcon:null!=p?p:t.createElement("span",{className:"".concat(o,"-close-x")})}:{}}),[u,p,o]),_=zs(R,!0),z="object"===T(u)&&u.disabled,B=u?t.createElement("button",A({type:"button",onClick:f,"aria-label":"Close"},_,{className:"".concat(o,"-close"),disabled:z}),R.closeIcon):null,H=t.createElement("div",{className:D("".concat(o,"-content"),null==E?void 0:E.content),style:null==O?void 0:O.content},B,j,t.createElement("div",A({className:D("".concat(o,"-body"),null==E?void 0:E.body),style:J(J({},g),null==O?void 0:O.body)},m),h),L);return t.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?l:null,"aria-modal":"true",ref:N,style:J(J({},i),P),className:D(o,r),onMouseDown:b,onMouseUp:y},t.createElement("div",{ref:M,tabIndex:0,style:Pd},t.createElement(Md,{shouldUpdate:C||w},v?v(H):H)),t.createElement("div",{tabIndex:0,ref:I,style:Id}))}));"production"!==process.env.NODE_ENV&&(Ld.displayName="Panel");var jd=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.title,i=t.style,s=t.className,l=t.visible,c=t.forceRender,u=t.destroyOnClose,d=t.motionName,p=t.ariaId,f=t.onVisibleChanged,h=t.mousePosition,g=a(),m=bt(e.useState(),2),v=m[0],b=m[1],y={};function x(){var e,t,n,o,r,i=(e=g.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow,n.left+=Nd(r),n.top+=Nd(r,!0),n);b(h&&(h.x||h.y)?"".concat(h.x-i.left,"px ").concat(h.y-i.top,"px"):"")}return v&&(y.transformOrigin=v),e.createElement(_a,{visible:l,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:c,motionName:d,removeOnLeave:u,ref:g},(function(a,l){var c=a.className,u=a.style;return e.createElement(Ld,A({},t,{ref:n,title:r,ariaId:p,prefixCls:o,holderRef:l,style:J(J(J({},u),i),y),className:D(s,c)}))}))}));jd.displayName="Content";var Dd=function(t){var n=t.prefixCls,o=t.style,r=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return e.createElement(_a,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},(function(t,r){var a=t.className,l=t.style;return e.createElement("div",A({ref:r,style:J(J({},l),o),className:D("".concat(n,"-mask"),a,s)},i))}))},Ad=function(t){var n=t.prefixCls,o=void 0===n?"rc-dialog":n,r=t.zIndex,i=t.visible,s=void 0!==i&&i,c=t.keyboard,u=void 0===c||c,d=t.focusTriggerAfterClose,p=void 0===d||d,f=t.wrapStyle,h=t.wrapClassName,g=t.wrapProps,m=t.onClose,v=t.afterOpenChange,b=t.afterClose,y=t.transitionName,x=t.animation,C=t.closable,w=void 0===C||C,S=t.mask,k=void 0===S||S,E=t.maskTransitionName,O=t.maskAnimation,$=t.maskClosable,N=void 0===$||$,M=t.maskStyle,I=t.maskProps,P=t.rootClassName,L=t.classNames,j=t.styles;"production"!==process.env.NODE_ENV&&(["wrapStyle","bodyStyle","maskStyle"].forEach((function(e){V(!(e in t),"".concat(e," is deprecated, please use styles instead."))})),"wrapClassName"in t&&V(!1,"wrapClassName is deprecated, please use classNames instead."));var T=a(),R=a(),_=a(),z=bt(e.useState(s),2),B=z[0],H=z[1],F=Od();function W(e){null==m||m(e)}var K=a(!1),q=a(),X=null;N&&(X=function(e){K.current?K.current=!1:R.current===e.target&&W(e)}),l((function(){s&&(H(!0),Ct(R.current,document.activeElement)||(T.current=document.activeElement))}),[s]),l((function(){return function(){clearTimeout(q.current)}}),[]);var U=J(J(J({zIndex:r},f),null==j?void 0:j.wrapper),{},{display:B?null:"none"});return e.createElement("div",A({className:D("".concat(o,"-root"),P)},zs(t,{data:!0})),e.createElement(Dd,{prefixCls:o,visible:k&&s,motionName:$d(o,E,O),style:J(J({zIndex:r},M),null==j?void 0:j.mask),maskProps:I,className:null==L?void 0:L.mask}),e.createElement("div",A({tabIndex:-1,onKeyDown:function(e){if(u&&e.keyCode===Xs.ESC)return e.stopPropagation(),void W(e);s&&e.keyCode===Xs.TAB&&_.current.changeActive(!e.shiftKey)},className:D("".concat(o,"-wrap"),h,null==L?void 0:L.wrapper),ref:R,onClick:X,style:U},g),e.createElement(jd,A({},t,{onMouseDown:function(){clearTimeout(q.current),K.current=!0},onMouseUp:function(){q.current=setTimeout((function(){K.current=!1}))},ref:_,closable:w,ariaId:F,prefixCls:o,visible:s&&B,onClose:W,onVisibleChanged:function(e){if(e)Ct(R.current,document.activeElement)||null===(t=_.current)||void 0===t||t.focus();else{if(H(!1),k&&T.current&&p){try{T.current.focus({preventScroll:!0})}catch(e){}T.current=null}B&&(null==b||b())}var t;null==v||v(e)},motionName:$d(o,y,x)}))))},Td=function(t){var n=t.visible,o=t.getContainer,r=t.forceRender,i=t.destroyOnClose,a=void 0!==i&&i,s=t.afterClose,l=t.panelRef,c=bt(e.useState(n),2),u=c[0],d=c[1],p=e.useMemo((function(){return{panel:l}}),[l]);return e.useEffect((function(){n&&d(!0)}),[n]),r||!a||u?e.createElement(Sd.Provider,{value:p},e.createElement(wd,{open:n||r||u,autoDestroy:!1,getContainer:o,autoLock:n||u},e.createElement(Ad,A({},t,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}})))):null};Td.displayName="Dialog";var Rd="RC_FORM_INTERNAL_HOOKS",_d=function(){U(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},zd=e.createContext({getFieldValue:_d,getFieldsValue:_d,getFieldError:_d,getFieldWarning:_d,getFieldsError:_d,isFieldsTouched:_d,isFieldTouched:_d,isFieldValidating:_d,isFieldsValidating:_d,resetFields:_d,setFields:_d,setFieldValue:_d,setFieldsValue:_d,validateFields:_d,submit:_d,getInternalHooks:function(){return _d(),{dispatch:_d,initEntityValue:_d,registerField:_d,useSubscribe:_d,setInitialValues:_d,destroyForm:_d,setCallbacks:_d,registerWatch:_d,getFields:_d,setValidateMessages:_d,setPreserve:_d,getInitialValue:_d}}}),Bd=e.createContext(null);function Hd(e){return null==e?[]:Array.isArray(e)?e:[e]}function Fd(){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 Wd=Fd();function Vd(e){var t="function"==typeof Map?new Map:void 0;return Vd=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(Ge())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&qe(r,n.prototype),r}(e,arguments,Ue(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),qe(n,e)},Vd(e)}var Kd=/%[sdj%]/g,qd=function(){};function Xd(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 Ud(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Kd,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}break;default:return e}})):e}function Gd(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 Yd(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var s=o;o+=1,s<r?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(qd=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 Qd=function(){Xe(t,Vd(Error));var e=Ze(t);function t(n,o){var r;return We(this,t),Q(Ye(r=e.call(this,"Async Validation Error")),"errors",void 0),Q(Ye(r),"fields",void 0),r.errors=n,r.fields=o,r}return Ke(t)}();function Zd(e,t,n,o,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,lt(e[n]||[]))})),t}(e);Yd(a,n,(function(e){return o(e),e.length?i(new Qd(e,Xd(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return o(u),u.length?i(new Qd(u,Xd(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?Yd(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,lt(e||[])),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function Jd(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function ep(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===T(o)&&"object"===T(e[n])?e[n]=J(J({},e[n]),o):e[n]=o}return e}var tp,np="enum",op=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Gd(t,i||e.type)||o.push(Ud(r.messages.required,e.fullField))},rp=/^(([^<>()\[\]\\.,;:\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,}))$/,ip=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,ap={integer:function(e){return ap.number(e)&&parseInt(e,10)===e},float:function(e){return ap.number(e)&&!ap.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"===T(e)&&!ap.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(rp)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(tp)return tp;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],i="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return tp=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ip)}},sp={required:op,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(Ud(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)op(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?ap[i](t)||o.push(Ud(r.messages.types[i],e.fullField,e.type)):i&&T(t)!==e.type&&o.push(Ud(r.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,o,r){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&o.push(Ud(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(Ud(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(Ud(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(Ud(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[np]=Array.isArray(e[np])?e[np]:[],-1===e[np].indexOf(t)&&o.push(Ud(r.messages[np],e.fullField,e[np].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(Ud(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(Ud(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},lp=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t,i)&&!e.required)return n();sp.required(e,t,o,a,r,i),Gd(t,i)||sp.type(e,t,o,a,r)}n(a)},cp={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t,"string")&&!e.required)return n();sp.required(e,t,o,i,r,"string"),Gd(t,"string")||(sp.type(e,t,o,i,r),sp.range(e,t,o,i,r),sp.pattern(e,t,o,i,r),!0===e.whitespace&&sp.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r),void 0!==t&&sp.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r),void 0!==t&&(sp.type(e,t,o,i,r),sp.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r),void 0!==t&&sp.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r),Gd(t)||sp.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r),void 0!==t&&(sp.type(e,t,o,i,r),sp.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r),void 0!==t&&(sp.type(e,t,o,i,r),sp.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();sp.required(e,t,o,i,r,"array"),null!=t&&(sp.type(e,t,o,i,r),sp.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r),void 0!==t&&sp.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r),void 0!==t&&sp.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t,"string")&&!e.required)return n();sp.required(e,t,o,i,r),Gd(t,"string")||sp.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t,"date")&&!e.required)return n();var a;if(sp.required(e,t,o,i,r),!Gd(t,"date"))a=t instanceof Date?t:new Date(t),sp.type(e,a,o,i,r),a&&sp.range(e,a.getTime(),o,i,r)}n(i)},url:lp,hex:lp,email:lp,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":T(t);sp.required(e,t,o,i,r,a),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Gd(t)&&!e.required)return n();sp.required(e,t,o,i,r)}n(i)}},up=function(){function e(t){We(this,e),Q(this,"rules",null),Q(this,"_messages",Wd),this.define(t)}return Ke(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==T(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))}},{key:"messages",value:function(e){return e&&(this._messages=ep(Fd(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,o),Promise.resolve(o);if(r.messages){var a=this.messages();a===Wd&&(a=Fd()),ep(a,r.messages),r.messages=a}else r.messages=this.messages();var s={};(r.keys||Object.keys(this.rules)).forEach((function(e){var r=n.rules[e],i=o[e];r.forEach((function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=J({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":T(i)))),(a="function"==typeof a?{validator:a}:J({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:i,source:o,field:e}))}))}));var l={};return Zd(s,r,(function(t,n){var i,a=t.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==T(a.fields)&&"object"!==T(a.defaultField));function c(e,t){return J(J({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(lt(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!r.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Jd(a,o));if(r.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Jd(a,o)):r.error&&(d=[r.error(a,Ud(r.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=J(J({},p),t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(c.bind(null,e))}));var h=new e(f);h.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),h.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,lt(d)),e&&e.length&&t.push.apply(t,lt(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,r);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,r)}catch(e){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,e),r.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,r=[],a={},s=0;s<e.length;s++)t=e[s],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,lt(t)):r.push(t);r.length?(a=Xd(r),i(r,a)):i(null,o)}(e)}),o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!cp.hasOwnProperty(e.type))throw new Error(Ud("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]?cp.required:cp[this.getType(e)]||void 0}}]),e}();Q(up,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");cp[e]=t})),Q(up,"warning",qd),Q(up,"messages",Wd),Q(up,"validators",cp);var dp="'${name}' is not a valid ${type}",pp={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:dp,method:dp,array:dp,object:dp,number:dp,date:dp,boolean:dp,integer:dp,float:dp,regexp:dp,email:dp,url:dp,hex:dp},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}"}},fp=up;function hp(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 gp="CODE_LOGIC_ERROR";function mp(e,t,n,o,r){return vp.apply(this,arguments)}function vp(){return vp=rl(nl().mark((function t(n,o,r,i,a){var s,l,c,u,d,p,f,h,g;return nl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(s=J({},r)).ruleIndex,fp.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(gp)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new fp(Q({},n,[s])),d=Do(pp,i.validateMessages),u.messages(d),p=[],t.prev=10,t.next=13,Promise.resolve(u.validate(Q({},n,o),J({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(p=t.t0.errors.map((function(t,n){var o=t.message,r=o===gp?d.default:o;return e.isValidElement(r)?e.cloneElement(r,{key:"error_".concat(n)}):r})));case 18:if(p.length||!c){t.next=23;break}return t.next=21,Promise.all(o.map((function(e,t){return mp("".concat(n,".").concat(t),e,c,i,a)})));case 21:return f=t.sent,t.abrupt("return",f.reduce((function(e,t){return[].concat(lt(e),lt(t))}),[]));case 23:return h=J(J({},r),{},{name:n,enum:(r.enum||[]).join(", ")},a),g=p.map((function(e){return"string"==typeof e?hp(e,h):e})),t.abrupt("return",g);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),vp.apply(this,arguments)}function bp(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=J(J({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){U(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));U(r=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),r&&i.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n==!!r?o-i:n?1:-1}));if(!0===r)a=new Promise(function(){var e=rl(nl().mark((function e(n,r){var a,c,u;return nl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,mp(s,t,c,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return mp(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return xp.apply(this,arguments)}(c):function(e){return yp.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function yp(){return(yp=rl(nl().mark((function e(t){return nl().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,lt(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xp(){return xp=rl(nl().mark((function e(t){var n;return nl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),xp.apply(this,arguments)}function Cp(e){return Hd(e)}function wp(e,t){var n={};return t.forEach((function(t){var o=Mo(e,t);n=Po(n,t,o)})),n}function Sp(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return kp(t,e,n)}))}function kp(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 Ep(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===T(t.target)&&e in t.target?t.target[e]:t}function Op(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(lt(e.slice(0,n)),[r],lt(e.slice(n,t)),lt(e.slice(t+1,o))):i<0?[].concat(lt(e.slice(0,t)),lt(e.slice(t+1,n+1)),[r],lt(e.slice(n+1,o))):e}var $p=["name"],Np=[];function Mp(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var Ip=function(){Xe(n,e.Component);var t=Ze(n);function n(o){var r;(We(this,n),Q(Ye(r=t.call(this,o)),"state",{resetCount:0}),Q(Ye(r),"cancelRegisterFunc",null),Q(Ye(r),"mounted",!1),Q(Ye(r),"touched",!1),Q(Ye(r),"dirty",!1),Q(Ye(r),"validatePromise",void 0),Q(Ye(r),"prevValidating",void 0),Q(Ye(r),"errors",Np),Q(Ye(r),"warnings",Np),Q(Ye(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Cp(o)),r.cancelRegisterFunc=null})),Q(Ye(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(lt(void 0===n?[]:n),lt(t)):[]})),Q(Ye(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),Q(Ye(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Q(Ye(r),"metaCache",null),Q(Ye(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=J(J({},r.getMeta()),{},{destroy:e});jt(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Q(Ye(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),p=r.getValue(c),f=t&&Sp(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||jt(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Np,r.warnings=Np,r.triggerMetaEvent()),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Np,r.warnings=Np,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i&&Mp(i,e,c,d,p,n))return void r.reRender();break;case"setField":var h=n.data;if(f)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||Np),"warnings"in h&&(r.warnings=h.warnings||Np),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&Sp(t,u,!0))return void r.reRender();if(i&&!u.length&&Mp(i,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Cp).some((function(e){return Sp(n.relatedFields,e)})))return void r.reRender();break;default:if(f||(!s.length||u.length||i)&&Mp(i,e,c,d,p,n))return void r.reRender()}!0===i&&r.reRender()})),Q(Ye(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(rl(nl().mark((function o(){var a,s,c,u,d,p,f;return nl().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,p=r.getRules(),i&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||Hd(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(f=bp(t,n,p,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Np;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?Np:r;t?o.push.apply(o,lt(i)):n.push.apply(n,lt(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",f);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=Np,r.warnings=Np,r.triggerMetaEvent(),r.reRender()),l})),Q(Ye(r),"isFieldValidating",(function(){return!!r.validatePromise})),Q(Ye(r),"isFieldTouched",(function(){return r.touched})),Q(Ye(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Rd).getInitialValue)(r.getNamePath())})),Q(Ye(r),"getErrors",(function(){return r.errors})),Q(Ye(r),"getWarnings",(function(){return r.warnings})),Q(Ye(r),"isListField",(function(){return r.props.isListField})),Q(Ye(r),"isList",(function(){return r.props.isList})),Q(Ye(r),"isPreserve",(function(){return r.props.preserve})),Q(Ye(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Q(Ye(r),"getOnlyChild",(function(t){if("function"==typeof t){var n=r.getMeta();return J(J({},r.getOnlyChild(t(r.getControlled(),n,r.props.fieldContext))),{},{isFunction:!0})}var o=H(t);return 1===o.length&&e.isValidElement(o[0])?{child:o[0],isFunction:!1}:{child:o,isFunction:!1}})),Q(Ye(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Mo(e||t(!0),n)})),Q(Ye(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),f=u.getInternalHooks,h=u.getFieldsValue,g=f(Rd).dispatch,m=r.getValue(),v=c||function(e){return Q({},l,e)},b=e[o],y=void 0!==n?v(m):{};"production"!==process.env.NODE_ENV&&y&&Object.keys(y).forEach((function(e){U("function"!=typeof y[e],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(e,")"))}));var x=J(J({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):Ep.apply(void 0,[l].concat(n)),s&&(e=s(e,m,h(!0))),g({type:"updateValue",namePath:p,value:e}),b&&b.apply(void 0,n)},Hd(d||[]).forEach((function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:p,triggerName:e})}})),x})),o.fieldContext)&&(0,(0,o.fieldContext.getInternalHooks)(Rd).initEntityValue)(Ye(r));return r}return Ke(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(Rd).registerField;this.cancelRegisterFunc=o(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,n=this.state.resetCount,o=this.props.children,r=this.getOnlyChild(o),i=r.child;return r.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(U(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),n}();function Pp(t){var n=t.name,o=Lt(t,$p),r=e.useContext(zd),i=e.useContext(Bd),a=void 0!==n?Cp(n):void 0,s="keep";return o.isListField||(s="_".concat((a||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===o.preserve&&o.isListField&&a.length<=1&&U(!1,"`preserve` should not apply on Form.List fields."),e.createElement(Ip,A({key:s,name:a,isListField:!!i},o,{fieldContext:r}))}Q(Ip,"contextType",zd),Q(Ip,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Lp="__@field_split__";function jp(e){return e.map((function(e){return"".concat(T(e),":").concat(e)})).join(Lp)}var Dp=function(){function e(){We(this,e),Q(this,"kvs",new Map)}return Ke(e,[{key:"set",value:function(e,t){this.kvs.set(jp(e),t)}},{key:"get",value:function(e){return this.kvs.get(jp(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(jp(e))}},{key:"map",value:function(e){return lt(this.kvs.entries()).map((function(t){var n=bt(t,2),o=n[0],r=n[1],i=o.split(Lp);return e({key:i.map((function(e){var t=bt(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}(),Ap=["name"],Tp=Ke((function e(t){var n=this;We(this,e),Q(this,"formHooked",!1),Q(this,"forceRootUpdate",void 0),Q(this,"subscribable",!0),Q(this,"store",{}),Q(this,"fieldEntities",[]),Q(this,"initialValues",{}),Q(this,"callbacks",{}),Q(this,"validateMessages",null),Q(this,"preserve",null),Q(this,"lastValidatePromise",null),Q(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}})),Q(this,"getInternalHooks",(function(e){return e===Rd?(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}):(U(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Q(this,"useSubscribe",(function(e){n.subscribable=e})),Q(this,"prevWithoutPreserves",null),Q(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=Do(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=Po(r,n,Mo(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),Q(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new Dp;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),Q(this,"getInitialValue",(function(e){var t=Mo(n.initialValues,e);return e.length?Do(t):t})),Q(this,"setCallbacks",(function(e){n.callbacks=e})),Q(this,"setValidateMessages",(function(e){n.validateMessages=e})),Q(this,"setPreserve",(function(e){n.preserve=e})),Q(this,"watchList",[]),Q(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Q(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),Q(this,"timeoutId",null),Q(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||U(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),Q(this,"updateStore",(function(e){n.store=e})),Q(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Q(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Dp;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Q(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Cp(e);return t.get(n)||{INVALIDATE_NAME_PATH:Cp(e)}}))})),Q(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===T(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&s.push(c)}else s.push(c)})),wp(n.store,s.map(Cp))})),Q(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Cp(e);return Mo(n.store,t)})),Q(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:Cp(e[n]),errors:[],warnings:[]}}))})),Q(this,"getFieldError",(function(e){n.warningUnhooked();var t=Cp(e);return n.getFieldsError([t])[0].errors})),Q(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Cp(e);return n.getFieldsError([t])[0].warnings})),Q(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],s=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(Cp),s=!1):(r=null,s=i):(r=i.map(Cp),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!r)return s?l.every((function(e){return c(e)||e.isList()})):l.some(c);var u=new Dp;r.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(lt(t),[e])}))}))}));var d=function(e){return e.some(c)},p=u.map((function(e){return e.value}));return s?p.every(d):p.some(d)})),Q(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Q(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(Cp);return t.some((function(e){var t=e.getNamePath();return Sp(o,t)&&e.isFieldValidating()}))})),Q(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Q(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Dp,o=n.getFieldEntities(!0);o.forEach((function(e){var n=e.props.initialValue,o=e.getNamePath();if(void 0!==n){var r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}}));var r;e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach((function(e){var n,o=t.get(e);o&&(n=r).push.apply(n,lt(lt(o).map((function(e){return e.entity}))))}))):r=o,r.forEach((function(o){if(void 0!==o.props.initialValue){var r=o.getNamePath();if(void 0!==n.getInitialValue(r))U(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=t.get(r);if(i&&i.size>1)U(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);o.isListField()||e.skipExist&&void 0!==a||n.updateStore(Po(n.store,r,lt(i)[0].value))}}}}))})),Q(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Do(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Cp);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Po(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),Q(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=Lt(e,Ap),a=Cp(r);o.push(a),"value"in i&&n.updateStore(Po(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),Q(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=J(J({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Q(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===Mo(n.store,o)&&n.updateStore(Po(n.store,o,t))}})),Q(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Q(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!kp(e.getNamePath(),t)}))){var s=n.store;n.updateStore(Po(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Q(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}})),Q(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=J(J({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),Q(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(lt(o))}),o})),Q(this,"updateValue",(function(e,t){var o=Cp(e),r=n.store;n.updateStore(Po(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(wp(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(lt(i)))})),Q(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=Do(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Q(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Q(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new Dp;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Cp(t);r.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}}))}(e),o})),Q(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new Dp;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var n=t.name;return Sp(e,n)}));a.length&&o(a,r)}})),Q(this,"validateFields",(function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(Cp):[],s=[],l=String(Date.now()),c=new Set,u=r||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||Sp(a,t,d)){var o=e.validateRules(J({validateMessages:J(J({},pp),n.validateMessages)},r));s.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,lt(n)):o.push.apply(o,lt(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var f=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=f,f.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 h=f.then((function(){return n.lastValidatePromise===f?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!==f})}));h.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),h})),Q(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 Rp(t){var n=e.useRef(),o=bt(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var r=new Tp((function(){o({})}));n.current=r.getForm()}return[n.current]}var _p=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),zp=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Bp=function(t,n){var o=t.name,r=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=void 0===c?"form":c,d=t.validateMessages,p=t.validateTrigger,f=void 0===p?"onChange":p,h=t.onValuesChange,g=t.onFieldsChange,m=t.onFinish,v=t.onFinishFailed,b=t.clearOnDestroy,y=Lt(t,zp),x=e.useRef(null),C=e.useContext(_p),w=bt(Rp(a),1)[0],S=w.getInternalHooks(Rd),k=S.useSubscribe,E=S.setInitialValues,O=S.setCallbacks,$=S.setValidateMessages,N=S.setPreserve,M=S.destroyForm;e.useImperativeHandle(n,(function(){return J(J({},w),{},{nativeElement:x.current})})),e.useEffect((function(){return C.registerForm(o,w),function(){C.unregisterForm(o)}}),[C,w,o]),$(J(J({},C.validateMessages),d)),O({onValuesChange:h,onFieldsChange:function(e){if(C.triggerFormChange(o,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];g.apply(void 0,[e].concat(n))}},onFinish:function(e){C.triggerFormFinish(o,e),m&&m(e)},onFinishFailed:v}),N(s);var I,P=e.useRef(null);E(r,!P.current),P.current||(P.current=!0),e.useEffect((function(){return function(){return M(b)}}),[]);var L="function"==typeof l;L?I=l(w.getFieldsValue(!0),w):I=l;k(!L);var j=e.useRef();e.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==T(e)||"object"!==T(t))return!1;var n=Object.keys(e),o=Object.keys(t);return lt(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r}))})(j.current||[],i||[])||w.setFields(i||[]),j.current=i}),[i,w]);var D=e.useMemo((function(){return J(J({},w),{},{validateTrigger:f})}),[w,f]),R=e.createElement(Bd.Provider,{value:null},e.createElement(zd.Provider,{value:D},I));return!1===u?R:e.createElement(u,A({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),R)};function Hp(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Fp="production"!==process.env.NODE_ENV?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__");U(a(t).current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var Wp=e.forwardRef(Bp);Wp.FormProvider=function(t){var n=t.validateMessages,o=t.onFormChange,r=t.onFormFinish,i=t.children,a=e.useContext(_p),s=e.useRef({});return e.createElement(_p.Provider,{value:J(J({},a),{},{validateMessages:J(J({},a.validateMessages),n),triggerFormChange:function(e,t){o&&o(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=J(J({},s.current),{},Q({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=J({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},Wp.Field=Pp,Wp.List=function(t){var n=t.name,o=t.initialValue,r=t.children,i=t.rules,a=t.validateTrigger,s=t.isListField,l=e.useContext(zd),c=e.useContext(Bd),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=Cp(l.prefixName)||[];return[].concat(lt(e),lt(Cp(n)))}),[l.prefixName,n]),p=e.useMemo((function(){return J(J({},l),{},{prefixName:d})}),[l,d]),f=e.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!=typeof r?(U(!1,"Form.List only accepts function as children."),null):e.createElement(Bd.Provider,{value:f},e.createElement(zd.Provider,{value:p},e.createElement(Pp,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:o,isList:!0,isListField:null!=s?s:!!c},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(lt(u.keys.slice(0,t)),[u.id],lt(u.keys.slice(t))),i([].concat(lt(n.slice(0,t)),[e],lt(n.slice(t))))):("production"!==process.env.NODE_ENV&&(t<0||t>n.length)&&U(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(lt(u.keys),[u.id]),i([].concat(lt(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Op(u.keys,e,t),i(Op(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[],"production"!==process.env.NODE_ENV&&U(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(p.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))},Wp.useForm=Rp,Wp.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t[1],s=void 0===i?{}:i,c=function(e){return e&&!!e._init}(s)?{form:s}:s,p=c.form,f=bt(u(),2),h=f[0],g=f[1],m=d((function(){return Hp(h)}),[h]),v=a(m);v.current=m;var b=r(zd),y=p||b,x=y&&y._init;"production"!==process.env.NODE_ENV&&U(2===t.length&&!p||x,"useWatch requires a form instance since it can not auto detect from context.");var C=Cp(o),w=a(C);return w.current=C,Fp(C),l((function(){if(x){var e=y.getFieldsValue,t=(0,y.getInternalHooks)(Rd).registerWatch,n=function(e,t){var n=c.preserve?t:e;return"function"==typeof o?o(n):Mo(n,w.current)},r=t((function(e,t){var o=n(e,t),r=Hp(o);v.current!==r&&(v.current=r,g(o))})),i=n(e(),e(!0));return h!==i&&g(i),r}}),[x]),h};const Vp=e.createContext({});"production"!==process.env.NODE_ENV&&(Vp.displayName="FormItemInputContext");const Kp=t=>{let{children:n,status:o,override:i}=t;const a=r(Vp),s=d((()=>{const e=Object.assign({},a);return i&&delete e.isFormItemInput,o&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[o,i,a]);return e.createElement(Vp.Provider,{value:s},n)},qp=i(void 0),Xp=e=>{const{space:n,form:o,children:r}=e;if(null==r)return null;let i=r;return o&&(i=t.createElement(Kp,{override:!0,status:!0},i)),n&&(i=t.createElement(Fl,null,i)),i};function Up(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Gp(e){const{closable:n,closeIcon:o}=e||{};return t.useMemo((()=>{if(!n&&(!1===n||!1===o||null===o))return!1;if(void 0===n&&void 0===o)return null;let e={closeIcon:"boolean"!=typeof o&&null!==o?o:void 0};return n&&"object"==typeof n&&(e=Object.assign(Object.assign({},e),n)),e}),[n,o])}function Yp(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const Qp={};function Zp(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qp;const r=Gp(e),i=Gp(n),a="boolean"!=typeof r&&!!(null==r?void 0:r.disabled),s=t.useMemo((()=>Object.assign({closeIcon:t.createElement(Is,null)},o)),[o]),l=t.useMemo((()=>!1!==r&&(r?Yp(s,i,r):!1!==i&&(i?Yp(s,i):!!s.closable&&s))),[r,i,s]);return t.useMemo((()=>{if(!1===l)return[!1,null,a];const{closeIconRender:e}=s,{closeIcon:n}=l;let o=n;if(null!=o){e&&(o=e(n));const r=zs(l,!0);Object.keys(r).length&&(o=t.isValidElement(o)?t.cloneElement(o,r):t.createElement("span",Object.assign({},r),o))}return[!0,o,a]}),[l,s])}var Jp=function(e){if(xt()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function ef(e,t){return Array.isArray(e)||void 0===t?Jp(e):function(e,t){if(!Jp(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const tf=t=>{const{prefixCls:n,className:o,style:r,size:i,shape:a}=t,s=D({[`${n}-lg`]:"large"===i,[`${n}-sm`]:"small"===i}),l=D({[`${n}-circle`]:"circle"===a,[`${n}-square`]:"square"===a,[`${n}-round`]:"round"===a}),c=e.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return e.createElement("span",{className:D(n,s,l,o),style:Object.assign(Object.assign({},c),r)})},nf=new Eo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),of=e=>({height:e,lineHeight:Qt(e)}),rf=e=>Object.assign({width:e},of(e)),af=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:nf,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),sf=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},of(e)),lf=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},rf(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},rf(r)),[`${t}${t}-sm`]:Object.assign({},rf(i))}},cf=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},sf(t,s)),[`${o}-lg`]:Object.assign({},sf(r,s)),[`${o}-sm`]:Object.assign({},sf(i,s))}},uf=e=>Object.assign({width:e},of(e)),df=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:o,borderRadiusSM:r,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:o,borderRadius:r},uf(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},uf(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},pf=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},ff=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},of(e)),hf=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(o).mul(2).equal(),minWidth:s(o).mul(2).equal()},ff(o,s))},pf(e,o,n)),{[`${n}-lg`]:Object.assign({},ff(r,s))}),pf(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ff(i,s))}),pf(e,i,`${n}-sm`))},gf=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},rf(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},rf(c)),[`${n}-sm`]:Object.assign({},rf(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[o]:{marginBlockStart:f,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},hf(e)),lf(e)),cf(e)),df(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},af(e))}}};var mf=Zi("Skeleton",(e=>{const{componentCls:t,calc:n}=e,o=$i(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[gf(o)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});const vf=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},bf=t=>{const{prefixCls:n,className:o,style:r,rows:i}=t,a=lt(new Array(i)).map(((n,o)=>e.createElement("li",{key:o,style:{width:vf(o,t)}})));return e.createElement("ul",{className:D(n,o),style:r},a)},yf=t=>{let{prefixCls:n,className:o,width:r,style:i}=t;return e.createElement("h3",{className:D(n,o),style:Object.assign({width:r},i)})};function xf(e){return e&&"object"==typeof e?e:{}}const Cf=t=>{const{prefixCls:n,loading:o,className:r,rootClassName:i,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=t,{getPrefixCls:f,direction:h,skeleton:g}=e.useContext(ai),m=f("skeleton",n),[v,b,y]=mf(m);if(o||!("loading"in t)){const t=!!l,n=!!c,o=!!u;let s,f;if(t){const t=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(n,o)),xf(l));s=e.createElement("div",{className:`${m}-header`},e.createElement(tf,Object.assign({},t)))}if(n||o){let r,i;if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(t,o)),xf(c));r=e.createElement(yf,Object.assign({},n))}if(o){const o=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(t,n)),xf(u));i=e.createElement(bf,Object.assign({},o))}f=e.createElement("div",{className:`${m}-content`},r,i)}const x=D(m,{[`${m}-with-avatar`]:t,[`${m}-active`]:d,[`${m}-rtl`]:"rtl"===h,[`${m}-round`]:p},null==g?void 0:g.className,r,i,b,y);return v(e.createElement("div",{className:x,style:Object.assign(Object.assign({},null==g?void 0:g.style),a)},s,f))}return null!=s?s:null};function wf(){}Cf.Button=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,block:a=!1,size:s="default"}=t,{getPrefixCls:l}=e.useContext(ai),c=l("skeleton",n),[u,d,p]=mf(c),f=rt(t,["prefixCls"]),h=D(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},o,r,d,p);return u(e.createElement("div",{className:h},e.createElement(tf,Object.assign({prefixCls:`${c}-button`,size:s},f))))},Cf.Avatar=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,shape:a="circle",size:s="default"}=t,{getPrefixCls:l}=e.useContext(ai),c=l("skeleton",n),[u,d,p]=mf(c),f=rt(t,["prefixCls","className"]),h=D(c,`${c}-element`,{[`${c}-active`]:i},o,r,d,p);return u(e.createElement("div",{className:h},e.createElement(tf,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},f))))},Cf.Input=t=>{const{prefixCls:n,className:o,rootClassName:r,active:i,block:a,size:s="default"}=t,{getPrefixCls:l}=e.useContext(ai),c=l("skeleton",n),[u,d,p]=mf(c),f=rt(t,["prefixCls"]),h=D(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:a},o,r,d,p);return u(e.createElement("div",{className:h},e.createElement(tf,Object.assign({prefixCls:`${c}-input`,size:s},f))))},Cf.Image=t=>{const{prefixCls:n,className:o,rootClassName:r,style:i,active:a}=t,{getPrefixCls:s}=e.useContext(ai),l=s("skeleton",n),[c,u,d]=mf(l),p=D(l,`${l}-element`,{[`${l}-active`]:a},o,r,u,d);return c(e.createElement("div",{className:p},e.createElement("div",{className:D(`${l}-image`,o),style:i},e.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},e.createElement("title",null,"Image placeholder"),e.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},Cf.Node=t=>{const{prefixCls:n,className:o,rootClassName:r,style:i,active:a,children:s}=t,{getPrefixCls:l}=e.useContext(ai),c=l("skeleton",n),[u,d,p]=mf(c),f=D(c,`${c}-element`,{[`${c}-active`]:a},d,o,r,p);return u(e.createElement("div",{className:f},e.createElement("div",{className:D(`${c}-image`,o),style:i},s)))},"production"!==process.env.NODE_ENV&&(Cf.displayName="Skeleton");const Sf=e.createContext({add:wf,remove:wf});const kf=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:o}=r(ld);return t.createElement(id,Object.assign({onClick:o},e),n)},Ef=()=>{const{confirmLoading:e,okButtonProps:n,okType:o,okTextLocale:i,onOk:a}=r(ld);return t.createElement(id,Object.assign({},Ul(o),{loading:e,onClick:a},n),i)};function Of(e,n){return t.createElement("span",{className:`${e}-close-x`},n||t.createElement(Is,{className:`${e}-close-icon`}))}const $f=e=>{const{okText:n,okType:o="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Jo("Modal",Qo()),p={confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:n||(null==d?void 0:d.okText),cancelTextLocale:r||(null==d?void 0:d.cancelText),okType:o,onOk:a,onCancel:s},f=t.useMemo((()=>p),lt(Object.values(p)));let h;return"function"==typeof u||void 0===u?(h=t.createElement(t.Fragment,null,t.createElement(kf,null),t.createElement(Ef,null)),"function"==typeof u&&(h=u(h,{OkBtn:Ef,CancelBtn:kf})),h=t.createElement(cd,{value:f},h)):h=u,t.createElement(ui,{disabled:!1},h)};function Nf(e){return{position:e,inset:0}}const Mf=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Nf("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Nf("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Fc(e)}]},If=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Qt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},qi(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Qt(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Qt(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Gi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Qt(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Pf=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Lf=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return $i(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},jf=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Qt(e.paddingMD)} ${Qt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Qt(e.padding)} ${Qt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Qt(e.paddingXS)} ${Qt(e.padding)}`:0,footerBorderTop:e.wireframe?`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Qt(2*e.padding)} ${Qt(2*e.padding)} ${Qt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var Df=Zi("Modal",(e=>{const t=Lf(e);return[If(t),Pf(t),Mf(t),hu(t,"zoom")]}),jf,{unitless:{titleLineHeight:!0}}),Af=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let Tf;const Rf=e=>{Tf={x:e.pageX,y:e.pageY},setTimeout((()=>{Tf=null}),100)};xt()&&window.document.documentElement&&document.documentElement.addEventListener("click",Rf,!0);const _f=t=>{var n;const{getPopupContainer:o,getPrefixCls:r,direction:i,modal:a}=e.useContext(ai),s=e=>{const{onCancel:n}=t;null==n||n(e)};if("production"!==process.env.NODE_ENV){const e=zo("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;e.deprecated(!(o in t),o,r)}))}const{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:p,centered:f,getContainer:h,focusTriggerAfterClose:g=!0,style:m,visible:v,width:b=520,footer:y,classNames:x,styles:C,children:w,loading:S}=t,k=Af(t,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),E=r("modal",l),O=r(),$=qs(E),[N,M,I]=Df(E,$),P=D(p,{[`${E}-centered`]:!!f,[`${E}-wrap-rtl`]:"rtl"===i}),L=null===y||S?null:e.createElement($f,Object.assign({},t,{onOk:e=>{const{onOk:n}=t;null==n||n(e)},onCancel:s})),[j,A,T]=Zp(Up(t),Up(a),{closable:!0,closeIcon:e.createElement(Is,{className:`${E}-close-icon`}),closeIconRender:e=>Of(E,e)}),R=function(t){const n=e.useContext(Sf),o=e.useRef();return xi((e=>{if(e){const r=t?e.querySelector(t):e;n.add(r),o.current=r}else n.remove(o.current)}))}(`.${E}-content`),[_,z]=tl("Modal",k.zIndex);return N(e.createElement(Xp,{form:!0,space:!0},e.createElement(Qs.Provider,{value:z},e.createElement(Td,Object.assign({width:b},k,{zIndex:_,getContainer:void 0===h?o:h,prefixCls:E,rootClassName:D(M,u,I,$),footer:L,visible:null!=d?d:v,mousePosition:null!==(n=k.mousePosition)&&void 0!==n?n:Tf,onClose:s,closable:j?{disabled:T,closeIcon:A}:j,closeIcon:A,focusTriggerAfterClose:g,transitionName:Sl(O,"zoom",t.transitionName),maskTransitionName:Sl(O,"fade",t.maskTransitionName),className:D(M,c,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),m),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),x),{wrapper:D(P,null==x?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),C),panelRef:R}),S?e.createElement(Cf,{active:!0,title:!1,paragraph:{rows:4},className:`${E}-body-skeleton`}):w))))},zf=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Qt(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var Bf=ea(["Modal","confirm"],(e=>{const t=Lf(e);return[zf(t)]}),jf,{order:-1e3}),Hf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ff(t){const{prefixCls:n,icon:o,okText:r,cancelText:i,confirmPrefixCls:a,type:s,okCancel:l,footer:c,locale:u}=t,d=Hf(t,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if("production"!==process.env.NODE_ENV){const e=zo("Modal");"production"!==process.env.NODE_ENV&&e(!("string"==typeof o&&o.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${o}\` at https://ant.design/components/icon`)}let p=o;if(!o&&null!==o)switch(s){case"info":p=e.createElement(Ts,null);break;case"success":p=e.createElement(ks,null);break;case"error":p=e.createElement($s,null);break;default:p=e.createElement(js,null)}const f=null!=l?l:"confirm"===s,h=null!==t.autoFocusButton&&(t.autoFocusButton||"ok"),[g]=Jo("Modal"),m=u||g,v=r||(f?null==m?void 0:m.okText:null==m?void 0:m.justOkText),b=i||(null==m?void 0:m.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:f},d),x=e.useMemo((()=>y),lt(Object.values(y))),C=e.createElement(e.Fragment,null,e.createElement(ud,null),e.createElement(dd,null)),w=void 0!==t.title&&null!==t.title,S=`${a}-body`;return e.createElement("div",{className:`${a}-body-wrapper`},e.createElement("div",{className:D(S,{[`${S}-has-title`]:w})},p,e.createElement("div",{className:`${a}-paragraph`},w&&e.createElement("span",{className:`${a}-title`},t.title),e.createElement("div",{className:`${a}-content`},t.content))),void 0===c||"function"==typeof c?e.createElement(cd,{value:x},e.createElement("div",{className:`${a}-btns`},"function"==typeof c?c(C,{OkBtn:dd,CancelBtn:ud}):C)):c,e.createElement(Bf,{prefixCls:n}))}const Wf=t=>{const{close:n,zIndex:o,afterClose:r,open:i,keyboard:a,centered:s,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:f,bodyStyle:h,closable:g=!1,closeIcon:m,modalRender:v,focusTriggerAfterClose:b,onConfirm:y,styles:x}=t;if("production"!==process.env.NODE_ENV){const e=zo("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach((n=>{let[o,r]=n;e.deprecated(!(o in t),o,r)}))}const C=`${d}-confirm`,w=t.width||416,S=t.style||{},k=void 0===t.mask||t.mask,E=void 0!==t.maskClosable&&t.maskClosable,O=D(C,`${C}-${t.type}`,{[`${C}-rtl`]:"rtl"===u},t.className),[,$]=Vi(),N=e.useMemo((()=>void 0!==o?o:$.zIndexPopupBase+1e3),[o,$]);return e.createElement(_f,{prefixCls:d,className:O,wrapClassName:D({[`${C}-centered`]:!!t.centered},p),onCancel:()=>{null==n||n({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:Sl(f||"","zoom",t.transitionName),maskTransitionName:Sl(f||"","fade",t.maskTransitionName),mask:k,maskClosable:E,style:S,styles:Object.assign({body:h,mask:c},x),width:w,zIndex:N,afterClose:r,keyboard:a,centered:s,getContainer:l,closable:g,closeIcon:m,modalRender:v,focusTriggerAfterClose:b},e.createElement(Ff,Object.assign({},t,{confirmPrefixCls:C})))},Vf=t=>{const{rootPrefixCls:n,iconPrefixCls:o,direction:r,theme:i}=t;return e.createElement(ls,{prefixCls:n,iconPrefixCls:o,direction:r,theme:i},e.createElement(Wf,Object.assign({},t)))};"production"!==process.env.NODE_ENV&&(Wf.displayName="ConfirmDialog",Vf.displayName="ConfirmDialogWrapper");const Kf=[];let qf="";function Xf(){return qf}const Uf=e=>{var n,o;const{prefixCls:i,getContainer:a,direction:s}=e,l=Qo(),c=r(ai),u=Xf()||c.getPrefixCls(),d=i||`${u}-modal`;let p=a;return!1===p&&(p=void 0,"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&Bo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),t.createElement(Vf,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=s?s:c.direction,locale:null!==(o=null===(n=c.locale)||void 0===n?void 0:n.Modal)&&void 0!==o?o:l,getContainer:p}))};function Gf(e){const n={getPrefixCls:(e,t)=>t||(e?`${is()}-${e}`:is()),getIconPrefixCls:as,getRootPrefixCls:()=>ts||is(),getTheme:()=>os,holderRender:rs};"production"===process.env.NODE_ENV||n.holderRender||Ja("Modal");const o=document.createDocumentFragment();let r,i=Object.assign(Object.assign({},e),{close:l,open:!0});function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a;r.some((e=>null==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(lt(r.slice(1)))));for(let e=0;e<Kf.length;e++){if(Kf[e]===l){Kf.splice(e,1);break}}ml(o)}function s(e){clearTimeout(r),r=setTimeout((()=>{const r=n.getPrefixCls(void 0,Xf()),i=n.getIconPrefixCls(),a=n.getTheme(),s=t.createElement(Uf,Object.assign({},e));pl(t.createElement(ls,{prefixCls:r,iconPrefixCls:i,theme:a},n.holderRender?n.holderRender(s):s),o)}))}function l(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,s(i)}return s(i),Kf.push(l),{destroy:l,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),s(i)}}}function Yf(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Qf(e){return Object.assign(Object.assign({},e),{type:"info"})}function Zf(e){return Object.assign(Object.assign({},e),{type:"success"})}function Jf(e){return Object.assign(Object.assign({},e),{type:"error"})}function eh(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var th=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const nh=(t,n)=>{var o,{afterClose:r,config:i}=t,a=th(t,["afterClose","config"]);const[s,l]=e.useState(!0),[c,u]=e.useState(i),{direction:d,getPrefixCls:p}=e.useContext(ai),f=p("modal"),h=p(),g=function(){var e;l(!1);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r;n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=c.onCancel)||void 0===e||(r=e).call.apply(r,[c,()=>{}].concat(lt(n.slice(1)))))};e.useImperativeHandle(n,(()=>({destroy:g,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(o=c.okCancel)&&void 0!==o?o:"confirm"===c.type,[v]=Jo("Modal",Xo.Modal);return e.createElement(Vf,Object.assign({prefixCls:f,rootPrefixCls:h},c,{close:g,open:s,afterClose:()=>{var e;r(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(m?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:c.direction||d,cancelText:c.cancelText||(null==v?void 0:v.cancelText)},a))};var oh=e.forwardRef(nh);let rh=0;const ih=e.memo(e.forwardRef(((t,n)=>{const[o,r]=function(){const[t,n]=e.useState([]);return[t,e.useCallback((e=>(n((t=>[].concat(lt(t),[e]))),()=>{n((t=>t.filter((t=>t!==e))))})),[])]}();return e.useImperativeHandle(n,(()=>({patchElement:r})),[]),e.createElement(e.Fragment,null,o)})));function ah(t){return n=>e.createElement(ls,{theme:{token:{motion:!1,zIndexPopupBase:0}}},e.createElement(t,Object.assign({},n)))}const sh=(t,n,o,r)=>ah((i=>{const{prefixCls:a,style:s}=i,l=e.useRef(null),[c,u]=e.useState(0),[d,p]=e.useState(0),[f,h]=Si(!1,{value:i.open}),{getPrefixCls:g}=e.useContext(ai),m=g(n||"select",a);e.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),p(t.offsetWidth)})),t=setInterval((()=>{var n;const r=o?`.${o(m)}`:`.${m}-dropdown`,i=null===(n=l.current)||void 0===n?void 0:n.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:f,visible:f,getPopupContainer:()=>l.current});r&&(v=r(v));const b={paddingBottom:c,position:"relative",minWidth:d};return e.createElement("div",{ref:l,style:b},e.createElement(t,Object.assign({},v)))}));var lh=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))},ch=function(t){var n=t.className,o=t.customizeIcon,r=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l="function"==typeof o?o(r):o;return e.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==l?l:e.createElement("span",{className:D(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},uh=e.createContext(null);function dh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=e.useRef(null),o=e.useRef(null);return e.useEffect((function(){return function(){window.clearTimeout(o.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(o.current),o.current=window.setTimeout((function(){n.current=null}),t)}]}var ph=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],fh=void 0;function hh(t,n){var o=t.prefixCls,r=t.invalidate,i=t.item,a=t.renderItem,s=t.responsive,l=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,p=t.style,f=t.children,h=t.display,g=t.order,m=t.component,v=void 0===m?"div":m,b=Lt(t,ph),y=s&&!h;function x(e){c(u,e)}e.useEffect((function(){return function(){x(null)}}),[]);var C,w=a&&i!==fh?a(i,{index:g}):f;r||(C={opacity:y?0:1,height:y?0:fh,overflowY:y?"hidden":fh,order:s?g:fh,pointerEvents:y?"none":fh,position:y?"absolute":fh});var S={};y&&(S["aria-hidden"]=!0);var k=e.createElement(v,A({className:D(!r&&o,d),style:J(J({},C),p)},S,b,{ref:n}),w);return s&&(k=e.createElement(ot,{onResize:function(e){x(e.offsetWidth)},disabled:l},k)),k}var gh=e.forwardRef(hh);function mh(){var t=e.useRef(null);return function(e){t.current||(t.current=[],function(e){if("undefined"==typeof MessageChannel)ht(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){w((function(){t.current.forEach((function(e){e()})),t.current=null}))}))),t.current.push(e)}}function vh(t,n){var o=bt(e.useState(n),2),r=o[0],i=o[1];return[r,xi((function(e){t((function(){i(e)}))}))]}gh.displayName="Item";var bh=t.createContext(null),yh=["component"],xh=["className"],Ch=["className"],wh=function(t,n){var o=e.useContext(bh);if(!o){var r=t.component,i=void 0===r?"div":r,a=Lt(t,yh);return e.createElement(i,A({},a,{ref:n}))}var s=o.className,l=Lt(o,xh),c=t.className,u=Lt(t,Ch);return e.createElement(bh.Provider,{value:null},e.createElement(gh,A({ref:n,className:D(s,c)},l,u)))},Sh=e.forwardRef(wh);Sh.displayName="RawItem";var kh=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Eh="responsive",Oh="invalidate";function $h(e){return"+ ".concat(e.length," ...")}function Nh(t,n){var o=t.prefixCls,r=void 0===o?"rc-overflow":o,i=t.data,a=void 0===i?[]:i,s=t.renderItem,l=t.renderRawItem,c=t.itemKey,p=t.itemWidth,f=void 0===p?10:p,g=t.ssr,m=t.style,v=t.className,b=t.maxCount,y=t.renderRest,x=t.renderRawRest,C=t.suffix,w=t.component,S=void 0===w?"div":w,k=t.itemComponent,E=t.onVisibleChange,O=Lt(t,kh),$="full"===g,N=mh(),M=bt(vh(N,null),2),I=M[0],P=M[1],L=I||0,j=bt(vh(N,new Map),2),T=j[0],R=j[1],_=bt(vh(N,0),2),z=_[0],B=_[1],H=bt(vh(N,0),2),F=H[0],W=H[1],V=bt(vh(N,0),2),K=V[0],q=V[1],X=bt(u(null),2),U=X[0],G=X[1],Y=bt(u(null),2),Q=Y[0],Z=Y[1],ee=e.useMemo((function(){return null===Q&&$?Number.MAX_SAFE_INTEGER:Q||0}),[Q,I]),te=bt(u(!1),2),ne=te[0],oe=te[1],re="".concat(r,"-item"),ie=Math.max(z,F),ae=b===Eh,se=a.length&&ae,le=b===Oh,ce=se||"number"==typeof b&&a.length>b,ue=d((function(){var e=a;return se?e=null===I&&$?a:a.slice(0,Math.min(a.length,L/f)):"number"==typeof b&&(e=a.slice(0,b)),e}),[a,f,I,b,se]),de=d((function(){return se?a.slice(ee+1):a.slice(ue.length)}),[a,ue,se,ee]),pe=h((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),fe=h(s||function(e){return e},[s]);function he(e,t,n){(Q!==e||void 0!==t&&t!==U)&&(Z(e),n||(oe(e<a.length-1),null==E||E(e)),void 0!==t&&G(t))}function ge(e,t){R((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function me(e){return T.get(pe(ue[e],e))}on((function(){if(L&&"number"==typeof ie&&ue){var e=K,t=ue.length,n=t-1;if(!t)return void he(0,null);for(var o=0;o<t;o+=1){var r=me(o);if($&&(r=r||0),void 0===r){he(o-1,void 0,!0);break}if(e+=r,0===n&&e<=L||o===n-1&&e+me(n)<=L){he(n,null);break}if(e+ie>L){he(o-1,e-r-K+F);break}}C&&me(0)+K>L&&G(null)}}),[L,T,F,K,pe,ue]);var ve=ne&&!!de.length,be={};null!==U&&se&&(be={position:"absolute",left:U,top:0});var ye={prefixCls:re,responsive:se,component:k,invalidate:le},xe=l?function(t,n){var o=pe(t,n);return e.createElement(bh.Provider,{key:o,value:J(J({},ye),{},{order:n,item:t,itemKey:o,registerSize:ge,display:n<=ee})},l(t,n))}:function(t,n){var o=pe(t,n);return e.createElement(gh,A({},ye,{order:n,key:o,item:t,renderItem:fe,itemKey:o,registerSize:ge,display:n<=ee}))},Ce={order:ve?ee:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){W(t),B(F)},display:ve},we=y||$h,Se=x?e.createElement(bh.Provider,{value:J(J({},ye),Ce)},x(de)):e.createElement(gh,A({},ye,Ce),"function"==typeof we?we(de):we),ke=e.createElement(S,A({className:D(!le&&r,v),style:m,ref:n},O),ue.map(xe),ce?Se:null,C&&e.createElement(gh,A({},ye,{responsive:ae,responsiveDisabled:!se,order:ee,className:"".concat(re,"-suffix"),registerSize:function(e,t){q(t)},display:!0,style:be}),C));return ae?e.createElement(ot,{onResize:function(e,t){P(t.clientWidth)},disabled:!se},ke):ke}var Mh=e.forwardRef(Nh);Mh.displayName="Overflow",Mh.Item=Sh,Mh.RESPONSIVE=Eh,Mh.INVALIDATE=Oh;var Ih=function(t,n){var o,r=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,p=t.activeDescendantId,f=t.value,h=t.maxLength,g=t.onKeyDown,m=t.onMouseDown,v=t.onChange,b=t.onPaste,y=t.onCompositionStart,x=t.onCompositionEnd,C=t.open,w=t.attrs,S=a||e.createElement("input",null),k=S,E=k.ref,O=k.props,$=O.onKeyDown,N=O.onChange,M=O.onMouseDown,I=O.onCompositionStart,P=O.onCompositionEnd,L=O.style;return V(!("maxLength"in S.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),S=e.cloneElement(S,J(J(J({type:"search"},O),{},{id:i,ref:pe(n,E),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:D("".concat(r,"-selection-search-input"),null===(o=S)||void 0===o||null===(o=o.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":C?p:void 0},w),{},{value:d?f:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:J(J({},L),{},{opacity:d?null:0}),onKeyDown:function(e){g(e),$&&$(e)},onMouseDown:function(e){m(e),M&&M(e)},onChange:function(e){v(e),N&&N(e)},onCompositionStart:function(e){y(e),I&&I(e)},onCompositionEnd:function(e){x(e),P&&P(e)},onPaste:b}))},Ph=e.forwardRef(Ih);function Lh(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"production"!==process.env.NODE_ENV&&(Ph.displayName="Input");var jh="undefined"!=typeof window&&window.document&&window.document.documentElement,Dh="test"!==process.env.NODE_ENV&&jh;function Ah(e){return["string","number"].includes(T(e))}function Th(e){var t=void 0;return e&&(Ah(e.title)?t=e.title.toString():Ah(e.label)&&(t=e.label.toString())),t}function Rh(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var _h=function(e){e.preventDefault(),e.stopPropagation()},zh=function(t){var n,o,r=t.id,i=t.prefixCls,a=t.values,s=t.open,l=t.searchValue,c=t.autoClearSearchValue,d=t.inputRef,p=t.placeholder,f=t.disabled,h=t.mode,g=t.showSearch,m=t.autoFocus,v=t.autoComplete,b=t.activeDescendantId,y=t.tabIndex,x=t.removeIcon,C=t.maxTagCount,w=t.maxTagTextLength,S=t.maxTagPlaceholder,k=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,E=t.tagRender,O=t.onToggleOpen,$=t.onRemove,N=t.onInputChange,M=t.onInputPaste,I=t.onInputKeyDown,P=t.onInputMouseDown,L=t.onInputCompositionStart,j=t.onInputCompositionEnd,A=e.useRef(null),T=bt(u(0),2),R=T[0],_=T[1],z=bt(u(!1),2),B=z[0],H=z[1],F="".concat(i,"-selection"),W=s||"multiple"===h&&!1===c||"tags"===h?l:"",V="tags"===h||"multiple"===h&&!1===c||g&&(s||B);n=function(){_(A.current.scrollWidth)},o=[W],Dh?e.useLayoutEffect(n,o):e.useEffect(n,o);var K=function(t,n,o,r,i){return e.createElement("span",{title:Th(t),className:D("".concat(F,"-item"),Q({},"".concat(F,"-item-disabled"),o))},e.createElement("span",{className:"".concat(F,"-item-content")},n),r&&e.createElement(ch,{className:"".concat(F,"-item-remove"),onMouseDown:_h,onClick:i,customizeIcon:x},"×"))},q=function(t,n,o,r,i,a){return e.createElement("span",{onMouseDown:function(e){_h(e),O(!s)}},E({label:n,value:t,disabled:o,closable:r,onClose:i,isMaxTag:!!a}))},X=e.createElement("div",{className:"".concat(F,"-search"),style:{width:R},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},e.createElement(Ph,{ref:d,open:s,prefixCls:i,id:r,inputElement:null,disabled:f,autoFocus:m,autoComplete:v,editable:V,activeDescendantId:b,value:W,onKeyDown:I,onMouseDown:P,onChange:N,onPaste:M,onCompositionStart:L,onCompositionEnd:j,tabIndex:y,attrs:zs(t,!0)}),e.createElement("span",{ref:A,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},W," ")),U=e.createElement(Mh,{prefixCls:"".concat(F,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!f&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var s=function(t){t&&t.stopPropagation(),$(e)};return"function"==typeof E?q(o,i,t,r,s):K(e,i,t,r,s)},renderRest:function(e){var t="function"==typeof k?k(e):k;return"function"==typeof E?q(void 0,t,!1,!1,void 0,!0):K({title:t},t,!1)},suffix:X,itemKey:Rh,maxCount:C});return e.createElement(e.Fragment,null,U,!a.length&&!W&&e.createElement("span",{className:"".concat(F,"-placeholder")},p))},Bh=function(t){var n=t.inputElement,o=t.prefixCls,r=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,p=t.values,f=t.placeholder,h=t.tabIndex,g=t.showSearch,m=t.searchValue,v=t.activeValue,b=t.maxLength,y=t.onInputKeyDown,x=t.onInputMouseDown,C=t.onInputChange,w=t.onInputPaste,S=t.onInputCompositionStart,k=t.onInputCompositionEnd,E=t.title,O=bt(e.useState(!1),2),$=O[0],N=O[1],M="combobox"===u,I=M||g,P=p[0],L=m||"";M&&v&&!$&&(L=v),e.useEffect((function(){M&&N(!1)}),[M,v]);var j=!("combobox"!==u&&!d&&!g)&&!!L,D=void 0===E?Th(P):E,A=e.useMemo((function(){return P?null:e.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},f)}),[P,j,f,o]);return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(o,"-selection-search")},e.createElement(Ph,{ref:i,prefixCls:o,id:r,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:I,activeDescendantId:c,value:L,onKeyDown:y,onMouseDown:x,onChange:function(e){N(!0),C(e)},onPaste:w,onCompositionStart:S,onCompositionEnd:k,tabIndex:h,attrs:zs(t,!0),maxLength:M?b:void 0})),!M&&P?e.createElement("span",{className:"".concat(o,"-selection-item"),title:D,style:j?{visibility:"hidden"}:void 0},P.label):null,A)},Hh=function(t,n){var o=a(null),r=a(!1),i=t.prefixCls,s=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,p=t.autoClearSearchValue,f=t.onSearch,h=t.onSearchSubmit,g=t.onToggleOpen,m=t.onInputKeyDown,v=t.domRef;e.useImperativeHandle(n,(function(){return{focus:function(e){o.current.focus(e)},blur:function(){o.current.blur()}}}));var b=bt(dh(0),2),y=b[0],x=b[1],C=a(null),w=function(e){!1!==f(e,!0,r.current)&&g(!0)},S={inputRef:o,onInputKeyDown:function(e){var t,n=e.which;n!==Xs.UP&&n!==Xs.DOWN||e.preventDefault(),m&&m(e),n!==Xs.ENTER||"tags"!==l||r.current||s||null==h||h(e.target.value),t=n,[Xs.ESC,Xs.SHIFT,Xs.BACKSPACE,Xs.TAB,Xs.WIN_KEY,Xs.ALT,Xs.META,Xs.WIN_KEY_RIGHT,Xs.CTRL,Xs.SEMICOLON,Xs.EQUALS,Xs.CAPS_LOCK,Xs.CONTEXT_MENU,Xs.F1,Xs.F2,Xs.F3,Xs.F4,Xs.F5,Xs.F6,Xs.F7,Xs.F8,Xs.F9,Xs.F10,Xs.F11,Xs.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(u&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");C.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&w(e.target.value)}},k="multiple"===l||"tags"===l?e.createElement(zh,A({},t,S)):e.createElement(Bh,A({},t,S));return e.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){o.current.focus()})):o.current.focus())},onMouseDown:function(e){var t=y();e.target===o.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==p&&f("",!0,!1),g())}},k)},Fh=e.forwardRef(Hh);function Wh(t){var n=t.prefixCls,o=t.align,r=t.arrow,i=t.arrowPos,a=r||{},s=a.className,l=a.content,c=i.x,u=void 0===c?0:c,d=i.y,p=void 0===d?0:d,f=e.useRef();if(!o||!o.points)return null;var h={position:"absolute"};if(!1!==o.autoArrow){var g=o.points[0],m=o.points[1],v=g[0],b=g[1],y=m[0],x=m[1];v!==y&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=p,b!==x&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return e.createElement("div",{ref:f,className:D("".concat(n,"-arrow"),s),style:h},l)}function Vh(t){var n=t.prefixCls,o=t.open,r=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(_a,A({},a,{motionAppear:!0,visible:o,removeOnLeave:!0}),(function(t){var o=t.className;return e.createElement("div",{style:{zIndex:r},className:D("".concat(n,"-mask"),o)})})):null}"production"!==process.env.NODE_ENV&&(Fh.displayName="Selector");var Kh=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));"production"!==process.env.NODE_ENV&&(Kh.displayName="PopupContent");var qh=e.forwardRef((function(t,n){var o=t.popup,r=t.className,i=t.prefixCls,a=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,p=t.onClick,f=t.mask,h=t.arrow,g=t.arrowPos,m=t.align,v=t.motion,b=t.maskMotion,y=t.forceRender,x=t.getPopupContainer,C=t.autoDestroy,w=t.portal,S=t.zIndex,k=t.onMouseEnter,E=t.onMouseLeave,O=t.onPointerEnter,$=t.onPointerDownCapture,N=t.ready,M=t.offsetX,I=t.offsetY,P=t.offsetR,L=t.offsetB,j=t.onAlign,T=t.onPrepare,R=t.stretch,_=t.targetWidth,z=t.targetHeight,B="function"==typeof o?o():o,H=c||u,F=(null==x?void 0:x.length)>0,W=bt(e.useState(!x||!F),2),V=W[0],K=W[1];if(on((function(){!V&&F&&s&&K(!0)}),[V,F,s]),!V)return null;var q="auto",X={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(N||!c){var U,G=m.points,Y=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),Q=Y&&"r"===G[0][1],Z=Y&&"b"===G[0][0];Q?(X.right=P,X.left=q):(X.left=M,X.right=q),Z?(X.bottom=L,X.top=q):(X.top=I,X.bottom=q)}var ee={};return R&&(R.includes("height")&&z?ee.height=z:R.includes("minHeight")&&z&&(ee.minHeight=z),R.includes("width")&&_?ee.width=_:R.includes("minWidth")&&_&&(ee.minWidth=_)),c||(ee.pointerEvents="none"),e.createElement(w,{open:y||H,getContainer:x&&function(){return x(s)},autoDestroy:C},e.createElement(Vh,{prefixCls:i,open:c,zIndex:S,mask:f,motion:b}),e.createElement(ot,{onResize:j,disabled:!c},(function(t){return e.createElement(_a,A({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:T,onEnterPrepare:T,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),(function(o,s){var l=o.className,u=o.style,f=D(i,l,r);return e.createElement("div",{ref:pe(t,n,s),className:f,style:J(J(J(J({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},X),ee),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:E,onPointerEnter:O,onClick:p,onPointerDownCapture:$},h&&e.createElement(Wh,{prefixCls:i,arrow:h,arrowPos:g,align:m}),e.createElement(Kh,{cache:!c&&!d},B))}))})))}));"production"!==process.env.NODE_ENV&&(qh.displayName="Popup");var Xh=e.forwardRef((function(t,n){var o=t.children,r=t.getTriggerDOMNode,i=he(o),a=e.useCallback((function(e){de(n,r?r(e):e)}),[r]),s=fe(a,me(o));return i?e.cloneElement(o,{ref:s}):o}));"production"!==process.env.NODE_ENV&&(Xh.displayName="TriggerWrapper");var Uh=e.createContext(null);function Gh(e){return e?Array.isArray(e)?e:[e]:[]}function Yh(){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 Qh(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function Zh(e){return e.ownerDocument.defaultView}function Jh(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=Zh(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function eg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function tg(e){return eg(parseFloat(e),0)}function ng(e,t){var n=J({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Zh(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=tg(i),g=tg(a),m=tg(s),v=tg(l),b=eg(Math.round(c.width/p*1e3)/1e3),y=eg(Math.round(c.height/u*1e3)/1e3),x=(p-f-m-v)*b,C=(u-d-h-g)*y,w=h*y,S=g*y,k=m*b,E=v*b,O=0,$=0;if("clip"===o){var N=tg(r);O=N*b,$=N*y}var M=c.x+k-O,I=c.y+w-$,P=M+c.width+2*O-k-E-x,L=I+c.height+2*$-w-S-C;n.left=Math.max(n.left,M),n.top=Math.max(n.top,I),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,L)}})),n}function og(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 rg(e,t){var n=bt(t||[],2),o=n[0],r=n[1];return[og(e.width,o),og(e.height,r)]}function ig(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function ag(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function sg(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var lg=["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 cg=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wd,n=e.forwardRef((function(n,o){var r=n.prefixCls,i=void 0===r?"rc-trigger-popup":r,a=n.children,s=n.action,l=void 0===s?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,p=n.defaultPopupVisible,f=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,m=n.mouseLeaveDelay,v=void 0===m?.1:m,b=n.focusDelay,y=n.blurDelay,x=n.mask,C=n.maskClosable,w=void 0===C||C,S=n.getPopupContainer,k=n.forceRender,E=n.autoDestroy,O=n.destroyPopupOnHide,$=n.popup,N=n.popupClassName,M=n.popupStyle,I=n.popupPlacement,P=n.builtinPlacements,L=void 0===P?{}:P,j=n.popupAlign,A=n.zIndex,T=n.stretch,R=n.getPopupClassNameFromAlign,_=n.fresh,z=n.alignPoint,B=n.onPopupClick,H=n.onPopupAlign,F=n.arrow,W=n.popupMotion,K=n.maskMotion,q=n.popupTransitionName,X=n.popupAnimation,U=n.maskTransitionName,G=n.maskAnimation,Y=n.className,Q=n.getTriggerDOMNode,Z=Lt(n,lg),te=E||O||!1,ne=bt(e.useState(!1),2),oe=ne[0],re=ne[1];on((function(){re(lh())}),[]);var ie=e.useRef({}),ae=e.useContext(Uh),se=e.useMemo((function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}}),[ae]),le=Od(),ce=bt(e.useState(null),2),ue=ce[0],de=ce[1],pe=e.useRef(null),fe=xi((function(e){pe.current=e,ee(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(le,e)})),he=bt(e.useState(null),2),ge=he[0],me=he[1],ve=e.useRef(null),be=xi((function(e){ee(e)&&ge!==e&&(me(e),ve.current=e)})),ye=e.Children.only(a),xe=(null==ye?void 0:ye.props)||{},Ce={},we=xi((function(e){var t,n,o=ge;return(null==o?void 0:o.contains(e))||(null===(t=ds(o))||void 0===t?void 0:t.host)===e||e===o||(null==ue?void 0:ue.contains(e))||(null===(n=ds(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(ie.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Se=Qh(i,W,X,q),ke=Qh(i,K,G,U),Ee=bt(e.useState(p||!1),2),Oe=Ee[0],$e=Ee[1],Ne=null!=d?d:Oe,Me=xi((function(e){void 0===d&&$e(e)}));on((function(){$e(d||!1)}),[d]);var Ie=e.useRef(Ne);Ie.current=Ne;var Pe=e.useRef([]);Pe.current=[];var Le=xi((function(e){var t;Me(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:Ne)!==e&&(Pe.current.push(e),null==f||f(e))})),je=e.useRef(),De=function(){clearTimeout(je.current)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;De(),0===t?Le(e):je.current=setTimeout((function(){Le(e)}),1e3*t)};e.useEffect((function(){return De}),[]);var Te=bt(e.useState(!1),2),Re=Te[0],_e=Te[1];on((function(e){e&&!Ne||_e(!0)}),[Ne]);var ze=bt(e.useState(null),2),Be=ze[0],He=ze[1],Fe=bt(e.useState(null),2),We=Fe[0],Ve=Fe[1],Ke=function(e){Ve([e.clientX,e.clientY])},qe=function(t,n,o,r,i,a,s){var l=bt(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),2),c=l[0],u=l[1],d=e.useRef(0),p=e.useMemo((function(){return n?Jh(n):[]}),[n]),f=e.useRef({});t||(f.current={});var h=xi((function(){if(n&&o&&t){var e,l,c,d,h,g=n,m=g.ownerDocument,v=Zh(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,C=g.style.left,w=g.style.top,S=g.style.right,k=g.style.bottom,E=g.style.overflow,O=J(J({},i[r]),a),$=m.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.appendChild($),$.style.left="".concat(g.offsetLeft,"px"),$.style.top="".concat(g.offsetTop,"px"),$.style.position=x,$.style.height="".concat(g.offsetHeight,"px"),$.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(o))h={x:o[0],y:o[1],width:0,height:0};else{var N,M,I=o.getBoundingClientRect();I.x=null!==(N=I.x)&&void 0!==N?N:I.left,I.y=null!==(M=I.y)&&void 0!==M?M:I.top,h={x:I.x,y:I.y,width:I.width,height:I.height}}var P=g.getBoundingClientRect();P.x=null!==(l=P.x)&&void 0!==l?l:P.left,P.y=null!==(c=P.y)&&void 0!==c?c:P.top;var L=m.documentElement,j=L.clientWidth,D=L.clientHeight,A=L.scrollWidth,T=L.scrollHeight,R=L.scrollTop,_=L.scrollLeft,z=P.height,B=P.width,H=h.height,F=h.width,W={left:0,top:0,right:j,bottom:D},V={left:-_,top:-R,right:A-_,bottom:T-R},K=O.htmlRegion,q="visible",X="visibleFirst";"scroll"!==K&&K!==X&&(K=q);var U=K===X,G=ng(V,p),Y=ng(W,p),Q=K===q?Y:G,Z=U?Y:Q;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=C,g.style.top=w,g.style.right=S,g.style.bottom=k,g.style.overflow=E,null===(d=g.parentElement)||void 0===d||d.removeChild($);var ne=eg(Math.round(B/parseFloat(b)*1e3)/1e3),oe=eg(Math.round(z/parseFloat(y)*1e3)/1e3);if(0===ne||0===oe||ee(o)&&!kl(o))return;var re=O.offset,ie=O.targetOffset,ae=bt(rg(P,re),2),se=ae[0],le=ae[1],ce=bt(rg(h,ie),2),ue=ce[0],de=ce[1];h.x-=ue,h.y-=de;var pe=bt(O.points||[],2),fe=pe[0],he=ig(pe[1]),ge=ig(fe),me=ag(h,he),ve=ag(P,ge),be=J({},O),ye=me.x-ve.x+se,xe=me.y-ve.y+le;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q,o=P.x+e,r=P.y+t,i=o+B,a=r+z,s=Math.max(o,n.left),l=Math.max(r,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Ce,we,Se,ke,Ee=ft(ye,xe),Oe=ft(ye,xe,Y),$e=ag(h,["t","l"]),Ne=ag(P,["t","l"]),Me=ag(h,["b","r"]),Ie=ag(P,["b","r"]),Pe=O.overflow||{},Le=Pe.adjustX,je=Pe.adjustY,De=Pe.shiftX,Ae=Pe.shiftY,Te=function(e){return"boolean"==typeof e?e:e>=0};function ht(){Ce=P.y+xe,we=Ce+z,Se=P.x+ye,ke=Se+B}ht();var Re=Te(je),_e=ge[0]===he[0];if(Re&&"t"===ge[0]&&(we>Z.bottom||f.current.bt)){var ze=xe;_e?ze-=z-H:ze=$e.y-Ie.y-le;var Be=ft(ye,ze),He=ft(ye,ze,Y);Be>Ee||Be===Ee&&(!U||He>=Oe)?(f.current.bt=!0,xe=ze,le=-le,be.points=[sg(ge,0),sg(he,0)]):f.current.bt=!1}if(Re&&"b"===ge[0]&&(Ce<Z.top||f.current.tb)){var Fe=xe;_e?Fe+=z-H:Fe=Me.y-Ne.y-le;var We=ft(ye,Fe),Ve=ft(ye,Fe,Y);We>Ee||We===Ee&&(!U||Ve>=Oe)?(f.current.tb=!0,xe=Fe,le=-le,be.points=[sg(ge,0),sg(he,0)]):f.current.tb=!1}var Ke=Te(Le),qe=ge[1]===he[1];if(Ke&&"l"===ge[1]&&(ke>Z.right||f.current.rl)){var Xe=ye;qe?Xe-=B-F:Xe=$e.x-Ie.x-se;var Ue=ft(Xe,xe),Ge=ft(Xe,xe,Y);Ue>Ee||Ue===Ee&&(!U||Ge>=Oe)?(f.current.rl=!0,ye=Xe,se=-se,be.points=[sg(ge,1),sg(he,1)]):f.current.rl=!1}if(Ke&&"r"===ge[1]&&(Se<Z.left||f.current.lr)){var Ye=ye;qe?Ye+=B-F:Ye=Me.x-Ne.x-se;var Qe=ft(Ye,xe),Ze=ft(Ye,xe,Y);Qe>Ee||Qe===Ee&&(!U||Ze>=Oe)?(f.current.lr=!0,ye=Ye,se=-se,be.points=[sg(ge,1),sg(he,1)]):f.current.lr=!1}ht();var Je=!0===De?0:De;"number"==typeof Je&&(Se<Y.left&&(ye-=Se-Y.left-se,h.x+F<Y.left+Je&&(ye+=h.x-Y.left+F-Je)),ke>Y.right&&(ye-=ke-Y.right-se,h.x>Y.right-Je&&(ye+=h.x-Y.right+Je)));var et=!0===Ae?0:Ae;"number"==typeof et&&(Ce<Y.top&&(xe-=Ce-Y.top-le,h.y+H<Y.top+et&&(xe+=h.y-Y.top+H-et)),we>Y.bottom&&(xe-=we-Y.bottom-le,h.y>Y.bottom-et&&(xe+=h.y-Y.bottom+et)));var tt=P.x+ye,nt=tt+B,ot=P.y+xe,rt=ot+z,it=h.x,at=it+F,st=h.y,lt=st+H,ct=(Math.max(tt,it)+Math.min(nt,at))/2-tt,ut=(Math.max(ot,st)+Math.min(rt,lt))/2-ot;null==s||s(n,be);var dt=te.right-P.x-(ye+P.width),pt=te.bottom-P.y-(xe+P.height);1===ne&&(ye=Math.round(ye),dt=Math.round(dt)),1===oe&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:xe/oe,offsetR:dt/ne,offsetB:pt/oe,arrowX:ct/ne,arrowY:ut/oe,scaleX:ne,scaleY:oe,align:be})}})),g=function(){u((function(e){return J(J({},e),{},{ready:!1})}))};return on(g,[r]),on((function(){t||g()}),[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&h()}))}]}(Ne,ue,z&&null!==We?We:ge,I,L,j,H),Xe=bt(qe,11),Ue=Xe[0],Ge=Xe[1],Ye=Xe[2],Qe=Xe[3],Ze=Xe[4],Je=Xe[5],et=Xe[6],tt=Xe[7],nt=Xe[8],rt=Xe[9],it=Xe[10],at=function(t,n,o,r){return e.useMemo((function(){var e=Gh(null!=o?o:n),i=Gh(null!=r?r:n),a=new Set(e),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,n,o,r])}(oe,l,c,u),st=bt(at,2),ct=st[0],ut=st[1],dt=ct.has("click"),pt=ut.has("click")||ut.has("contextMenu"),ft=xi((function(){Re||it()}));!function(e,t,n,o,r){on((function(){if(e&&t&&n){var i=n,a=Jh(t),s=Jh(i),l=Zh(i),c=new Set([l].concat(lt(a),lt(s)));function u(){o(),r()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),o(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ne,ge,ue,ft,(function(){Ie.current&&z&&pt&&Ae(!1)})),on((function(){ft()}),[We,I]),on((function(){!Ne||null!=L&&L[I]||ft()}),[JSON.stringify(j)]);var ht=e.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(Yh(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(L,i,rt,z);return D(e,null==R?void 0:R(rt))}),[rt,R,L,i,z]);e.useImperativeHandle(o,(function(){return{nativeElement:ve.current,popupElement:pe.current,forceAlign:ft}}));var gt=bt(e.useState(0),2),mt=gt[0],vt=gt[1],yt=bt(e.useState(0),2),xt=yt[0],Ct=yt[1],wt=function(){if(T&&ge){var e=ge.getBoundingClientRect();vt(e.width),Ct(e.height)}};function St(e,t,n,o){Ce[e]=function(r){var i;null==o||o(r),Ae(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=xe[e])||void 0===i||i.call.apply(i,[xe,r].concat(s))}}on((function(){Be&&(it(),Be(),He(null))}),[Be]),(dt||pt)&&(Ce.onClick=function(e){var t;Ie.current&&pt?Ae(!1):!Ie.current&&dt&&(Ke(e),Ae(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=xe.onClick)||void 0===t||t.call.apply(t,[xe,e].concat(o))});var kt,Et,Ot=function(t,n,o,r,i,a,s,l){var c=e.useRef(t);c.current=t;var u=e.useRef(!1);return e.useEffect((function(){if(n&&r&&(!i||a)){var e=function(){u.current=!1},t=function(e){var t;!c.current||s((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||l(!1)},d=Zh(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",t,!0),d.addEventListener("contextmenu",t,!0);var p,f,h=ds(o);return h&&(h.addEventListener("mousedown",t,!0),h.addEventListener("contextmenu",t,!0)),"production"!==process.env.NODE_ENV&&V((null==o||null===(p=o.getRootNode)||void 0===p?void 0:p.call(o))===(null===(f=r.getRootNode)||void 0===f?void 0:f.call(r)),"trigger element and popup element should in same shadow root."),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",t,!0),d.removeEventListener("contextmenu",t,!0),h&&(h.removeEventListener("mousedown",t,!0),h.removeEventListener("contextmenu",t,!0))}}}),[n,o,r,i,a]),function(){u.current=!0}}(Ne,pt,ge,ue,x,w,we,Ae),$t=ct.has("hover"),Nt=ut.has("hover");$t&&(St("onMouseEnter",!0,g,(function(e){Ke(e)})),St("onPointerEnter",!0,g,(function(e){Ke(e)})),kt=function(e){(Ne||Re)&&null!=ue&&ue.contains(e.target)&&Ae(!0,g)},z&&(Ce.onMouseMove=function(e){var t;null===(t=xe.onMouseMove)||void 0===t||t.call(xe,e)})),Nt&&(St("onMouseLeave",!1,v),St("onPointerLeave",!1,v),Et=function(){Ae(!1,v)}),ct.has("focus")&&St("onFocus",!0,b),ut.has("focus")&&St("onBlur",!1,y),ct.has("contextMenu")&&(Ce.onContextMenu=function(e){var t;Ie.current&&ut.has("contextMenu")?Ae(!1):(Ke(e),Ae(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=xe.onContextMenu)||void 0===t||t.call.apply(t,[xe,e].concat(o))}),Y&&(Ce.className=D(xe.className,Y));var Mt=J(J({},xe),Ce),It={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Z[e]&&(It[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Mt[e])||void 0===t||t.call.apply(t,[Mt].concat(o)),Z[e].apply(Z,o)})}));var Pt=e.cloneElement(ye,J(J({},Mt),It)),jt={x:Je,y:et},Dt=F?J({},!0!==F?F:{}):null;return e.createElement(e.Fragment,null,e.createElement(ot,{disabled:!Ne,ref:be,onResize:function(){wt(),ft()}},e.createElement(Xh,{getTriggerDOMNode:Q},Pt)),e.createElement(Uh.Provider,{value:se},e.createElement(qh,{portal:t,ref:fe,prefixCls:i,popup:$,className:D(N,ht),style:M,target:ge,onMouseEnter:kt,onMouseLeave:Et,onPointerEnter:kt,zIndex:A,open:Ne,keepDom:Re,fresh:_,onClick:B,onPointerDownCapture:Ot,mask:x,motion:Se,maskMotion:ke,onVisibleChanged:function(e){_e(!1),it(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){wt(),He((function(){return e}))}))},forceRender:k,autoDestroy:te,getPopupContainer:S,align:rt,arrow:Dt,arrowPos:jt,ready:Ue,offsetX:Ge,offsetY:Ye,offsetR:Qe,offsetB:Ze,onAlign:ft,stretch:T,targetWidth:mt/tt,targetHeight:xt/nt})))}));return"production"!==process.env.NODE_ENV&&(n.displayName="Trigger"),n}(wd),ug=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],dg=function(t,n){var o=t.prefixCls;t.disabled;var r=t.visible,i=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,p=void 0===d?"ltr":d,f=t.placement,h=t.builtinPlacements,g=t.dropdownMatchSelectWidth,m=t.dropdownRender,v=t.dropdownAlign,b=t.getPopupContainer,y=t.empty,x=t.getTriggerDOMNode,C=t.onPopupVisibleChange,w=t.onPopupMouseEnter,S=Lt(t,ug),k="".concat(o,"-dropdown"),E=a;m&&(E=m(a));var O=e.useMemo((function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)}),[h,g]),$=s?"".concat(k,"-").concat(s):l,N="number"==typeof g,M=e.useMemo((function(){return N?null:!1===g?"minWidth":"width"}),[g,N]),I=c;N&&(I=J(J({},I),{},{width:g}));var P=e.useRef(null);return e.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=P.current)||void 0===e?void 0:e.popupElement}}})),e.createElement(cg,A({},S,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:f||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:k,popupTransitionName:$,popup:e.createElement("div",{onMouseEnter:w},E),ref:P,stretch:M,popupAlign:v,popupVisible:r,getPopupContainer:b,popupClassName:D(u,Q({},"".concat(k,"-empty"),y)),popupStyle:I,getTriggerDOMNode:x,onPopupVisibleChange:C}),i)},pg=e.forwardRef(dg);function fg(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function hg(e){return void 0!==e&&!Number.isNaN(e)}function gg(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function mg(e){var t=J({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return U(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}"production"!==process.env.NODE_ENV&&(pg.displayName="SelectTrigger");var vg=e.createContext(null);function bg(t){var n=t.visible,o=t.values;if(!n)return null;return e.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(o.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(T(t))?t:n})).join(", ")),o.length>50?", ...":null)}var yg=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],xg=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Cg=function(e){return"tags"===e||"multiple"===e},wg=e.forwardRef((function(n,o){var r,i=n.id,a=n.prefixCls,s=n.className,l=n.showSearch,c=n.tagRender,u=n.direction,d=n.omitDomProps,p=n.displayValues,f=n.onDisplayValuesChange,h=n.emptyOptions,g=n.notFoundContent,m=void 0===g?"Not Found":g,v=n.onClear,b=n.mode,y=n.disabled,x=n.loading,C=n.getInputElement,w=n.getRawInputElement,S=n.open,k=n.defaultOpen,E=n.onDropdownVisibleChange,O=n.activeValue,$=n.onActiveValueChange,N=n.activeDescendantId,M=n.searchValue,I=n.autoClearSearchValue,P=n.onSearch,L=n.onSearchSplit,j=n.tokenSeparators,R=n.allowClear,_=n.suffixIcon,z=n.clearIcon,B=n.OptionList,H=n.animation,F=n.transitionName,W=n.dropdownStyle,V=n.dropdownClassName,K=n.dropdownMatchSelectWidth,q=n.dropdownRender,X=n.dropdownAlign,U=n.placement,G=n.builtinPlacements,Y=n.getPopupContainer,Z=n.showAction,ee=void 0===Z?[]:Z,te=n.onFocus,ne=n.onBlur,oe=n.onKeyUp,re=n.onKeyDown,ie=n.onMouseDown,ae=Lt(n,yg),se=Cg(b),le=(void 0!==l?l:se)||"combobox"===b,ce=J({},ae);xg.forEach((function(e){delete ce[e]})),null==d||d.forEach((function(e){delete ce[e]}));var ue=bt(e.useState(!1),2),de=ue[0],pe=ue[1];e.useEffect((function(){pe(lh())}),[]);var he=e.useRef(null),ge=e.useRef(null),me=e.useRef(null),ve=e.useRef(null),be=e.useRef(null),ye=e.useRef(!1),xe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=bt(e.useState(!1),2),o=n[0],r=n[1],i=e.useRef(null),a=function(){window.clearTimeout(i.current)};return e.useEffect((function(){return a}),[]),[o,function(e,n){a(),i.current=window.setTimeout((function(){r(e),n&&n()}),t)},a]}(),Ce=bt(xe,3),we=Ce[0],Se=Ce[1],ke=Ce[2];e.useImperativeHandle(o,(function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=be.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:he.current||ge.current}}));var Ee=e.useMemo((function(){var e;if("combobox"!==b)return M;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[M,b,p]),Oe="combobox"===b&&"function"==typeof C&&C()||null,$e="function"==typeof w&&w(),Ne=fe(ge,null==$e||null===(r=$e.props)||void 0===r?void 0:r.ref),Me=bt(e.useState(!1),2),Ie=Me[0],Pe=Me[1];on((function(){Pe(!0)}),[]);var Le=bt(Si(!1,{defaultValue:k,value:S}),2),je=Le[0],De=Le[1],Ae=!!Ie&&je,Te=!m&&h;(y||Te&&Ae&&"combobox"===b)&&(Ae=!1);var Re=!Te&&Ae,_e=e.useCallback((function(e){var t=void 0!==e?e:!Ae;y||(De(t),Ae!==t&&(null==E||E(t)))}),[y,Ae,De,E]),ze=e.useMemo((function(){return(j||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[j]),Be=e.useContext(vg)||{},He=Be.maxCount,Fe=Be.rawValues,We=function(e,t,n){if(!(se&&hg(He)&&(null==Fe?void 0:Fe.size)>=He)){var o=!0,r=e;null==$||$(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=No(n),i=r[0],a=r.slice(1);if(!i)return[t];var s=t.split(i);return o=o||s.length>1,s.reduce((function(t,n){return[].concat(lt(t),lt(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,j,hg(He)?He-Fe.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(r="",null==L||L(a),_e(!1),o=!1),P&&Ee!==r&&P(r,{source:t?"typing":"effect"}),o}};e.useEffect((function(){Ae||se||"combobox"===b||We("",!1,!1)}),[Ae]),e.useEffect((function(){je&&y&&De(!1),y&&!ye.current&&Se(!1)}),[y]);var Ve=bt(dh(),2),Ke=Ve[0],qe=Ve[1],Xe=e.useRef(!1),Ue=e.useRef(!1),Ge=[];e.useEffect((function(){return function(){Ge.forEach((function(e){return clearTimeout(e)})),Ge.splice(0,Ge.length)}}),[]);var Ye,Qe=bt(e.useState({}),2)[1];$e&&(Ye=function(e){_e(e)}),function(t,n,o,r){var i=e.useRef(null);i.current={open:n,triggerOpen:o,customizedTrigger:r},e.useEffect((function(){function e(e){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),i.current.open&&t().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}((function(){var e;return[he.current,null===(e=me.current)||void 0===e?void 0:e.getPopupElement()]}),Re,_e,!!$e);var Ze,Je=e.useMemo((function(){return J(J({},n),{},{notFoundContent:m,open:Ae,triggerOpen:Re,id:i,showSearch:le,multiple:se,toggleOpen:_e})}),[n,m,Re,Ae,i,le,se,_e]),et=!!_||x;et&&(Ze=e.createElement(ch,{className:D("".concat(a,"-arrow"),Q({},"".concat(a,"-arrow-loading"),x)),customizeIcon:_,customizeIconProps:{loading:x,searchValue:Ee,open:Ae,focused:we,showSearch:le}}));var tt,nt=function(e,n,o,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=t.useMemo((function(){return"object"===T(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:t.useMemo((function(){return!(a||!r||!o.length&&!s||"combobox"===l&&""===s)}),[r,a,o.length,s,l]),clearIcon:t.createElement(ch,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(a,(function(){var e;null==v||v(),null===(e=ve.current)||void 0===e||e.focus(),f([],{type:"clear",values:p}),We("",!1,!1)}),p,R,z,y,Ee,b),ot=nt.allowClear,rt=nt.clearIcon,it=e.createElement(B,{ref:be}),at=D(a,s,Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},"".concat(a,"-focused"),we),"".concat(a,"-multiple"),se),"".concat(a,"-single"),!se),"".concat(a,"-allow-clear"),R),"".concat(a,"-show-arrow"),et),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),x),"".concat(a,"-open"),Ae),"".concat(a,"-customize-input"),Oe),"".concat(a,"-show-search"),le)),st=e.createElement(pg,{ref:me,disabled:y,prefixCls:a,visible:Re,popupElement:it,animation:H,transitionName:F,dropdownStyle:W,dropdownClassName:V,direction:u,dropdownMatchSelectWidth:K,dropdownRender:q,dropdownAlign:X,placement:U,builtinPlacements:G,getPopupContainer:Y,empty:h,getTriggerDOMNode:function(e){return ge.current||e},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Qe({})}},$e?e.cloneElement($e,{ref:Ne}):e.createElement(Fh,A({},n,{domRef:ge,prefixCls:a,inputElement:Oe,ref:ve,id:i,showSearch:le,autoClearSearchValue:I,mode:b,activeDescendantId:N,tagRender:c,values:p,open:Ae,onToggleOpen:_e,activeValue:O,searchValue:Ee,onSearch:We,onSearchSubmit:function(e){e&&e.trim()&&P(e,{source:"submit"})},onRemove:function(e){var t=p.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:ze})));return tt=$e?st:e.createElement("div",A({className:at},ce,{ref:he,onMouseDown:function(e){var t,n=e.target,o=null===(t=me.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=Ge.indexOf(r);-1!==t&&Ge.splice(t,1),ke(),de||o.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Ge.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==ie||ie.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ke(),o=e.key,r="Enter"===o;if(r&&("combobox"!==b&&e.preventDefault(),Ae||_e(!0)),qe(!!Ee),"Backspace"===o&&!n&&se&&!Ee&&p.length){for(var i=lt(p),a=null,s=i.length-1;s>=0;s-=1){var l=i[s];if(!l.disabled){i.splice(s,1),a=l;break}}a&&f(i,{type:"remove",values:[a]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];!Ae||r&&Xe.current||null===(t=be.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),r&&(Xe.current=!0),null==re||re.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Ae&&(null===(r=be.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(Xe.current=!1),null==oe||oe.apply(void 0,[e].concat(n))},onFocus:function(){Se(!0),y||(te&&!Ue.current&&te.apply(void 0,arguments),ee.includes("focus")&&_e(!0)),Ue.current=!0},onBlur:function(){ye.current=!0,Se(!1,(function(){Ue.current=!1,ye.current=!1,_e(!1)})),y||(Ee&&("tags"===b?P(Ee,{source:"submit"}):"multiple"===b&&P("",{source:"blur"})),ne&&ne.apply(void 0,arguments))}}),e.createElement(bg,{visible:we&&!Ae,values:p}),st,Ze,ot&&rt),e.createElement(uh.Provider,{value:Je},tt)}));"production"!==process.env.NODE_ENV&&(wg.displayName="BaseSelect");var Sg=function(){return null};Sg.isSelectOptGroup=!0;var kg=function(){return null};kg.isSelectOption=!0;var Eg=e.forwardRef((function(t,n){var o=t.height,r=t.offsetY,i=t.offsetX,a=t.children,s=t.prefixCls,l=t.onInnerResize,c=t.innerProps,u=t.rtl,d=t.extra,p={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(p={height:o,position:"relative",overflow:"hidden"},f=J(J({},f),{},Q(Q(Q(Q(Q({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),e.createElement("div",{style:p},e.createElement(ot,{onResize:function(e){e.offsetHeight&&l&&l()}},e.createElement("div",A({style:f,className:D(Q({},"".concat(s,"-holder-inner"),s)),ref:n},c),a,d)))}));function Og(t){var n=t.children,o=t.setRef,r=e.useCallback((function(e){o(e)}),[]);return e.cloneElement(n,{ref:r})}function $g(t,n,o){var r=bt(e.useState(t),2),i=r[0],a=r[1],s=bt(e.useState(null),2),l=s[0],c=s[1];return e.useEffect((function(){var e=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var p=l(o[d]);if(p!==l(r[d])){c=d,u=u||p!==l(r[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],t||[],n);void 0!==(null==e?void 0:e.index)&&c(t[e.index]),a(t)}),[t]),[l]}Eg.displayName="Filler";var Ng="object"===("undefined"==typeof navigator?"undefined":T(navigator))&&/Firefox/i.test(navigator.userAgent),Mg=function(e,t,n,o){var r=a(!1),i=a(null);var s=a({top:e,bottom:t,left:n,right:o});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||(clearTimeout(i.current),r.current=!0,i.current=setTimeout((function(){r.current=!1}),50)),!r.current&&o}};function Ig(e,t,n,o,r,i,s){var l=a(0),c=a(null),u=a(null),d=a(!1),p=Mg(t,n,o,r);var f=a(null),h=a(null);return[function(t){if(e){ht.cancel(h.current),h.current=ht((function(){f.current=null}),2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,a=n,g=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(a=o,g=0,f.current="sx");var m=Math.abs(a),v=Math.abs(g);null===f.current&&(f.current=i&&m>v?"x":"y"),"y"===f.current?function(e,t){if(ht.cancel(c.current),!p(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,u.current=t,Ng||n.preventDefault(),c.current=ht((function(){var e=d.current?10:1;s(l.current*e,!1),l.current=0})))}}(t,g):function(e,t){s(t,!0),Ng||e.preventDefault()}(t,a)}},function(t){e&&(d.current=t.detail===u.current)}]}var Pg=function(){function e(){We(this,e),Q(this,"maps",void 0),Q(this,"id",0),Q(this,"diffKeys",new Set),this.maps=Object.create(null)}return Ke(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1,this.diffKeys.add(e)}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}();function Lg(e){var t=parseFloat(e);return isNaN(t)?0:t}var jg=14/15;function Dg(e){return Math.floor(Math.pow(e,.5))}function Ag(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Tg=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.rtl,i=t.scrollOffset,a=t.scrollRange,s=t.onStartMove,l=t.onStopMove,c=t.onScroll,u=t.horizontal,d=t.spinSize,p=t.containerSize,f=t.style,h=t.thumbStyle,g=t.showScrollBar,m=bt(e.useState(!1),2),v=m[0],b=m[1],y=bt(e.useState(null),2),x=y[0],C=y[1],w=bt(e.useState(null),2),S=w[0],k=w[1],E=!r,O=e.useRef(),$=e.useRef(),N=bt(e.useState(g),2),M=N[0],I=N[1],P=e.useRef(),L=function(){!0!==g&&!1!==g&&(clearTimeout(P.current),I(!0),P.current=setTimeout((function(){I(!1)}),3e3))},j=a-p||0,A=p-d||0,T=e.useMemo((function(){return 0===i||0===j?0:i/j*A}),[i,j,A]),R=e.useRef({top:T,dragging:v,pageY:x,startTop:S});R.current={top:T,dragging:v,pageY:x,startTop:S};var _=function(e){b(!0),C(Ag(e,u)),k(R.current.top),s(),e.stopPropagation(),e.preventDefault()};e.useEffect((function(){var e=function(e){e.preventDefault()},t=O.current,n=$.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",_,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",_)}}),[]);var z=e.useRef();z.current=j;var B=e.useRef();B.current=A,e.useEffect((function(){if(v){var e,t=function(t){var n=R.current,o=n.dragging,r=n.pageY,i=n.startTop;ht.cancel(e);var a=O.current.getBoundingClientRect(),s=p/(u?a.width:a.height);if(o){var l=(Ag(t,u)-r)*s,d=i;!E&&u?d-=l:d+=l;var f=z.current,h=B.current,g=h?d/h:0,m=Math.ceil(g*f);m=Math.max(m,0),m=Math.min(m,f),e=ht((function(){c(m,u)}))}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ht.cancel(e)}}}),[v]),e.useEffect((function(){return L(),function(){clearTimeout(P.current)}}),[i]),e.useImperativeHandle(n,(function(){return{delayHidden:L}}));var H="".concat(o,"-scrollbar"),F={position:"absolute",visibility:M?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,W.height="100%",W.width=d,E?W.left=T:W.right=T):(F.width=8,F.top=0,F.bottom=0,E?F.right=0:F.left=0,W.width="100%",W.height=d,W.top=T),e.createElement("div",{ref:O,className:D(H,Q(Q(Q({},"".concat(H,"-horizontal"),u),"".concat(H,"-vertical"),!u),"".concat(H,"-visible"),M)),style:J(J({},F),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:L},e.createElement("div",{ref:$,className:D("".concat(H,"-thumb"),Q({},"".concat(H,"-thumb-moving"),v)),style:J(J({},W),h),onMouseDown:_}))}));"production"!==process.env.NODE_ENV&&(Tg.displayName="ScrollBar");function Rg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var _g=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],zg=[],Bg={overflowY:"auto",overflowAnchor:"none"};function Hg(t,n){var o=t.prefixCls,r=void 0===o?"rc-virtual-list":o,i=t.className,s=t.height,c=t.itemHeight,d=t.fullHeight,p=void 0===d||d,f=t.style,h=t.data,g=t.children,m=t.itemKey,v=t.virtual,b=t.direction,y=t.scrollWidth,x=t.component,C=void 0===x?"div":x,w=t.onScroll,k=t.onVirtualScroll,E=t.onVisibleChange,O=t.innerProps,$=t.extraRender,N=t.styles,M=t.showScrollBar,I=void 0===M?"optional":M,P=Lt(t,_g),L=e.useCallback((function(e){return"function"==typeof m?m(e):null==e?void 0:e[m]}),[m]),j=function(t){var n=bt(e.useState(0),2),o=n[0],r=n[1],i=a(new Map),s=a(new Pg),c=a(0);function u(){c.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){var e=!1;i.current.forEach((function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),i=r.marginTop,a=r.marginBottom,l=o+Lg(i)+Lg(a);s.current.get(n)!==l&&(s.current.set(n,l),e=!0)}})),e&&r((function(e){return e+1}))};if(e)t();else{c.current+=1;var n=c.current;Promise.resolve().then((function(){n===c.current&&t()}))}}return l((function(){return u}),[]),[function(e,n){var o=t(e);i.current.get(o),n?(i.current.set(o,n),d()):i.current.delete(o)},d,s.current,o]}(L),R=bt(j,4),_=R[0],z=R[1],B=R[2],H=R[3],F=!(!1===v||!s||!c),W=e.useMemo((function(){return Object.values(B.maps).reduce((function(e,t){return e+t}),0)}),[B.id,B.maps]),V=F&&h&&(Math.max(c*h.length,W)>s||!!y),K="rtl"===b,q=D(r,Q({},"".concat(r,"-rtl"),K),i),X=h||zg,G=a(),Y=a(),Z=a(),ee=bt(u(0),2),te=ee[0],ne=ee[1],oe=bt(u(0),2),re=oe[0],ie=oe[1],ae=bt(u(!1),2),se=ae[0],le=ae[1],ce=function(){le(!0)},ue=function(){le(!1)},de={getKey:L};function pe(e){ne((function(t){var n=function(e){var t=e;Number.isNaN(Me.current)||(t=Math.min(t,Me.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return G.current.scrollTop=n,n}))}var fe=a({start:0,end:X.length}),he=a(),ge=bt($g(X,L),1)[0];he.current=ge;var me=e.useMemo((function(){if(!F)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};var e;if(!V)return{scrollHeight:(null===(e=Y.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:X.length-1,offset:void 0};for(var t,n,o,r=0,i=X.length,a=0;a<i;a+=1){var l=X[a],u=L(l),d=B.get(u),p=r+(void 0===d?c:d);p>=te&&void 0===t&&(t=a,n=r),p>te+s&&void 0===o&&(o=a),r=p}return void 0===t&&(t=0,n=0,o=Math.ceil(s/c)),void 0===o&&(o=X.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,X.length-1),offset:n}}),[V,F,te,X,H,s]),ve=me.scrollHeight,be=me.start,ye=me.end,xe=me.offset;fe.current.start=be,fe.current.end=ye,e.useLayoutEffect((function(){var e=B.getRecord();if(1===e.size){var t=Array.from(e)[0],n=X[be];if(n)if(L(n)===t){var o=B.get(t)-c;pe((function(e){return e+o}))}}B.resetRecord()}),[ve]);var Ce=bt(e.useState({width:0,height:s}),2),we=Ce[0],Se=Ce[1],ke=a(),Ee=a(),Oe=e.useMemo((function(){return Rg(we.width,y)}),[we.width,y]),$e=e.useMemo((function(){return Rg(we.height,ve)}),[we.height,ve]),Ne=ve-s,Me=a(Ne);Me.current=Ne;var Ie=te<=0,Pe=te>=Ne,Le=re<=0,je=re>=y,De=Mg(Ie,Pe,Le,je),Ae=function(){return{x:K?-re:re,y:te}},Te=a(Ae()),Re=xi((function(e){if(k){var t=J(J({},Ae()),e);Te.current.x===t.x&&Te.current.y===t.y||(k(t),Te.current=t)}}));function _e(e,t){var n=e;t?(S((function(){ie(n)})),Re()):pe(n)}var ze=function(e){var t=e,n=y?y-we.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Be=xi((function(e,t){t?(S((function(){ie((function(t){return ze(t+(K?-e:e))}))})),Re()):pe((function(t){return t+e}))})),He=bt(Ig(F,Ie,Pe,Le,je,!!y,Be),2),Fe=He[0],We=He[1];!function(e,t,n){var o,r=a(!1),i=a(0),s=a(0),l=a(null),c=a(null),u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),a=i.current-t,l=s.current-o,u=Math.abs(a)>Math.abs(l);u?i.current=t:s.current=o;var d=n(u,u?a:l,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?a*=jg:l*=jg;var e=Math.floor(u?a:l);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},d=function(){r.current=!1,o()},p=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),s.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},on((function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",p),o(),clearInterval(c.current)}}),[e])}(F,G,(function(e,t,n,o){var r=o;return!De(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),Fe({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(t,n,o){e.useEffect((function(){var e=n.current;if(t&&e){var r,i,a=!1,s=function(){ht.cancel(r)},l=function e(){s(),r=ht((function(){o(i),e()}))},c=function(e){if(!e.target.draggable){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,s()},d=function(t){if(a){var n=Ag(t,!1),o=e.getBoundingClientRect(),r=o.top,c=o.bottom;n<=r?(i=-Dg(r-n),l()):n>=c?(i=Dg(n-c),l()):s()}};return e.addEventListener("mousedown",c),e.ownerDocument.addEventListener("mouseup",u),e.ownerDocument.addEventListener("mousemove",d),function(){e.removeEventListener("mousedown",c),e.ownerDocument.removeEventListener("mouseup",u),e.ownerDocument.removeEventListener("mousemove",d),s()}}}),[t])}(V,G,(function(e){pe((function(t){return t+e}))})),on((function(){function e(e){var t=Ie&&e.detail<0,n=Pe&&e.detail>0;!F||t||n||e.preventDefault()}var t=G.current;return t.addEventListener("wheel",Fe,{passive:!1}),t.addEventListener("DOMMouseScroll",We,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Fe),t.removeEventListener("DOMMouseScroll",We),t.removeEventListener("MozMousePixelScroll",e)}}),[F,Ie,Pe]),on((function(){if(y){var e=ze(re);ie(e),Re({x:e})}}),[we.width,y]);var Ve=function(){var e,t;null===(e=ke.current)||void 0===e||e.delayHidden(),null===(t=Ee.current)||void 0===t||t.delayHidden()},Ke=function(t,n,o,r,i,a,s,l){var c=e.useRef(),u=bt(e.useState(null),2),d=u[0],p=u[1];return on((function(){if(d&&d.times<10){if(!t.current)return void p((function(e){return J({},e)}));a();var e=d.targetAlign,l=d.originAlign,c=d.index,u=d.offset,f=t.current.clientHeight,h=!1,g=e,m=null;if(f){for(var v=e||l,b=0,y=0,x=0,C=Math.min(n.length-1,c),w=0;w<=C;w+=1){var S=i(n[w]);y=b;var k=o.get(S);b=x=y+(void 0===k?r:k)}for(var E="top"===v?u:f-u,O=C;O>=0;O-=1){var $=i(n[O]),N=o.get($);if(void 0===N){h=!0;break}if((E-=N)<=0)break}switch(v){case"top":m=y-u;break;case"bottom":m=x-f+u;break;default:var M=t.current.scrollTop;y<M?g="top":x>M+f&&(g="bottom")}null!==m&&s(m),m!==d.lastTop&&(h=!0)}h&&p(J(J({},d),{},{times:d.times+1,targetAlign:g,lastTop:m}))}else"production"!==process.env.NODE_ENV&&10===(null==d?void 0:d.times)&&U(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")}),[d,t.current]),function(e){if(null!=e){if(ht.cancel(c.current),"number"==typeof e)s(e);else if(e&&"object"===T(e)){var t,o=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var r=e.offset;p({times:0,index:t,offset:void 0===r?0:r,originAlign:o})}}else l()}}(G,X,B,c,L,(function(){return z(!0)}),pe,Ve);e.useImperativeHandle(n,(function(){return{nativeElement:Z.current,getScrollInfo:Ae,scrollTo:function(e){var t;(t=e)&&"object"===T(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ie(ze(e.left)),Ke(e.top)):Ke(e)}}})),on((function(){if(E){var e=X.slice(be,ye+1);E(e,X)}}),[be,ye,X]);var qe=function(t,n,o,r){var i=bt(e.useMemo((function(){return[new Map,[]]}),[t,o.id,r]),2),a=i[0],s=i[1];return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,l=a.get(e),c=a.get(i);if(void 0===l||void 0===c)for(var u=t.length,d=s.length;d<u;d+=1){var p,f=t[d],h=n(f);a.set(h,d);var g=null!==(p=o.get(h))&&void 0!==p?p:r;if(s[d]=(s[d-1]||0)+g,h===e&&(l=d),h===i&&(c=d),void 0!==l&&void 0!==c)break}return{top:s[l-1]||0,bottom:s[c]}}}(X,L,B,c),Xe=null==$?void 0:$({start:be,end:ye,virtual:V,offsetX:re,offsetY:xe,rtl:K,getSize:qe}),Ue=function(t,n,o,r,i,a,s,l){var c=l.getKey;return t.slice(n,o+1).map((function(t,o){var l=s(t,n+o,{style:{width:r},offsetX:i}),u=c(t);return e.createElement(Og,{key:u,setRef:function(e){return a(t,e)}},l)}))}(X,be,ye,y,re,_,g,de),Ge=null;s&&(Ge=J(Q({},p?"height":"maxHeight",s),Bg),F&&(Ge.overflowY="hidden",y&&(Ge.overflowX="hidden"),se&&(Ge.pointerEvents="none")));var Ye={};return K&&(Ye.dir="rtl"),e.createElement("div",A({ref:Z,style:J(J({},f),{},{position:"relative"}),className:q},Ye,P),e.createElement(ot,{onResize:function(e){Se({width:e.offsetWidth,height:e.offsetHeight})}},e.createElement(C,{className:"".concat(r,"-holder"),style:Ge,ref:G,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==te&&pe(t),null==w||w(e),Re()},onMouseEnter:Ve},e.createElement(Eg,{prefixCls:r,height:ve,offsetX:re,offsetY:xe,scrollWidth:y,onInnerResize:z,ref:Y,innerProps:O,rtl:K,extra:Xe},Ue))),V&&ve>s&&e.createElement(Tg,{ref:ke,prefixCls:r,scrollOffset:te,scrollRange:ve,rtl:K,onScroll:_e,onStartMove:ce,onStopMove:ue,spinSize:$e,containerSize:we.height,style:null==N?void 0:N.verticalScrollBar,thumbStyle:null==N?void 0:N.verticalScrollBarThumb,showScrollBar:I}),V&&y>we.width&&e.createElement(Tg,{ref:Ee,prefixCls:r,scrollOffset:re,scrollRange:y,rtl:K,onScroll:_e,onStartMove:ce,onStopMove:ue,spinSize:Oe,containerSize:we.width,horizontal:!0,style:null==N?void 0:N.horizontalScrollBar,thumbStyle:null==N?void 0:N.horizontalScrollBarThumb,showScrollBar:I}))}var Fg=e.forwardRef(Hg);Fg.displayName="List";var Wg=["disabled","title","children","style","className"];function Vg(e){return"string"==typeof e||"number"==typeof e}var Kg=function(t,n){var o=e.useContext(uh),r=o.prefixCls,i=o.id,a=o.open,s=o.multiple,c=o.mode,u=o.searchValue,d=o.toggleOpen,p=o.notFoundContent,f=o.onPopupScroll,h=e.useContext(vg),g=h.maxCount,m=h.flattenOptions,v=h.onActiveValue,b=h.defaultActiveFirstOption,y=h.onSelect,x=h.menuItemSelectedIcon,C=h.rawValues,w=h.fieldNames,S=h.virtual,k=h.direction,E=h.listHeight,O=h.listItemHeight,$=h.optionRender,N="".concat(r,"-item"),M=ce((function(){return m}),[a,m],(function(e,t){return t[0]&&e[1]!==t[1]})),I=e.useRef(null),P=e.useMemo((function(){return s&&hg(g)&&(null==C?void 0:C.size)>=g}),[s,g,null==C?void 0:C.size]),L=function(e){e.preventDefault()},j=function(e){var t;null===(t=I.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},T=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=M.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=M[r]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||P))return r}return-1},R=bt(e.useState((function(){return T(0)})),2),_=R[0],z=R[1],B=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];z(e);var n={source:t?"keyboard":"mouse"},o=M[e];o?v(o.value,e,n):v(null,-1,n)};l((function(){B(!1!==b?T(0):-1)}),[M.length,u]);var H=e.useCallback((function(e){return C.has(e)&&"combobox"!==c}),[c,lt(C).toString(),C.size]);l((function(){var e,t=setTimeout((function(){if(!s&&a&&1===C.size){var e=Array.from(C)[0],t=M.findIndex((function(t){return t.data.value===e}));-1!==t&&(B(t),j(t))}}));a&&(null===(e=I.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,u]);var F=function(e){void 0!==e&&y(e,{selected:!C.has(e)}),s||d(!1)};if(e.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Xs.N:case Xs.P:case Xs.UP:case Xs.DOWN:var o=0;if(t===Xs.UP?o=-1:t===Xs.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Xs.N?o=1:t===Xs.P&&(o=-1)),0!==o){var r=T(_+o,o);j(r),B(r,!0)}break;case Xs.ENTER:var i,s=M[_];!s||null!=s&&null!==(i=s.data)&&void 0!==i&&i.disabled||P?F(void 0):F(s.value),a&&e.preventDefault();break;case Xs.ESC:d(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===M.length)return e.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(N,"-empty"),onMouseDown:L},p);var W=Object.keys(w).map((function(e){return w[e]})),V=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var q=function(t){var n=M[t];if(!n)return null;var o=n.data||{},r=o.value,i=n.group,a=zs(o,!0),s=V(n);return n?e.createElement("div",A({"aria-label":"string"!=typeof s||i?null:s},a,{key:t},K(n,t),{"aria-selected":H(r)}),r):null},X={role:"listbox",id:"".concat(i,"_list")};return e.createElement(e.Fragment,null,S&&e.createElement("div",A({},X,{style:{height:0,width:0,overflow:"hidden"}}),q(_-1),q(_),q(_+1)),e.createElement(Fg,{itemKey:"key",ref:I,data:M,height:E,itemHeight:O,fullHeight:!1,onMouseDown:L,onScroll:f,virtual:S,direction:k,innerProps:S?null:X},(function(t,n){var o=t.group,r=t.groupOption,i=t.data,a=t.label,s=t.value,l=i.key;if(o){var c,u=null!==(c=i.title)&&void 0!==c?c:Vg(a)?a.toString():void 0;return e.createElement("div",{className:D(N,"".concat(N,"-group"),i.className),title:u},void 0!==a?a:l)}var d=i.disabled,p=i.title;i.children;var f=i.style,h=i.className,g=rt(Lt(i,Wg),W),m=H(s),v=d||!m&&P,b="".concat(N,"-option"),y=D(N,b,h,Q(Q(Q(Q({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),_===n&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),m)),C=V(t),w=!x||"function"==typeof x||m,k="number"==typeof C?C:C||s,E=Vg(k)?k.toString():void 0;return void 0!==p&&(E=p),e.createElement("div",A({},zs(g),S?{}:K(t,n),{"aria-selected":m,className:y,title:E,onMouseMove:function(){_===n||v||B(n)},onClick:function(){v||F(s)},style:f}),e.createElement("div",{className:"".concat(b,"-content")},"function"==typeof $?$(t,{index:n}):k),e.isValidElement(x)||m,w&&e.createElement(ch,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{value:s,disabled:v,isSelected:m}},m?"✓":null))})))},qg=e.forwardRef(Kg);"production"!==process.env.NODE_ENV&&(qg.displayName="OptionList");function Xg(e,t){return Lh(e).join("").toUpperCase().includes(t)}var Ug=0,Gg="test"!==process.env.NODE_ENV&&xt();function Yg(t){var n=bt(e.useState(),2),o=n[0],r=n[1];return e.useEffect((function(){var e;r("rc_select_".concat((Gg?(e=Ug,Ug+=1):e="TEST_OR_SSR",e)))}),[]),t||o}var Qg=["children","value"],Zg=["children"];function Jg(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return H(t).map((function(t,o){if(!e.isValidElement(t)||!t.type)return null;var r=t,i=r.type.isSelectOptGroup,a=r.key,s=r.props,l=s.children,c=Lt(s,Zg);return n||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return J({key:n,value:void 0!==i?i:n,children:r},Lt(o,Qg))}(t):J(J({key:"__RC_SELECT_GRP__".concat(null===a?o:a,"__"),label:a},c),{},{options:Jg(l)})})).filter((function(e){return e}))}function em(t){var n=e.useRef();n.current=t;var o=e.useCallback((function(){return n.current.apply(n,arguments)}),[]);return o}var tm=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],nm=["inputValue"];var om=e.forwardRef((function(t,n){var o=t.id,r=t.mode,i=t.prefixCls,a=void 0===i?"rc-select":i,s=t.backfill,l=t.fieldNames,c=t.inputValue,u=t.searchValue,d=t.onSearch,p=t.autoClearSearchValue,f=void 0===p||p,h=t.onSelect,g=t.onDeselect,m=t.dropdownMatchSelectWidth,v=void 0===m||m,b=t.filterOption,y=t.filterSort,x=t.optionFilterProp,C=t.optionLabelProp,w=t.options,S=t.optionRender,k=t.children,E=t.defaultActiveFirstOption,O=t.menuItemSelectedIcon,$=t.virtual,N=t.direction,M=t.listHeight,I=void 0===M?200:M,P=t.listItemHeight,L=void 0===P?20:P,j=t.labelRender,D=t.value,R=t.defaultValue,_=t.labelInValue,z=t.onChange,B=t.maxCount,F=Lt(t,tm),W=Yg(o),V=Cg(r),K=!(w||!k),q=e.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),X=e.useMemo((function(){return gg(l,K)}),[JSON.stringify(l),K]),Y=bt(Si("",{value:void 0!==u?u:c,postState:function(e){return e||""}}),2),Z=Y[0],ee=Y[1],te=function(t,n,o,r,i){return e.useMemo((function(){var e=t;!t&&(e=Jg(n));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[o.options]||n?(a.set(u[o.value],u),l(s,u,o.label),l(s,u,r),l(s,u,i)):e(u[o.options],!0)}}(e),{options:e,valueOptions:a,labelOptions:s}}),[t,n,o,r,i])}(w,k,X,x,C),ne=te.valueOptions,oe=te.labelOptions,re=te.options,ie=e.useCallback((function(t){return Lh(t).map((function(t){var n,o,r,i,a,s;(function(e){return!e||"object"!==T(e)})(t)?n=t:(r=t.key,o=t.label,n=null!==(s=t.value)&&void 0!==s?s:r);var l,c=ne.get(n);if(c&&(void 0===o&&(o=null==c?void 0:c[C||X.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:n),i=null==c?void 0:c.disabled,a=null==c?void 0:c.title,"production"!==process.env.NODE_ENV&&!C)){var u=null==c?void 0:c[X.label];void 0===u||e.isValidElement(u)||e.isValidElement(o)||u===o||U(!1,"`label` of `value` is not same as `label` in Select options.")}return{label:o,value:n,key:r,disabled:i,title:a}}))}),[X,C,ne]),ae=bt(Si(R,{value:D}),2),se=ae[0],le=ae[1],ce=e.useMemo((function(){var e,t=ie(V&&null===se?[]:se);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[se,ie,r,V]),ue=function(t,n){var o=e.useRef({values:new Map,options:new Map});return[e.useMemo((function(){var e=o.current,r=e.values,i=e.options,a=t.map((function(e){var t;return void 0===e.label?J(J({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,n.get(e.value)||i.get(e.value))})),o.current.values=s,o.current.options=l,a}),[t,n]),e.useCallback((function(e){return n.get(e)||o.current.options.get(e)}),[n])]}(ce,ne),de=bt(ue,2),pe=de[0],fe=de[1],he=e.useMemo((function(){if(!r&&1===pe.length){var e=pe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return pe.map((function(e){var t;return J(J({},e),{},{label:null!==(t="function"==typeof j?j(e):e.label)&&void 0!==t?t:e.value})}))}),[r,pe,j]),ge=e.useMemo((function(){return new Set(pe.map((function(e){return e.value})))}),[pe]);e.useEffect((function(){if("combobox"===r){var e,t=null===(e=pe[0])||void 0===e?void 0:e.value;ee(function(e){return null!=e}(t)?String(t):"")}}),[pe]);var me=em((function(e,t){var n=null!=t?t:e;return Q(Q({},X.value,e),X.label,n)})),ve=function(t,n,o,r,i){return e.useMemo((function(){if(!o||!1===r)return t;var e=n.options,a=n.label,s=n.value,l=[],c="function"==typeof r,u=o.toUpperCase(),d=c?r:function(t,n){return i?Xg(n[i],u):n[e]?Xg(n["children"!==a?a:"label"],u):Xg(n[s],u)},p=c?function(e){return mg(e)}:function(e){return e};return t.forEach((function(t){if(t[e])if(d(o,p(t)))l.push(t);else{var n=t[e].filter((function(e){return d(o,p(e))}));n.length&&l.push(J(J({},t),{},Q({},e,n)))}else d(o,p(t))&&l.push(t)})),l}),[t,r,i,o,n])}(e.useMemo((function(){if("tags"!==r)return re;var e=lt(re);return lt(pe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ne.has(e)})(n)||e.push(me(n,t.label))})),e}),[me,re,ne,pe,r]),X,Z,q,x),be=e.useMemo((function(){return"tags"!==r||!Z||ve.some((function(e){return e[x||"value"]===Z}))||ve.some((function(e){return e[X.value]===Z}))?ve:[me(Z)].concat(lt(ve))}),[me,x,r,ve,Z,X]),ye=function e(t){return lt(t).sort((function(e,t){return y(e,t,{searchValue:Z})})).map((function(t){return Array.isArray(t.options)?J(J({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},xe=e.useMemo((function(){return y?ye(be):be}),[be,y,Z]),Ce=e.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=gg(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var i=t[s];r.push({key:fg(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&o&&(u=t.label),r.push({key:fg(t,r.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),r}(xe,{fieldNames:X,childrenAsData:K})}),[xe,X,K]),we=function(e){var t=ie(e);if(le(t),z&&(t.length!==pe.length||t.some((function(e,t){var n;return(null===(n=pe[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=_?t:t.map((function(e){return e.value})),o=t.map((function(e){return mg(fe(e.value))}));z(V?n:n[0],V?o:o[0])}},Se=bt(e.useState(null),2),ke=Se[0],Ee=Se[1],Oe=bt(e.useState(0),2),$e=Oe[0],Ne=Oe[1],Me=void 0!==E?E:"combobox"!==r,Ie=e.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Ne(t),s&&"combobox"===r&&null!==e&&"keyboard"===o&&Ee(String(e))}),[s,r]),Pe=function(e,t,n){var o=function(){var t,n=fe(e);return[_?{label:null==n?void 0:n[X.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,mg(n)]};if(t&&h){var r=bt(o(),2),i=r[0],a=r[1];h(i,a)}else if(!t&&g&&"clear"!==n){var s=bt(o(),2),l=s[0],c=s[1];g(l,c)}},Le=em((function(e,t){var n,o=!V||t.selected;n=o?V?[].concat(lt(pe),[e]):[e]:pe.filter((function(t){return t.value!==e})),we(n),Pe(e,o),"combobox"===r?Ee(""):Cg&&!f||(ee(""),Ee(""))})),je=e.useMemo((function(){var e=!1!==$&&!1!==v;return J(J({},te),{},{flattenOptions:Ce,onActiveValue:Ie,defaultActiveFirstOption:Me,onSelect:Le,menuItemSelectedIcon:O,rawValues:ge,fieldNames:X,virtual:e,direction:N,listHeight:I,listItemHeight:L,childrenAsData:K,maxCount:B,optionRender:S})}),[B,te,Ce,Ie,Me,Le,O,ge,X,$,v,N,I,L,K,S]);return"production"!==process.env.NODE_ENV&&(function(t){var n=t.mode,o=t.options,r=t.children,i=t.backfill,a=t.allowClear,s=t.placeholder,l=t.getInputElement,c=t.showSearch,u=t.onSearch,d=t.defaultOpen,p=t.autoFocus,f=t.labelInValue,h=t.value,g=t.inputValue,m=t.optionLabelProp,v=Cg(n),b=void 0!==c?c:v||"combobox"===n,y=o||Jg(r);if(U("tags"!==n||y.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),("tags"===n||"combobox"===n)&&U(!y.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)})),"`value` of Option should not use number type when `mode` is `tags` or `combobox`."),U("combobox"!==n||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),U("combobox"===n||!i,"`backfill` only works with `combobox` mode."),U("combobox"===n||!l,"`getInputElement` only work with `combobox` mode."),G("combobox"!==n||!l||!a||!s,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==n&&"tags"!==n&&U(!1,"`onSearch` should work with `showSearch` instead of use alone."),G(!d||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=h){var x=Lh(h);U(!f||x.every((function(e){return"object"===T(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),U(!v||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var C=null;H(r).some((function(t){if(!e.isValidElement(t)||!t.type)return!1;var n=t.type;return!n.isSelectOption&&(n.isSelectOptGroup?!H(t.props.children).every((function(n){return!(e.isValidElement(n)&&t.type&&!n.type.isSelectOption&&(C=n.type,1))})):(C=n,!0))})),C&&U(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(C.displayName||C.name||C,"`.")),U(void 0===g,"`inputValue` is deprecated, please use `searchValue` instead.")}}(t),function(e,t){e&&function e(n){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;r<n.length;r++){var i=n[r];if(null===i[null==t?void 0:t.value])return U(!1,"`value` in Select options should not be `null`."),!0;if(!o&&Array.isArray(i[null==t?void 0:t.options])&&e(i[null==t?void 0:t.options],!0))break}}(e)}(re,X)),e.createElement(vg.Provider,{value:je},e.createElement(wg,A({},F,{id:W,prefixCls:a,ref:n,omitDomProps:nm,mode:r,displayValues:he,onDisplayValuesChange:function(e,t){we(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Pe(e.value,!1,n)}))},direction:N,searchValue:Z,onSearch:function(e,t){if(ee(e),Ee(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&we(e),null==d||d(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(lt(ge),[n])));we(o),Pe(n,!0),ee("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=oe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(lt(ge),lt(t))));we(n),n.forEach((function(e){Pe(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:qg,emptyOptions:!Ce.length,activeValue:ke,activeDescendantId:"".concat(W,"_list_").concat($e)})))}));"production"!==process.env.NODE_ENV&&(om.displayName="Select");var rm=om;function im(e,t,n){return D({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}rm.Option=kg,rm.OptGroup=Sg;const am=(e,t)=>t||e,sm=()=>{const[,t]=Vi(),n=new Xr(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,"empty image"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};"production"!==process.env.NODE_ENV&&(sm.displayName="EmptyImage");const lm=()=>{const[,t]=Vi(),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=t,{borderColor:a,shadowColor:s,contentColor:l}=d((()=>({borderColor:new Xr(n).onBackground(i).toHexShortString(),shadowColor:new Xr(o).onBackground(i).toHexShortString(),contentColor:new Xr(r).onBackground(i).toHexShortString()})),[n,o,r,i]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,"Simple Empty"),e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:a},e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};"production"!==process.env.NODE_ENV&&(lm.displayName="SimpleImage");const cm=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var um=Zi("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=$i(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[cm(r)]})),dm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const pm=e.createElement(sm,null),fm=e.createElement(lm,null),hm=t=>{var{className:n,rootClassName:o,prefixCls:r,image:i=pm,description:a,children:s,imageStyle:l,style:c}=t,u=dm(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:p,empty:f}=e.useContext(ai),h=d("empty",r),[g,m,v]=um(h),[b]=Jo("Empty"),y=void 0!==a?a:null==b?void 0:b.description,x="string"==typeof y?y:"empty";let C=null;return C="string"==typeof i?e.createElement("img",{alt:x,src:i}):i,g(e.createElement("div",Object.assign({className:D(m,v,h,null==f?void 0:f.className,{[`${h}-normal`]:i===fm,[`${h}-rtl`]:"rtl"===p},n,o),style:Object.assign(Object.assign({},null==f?void 0:f.style),c)},u),e.createElement("div",{className:`${h}-image`,style:l},C),y&&e.createElement("div",{className:`${h}-description`},y),s&&e.createElement("div",{className:`${h}-footer`},s)))};hm.PRESENTED_IMAGE_DEFAULT=pm,hm.PRESENTED_IMAGE_SIMPLE=fm,"production"!==process.env.NODE_ENV&&(hm.displayName="Empty");const gm=e=>{const{componentName:n}=e,{getPrefixCls:o}=r(ai),i=o("empty");switch(n){case"Table":case"List":return t.createElement(hm,{image:hm.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t.createElement(hm,{image:hm.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return t.createElement(hm,null)}},mm=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:s}=r(ai),l=r(qp),c=null==s?void 0:s.variant;let u;u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(o=null!=l?l:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,ii.includes(u)]};function vm(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const bm=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},ym=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},qi(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:Qc},[`\n ${r}${s}topLeft,\n ${i}${s}topLeft,\n ${r}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:Jc},[`${a}${s}bottomLeft`]:{animationName:Zc},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:eu},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},bm(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ki),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${o}-option-selected:not(${o}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${o}-option-selected:not(${o}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},bm(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},au(e,"slide-up"),au(e,"slide-down"),Yc(e,"move-up"),Yc(e,"move-down")]},xm=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:o,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Cm=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),s=t?`${n}-${t}`:"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:Qt(t),itemLineHeight:Qt(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},xm(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Qt(o)} 0`,lineHeight:Qt(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Qt(l.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Qt(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function wm(e,t){const{componentCls:n}=e,o=t?`${n}-${t}`:"",r={[`${n}-multiple${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Cm(e,t),r]}const Sm=e=>{const{componentCls:t}=e,n=$i(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=$i(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[wm(e),wm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},wm(o,"lg")]};function km(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r,fontSizeIcon:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=e.calc(o).add(i).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},qi(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:Qt(s),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Qt(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Qt(o)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:Qt(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Qt(o)}`,"&:after":{display:"none"}}}}}}}function Em(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[km(e),km($i(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Qt(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},km($i(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Om=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Qt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Qt(r)} ${t.activeOutlineColor}`,outline:0}}}},$m=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Om(e,t))}),Nm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Om(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),$m(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),$m(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Qt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Mm=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Qt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Im=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Mm(e,t))}),Pm=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Mm(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Im(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Im(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Lm=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Qt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),jm=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Nm(e)),Pm(e)),Lm(e))}),Dm=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Am=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Tm=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Dm(e)),Am(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ki),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ki),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},Rm=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Tm(e),Em(e),Sm(e),ym(e),{[`${t}-rtl`]:{direction:"rtl"}},Qu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var _m=Zi("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=$i(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Rm(o),jm(o)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:f,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,C=2*s,w=2*o,S=Math.min(r-C,r-w),k=Math.min(i-C,i-w),E=Math.min(a-C,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:f,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:k,multipleItemHeightLG:E,multipleSelectorBgDisabled:m,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),zm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Bm=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:zm}))},Hm=e.forwardRef(Bm);"production"!==process.env.NODE_ENV&&(Hm.displayName="CheckOutlined");var Fm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Wm=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Fm}))},Vm=e.forwardRef(Wm);"production"!==process.env.NODE_ENV&&(Vm.displayName="DownOutlined");var Km={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"},qm=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Km}))},Xm=e.forwardRef(qm);"production"!==process.env.NODE_ENV&&(Xm.displayName="SearchOutlined");var Um=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Gm="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ym=(t,n)=>{var o;const{prefixCls:r,bordered:i,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:p,listItemHeight:f,size:h,disabled:g,notFoundContent:m,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:C,style:w,allowClear:S,variant:k,dropdownStyle:E,transitionName:O,tagRender:$,maxCount:N}=t,M=Um(t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:I,getPrefixCls:P,renderEmpty:L,direction:j,virtual:A,popupMatchSelectWidth:T,popupOverflow:R,select:_}=e.useContext(ai),[,z]=Vi(),B=null!=f?f:null==z?void 0:z.controlHeight,H=P("select",r),F=P(),W=null!=C?C:j,{compactSize:V,compactItemClassnames:K}=Hl(H,W),[q,X]=mm("select",k,i),U=qs(H),[G,Y,Q]=_m(H,U),Z=e.useMemo((()=>{const{mode:e}=t;if("combobox"!==e)return e===Gm?"combobox":e}),[t.mode]),J="multiple"===Z||"tags"===Z,ee=function(e,t){return void 0!==t?t:null!==e}(t.suffixIcon,t.showArrow),te=null!==(o=null!=x?x:y)&&void 0!==o?o:T,{status:ne,hasFeedback:oe,isFormItemInput:re,feedbackIcon:ie}=e.useContext(Vp),ae=am(ne,v);let se;se=void 0!==m?m:"combobox"===Z?null:(null==L?void 0:L("Select"))||e.createElement(gm,{componentName:"Select"});const{suffixIcon:le,itemIcon:ce,removeIcon:ue,clearIcon:de}=function(t){let{suffixIcon:n,clearIcon:o,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:f}=t;"production"!==process.env.NODE_ENV&&zo(f).deprecated(!o,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const h=null!=o?o:e.createElement($s,null),g=t=>null!==n||l||p?e.createElement(e.Fragment,null,!1!==u&&t,l&&d):null;let m=null;if(void 0!==n)m=g(n);else if(a)m=g(e.createElement(Ys,{spin:!0}));else{const t=`${c}-suffix`;m=n=>{let{open:o,showSearch:r}=n;return g(o&&r?e.createElement(Xm,{className:t}):e.createElement(Vm,{className:t}))}}let v=null;v=void 0!==r?r:s?e.createElement(Hm,null):null;let b=null;return b=void 0!==i?i:e.createElement(Is,null),{clearIcon:h,suffixIcon:m,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},M),{multiple:J,hasFeedback:oe,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:H,componentName:"Select"})),pe=!0===S?{clearIcon:de}:S,fe=rt(M,["suffixIcon","itemIcon"]),he=D(c||u,{[`${H}-dropdown-${W}`]:"rtl"===W},s,Q,U,Y),ge=Dl((e=>{var t;return null!==(t=null!=h?h:V)&&void 0!==t?t:e})),me=e.useContext(ci),ve=null!=g?g:me,be=D({[`${H}-lg`]:"large"===ge,[`${H}-sm`]:"small"===ge,[`${H}-rtl`]:"rtl"===W,[`${H}-${q}`]:X,[`${H}-in-form-item`]:re},im(H,ae,oe),K,null==_?void 0:_.className,a,s,Q,U,Y),ye=e.useMemo((()=>void 0!==p?p:"rtl"===W?"bottomRight":"bottomLeft"),[p,W]);if("production"!==process.env.NODE_ENV){const e=zo("Select");e.deprecated(!u,"dropdownClassName","popupClassName"),e.deprecated(void 0===y,"dropdownMatchSelectWidth","popupMatchSelectWidth"),"production"!==process.env.NODE_ENV&&e(!("showArrow"in t),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),e.deprecated(!("bordered"in t),"bordered","variant"),"production"!==process.env.NODE_ENV&&e(!(void 0!==N&&!J),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[xe]=tl("SelectLike",null==E?void 0:E.zIndex);return G(e.createElement(rm,Object.assign({ref:n,virtual:A,showSearch:null==_?void 0:_.showSearch},fe,{style:Object.assign(Object.assign({},null==_?void 0:_.style),w),dropdownMatchSelectWidth:te,transitionName:Sl(F,"slide-up",O),builtinPlacements:vm(b,R),listHeight:d,listItemHeight:B,mode:Z,prefixCls:H,placement:ye,direction:W,suffixIcon:le,menuItemSelectedIcon:ce,removeIcon:ue,allowClear:pe,notFoundContent:se,className:be,getPopupContainer:l||I,dropdownClassName:he,disabled:ve,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:xe}),maxCount:J?N:void 0,tagRender:J?$:void 0})))};"production"!==process.env.NODE_ENV&&(Ym.displayName="Select");const Qm=e.forwardRef(Ym),Zm=sh(Qm);Qm.SECRET_COMBOBOX_MODE_DO_NOT_USE=Gm,Qm.Option=kg,Qm.OptGroup=Sg,Qm._InternalPanelDoNotUseOrYouWillBeFired=Zm,"production"!==process.env.NODE_ENV&&(Qm.displayName="Select");const Jm=["xxl","xl","lg","md","sm","xs"];function ev(){const[,e]=Vi(),n=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Jm).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return t.useMemo((()=>{const e=new Map;let t=-1,o={};return{matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(o),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],o=this.matchHandlers[t];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(t);i.addListener(r),this.matchHandlers[t]={mql:i,listener:r},r(i)}))},responsiveMap:n}}),[e])}function tv(){const[,t]=e.useReducer((e=>e+1),0);return t}function nv(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=a({}),n=tv(),o=ev();return on((()=>{const r=o.subscribe((o=>{t.current=o,e&&n()}));return()=>o.unsubscribe(r)}),[]),t.current}const ov=e.createContext({}),rv=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:f,borderRadiusSM:h,lineWidth:g,lineType:m}=e,v=(e,t,r)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${Qt(g)} ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,c,p)),{"&-lg":Object.assign({},v(s,u,f)),"&-sm":Object.assign({},v(l,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},iv=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}};var av=Zi("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=$i(e,{avatarBg:n,avatarColor:t});return[rv(o),iv(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:r,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}})),sv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lv=(t,n)=>{const[o,r]=e.useState(1),[i,a]=e.useState(!1),[s,l]=e.useState(!0),c=e.useRef(null),u=e.useRef(null),d=pe(n,c),{getPrefixCls:p,avatar:f}=e.useContext(ai),h=e.useContext(ov),g=()=>{if(!u.current||!c.current)return;const e=u.current.offsetWidth,n=c.current.offsetWidth;if(0!==e&&0!==n){const{gap:o=4}=t;2*o<n&&r(n-2*o<e?(n-2*o)/e:1)}};e.useEffect((()=>{a(!0)}),[]),e.useEffect((()=>{l(!0),r(1)}),[t.src]),e.useEffect(g,[t.gap]);const m=()=>{const{onError:e}=t;!1!==(null==e?void 0:e())&&l(!1)},{prefixCls:v,shape:b,size:y,src:x,srcSet:C,icon:w,className:S,rootClassName:k,alt:E,draggable:O,children:$,crossOrigin:N}=t,M=sv(t,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),I=Dl((e=>{var t,n;return null!==(n=null!==(t=null!=y?y:null==h?void 0:h.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),P=nv(Object.keys("object"==typeof I&&I||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),L=e.useMemo((()=>{if("object"!=typeof I)return{};const e=Jm.find((e=>P[e])),t=I[e];return t?{width:t,height:t,fontSize:t&&(w||$)?t/2:18}:{}}),[P,I]);if("production"!==process.env.NODE_ENV){const e=zo("Avatar");"production"!==process.env.NODE_ENV&&e(!("string"==typeof w&&w.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${w}\` at https://ant.design/components/icon`)}const j=p("avatar",v),A=qs(j),[T,R,_]=av(j,A),z=D({[`${j}-lg`]:"large"===I,[`${j}-sm`]:"small"===I}),B=e.isValidElement(x),H=b||(null==h?void 0:h.shape)||"circle",F=D(j,z,null==f?void 0:f.className,`${j}-${H}`,{[`${j}-image`]:B||x&&s,[`${j}-icon`]:!!w},_,A,S,k,R),W="number"==typeof I?{width:I,height:I,fontSize:w?I/2:18}:{};let V;if("string"==typeof x&&s)V=e.createElement("img",{src:x,draggable:O,srcSet:C,onError:m,alt:E,crossOrigin:N});else if(B)V=x;else if(w)V=w;else if(i||1!==o){const t=`scale(${o})`,n={msTransform:t,WebkitTransform:t,transform:t};V=e.createElement(ot,{onResize:g},e.createElement("span",{className:`${j}-string`,ref:u,style:Object.assign({},n)},$))}else V=e.createElement("span",{className:`${j}-string`,style:{opacity:0},ref:u},$);return delete M.onError,delete M.gap,T(e.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},W),L),null==f?void 0:f.style),M.style),className:F,ref:d}),V))},cv=e.forwardRef(lv);"production"!==process.env.NODE_ENV&&(cv.displayName="Avatar");const uv=e=>e?"function"==typeof e?e():e:null;function dv(t){var n=t.children,o=t.prefixCls,r=t.id,i=t.overlayInnerStyle,a=t.className,s=t.style;return e.createElement("div",{className:D("".concat(o,"-content"),a),style:s},e.createElement("div",{className:"".concat(o,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof n?n():n))}var pv={shiftX:64,adjustY:1},fv={adjustX:1,shiftY:!0},hv=[0,0],gv={left:{points:["cr","cl"],overflow:fv,offset:[-4,0],targetOffset:hv},right:{points:["cl","cr"],overflow:fv,offset:[4,0],targetOffset:hv},top:{points:["bc","tc"],overflow:pv,offset:[0,-4],targetOffset:hv},bottom:{points:["tc","bc"],overflow:pv,offset:[0,4],targetOffset:hv},topLeft:{points:["bl","tl"],overflow:pv,offset:[0,-4],targetOffset:hv},leftTop:{points:["tr","tl"],overflow:fv,offset:[-4,0],targetOffset:hv},topRight:{points:["br","tr"],overflow:pv,offset:[0,-4],targetOffset:hv},rightTop:{points:["tl","tr"],overflow:fv,offset:[4,0],targetOffset:hv},bottomRight:{points:["tr","br"],overflow:pv,offset:[0,4],targetOffset:hv},rightBottom:{points:["bl","br"],overflow:fv,offset:[4,0],targetOffset:hv},bottomLeft:{points:["tl","bl"],overflow:pv,offset:[0,4],targetOffset:hv},leftBottom:{points:["br","bl"],overflow:fv,offset:[-4,0],targetOffset:hv}},mv=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],vv=function(t,n){var o=t.overlayClassName,r=t.trigger,i=void 0===r?["hover"]:r,s=t.mouseEnterDelay,l=void 0===s?0:s,c=t.mouseLeaveDelay,u=void 0===c?.1:c,d=t.overlayStyle,p=t.prefixCls,f=void 0===p?"rc-tooltip":p,h=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,y=t.animation,x=t.motion,C=t.placement,w=void 0===C?"right":C,S=t.align,k=void 0===S?{}:S,E=t.destroyTooltipOnHide,O=void 0!==E&&E,$=t.defaultVisible,N=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,P=t.id,L=t.showArrow,j=void 0===L||L,D=Lt(t,mv),T=a(null);g(n,(function(){return T.current}));var R=J({},D);"visible"in t&&(R.popupVisible=t.visible);return e.createElement(cg,A({popupClassName:o,prefixCls:f,popup:function(){return e.createElement(dv,{key:"content",prefixCls:f,id:P,overlayInnerStyle:M},I)},action:i,builtinPlacements:gv,popupPlacement:w,ref:T,popupAlign:k,getPopupContainer:N,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:y,popupMotion:x,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:j},R),h)},bv=c(vv);function yv(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),s=r-o*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-l,d=c,p=2*r-a,f=s,h=2*r-0,g=i,m=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${p} ${f} A ${o} ${o} 0 0 0 ${h} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const xv=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Qt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Cv(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function wv(e,t){return e?t:{}}function Sv(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},xv(e,t,r)),{"&:before":{background:t}})]},wv(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Qt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),wv(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Qt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),wv(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),wv(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const kv={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"]}},Ev={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"]}},Ov=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function $v(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(kv).forEach((e=>{const c=o&&Ev[e]||kv[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,Ov.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+r}const d=Cv({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-s}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}const Nv=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Qt(e.calc(c).div(2).equal())} ${Qt(u)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,8)}},[`${t}-content`]:{position:"relative"}}),ta(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},Sv(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Mv=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Cv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),yv($i(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var Iv=function(e){const t=Zi("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=$i(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[Nv(r),hu(e,"zoom-big-fast")]}),Mv,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Pv=Di.map((e=>`${e}-inverse`)),Lv=["success","processing","error","default","warning"];function jv(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(lt(Pv),lt(Di)).includes(e):Di.includes(e)}function Dv(e,t){const n=jv(t),o=D({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}var Av=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Tv=e.forwardRef(((t,n)=>{var o,r;const{prefixCls:i,openClassName:a,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:g=!0,title:m,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=t,C=!!g,[,w]=Vi(),{getPopupContainer:S,getPrefixCls:k,direction:E}=e.useContext(ai),O=zo("Tooltip"),$=e.useRef(null),N=()=>{var e;null===(e=$.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:N,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:null===(e=$.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((e=>{let[n,o]=e;O.deprecated(!(n in t),n,o)})),"production"!==process.env.NODE_ENV&&O(!h||"boolean"==typeof h,"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[M,I]=Si(!1,{value:null!==(o=t.open)&&void 0!==o?o:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),P=!m&&!v&&0!==m,L=e.useMemo((()=>{var e,t;let n=y;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:y),b||$v({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:C?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[y,g,b,w]),j=e.useMemo((()=>0===m?m:v||m||""),[v,m]),A=e.createElement(Xp,{space:!0},"function"==typeof j?j():j),{getPopupContainer:T,placement:R="top",mouseEnterDelay:_=.1,mouseLeaveDelay:z=.1,overlayStyle:B,rootClassName:H}=t,F=Av(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=k("tooltip",i),V=k(),K=t["data-popover-inject"];let q=M;"open"in t||"visible"in t||!P||(q=!1);const X=e.isValidElement(d)&&!Bs(d)?d:e.createElement("span",null,d),U=X.props,G=U.className&&"string"!=typeof U.className?U.className:D(U.className,a||`${W}-open`),[Y,Q,Z]=Iv(W,!K),J=Dv(W,c),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=D(l,{[`${W}-rtl`]:"rtl"===E},J.className,H,Q,Z),[oe,re]=tl("Tooltip",F.zIndex),ie=e.createElement(bv,Object.assign({},F,{zIndex:oe,showArrow:C,placement:R,mouseEnterDelay:_,mouseLeaveDelay:z,prefixCls:W,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),B),getTooltipContainer:T||s||S,ref:$,builtinPlacements:L,overlay:A,visible:q,onVisibleChange:e=>{var n,o;I(!P&&e),P||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(o=t.onVisibleChange)||void 0===o||o.call(t,e))},afterVisibleChange:null!=p?p:f,overlayInnerStyle:te,arrowContent:e.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:Sl(V,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),q?Fs(X,{className:G}):X);return Y(e.createElement(Qs.Provider,{value:re},ie))})),Rv=Tv;"production"!==process.env.NODE_ENV&&(Rv.displayName="Tooltip"),Rv._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:o,placement:r="top",title:i,color:a,overlayInnerStyle:s}=t,{getPrefixCls:l}=e.useContext(ai),c=l("tooltip",n),[u,d,p]=Iv(c),f=Dv(c,a),h=f.arrowStyle,g=Object.assign(Object.assign({},s),f.overlayStyle),m=D(d,p,c,`${c}-pure`,`${c}-placement-${r}`,o,f.className);return u(e.createElement("div",{className:m,style:h},e.createElement("div",{className:`${c}-arrow`}),e.createElement(dv,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};const _v=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:p,titleBorderBottom:f,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},qi(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:s,fontWeight:r,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},Sv(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},zv=e=>{const{componentCls:t}=e;return{[t]:Di.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}};var Bv=Zi("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,o=$i(e,{popoverBg:t,popoverColor:n});return[_v(o),zv(o),hu(o,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,p=n-o,f=p/2,h=p/2-t,g=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},yv(e)),Cv({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${f}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),Hv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Fv=t=>{let{title:n,content:o,prefixCls:r}=t;return n||o?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:`${r}-title`},n),o&&e.createElement("div",{className:`${r}-inner-content`},o)):null},Wv=t=>{const{hashId:n,prefixCls:o,className:r,style:i,placement:a="top",title:s,content:l,children:c}=t,u=uv(s),d=uv(l),p=D(n,o,`${o}-pure`,`${o}-placement-${a}`,r);return e.createElement("div",{className:p,style:i},e.createElement("div",{className:`${o}-arrow`}),e.createElement(dv,Object.assign({},t,{className:n,prefixCls:o}),c||e.createElement(Fv,{prefixCls:o,title:u,content:d})))};var Vv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Kv=e.forwardRef(((t,n)=>{var o,r;const{prefixCls:i,title:a,content:s,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:p=.1,mouseLeaveDelay:f=.1,onOpenChange:h,overlayStyle:g={}}=t,m=Vv(t,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:v}=e.useContext(ai),b=v("popover",i),[y,x,C]=Bv(b),w=v(),S=D(l,x,C),[k,E]=Si(!1,{value:null!==(o=t.open)&&void 0!==o?o:t.visible,defaultValue:null!==(r=t.defaultOpen)&&void 0!==r?r:t.defaultVisible}),O=(e,t)=>{E(e,!0),null==h||h(e,t)},$=uv(a),N=uv(s);return y(e.createElement(Rv,Object.assign({placement:c,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:f,overlayStyle:g},m,{prefixCls:b,overlayClassName:S,ref:n,open:k,onOpenChange:e=>{O(e)},overlay:$||N?e.createElement(Fv,{prefixCls:b,title:$,content:N}):null,transitionName:Sl(w,"zoom-big",m.transitionName),"data-popover-inject":!0}),Fs(d,{onKeyDown:t=>{var n,o;e.isValidElement(d)&&(null===(o=null==d?void 0:(n=d.props).onKeyDown)||void 0===o||o.call(n,t)),(e=>{e.keyCode===Xs.ESC&&O(!1,e)})(t)}})))}));Kv._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:o}=t,r=Hv(t,["prefixCls","className"]),{getPrefixCls:i}=e.useContext(ai),a=i("popover",n),[s,l,c]=Bv(a);return s(e.createElement(Wv,Object.assign({},r,{prefixCls:a,hashId:l,className:D(o,c)})))},"production"!==process.env.NODE_ENV&&(Kv.displayName="Popover");const qv=t=>{const{size:n,shape:o}=e.useContext(ov),r=e.useMemo((()=>({size:t.size||n,shape:t.shape||o})),[t.size,t.shape,n,o]);return e.createElement(ov.Provider,{value:r},t.children)},Xv=cv;Xv.Group=t=>{var n,o,r;const{getPrefixCls:i,direction:a}=e.useContext(ai),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:p,size:f,shape:h,maxPopoverPlacement:g,maxPopoverTrigger:m,children:v,max:b}=t;if("production"!==process.env.NODE_ENV){const e=zo("Avatar.Group");e.deprecated(!d,"maxCount","max={{ count: number }}"),e.deprecated(!p,"maxStyle","max={{ style: CSSProperties }}"),e.deprecated(!g,"maxPopoverPlacement","max={{ popover: PopoverProps }}"),e.deprecated(!m,"maxPopoverTrigger","max={{ popover: PopoverProps }}")}const y=i("avatar",s),x=`${y}-group`,C=qs(y),[w,S,k]=av(y,C),E=D(x,{[`${x}-rtl`]:"rtl"===a},k,C,l,c,S),O=H(v).map(((e,t)=>Fs(e,{key:`avatar-key-${t}`}))),$=(null==b?void 0:b.count)||d,N=O.length;if($&&$<N){const t=O.slice(0,$),i=O.slice($,N),a=(null==b?void 0:b.style)||p,s=(null===(n=null==b?void 0:b.popover)||void 0===n?void 0:n.trigger)||m||"hover",l=(null===(o=null==b?void 0:b.popover)||void 0===o?void 0:o.placement)||g||"top",c=Object.assign(Object.assign({content:i},null==b?void 0:b.popover),{overlayClassName:D(`${x}-popover`,null===(r=null==b?void 0:b.popover)||void 0===r?void 0:r.overlayClassName),placement:l,trigger:s});return t.push(e.createElement(Kv,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},c),e.createElement(cv,{style:a},"+"+(N-$)))),w(e.createElement(qv,{shape:h,size:f},e.createElement("div",{className:E,style:u},t)))}return w(e.createElement(qv,{shape:h,size:f},e.createElement("div",{className:E,style:u},O)))};var Uv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},Gv=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Uv}))},Yv=e.forwardRef(Gv);"production"!==process.env.NODE_ENV&&(Yv.displayName="VerticalAlignTopOutlined");const Qv=new Eo("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Zv=new Eo("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Jv=new Eo("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),eb=new Eo("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),tb=new Eo("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),nb=new Eo("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),ob=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return $i(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},rb=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}};var ib=Zi("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:d,marginXS:p,calc:f}=e,h=`${o}-scroll-number`,g=ta(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o},"a:hover &":{background:o}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:Qt(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:f(u).div(2).equal(),boxShadow:`0 0 0 ${Qt(r)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:Qt(d),borderRadius:f(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Qt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Qt(r)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:nb,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Qv,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Zv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Jv,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:eb,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:tb,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(ob(e))),rb);var ab=Zi(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=ta(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{position:"absolute",top:o,padding:`0 ${Qt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Qt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${Qt(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(ob(e))),rb);const sb=t=>{const{className:n,prefixCls:o,style:r,color:i,children:a,text:s,placement:l="end",rootClassName:c}=t,{getPrefixCls:u,direction:d}=e.useContext(ai),p=u("ribbon",o),f=`${p}-wrapper`,[h,g,m]=ab(p,f),v=jv(i,!1),b=D(p,`${p}-placement-${l}`,{[`${p}-rtl`]:"rtl"===d,[`${p}-color-${i}`]:v},n),y={},x={};return i&&!v&&(y.background=i,x.color=i),h(e.createElement("div",{className:D(f,c,g,m)},a,e.createElement("div",{className:D(b,g),style:Object.assign(Object.assign({},y),r)},e.createElement("span",{className:`${p}-text`},s),e.createElement("div",{className:`${p}-corner`,style:x}))))};"production"!==process.env.NODE_ENV&&(sb.displayName="Ribbon");const lb=t=>{const{prefixCls:n,value:o,current:r,offset:i=0}=t;let a;return i&&(a={position:"absolute",top:`${i}00%`,left:0}),e.createElement("span",{style:a,className:D(`${n}-only-unit`,{current:r})},o)};function cb(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const ub=t=>{const{prefixCls:n,count:o,value:r}=t,i=Number(r),a=Math.abs(o),[s,l]=e.useState(i),[c,u]=e.useState(a),d=()=>{l(i),u(a)};let p,f;if(e.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),s===i||Number.isNaN(i)||Number.isNaN(s))p=[e.createElement(lb,Object.assign({},t,{key:i,current:!0}))],f={transition:"none"};else{p=[];const n=i+10,o=[];for(let e=i;e<=n;e+=1)o.push(e);const r=o.findIndex((e=>e%10===s));p=o.map(((n,o)=>{const i=n%10;return e.createElement(lb,Object.assign({},t,{key:n,value:i,offset:o-r,current:o===r}))}));f={transform:`translateY(${-cb(s,i,c<a?1:-1)}00%)`}}return e.createElement("span",{className:`${n}-only`,style:f,onTransitionEnd:d},p)};var db=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const pb=e.forwardRef(((t,n)=>{const{prefixCls:o,count:r,className:i,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=t,p=db(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=e.useContext(ai),h=f("scroll-number",o),g=Object.assign(Object.assign({},p),{"data-show":c,style:s,className:D(h,i,a),title:l});let m=r;if(r&&Number(r)%1==0){const t=String(r).split("");m=e.createElement("bdi",null,t.map(((n,o)=>e.createElement(ub,{prefixCls:h,count:Number(r),value:n,key:t.length-o}))))}return(null==s?void 0:s.borderColor)&&(g.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?Fs(d,(e=>({className:D(`${h}-custom-component`,null==e?void 0:e.className,a)}))):e.createElement(u,Object.assign({},g,{ref:n}),m)}));var fb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const hb=e.forwardRef(((t,n)=>{var o,r,i,s,l;const{prefixCls:c,scrollNumberPrefixCls:u,children:p,status:f,text:h,color:g,count:m=null,overflowCount:v=99,dot:b=!1,size:y="default",title:x,offset:C,style:w,className:S,rootClassName:k,classNames:E,styles:O,showZero:$=!1}=t,N=fb(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:I,badge:P}=e.useContext(ai),L=M("badge",c),[j,A,T]=ib(L),R=m>v?`${v}+`:m,_="0"===R||0===R,z=(null!=f||null!=g)&&(null===m||_&&!$),B=b&&!_,H=B?"":R,F=d((()=>(null==H||""===H||_&&!$)&&!B),[H,_,$,B]),W=a(m);F||(W.current=m);const V=W.current,K=a(H);F||(K.current=H);const q=K.current,X=a(B);F||(X.current=B);const U=d((()=>{if(!C)return Object.assign(Object.assign({},null==P?void 0:P.style),w);const e={marginTop:C[1]};return"rtl"===I?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null==P?void 0:P.style),w)}),[I,C,w,null==P?void 0:P.style]),G=null!=x?x:"string"==typeof V||"number"==typeof V?V:void 0,Y=F||!h?null:e.createElement("span",{className:`${L}-status-text`},h),Q=V&&"object"==typeof V?Fs(V,(e=>({style:Object.assign(Object.assign({},U),e.style)}))):void 0,Z=jv(g,!1),J=D(null==E?void 0:E.indicator,null===(o=null==P?void 0:P.classNames)||void 0===o?void 0:o.indicator,{[`${L}-status-dot`]:z,[`${L}-status-${f}`]:!!f,[`${L}-color-${g}`]:Z}),ee={};g&&!Z&&(ee.color=g,ee.background=g);const te=D(L,{[`${L}-status`]:z,[`${L}-not-a-wrapper`]:!p,[`${L}-rtl`]:"rtl"===I},S,k,null==P?void 0:P.className,null===(r=null==P?void 0:P.classNames)||void 0===r?void 0:r.root,null==E?void 0:E.root,A,T);if(!p&&z){const t=U.color;return j(e.createElement("span",Object.assign({},N,{className:te,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.root),null===(i=null==P?void 0:P.styles)||void 0===i?void 0:i.root),U)}),e.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(s=null==P?void 0:P.styles)||void 0===s?void 0:s.indicator),ee)}),h&&e.createElement("span",{style:{color:t},className:`${L}-status-text`},h)))}return j(e.createElement("span",Object.assign({ref:n},N,{className:te,style:Object.assign(Object.assign({},null===(l=null==P?void 0:P.styles)||void 0===l?void 0:l.root),null==O?void 0:O.root)}),p,e.createElement(_a,{visible:!F,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},(t=>{let{className:n}=t;var o,r;const i=M("scroll-number",u),a=X.current,s=D(null==E?void 0:E.indicator,null===(o=null==P?void 0:P.classNames)||void 0===o?void 0:o.indicator,{[`${L}-dot`]:a,[`${L}-count`]:!a,[`${L}-count-sm`]:"small"===y,[`${L}-multiple-words`]:!a&&q&&q.toString().length>1,[`${L}-status-${f}`]:!!f,[`${L}-color-${g}`]:Z});let l=Object.assign(Object.assign(Object.assign({},null==O?void 0:O.indicator),null===(r=null==P?void 0:P.styles)||void 0===r?void 0:r.indicator),U);return g&&!Z&&(l=l||{},l.background=g),e.createElement(pb,{prefixCls:i,show:!F,motionClassName:n,className:s,count:q,title:G,style:l,key:"scrollNumber"},Q)})),Y))})),gb=hb;gb.Ribbon=sb,"production"!==process.env.NODE_ENV&&(gb.displayName="Badge");var mb=Xs.ESC,vb=Xs.TAB;var bb=c((function(e,n){var o=e.overlay,r=e.arrow,i=e.prefixCls,a=d((function(){return"function"==typeof o?o():o}),[o]),s=pe(n,me(a));return t.createElement(t.Fragment,null,r&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:he(a)?s:void 0}))})),yb={adjustX:1,adjustY:1},xb=[0,0],Cb={topLeft:{points:["bl","tl"],overflow:yb,offset:[0,-4],targetOffset:xb},top:{points:["bc","tc"],overflow:yb,offset:[0,-4],targetOffset:xb},topRight:{points:["br","tr"],overflow:yb,offset:[0,-4],targetOffset:xb},bottomLeft:{points:["tl","bl"],overflow:yb,offset:[0,4],targetOffset:xb},bottom:{points:["tc","bc"],overflow:yb,offset:[0,4],targetOffset:xb},bottomRight:{points:["tr","br"],overflow:yb,offset:[0,4],targetOffset:xb}},wb=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Sb(n,o){var r,i=n.arrow,a=void 0!==i&&i,s=n.prefixCls,l=void 0===s?"rc-dropdown":s,c=n.transitionName,u=n.animation,d=n.align,p=n.placement,f=void 0===p?"bottomLeft":p,h=n.placements,g=void 0===h?Cb:h,m=n.getPopupContainer,v=n.showAction,b=n.hideAction,y=n.overlayClassName,x=n.overlayStyle,C=n.visible,w=n.trigger,S=void 0===w?["hover"]:w,k=n.autoFocus,E=n.overlay,O=n.children,$=n.onVisibleChange,N=Lt(n,wb),M=bt(t.useState(),2),I=M[0],P=M[1],L="visible"in n?C:I,j=t.useRef(null),T=t.useRef(null),R=t.useRef(null);t.useImperativeHandle(o,(function(){return j.current}));var _=function(e){P(e),null==$||$(e)};!function(t){var n=t.visible,o=t.triggerRef,r=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,s=e.useRef(!1),l=function(){var e,t;n&&(null===(e=o.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),s.current=!0,0))},u=function(e){switch(e.keyCode){case mb:l();break;case vb:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&ht(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[n])}({visible:L,triggerRef:R,onVisibleChange:_,autoFocus:k,overlayRef:T});var z,B,H,F=function(){return t.createElement(bb,{ref:T,overlay:E,prefixCls:l,arrow:a})},W=t.cloneElement(O,{className:D(null===(r=O.props)||void 0===r?void 0:r.className,L&&(z=n.openClassName,void 0!==z?z:"".concat(l,"-open"))),ref:he(O)?pe(R,me(O)):void 0}),V=b;return V||-1===S.indexOf("contextMenu")||(V=["click"]),t.createElement(cg,A({builtinPlacements:g},N,{prefixCls:l,ref:j,popupClassName:D(y,Q({},"".concat(l,"-show-arrow"),a)),popupStyle:x,action:S,showAction:v,hideAction:V,popupPlacement:f,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:L,stretch:(B=n.minOverlayWidthMatchTrigger,H=n.alignPoint,("minOverlayWidthMatchTrigger"in n?B:!H)?"minWidth":""),popup:"function"==typeof E?F:F(),onPopupVisibleChange:_,onPopupClick:function(e){var t=n.onOverlayClick;P(!1),t&&t(e)},getPopupContainer:m}),W)}var kb=t.forwardRef(Sb),Eb=e.createContext(null);function Ob(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function $b(t){return Ob(e.useContext(Eb),t)}var Nb=["children","locked"],Mb=e.createContext(null);function Ib(t){var n=t.children,o=t.locked,r=Lt(t,Nb),i=e.useContext(Mb),a=ce((function(){return function(e,t){var n=J({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(i,r)}),[i,r],(function(e,t){return!(o||e[0]===t[0]&&jt(e[1],t[1],!0))}));return e.createElement(Mb.Provider,{value:a},n)}var Pb=[],Lb=e.createContext(null);function jb(){return e.useContext(Lb)}var Db=e.createContext(Pb);function Ab(t){var n=e.useContext(Db);return e.useMemo((function(){return void 0!==t?[].concat(lt(n),[t]):n}),[n,t])}var Tb=e.createContext(null),Rb=e.createContext({});function _b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(kl(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var zb=Xs.LEFT,Bb=Xs.RIGHT,Hb=Xs.UP,Fb=Xs.DOWN,Wb=Xs.ENTER,Vb=Xs.ESC,Kb=Xs.HOME,qb=Xs.END,Xb=[Hb,Fb,zb,Bb];function Ub(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=lt(e.querySelectorAll("*")).filter((function(e){return _b(e,t)}));return _b(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Gb(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=Ub(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var Yb=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Ob(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};function Qb(t,n,o,r,i,a,s,l,c,u){var d=e.useRef(),p=e.useRef();p.current=n;var f=function(){ht.cancel(d.current)};return e.useEffect((function(){return function(){f()}}),[]),function(e){var h=e.which;if([].concat(Xb,[Wb,Vb,Kb,qb]).includes(h)){var g=a(),m=Yb(g,r),v=m,b=v.elements,y=v.key2element,x=v.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),w=x.get(C),S=function(e,t,n,o){var r,i="prev",a="next",s="children",l="parent";if("inline"===e&&o===Wb)return{inlineTrigger:!0};var c=Q(Q({},Hb,i),Fb,a),u=Q(Q(Q(Q({},zb,n?a:i),Bb,n?i:a),Fb,s),Wb,s),d=Q(Q(Q(Q(Q(Q({},Hb,i),Fb,a),Wb,s),Vb,l),zb,n?s:l),Bb,n?l:s);switch(null===(r={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===r?void 0:r[o]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(t,1===s(w,!0).length,o,h);if(!S&&h!==Kb&&h!==qb)return;(Xb.includes(h)||[Kb,qb].includes(h))&&e.preventDefault();var k=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=x.get(e);l(o),f(),d.current=ht((function(){p.current===o&&t.focus()}))}};if([Kb,qb].includes(h)||S.sibling||!C){var E,O,$=Ub(E=C&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,b);O=h===Kb?$[0]:h===qb?$[$.length-1]:Gb(E,b,C,S.offset),k(O)}else if(S.inlineTrigger)c(w);else if(S.offset>0)c(w,!0),f(),d.current=ht((function(){m=Yb(g,r);var e=C.getAttribute("aria-controls"),t=Gb(document.getElementById(e),m.elements);k(t)}),5);else if(S.offset<0){var N=s(w,!0),M=N[N.length-2],I=y.get(M);c(M,!1),k(I)}}null==u||u(e)}}var Zb="__RC_UTIL_PATH_SPLIT__",Jb=function(e){return e.join(Zb)},ey="rc-menu-more";function ty(){var t=bt(e.useState({}),2)[1],n=a(new Map),o=a(new Map),r=bt(e.useState([]),2),i=r[0],s=r[1],l=a(0),c=a(!1),u=h((function(e,r){"production"!==process.env.NODE_ENV&&U(!n.current.has(e),"Duplicated key '".concat(e,"' used in Menu by path [").concat(r.join(" > "),"]"));var i=Jb(r);o.current.set(i,e),n.current.set(e,i),l.current+=1;var a=l.current;!function(e){Promise.resolve().then(e)}((function(){a===l.current&&(c.current||t({}))}))}),[]),d=h((function(e,t){var r=Jb(t);o.current.delete(r),n.current.delete(e)}),[]),p=h((function(e){s(e)}),[]),f=h((function(e,t){var o=n.current.get(e)||"",r=o.split(Zb);return t&&i.includes(r[0])&&r.unshift(ey),r}),[i]),g=h((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),m=h((function(e){var t="".concat(n.current.get(e)).concat(Zb),r=new Set;return lt(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return e.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:u,unregisterPath:d,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:f,getKeys:function(){var e=lt(n.current.keys());return i.length&&e.push(ey),e},getSubPathKeys:m}}function ny(t){var n=e.useRef(t);n.current=t;var o=e.useCallback((function(){for(var e,t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(o))}),[]);return t?o:void 0}var oy=Math.random().toFixed(5).toString().slice(2),ry=0;function iy(t,n,o,r){var i=e.useContext(Mb),a=i.activeKey,s=i.onActive,l=i.onInactive,c={active:a===t};return n||(c.onMouseEnter=function(e){null==o||o({key:t,domEvent:e}),s(t)},c.onMouseLeave=function(e){null==r||r({key:t,domEvent:e}),l(t)}),c}function ay(t){var n=e.useContext(Mb),o=n.mode,r=n.rtl,i=n.inlineIndent;if("inline"!==o)return null;return r?{paddingRight:t*i}:{paddingLeft:t*i}}function sy(t){var n,o=t.icon,r=t.props,i=t.children;return null===o||!1===o?null:("function"==typeof o?n=e.createElement(o,J({},r)):"boolean"!=typeof o&&(n=o),n||i||null)}var ly=["item"];function cy(e){var t=e.item,n=Lt(e,ly);return Object.defineProperty(n,"item",{get:function(){return U(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var uy=["title","attribute","elementRef"],dy=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],py=["active"],fy=function(){Xe(n,e.Component);var t=Ze(n);function n(){return We(this,n),t.apply(this,arguments)}return Ke(n,[{key:"render",value:function(){var t=this.props,n=t.title,o=t.attribute,r=t.elementRef,i=rt(Lt(t,uy),["eventKey","popupClassName","popupOffset","onTitleClick"]);return U(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(Mh.Item,A({},o,{title:"string"==typeof n?n:void 0},i,{ref:r}))}}]),n}(),hy=e.forwardRef((function(t,n){var o=t.style,r=t.className,i=t.eventKey,a=t.warnKey,s=t.disabled,l=t.itemIcon,c=t.children,u=t.role,d=t.onMouseEnter,p=t.onMouseLeave,f=t.onClick,h=t.onKeyDown,g=t.onFocus,m=Lt(t,dy),v=$b(i),b=e.useContext(Mb),y=b.prefixCls,x=b.onItemClick,C=b.disabled,w=b.overflowDisabled,S=b.itemIcon,k=b.selectedKeys,E=b.onActive,O=e.useContext(Rb)._internalRenderMenuItem,$="".concat(y,"-item"),N=e.useRef(),M=e.useRef(),I=C||s,P=fe(n,M),L=Ab(i);"production"!==process.env.NODE_ENV&&a&&U(!1,"MenuItem should not leave undefined `key`.");var j=function(e){return{key:i,keyPath:lt(L).reverse(),item:N.current,domEvent:e}},T=l||S,R=iy(i,I,d,p),_=R.active,z=Lt(R,py),B=k.includes(i),H=ay(L.length),F={};"option"===t.role&&(F["aria-selected"]=B);var W=e.createElement(fy,A({ref:N,elementRef:P,role:null===u?"none":u||"menuitem",tabIndex:s?null:-1,"data-menu-id":w&&v?null:v},m,z,F,{component:"li","aria-disabled":s,style:J(J({},H),o),className:D($,Q(Q(Q({},"".concat($,"-active"),_),"".concat($,"-selected"),B),"".concat($,"-disabled"),I),r),onClick:function(e){if(!I){var t=j(e);null==f||f(cy(t)),x(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===Xs.ENTER){var t=j(e);null==f||f(cy(t)),x(t)}},onFocus:function(e){E(i),null==g||g(e)}}),c,e.createElement(sy,{props:J(J({},t),{},{isSelected:B}),icon:T}));return O&&(W=O(W,t,{selected:B})),W}));function gy(t,n){var o=t.eventKey,r=jb(),i=Ab(o);return e.useEffect((function(){if(r)return r.registerPath(o,i),function(){r.unregisterPath(o,i)}}),[i]),r?null:e.createElement(hy,A({},t,{ref:n}))}var my=e.forwardRef(gy),vy=["className","children"],by=function(t,n){var o=t.className,r=t.children,i=Lt(t,vy),a=e.useContext(Mb),s=a.prefixCls,l=a.mode,c=a.rtl;return e.createElement("ul",A({className:D(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),o),role:"menu"},i,{"data-menu-list":!0,ref:n}),r)},yy=e.forwardRef(by);function xy(t,n){return H(t).map((function(t,o){if(e.isValidElement(t)){var r,i,a=t.key,s=null!==(r=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a,l=null==s;l&&(s="tmp_key-".concat([].concat(lt(n),[o]).join("-")));var c={key:s,eventKey:s};return"production"!==process.env.NODE_ENV&&l&&(c.warnKey=!0),e.cloneElement(t,c)}return t}))}yy.displayName="SubMenuList";var Cy={adjustX:1,adjustY:1},wy={topLeft:{points:["bl","tl"],overflow:Cy},topRight:{points:["br","tr"],overflow:Cy},bottomLeft:{points:["tl","bl"],overflow:Cy},bottomRight:{points:["tr","br"],overflow:Cy},leftTop:{points:["tr","tl"],overflow:Cy},leftBottom:{points:["br","bl"],overflow:Cy},rightTop:{points:["tl","tr"],overflow:Cy},rightBottom:{points:["bl","br"],overflow:Cy}},Sy={topLeft:{points:["bl","tl"],overflow:Cy},topRight:{points:["br","tr"],overflow:Cy},bottomLeft:{points:["tl","bl"],overflow:Cy},bottomRight:{points:["tr","br"],overflow:Cy},rightTop:{points:["tr","tl"],overflow:Cy},rightBottom:{points:["br","bl"],overflow:Cy},leftTop:{points:["tl","tr"],overflow:Cy},leftBottom:{points:["bl","br"],overflow:Cy}};function ky(e,t,n){return t||(n?n[e]||n.other:void 0)}var Ey={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Oy(t){var n=t.prefixCls,o=t.visible,r=t.children,i=t.popup,a=t.popupStyle,s=t.popupClassName,l=t.popupOffset,c=t.disabled,u=t.mode,d=t.onVisibleChange,p=e.useContext(Mb),f=p.getPopupContainer,h=p.rtl,g=p.subMenuOpenDelay,m=p.subMenuCloseDelay,v=p.builtinPlacements,b=p.triggerSubMenuAction,y=p.forceSubMenuRender,x=p.rootClassName,C=p.motion,w=p.defaultMotions,S=bt(e.useState(!1),2),k=S[0],E=S[1],O=J(J({},h?Sy:wy),v),$=Ey[u],N=ky(u,C,w),M=e.useRef(N);"inline"!==u&&(M.current=N);var I=J(J({},M.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=e.useRef();return e.useEffect((function(){return P.current=ht((function(){E(o)})),function(){ht.cancel(P.current)}}),[o]),e.createElement(cg,{prefixCls:n,popupClassName:D("".concat(n,"-popup"),Q({},"".concat(n,"-rtl"),h),s,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:f,builtinPlacements:O,popupPlacement:$,popupVisible:k,popup:i,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:m,onPopupVisibleChange:d,forceRender:y,popupMotion:I,fresh:!0},r)}function $y(t){var n=t.id,o=t.open,r=t.keyPath,i=t.children,a="inline",s=e.useContext(Mb),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,p=s.mode,f=e.useRef(!1);f.current=p===a;var h=bt(e.useState(!f.current),2),g=h[0],m=h[1],v=!!f.current&&o;e.useEffect((function(){f.current&&m(!1)}),[p]);var b=J({},ky(a,u,d));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||m(!0),null==y?void 0:y(e)},g?null:e.createElement(Ib,{mode:a,locked:!f.current},e.createElement(_a,A({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(t){var o=t.className,r=t.style;return e.createElement(yy,{id:n,className:o,style:r},i)})))}var Ny=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],My=["active"],Iy=e.forwardRef((function(t,n){var o=t.style,r=t.className,i=t.title,a=t.eventKey,s=t.warnKey,l=t.disabled,c=t.internalPopupClose,u=t.children,d=t.itemIcon,p=t.expandIcon,f=t.popupClassName,h=t.popupOffset,g=t.popupStyle,m=t.onClick,v=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,x=t.onTitleMouseEnter,C=t.onTitleMouseLeave,w=Lt(t,Ny),S=$b(a),k=e.useContext(Mb),E=k.prefixCls,O=k.mode,$=k.openKeys,N=k.disabled,M=k.overflowDisabled,I=k.activeKey,P=k.selectedKeys,L=k.itemIcon,j=k.expandIcon,T=k.onItemClick,R=k.onOpenChange,_=k.onActive,z=e.useContext(Rb)._internalRenderSubMenuItem,B=e.useContext(Tb).isSubPathKey,H=Ab(),F="".concat(E,"-submenu"),W=N||l,V=e.useRef(),K=e.useRef();"production"!==process.env.NODE_ENV&&s&&U(!1,"SubMenu should not leave undefined `key`.");var q=null!=d?d:L,X=null!=p?p:j,G=$.includes(a),Y=!M&&G,Z=B(P,a),ee=iy(a,W,x,C),te=ee.active,ne=Lt(ee,My),oe=bt(e.useState(!1),2),re=oe[0],ie=oe[1],ae=function(e){W||ie(e)},se=e.useMemo((function(){return te||"inline"!==O&&(re||B([I],a))}),[O,te,I,re,a,B]),le=ay(H.length),ce=ny((function(e){null==m||m(cy(e)),T(e)})),ue=S&&"".concat(S,"-popup"),de=e.createElement("div",A({role:"menuitem",style:le,className:"".concat(F,"-title"),tabIndex:W?null:-1,ref:V,title:"string"==typeof i?i:null,"data-menu-id":M&&S?null:S,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":W,onClick:function(e){W||(null==y||y({key:a,domEvent:e}),"inline"===O&&R(a,!G))},onFocus:function(){_(a)}},ne),i,e.createElement(sy,{icon:"horizontal"!==O?X:void 0,props:J(J({},t),{},{isOpen:Y,isSubMenu:!0})},e.createElement("i",{className:"".concat(F,"-arrow")}))),pe=e.useRef(O);if("inline"!==O&&H.length>1?pe.current="vertical":pe.current=O,!M){var fe=pe.current;de=e.createElement(Oy,{mode:fe,prefixCls:F,visible:!c&&Y&&"inline"!==O,popupClassName:f,popupOffset:h,popupStyle:g,popup:e.createElement(Ib,{mode:"horizontal"===fe?"vertical":fe},e.createElement(yy,{id:ue,ref:K},u)),disabled:W,onVisibleChange:function(e){"inline"!==O&&R(a,e)}},de)}var he=e.createElement(Mh.Item,A({ref:n,role:"none"},w,{component:"li",style:o,className:D(F,"".concat(F,"-").concat(O),r,Q(Q(Q(Q({},"".concat(F,"-open"),Y),"".concat(F,"-active"),se),"".concat(F,"-selected"),Z),"".concat(F,"-disabled"),W)),onMouseEnter:function(e){ae(!0),null==v||v({key:a,domEvent:e})},onMouseLeave:function(e){ae(!1),null==b||b({key:a,domEvent:e})}}),de,!M&&e.createElement($y,{id:ue,open:Y,keyPath:H},u));return z&&(he=z(he,t,{selected:Z,active:se,open:Y,disabled:W})),e.createElement(Ib,{onItemClick:ce,mode:"horizontal"===O?"vertical":O,itemIcon:q,expandIcon:X},he)})),Py=e.forwardRef((function(t,n){var o,r=t.eventKey,i=t.children,a=Ab(r),s=xy(i,a),l=jb();return e.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),o=l?s:e.createElement(Iy,A({ref:n},t),s),e.createElement(Db.Provider,{value:a},o)}));function Ly(t){var n=t.className,o=t.style,r=e.useContext(Mb).prefixCls;return jb()?null:e.createElement("li",{role:"separator",className:D("".concat(r,"-item-divider"),n),style:o})}"production"!==process.env.NODE_ENV&&(Py.displayName="SubMenu");var jy=["className","title","eventKey","children"],Dy=e.forwardRef((function(t,n){var o=t.className,r=t.title;t.eventKey;var i=t.children,a=Lt(t,jy),s=e.useContext(Mb).prefixCls,l="".concat(s,"-item-group");return e.createElement("li",A({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:D(l,o)}),e.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),e.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))})),Ay=e.forwardRef((function(t,n){var o=t.eventKey,r=xy(t.children,Ab(o));return jb()?r:e.createElement(Dy,A({ref:n},rt(t,["warnKey"])),r)}));"production"!==process.env.NODE_ENV&&(Ay.displayName="MenuItemGroup");var Ty=["label","children","key","type","extra"];function Ry(t,n,o){var r=n.item,i=n.group,a=n.submenu,s=n.divider;return(t||[]).map((function(t,l){if(t&&"object"===T(t)){var c=t,u=c.label,d=c.children,p=c.key,f=c.type,h=c.extra,g=Lt(c,Ty),m=null!=p?p:"tmp-".concat(l);return d||"group"===f?"group"===f?e.createElement(i,A({key:m},g,{title:u}),Ry(d,n,o)):e.createElement(a,A({key:m},g,{title:u}),Ry(d,n,o)):"divider"===f?e.createElement(s,A({key:m},g)):e.createElement(r,A({key:m},g),u,(!!h||0===h)&&e.createElement("span",{className:"".concat(o,"-item-extra")},h))}return null})).filter((function(e){return e}))}function _y(e,t,n,o,r){var i=e,a=J({divider:Ly,item:my,group:Ay,submenu:Py},o);return t&&(i=Ry(t,a,r)),xy(i,n)}var zy=["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"],By=[],Hy=e.forwardRef((function(t,n){var o,r=t,i=r.prefixCls,a=void 0===i?"rc-menu":i,s=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=void 0===u?0:u,p=r.items,f=r.children,h=r.direction,m=r.id,v=r.mode,b=void 0===v?"vertical":v,y=r.inlineCollapsed,x=r.disabled,C=r.disabledOverflow,w=r.subMenuOpenDelay,k=void 0===w?.1:w,E=r.subMenuCloseDelay,O=void 0===E?.1:E,$=r.forceSubMenuRender,N=r.defaultOpenKeys,M=r.openKeys,I=r.activeKey,P=r.defaultActiveFirst,L=r.selectable,j=void 0===L||L,T=r.multiple,R=void 0!==T&&T,_=r.defaultSelectedKeys,z=r.selectedKeys,B=r.onSelect,H=r.onDeselect,F=r.inlineIndent,W=void 0===F?24:F,V=r.motion,K=r.defaultMotions,q=r.triggerSubMenuAction,X=void 0===q?"hover":q,G=r.builtinPlacements,Y=r.itemIcon,Z=r.expandIcon,ee=r.overflowedIndicator,te=void 0===ee?"...":ee,ne=r.overflowedIndicatorPopupClassName,oe=r.getPopupContainer,re=r.onClick,ie=r.onOpenChange,ae=r.onKeyDown,se=r.openAnimation,le=r.openTransitionName,ce=r._internalRenderMenuItem,ue=r._internalRenderSubMenuItem,de=r._internalComponents,pe=Lt(r,zy),fe=bt(e.useMemo((function(){return[_y(f,p,By,de,a),_y(f,p,By,{},a)]}),[f,p,de]),2),he=fe[0],ge=fe[1],me=bt(e.useState(!1),2),ve=me[0],be=me[1],ye=e.useRef(),xe=function(t){var n=bt(Si(t,{value:t}),2),o=n[0],r=n[1];return e.useEffect((function(){ry+=1;var e="test"===process.env.NODE_ENV?"test":"".concat(oy,"-").concat(ry);r("rc-menu-uuid-".concat(e))}),[]),o}(m),Ce="rtl"===h;"production"!==process.env.NODE_ENV&&U(!se&&!le,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var we=Si(N,{value:M,postState:function(e){return e||By}}),Se=bt(we,2),ke=Se[0],Ee=Se[1],Oe=function(e){function t(){Ee(e),null==ie||ie(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?S(t):t()},$e=bt(e.useState(ke),2),Ne=$e[0],Me=$e[1],Ie=e.useRef(!1),Pe=bt(e.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),2),Le=Pe[0],je=Pe[1],De="inline"===Le,Ae=bt(e.useState(Le),2),Te=Ae[0],Re=Ae[1],_e=bt(e.useState(je),2),ze=_e[0],Be=_e[1];e.useEffect((function(){Re(Le),Be(je),Ie.current&&(De?Ee(Ne):Oe(By))}),[Le,je]);var He=bt(e.useState(0),2),Fe=He[0],We=He[1],Ve=Fe>=he.length-1||"horizontal"!==Te||C;e.useEffect((function(){De&&Me(ke)}),[ke]),e.useEffect((function(){return Ie.current=!0,function(){Ie.current=!1}}),[]);var Ke=ty(),qe=Ke.registerPath,Xe=Ke.unregisterPath,Ue=Ke.refreshOverflowKeys,Ge=Ke.isSubPathKey,Ye=Ke.getKeyPath,Qe=Ke.getKeys,Ze=Ke.getSubPathKeys,Je=e.useMemo((function(){return{registerPath:qe,unregisterPath:Xe}}),[qe,Xe]),et=e.useMemo((function(){return{isSubPathKey:Ge}}),[Ge]);e.useEffect((function(){Ue(Ve?By:he.slice(Fe+1).map((function(e){return e.key})))}),[Fe,Ve]);var tt=bt(Si(I||P&&(null===(o=he[0])||void 0===o?void 0:o.key),{value:I}),2),nt=tt[0],ot=tt[1],rt=ny((function(e){ot(e)})),it=ny((function(){ot(void 0)}));g(n,(function(){return{list:ye.current,focus:function(e){var t,n,o=Qe(),r=Yb(o,xe),i=r.elements,a=r.key2element,s=r.element2key,l=Ub(ye.current,i),c=null!=nt?nt:l[0]?s.get(l[0]):null===(t=he.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var at=Si(_||[],{value:z,postState:function(e){return Array.isArray(e)?e:null==e?By:[e]}}),st=bt(at,2),ct=st[0],ut=st[1],dt=ny((function(e){null==re||re(cy(e)),function(e){if(j){var t,n=e.key,o=ct.includes(n);t=R?o?ct.filter((function(e){return e!==n})):[].concat(lt(ct),[n]):[n],ut(t);var r=J(J({},e),{},{selectedKeys:t});o?null==H||H(r):null==B||B(r)}!R&&ke.length&&"inline"!==Te&&Oe(By)}(e)})),pt=ny((function(e,t){var n=ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Te){var o=Ze(e);n=n.filter((function(e){return!o.has(e)}))}jt(ke,n,!0)||Oe(n,!0)})),ft=Qb(Te,nt,Ce,xe,ye,Qe,Ye,ot,(function(e,t){var n=null!=t?t:!ke.includes(e);pt(e,n)}),ae);e.useEffect((function(){be(!0)}),[]);var ht=e.useMemo((function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:ue}}),[ce,ue]),gt="horizontal"!==Te||C?he:he.map((function(t,n){return e.createElement(Ib,{key:t.key,overflowDisabled:n>Fe},t)})),mt=e.createElement(Mh,A({id:m,ref:ye,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:my,className:D(a,"".concat(a,"-root"),"".concat(a,"-").concat(Te),c,Q(Q({},"".concat(a,"-inline-collapsed"),ze),"".concat(a,"-rtl"),Ce),s),dir:h,style:l,role:"menu",tabIndex:d,data:gt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,o=n?he.slice(-n):null;return e.createElement(Py,{eventKey:ey,title:te,disabled:Ve,internalPopupClose:0===n,popupClassName:ne},o)},maxCount:"horizontal"!==Te||C?Mh.INVALIDATE:Mh.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){We(e)},onKeyDown:ft},pe));return e.createElement(Rb.Provider,{value:ht},e.createElement(Eb.Provider,{value:xe},e.createElement(Ib,{prefixCls:a,rootClassName:s,mode:Te,openKeys:ke,rtl:Ce,disabled:x,motion:ve?V:null,defaultMotions:ve?K:null,activeKey:nt,onActive:rt,onInactive:it,selectedKeys:ct,inlineIndent:W,subMenuOpenDelay:k,subMenuCloseDelay:O,forceSubMenuRender:$,builtinPlacements:G,triggerSubMenuAction:X,getPopupContainer:oe,itemIcon:Y,expandIcon:Z,onItemClick:dt,onOpenChange:pt},e.createElement(Tb.Provider,{value:et},mt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(Lb.Provider,{value:Je},ge)))))})),Fy=Hy;Fy.Item=my,Fy.SubMenu=Py,Fy.ItemGroup=Ay,Fy.Divider=Ly;var Wy={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"},Vy=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Wy}))},Ky=e.forwardRef(Vy);"production"!==process.env.NODE_ENV&&(Ky.displayName="BarsOutlined");var qy={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"},Xy=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:qy}))},Uy=e.forwardRef(Xy);"production"!==process.env.NODE_ENV&&(Uy.displayName="LeftOutlined");const Gy=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Yy=e=>{const{antCls:t,componentCls:n,colorText:o,footerBg:r,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:s,lineHeight:Qt(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:o,fontSize:c,background:r},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}},Qy=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:r,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:r}},Zy=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];var Jy=Zi("Layout",(e=>[Yy(e)]),Qy,{deprecatedTokens:Zy});const ex=e=>{const{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:r,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadius:p,lightSiderBg:f,lightTriggerColor:h,lightTriggerBg:g,bodyBg:m}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:Qt(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${o}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:p,borderEndEndRadius:p,borderEndStartRadius:0,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:p,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:p}}},"&-light":{background:f,[`${t}-trigger`]:{color:h,background:g},[`${t}-zero-width-trigger`]:{color:h,background:g,border:`1px solid ${m}`,borderInlineStart:0}}}}};var tx=Zi(["Layout","Sider"],(e=>[ex(e)]),Qy,{deprecatedTokens:Zy}),nx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ox={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},rx=e.createContext({}),ix=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),ax=e.forwardRef(((t,n)=>{const{prefixCls:o,className:i,trigger:s,children:c,defaultCollapsed:d=!1,theme:p="dark",style:f={},collapsible:h=!1,reverseArrow:g=!1,width:m=200,collapsedWidth:v=80,zeroWidthTriggerStyle:b,breakpoint:y,onCollapse:x,onBreakpoint:C}=t,w=nx(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=r(Gy),[k,E]=u("collapsed"in t?t.collapsed:d),[O,$]=u(!1);l((()=>{"collapsed"in t&&E(t.collapsed)}),[t.collapsed]);const N=(e,n)=>{"collapsed"in t||E(e),null==x||x(e,n)},{getPrefixCls:M}=r(ai),I=M("layout-sider",o),[P,L,j]=tx(I),A=a();A.current=e=>{$(e.matches),null==C||C(e.matches),k!==e.matches&&N(e.matches,"responsive")},l((()=>{function e(e){return A.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&y&&y in ox){t=n(`screen and (max-width: ${ox[y]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[y]),l((()=>{const e=ix("ant-sider-");return S.addSider(e),()=>S.removeSider(e)}),[]);const T=()=>{N(!k,"clickTrigger")},R=e.useMemo((()=>({siderCollapsed:k})),[k]);return P(e.createElement(rx.Provider,{value:R},(()=>{const t=rt(w,["collapsed"]),o=k?v:m,r=(a=o,!isNaN(parseFloat(a))&&isFinite(a)?`${o}px`:String(o));var a;const l=0===parseFloat(String(v||0))?e.createElement("span",{onClick:T,className:D(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${g?"right":"left"}`),style:b},s||e.createElement(Ky,null)):null,u={expanded:g?e.createElement(Oc,null):e.createElement(Uy,null),collapsed:g?e.createElement(Uy,null):e.createElement(Oc,null)}[k?"collapsed":"expanded"],d=null!==s?l||e.createElement("div",{className:`${I}-trigger`,onClick:T,style:{width:r}},s||u):null,y=Object.assign(Object.assign({},f),{flex:`0 0 ${r}`,maxWidth:r,minWidth:r,width:r}),x=D(I,`${I}-${p}`,{[`${I}-collapsed`]:!!k,[`${I}-has-trigger`]:h&&null!==s&&!l,[`${I}-below`]:!!O,[`${I}-zero-width`]:0===parseFloat(r)},i,L,j);return e.createElement("aside",Object.assign({className:x},t,{style:y,ref:n}),e.createElement("div",{className:`${I}-children`},c),h||O&&l?d:null)})()))}));"production"!==process.env.NODE_ENV&&(ax.displayName="Sider");var sx={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"},lx=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:sx}))},cx=e.forwardRef(lx);"production"!==process.env.NODE_ENV&&(cx.displayName="EllipsisOutlined");const ux=i({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var dx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const px=t=>{const{prefixCls:n,className:o,dashed:r}=t,i=dx(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(ai),s=a("menu",n),l=D({[`${s}-item-divider-dashed`]:!!r},o);return e.createElement(Ly,Object.assign({className:l},i))},fx=t=>{var n;const{className:o,children:r,icon:i,title:a,danger:s}=t,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=e.useContext(ux),{siderCollapsed:f}=e.useContext(rx);let h=a;void 0===a?h=c?r:"":!1===a&&(h="");const g={title:h};f||p||(g.title=null,g.open=!1);const m=H(r).length;let v=e.createElement(my,Object.assign({},rt(t,["title","icon","danger"]),{className:D({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:1===(i?m+1:m)},o),title:"string"==typeof a?a:void 0}),Fs(i,{className:D(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:"",`${l}-item-icon`)}),(t=>{const n=null==r?void 0:r[0],o=e.createElement("span",{className:`${l}-title-content`},r);return(!i||e.isValidElement(r)&&"span"===r.type)&&r&&t&&c&&"string"==typeof n?e.createElement("div",{className:`${l}-inline-collapsed-noicon`},n.charAt(0)):o})(p));return d||(v=e.createElement(Rv,Object.assign({},g,{placement:"rtl"===u?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),v)),v};var hx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const gx=e.createContext(null),mx=e.forwardRef(((t,n)=>{const{children:o}=t,r=hx(t,["children"]),i=e.useContext(gx),a=e.useMemo((()=>Object.assign(Object.assign({},i),r)),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=function(e){return ge(e)&&he(e)}(o),l=fe(n,s?o.ref:null);return e.createElement(gx.Provider,{value:a},e.createElement(Xp,{space:!0},s?e.cloneElement(o,{ref:l}):o))})),vx=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Qt(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},bx=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Qt(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Qt(n)})`}}}}},yx=e=>Object.assign({},Ui(e)),xx=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:C,dangerItemHoverColor:w,dangerItemSelectedColor:S,dangerItemActiveBg:k,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:$,itemActiveBg:N,menuSubMenuBg:M,horizontalItemSelectedColor:I,horizontalItemSelectedBg:P,horizontalItemBorderRadius:L,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},yx(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},yx(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Qt(c)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Qt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Qt(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}},Cx=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Qt(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Qt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},wx=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,v={height:o,lineHeight:Qt(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Cx(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Cx(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Qt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,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% - ${Qt(e.calc(u).div(2).equal())} - ${Qt(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Qt(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ki),{paddingInline:f})}}]},Sx=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kx=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Qt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Qt(a)})`}}}}},Ex=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:h,menuArrowOffset:g,lineType:m,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Qt(s)} ${Qt(l)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{display:"inline-flex",alignItems:"center",transition:`color ${r}`,"> a:first-child":{flexGrow:1},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Sx(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Qt(e.calc(o).mul(2).equal())} ${Qt(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},Sx(e)),kx(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),kx(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Qt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Qt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Qt(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Qt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Qt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ox=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:C,fontSize:w,controlHeightSM:S,fontSizeLG:k,colorTextLightSolid:E,colorErrorHover:O}=e,$=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,M=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,I=new Xr(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:f,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:C,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:S-w,collapsedIconSize:k,groupTitleFontSize:w,darkItemDisabledColor:new Xr(E).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:E,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:$?`calc(100% + ${N}px)`:`calc(100% - ${2*M}px)`}};const $x=t=>{var n;const{popupClassName:o,icon:r,title:i,theme:a}=t,s=e.useContext(ux),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=Ab();let p;if(r){const t=e.isValidElement(i)&&"span"===i.type;p=e.createElement(e.Fragment,null,Fs(r,{className:D(e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:"",`${l}-item-icon`)}),t?i:e.createElement("span",{className:`${l}-title-content`},i))}else p=c&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${l}-title-content`},i);const f=e.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[h]=tl("Menu");return e.createElement(ux.Provider,{value:f},e.createElement(Py,Object.assign({},rt(t,["icon"]),{title:p,popupClassName:D(l,o,`${l}-${a||u}`),popupStyle:Object.assign({zIndex:h},t.popupStyle)})))};var Nx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Mx(e){return null===e||!1===e}const Ix={item:fx,submenu:$x,divider:px},Px=c(((t,n)=>{var o;const r=e.useContext(gx),i=r||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=e.useContext(ai),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:x,selectable:C,onClick:w,overflowedIndicatorPopupClassName:S}=t,k=rt(Nx(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);if("production"!==process.env.NODE_ENV){const e=zo("Menu");"production"!==process.env.NODE_ENV&&e(!("inlineCollapsed"in t&&"inline"!==x),"usage","`inlineCollapsed` should only be used when `mode` is inline."),"production"!==process.env.NODE_ENV&&e(!(void 0!==t.siderCollapsed&&"inlineCollapsed"in t),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),e.deprecated("items"in t&&!t.children,"children","items")}null===(o=i.validator)||void 0===o||o.call(i,{mode:x});const E=xi((function(){var e;null==w||w.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),O=i.mode||x,$=null!=C?C:i.selectable,N=e.useMemo((()=>void 0!==b?b:v),[v,b]),M={horizontal:{motionName:`${u}-slide-up`},inline:wl(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),P=qs(I),[L,j,A]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Zi("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:p,darkItemHoverColor:f,darkItemDisabledColor:h,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(o).div(7).mul(5).equal(),C=$i(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),w=$i(C,{itemColor:r,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[Ex(C),vx(C),wx(C),xx(C,"light"),xx(w,"dark"),bx(C),Tc(C),au(C,"slide-up"),au(C,"slide-down"),hu(C,"zoom-big")]}),Ox,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(I,P,!r),T=D(`${I}-${h}`,null==c?void 0:c.className,p),R=e.useMemo((()=>{var t,n;if("function"==typeof g||Mx(g))return g||null;if("function"==typeof i.expandIcon||Mx(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||Mx(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const o=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==c?void 0:c.expandIcon;return Fs(o,{className:D(`${I}-submenu-expand-icon`,e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:void 0)})}),[g,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,I]),_=e.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:m})),[I,N,l,m,h]);return L(e.createElement(gx.Provider,{value:null},e.createElement(ux.Provider,{value:_},e.createElement(Fy,Object.assign({getPopupContainer:s,overflowedIndicator:e.createElement(cx,null),overflowedIndicatorPopupClassName:D(I,`${I}-${h}`,S),mode:O,selectable:$,onClick:E},k,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:T,prefixCls:I,direction:l,defaultMotions:M,expandIcon:R,ref:n,rootClassName:D(y,j,i.rootClassName,A,P),_internalComponents:Ix})))))})),Lx=c(((t,n)=>{const o=a(null),r=e.useContext(rx);return g(n,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),e.createElement(Px,Object.assign({ref:o},t,r))}));Lx.Item=fx,Lx.SubMenu=$x,Lx.Divider=px,Lx.ItemGroup=Ay,"production"!==process.env.NODE_ENV&&(Lx.displayName="Menu");const jx=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},Dx=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:h,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:f},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Qc},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Jc},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Zc},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:eu}}},Sv(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},qi(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Gi(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Qt(c)} ${Qt(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{display:"flex",alignItems:"center",flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Qt(c)} ${Qt(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Gi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Qt(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Qt(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[au(e,"slide-up"),au(e,"slide-down"),Yc(e,"move-up"),Yc(e,"move-down"),hu(e,"zoom-big")]]};var Ax=Zi("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=$i(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[Dx(i),jx(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Cv({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),yv(e))),{resetStyle:!1});const Tx=t=>{var n;const{menu:o,arrow:r,prefixCls:i,children:a,trigger:s,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:p,overlayStyle:f,open:h,onOpenChange:g,visible:m,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:x=!0,placement:C="",overlay:w,transitionName:S}=t,{getPopupContainer:k,getPrefixCls:E,direction:O,dropdown:$}=e.useContext(ai),N=zo("Dropdown");"production"!==process.env.NODE_ENV&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach((e=>{let[n,o]=e;N.deprecated(!(n in t),n,o)})),N.deprecated(!("overlay"in t),"overlay","menu"));const M=e.useMemo((()=>{const e=E();return void 0!==S?S:C.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[E,C,S]),I=e.useMemo((()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:"rtl"===O?"bottomRight":"bottomLeft"),[C,O]);if("production"!==process.env.NODE_ENV){if(C.includes("Center")){const e=C.slice(0,C.indexOf("Center"));"production"!==process.env.NODE_ENV&&N(!C.includes("Center"),"deprecated",`You are using '${C}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach((e=>{let[n,o]=e;N.deprecated(!(n in t),n,o)}))}const P=E("dropdown",i),L=qs(P),[j,A,T]=Ax(P,L),[,R]=Vi(),_=e.Children.only(a),z=Fs(_,{className:D(`${P}-trigger`,{[`${P}-rtl`]:"rtl"===O},_.props.className),disabled:null!==(n=_.props.disabled)&&void 0!==n?n:l}),B=l?[]:s,H=!!(null==B?void 0:B.includes("contextMenu")),[F,W]=Si(!1,{value:null!=h?h:m}),V=xi((e=>{null==g||g(e,{source:"trigger"}),null==v||v(e),W(e)})),K=D(d,p,A,T,L,null==$?void 0:$.className,{[`${P}-rtl`]:"rtl"===O}),q=$v({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:x,offset:R.marginXXS,arrowWidth:r?R.sizePopupArrow:0,borderRadius:R.borderRadius}),X=e.useCallback((()=>{(null==o?void 0:o.selectable)&&(null==o?void 0:o.multiple)||(null==g||g(!1,{source:"menu"}),W(!1))}),[null==o?void 0:o.selectable,null==o?void 0:o.multiple]),[U,G]=tl("Dropdown",null==f?void 0:f.zIndex);let Y=e.createElement(kb,Object.assign({alignPoint:H},rt(t,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:F,builtinPlacements:q,arrow:!!r,overlayClassName:K,prefixCls:P,getPopupContainer:u||k,transitionName:M,trigger:B,overlay:()=>{let t;return t=(null==o?void 0:o.items)?e.createElement(Lx,Object.assign({},o)):"function"==typeof w?w():w,c&&(t=c(t)),t=e.Children.only("string"==typeof t?e.createElement("span",null,t):t),e.createElement(mx,{prefixCls:`${P}-menu`,rootClassName:D(T,L),expandIcon:e.createElement("span",{className:`${P}-menu-submenu-arrow`},e.createElement(Oc,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:e=>{let{mode:t}=e;"production"!==process.env.NODE_ENV&&N(!t||"vertical"===t,"usage",`mode="${t}" is not supported for Dropdown's Menu.`)}},t)},placement:I,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},null==$?void 0:$.style),f),{zIndex:U})}),z);return U&&(Y=e.createElement(Qs.Provider,{value:G},Y)),j(Y)};const Rx=sh(Tx,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Tx._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement(Rx,Object.assign({},t),e.createElement("span",null)),"production"!==process.env.NODE_ENV&&(Tx.displayName="Dropdown");const _x=t=>{let{children:n}=t;const{getPrefixCls:o}=e.useContext(ai),r=o("breadcrumb");return e.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};_x.__ANT_BREADCRUMB_SEPARATOR=!0;var zx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Bx(t,n,o,r){if(null==o)return null;const{className:i,onClick:a}=n,s=zx(n,["className","onClick"]),l=Object.assign(Object.assign({},zs(s,{data:!0,aria:!0})),{onClick:a});return void 0!==r?e.createElement("a",Object.assign({},l,{className:D(`${t}-link`,i),href:r}),o):e.createElement("span",Object.assign({},l,{className:D(`${t}-link`,i)}),o)}function Hx(e,t){return(n,o,r,i,a)=>{if(t)return t(n,o,r,i);const s=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,o);return Bx(e,n,s,a)}}var Fx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Wx=t=>{const{prefixCls:n,separator:o="/",children:r,menu:i,overlay:a,dropdownProps:s,href:l}=t;if("production"!==process.env.NODE_ENV){zo("Breadcrumb.Item").deprecated(!("overlay"in t),"overlay","menu")}const c=(t=>{if(i||a){const o=Object.assign({},s);if(i){const t=i||{},{items:n}=t,r=Fx(t,["items"]);o.menu=Object.assign(Object.assign({},r),{items:null==n?void 0:n.map(((t,n)=>{var{key:o,title:r,label:i,path:a}=t,s=Fx(t,["key","title","label","path"]);let c=null!=i?i:r;return a&&(c=e.createElement("a",{href:`${l}${a}`},c)),Object.assign(Object.assign({},s),{key:null!=o?o:n,label:c})}))})}else a&&(o.overlay=a);return e.createElement(Tx,Object.assign({placement:"bottom"},o),e.createElement("span",{className:`${n}-overlay-link`},t,e.createElement(Vm,null)))}return t})(r);return null!=c?e.createElement(e.Fragment,null,e.createElement("li",null,c),o&&e.createElement(_x,null,o)):null},Vx=t=>{const{prefixCls:n,children:o,href:r}=t,i=Fx(t,["prefixCls","children","href"]),{getPrefixCls:a}=e.useContext(ai),s=a("breadcrumb",n);return e.createElement(Wx,Object.assign({},i,{prefixCls:s}),Bx(s,i,o,r))};Vx.__ANT_BREADCRUMB_ITEM=!0;var Kx=Vx;var qx=Zi("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:o}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Qt(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:o(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Gi(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${Qt(e.paddingXXS)}`,marginInline:o(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})($i(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),Xx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ux(e){const{breadcrumbName:t,children:n}=e,o=Xx(e,["breadcrumbName","children"]),r=Object.assign({title:t},o);return n&&(r.menu={items:n.map((e=>{var{breadcrumbName:t}=e,n=Xx(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),r}var Gx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Yx=t=>{const{prefixCls:n,separator:o="/",style:r,className:i,rootClassName:a,routes:s,items:l,children:c,itemRender:u,params:p={}}=t,f=Gx(t,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:h,direction:g,breadcrumb:m}=e.useContext(ai);let v;const b=h("breadcrumb",n),[y,x,C]=qx(b),w=function(e,t){return d((()=>e||(t?t.map(Ux):null)),[e,t])}(l,s);if("production"!==process.env.NODE_ENV){const e=zo("Breadcrumb");if(e.deprecated(!s,"routes","items"),!w||0===w.length){const t=H(c);e.deprecated(0===t.length,"Breadcrumb.Item and Breadcrumb.Separator","items"),t.forEach((t=>{t&&"production"!==process.env.NODE_ENV&&e(t.type&&(!0===t.type.__ANT_BREADCRUMB_ITEM||!0===t.type.__ANT_BREADCRUMB_SEPARATOR),"usage","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children")}))}}const S=Hx(b,u);if(w&&w.length>0){const t=[],n=l||s;v=w.map(((r,i)=>{const{path:a,key:s,type:l,menu:c,overlay:u,onClick:d,className:f,separator:h,dropdownProps:g}=r,m=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(p,a);void 0!==m&&t.push(m);const v=null!=s?s:i;if("separator"===l)return e.createElement(_x,{key:v},h);const y={},x=i===w.length-1;c?y.menu=c:u&&(y.overlay=u);let{href:C}=r;return t.length&&void 0!==m&&(C=`#/${t.join("/")}`),e.createElement(Wx,Object.assign({key:v},y,zs(r,{data:!0,aria:!0}),{className:f,dropdownProps:g,href:C,separator:x?"":o,onClick:d,prefixCls:b}),S(r,p,n,t,C))}))}else if(c){const e=H(c).length;v=H(c).map(((t,n)=>{if(!t)return t;return Fs(t,{separator:n===e-1?"":o,key:n})}))}const k=D(b,null==m?void 0:m.className,{[`${b}-rtl`]:"rtl"===g},i,a,x,C),E=Object.assign(Object.assign({},null==m?void 0:m.style),r);return y(e.createElement("nav",Object.assign({className:k,style:E},f),e.createElement("ol",null,v)))};Yx.Item=Kx,Yx.Separator=_x,"production"!==process.env.NODE_ENV&&(Yx.displayName="Breadcrumb");const Qx=e.createContext(null),Zx=Qx.Provider,Jx=e.createContext(null),eC=Jx.Provider;var tC=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],nC=c((function(t,n){var o=t.prefixCls,r=void 0===o?"rc-checkbox":o,i=t.className,s=t.style,l=t.checked,c=t.disabled,u=t.defaultChecked,d=void 0!==u&&u,p=t.type,f=void 0===p?"checkbox":p,h=t.title,m=t.onChange,v=Lt(t,tC),b=a(null),y=a(null),x=bt(Si(d,{value:l}),2),C=x[0],w=x[1];g(n,(function(){return{focus:function(e){var t;null===(t=b.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=b.current)||void 0===e||e.blur()},input:b.current,nativeElement:y.current}}));var S=D(r,i,Q(Q({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),c));return e.createElement("span",{className:S,title:h,style:s,ref:y},e.createElement("input",A({},v,{className:"".concat(r,"-input"),ref:b,onChange:function(e){c||("checked"in t||w(e.target.checked),null==m||m({target:J(J({},t),{},{type:f,checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},disabled:c,checked:!!C,type:f})),e.createElement("span",{className:"".concat(r,"-inner")}))}));const oC=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},qi(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},rC=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:p,paddingXS:f,dotColorDisabled:h,lineType:g,radioColor:m,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(r).sub(b(4).mul(2)),C=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},qi(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Qt(u)} ${g} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Ui(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}})}},iC=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:p,controlHeightLG:f,controlHeightSM:h,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:w,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:k,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:$,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:I,calc:P}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Qt(P(n).sub(P(r).mul(2)).equal()),background:d,border:`${Qt(r)} ${i} ${a}`,borderBlockStartWidth:P(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:P(r).mul(-1).equal(),insetInlineStart:P(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${Qt(r)} ${i} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${o}-group-large &`]:{height:f,fontSize:p,lineHeight:Qt(P(f).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:h,paddingInline:P(g).sub(r).equal(),paddingBlock:0,lineHeight:Qt(P(h).sub(P(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Ui(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:x,background:N,borderColor:N,"&:hover":{color:x,background:M,borderColor:M},"&:active":{color:x,background:I,borderColor:I}},"&-disabled":{color:C,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:w,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:k,backgroundColor:S,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}};var aC=Zi("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${Qt(n)} ${t}`,r=$i(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[oC(r),rC(r),iC(r)]}),(e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:f,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?d:h,radioBgColor:t?s:d}}),{unitless:{radioSize:!0,dotSize:!0}}),sC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lC=(t,n)=>{var o,r;const i=e.useContext(Qx),a=e.useContext(Jx),{getPrefixCls:s,direction:l,radio:c}=e.useContext(ai),u=e.useRef(null),d=pe(n,u),{isFormItemInput:p}=e.useContext(Vp);if("production"!==process.env.NODE_ENV){const e=zo("Radio");"production"!==process.env.NODE_ENV&&e(!("optionType"in t),"usage","`optionType` is only support in Radio.Group.")}const f=e=>{var n,o;null===(n=t.onChange)||void 0===n||n.call(t,e),null===(o=null==i?void 0:i.onChange)||void 0===o||o.call(i,e)},{prefixCls:h,className:g,rootClassName:m,children:v,style:b,title:y}=t,x=sC(t,["prefixCls","className","rootClassName","children","style","title"]),C=s("radio",h),w="button"===((null==i?void 0:i.optionType)||a),S=w?`${C}-button`:C,k=qs(C),[E,O,$]=aC(C,k),N=Object.assign({},x),M=e.useContext(ci);i&&(N.name=i.name,N.onChange=f,N.checked=t.value===i.value,N.disabled=null!==(o=N.disabled)&&void 0!==o?o:i.disabled),N.disabled=null!==(r=N.disabled)&&void 0!==r?r:M;const I=D(`${S}-wrapper`,{[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:N.disabled,[`${S}-wrapper-rtl`]:"rtl"===l,[`${S}-wrapper-in-form-item`]:p,[`${S}-wrapper-block`]:!!(null==i?void 0:i.block)},null==c?void 0:c.className,g,m,O,$,k);return E(e.createElement(jl,{component:"Radio",disabled:N.disabled},e.createElement("label",{className:I,style:Object.assign(Object.assign({},null==c?void 0:c.style),b),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,title:y},e.createElement(nC,Object.assign({},N,{className:D(N.className,{[$l]:!w}),type:"radio",prefixCls:S,ref:d})),void 0!==v?e.createElement("span",null,v):null)))},cC=e.forwardRef(lC);"production"!==process.env.NODE_ENV&&(cC.displayName="Radio");const uC=e.forwardRef(((t,n)=>{const{getPrefixCls:o,direction:r}=e.useContext(ai),{prefixCls:i,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:d,size:p,style:f,id:h,optionType:g,name:m,defaultValue:v,value:b,block:y=!1,onChange:x,onMouseEnter:C,onMouseLeave:w,onFocus:S,onBlur:k}=t,[E,O]=Si(v,{value:b}),$=e.useCallback((e=>{const n=E,o=e.target.value;"value"in t||O(o),o!==n&&(null==x||x(e))}),[E,O,x]),N=o("radio",i),M=`${N}-group`,I=qs(N),[P,L,j]=aC(N,I);let A=d;l&&l.length>0&&(A=l.map((t=>"string"==typeof t||"number"==typeof t?e.createElement(cC,{key:t.toString(),prefixCls:N,disabled:u,value:t,checked:E===t},t):e.createElement(cC,{key:`radio-group-value-options-${t.value}`,prefixCls:N,disabled:t.disabled||u,value:t.value,checked:E===t.value,title:t.title,style:t.style,id:t.id,required:t.required},t.label))));const T=Dl(p),R=D(M,`${M}-${c}`,{[`${M}-${T}`]:T,[`${M}-rtl`]:"rtl"===r,[`${M}-block`]:y},a,s,L,j,I),_=e.useMemo((()=>({onChange:$,value:E,disabled:u,name:m,optionType:g,block:y})),[$,E,u,m,g,y]);return P(e.createElement("div",Object.assign({},zs(t,{aria:!0,data:!0}),{className:R,style:f,onMouseEnter:C,onMouseLeave:w,onFocus:S,onBlur:k,id:h,ref:n}),e.createElement(Zx,{value:_},A)))}));var dC=e.memo(uC),pC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fC=(t,n)=>{const{getPrefixCls:o}=e.useContext(ai),{prefixCls:r}=t,i=pC(t,["prefixCls"]),a=o("radio",r);return e.createElement(eC,{value:"button"},e.createElement(cC,Object.assign({prefixCls:a},i,{type:"radio",ref:n})))};var hC=e.forwardRef(fC);const gC=cC;function mC(e){return $i(e,{inputAffixPadding:e.paddingXXS})}gC.Button=hC,gC.Group=dC,gC.__ANT_RADIO=!0;const vC=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*o)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-n*o)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-r,paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:p,activeBorderColor:h,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},bC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yC=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({},bC($i(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),xC=(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}}),CC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},xC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),wC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yC(e))}),CC(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),CC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),SC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),kC=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},SC(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),SC(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},yC(e))}})}),EC=(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)}},OC=(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}}),$C=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},OC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),NC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},OC(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yC(e))}),$C(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),$C(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),MC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),IC=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:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},MC(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),MC(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:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),PC=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Qt(t)} ${Qt(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},LC=e=>({padding:`${Qt(e.paddingBlockSM)} ${Qt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),jC=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Qt(e.paddingBlock)} ${Qt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},(e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}))(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},PC(e)),"&-sm":Object.assign({},LC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),DC=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({},PC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},LC(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 ${Qt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Qt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Qt(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:`${Qt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Qt(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}}}})}},AC=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),jC(e)),wC(e)),NC(e)),EC(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"}})}},TC=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 ${Qt(e.inputAffixPadding)}`}}}},RC=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},jC(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),TC(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},_C=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},qi(e)),DC(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}}},kC(e)),IC(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}}})})}},zC=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},BC=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${o}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},HC=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var FC=Zi("Input",(e=>{const t=$i(e,mC(e));return[AC(t),BC(t),RC(t),_C(t),zC(t),HC(t),Qu(t)]}),vC,{resetFont:!1}),WC={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"},VC=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:WC}))},KC=e.forwardRef(VC);"production"!==process.env.NODE_ENV&&(KC.displayName="PlusOutlined");var qC=i(null),XC={width:0,height:0,left:0,top:0};function UC(t,n){var o=e.useRef(t),r=bt(e.useState({}),2)[1];return[o.current,function(e){var t="function"==typeof e?e(o.current):e;t!==o.current&&n(t,o.current),o.current=t,r({})}]}var GC=Math.pow(.995,20);function YC(e){var t=bt(u(0),2),n=t[0],o=t[1],r=a(0),i=a();return i.current=e,rn((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){r.current===n&&(r.current+=1,o(r.current))}}var QC={width:0,height:0,left:0,top:0,right:0};function ZC(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function JC(e){return String(e).replace(/"/g,"TABS_DQ")}function ew(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var tw=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.editable,i=t.locale,a=t.style;return r&&!1!==r.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(o,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),nw=e.forwardRef((function(t,n){var o,r=t.position,i=t.prefixCls,a=t.extra;if(!a)return null;var s={};return"object"!==T(a)||e.isValidElement(a)?s.right=a:s=a,"right"===r&&(o=s.right),"left"===r&&(o=s.left),o?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},o):null}));"production"!==process.env.NODE_ENV&&(nw.displayName="ExtraContent");var ow=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.id,i=t.tabs,a=t.locale,s=t.mobile,c=t.more,d=void 0===c?{}:c,p=t.style,f=t.className,h=t.editable,g=t.tabBarGutter,m=t.rtl,v=t.removeAriaLabel,b=t.onTabClick,y=t.getPopupContainer,x=t.popupClassName,C=bt(u(!1),2),w=C[0],S=C[1],k=bt(u(null),2),E=k[0],O=k[1],$=d.icon,N=void 0===$?"More":$,M="".concat(r,"-more-popup"),I="".concat(o,"-dropdown"),P=null!==E?"".concat(M,"-").concat(E):null,L=null==a?void 0:a.dropdownAriaLabel;var j=e.createElement(Fy,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),S(!1)},prefixCls:"".concat(I,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[E],"aria-label":void 0!==L?L:"expanded dropdown"},i.map((function(t){var n=t.closable,o=t.disabled,i=t.closeIcon,a=t.key,s=t.label,l=ew(n,i,h,o);return e.createElement(my,{key:a,id:"".concat(M,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:o},e.createElement("span",null,s),l&&e.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),h.onEdit("remove",{key:t,event:e})}(e,a)}},i||h.removeIcon||"×"))})));function T(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void O(a.key)}}l((function(){var e=document.getElementById(P);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),l((function(){w||O(null)}),[w]);var R=Q({},m?"marginRight":"marginLeft",g);i.length||(R.visibility="hidden",R.order=1);var _=D(Q({},"".concat(I,"-rtl"),m)),z=s?null:e.createElement(kb,A({prefixCls:I,overlay:j,visible:!!i.length&&w,onVisibleChange:S,overlayClassName:D(_,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},d),e.createElement("button",{type:"button",className:"".concat(o,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case Xs.UP:T(-1),e.preventDefault();break;case Xs.DOWN:T(1),e.preventDefault();break;case Xs.ESC:S(!1);break;case Xs.SPACE:case Xs.ENTER:null!==E&&b(E,e)}else[Xs.DOWN,Xs.SPACE,Xs.ENTER].includes(t)&&(S(!0),e.preventDefault())}},N));return e.createElement("div",{className:D("".concat(o,"-nav-operations"),f),style:p,ref:n},z,e.createElement(tw,{prefixCls:o,locale:a,editable:h}))})),rw=e.memo(ow,(function(e,t){return t.tabMoving})),iw=function(t){var n=t.prefixCls,o=t.id,r=t.active,i=t.tab,a=i.key,s=i.label,l=i.disabled,c=i.closeIcon,u=i.icon,d=t.closable,p=t.renderWrapper,f=t.removeAriaLabel,h=t.editable,g=t.onClick,m=t.onFocus,v=t.style,b="".concat(n,"-tab"),y=ew(d,c,h,l);function x(e){l||g(e)}var C=e.useMemo((function(){return u&&"string"==typeof s?e.createElement("span",null,s):s}),[s,u]),w=e.createElement("div",{key:a,"data-node-key":JC(a),className:D(b,Q(Q(Q({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),r),"".concat(b,"-disabled"),l)),style:v,onClick:x},e.createElement("div",{role:"tab","aria-selected":r,id:o&&"".concat(o,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":o&&"".concat(o,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Xs.SPACE,Xs.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:m},u&&e.createElement("span",{className:"".concat(b,"-icon")},u),s&&C),y&&e.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:a,event:t})}},c||h.removeIcon||"×"));return p?p(w):w},aw=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-o)<1)return[s,l]}return[o,i]},sw=function(e,t){return e[t?0:1]},lw=e.forwardRef((function(n,o){var r,i,s,c,p,f=n.className,h=n.style,g=n.id,m=n.animated,v=n.activeKey,b=n.rtl,y=n.extra,x=n.editable,C=n.locale,w=n.tabPosition,S=n.tabBarGutter,k=n.children,E=n.onTabClick,O=n.onTabScroll,$=n.indicator,N=e.useContext(qC),M=N.prefixCls,I=N.tabs,P=a(null),L=a(null),j=a(null),T=a(null),R=a(null),_=a(null),z=a(null),B="top"===w||"bottom"===w,H=UC(0,(function(e,t){B&&O&&O({direction:e>t?"left":"right"})})),F=bt(H,2),W=F[0],V=F[1],K=UC(0,(function(e,t){!B&&O&&O({direction:e>t?"top":"bottom"})})),q=bt(K,2),X=q[0],U=q[1],G=bt(u([0,0]),2),Y=G[0],Z=G[1],ee=bt(u([0,0]),2),te=ee[0],ne=ee[1],oe=bt(u([0,0]),2),re=oe[0],ie=oe[1],ae=bt(u([0,0]),2),se=ae[0],le=ae[1],ce=(r=new Map,i=a([]),s=bt(u({}),2)[1],c=a("function"==typeof r?r():r),p=YC((function(){var e=c.current;i.current.forEach((function(t){e=t(e)})),i.current=[],c.current=e,s({})})),[c.current,function(e){i.current.push(e),p()}]),ue=bt(ce,2),de=ue[0],pe=ue[1],he=function(e,t,n){return d((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||XC,i=r.left+r.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||XC);var u=o.get(l)||J({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(I,de,te[0]),ge=sw(Y,B),me=sw(te,B),ve=sw(re,B),be=sw(se,B),ye=Math.floor(ge)<Math.floor(me+ve),xe=ye?ge-be:ge-ve,Ce="".concat(M,"-nav-operations-hidden"),we=0,Se=0;function ke(e){return e<we?we:e>Se?Se:e}B&&b?(we=0,Se=Math.max(0,me-xe)):(we=Math.min(0,xe-me),Se=0);var Ee=a(null),Oe=bt(u(),2),$e=Oe[0],Ne=Oe[1];function Me(){Ne(Date.now())}function Ie(){Ee.current&&clearTimeout(Ee.current)}!function(t,n){var o=bt(u(),2),r=o[0],i=o[1],s=bt(u(0),2),l=s[0],c=s[1],d=bt(u(0),2),p=d[0],f=d[1],h=bt(u(),2),g=h[0],m=h[1],v=a(),b=a(),y=a(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;i({x:n,y:o}),window.clearInterval(v.current)},onTouchMove:function(e){if(r){var t=e.touches[0],o=t.screenX,a=t.screenY;i({x:o,y:a});var s=o-r.x,u=a-r.y;n(s,u);var d=Date.now();c(d),f(d-l),m({x:s,y:u})}},onTouchEnd:function(){if(r&&(i(null),m(null),g)){var e=g.x/p,t=g.y/p,o=Math.abs(e),a=Math.abs(t);if(Math.max(o,a)<.1)return;var s=e,l=t;v.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(v.current):n(20*(s*=GC),20*(l*=GC))}),20)}},onWheel:function(e){var t=e.deltaX,o=e.deltaY,r=0,i=Math.abs(t),a=Math.abs(o);i===a?r="x"===b.current?t:o:i>a?(r=t,b.current="x"):(r=o,b.current="y"),n(-r,-r)&&e.preventDefault()}},e.useEffect((function(){function e(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){y.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(T,(function(e,t){function n(e,t){e((function(e){return ke(e+t)}))}return!!ye&&(B?n(V,e):n(U,t),Ie(),Me(),!0)})),l((function(){return Ie(),$e&&(Ee.current=setTimeout((function(){Ne(0)}),100)),Ie}),[$e]);var Pe=function(e,t,n,o,r,i,a){var s,l,c,u=a.tabs,p=a.tabPosition,f=a.rtl;return["top","bottom"].includes(p)?(s="width",l=f?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),d((function(){if(!u.length)return[0,0];for(var n=u.length,o=n,r=0;r<n;r+=1){var i=e.get(u[r].key)||QC;if(Math.floor(i[l]+i[s])>Math.floor(c+t)){o=r-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||QC)[l]<c){a=d+1;break}return a>=o?[0,0]:[a,o]}),[e,t,o,r,i,c,p,u.map((function(e){return e.key})).join("_"),f])}(he,xe,B?W:X,me,ve,be,J(J({},n),{},{tabs:I})),Le=bt(Pe,2),je=Le[0],De=Le[1],Ae=xi((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=he.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){var n=W;b?t.right<W?n=t.right:t.right+t.width>W+xe&&(n=t.right+t.width-xe):t.left<-W?n=-t.left:t.left+t.width>-W+xe&&(n=-(t.left+t.width-xe)),U(0),V(ke(n))}else{var o=X;t.top<-X?o=-t.top:t.top+t.height>-X+xe&&(o=-(t.top+t.height-xe)),V(0),U(ke(o))}})),Te={};"top"===w||"bottom"===w?Te[b?"marginRight":"marginLeft"]=S:Te.marginTop=S;var Re=I.map((function(t,n){var o=t.key;return e.createElement(iw,{id:g,prefixCls:M,key:o,tab:t,style:0===n?void 0:Te,closable:t.closable,editable:x,active:o===v,renderWrapper:k,removeAriaLabel:null==C?void 0:C.removeAriaLabel,onClick:function(e){E(o,e)},onFocus:function(){Ae(o),Me(),T.current&&(b||(T.current.scrollLeft=0),T.current.scrollTop=0)}})})),_e=function(){return pe((function(){var e,t=new Map,n=null===(e=R.current)||void 0===e?void 0:e.getBoundingClientRect();return I.forEach((function(e){var o,r=e.key,i=null===(o=R.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(JC(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.left,u=a.top;return Math.abs(s-n)<1?[s,l,c-t.left,u-t.top]:[n,o,i,r]}(i,n),s=bt(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(r,{width:l,height:c,left:u,top:d})}})),t}))};l((function(){_e()}),[I.map((function(e){return e.key})).join("_")]);var ze=YC((function(){var e=aw(P),t=aw(L),n=aw(j);Z([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=aw(z);ie(o);var r=aw(_);le(r);var i=aw(R);ne([i[0]-o[0],i[1]-o[1]]),_e()})),Be=I.slice(0,je),He=I.slice(De+1),Fe=[].concat(lt(Be),lt(He)),We=he.get(v),Ve=function(e){var n=e.activeTabOffset,o=e.horizontal,r=e.rtl,i=e.indicator,s=void 0===i?{}:i,c=s.size,d=s.align,p=void 0===d?"center":d,f=bt(u(),2),h=f[0],g=f[1],m=a(),v=t.useCallback((function(e){return"function"==typeof c?c(e):"number"==typeof c?c:e}),[c]);function b(){ht.cancel(m.current)}return l((function(){var e={};if(n)if(o){e.width=v(n.width);var t=r?"right":"left";"start"===p&&(e[t]=n[t]),"center"===p&&(e[t]=n[t]+n.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===p&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=v(n.height),"start"===p&&(e.top=n.top),"center"===p&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===p&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return b(),m.current=ht((function(){g(e)})),b}),[n,o,r,p,v]),{style:h}}({activeTabOffset:We,horizontal:B,indicator:$,rtl:b}),Ke=Ve.style;l((function(){Ae()}),[v,we,Se,ZC(We),ZC(he),B]),l((function(){ze()}),[b]);var qe,Xe,Ue,Ge,Ye=!!Fe.length,Qe="".concat(M,"-nav-wrap");return B?b?(Xe=W>0,qe=W!==Se):(qe=W<0,Xe=W!==we):(Ue=X<0,Ge=X!==we),e.createElement(ot,{onResize:ze},e.createElement("div",{ref:fe(o,P),role:"tablist",className:D("".concat(M,"-nav"),f),style:h,onKeyDown:function(){Me()}},e.createElement(nw,{ref:L,position:"left",extra:y,prefixCls:M}),e.createElement(ot,{onResize:ze},e.createElement("div",{className:D(Qe,Q(Q(Q(Q({},"".concat(Qe,"-ping-left"),qe),"".concat(Qe,"-ping-right"),Xe),"".concat(Qe,"-ping-top"),Ue),"".concat(Qe,"-ping-bottom"),Ge)),ref:T},e.createElement(ot,{onResize:ze},e.createElement("div",{ref:R,className:"".concat(M,"-nav-list"),style:{transform:"translate(".concat(W,"px, ").concat(X,"px)"),transition:$e?"none":void 0}},Re,e.createElement(tw,{ref:z,prefixCls:M,locale:C,editable:x,style:J(J({},0===Re.length?void 0:Te),{},{visibility:Ye?"hidden":null})}),e.createElement("div",{className:D("".concat(M,"-ink-bar"),Q({},"".concat(M,"-ink-bar-animated"),m.inkBar)),style:Ke}))))),e.createElement(rw,A({},n,{removeAriaLabel:null==C?void 0:C.removeAriaLabel,ref:_,prefixCls:M,tabs:Fe,className:!Ye&&Ce,tabMoving:!!$e})),e.createElement(nw,{ref:j,position:"right",extra:y,prefixCls:M})))})),cw=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.className,i=t.style,a=t.id,s=t.active,l=t.tabKey,c=t.children;return e.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:i,className:D(o,s&&"".concat(o,"-active"),r),ref:n},c)}));"production"!==process.env.NODE_ENV&&(cw.displayName="TabPane");var uw=["renderTabBar"],dw=["label","key"],pw=function(t){var n=t.renderTabBar,o=Lt(t,uw),r=e.useContext(qC).tabs;return n?n(J(J({},o),{},{panes:r.map((function(t){var n=t.label,o=t.key,r=Lt(t,dw);return e.createElement(cw,A({tab:n,key:o,tabKey:o},r))}))}),lw):e.createElement(lw,o)};"production"!==process.env.NODE_ENV&&(pw.displayName="TabNavListWrapper");var fw=["key","forceRender","style","className","destroyInactiveTabPane"],hw=function(t){var n=t.id,o=t.activeKey,r=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=e.useContext(qC),l=s.prefixCls,c=s.tabs,u=r.tabPane,d="".concat(l,"-tabpane");return e.createElement("div",{className:D("".concat(l,"-content-holder"))},e.createElement("div",{className:D("".concat(l,"-content"),"".concat(l,"-content-").concat(i),Q({},"".concat(l,"-content-animated"),u))},c.map((function(t){var i=t.key,s=t.forceRender,l=t.style,c=t.className,p=t.destroyInactiveTabPane,f=Lt(t,fw),h=i===o;return e.createElement(_a,A({key:i,visible:h,forceRender:s,removeOnLeave:!(!a&&!p),leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),(function(t,o){var r=t.style,a=t.className;return e.createElement(cw,A({},f,{prefixCls:d,id:n,tabKey:i,animated:u,active:h,style:J(J({},l),r),className:D(c,a),ref:o}))}))}))))};var gw=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],mw=0,vw=e.forwardRef((function(t,n){var o=t.id,r=t.prefixCls,i=void 0===r?"rc-tabs":r,a=t.className,s=t.items,c=t.direction,d=t.activeKey,p=t.defaultActiveKey,f=t.editable,h=t.animated,g=t.tabPosition,m=void 0===g?"top":g,v=t.tabBarGutter,b=t.tabBarStyle,y=t.tabBarExtraContent,x=t.locale,C=t.more,w=t.destroyInactiveTabPane,S=t.renderTabBar,k=t.onChange,E=t.onTabClick,O=t.onTabScroll,$=t.getPopupContainer,N=t.popupClassName,M=t.indicator,I=Lt(t,gw),P=e.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===T(e)&&"key"in e}))}),[s]),L="rtl"===c,j=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"===T(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&("production"!==process.env.NODE_ENV&&U(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),e.tabPane=!1),e}(h),R=bt(u(!1),2),_=R[0],z=R[1];l((function(){z(lh())}),[]);var B=bt(Si((function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key}),{value:d,defaultValue:p}),2),H=B[0],F=B[1],W=bt(u((function(){return P.findIndex((function(e){return e.key===H}))})),2),V=W[0],K=W[1];l((function(){var e,t=P.findIndex((function(e){return e.key===H}));-1===t&&(t=Math.max(0,Math.min(V,P.length-1)),F(null===(e=P[t])||void 0===e?void 0:e.key));K(t)}),[P.map((function(e){return e.key})).join("_"),H,V]);var q=bt(Si(null,{value:o}),2),X=q[0],G=q[1];l((function(){o||(G("rc-tabs-".concat("test"===process.env.NODE_ENV?"test":mw)),mw+=1)}),[]);var Y={id:X,activeKey:H,animated:j,tabPosition:m,rtl:L,mobile:_},Z=J(J({},Y),{},{editable:f,locale:x,more:C,tabBarGutter:v,onTabClick:function(e,t){null==E||E(e,t);var n=e!==H;F(e),n&&(null==k||k(e))},onTabScroll:O,extra:y,style:b,panes:null,getPopupContainer:$,popupClassName:N,indicator:M});return e.createElement(qC.Provider,{value:{tabs:P,prefixCls:i}},e.createElement("div",A({ref:n,id:o,className:D(i,"".concat(i,"-").concat(m),Q(Q(Q({},"".concat(i,"-mobile"),_),"".concat(i,"-editable"),f),"".concat(i,"-rtl"),L),a)},I),e.createElement(pw,A({},Z,{renderTabBar:S})),e.createElement(hw,A({destroyInactiveTabPane:w},Y,{animated:j}))))}));"production"!==process.env.NODE_ENV&&(vw.displayName="Tabs");const bw={motionAppear:!1,motionEnter:!0,motionLeave:!0};var yw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const xw=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}`}}}}},[au(e,"slide-up"),au(e,"slide-down")]]},Cw=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${Qt(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:Qt(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Qt(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt(e.borderRadiusLG)} 0 0 ${Qt(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 ${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ww=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},qi(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:`${Qt(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ki),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Qt(e.paddingXXS)} ${Qt(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"}}})}})}},Sw=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Qt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},kw=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Qt(e.borderRadius)} ${Qt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Qt(e.borderRadius)} ${Qt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Qt(e.borderRadius)} ${Qt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Qt(e.borderRadius)} 0 0 ${Qt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},Ew=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Gi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Ow=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Qt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Qt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Qt(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},$w=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${Qt(e.paddingXS)}`,background:"transparent",border:`${Qt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(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}},Gi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ew(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 Nw=Zi("Tabs",(e=>{const t=$i(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Qt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Qt(e.horizontalItemGutter)}`});return[kw(t),Ow(t),Sw(t),ww(t),Cw(t),$w(t),xw(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 Mw=()=>null;"production"!==process.env.NODE_ENV&&(Mw.displayName="DeprecatedTabPane");var Iw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Pw=t=>{var n,o,r,i,a,s,l,c,u,d,p;const{type:f,className:h,rootClassName:g,size:m,onEdit:v,hideAdd:b,centered:y,addIcon:x,removeIcon:C,moreIcon:w,more:S,popupClassName:k,children:E,items:O,animated:$,style:N,indicatorSize:M,indicator:I}=t,P=Iw(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:L}=P,{direction:j,tabs:A,getPrefixCls:T,getPopupContainer:R}=e.useContext(ai),_=T("tabs",L),z=qs(_),[B,F,W]=Nw(_,z);let V;"editable-card"===f&&(V={onEdit:(e,t)=>{let{key:n,event:o}=t;null==v||v("add"===e?o:n,e)},removeIcon:null!==(n=null!=C?C:null==A?void 0:A.removeIcon)&&void 0!==n?n:e.createElement(Is,null),addIcon:(null!=x?x:null==A?void 0:A.addIcon)||e.createElement(KC,null),showAdd:!0!==b});const K=T();if("production"!==process.env.NODE_ENV){const e=zo("Tabs");"production"!==process.env.NODE_ENV&&e(!("onPrevClick"in t)&&!("onNextClick"in t),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),"production"!==process.env.NODE_ENV&&e(!(M||(null==A?void 0:A.indicatorSize)),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const q=Dl(m),X=function(t,n){"production"!==process.env.NODE_ENV&&zo("Tabs").deprecated(!n,"Tabs.TabPane","items");if(t)return t;const o=H(n).map((t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,o=n||{},{tab:r}=o,i=yw(o,["tab"]);return Object.assign(Object.assign({key:String(e)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(o)}(O,E),U=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({},bw),{motionName:Sl(e,"switch")})),t}(_,$),G=Object.assign(Object.assign({},null==A?void 0:A.style),N),Y={align:null!==(o=null==I?void 0:I.align)&&void 0!==o?o:null===(r=null==A?void 0:A.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(a=null!==(i=null==I?void 0:I.size)&&void 0!==i?i:M)&&void 0!==a?a:null===(s=null==A?void 0:A.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==A?void 0:A.indicatorSize};return B(e.createElement(vw,Object.assign({direction:j,getPopupContainer:R},P,{items:X,className:D({[`${_}-${q}`]:q,[`${_}-card`]:["card","editable-card"].includes(f),[`${_}-editable-card`]:"editable-card"===f,[`${_}-centered`]:y},null==A?void 0:A.className,h,g,F,W,z),popupClassName:D(k,F,W,z),style:G,editable:V,more:Object.assign({icon:null!==(p=null!==(d=null!==(u=null===(c=null==A?void 0:A.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null==A?void 0:A.moreIcon)&&void 0!==d?d:w)&&void 0!==p?p:e.createElement(cx,null),transitionName:`${K}-slide-up`},S),prefixCls:_,animated:U,indicator:Y})))};Pw.TabPane=Mw,"production"!==process.env.NODE_ENV&&(Pw.displayName="Tabs");var Lw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jw=t=>{var{prefixCls:n,className:o,hoverable:r=!0}=t,i=Lw(t,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=e.useContext(ai),s=a("card",n),l=D(`${s}-grid`,o,{[`${s}-grid-hoverable`]:r});return e.createElement("div",Object.assign({},i,{className:l}))},Dw=e=>{const{antCls:t,componentCls:n,headerHeight:o,cardPaddingBase:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${Qt(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ki),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Aw=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Qt(r)} 0 0 0 ${n},\n 0 ${Qt(r)} 0 0 ${n},\n ${Qt(r)} ${Qt(r)} 0 0 ${n},\n ${Qt(r)} 0 0 0 ${n} inset,\n 0 ${Qt(r)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},Tw=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Qt(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Qt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:Qt(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Qt(e.lineWidth)} ${e.lineType} ${i}`}}})},Rw=e=>Object.assign(Object.assign({margin:`${Qt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ki),"&-description":{color:e.colorTextDescription}}),_w=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${Qt(n)}`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Qt(e.padding)} ${Qt(n)}`}}},zw=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Bw=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadowTertiary:i,cardPaddingBase:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:Dw(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:Aw(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Tw(e),[`${t}-meta`]:Rw(e)}),[`${t}-bordered`]:{border:`${Qt(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Qt(e.borderRadiusLG)} ${Qt(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:_w(e),[`${t}-loading`]:zw(e),[`${t}-rtl`]:{direction:"rtl"}}},Hw=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:o,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${Qt(n)}`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}};var Fw=Zi("Card",(e=>{const t=$i(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Bw(t),Hw(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),Ww=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Vw=t=>{const{actionClasses:n,actions:o=[],actionStyle:r}=t;return e.createElement("ul",{className:n,style:r},o.map(((t,n)=>{const r=`action-${n}`;return e.createElement("li",{style:{width:100/o.length+"%"},key:r},e.createElement("span",null,t))})))},Kw=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,rootClassName:i,style:a,extra:s,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:p=!0,size:f,type:h,cover:g,actions:m,tabList:v,children:b,activeTabKey:y,defaultActiveTabKey:x,tabBarExtraContent:C,hoverable:w,tabProps:S={},classNames:k,styles:E}=t,O=Ww(t,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:$,direction:N,card:M}=e.useContext(ai);if("production"!==process.env.NODE_ENV){const e=zo("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach((n=>{let[o,r]=n;e.deprecated(!(o in t),o,r)}))}const I=e=>{var t;return D(null===(t=null==M?void 0:M.classNames)||void 0===t?void 0:t[e],null==k?void 0:k[e])},P=e=>{var t;return Object.assign(Object.assign({},null===(t=null==M?void 0:M.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},L=e.useMemo((()=>{let t=!1;return e.Children.forEach(b,(e=>{(null==e?void 0:e.type)===jw&&(t=!0)})),t}),[b]),j=$("card",o),[A,T,R]=Fw(j),_=e.createElement(Cf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),z=void 0!==y,B=Object.assign(Object.assign({},S),{[z?"activeKey":"defaultActiveKey"]:z?y:x,tabBarExtraContent:C});let H;const F=Dl(f),W=F&&"default"!==F?F:"large",V=v?e.createElement(Pw,Object.assign({size:W},B,{className:`${j}-head-tabs`,onChange:e=>{var n;null===(n=t.onTabChange)||void 0===n||n.call(t,e)},items:v.map((e=>{var{tab:t}=e,n=Ww(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||s||V){const t=D(`${j}-head`,I("header")),n=D(`${j}-head-title`,I("title")),o=D(`${j}-extra`,I("extra")),r=Object.assign(Object.assign({},l),P("header"));H=e.createElement("div",{className:t,style:r},e.createElement("div",{className:`${j}-head-wrapper`},u&&e.createElement("div",{className:n,style:P("title")},u),s&&e.createElement("div",{className:o,style:P("extra")},s)),V)}const K=D(`${j}-cover`,I("cover")),q=g?e.createElement("div",{className:K,style:P("cover")},g):null,X=D(`${j}-body`,I("body")),U=Object.assign(Object.assign({},c),P("body")),G=e.createElement("div",{className:X,style:U},d?_:b),Y=D(`${j}-actions`,I("actions")),Q=(null==m?void 0:m.length)?e.createElement(Vw,{actionClasses:Y,actionStyle:P("actions"),actions:m}):null,Z=rt(O,["onTabChange"]),J=D(j,null==M?void 0:M.className,{[`${j}-loading`]:d,[`${j}-bordered`]:p,[`${j}-hoverable`]:w,[`${j}-contain-grid`]:L,[`${j}-contain-tabs`]:null==v?void 0:v.length,[`${j}-${F}`]:F,[`${j}-type-${h}`]:!!h,[`${j}-rtl`]:"rtl"===N},r,i,T,R),ee=Object.assign(Object.assign({},null==M?void 0:M.style),a);return A(e.createElement("div",Object.assign({ref:n},Z,{className:J,style:ee}),H,q,G,Q))}));var qw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Xw=Kw;Xw.Grid=jw,Xw.Meta=t=>{const{prefixCls:n,className:o,avatar:r,title:i,description:a}=t,s=qw(t,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=e.useContext(ai),c=l("card",n),u=D(`${c}-meta`,o),d=r?e.createElement("div",{className:`${c}-meta-avatar`},r):null,p=i?e.createElement("div",{className:`${c}-meta-title`},i):null,f=a?e.createElement("div",{className:`${c}-meta-description`},a):null,h=p||f?e.createElement("div",{className:`${c}-meta-detail`},p,f):null;return e.createElement("div",Object.assign({},s,{className:u}),d,h)},"production"!==process.env.NODE_ENV&&(Xw.displayName="Card");var Uw={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function Gw(e,t,n){var o={}.atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,s=r.noLeading,l=void 0!==s&&s,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function f(){o&&clearTimeout(o)}function h(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s=this,c=Date.now()-p;function h(){p=Date.now(),t.apply(s,r)}function g(){o=void 0}d||(l||!u||o||h(),f(),void 0===u&&c>e?l?(p=Date.now(),a||(o=setTimeout(u?g:h,e))):h():!0!==a&&(o=setTimeout(u?g:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}var Yw={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return t.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return t.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function Qw(e,t,n){return Math.max(t,Math.min(e,n))}var Zw=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},Jw=function(e){for(var t=[],n=eS(e),o=tS(e),r=n;r<o;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t},eS=function(e){return e.currentSlide-nS(e)},tS=function(e){return e.currentSlide+oS(e)},nS=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},oS=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},rS=function(e){return e&&e.offsetWidth||0},iS=function(e){return e&&e.offsetHeight||0},aS=function(e){var t,n,o,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,o=Math.atan2(n,t),(r=Math.round(180*o/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===i?r>=35&&r<=135?"up":"down":"vertical"},sS=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},lS=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},cS=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0,r=[];n<t;)r.push(n),n=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return r}(e),o=0;if(t>n[n.length-1])t=n[n.length-1];else for(var r in n){if(t<n[r]){t=o;break}o=n[r]}return t},uS=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((function(o){if(e.vertical){if(o.offsetTop+iS(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+rS(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},dS=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},pS=function(e){var t,n;(dS(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=vS(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var r=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=J(J({},o),{},{WebkitTransform:r,transform:i,msTransform:a})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},fS=function(e){dS(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=pS(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},hS=function(e){if(e.unslick)return 0;dS(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,o=e.slideIndex,r=e.trackRef,i=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,g=e.vertical;if(h||1===e.slideCount)return 0;var m=0;if(i?(m=-gS(e),s%c!=0&&o+c>s&&(m=-(o>s?l-(o-s):s%c)),a&&(m+=parseInt(l/2))):(s%c!=0&&o+c>s&&(m=l-s%c),a&&(m=parseInt(l/2))),t=g?o*f*-1+m*f:o*u*-1+m*u,!0===p){var v,b=r&&r.node;if(v=o+gS(e),t=(n=b&&b.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=i?o+gS(e):o,n=b&&b.children[v],t=0;for(var y=0;y<v;y++)t-=b&&b.children[y]&&b.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},gS=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},mS=function(e){return e.unslick||!e.infinite?0:e.slideCount},vS=function(e){return 1===e.slideCount?1:gS(e)+e.slideCount+mS(e)},bS=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+yS(e)?"left":"right":e.targetSlide<e.currentSlide-xS(e)?"right":"left"},yS=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o&&t%2==0&&(i+=1),i}return o?0:t-1},xS=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o||t%2!=0||(i+=1),i}return o?t-1:0},CS=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},wS=Object.keys(Yw);var SS=function(e){var t,n,o,r,i;return o=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":o,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},kS=function(e,t){return e.key+"-"+t},ES=function(e){var n,o=[],r=[],i=[],a=t.Children.count(e.children),s=eS(e),l=tS(e);return t.Children.forEach(e.children,(function(c,u){var d,p={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};d=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?c:t.createElement("div",null);var f=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(J(J({},e),{},{index:u})),h=d.props.className||"",g=SS(J(J({},e),{},{index:u}));if(o.push(t.cloneElement(d,{key:"original"+kS(d,u),"data-index":u,className:D(g,h),tabIndex:"-1","aria-hidden":!g["slick-active"],style:J(J({outline:"none"},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&a>1&&!1===e.fade&&!e.unslick){var m=a-u;m<=gS(e)&&((n=-m)>=s&&(d=c),g=SS(J(J({},e),{},{index:n})),r.push(t.cloneElement(d,{key:"precloned"+kS(d,n),"data-index":n,tabIndex:"-1",className:D(g,h),"aria-hidden":!g["slick-active"],style:J(J({},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(n=a+u)<l&&(d=c),g=SS(J(J({},e),{},{index:n})),i.push(t.cloneElement(d,{key:"postcloned"+kS(d,n),"data-index":n,tabIndex:"-1",className:D(g,h),"aria-hidden":!g["slick-active"],style:J(J({},d.props.style||{}),f),onClick:function(t){d.props&&d.props.onClick&&d.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))}})),e.rtl?r.concat(o,i).reverse():r.concat(o,i)},OS=function(){function e(){var t,n,o,r;We(this,e);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=this,o=e,r=[].concat(a),o=Ue(o),Q(t=Qe(n,Ge()?Reflect.construct(o,r||[],Ue(n).constructor):o.apply(n,r)),"node",null),Q(t,"handleRef",(function(e){t.node=e})),t}return Xe(e,t.PureComponent),Ke(e,[{key:"render",value:function(){var e=ES(this.props),n=this.props,o={onMouseEnter:n.onMouseEnter,onMouseOver:n.onMouseOver,onMouseLeave:n.onMouseLeave};return t.createElement("div",A({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},o),e)}}])}();var $S=function(){function e(){return We(this,e),t=this,o=arguments,n=Ue(n=e),Qe(t,Ge()?Reflect.construct(n,o||[],Ue(t).constructor):n.apply(t,o));var t,n,o}return Xe(e,t.PureComponent),Ke(e,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,n=this.props,o=n.onMouseEnter,r=n.onMouseOver,i=n.onMouseLeave,a=n.infinite,s=n.slidesToScroll,l=n.slidesToShow,c=n.slideCount,u=n.currentSlide,d=(e={slideCount:c,slidesToScroll:s,slidesToShow:l,infinite:a}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,p={onMouseEnter:o,onMouseOver:r,onMouseLeave:i},f=[],h=0;h<d;h++){var g=(h+1)*s-1,m=a?g:Qw(g,0,c-1),v=m-(s-1),b=a?v:Qw(v,0,c-1),y=D({"slick-active":a?u>=b&&u<=m:u===b}),x={message:"dots",index:h,slidesToScroll:s,currentSlide:u},C=this.clickHandler.bind(this,x);f=f.concat(t.createElement("li",{key:h,className:y},t.cloneElement(this.props.customPaging(h),{onClick:C})))}return t.cloneElement(this.props.appendDots(f),J({className:this.props.dotsClass},p))}}])}();function NS(e,t,n){return t=Ue(t),Qe(e,Ge()?Reflect.construct(t,n||[],Ue(e).constructor):t.apply(e,n))}var MS=function(){function e(){return We(this,e),NS(this,e,arguments)}return Xe(e,t.PureComponent),Ke(e,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},n=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,n=null);var o={key:"0","data-role":"none",className:D(e),style:{display:"block"},onClick:n},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?t.cloneElement(this.props.prevArrow,J(J({},o),r)):t.createElement("button",A({key:"0",type:"button"},o)," ","Previous")}}])}(),IS=function(){function e(){return We(this,e),NS(this,e,arguments)}return Xe(e,t.PureComponent),Ke(e,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},n=this.clickHandler.bind(this,{message:"next"});sS(this.props)||(e["slick-disabled"]=!0,n=null);var o={key:"1","data-role":"none",className:D(e),style:{display:"block"},onClick:n},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?t.cloneElement(this.props.nextArrow,J(J({},o),r)):t.createElement("button",A({key:"1",type:"button"},o)," ","Next")}}])}(),PS=["animating"];var LS=function(){function e(n){var o,r,i,a;We(this,e),r=this,a=[n],i=Ue(i=e),Q(o=Qe(r,Ge()?Reflect.construct(i,a||[],Ue(r).constructor):i.apply(r,a)),"listRefHandler",(function(e){return o.list=e})),Q(o,"trackRefHandler",(function(e){return o.track=e})),Q(o,"adaptHeight",(function(){if(o.props.adaptiveHeight&&o.list){var e=o.list.querySelector('[data-index="'.concat(o.state.currentSlide,'"]'));o.list.style.height=iS(e)+"px"}})),Q(o,"componentDidMount",(function(){if(o.props.onInit&&o.props.onInit(),o.props.lazyLoad){var e=Jw(J(J({},o.props),o.state));e.length>0&&(o.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),o.props.onLazyLoad&&o.props.onLazyLoad(e))}var t=J({listRef:o.list,trackRef:o.track},o.props);o.updateState(t,!0,(function(){o.adaptHeight(),o.props.autoplay&&o.autoPlay("playing")})),"progressive"===o.props.lazyLoad&&(o.lazyLoadTimer=setInterval(o.progressiveLazyLoad,1e3)),o.ro=new ze((function(){o.state.animating?(o.onWindowResized(!1),o.callbackTimers.push(setTimeout((function(){return o.onWindowResized()}),o.props.speed))):o.onWindowResized()})),o.ro.observe(o.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=o.props.pauseOnFocus?o.onSlideFocus:null,e.onblur=o.props.pauseOnFocus?o.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",o.onWindowResized):window.attachEvent("onresize",o.onWindowResized)})),Q(o,"componentWillUnmount",(function(){o.animationEndCallback&&clearTimeout(o.animationEndCallback),o.lazyLoadTimer&&clearInterval(o.lazyLoadTimer),o.callbackTimers.length&&(o.callbackTimers.forEach((function(e){return clearTimeout(e)})),o.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",o.onWindowResized):window.detachEvent("onresize",o.onWindowResized),o.autoplayTimer&&clearInterval(o.autoplayTimer),o.ro.disconnect()})),Q(o,"componentDidUpdate",(function(e){if(o.checkImagesLoad(),o.props.onReInit&&o.props.onReInit(),o.props.lazyLoad){var n=Jw(J(J({},o.props),o.state));n.length>0&&(o.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),o.props.onLazyLoad&&o.props.onLazyLoad(n))}o.adaptHeight();var r=J(J({listRef:o.list,trackRef:o.track},o.props),o.state),i=o.didPropsChange(e);i&&o.updateState(r,i,(function(){o.state.currentSlide>=t.Children.count(o.props.children)&&o.changeSlide({message:"index",index:t.Children.count(o.props.children)-o.props.slidesToShow,currentSlide:o.state.currentSlide}),e.autoplay===o.props.autoplay&&e.autoplaySpeed===o.props.autoplaySpeed||(!e.autoplay&&o.props.autoplay?o.autoPlay("playing"):o.props.autoplay?o.autoPlay("update"):o.pause("paused"))}))})),Q(o,"onWindowResized",(function(e){o.debouncedResize&&o.debouncedResize.cancel(),o.debouncedResize=Gw(50,(function(){return o.resizeWindow(e)})),o.debouncedResize()})),Q(o,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(o.track&&o.track.node)){var t=J(J({listRef:o.list,trackRef:o.track},o.props),o.state);o.updateState(t,e,(function(){o.props.autoplay?o.autoPlay("update"):o.pause("paused")})),o.setState({animating:!1}),clearTimeout(o.animationEndCallback),delete o.animationEndCallback}})),Q(o,"updateState",(function(e,n,r){var i=function(e){var n,o=t.Children.count(e.children),r=e.listRef,i=Math.ceil(rS(r)),a=e.trackRef&&e.trackRef.node,s=Math.ceil(rS(a));if(e.vertical)n=i;else{var l=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(l*=i/100),n=Math.ceil((i-l)/e.slidesToShow)}var c=r&&iS(r.querySelector('[data-index="0"]')),u=c*e.slidesToShow,d=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(d=o-1-e.initialSlide);var p=e.lazyLoadedList||[],f=Jw(J(J({},e),{},{currentSlide:d,lazyLoadedList:p})),h={slideCount:o,slideWidth:n,listWidth:i,trackWidth:s,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:p=p.concat(f)};return null===e.autoplaying&&e.autoplay&&(h.autoplaying="playing"),h}(e);e=J(J(J({},e),i),{},{slideIndex:i.currentSlide});var a=hS(e);e=J(J({},e),{},{left:a});var s=pS(e);(n||t.Children.count(o.props.children)!==t.Children.count(e.children))&&(i.trackStyle=s),o.setState(i,r)})),Q(o,"ssrInit",(function(){if(o.props.variableWidth){var e=0,n=0,r=[],i=gS(J(J(J({},o.props),o.state),{},{slideCount:o.props.children.length})),a=mS(J(J(J({},o.props),o.state),{},{slideCount:o.props.children.length}));o.props.children.forEach((function(t){r.push(t.props.style.width),e+=t.props.style.width}));for(var s=0;s<i;s++)n+=r[r.length-1-s],e+=r[r.length-1-s];for(var l=0;l<a;l++)e+=r[l];for(var c=0;c<o.state.currentSlide;c++)n+=r[c];var u={width:e+"px",left:-n+"px"};if(o.props.centerMode){var d="".concat(r[o.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")}return{trackStyle:u}}var p=t.Children.count(o.props.children),f=J(J(J({},o.props),o.state),{},{slideCount:p}),h=gS(f)+mS(f)+p,g=100/o.props.slidesToShow*h,m=100/h,v=-m*(gS(f)+o.state.currentSlide)*g/100;return o.props.centerMode&&(v+=(100-m*g/100)/2),{slideWidth:m+"%",trackStyle:{width:g+"%",left:v+"%"}}})),Q(o,"checkImagesLoad",(function(){var e=o.list&&o.list.querySelectorAll&&o.list.querySelectorAll(".slick-slide img")||[],t=e.length,n=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++n&&n>=t&&o.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(o.props.lazyLoad?e.onload=function(){o.adaptHeight(),o.callbackTimers.push(setTimeout(o.onWindowResized,o.props.speed))}:(e.onload=r,e.onerror=function(){r(),o.props.onLazyLoadError&&o.props.onLazyLoadError()}))}))})),Q(o,"progressiveLazyLoad",(function(){for(var e=[],t=J(J({},o.props),o.state),n=o.state.currentSlide;n<o.state.slideCount+mS(t);n++)if(o.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=o.state.currentSlide-1;r>=-gS(t);r--)if(o.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(o.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),o.props.onLazyLoad&&o.props.onLazyLoad(e)):o.lazyLoadTimer&&(clearInterval(o.lazyLoadTimer),delete o.lazyLoadTimer)})),Q(o,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o.props,r=n.asNavFor,i=n.beforeChange,a=n.onLazyLoad,s=n.speed,l=n.afterChange,c=o.state.currentSlide,u=function(e){var t=e.waitForAnimate,n=e.animating,o=e.fade,r=e.infinite,i=e.index,a=e.slideCount,s=e.lazyLoad,l=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,p=e.useCSS,f=e.lazyLoadedList;if(t&&n)return{};var h,g,m,v=i,b={},y={},x=r?i:Qw(i,0,a-1);if(o){if(!r&&(i<0||i>=a))return{};i<0?v=i+a:i>=a&&(v=i-a),s&&f.indexOf(v)<0&&(f=f.concat(v)),b={animating:!0,currentSlide:v,lazyLoadedList:f,targetSlide:v},y={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+a,r?a%u!=0&&(h=a-a%u):h=0):!sS(e)&&v>l?v=h=l:c&&v>=a?(v=r?a:a-1,h=r?0:a-1):v>=a&&(h=v-a,r?a%u!=0&&(h=0):h=a-d),!r&&v+d>=a&&(h=a-d),g=hS(J(J({},e),{},{slideIndex:v})),m=hS(J(J({},e),{},{slideIndex:h})),r||(g===m&&(v=h),g=m),s&&(f=f.concat(Jw(J(J({},e),{},{currentSlide:v})))),p?(b={animating:!0,currentSlide:h,trackStyle:fS(J(J({},e),{},{left:g})),lazyLoadedList:f,targetSlide:x},y={animating:!1,currentSlide:h,trackStyle:pS(J(J({},e),{},{left:m})),swipeLeft:null,targetSlide:x}):b={currentSlide:h,trackStyle:pS(J(J({},e),{},{left:m})),lazyLoadedList:f,targetSlide:x};return{state:b,nextState:y}}(J(J(J({index:e},o.props),o.state),{},{trackRef:o.track,useCSS:o.props.useCSS&&!t})),d=u.state,p=u.nextState;if(d){i&&i(c,d.currentSlide);var f=d.lazyLoadedList.filter((function(e){return o.state.lazyLoadedList.indexOf(e)<0}));a&&f.length>0&&a(f),!o.props.waitForAnimate&&o.animationEndCallback&&(clearTimeout(o.animationEndCallback),l&&l(c),delete o.animationEndCallback),o.setState(d,(function(){r&&o.asNavForIndex!==e&&(o.asNavForIndex=e,r.innerSlider.slideHandler(e)),p&&(o.animationEndCallback=setTimeout((function(){var e=p.animating,t=Lt(p,PS);o.setState(t,(function(){o.callbackTimers.push(setTimeout((function(){return o.setState({animating:e})}),10)),l&&l(d.currentSlide),delete o.animationEndCallback}))}),s))}))}})),Q(o,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(e,t){var n,o,r,i,a=e.slidesToScroll,s=e.slidesToShow,l=e.slideCount,c=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,p=e.infinite;if(n=l%a!=0?0:(l-c)%a,"previous"===t.message)i=c-(r=0===n?a:s-n),d&&!p&&(i=-1==(o=c-r)?l-1:o),p||(i=u-a);else if("next"===t.message)i=c+(r=0===n?a:n),d&&!p&&(i=(c+a)%l+n),p||(i=u+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,p){var f=bS(J(J({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===f?i-=l:i<t.currentSlide&&"right"===f&&(i+=l)}}else"index"===t.message&&(i=Number(t.index));return i}(J(J({},o.props),o.state),e);if((0===n||n)&&(!0===t?o.slideHandler(n,t):o.slideHandler(n),o.props.autoplay&&o.autoPlay("update"),o.props.focusOnSelect)){var r=o.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}})),Q(o,"clickHandler",(function(e){!1===o.clickable&&(e.stopPropagation(),e.preventDefault()),o.clickable=!0})),Q(o,"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,o.props.accessibility,o.props.rtl);""!==t&&o.changeSlide({message:t})})),Q(o,"selectHandler",(function(e){o.changeSlide(e)})),Q(o,"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),Q(o,"enableBodyScroll",(function(){window.ontouchmove=null})),Q(o,"swipeStart",(function(e){o.props.verticalSwiping&&o.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&Zw(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,o.props.swipe,o.props.draggable);""!==t&&o.setState(t)})),Q(o,"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,o=t.animating,r=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,s=t.rtl,l=t.currentSlide,c=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,p=t.swiped,f=t.swiping,h=t.slideCount,g=t.slidesToScroll,m=t.infinite,v=t.touchObject,b=t.swipeEvent,y=t.listHeight,x=t.listWidth;if(!n){if(o)return Zw(e);r&&i&&a&&Zw(e);var C,w={},S=hS(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));var k=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!a&&!f&&k>10)return{scrolling:!0};a&&(v.swipeLength=k);var E=(s?-1:1)*(v.curX>v.startX?1:-1);a&&(E=v.curY>v.startY?1:-1);var O=Math.ceil(h/g),$=aS(t.touchObject,a),N=v.swipeLength;return m||(0===l&&("right"===$||"down"===$)||l+1>=O&&("left"===$||"up"===$)||!sS(t)&&("left"===$||"up"===$))&&(N=v.swipeLength*c,!1===u&&d&&(d($),w.edgeDragged=!0)),!p&&b&&(b($),w.swiped=!0),C=r?S+N*(y/x)*E:s?S-N*E:S+N*E,a&&(C=S+N*E),w=J(J({},w),{},{touchObject:v,swipeLeft:C,trackStyle:pS(J(J({},t),{},{left:C}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||v.swipeLength>10&&(w.swiping=!0,Zw(e)),w}}(e,J(J(J({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));t&&(t.swiping&&(o.clickable=!1),o.setState(t))})),Q(o,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,o=t.swipe,r=t.touchObject,i=t.listWidth,a=t.touchThreshold,s=t.verticalSwiping,l=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,p=t.targetSlide,f=t.currentSlide,h=t.infinite;if(!n)return o&&Zw(e),{};var g=s?l/a:i/a,m=aS(r,s),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return v;if(!r.swipeLength)return v;if(r.swipeLength>g){var b,y;Zw(e),d&&d(m);var x=h?f:p;switch(m){case"left":case"up":y=x+uS(t),b=c?cS(t,y):y,v.currentDirection=0;break;case"right":case"down":y=x-uS(t),b=c?cS(t,y):y,v.currentDirection=1;break;default:b=x}v.triggerSlideHandler=b}else{var C=hS(t);v.trackStyle=fS(J(J({},t),{},{left:C}))}return v}(e,J(J(J({},o.props),o.state),{},{trackRef:o.track,listRef:o.list,slideIndex:o.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,o.setState(t),void 0!==n&&(o.slideHandler(n),o.props.verticalSwiping&&o.enableBodyScroll())}})),Q(o,"touchEnd",(function(e){o.swipeEnd(e),o.clickable=!0})),Q(o,"slickPrev",(function(){o.callbackTimers.push(setTimeout((function(){return o.changeSlide({message:"previous"})}),0))})),Q(o,"slickNext",(function(){o.callbackTimers.push(setTimeout((function(){return o.changeSlide({message:"next"})}),0))})),Q(o,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";o.callbackTimers.push(setTimeout((function(){return o.changeSlide({message:"index",index:e,currentSlide:o.state.currentSlide},t)}),0))})),Q(o,"play",(function(){var e;if(o.props.rtl)e=o.state.currentSlide-o.props.slidesToScroll;else{if(!sS(J(J({},o.props),o.state)))return!1;e=o.state.currentSlide+o.props.slidesToScroll}o.slideHandler(e)})),Q(o,"autoPlay",(function(e){o.autoplayTimer&&clearInterval(o.autoplayTimer);var t=o.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;o.autoplayTimer=setInterval(o.play,o.props.autoplaySpeed+50),o.setState({autoplaying:"playing"})})),Q(o,"pause",(function(e){o.autoplayTimer&&(clearInterval(o.autoplayTimer),o.autoplayTimer=null);var t=o.state.autoplaying;"paused"===e?o.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||o.setState({autoplaying:"focused"}):"playing"===t&&o.setState({autoplaying:"hovered"})})),Q(o,"onDotsOver",(function(){return o.props.autoplay&&o.pause("hovered")})),Q(o,"onDotsLeave",(function(){return o.props.autoplay&&"hovered"===o.state.autoplaying&&o.autoPlay("leave")})),Q(o,"onTrackOver",(function(){return o.props.autoplay&&o.pause("hovered")})),Q(o,"onTrackLeave",(function(){return o.props.autoplay&&"hovered"===o.state.autoplaying&&o.autoPlay("leave")})),Q(o,"onSlideFocus",(function(){return o.props.autoplay&&o.pause("focused")})),Q(o,"onSlideBlur",(function(){return o.props.autoplay&&"focused"===o.state.autoplaying&&o.autoPlay("blur")})),Q(o,"render",(function(){var e,n,r,i=D("slick-slider",o.props.className,{"slick-vertical":o.props.vertical,"slick-initialized":!0}),a=J(J({},o.props),o.state),s=lS(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),l=o.props.pauseOnHover;if(s=J(J({},s),{},{onMouseEnter:l?o.onTrackOver:null,onMouseLeave:l?o.onTrackLeave:null,onMouseOver:l?o.onTrackOver:null,focusOnSelect:o.props.focusOnSelect&&o.clickable?o.selectHandler:null}),!0===o.props.dots&&o.state.slideCount>=o.props.slidesToShow){var c=lS(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),u=o.props.pauseOnDotsHover;c=J(J({},c),{},{clickHandler:o.changeSlide,onMouseEnter:u?o.onDotsLeave:null,onMouseOver:u?o.onDotsOver:null,onMouseLeave:u?o.onDotsLeave:null}),e=t.createElement($S,c)}var d=lS(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);d.clickHandler=o.changeSlide,o.props.arrows&&(n=t.createElement(MS,d),r=t.createElement(IS,d));var p=null;o.props.vertical&&(p={height:o.state.listHeight});var f=null;!1===o.props.vertical?!0===o.props.centerMode&&(f={padding:"0px "+o.props.centerPadding}):!0===o.props.centerMode&&(f={padding:o.props.centerPadding+" 0px"});var h=J(J({},p),f),g=o.props.touchMove,m={className:"slick-list",style:h,onClick:o.clickHandler,onMouseDown:g?o.swipeStart:null,onMouseMove:o.state.dragging&&g?o.swipeMove:null,onMouseUp:g?o.swipeEnd:null,onMouseLeave:o.state.dragging&&g?o.swipeEnd:null,onTouchStart:g?o.swipeStart:null,onTouchMove:o.state.dragging&&g?o.swipeMove:null,onTouchEnd:g?o.touchEnd:null,onTouchCancel:o.state.dragging&&g?o.swipeEnd:null,onKeyDown:o.props.accessibility?o.keyHandler:null},v={className:i,dir:"ltr",style:o.props.style};return o.props.unslick&&(m={className:"slick-list"},v={className:i,style:o.props.style}),t.createElement("div",v,o.props.unslick?"":n,t.createElement("div",A({ref:o.listRefHandler},m),t.createElement(OS,A({ref:o.trackRefHandler},s),o.props.children)),o.props.unslick?"":r,o.props.unslick?"":e)})),o.list=null,o.track=null,o.state=J(J({},Uw),{},{currentSlide:o.props.initialSlide,targetSlide:o.props.initialSlide?o.props.initialSlide:0,slideCount:t.Children.count(o.props.children)}),o.callbackTimers=[],o.clickable=!0,o.debouncedResize=null;var s=o.ssrInit();return o.state=J(J({},o.state),s),o}return Xe(e,t.Component),Ke(e,[{key:"didPropsChange",value:function(e){for(var n=!1,o=0,r=Object.keys(this.props);o<r.length;o++){var i=r[o];if(!e.hasOwnProperty(i)){n=!0;break}if("object"!==T(e[i])&&"function"!=typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){n=!0;break}}return n||t.Children.count(this.props.children)!==t.Children.count(e.children)}}])}(),jS=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()},DS=jS,AS=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,r){var i=e[o];(function(e){return/[height|width]$/.test(e)})(o=DS(o))&&"number"==typeof i&&(i+="px"),t+=!0===i?o:!1===i?"not "+o:"("+o+": "+i+")",r<n.length-1&&(t+=" and ")})),t},TS=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=AS(n),o<e.length-1&&(t+=", ")})),t):AS(e)},RS=O(TS);var _S=function(){function e(t){var n,o,r,i;return We(this,e),o=this,i=[t],r=Ue(r=e),Q(n=Qe(o,Ge()?Reflect.construct(r,i||[],Ue(o).constructor):r.apply(o,i)),"innerSliderRefHandler",(function(e){return n.innerSlider=e})),Q(n,"slickPrev",(function(){return n.innerSlider.slickPrev()})),Q(n,"slickNext",(function(){return n.innerSlider.slickNext()})),Q(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),Q(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),Q(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return Xe(e,t.Component),Ke(e,[{key:"media",value:function(e,t){var n=window.matchMedia(e),o=function(e){e.matches&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,o){var r;r=RS(0===o?{minWidth:0,maxWidth:n}:{minWidth:t[o-1]+1,maxWidth:n}),CS()&&e.media(r,(function(){e.setState({breakpoint:n})}))}));var n=RS({minWidth:t.slice(-1)[0]});CS()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,n,o=this;(e=this.state.breakpoint?"unslick"===(n=this.props.responsive.filter((function(e){return e.breakpoint===o.state.breakpoint})))[0].settings?"unslick":J(J(J({},Yw),this.props),n[0].settings):J(J({},Yw),this.props)).centerMode&&(e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(e.slidesToScroll)),e.slidesToScroll=1),e.fade&&(e.slidesToShow>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(e.slidesToShow)),e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(e.slidesToScroll)),e.slidesToShow=1,e.slidesToScroll=1);var r=t.Children.toArray(this.props.children);r=r.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],a=null,s=0;s<r.length;s+=e.rows*e.slidesPerRow){for(var l=[],c=s;c<s+e.rows*e.slidesPerRow;c+=e.slidesPerRow){for(var u=[],d=c;d<c+e.slidesPerRow&&(e.variableWidth&&r[d].props.style&&(a=r[d].props.style.width),!(d>=r.length));d+=1)u.push(t.cloneElement(r[d],{key:100*s+10*c+d,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));l.push(t.createElement("div",{key:10*s+c},u))}e.variableWidth?i.push(t.createElement("div",{key:s,style:{width:a}},l)):i.push(t.createElement("div",{key:s},l))}if("unslick"===e){var p="regular slider "+(this.props.className||"");return t.createElement("div",{className:p},r)}return i.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),t.createElement(LS,A({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return wS.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),i)}}])}();const zS=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},BS=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:o,arrowOffset:r}=e,i=e.calc(o).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:o,height:o,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(o).sub(i).div(2).equal(),insetInlineStart:e.calc(o).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:r,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:r,"&::after":{transform:"rotate(135deg)"}}}}]},HS=e=>{const{componentCls:t,dotOffset:n,dotWidth:o,dotHeight:r,dotGap:i,colorBgContainer:a,motionDurationSlow:s}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:o,height:r,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${s}`,button:{position:"relative",display:"block",width:"100%",height:r,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:r,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${s}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},FS=e=>{const{componentCls:t,dotOffset:n,arrowOffset:o,marginXXS:r}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:o,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:o,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},i),{margin:`${Qt(r)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":Object.assign(Object.assign({},i),{button:i})})}}}},WS=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]};var VS=Zi("Carousel",(e=>[zS(e),BS(e),HS(e),FS(e),WS(e)]),(e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),KS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qS="slick-dots",XS=t=>{var n=KS(t,["currentSlide","slideCount"]);return e.createElement("button",Object.assign({type:"button"},n))},US=e.forwardRef(((t,n)=>{const{dots:o=!0,arrows:r=!1,prevArrow:i=e.createElement(XS,{"aria-label":"prev"}),nextArrow:a=e.createElement(XS,{"aria-label":"next"}),draggable:s=!1,waitForAnimate:l=!1,dotPosition:c="bottom",vertical:u="left"===c||"right"===c,rootClassName:d,className:p,style:f,id:h}=t,g=KS(t,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:m,direction:v,carousel:b}=e.useContext(ai),y=e.useRef(),x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.current.slickGoTo(e,t)};e.useImperativeHandle(n,(()=>({goTo:x,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext})),[y.current]);const C=e.useRef(e.Children.count(t.children));e.useEffect((()=>{C.current!==e.Children.count(t.children)&&(x(t.initialSlide||0,!1),C.current=e.Children.count(t.children))}),[t.children]);const w=Object.assign({vertical:u,className:D(p,null==b?void 0:b.className),style:Object.assign(Object.assign({},null==b?void 0:b.style),f)},g);"fade"===w.effect&&(w.fade=!0);const S=m("carousel",w.prefixCls),k=!!o,E=D(qS,`${qS}-${c}`,"boolean"!=typeof o&&(null==o?void 0:o.className)),[O,$,N]=VS(S),M=D(S,{[`${S}-rtl`]:"rtl"===v,[`${S}-vertical`]:w.vertical},$,N,d);return O(e.createElement("div",{className:M,id:h},e.createElement(_S,Object.assign({ref:y},w,{dots:k,dotsClass:E,arrows:r,prevArrow:i,nextArrow:a,draggable:s,verticalSwiping:u,waitForAnimate:l}))))}));function GS(e,t){return e[t]}"production"!==process.env.NODE_ENV&&(US.displayName="Carousel");var YS=["children"];function QS(e,t){return"".concat(e,"-").concat(t)}function ZS(e,t){return null!=e?e:t}function JS(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function ek(e){return function e(t){return H(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return U(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,i=J({key:n},Lt(o,YS)),a=e(r);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function tk(e,t,n){var o=JS(n),r=o._title,i=o.key,a=o.children,s=new Set(!0===t?[]:t),l=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var d,p=QS(o?o.pos:"0",u),f=ZS(c[i],p),h=0;h<r.length;h+=1){var g=r[h];if(void 0!==c[g]){d=c[g];break}}var m=Object.assign(rt(c,[].concat(lt(r),[i,a])),{title:d,key:f,parent:o,pos:p,children:null,data:c,isStart:[].concat(lt(o?o.isStart:[]),[0===u]),isEnd:[].concat(lt(o?o.isEnd:[]),[u===n.length-1])});return l.push(m),!0===t||s.has(f)?m.children=e(c[a]||[],m):m.children=[],m}))}(e),l}function nk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=i||(arguments.length>2?arguments[2]:void 0),c={},u={},d={posEntities:c,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,r=("object"===T(n)?n:{externalGetKey:n})||{},i=r.childrenPropName,a=r.externalGetKey,s=JS(r.fieldNames),l=s.key,c=s.children,u=i||c;a?"string"==typeof a?o=function(e){return e[a]}:"function"==typeof a&&(o=function(e){return a(e)}):o=function(e,t){return ZS(e[l],t)},function n(r,i,a,s){var l=r?r[u]:e,c=r?QS(a.pos,i):"0",d=r?[].concat(lt(s),[r]):[];if(r){var p=o(r,c),f={node:r,index:i,pos:c,key:p,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(f)}l&&l.forEach((function(e,t){n(e,t,{node:r,pos:c,level:a?a.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,s=e.level,l={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:s},p=ZS(i,r);c[r]=l,u[p]=l,l.parent=c[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),o&&o(l,d)}),{externalGetKey:l,childrenPropName:a,fieldNames:s}),r&&r(d),d}function ok(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=GS(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function rk(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,p=e.active,f=e.eventKey,h=J(J({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,key:f});return"props"in h||Object.defineProperty(h,"props",{get:function(){return U(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function ik(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function ak(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function sk(e,t,n,o){var r,i=[];r=o||ak;var a,s=new Set(e.filter((function(e){var t=!!GS(n,e);return t||i.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],o=t.level,r=l.get(o);r||(r=new Set,l.set(o,r)),r.add(t),c=Math.max(c,o)})),U(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter((function(e){return!o(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),l||!n&&!i.has(t)||(l=!0)})),a&&r.add(t.key),l&&i.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(ik(i,r))}}(s,l,c,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),s=0;s<=o;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,s=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||s.filter((function(e){return!r(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var l=new Set,c=o;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var o=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),s||!n&&!a.has(t)||(s=!0)})),o||i.delete(t.key),s&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(ik(a,i))}}(s,t.halfCheckedKeys,l,c,r),a}const lk=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},qi(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},qi(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},qi(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Ui(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Qt(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function ck(e,t){const n=$i(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[lk(n)]}var uk=Zi("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[ck(n,e)]}));const dk=t.createContext(null);var pk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fk=(t,n)=>{var o;const{prefixCls:r,className:i,rootClassName:a,children:s,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:p=!1,disabled:f}=t,h=pk(t,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:m,checkbox:v}=e.useContext(ai),b=e.useContext(dk),{isFormItemInput:y}=e.useContext(Vp),x=e.useContext(ci),C=null!==(o=(null==b?void 0:b.disabled)||f)&&void 0!==o?o:x,w=e.useRef(h.value);if("production"!==process.env.NODE_ENV){const e=zo("Checkbox");"production"!==process.env.NODE_ENV&&e("checked"in h||!!b||!("value"in h),"usage","`value` is not a valid prop, do you mean `checked`?")}e.useEffect((()=>{null==b||b.registerValue(h.value)}),[]),e.useEffect((()=>{if(!p)return h.value!==w.current&&(null==b||b.cancelValue(w.current),null==b||b.registerValue(h.value),w.current=h.value),()=>null==b?void 0:b.cancelValue(h.value)}),[h.value]);const S=g("checkbox",r),k=qs(S),[E,O,$]=uk(S,k),N=Object.assign({},h);b&&!p&&(N.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:s,value:h.value})},N.name=b.name,N.checked=b.value.includes(h.value));const M=D(`${S}-wrapper`,{[`${S}-rtl`]:"rtl"===m,[`${S}-wrapper-checked`]:N.checked,[`${S}-wrapper-disabled`]:C,[`${S}-wrapper-in-form-item`]:y},null==v?void 0:v.className,i,a,$,k,O),I=D({[`${S}-indeterminate`]:l},$l,O),P=l?"mixed":void 0;return E(e.createElement(jl,{component:"Checkbox",disabled:C},e.createElement("label",{className:M,style:Object.assign(Object.assign({},null==v?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d},e.createElement(nC,Object.assign({"aria-checked":P},N,{prefixCls:S,className:I,disabled:C,ref:n})),void 0!==s&&e.createElement("span",null,s))))},hk=e.forwardRef(fk);"production"!==process.env.NODE_ENV&&(hk.displayName="Checkbox");var gk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mk=e.forwardRef(((t,n)=>{const{defaultValue:o,children:r,options:i=[],prefixCls:a,className:s,rootClassName:l,style:c,onChange:u}=t,d=gk(t,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:f}=e.useContext(ai),[h,g]=e.useState(d.value||o||[]),[m,v]=e.useState([]);e.useEffect((()=>{"value"in d&&g(d.value||[])}),[d.value]);const b=e.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=p("checkbox",a),x=`${y}-group`,C=qs(y),[w,S,k]=uk(y,C),E=rt(d,["value","disabled"]),O=i.length?b.map((t=>e.createElement(hk,{prefixCls:y,key:t.value.toString(),disabled:"disabled"in t?t.disabled:d.disabled,value:t.value,checked:h.includes(t.value),onChange:t.onChange,className:`${x}-item`,style:t.style,title:t.title,id:t.id,required:t.required},t.label))):r,$={toggleOption:e=>{const t=h.indexOf(e.value),n=lt(h);-1===t?n.push(e.value):n.splice(t,1),"value"in d||g(n),null==u||u(n.filter((e=>m.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:h,disabled:d.disabled,name:d.name,registerValue:e=>{v((t=>[].concat(lt(t),[e])))},cancelValue:e=>{v((t=>t.filter((t=>t!==e))))}},N=D(x,{[`${x}-rtl`]:"rtl"===f},s,l,k,C,S);return w(e.createElement("div",Object.assign({className:N,style:c},E,{ref:n}),e.createElement(dk.Provider,{value:$},O)))})),vk=hk;vk.Group=mk,vk.__ANT_CHECKBOX=!0,"production"!==process.env.NODE_ENV&&(vk.displayName="Checkbox");const bk=i({}),yk=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},xk=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:o,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)0===e?(i[`${o}${t}-${e}`]={display:"none"},i[`${o}-push-${e}`]={insetInlineStart:"auto"},i[`${o}-pull-${e}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${e}`]={marginInlineStart:0},i[`${o}${t}-order-${e}`]={order:0}):(i[`${o}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],i[`${o}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},i[`${o}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},i[`${o}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},i[`${o}${t}-order-${e}`]={order:e});return i[`${o}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),Ck=Zi("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),wk=Zi("Grid",(e=>{const t=$i(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[yk(t),xk(t,""),xk(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Qt(t)})`]:Object.assign({},xk(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var Sk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function kk(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Ek=["xs","sm","md","lg","xl","xxl"],Ok=e.forwardRef(((t,n)=>{const{getPrefixCls:o,direction:r}=e.useContext(ai),{gutter:i,wrap:a}=e.useContext(bk),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:p,className:f,children:h,flex:g,style:m}=t,v=Sk(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=o("col",s),[y,x,C]=wk(b),w={};let S={};Ek.forEach((e=>{let n={};const o=t[e];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete v[e],S=Object.assign(Object.assign({},S),{[`${b}-${e}-${n.span}`]:void 0!==n.span,[`${b}-${e}-order-${n.order}`]:n.order||0===n.order,[`${b}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${e}-push-${n.push}`]:n.push||0===n.push,[`${b}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===r}),n.flex&&(S[`${b}-${e}-flex`]=!0,w[`--${b}-${e}-flex`]=kk(n.flex))}));const k=D(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${p}`]:p},f,S,x,C),E={};if(i&&i[0]>0){const e=i[0]/2;E.paddingLeft=e,E.paddingRight=e}return g&&(E.flex=kk(g),!1!==a||E.minWidth||(E.minWidth=0)),y(e.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),m),w),className:k,ref:n}),h))}));"production"!==process.env.NODE_ENV&&(Ok.displayName="Col");var $k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Nk(t,n){const[o,r]=e.useState("string"==typeof t?t:"");return e.useEffect((()=>{(()=>{if("string"==typeof t&&r(t),"object"==typeof t)for(let e=0;e<Jm.length;e++){const o=Jm[e];if(!n[o])continue;const i=t[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(t),n]),o}const Mk=e.forwardRef(((t,n)=>{const{prefixCls:o,justify:r,align:i,className:a,style:s,children:l,gutter:c=0,wrap:u}=t,d=$k(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:f}=e.useContext(ai),[h,g]=e.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,v]=e.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=Nk(i,m),y=Nk(r,m),x=e.useRef(c),C=ev();e.useEffect((()=>{const e=C.subscribe((e=>{v(e);const t=x.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&g(e)}));return()=>C.unsubscribe(e)}),[]);const w=p("row",o),[S,k,E]=Ck(w),O=(()=>{const e=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let o=0;o<Jm.length;o++){const r=Jm[o];if(h[r]&&void 0!==t[r]){e[n]=t[r];break}}else e[n]=t})),e})(),$=D(w,{[`${w}-no-wrap`]:!1===u,[`${w}-${y}`]:y,[`${w}-${b}`]:b,[`${w}-rtl`]:"rtl"===f},a,k,E),N={},M=null!=O[0]&&O[0]>0?O[0]/-2:void 0;M&&(N.marginLeft=M,N.marginRight=M);const[I,P]=O;N.rowGap=P;const L=e.useMemo((()=>({gutter:[I,P],wrap:u})),[I,P,u]);return S(e.createElement(bk.Provider,{value:L},e.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},N),s),ref:n}),l)))}));"production"!==process.env.NODE_ENV&&(Mk.displayName="Row");const Ik=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{borderBlockStart:`${Qt(r)} solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Qt(r)} solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Qt(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Qt(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Qt(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${Qt(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:o,borderStyle:"dotted",borderWidth:`${Qt(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var Pk=Zi("Divider",(e=>{const t=$i(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Ik(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),Lk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jk=t=>{const{getPrefixCls:n,direction:o,divider:r}=e.useContext(ai),{prefixCls:i,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:p,variant:f="solid",plain:h,style:g}=t,m=Lk(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=n("divider",i),[b,y,x]=Pk(v),C=!!d,w="left"===s&&null!=l,S="right"===s&&null!=l,k=D(v,null==r?void 0:r.className,y,x,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text-${s}`]:C,[`${v}-dashed`]:!!p,[`${v}-${f}`]:"solid"!==f,[`${v}-plain`]:!!h,[`${v}-rtl`]:"rtl"===o,[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:S},c,u),E=e.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),O=Object.assign(Object.assign({},w&&{marginLeft:E}),S&&{marginRight:E});if("production"!==process.env.NODE_ENV){const e=zo("Divider");"production"!==process.env.NODE_ENV&&e(!d||"vertical"!==a,"usage","`children` not working in `vertical` mode.")}return b(e.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==r?void 0:r.style),g)},m,{role:"separator"}),d&&"vertical"!==a&&e.createElement("span",{className:`${v}-inner-text`,style:O},d)))};function Dk(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function Ak(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=Dk(t,e,o)):n(r=Dk(t,e,""))}}"production"!==process.env.NODE_ENV&&(jk.displayName="Divider");var Tk=t.forwardRef((function(e,n){var o,r,i=e.inputElement,s=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,p=e.addonAfter,f=e.className,h=e.style,g=e.disabled,v=e.readOnly,b=e.focused,y=e.triggerFocus,x=e.allowClear,C=e.value,w=e.handleReset,S=e.hidden,k=e.classes,E=e.classNames,O=e.dataAttrs,$=e.styles,N=e.components,M=e.onClear,I=null!=s?s:i,P=(null==N?void 0:N.affixWrapper)||"span",L=(null==N?void 0:N.groupWrapper)||"span",j=(null==N?void 0:N.wrapper)||"span",R=(null==N?void 0:N.groupAddon)||"span",_=a(null),z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),B=m(I,{value:C,className:D(I.props.className,!z&&(null==E?void 0:E.variant))||null}),H=a(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:H.current||_.current}})),z){var F=null;if(x){var W=!g&&!v&&C,V="".concat(l,"-clear-icon"),K="object"===T(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";F=t.createElement("span",{onClick:function(e){null==w||w(e),null==M||M()},onMouseDown:function(e){return e.preventDefault()},className:D(V,Q(Q({},"".concat(V,"-hidden"),!W),"".concat(V,"-has-suffix"),!!u)),role:"button",tabIndex:-1},K)}var q="".concat(l,"-affix-wrapper"),X=D(q,Q(Q(Q(Q(Q({},"".concat(l,"-disabled"),g),"".concat(q,"-disabled"),g),"".concat(q,"-focused"),b),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),u&&x&&C),null==k?void 0:k.affixWrapper,null==E?void 0:E.affixWrapper,null==E?void 0:E.variant),U=(u||x)&&t.createElement("span",{className:D("".concat(l,"-suffix"),null==E?void 0:E.suffix),style:null==$?void 0:$.suffix},F,u);B=t.createElement(P,A({className:X,style:null==$?void 0:$.affixWrapper,onClick:function(e){var t;null!==(t=_.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:_}),c&&t.createElement("span",{className:D("".concat(l,"-prefix"),null==E?void 0:E.prefix),style:null==$?void 0:$.prefix},c),B,U)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var G="".concat(l,"-group"),Y="".concat(G,"-addon"),Z="".concat(G,"-wrapper"),ee=D("".concat(l,"-wrapper"),G,null==k?void 0:k.wrapper,null==E?void 0:E.wrapper),te=D(Z,Q({},"".concat(Z,"-disabled"),g),null==k?void 0:k.group,null==E?void 0:E.groupWrapper);B=t.createElement(L,{className:te,ref:H},t.createElement(j,{className:ee},d&&t.createElement(R,{className:Y},d),B,p&&t.createElement(R,{className:Y},p)))}return t.cloneElement(B,{className:D(null===(o=B.props)||void 0===o?void 0:o.className,f)||null,style:J(J({},null===(r=B.props)||void 0===r?void 0:r.style),h),hidden:S})})),Rk=["show"];function _k(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===T(n)&&n.formatter?n.formatter:!!n);var o=e=J(J({},e),t),r=o.show,i=Lt(o,Rk);return J(J({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var zk=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Bk=c((function(e,n){var o=e.autoComplete,r=e.onChange,i=e.onFocus,s=e.onBlur,c=e.onPressEnter,d=e.onKeyDown,p=e.onKeyUp,f=e.prefixCls,h=void 0===f?"rc-input":f,m=e.disabled,v=e.htmlSize,b=e.className,y=e.maxLength,x=e.suffix,C=e.showCount,w=e.count,S=e.type,k=void 0===S?"text":S,E=e.classes,O=e.classNames,$=e.styles,N=e.onCompositionStart,M=e.onCompositionEnd,I=Lt(e,zk),P=bt(u(!1),2),L=P[0],j=P[1],T=a(!1),R=a(!1),_=a(null),z=a(null),B=function(e){_.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}(_.current,e)},H=bt(Si(e.defaultValue,{value:e.value}),2),F=H[0],W=H[1],V=null==F?"":String(F),K=bt(u(null),2),q=K[0],X=K[1],U=_k(w,C),G=U.max||y,Y=U.strategy(V),Z=!!G&&Y>G;g(n,(function(){var e;return{focus:B,blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=_.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=_.current)||void 0===e||e.select()},input:_.current,nativeElement:(null===(e=z.current)||void 0===e?void 0:e.nativeElement)||_.current}})),l((function(){R.current&&(R.current=!1),j((function(e){return(!e||!m)&&e}))}),[m]);var ee=function(e,t,n){var o,i,a=t;if(!T.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&X([(null===(o=_.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=_.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;W(a),_.current&&Ak(_.current,e,r,a)};l((function(){var e;q&&(null===(e=_.current)||void 0===e||e.setSelectionRange.apply(e,lt(q)))}),[q]);var te,ne=function(e){ee(e,e.target.value,{source:"change"})},oe=function(e){T.current=!1,ee(e,e.currentTarget.value,{source:"compositionEnd"}),null==M||M(e)},re=function(e){c&&"Enter"===e.key&&!R.current&&(R.current=!0,c(e)),null==d||d(e)},ie=function(e){"Enter"===e.key&&(R.current=!1),null==p||p(e)},ae=function(e){j(!0),null==i||i(e)},se=function(e){R.current&&(R.current=!1),j(!1),null==s||s(e)},le=Z&&"".concat(h,"-out-of-range");return t.createElement(Tk,A({},I,{prefixCls:h,className:D(b,le),handleReset:function(e){W(""),B(),_.current&&Ak(_.current,e,r)},value:V,focused:L,triggerFocus:B,suffix:function(){var e=Number(G)>0;if(x||U.show){var n=U.showFormatter?U.showFormatter({value:V,count:Y,maxLength:G}):"".concat(Y).concat(e?" / ".concat(G):"");return t.createElement(t.Fragment,null,U.show&&t.createElement("span",{className:D("".concat(h,"-show-count-suffix"),Q({},"".concat(h,"-show-count-has-suffix"),!!x),null==O?void 0:O.count),style:J({},null==$?void 0:$.count)},n),x)}return null}(),disabled:m,classes:E,classNames:O,styles:$}),(te=rt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",A({autoComplete:o},te,{onChange:ne,onFocus:ae,onBlur:se,onKeyDown:re,onKeyUp:ie,className:D(h,Q({},"".concat(h,"-disabled"),m),null==O?void 0:O.input),style:null==$?void 0:$.input,ref:_,size:v,type:k,onCompositionStart:function(e){T.current=!0,null==N||N(e)},onCompositionEnd:oe}))))}));const Hk=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement($s,null)}),n};function Fk(e,t){const n=a([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return l((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var Wk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Vk=c(((e,n)=>{var o;const{prefixCls:i,bordered:s=!0,status:c,size:u,disabled:d,onBlur:p,onFocus:f,suffix:h,allowClear:g,addonAfter:m,addonBefore:v,className:b,style:y,styles:x,rootClassName:C,onChange:w,classNames:S,variant:k}=e,E=Wk(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:t}=zo("Input");t(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:$,input:N}=t.useContext(ai),M=O("input",i),I=a(null),P=qs(M),[L,j,A]=FC(M,P),{compactSize:T,compactItemClassnames:R}=Hl(M,$),_=Dl((e=>{var t;return null!==(t=null!=u?u:T)&&void 0!==t?t:e})),z=t.useContext(ci),B=null!=d?d:z,{status:H,hasFeedback:F,feedbackIcon:W}=r(Vp),V=am(H,c),K=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!F,q=a(K);if("production"!==process.env.NODE_ENV){const e=zo("Input");l((()=>{var t;K&&!q.current&&"production"!==process.env.NODE_ENV&&e(document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),q.current=K}),[K])}const X=Fk(I,!0),U=(F||h)&&t.createElement(t.Fragment,null,h,F&&W),G=Hk(null!=g?g:null==N?void 0:N.allowClear),[Y,Q]=mm("input",k,s);return L(t.createElement(Bk,Object.assign({ref:pe(n,I),prefixCls:M,autoComplete:null==N?void 0:N.autoComplete},E,{disabled:B,onBlur:e=>{X(),null==p||p(e)},onFocus:e=>{X(),null==f||f(e)},style:Object.assign(Object.assign({},null==N?void 0:N.style),y),styles:Object.assign(Object.assign({},null==N?void 0:N.styles),x),suffix:U,allowClear:G,className:D(b,C,A,P,R,null==N?void 0:N.className),onChange:e=>{X(),null==w||w(e)},addonBefore:v&&t.createElement(Xp,{form:!0,space:!0},v),addonAfter:m&&t.createElement(Xp,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},S),null==N?void 0:N.classNames),{input:D({[`${M}-sm`]:"small"===_,[`${M}-lg`]:"large"===_,[`${M}-rtl`]:"rtl"===$},null==S?void 0:S.input,null===(o=null==N?void 0:N.classNames)||void 0===o?void 0:o.input,j),variant:D({[`${M}-${Y}`]:Q},im(M,V)),affixWrapper:D({[`${M}-affix-wrapper-sm`]:"small"===_,[`${M}-affix-wrapper-lg`]:"large"===_,[`${M}-affix-wrapper-rtl`]:"rtl"===$},j),wrapper:D({[`${M}-group-rtl`]:"rtl"===$},j),groupWrapper:D({[`${M}-group-wrapper-sm`]:"small"===_,[`${M}-group-wrapper-lg`]:"large"===_,[`${M}-group-wrapper-rtl`]:"rtl"===$,[`${M}-group-wrapper-${Y}`]:Q},im(`${M}-group-wrapper`,V,F),j)})})))}));"production"!==process.env.NODE_ENV&&(Vk.displayName="Input");const Kk=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 qk=Zi(["Input","OTP"],(e=>{const t=$i(e,mC(e));return[Kk(t)]}),vC),Xk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Uk=e.forwardRef(((t,n)=>{const{value:o,onChange:r,onActiveChange:i,index:a,mask:s}=t,l=Xk(t,["value","onChange","onActiveChange","index","mask"]),c=o&&"string"==typeof s?s:o,u=e.useRef(null);e.useImperativeHandle(n,(()=>u.current));const d=()=>{ht((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return e.createElement(Vk,Object.assign({type:!0===s?"password":"text"},l,{ref:u,value:c,onInput:e=>{r(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||o||i(a-1),d()},onMouseDown:d,onMouseUp:d}))}));var Gk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Yk(e){return(e||"").split("")}const Qk=e.forwardRef(((t,n)=>{const{prefixCls:o,length:r=6,size:i,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:p,autoFocus:f,mask:h,type:g}=t,m=Gk(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type"]);if("production"!==process.env.NODE_ENV){const e=zo("Input.OTP");"production"!==process.env.NODE_ENV&&e(!("string"==typeof h&&h.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:v,direction:b}=e.useContext(ai),y=v("otp",o),x=zs(m,{aria:!0,data:!0,attr:!0}),C=qs(y),[w,S,k]=qk(y,C),E=Dl((e=>null!=i?i:e)),O=e.useContext(Vp),$=am(O.status,p),N=e.useMemo((()=>Object.assign(Object.assign({},O),{status:$,hasFeedback:!1,feedbackIcon:null})),[O,$]),M=e.useRef(null),I=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=I.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=I.current[t])||void 0===e||e.blur()},nativeElement:M.current})));const P=e=>c?c(e):e,[L,j]=e.useState(Yk(P(a||"")));e.useEffect((()=>{void 0!==s&&j(Yk(s))}),[s]);const A=xi((e=>{j(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>L[t]!==e))&&l(e.join(""))})),T=xi(((e,t)=>{let n=lt(L);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Yk(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=P(n.map((e=>e||" ")).join(""));return n=Yk(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),R=(e,t)=>{var n;const o=T(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=I.current[i])||void 0===n||n.focus()),A(o)},_=e=>{var t;null===(t=I.current[e])||void 0===t||t.focus()},z={variant:u,disabled:d,status:$,mask:h,type:g};return w(e.createElement("div",Object.assign({},x,{ref:M,className:D(y,{[`${y}-sm`]:"small"===E,[`${y}-lg`]:"large"===E,[`${y}-rtl`]:"rtl"===b},k,S)}),e.createElement(Vp.Provider,{value:N},Array.from({length:r}).map(((t,n)=>{const o=`otp-${n}`,r=L[n]||"";return e.createElement(Uk,Object.assign({ref:e=>{I.current[n]=e},key:o,index:n,size:E,htmlSize:1,className:`${y}-input`,onChange:R,value:r,onActiveChange:_,autoFocus:0===n&&f},z))})))))}));var Zk={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"},Jk=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:Zk}))},eE=e.forwardRef(Jk);"production"!==process.env.NODE_ENV&&(eE.displayName="EyeInvisibleOutlined");var tE={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"},nE=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:tE}))},oE=e.forwardRef(nE);"production"!==process.env.NODE_ENV&&(oE.displayName="EyeOutlined");var rE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const iE=t=>t?e.createElement(oE,null):e.createElement(eE,null),aE={click:"onClick",hover:"onMouseOver"},sE=e.forwardRef(((t,n)=>{const{disabled:o,action:r="click",visibilityToggle:i=!0,iconRender:s=iE}=t,l=e.useContext(ci),c=null!=o?o:l,d="object"==typeof i&&void 0!==i.visible,[p,f]=u((()=>!!d&&i.visible)),h=a(null);e.useEffect((()=>{d&&f(i.visible)}),[d,i]);const g=Fk(h),m=()=>{c||(p&&g(),f((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:v,prefixCls:b,inputPrefixCls:y,size:x}=t,C=rE(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=e.useContext(ai),S=w("input",y),k=w("input-password",b),E=i&&(t=>{const n=aE[r]||"",o=s(p),i={[n]:m,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(o)?o:e.createElement("span",null,o),i)})(k),O=D(k,v,{[`${k}-${x}`]:!!x}),$=Object.assign(Object.assign({},rt(C,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:O,prefixCls:S,suffix:E});return x&&($.size=x),e.createElement(Vk,Object.assign({ref:pe(n,h)},$))}));"production"!==process.env.NODE_ENV&&(sE.displayName="Input.Password");var lE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const cE=e.forwardRef(((t,n)=>{const{prefixCls:o,inputPrefixCls:r,className:i,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:f,onCompositionStart:h,onCompositionEnd:g}=t,m=lE(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=e.useContext(ai),y=e.useRef(!1),x=v("input-search",o),C=v("input",r),{compactSize:w}=Hl(x,b),S=Dl((e=>{var t;return null!==(t=null!=a?a:w)&&void 0!==t?t:e})),k=e.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;p&&p(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},$="boolean"==typeof l?e.createElement(Xm,null):null,N=`${x}-button`;let M;const I=l||{},P=I.type&&!0===I.type.__ANT_BUTTON;M=P||"button"===I.type?Fs(I,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==I?void 0:I.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},P?{className:N,size:S}:{})):e.createElement(id,{className:N,type:l?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:$},l),c&&(M=[M,Fs(c,{key:"addonAfter"})]);const L=D(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!l},i);return e.createElement(Vk,Object.assign({ref:pe(k,n),onPressEnter:e=>{y.current||u||O(e)}},m,{size:S,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==g||g(e)},prefixCls:C,addonAfter:M,suffix:s,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),null==f||f(e)},className:L,disabled:d}))}));"production"!==process.env.NODE_ENV&&(cE.displayName="Search");var uE,dE=["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"],pE={};function fE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;uE||((uE=document.createElement("textarea")).setAttribute("tab-index","-1"),uE.setAttribute("aria-hidden","true"),uE.setAttribute("name","hiddenTextarea"),document.body.appendChild(uE)),e.getAttribute("wrap")?uE.setAttribute("wrap",e.getAttribute("wrap")):uE.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&pE[n])return pE[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:dE.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(pE[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;uE.setAttribute("style","".concat(l,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),uE.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,p=uE.scrollHeight;if("border-box"===s?p+=a:"content-box"===s&&(p-=i),null!==n||null!==o){uE.value=" ";var f=uE.scrollHeight-i;null!==n&&(u=f*n,"border-box"===s&&(u=u+i+a),p=Math.max(u,p)),null!==o&&(d=f*o,"border-box"===s&&(d=d+i+a),c=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var hE=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],gE=e.forwardRef((function(t,n){var o=t,r=o.prefixCls,i=o.defaultValue,a=o.value,s=o.autoSize,l=o.onResize,c=o.className,u=o.style,d=o.disabled,p=o.onChange,f=o.onInternalAutoSize,h=Lt(o,hE),g=bt(Si(i,{value:a,postState:function(e){return null!=e?e:""}}),2),m=g[0],v=g[1],b=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=bt(e.useMemo((function(){return s&&"object"===T(s)?[s.minRows,s.maxRows]:[]}),[s]),2),x=y[0],C=y[1],w=!!s,S=bt(e.useState(2),2),k=S[0],E=S[1],O=bt(e.useState(),2),$=O[0],N=O[1],M=function(){E(0),"test"===process.env.NODE_ENV&&(null==f||f())};on((function(){w&&M()}),[a,x,C,w]),on((function(){if(0===k)E(1);else if(1===k){var e=fE(b.current,!1,x,C);E(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=o}}catch(e){}}()}),[k]);var I=e.useRef(),P=function(){ht.cancel(I.current)};e.useEffect((function(){return P}),[]);var L=w?$:null,j=J(J({},u),L);return 0!==k&&1!==k||(j.overflowY="hidden",j.overflowX="hidden"),e.createElement(ot,{onResize:function(e){2===k&&(null==l||l(e),s&&(P(),I.current=ht((function(){M()}))))},disabled:!(s||l)},e.createElement("textarea",A({},h,{ref:b,style:j,className:D(r,c,Q({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:function(e){v(e.target.value),null==p||p(e)}})))})),mE=["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"],vE=t.forwardRef((function(e,n){var o,r=e.defaultValue,i=e.value,s=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,p=e.maxLength,f=e.onCompositionStart,h=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,b=void 0===v?"rc-textarea":v,y=e.showCount,x=e.count,C=e.className,w=e.style,S=e.disabled,k=e.hidden,E=e.classNames,O=e.styles,$=e.onResize,N=e.onClear,M=e.onPressEnter,I=e.readOnly,P=e.autoSize,L=e.onKeyDown,j=Lt(e,mE),T=bt(Si(r,{value:i,defaultValue:r}),2),R=T[0],_=T[1],z=null==R?"":String(R),B=bt(t.useState(!1),2),H=B[0],F=B[1],W=t.useRef(!1),V=bt(t.useState(null),2),K=V[0],q=V[1],X=a(null),U=a(null),G=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},Y=function(){G().focus()};g(n,(function(){var e;return{resizableTextArea:U.current,focus:Y,blur:function(){G().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||G()}})),l((function(){F((function(e){return!S&&e}))}),[S]);var Z=bt(t.useState(null),2),ee=Z[0],te=Z[1];t.useEffect((function(){var e;ee&&(e=G()).setSelectionRange.apply(e,lt(ee))}),[ee]);var ne,oe=_k(x,y),re=null!==(o=oe.max)&&void 0!==o?o:p,ie=Number(re)>0,ae=oe.strategy(z),se=!!re&&ae>re,le=function(e,t){var n=t;!W.current&&oe.exceedFormatter&&oe.max&&oe.strategy(t)>oe.max&&t!==(n=oe.exceedFormatter(t,{max:oe.max}))&&te([G().selectionStart||0,G().selectionEnd||0]),_(n),Ak(e.currentTarget,e,u,n)},ce=m;oe.show&&(ne=oe.showFormatter?oe.showFormatter({value:z,count:ae,maxLength:re}):"".concat(ae).concat(ie?" / ".concat(re):""),ce=t.createElement(t.Fragment,null,ce,t.createElement("span",{className:D("".concat(b,"-data-count"),null==E?void 0:E.count),style:null==O?void 0:O.count},ne)));var ue=!P&&!y&&!d;return t.createElement(Tk,{ref:X,value:z,allowClear:d,handleReset:function(e){_(""),Y(),Ak(G(),e,u)},suffix:ce,prefixCls:b,classNames:J(J({},E),{},{affixWrapper:D(null==E?void 0:E.affixWrapper,Q(Q({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),d))}),disabled:S,focused:H,className:D(C,se&&"".concat(b,"-out-of-range")),style:J(J({},w),K&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:k,readOnly:I,onClear:N},t.createElement(gE,A({},j,{autoSize:P,maxLength:p,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null==L||L(e)},onChange:function(e){le(e,e.target.value)},onFocus:function(e){F(!0),null==s||s(e)},onBlur:function(e){F(!1),null==c||c(e)},onCompositionStart:function(e){W.current=!0,null==f||f(e)},onCompositionEnd:function(e){W.current=!1,le(e,e.currentTarget.value),null==h||h(e)},className:D(null==E?void 0:E.textarea),style:J(J({},null==O?void 0:O.textarea),{},{resize:null==w?void 0:w.resize}),disabled:S,prefixCls:b,onResize:function(e){var t;null==$||$(e),null!==(t=G())&&void 0!==t&&t.style.height&&q(!0)},ref:U,readOnly:I})))})),bE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const yE=c(((t,n)=>{var o,r;const{prefixCls:i,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:p,className:f,style:h,styles:g,variant:m}=t,v=bE(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if("production"!==process.env.NODE_ENV){const{deprecated:e}=zo("TextArea");e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:b,direction:y,textArea:x}=e.useContext(ai),C=Dl(s),w=e.useContext(ci),S=null!=l?l:w,{status:k,hasFeedback:E,feedbackIcon:O}=e.useContext(Vp),$=am(k,c),N=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}}));const M=b("input",i),I=qs(M),[P,L,j]=FC(M,I),[A,T]=mm("textArea",m,a),R=Hk(null!=u?u:null==x?void 0:x.allowClear);return P(e.createElement(vE,Object.assign({autoComplete:null==x?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},null==x?void 0:x.style),h),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),g),disabled:S,allowClear:R,className:D(j,I,f,p,null==x?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),null==x?void 0:x.classNames),{textarea:D({[`${M}-sm`]:"small"===C,[`${M}-lg`]:"large"===C},L,null==d?void 0:d.textarea,null===(o=null==x?void 0:x.classNames)||void 0===o?void 0:o.textarea),variant:D({[`${M}-${A}`]:T},im(M,$)),affixWrapper:D(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:"rtl"===y,[`${M}-affix-wrapper-sm`]:"small"===C,[`${M}-affix-wrapper-lg`]:"large"===C,[`${M}-textarea-show-count`]:t.showCount||(null===(r=t.count)||void 0===r?void 0:r.show)},L)}),prefixCls:M,suffix:E&&e.createElement("span",{className:`${M}-textarea-suffix`},O),ref:N})))})),xE=Vk;function CE(e){return["small","middle","large"].includes(e)}function wE(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}xE.Group=t=>{const{getPrefixCls:n,direction:o}=r(ai),{prefixCls:i,className:a}=t,s=n("input-group",i),l=n("input"),[c,u]=FC(l),p=D(s,{[`${s}-lg`]:"large"===t.size,[`${s}-sm`]:"small"===t.size,[`${s}-compact`]:t.compact,[`${s}-rtl`]:"rtl"===o},u,a),f=r(Vp),h=d((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);if("production"!==process.env.NODE_ENV){zo("Input.Group").deprecated(!1,"Input.Group","Space.Compact")}return c(e.createElement("span",{className:p,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(Vp.Provider,{value:h},t.children)))},xE.Search=cE,xE.TextArea=yE,xE.Password=sE,xE.OTP=Qk;const SE=t.createContext({latestIndex:0}),kE=SE.Provider,EE=t=>{let{className:n,index:o,children:r,split:i,style:a}=t;const{latestIndex:s}=e.useContext(SE);return null==r?null:e.createElement(e.Fragment,null,e.createElement("div",{className:n,style:a},r),o<s&&i&&e.createElement("span",{className:`${n}-split`},i))};var OE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const $E=e.forwardRef(((t,n)=>{var o,r,i;const{getPrefixCls:a,space:s,direction:l}=e.useContext(ai),{size:c=(null!==(o=null==s?void 0:s.size)&&void 0!==o?o:"small"),align:u,className:d,rootClassName:p,children:f,direction:h="horizontal",prefixCls:g,split:m,style:v,wrap:b=!1,classNames:y,styles:x}=t,C=OE(t,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,S]=Array.isArray(c)?c:[c,c],k=CE(S),E=CE(w),O=wE(S),$=wE(w),N=H(f,{keepEmpty:!0}),M=void 0===u&&"horizontal"===h?"center":u,I=a("space",g),[P,L,j]=_l(I),A=D(I,null==s?void 0:s.className,L,`${I}-${h}`,{[`${I}-rtl`]:"rtl"===l,[`${I}-align-${M}`]:M,[`${I}-gap-row-${S}`]:k,[`${I}-gap-col-${w}`]:E},d,p,j),T=D(`${I}-item`,null!==(r=null==y?void 0:y.item)&&void 0!==r?r:null===(i=null==s?void 0:s.classNames)||void 0===i?void 0:i.item);let R=0;const _=N.map(((t,n)=>{var o,r;null!=t&&(R=n);const i=(null==t?void 0:t.key)||`${T}-${n}`;return e.createElement(EE,{className:T,key:i,index:n,split:m,style:null!==(o=null==x?void 0:x.item)&&void 0!==o?o:null===(r=null==s?void 0:s.styles)||void 0===r?void 0:r.item},t)})),z=e.useMemo((()=>({latestIndex:R})),[R]);if(0===N.length)return null;const B={};return b&&(B.flexWrap="wrap"),!E&&$&&(B.columnGap=w),!k&&O&&(B.rowGap=S),P(e.createElement("div",Object.assign({ref:n,className:A,style:Object.assign(Object.assign(Object.assign({},B),null==s?void 0:s.style),v)},C),e.createElement(kE,{value:z},_)))})),NE=$E;NE.Compact=t=>{const{getPrefixCls:n,direction:o}=e.useContext(ai),{size:r,direction:i,block:a,prefixCls:s,className:l,rootClassName:c,children:u}=t,d=zl(t,["size","direction","block","prefixCls","className","rootClassName","children"]),p=Dl((e=>null!=r?r:e)),f=n("space-compact",s),[h,g]=_l(f),m=D(f,g,{[`${f}-rtl`]:"rtl"===o,[`${f}-block`]:a,[`${f}-vertical`]:"vertical"===i},l,c),v=e.useContext(Bl),b=H(u),y=e.useMemo((()=>b.map(((t,n)=>{const o=(null==t?void 0:t.key)||`${f}-item-${n}`;return e.createElement(Wl,{key:o,compactSize:p,compactDirection:i,isFirstItem:0===n&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:n===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},t)}))),[r,b,v]);return 0===b.length?null:h(e.createElement("div",Object.assign({className:m},d),y))},"production"!==process.env.NODE_ENV&&(NE.displayName="Space");var ME=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const IE=t=>{const{getPopupContainer:n,getPrefixCls:o,direction:r}=e.useContext(ai),{prefixCls:i,type:a="default",danger:s,disabled:l,loading:c,onClick:u,htmlType:d,children:p,className:f,menu:h,arrow:g,autoFocus:m,overlay:v,trigger:b,align:y,open:x,onOpenChange:C,placement:w,getPopupContainer:S,href:k,icon:E=e.createElement(cx,null),title:O,buttonsRender:$=e=>e,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:L,dropdownRender:j}=t,A=ME(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=o("dropdown",i),R=`${T}-button`,_={menu:h,arrow:g,autoFocus:m,align:y,disabled:l,trigger:l?[]:b,onOpenChange:C,getPopupContainer:S||n,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:P,destroyPopupOnHide:L,dropdownRender:j},{compactSize:z,compactItemClassnames:B}=Hl(T,r),H=D(R,B,f);"overlay"in t&&(_.overlay=v),"open"in t&&(_.open=x),_.placement="placement"in t?w:"rtl"===r?"bottomLeft":"bottomRight";const F=e.createElement(id,{type:a,danger:s,disabled:l,loading:c,onClick:u,htmlType:d,href:k,title:O},p),W=e.createElement(id,{type:a,danger:s,icon:E}),[V,K]=$([F,W]);return e.createElement(NE.Compact,Object.assign({className:H,size:z,block:!0},A),V,e.createElement(Tx,Object.assign({},_),K))};IE.__ANT_BUTTON=!0;const PE=Tx;PE.Button=IE;const LE=t.createContext(void 0),{Provider:jE}=LE;var DE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},AE=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:DE}))},TE=e.forwardRef(AE);"production"!==process.env.NODE_ENV&&(TE.displayName="FileTextOutlined");var RE=v((e=>{const{icon:n,description:o,prefixCls:r,className:i}=e,a=t.createElement("div",{className:`${r}-icon`},t.createElement(TE,null));return t.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:D(i,`${r}-content`)},n||o?t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${r}-icon`},n),o&&t.createElement("div",{className:`${r}-description`},o)):a)}));const _E=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),zE=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r,calc:i}=e,a=new Eo("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${Qt(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new Eo("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${Qt(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),l=new Eo("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${i(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new Eo("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${i(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),u=new Eo("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${i(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new Eo("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${i(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0}}),p=new Eo("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${Qt(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new Eo("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${Qt(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),h=`${t}-group`;return[{[h]:{[`&${h}-top ${h}-wrap`]:zc(`${h}-wrap`,a,s,o,!0),[`&${h}-bottom ${h}-wrap`]:zc(`${h}-wrap`,u,d,o,!0),[`&${h}-left ${h}-wrap`]:zc(`${h}-wrap`,p,f,o,!0),[`&${h}-right ${h}-wrap`]:zc(`${h}-wrap`,l,c,o,!0)}},{[`${h}-wrap`]:{[`&${h}-wrap-enter, &${h}-wrap-appear`]:{opacity:0,animationTimingFunction:r},[`&${h}-wrap-leave`]:{opacity:1,animationTimingFunction:r}}}]},BE=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:s,floatButtonBodyPadding:l,zIndexPopupBase:c,calc:u}=e,d=`${n}-group`;return{[d]:Object.assign(Object.assign({},qi(e)),{zIndex:c,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:o,minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:i,[`${d}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${d}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${d}-top > ${d}-wrap`]:{flexDirection:"column",top:"auto",bottom:u(o).add(r).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:r,bottom:u(r).mul(-1).equal()}},[`${d}-bottom > ${d}-wrap`]:{flexDirection:"column",top:u(o).add(r).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:r,top:u(r).mul(-1).equal()}},[`${d}-right > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:u(o).add(r).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:r,height:"100%",left:{_skip_check_:!0,value:u(r).mul(-1).equal()}}},[`${d}-left > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:u(o).add(r).equal()},"&::after":{content:'""',position:"absolute",width:r,height:"100%",right:{_skip_check_:!0,value:u(r).mul(-1).equal()}}},[`${d}-circle`]:{gap:r,[`${d}-wrap`]:{gap:r}},[`${d}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${d}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:u(u(l).add(s)).mul(-1).equal(),insetInlineEnd:u(u(l).add(s)).mul(-1).equal()}}},[`${d}-wrap`]:{borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}},[`${d}-top > ${d}-wrap, ${d}-bottom > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-left > ${d}-wrap, ${d}-right > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderEndStartRadius:i},"&:last-child":{borderStartEndRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderInlineEnd:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-circle-shadow`]:{boxShadow:"none"},[`${d}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},HE=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:a,badgeOffset:s,dotOffsetInSquare:l,dotOffsetInCircle:c,zIndexPopupBase:u,calc:d}=e;return{[n]:Object.assign(Object.assign({},qi(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:u,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:d(s).mul(-1).equal(),insetInlineEnd:d(s).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${Qt(d(o).div(2).equal())} ${Qt(o)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:Qt(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:Qt(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var FE=Zi("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:a,fontSizeIcon:s,controlItemBgHover:l,paddingXXS:c,calc:u}=e,d=$i(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:a,floatButtonIconSize:u(s).mul(1.5).equal(),floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(o).sub(u(c).mul(2)).equal(),floatButtonBodyPadding:c,badgeOffset:u(c).mul(1.5).equal()});return[BE(d),HE(d),Fc(e),zE(d)]}),(e=>({dotOffsetInCircle:_E(e.controlHeightLG/2),dotOffsetInSquare:_E(e.borderRadiusLG)}))),WE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const VE="float-btn",KE=t.forwardRef(((e,n)=>{const{prefixCls:o,className:i,rootClassName:a,style:s,type:l="default",shape:c="circle",icon:u,description:p,tooltip:f,htmlType:h="button",badge:g={}}=e,m=WE(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:v,direction:b}=r(ai),y=r(LE),x=v(VE,o),C=qs(x),[w,S,k]=FE(x,C),E=D(S,k,C,x,i,a,`${x}-${l}`,`${x}-${y||c}`,{[`${x}-rtl`]:"rtl"===b}),[O]=tl("FloatButton",null==s?void 0:s.zIndex),$=Object.assign(Object.assign({},s),{zIndex:O}),N=rt(g,["title","children","status","text"]),M=d((()=>({prefixCls:x,description:p,icon:u,type:l})),[x,p,u,l]);let I=t.createElement("div",{className:`${x}-body`},t.createElement(RE,Object.assign({},M)));if("badge"in e&&(I=t.createElement(gb,Object.assign({},N),I)),"tooltip"in e&&(I=t.createElement(Rv,{title:f,placement:"rtl"===b?"right":"left"},I)),"production"!==process.env.NODE_ENV){const e=zo("FloatButton");"production"!==process.env.NODE_ENV&&e(!("circle"===c&&p),"usage","supported only when `shape` is `square`. Due to narrow space for text, short sentence is recommended.")}return w(e.href?t.createElement("a",Object.assign({ref:n},m,{className:E,style:$}),I):t.createElement("button",Object.assign({ref:n},m,{className:E,style:$,type:h}),I))})),qE=KE;"production"!==process.env.NODE_ENV&&(qE.displayName="FloatButton");var XE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const UE=t.forwardRef(((e,n)=>{const{prefixCls:o,className:i,type:a="default",shape:s="circle",visibilityHeight:c=400,icon:d=t.createElement(Yv,null),target:p,onClick:f,duration:h=450}=e,g=XE(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[m,v]=u(0===c),b=t.useRef(null);t.useImperativeHandle(n,(()=>({nativeElement:b.current})));const y=()=>{var e;return(null===(e=b.current)||void 0===e?void 0:e.ownerDocument)||window},x=gt((e=>{const t=Vs(e.target);v(t>=c)}));l((()=>{const e=(p||y)();return x({target:e}),null==e||e.addEventListener("scroll",x),()=>{x.cancel(),null==e||e.removeEventListener("scroll",x)}}),[p]);const C=e=>{Ks(0,{getContainer:p||y,duration:h}),null==f||f(e)},{getPrefixCls:w}=r(ai),S=w(VE,o),k=w(),E=r(LE)||s,O=Object.assign({prefixCls:S,icon:d,type:a,shape:E},g);return t.createElement(_a,{visible:m,motionName:`${k}-fade`},((e,n)=>{let{className:o}=e;return t.createElement(qE,Object.assign({ref:pe(b,n)},O,{onClick:C,className:D(i,o)}))}))}));"production"!==process.env.NODE_ENV&&(UE.displayName="BackTop");var GE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const YE=e=>{var n;const{prefixCls:o,className:r,style:i,shape:a="circle",type:s="default",placement:l="top",icon:c=t.createElement(TE,null),closeIcon:u,description:d,trigger:p,children:f,onOpenChange:h,open:g,onClick:m}=e,v=GE(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:b,getPrefixCls:y,floatButtonGroup:x}=t.useContext(ai),C=null!==(n=null!=u?u:null==x?void 0:x.closeIcon)&&void 0!==n?n:t.createElement(Is,null),w=y(VE,o),S=qs(w),[k,E,O]=FE(w,S),$=`${w}-group`,N=p&&["click","hover"].includes(p),M=l&&["top","left","right","bottom"].includes(l),I=D($,E,O,S,r,{[`${$}-rtl`]:"rtl"===b,[`${$}-${a}`]:a,[`${$}-${a}-shadow`]:!N,[`${$}-${l}`]:N&&M}),[P]=tl("FloatButton",null==i?void 0:i.zIndex),L=Object.assign(Object.assign({},i),{zIndex:P}),j=D(E,`${$}-wrap`),[A,T]=Si(!1,{value:g}),R=t.useRef(null),_="hover"===p,z="click"===p,B=xi((e=>{A!==e&&(T(e),null==h||h(e))}));if(t.useEffect((()=>{if(z){const e=e=>{var t;(null===(t=R.current)||void 0===t?void 0:t.contains(e.target))||B(!1)};return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}}),[z]),"production"!==process.env.NODE_ENV){const t=zo("FloatButton.Group");"production"!==process.env.NODE_ENV&&t(!("open"in e)||!!p,"usage","`open` need to be used together with `trigger`")}return k(t.createElement(jE,{value:a},t.createElement("div",{ref:R,className:I,style:L,onMouseEnter:()=>{_&&B(!0)},onMouseLeave:()=>{_&&B(!1)}},N?t.createElement(t.Fragment,null,t.createElement(_a,{visible:A,motionName:`${$}-wrap`},(e=>{let{className:n}=e;return t.createElement("div",{className:D(n,j)},f)})),t.createElement(qE,Object.assign({type:s,icon:A?C:c,description:d,"aria-label":e["aria-label"],className:`${$}-trigger`,onClick:e=>{z&&B(!A),null==m||m(e)}},v))):f)))};var QE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ZE=t=>{var{backTop:n}=t,o=QE(t,["backTop"]);return n?e.createElement(UE,Object.assign({},o,{visibilityHeight:0})):e.createElement(qE,Object.assign({},o))};function JE(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function eO(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function tO(e,t,n,o){var r=x.unstable_batchedUpdates?function(e){x.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}qE.BackTop=UE,qE.Group=YE,qE._InternalPanelDoNotUseOrYouWillBeFired=t=>{var{className:n,items:o}=t,r=QE(t,["className","items"]);const{prefixCls:i}=r,{getPrefixCls:a}=e.useContext(ai),s=`${a(VE,i)}-pure`;return o?e.createElement(YE,Object.assign({className:D(n,s)},r),o.map(((t,n)=>e.createElement(ZE,Object.assign({key:n},t))))):e.createElement(ZE,Object.assign({className:D(n,s)},r))};var nO=e.createContext(null),oO=function(t){var n=t.visible,o=t.maskTransitionName,i=t.getContainer,a=t.prefixCls,s=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,p=t.current,f=t.transform,h=t.count,g=t.scale,m=t.minScale,v=t.maxScale,b=t.closeIcon,y=t.onActive,x=t.onClose,C=t.onZoomIn,w=t.onZoomOut,S=t.onRotateRight,k=t.onRotateLeft,E=t.onFlipX,O=t.onFlipY,$=t.onReset,N=t.toolbarRender,M=t.zIndex,I=t.image,P=r(nO),L=l.rotateLeft,j=l.rotateRight,A=l.zoomIn,T=l.zoomOut,R=l.close,_=l.left,z=l.right,B=l.flipX,H=l.flipY,F="".concat(a,"-operations-operation");e.useEffect((function(){var e=function(e){e.keyCode===Xs.ESC&&x()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var W=function(e,t){e.preventDefault(),e.stopPropagation(),y(t)},V=e.useCallback((function(t){var n=t.type,o=t.disabled,r=t.onClick,i=t.icon;return e.createElement("div",{key:n,className:D(F,"".concat(a,"-operations-operation-").concat(n),Q({},"".concat(a,"-operations-operation-disabled"),!!o)),onClick:r},i)}),[F,a]),K=u?V({icon:_,onClick:function(e){return W(e,-1)},type:"prev",disabled:0===p}):void 0,q=u?V({icon:z,onClick:function(e){return W(e,1)},type:"next",disabled:p===h-1}):void 0,X=V({icon:H,onClick:O,type:"flipY"}),U=V({icon:B,onClick:E,type:"flipX"}),G=V({icon:L,onClick:k,type:"rotateLeft"}),Y=V({icon:j,onClick:S,type:"rotateRight"}),Z=V({icon:T,onClick:w,type:"zoomOut",disabled:g<=m}),ee=V({icon:A,onClick:C,type:"zoomIn",disabled:g===v}),te=e.createElement("div",{className:"".concat(a,"-operations")},X,U,G,Y,Z,ee);return e.createElement(_a,{visible:n,motionName:o},(function(t){var n=t.className,o=t.style;return e.createElement(wd,{open:!0,getContainer:null!=i?i:document.body},e.createElement("div",{className:D("".concat(a,"-operations-wrapper"),n,s),style:J(J({},o),{},{zIndex:M})},null===b?null:e.createElement("button",{className:"".concat(a,"-close"),onClick:x},b||R),u&&e.createElement(e.Fragment,null,e.createElement("div",{className:D("".concat(a,"-switch-left"),Q({},"".concat(a,"-switch-left-disabled"),0===p)),onClick:function(e){return W(e,-1)}},_),e.createElement("div",{className:D("".concat(a,"-switch-right"),Q({},"".concat(a,"-switch-right-disabled"),p===h-1)),onClick:function(e){return W(e,1)}},z)),e.createElement("div",{className:"".concat(a,"-footer")},d&&e.createElement("div",{className:"".concat(a,"-progress")},c?c(p+1,h):"".concat(p+1," / ").concat(h)),N?N(te,J(J({icons:{prevIcon:K,nextIcon:q,flipYIcon:X,flipXIcon:U,rotateLeftIcon:G,rotateRightIcon:Y,zoomOutIcon:Z,zoomInIcon:ee},actions:{onActive:y,onFlipY:O,onFlipX:E,onRotateLeft:k,onRotateRight:S,onZoomOut:w,onZoomIn:C,onReset:$,onClose:x},transform:f},P?{current:p,total:h}:{}),{},{image:I})):te)))}))},rO={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function iO(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return Q({},e,i);if(t<0&&r<o)return Q({},e,-i)}else if(t<0||r>o)return Q({},e,t<0?i:-i);return{}}function aO(e,t,n,o){var r=JE(),i=r.width,a=r.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=J(J({},iO("x",n,e,i)),iO("y",o,t,a))),s}function sO(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,r=bt(u(n?"loading":"normal"),2),i=r[0],s=r[1],c=a(!1),d="error"===i;l((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[t]),l((function(){n&&!c.current?s("loading"):d&&s("normal")}),[t]);var p=function(){s("normal")};return[function(e){c.current=!1,"loading"===i&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,p())},d&&o?{src:o}:{onLoad:p,src:t},i]}function lO(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function cO(e,t,n,o,r,i,s){var c=r.rotate,d=r.scale,p=r.x,f=r.y,h=bt(u(!1),2),g=h[0],m=h[1],v=a({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function(e){v.current=J(J({},v.current),e)};return l((function(){var e;return n&&t&&(e=tO(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:g,onTouchStart:function(e){if(t){e.stopPropagation(),m(!0);var n=e.touches,o=void 0===n?[]:n;o.length>1?b({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):b({point1:{x:o[0].clientX-p,y:o[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=v.current,r=o.point1,a=o.point2,l=o.eventType;if(n.length>1&&"touchZoom"===l){var c={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,o){var r=lO(e,n),i=lO(t,o);if(0===r&&0===i)return[e.x,e.y];var a=r/(r+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(r,a,c,u),p=bt(d,2),f=p[0],h=p[1],g=lO(c,u)/lO(r,a);s(g,"touchZoom",f,h,!0),b({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(i({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),b({eventType:"move"}))},onTouchEnd:function(){if(n){if(g&&m(!1),b({eventType:"none"}),o>d)return i({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*d,r=e.current.offsetHeight*d,a=e.current.getBoundingClientRect(),s=a.left,l=a.top,u=c%180!=0,p=aO(u?r:t,u?t:r,s,l);p&&i(J({},p),"dragRebound")}}}}var uO=["fallback","src","imgRef"],dO=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],pO=function(e){var n=e.fallback,o=e.src,r=e.imgRef,i=Lt(e,uO),a=bt(sO({src:o,fallback:n}),2),s=a[0],l=a[1];return t.createElement("img",A({ref:function(e){r.current=e,s(e)}},i,l))},fO=function(e){var n=e.prefixCls,o=e.src,i=e.alt,s=e.imageInfo,c=e.fallback,d=e.movable,p=void 0===d||d,f=e.onClose,h=e.visible,g=e.icons,m=void 0===g?{}:g,v=e.rootClassName,b=e.closeIcon,y=e.getContainer,x=e.current,C=void 0===x?0:x,w=e.count,S=void 0===w?1:w,k=e.countRender,E=e.scaleStep,O=void 0===E?.5:E,$=e.minScale,N=void 0===$?1:$,M=e.maxScale,I=void 0===M?50:M,P=e.transitionName,L=void 0===P?"zoom":P,j=e.maskTransitionName,T=void 0===j?"fade":j,R=e.imageRender,_=e.imgCommonProps,z=e.toolbarRender,B=e.onTransform,H=e.onChange,F=Lt(e,dO),W=a(),K=r(nO),q=K&&S>1,X=K&&S>=1,U=bt(u(!0),2),G=U[0],Y=U[1],Z=function(e,t,n,o){var r=a(null),i=a([]),s=bt(u(rO),2),l=s[0],c=s[1],d=function(e,t){null===r.current&&(i.current=[],r.current=ht((function(){c((function(e){var n=e;return i.current.forEach((function(e){n=J(J({},n),e)})),r.current=null,null==o||o({transform:n,action:t}),n}))}))),i.current.push(J(J({},l),e))};return{transform:l,resetTransform:function(e){c(rO),jt(rO,l)||null==o||o({transform:rO,action:e})},updateTransform:d,dispatchZoomChange:function(o,r,i,a,s){var c=e.current,u=c.width,p=c.height,f=c.offsetWidth,h=c.offsetHeight,g=c.offsetLeft,m=c.offsetTop,v=o,b=l.scale*o;b>n?(b=n,v=n/l.scale):b<t&&(v=(b=s?b:t)/l.scale);var y=null!=i?i:innerWidth/2,x=null!=a?a:innerHeight/2,C=v-1,w=C*u*.5,S=C*p*.5,k=C*(y-l.x-g),E=C*(x-l.y-m),O=l.x-(k-w),$=l.y-(E-S);if(o<1&&1===b){var N=f*b,M=h*b,I=JE(),P=I.width,L=I.height;N<=P&&M<=L&&(O=0,$=0)}d({x:O,y:$,scale:b},r)}}}(W,N,I,B),ee=Z.transform,te=Z.resetTransform,ne=Z.updateTransform,oe=Z.dispatchZoomChange,re=function(e,t,n,o,r,i,s){var c=r.rotate,d=r.scale,p=r.x,f=r.y,h=bt(u(!1),2),g=h[0],m=h[1],v=a({diffX:0,diffY:0,transformX:0,transformY:0}),b=function(e){n&&g&&i({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},y=function(){if(n&&g){m(!1);var t=v.current,o=t.transformX,r=t.transformY;if(p===o||f===r)return;var a=e.current.offsetWidth*d,s=e.current.offsetHeight*d,l=e.current.getBoundingClientRect(),u=l.left,h=l.top,b=c%180!=0,y=aO(b?s:a,b?a:s,u,h);y&&i(J({},y),"dragRebound")}};return l((function(){var e,n,o,r;if(t){o=tO(window,"mouseup",y,!1),r=tO(window,"mousemove",b,!1);try{window.top!==window.self&&(e=tO(window.top,"mouseup",y,!1),n=tO(window.top,"mousemove",b,!1))}catch(e){V(!1,"[rc-image] ".concat(e))}}return function(){var t,i,a,s;null===(t=o)||void 0===t||t.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(s=n)||void 0===s||s.remove()}}),[n,g,p,f,c,t]),{isMoving:g,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-p,diffY:e.pageY-f,transformX:p,transformY:f},m(!0))},onMouseMove:b,onMouseUp:y,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),r=1+Math.min(t,1)*o;e.deltaY>0&&(r=1/r),s(r,"wheel",e.clientX,e.clientY)}}}}(W,p,h,O,ee,ne,oe),ie=re.isMoving,ae=re.onMouseDown,se=re.onWheel,le=cO(W,p,h,N,ee,ne,oe),ce=le.isTouching,ue=le.onTouchStart,de=le.onTouchMove,pe=le.onTouchEnd,fe=ee.rotate,he=ee.scale,ge=D(Q({},"".concat(n,"-moving"),ie));l((function(){G||Y(!0)}),[G]);var me=function(e){var t=C+e;!Number.isInteger(t)||t<0||t>S-1||(Y(!1),te(e<0?"prev":"next"),null==H||H(t,C))},ve=function(e){h&&q&&(e.keyCode===Xs.LEFT?me(-1):e.keyCode===Xs.RIGHT&&me(1))};l((function(){var e=tO(window,"keydown",ve,!1);return function(){e.remove()}}),[h,q,C]);var be=t.createElement(pO,A({},_,{width:e.width,height:e.height,imgRef:W,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ee.x,"px, ").concat(ee.y,"px, 0) scale3d(").concat(ee.flipX?"-":"").concat(he,", ").concat(ee.flipY?"-":"").concat(he,", 1) rotate(").concat(fe,"deg)"),transitionDuration:(!G||ce)&&"0s"},fallback:c,src:o,onWheel:se,onMouseDown:ae,onDoubleClick:function(e){h&&(1!==he?ne({x:0,y:0,scale:1},"doubleClick"):oe(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:ue,onTouchMove:de,onTouchEnd:pe,onTouchCancel:pe})),ye=J({url:o,alt:i},s);return t.createElement(t.Fragment,null,t.createElement(Td,A({transitionName:L,maskTransitionName:T,closable:!1,keyboard:!0,prefixCls:n,onClose:f,visible:h,classNames:{wrapper:ge},rootClassName:v,getContainer:y},F,{afterClose:function(){te("close")}}),t.createElement("div",{className:"".concat(n,"-img-wrapper")},R?R(be,J({transform:ee,image:ye},K?{current:C}:{})):be)),t.createElement(oO,{visible:h,transform:ee,maskTransitionName:T,closeIcon:b,getContainer:y,prefixCls:n,rootClassName:v,icons:m,countRender:k,showSwitch:q,showProgress:X,current:C,count:S,scale:he,minScale:N,maxScale:I,toolbarRender:z,onActive:me,onZoomIn:function(){oe(1+O,"zoomIn")},onZoomOut:function(){oe(1/(1+O),"zoomOut")},onRotateRight:function(){ne({rotate:fe+90},"rotateRight")},onRotateLeft:function(){ne({rotate:fe-90},"rotateLeft")},onFlipX:function(){ne({flipX:!ee.flipX},"flipX")},onFlipY:function(){ne({flipY:!ee.flipY},"flipY")},onClose:f,onReset:function(){te("reset")},zIndex:void 0!==F.zIndex?F.zIndex+1:void 0,image:ye}))},hO=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var gO=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],mO=["src"],vO=0;var bO=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],yO=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],xO=function(t){var n=t.src,o=t.alt,i=t.onPreviewClose,a=t.prefixCls,s=void 0===a?"rc-image":a,l=t.previewPrefixCls,c=void 0===l?"".concat(s,"-preview"):l,p=t.placeholder,f=t.fallback,h=t.width,g=t.height,m=t.style,v=t.preview,b=void 0===v||v,y=t.className,x=t.onClick,C=t.onError,w=t.wrapperClassName,S=t.wrapperStyle,k=t.rootClassName,E=Lt(t,bO),O=p&&!0!==p,$="object"===T(b)?b:{},N=$.src,M=$.visible,I=void 0===M?void 0:M,P=$.onVisibleChange,L=void 0===P?i:P,j=$.getContainer,R=void 0===j?void 0:j,_=$.mask,z=$.maskClassName,B=$.movable,H=$.icons,F=$.scaleStep,W=$.minScale,V=$.maxScale,K=$.imageRender,q=$.toolbarRender,X=Lt($,yO),U=null!=N?N:n,G=bt(Si(!!I,{value:I,onChange:L}),2),Y=G[0],Z=G[1],ee=bt(sO({src:n,isCustomPlaceholder:O,fallback:f}),3),te=ee[0],ne=ee[1],oe=ee[2],re=bt(u(null),2),ie=re[0],ae=re[1],se=r(nO),le=!!b,ce=D(s,w,k,Q({},"".concat(s,"-error"),"error"===oe)),ue=d((function(){var e={};return hO.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}),hO.map((function(e){return t[e]}))),de=function(t,n){var o=bt(e.useState((function(){return String(vO+=1)})),1)[0],r=e.useContext(nO),i={data:n,canPreview:t};return e.useEffect((function(){if(r)return r.register(o,i)}),[]),e.useEffect((function(){r&&r.register(o,i)}),[t,n]),o}(le,d((function(){return J(J({},ue),{},{src:U})}),[U,ue]));return e.createElement(e.Fragment,null,e.createElement("div",A({},E,{className:ce,onClick:le?function(e){var t=eO(e.target),n=t.left,o=t.top;se?se.onPreview(de,U,n,o):(ae({x:n,y:o}),Z(!0)),null==x||x(e)}:x,style:J({width:h,height:g},S)}),e.createElement("img",A({},ue,{className:D("".concat(s,"-img"),Q({},"".concat(s,"-img-placeholder"),!0===p),y),style:J({height:g},m),ref:te},ne,{width:h,height:g,onError:C})),"loading"===oe&&e.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},p),_&&le&&e.createElement("div",{className:D("".concat(s,"-mask"),z),style:{display:"none"===(null==m?void 0:m.display)?"none":void 0}},_)),!se&&le&&e.createElement(fO,A({"aria-hidden":!Y,visible:Y,prefixCls:c,onClose:function(){Z(!1),ae(null)},mousePosition:ie,src:U,alt:o,imageInfo:{width:h,height:g},fallback:f,getContainer:R,icons:H,movable:B,scaleStep:F,minScale:W,maxScale:V,rootClassName:k,imageRender:K,imgCommonProps:ue,toolbarRender:q},X)))};xO.PreviewGroup=function(t){var n,o=t.previewPrefixCls,r=void 0===o?"rc-image-preview":o,i=t.children,a=t.icons,s=void 0===a?{}:a,l=t.items,c=t.preview,d=t.fallback,p="object"===T(c)?c:{},f=p.visible,h=p.onVisibleChange,g=p.getContainer,m=p.current,v=p.movable,b=p.minScale,y=p.maxScale,x=p.countRender,C=p.closeIcon,w=p.onChange,S=p.onTransform,k=p.toolbarRender,E=p.imageRender,O=Lt(p,gO),$=function(t){var n=bt(e.useState({}),2),o=n[0],r=n[1],i=e.useCallback((function(e,t){return r((function(n){return J(J({},n),{},Q({},e,t))})),function(){r((function(t){var n=J({},t);return delete n[e],n}))}}),[]);return[e.useMemo((function(){return t?t.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(lt(hO)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(o).reduce((function(e,t){var n=o[t],r=n.canPreview,i=n.data;return r&&e.push({data:i,id:t}),e}),[])}),[t,o]),i,!!t]}(l),N=bt($,3),M=N[0],I=N[1],P=N[2],L=bt(Si(0,{value:m}),2),j=L[0],D=L[1],R=bt(u(!1),2),_=R[0],z=R[1],B=(null===(n=M[j])||void 0===n?void 0:n.data)||{},H=B.src,F=Lt(B,mO),W=bt(Si(!!f,{value:f,onChange:function(e,t){null==h||h(e,t,j)}}),2),V=W[0],K=W[1],q=bt(u(null),2),X=q[0],U=q[1],G=e.useCallback((function(e,t,n,o){var r=P?M.findIndex((function(e){return e.data.src===t})):M.findIndex((function(t){return t.id===e}));D(r<0?0:r),K(!0),U({x:n,y:o}),z(!0)}),[M,P]);e.useEffect((function(){V?_||D(0):z(!1)}),[V]);var Y=e.useMemo((function(){return{register:I,onPreview:G}}),[I,G]);return e.createElement(nO.Provider,{value:Y},i,e.createElement(fO,A({"aria-hidden":!V,movable:v,visible:V,prefixCls:r,closeIcon:C,onClose:function(){K(!1),U(null)},mousePosition:X,imgCommonProps:F,src:H,fallback:d,icons:s,minScale:b,maxScale:y,getContainer:g,current:j,count:M.length,countRender:x,onTransform:S,toolbarRender:k,imageRender:E,onChange:function(e,t){D(e),null==w||w(e,t)}},O)))},"production"!==process.env.NODE_ENV&&(xO.displayName="Image");var CO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},wO=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:CO}))},SO=e.forwardRef(wO);"production"!==process.env.NODE_ENV&&(SO.displayName="RotateLeftOutlined");var kO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},EO=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:kO}))},OO=e.forwardRef(EO);"production"!==process.env.NODE_ENV&&(OO.displayName="RotateRightOutlined");var $O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},NO=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:$O}))},MO=e.forwardRef(NO);"production"!==process.env.NODE_ENV&&(MO.displayName="SwapOutlined");var IO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},PO=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:IO}))},LO=e.forwardRef(PO);"production"!==process.env.NODE_ENV&&(LO.displayName="ZoomInOutlined");var jO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},DO=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:jO}))},AO=e.forwardRef(DO);"production"!==process.env.NODE_ENV&&(AO.displayName="ZoomOutOutlined");const TO=e=>({position:e||"absolute",inset:0}),RO=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Xr("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ki),{padding:`0 ${Qt(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},_O=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,marginXL:r,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,p=new Xr(n).setAlpha(.1),f=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:d,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Qt(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},zO=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,s=new Xr(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},BO=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},TO()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},TO()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[_O(e),zO(e)]}]},HO=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},RO(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},TO())}}},FO=e=>{const{previewCls:t}=e;return{[`${t}-root`]:hu(e,"zoom"),"&":Fc(e,!0)}};var WO=Zi("Image",(e=>{const t=`${e.componentCls}-preview`,n=$i(e,{previewCls:t,modalMaskBg:new Xr("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[HO(n),BO(n),Mf($i(n,{componentCls:t})),FO(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Xr(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Xr(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Xr(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),VO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const KO={rotateLeft:e.createElement(SO,null),rotateRight:e.createElement(OO,null),zoomIn:e.createElement(LO,null),zoomOut:e.createElement(AO,null),close:e.createElement(Is,null),left:e.createElement(Uy,null),right:e.createElement(Oc,null),flipX:e.createElement(MO,null),flipY:e.createElement(MO,{rotate:90})};var qO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const XO=t=>{var n;const{prefixCls:o,preview:r,className:i,rootClassName:a,style:s}=t,l=qO(t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Xo,getPopupContainer:d,image:p}=e.useContext(ai),f=c("image",o),h=c(),g=u.Image||Xo.Image,m=qs(f),[v,b,y]=WO(f,m),x=D(a,b,y,m),C=D(i,b,null==p?void 0:p.className),[w]=tl("ImagePreview","object"==typeof r?r.zIndex:void 0),S=e.useMemo((()=>{var t;if(!1===r)return r;const n="object"==typeof r?r:{},{getContainer:o,closeIcon:i}=n,a=qO(n,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:e.createElement("div",{className:`${f}-mask-info`},e.createElement(oE,null),null==g?void 0:g.preview),icons:KO},a),{getContainer:null!=o?o:d,transitionName:Sl(h,"zoom",n.transitionName),maskTransitionName:Sl(h,"fade",n.maskTransitionName),zIndex:w,closeIcon:null!=i?i:null===(t=null==p?void 0:p.preview)||void 0===t?void 0:t.closeIcon})}),[r,g,null===(n=null==p?void 0:p.preview)||void 0===n?void 0:n.closeIcon]),k=Object.assign(Object.assign({},null==p?void 0:p.style),s);return v(e.createElement(xO,Object.assign({prefixCls:f,preview:S,rootClassName:x,className:C,style:k},l)))};XO.PreviewGroup=t=>{var{previewPrefixCls:n,preview:o}=t,r=VO(t,["previewPrefixCls","preview"]);const{getPrefixCls:i}=e.useContext(ai),a=i("image",n),s=`${a}-preview`,l=i(),c=qs(a),[u,d,p]=WO(a,c),[f]=tl("ImagePreview","object"==typeof o?o.zIndex:void 0),h=e.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},n=D(d,p,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:Sl(l,"zoom",t.transitionName),maskTransitionName:Sl(l,"fade",t.maskTransitionName),rootClassName:n,zIndex:f})}),[o]);return u(e.createElement(xO.PreviewGroup,Object.assign({preview:h,previewPrefixCls:s,icons:KO},r)))},"production"!==process.env.NODE_ENV&&(XO.displayName="Image");var UO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function GO(t){let{suffixCls:n,tagName:o,displayName:r}=t;return t=>{const i=e.forwardRef(((r,i)=>e.createElement(t,Object.assign({ref:i,suffixCls:n,tagName:o},r))));return"production"!==process.env.NODE_ENV&&(i.displayName=r),i}}const YO=e.forwardRef(((t,n)=>{const{prefixCls:o,suffixCls:r,className:i,tagName:a}=t,s=UO(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=e.useContext(ai),c=l("layout",o),[u,d,p]=Jy(c),f=r?`${c}-${r}`:c;return u(e.createElement(a,Object.assign({className:D(o||f,i,d,p),ref:n},s)))})),QO=e.forwardRef(((t,n)=>{const{direction:o}=e.useContext(ai),[r,i]=e.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:p}=t,f=rt(UO(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:g}=e.useContext(ai),m=h("layout",a),v=function(e,t,n){return"boolean"==typeof n?n:!!e.length||H(t).some((e=>e.type===ax))}(r,c,u),[b,y,x]=Jy(m),C=D(m,{[`${m}-has-sider`]:v,[`${m}-rtl`]:"rtl"===o},null==g?void 0:g.className,s,l,y,x),w=e.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(lt(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return b(e.createElement(Gy.Provider,{value:w},e.createElement(d,Object.assign({ref:n,className:C,style:Object.assign(Object.assign({},null==g?void 0:g.style),p)},f),c)))})),ZO=GO({tagName:"div",displayName:"Layout"})(QO),JO=GO({suffixCls:"header",tagName:"header",displayName:"Header"})(YO),e$=GO({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(YO),t$=GO({suffixCls:"content",tagName:"main",displayName:"Content"})(YO),n$=ZO;n$.Header=JO,n$.Footer=e$,n$.Content=t$,n$.Sider=ax,n$._InternalSiderContext=rx;const o$=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const o=n[t];void 0!==o&&(e[t]=o)}))}return e};var r$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},i$=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:r$}))},a$=e.forwardRef(i$);"production"!==process.env.NODE_ENV&&(a$.displayName="DoubleLeftOutlined");var s$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},l$=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:s$}))},c$=e.forwardRef(l$);"production"!==process.env.NODE_ENV&&(c$.displayName="DoubleRightOutlined");var u$={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},d$=["10","20","50","100"],p$=function(e){var n=e.pageSizeOptions,o=void 0===n?d$:n,r=e.locale,i=e.changeSize,a=e.pageSize,s=e.goButton,l=e.quickGo,c=e.rootPrefixCls,u=e.selectComponentClass,d=e.selectPrefixCls,p=e.disabled,f=e.buildOptionText,h=e.showSizeChanger,g=bt(t.useState(""),2),m=g[0],v=g[1],b=function(){return!m||Number.isNaN(m)?void 0:Number(m)},y="function"==typeof f?f:function(e){return"".concat(e," ").concat(r.items_per_page)},x=function(e){""!==m&&(e.keyCode!==Xs.ENTER&&"click"!==e.type||(v(""),null==l||l(b())))},C="".concat(c,"-options");if(!h&&!l)return null;var w=null,S=null,k=null;if(h&&u){var E="object"===T(h)?h:{},O=E.options,$=E.className,N=O?void 0:(o.some((function(e){return e.toString()===a.toString()}))?o:o.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,n){return t.createElement(u.Option,{key:n,value:e.toString()},y(e))}));w=t.createElement(u,A({disabled:p,prefixCls:d,showSearch:!1,optionLabelProp:O?"label":"children",popupMatchSelectWidth:!1,value:(a||o[0]).toString(),getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},"object"===T(h)?h:null,{className:D("".concat(C,"-size-changer"),$),options:O,onChange:function(e,t){var n;null==i||i(Number(e)),"object"===T(h)&&(null===(n=h.onChange)||void 0===n||n.call(h,e,t))}}),N)}return l&&(s&&(k="boolean"==typeof s?t.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:p,className:"".concat(C,"-quick-jumper-button")},r.jump_to_confirm):t.createElement("span",{onClick:x,onKeyUp:x},s)),S=t.createElement("div",{className:"".concat(C,"-quick-jumper")},r.jump_to,t.createElement("input",{disabled:p,type:"text",value:m,onChange:function(e){v(e.target.value)},onKeyUp:x,onBlur:function(e){s||""===m||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(b()))},"aria-label":r.page}),r.page,k)),t.createElement("li",{className:C},w,S)};"production"!==process.env.NODE_ENV&&(p$.displayName="Options");var f$=function(e){var n=e.rootPrefixCls,o=e.page,r=e.active,i=e.className,a=e.showTitle,s=e.onClick,l=e.onKeyPress,c=e.itemRender,u="".concat(n,"-item"),d=D(u,"".concat(u,"-").concat(o),Q(Q({},"".concat(u,"-active"),r),"".concat(u,"-disabled"),!o),i),p=c(o,"page",t.createElement("a",{rel:"nofollow"},o));return p?t.createElement("li",{title:a?String(o):null,className:d,onClick:function(){s(o)},onKeyDown:function(e){l(e,s,o)},tabIndex:0},p):null};"production"!==process.env.NODE_ENV&&(f$.displayName="Pager");var h$=function(e,t,n){return n};function g$(){}function m$(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function v$(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}var b$=function(e){var n=e.prefixCls,o=void 0===n?"rc-pagination":n,r=e.selectPrefixCls,i=void 0===r?"rc-select":r,a=e.className,s=e.selectComponentClass,c=e.current,u=e.defaultCurrent,d=void 0===u?1:u,p=e.total,f=void 0===p?0:p,h=e.pageSize,g=e.defaultPageSize,m=void 0===g?10:g,v=e.onChange,b=void 0===v?g$:v,y=e.hideOnSinglePage,x=e.align,C=e.showPrevNextJumpers,w=void 0===C||C,S=e.showQuickJumper,k=e.showLessItems,E=e.showTitle,O=void 0===E||E,$=e.onShowSizeChange,N=void 0===$?g$:$,M=e.locale,I=void 0===M?u$:M,P=e.style,L=e.totalBoundaryShowSizeChanger,j=void 0===L?50:L,R=e.disabled,_=e.simple,z=e.showTotal,B=e.showSizeChanger,H=void 0===B?f>j:B,F=e.pageSizeOptions,W=e.itemRender,V=void 0===W?h$:W,K=e.jumpPrevIcon,q=e.jumpNextIcon,X=e.prevIcon,G=e.nextIcon,Y=t.useRef(null),Z=bt(Si(10,{value:h,defaultValue:m}),2),ee=Z[0],te=Z[1],ne=bt(Si(1,{value:c,defaultValue:d,postState:function(e){return Math.max(1,Math.min(e,v$(void 0,ee,f)))}}),2),oe=ne[0],re=ne[1],ie=bt(t.useState(oe),2),ae=ie[0],se=ie[1];l((function(){se(oe)}),[oe]);var le=b!==g$,ce="current"in e;"production"!==process.env.NODE_ENV&&U(!ce||le,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ue=Math.max(1,oe-(k?3:5)),de=Math.min(v$(void 0,ee,f),oe+(k?3:5));function pe(n,r){var i=n||t.createElement("button",{type:"button","aria-label":r,className:"".concat(o,"-item-link")});return"function"==typeof n&&(i=t.createElement(n,J({},e))),i}function fe(e){var t=e.target.value,n=v$(void 0,ee,f);return""===t?t:Number.isNaN(Number(t))?ae:t>=n?n:Number(t)}var he=f>ee&&S;function ge(e){var t=fe(e);switch(t!==ae&&se(t),e.keyCode){case Xs.ENTER:me(t);break;case Xs.UP:me(t-1);break;case Xs.DOWN:me(t+1)}}function me(e){if(function(e){return m$(e)&&e!==oe&&m$(f)&&f>0}(e)&&!R){var t=v$(void 0,ee,f),n=e;return e>t?n=t:e<1&&(n=1),n!==ae&&se(n),re(n),null==b||b(n,ee),n}return oe}var ve=oe>1,be=oe<v$(void 0,ee,f);function ye(){ve&&me(oe-1)}function xe(){be&&me(oe+1)}function Ce(){me(ue)}function we(){me(de)}function Se(e,t){if("Enter"===e.key||e.charCode===Xs.ENTER||e.keyCode===Xs.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}}function ke(e){"click"!==e.type&&e.keyCode!==Xs.ENTER||me(ae)}var Ee=null,Oe=zs(e,{aria:!0,data:!0}),$e=z&&t.createElement("li",{className:"".concat(o,"-total-text")},z(f,[0===f?0:(oe-1)*ee+1,oe*ee>f?f:oe*ee])),Ne=null,Me=v$(void 0,ee,f);if(y&&f<=ee)return null;var Ie=[],Pe={rootPrefixCls:o,onClick:me,onKeyPress:Se,showTitle:O,itemRender:V,page:-1},Le=oe-1>0?oe-1:0,je=oe+1<Me?oe+1:Me,De=S&&S.goButton,Ae="object"===T(_)?_.readOnly:!_,Te=De,Re=null;_&&(De&&(Te="boolean"==typeof De?t.createElement("button",{type:"button",onClick:ke,onKeyUp:ke},I.jump_to_confirm):t.createElement("span",{onClick:ke,onKeyUp:ke},De),Te=t.createElement("li",{title:O?"".concat(I.jump_to).concat(oe,"/").concat(Me):null,className:"".concat(o,"-simple-pager")},Te)),Re=t.createElement("li",{title:O?"".concat(oe,"/").concat(Me):null,className:"".concat(o,"-simple-pager")},Ae?ae:t.createElement("input",{type:"text",value:ae,disabled:R,onKeyDown:function(e){e.keyCode!==Xs.UP&&e.keyCode!==Xs.DOWN||e.preventDefault()},onKeyUp:ge,onChange:ge,onBlur:function(e){me(fe(e))},size:3}),t.createElement("span",{className:"".concat(o,"-slash")},"/"),Me));var _e=k?1:2;if(Me<=3+2*_e){Me||Ie.push(t.createElement(f$,A({},Pe,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var ze=1;ze<=Me;ze+=1)Ie.push(t.createElement(f$,A({},Pe,{key:ze,page:ze,active:oe===ze})))}else{var Be=k?I.prev_3:I.prev_5,He=k?I.next_3:I.next_5,Fe=V(ue,"jump-prev",pe(K,"prev page")),We=V(de,"jump-next",pe(q,"next page"));w&&(Ee=Fe?t.createElement("li",{title:O?Be:null,key:"prev",onClick:Ce,tabIndex:0,onKeyDown:function(e){Se(e,Ce)},className:D("".concat(o,"-jump-prev"),Q({},"".concat(o,"-jump-prev-custom-icon"),!!K))},Fe):null,Ne=We?t.createElement("li",{title:O?He:null,key:"next",onClick:we,tabIndex:0,onKeyDown:function(e){Se(e,we)},className:D("".concat(o,"-jump-next"),Q({},"".concat(o,"-jump-next-custom-icon"),!!q))},We):null);var Ve=Math.max(1,oe-_e),Ke=Math.min(oe+_e,Me);oe-1<=_e&&(Ke=1+2*_e),Me-oe<=_e&&(Ve=Me-2*_e);for(var qe=Ve;qe<=Ke;qe+=1)Ie.push(t.createElement(f$,A({},Pe,{key:qe,page:qe,active:oe===qe})));if(oe-1>=2*_e&&3!==oe&&(Ie[0]=t.cloneElement(Ie[0],{className:D("".concat(o,"-item-after-jump-prev"),Ie[0].props.className)}),Ie.unshift(Ee)),Me-oe>=2*_e&&oe!==Me-2){var Xe=Ie[Ie.length-1];Ie[Ie.length-1]=t.cloneElement(Xe,{className:D("".concat(o,"-item-before-jump-next"),Xe.props.className)}),Ie.push(Ne)}1!==Ve&&Ie.unshift(t.createElement(f$,A({},Pe,{key:1,page:1}))),Ke!==Me&&Ie.push(t.createElement(f$,A({},Pe,{key:Me,page:Me})))}var Ue=function(e){var n=V(e,"prev",pe(X,"prev page"));return t.isValidElement(n)?t.cloneElement(n,{disabled:!ve}):n}(Le);if(Ue){var Ge=!ve||!Me;Ue=t.createElement("li",{title:O?I.prev_page:null,onClick:ye,tabIndex:Ge?null:0,onKeyDown:function(e){Se(e,ye)},className:D("".concat(o,"-prev"),Q({},"".concat(o,"-disabled"),Ge)),"aria-disabled":Ge},Ue)}var Ye,Qe,Ze=function(e){var n=V(e,"next",pe(G,"next page"));return t.isValidElement(n)?t.cloneElement(n,{disabled:!be}):n}(je);Ze&&(_?(Ye=!be,Qe=ve?0:null):Qe=(Ye=!be||!Me)?null:0,Ze=t.createElement("li",{title:O?I.next_page:null,onClick:xe,tabIndex:Qe,onKeyDown:function(e){Se(e,xe)},className:D("".concat(o,"-next"),Q({},"".concat(o,"-disabled"),Ye)),"aria-disabled":Ye},Ze));var Je=D(o,a,Q(Q(Q(Q(Q({},"".concat(o,"-start"),"start"===x),"".concat(o,"-center"),"center"===x),"".concat(o,"-end"),"end"===x),"".concat(o,"-simple"),_),"".concat(o,"-disabled"),R));return t.createElement("ul",A({className:Je,style:P,ref:Y},Oe),$e,Ue,_?Re:Ie,Ze,t.createElement(p$,{locale:I,rootPrefixCls:o,disabled:R,selectComponentClass:s,selectPrefixCls:i,changeSize:function(e){var t=v$(e,ee,f),n=oe>t&&0!==t?t:oe;te(e),se(n),null==N||N(oe,e),re(n),null==b||b(n,e)},pageSize:ee,pageSizeOptions:F,quickGo:he?me:null,goButton:Te,showSizeChanger:H}))};"production"!==process.env.NODE_ENV&&(b$.displayName="Pagination");const y$=t=>e.createElement(Qm,Object.assign({},t,{showSearch:!0,size:"small"})),x$=t=>e.createElement(Qm,Object.assign({},t,{showSearch:!0,size:"middle"}));y$.Option=Qm.Option,x$.Option=Qm.Option;const C$=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},w$=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Qt(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Qt(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Qt(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Qt(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Qt(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Qt(e.itemSizeSM),input:Object.assign(Object.assign({},LC(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},S$=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:Qt(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Qt(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Qt(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Qt(e.inputOutlineOffset)} 0 ${Qt(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},k$=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Qt(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Qt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Qt(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},jC(e)),xC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},yC(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},E$=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Qt(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Qt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Qt(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},O$=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Qt(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),E$(e)),k$(e)),S$(e)),w$(e)),C$(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},$$=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Gi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ui(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ui(e))}}}},N$=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},vC(e)),M$=e=>$i(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},mC(e));var I$=Zi("Pagination",(e=>{const t=M$(e);return[O$(t),$$(t)]}),N$);const P$=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var L$=ea(["Pagination","bordered"],(e=>{const t=M$(e);return[P$(t)]}),N$),j$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const D$=t=>{const{align:n,prefixCls:o,selectPrefixCls:r,className:i,rootClassName:a,style:s,size:l,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:p}=t,f=j$(t,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:h}=nv(d),[,g]=Vi(),{getPrefixCls:m,direction:v,pagination:b={}}=e.useContext(ai),y=m("pagination",o),[x,C,w]=I$(y),S=null!=p?p:b.showSizeChanger,k=e.useMemo((()=>{const t=e.createElement("span",{className:`${y}-item-ellipsis`},"•••");return{prevIcon:e.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?e.createElement(Oc,null):e.createElement(Uy,null)),nextIcon:e.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?e.createElement(Uy,null):e.createElement(Oc,null)),jumpPrevIcon:e.createElement("a",{className:`${y}-item-link`},e.createElement("div",{className:`${y}-item-container`},"rtl"===v?e.createElement(c$,{className:`${y}-item-link-icon`}):e.createElement(a$,{className:`${y}-item-link-icon`}),t)),jumpNextIcon:e.createElement("a",{className:`${y}-item-link`},e.createElement("div",{className:`${y}-item-container`},"rtl"===v?e.createElement(a$,{className:`${y}-item-link-icon`}):e.createElement(c$,{className:`${y}-item-link-icon`}),t))}}),[v,y]),[E]=Jo("Pagination",Fo),O=Object.assign(Object.assign({},E),c),$=Dl(l),N="small"===$||!(!h||$||!d),M=m("select",r),I=D({[`${y}-${n}`]:!!n,[`${y}-mini`]:N,[`${y}-rtl`]:"rtl"===v,[`${y}-bordered`]:g.wireframe},null==b?void 0:b.className,i,a,C,w),P=Object.assign(Object.assign({},null==b?void 0:b.style),s);return x(e.createElement(e.Fragment,null,g.wireframe&&e.createElement(L$,{prefixCls:y}),e.createElement(b$,Object.assign({},k,f,{style:P,prefixCls:y,selectPrefixCls:M,className:I,selectComponentClass:u||(N?y$:x$),locale:O,showSizeChanger:S}))))};"production"!==process.env.NODE_ENV&&(D$.displayName="Pagination");const A$=80*Math.PI,T$=t=>{const{dotClassName:n,style:o,hasCircleCls:r}=t;return e.createElement("circle",{className:D(`${n}-circle`,{[`${n}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:o})},R$=t=>{let{percent:n,prefixCls:o}=t;const r=`${o}-dot`,i=`${r}-holder`,a=`${i}-hidden`,[s,l]=e.useState(!1);on((()=>{0!==n&&l(!0)}),[0!==n]);const c=Math.max(Math.min(n,100),0);if(!s)return null;const u={strokeDashoffset:""+A$/4,strokeDasharray:`${A$*c/100} ${A$*(100-c)/100}`};return e.createElement("span",{className:D(i,`${r}-progress`,c<=0&&a)},e.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},e.createElement(T$,{dotClassName:r,hasCircleCls:!0}),e.createElement(T$,{dotClassName:r,style:u})))};function _$(t){const{prefixCls:n,percent:o=0}=t,r=`${n}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return e.createElement(e.Fragment,null,e.createElement("span",{className:D(i,o>0&&a)},e.createElement("span",{className:D(r,`${n}-dot-spin`)},[1,2,3,4].map((t=>e.createElement("i",{className:`${n}-dot-item`,key:t}))))),e.createElement(R$,{prefixCls:n,percent:o}))}function z$(t){const{prefixCls:n,indicator:o,percent:r}=t,i=`${n}-dot`;return o&&e.isValidElement(o)?Fs(o,{className:D(o.props.className,i),percent:r}):e.createElement(_$,{prefixCls:n,percent:r})}const B$=new Eo("antSpinMove",{to:{opacity:1}}),H$=new Eo("antRotate",{to:{transform:"rotate(405deg)"}}),F$=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:B$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:H$,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}};var W$=Zi("Spin",(e=>{const t=$i(e,{spinDotDefault:e.colorTextDescription});return[F$(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));const V$=[[30,.05],[70,.03],[96,.01]];var K$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let q$;const X$=t=>{var n;const{prefixCls:o,spinning:r=!0,delay:i=0,className:a,rootClassName:s,size:l="default",tip:c,wrapperClassName:u,style:d,children:p,fullscreen:f=!1,indicator:h,percent:g}=t,m=K$(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,spin:y}=e.useContext(ai),x=v("spin",o),[C,w,S]=W$(x),[k,E]=e.useState((()=>r&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(r,i))),O=function(t,n){const[o,r]=e.useState(0),i=e.useRef(),a="auto"===n;return e.useEffect((()=>(a&&t&&(r(0),i.current=setInterval((()=>{r((e=>{const t=100-e;for(let n=0;n<V$.length;n+=1){const[o,r]=V$[n];if(e<=o)return e+t*r}return e}))}),200)),()=>{clearInterval(i.current)})),[a,t]),a?o:n}(k,g);e.useEffect((()=>{if(r){const e=Gw(i,(()=>{E(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}E(!1)}),[i,r]);const $=e.useMemo((()=>void 0!==p&&!f),[p,f]);if("production"!==process.env.NODE_ENV){const e=zo("Spin");"production"!==process.env.NODE_ENV&&e(!c||$||f,"usage","`tip` only work in nest or fullscreen pattern.")}const N=D(x,null==y?void 0:y.className,{[`${x}-sm`]:"small"===l,[`${x}-lg`]:"large"===l,[`${x}-spinning`]:k,[`${x}-show-text`]:!!c,[`${x}-rtl`]:"rtl"===b},a,!f&&s,w,S),M=D(`${x}-container`,{[`${x}-blur`]:k}),I=null!==(n=null!=h?h:null==y?void 0:y.indicator)&&void 0!==n?n:q$,P=Object.assign(Object.assign({},null==y?void 0:y.style),d),L=e.createElement("div",Object.assign({},m,{style:P,className:N,"aria-live":"polite","aria-busy":k}),e.createElement(z$,{prefixCls:x,indicator:I,percent:O}),c&&($||f)?e.createElement("div",{className:`${x}-text`},c):null);return C($?e.createElement("div",Object.assign({},m,{className:D(`${x}-nested-loading`,u,w,S)}),k&&e.createElement("div",{key:"loading"},L),e.createElement("div",{className:M,key:"container"},p)):f?e.createElement("div",{className:D(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:k},s,w,S)},L):L)};X$.setDefaultIndicator=e=>{q$=e},"production"!==process.env.NODE_ENV&&(X$.displayName="Spin");const U$=t.createContext({});U$.Consumer;var G$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Y$=t.forwardRef(((e,n)=>{const{prefixCls:o,children:i,actions:a,extra:s,styles:l,className:c,classNames:u,colStyle:d}=e,f=G$(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:h,itemLayout:g}=r(U$),{getPrefixCls:m,list:v}=r(ai),b=e=>{var t,n;return D(null===(n=null===(t=null==v?void 0:v.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null==u?void 0:u[e])},y=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null==v?void 0:v.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null==l?void 0:l[e])},x=m("list",o),C=a&&a.length>0&&t.createElement("ul",{className:D(`${x}-item-action`,b("actions")),key:"actions",style:y("actions")},a.map(((e,n)=>t.createElement("li",{key:`${x}-item-action-${n}`},e,n!==a.length-1&&t.createElement("em",{className:`${x}-item-action-split`}))))),w=h?"div":"li",S=t.createElement(w,Object.assign({},f,h?{}:{ref:n},{className:D(`${x}-item`,{[`${x}-item-no-flex`]:!("vertical"===g?s:!(()=>{let e=!1;return p.forEach(i,(t=>{"string"==typeof t&&(e=!0)})),e&&p.count(i)>1})())},c)}),"vertical"===g&&s?[t.createElement("div",{className:`${x}-item-main`,key:"content"},i,C),t.createElement("div",{className:D(`${x}-item-extra`,b("extra")),key:"extra",style:y("extra")},s)]:[i,C,Fs(s,{key:"extra"})]);return h?t.createElement(Ok,{ref:n,flex:1,style:d},S):S}));Y$.Meta=e=>{var{prefixCls:n,className:o,avatar:i,title:a,description:s}=e,l=G$(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:c}=r(ai),u=c("list",n),d=D(`${u}-item-meta`,o),p=t.createElement("div",{className:`${u}-item-meta-content`},a&&t.createElement("h4",{className:`${u}-item-meta-title`},a),s&&t.createElement("div",{className:`${u}-item-meta-description`},s));return t.createElement("div",Object.assign({},l,{className:d}),i&&t.createElement("div",{className:`${u}-item-meta-avatar`},i),(a||s)&&p)};const Q$=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,itemPaddingSM:i,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${Qt(r)} ${Qt(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},Z$=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${o}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Qt(a)}`}}}}}},J$=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:a,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:p,margin:f,colorText:h,colorTextDescription:g,motionDurationSlow:m,lineWidth:v,headerBg:b,footerBg:y,emptyTextPadding:x,metaMarginBottom:C,avatarMarginRight:w,titleMarginBottom:S,descriptionFontSize:k}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${Qt(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${m}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:k,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Qt(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Qt(s)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:C,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:S,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Qt(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}};var eN=Zi("List",(e=>{const t=$i(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[J$(t),Q$(t),Z$(t)]}),(e=>({contentWidth:220,itemPadding:`${Qt(e.paddingContentVertical)} 0`,itemPaddingSM:`${Qt(e.paddingContentVerticalSM)} ${Qt(e.paddingContentHorizontal)}`,itemPaddingLG:`${Qt(e.paddingContentVerticalLG)} ${Qt(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}))),tN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function nN(t,n){var{pagination:o=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:s,rootClassName:l,style:c,children:u,itemLayout:d,loadMore:p,grid:f,dataSource:h=[],size:g,header:m,footer:v,loading:b=!1,rowKey:y,renderItem:x,locale:C}=t,w=tN(t,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const S=o&&"object"==typeof o?o:{},[k,E]=e.useState(S.defaultCurrent||1),[O,$]=e.useState(S.defaultPageSize||10),{getPrefixCls:N,renderEmpty:M,direction:I,list:P}=e.useContext(ai),L=e=>(t,n)=>{var r;E(t),$(n),o&&(null===(r=null==o?void 0:o[e])||void 0===r||r.call(o,t,n))},j=L("onChange"),A=L("onShowSizeChange"),T=N("list",r),[R,_,z]=eN(T);let B=b;"boolean"==typeof B&&(B={spinning:B});const H=!!(null==B?void 0:B.spinning);let F="";switch(Dl(g)){case"large":F="lg";break;case"small":F="sm"}const W=D(T,{[`${T}-vertical`]:"vertical"===d,[`${T}-${F}`]:F,[`${T}-split`]:a,[`${T}-bordered`]:i,[`${T}-loading`]:H,[`${T}-grid`]:!!f,[`${T}-something-after-last-item`]:!!(p||o||v),[`${T}-rtl`]:"rtl"===I},null==P?void 0:P.className,s,l,_,z),V=o$({current:1,total:0},{total:h.length,current:k,pageSize:O},o||{}),K=Math.ceil(V.total/V.pageSize);V.current>K&&(V.current=K);const q=o&&e.createElement("div",{className:D(`${T}-pagination`)},e.createElement(D$,Object.assign({align:"end"},V,{onChange:j,onShowSizeChange:A})));let X=lt(h);o&&h.length>(V.current-1)*V.pageSize&&(X=lt(h).splice((V.current-1)*V.pageSize,V.pageSize));const U=nv(Object.keys(f||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),G=e.useMemo((()=>{for(let e=0;e<Jm.length;e+=1){const t=Jm[e];if(U[t])return t}}),[U]),Y=e.useMemo((()=>{if(!f)return;const e=G&&f[G]?f[G]:f.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0}),[JSON.stringify(f),G]);let Q=H&&e.createElement("div",{style:{minHeight:53}});if(X.length>0){const t=X.map(((t,n)=>((t,n)=>{if(!x)return null;let o;return o="function"==typeof y?y(t):y?t[y]:t.key,o||(o=`list-item-${n}`),e.createElement(e.Fragment,{key:o},x(t,n))})(t,n)));Q=f?e.createElement(Mk,{gutter:f.gutter},e.Children.map(t,(t=>e.createElement("div",{key:null==t?void 0:t.key,style:Y},t)))):e.createElement("ul",{className:`${T}-items`},t)}else u||H||(Q=e.createElement("div",{className:`${T}-empty-text`},(null==C?void 0:C.emptyText)||(null==M?void 0:M("List"))||e.createElement(gm,{componentName:"List"})));const Z=V.position||"bottom",J=e.useMemo((()=>({grid:f,itemLayout:d})),[JSON.stringify(f),d]);return R(e.createElement(U$.Provider,{value:J},e.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},null==P?void 0:P.style),c),className:W},w),("top"===Z||"both"===Z)&&q,m&&e.createElement("div",{className:`${T}-header`},m),e.createElement(X$,Object.assign({},B),Q,u),v&&e.createElement("div",{className:`${T}-footer`},v),p||("bottom"===Z||"both"===Z)&&q)))}const oN=e.forwardRef(nN);"production"!==process.env.NODE_ENV&&(oN.displayName="List");const rN=oN;rN.Item=Y$;var iN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};var aN=ah((t=>{const{prefixCls:n,className:o,closeIcon:r,closable:i,type:a,title:s,children:l,footer:c}=t,u=iN(t,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=e.useContext(ai),p=d(),f=n||d("modal"),h=qs(p),[g,m,v]=Df(f,h),b=`${f}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:e.createElement(Ff,Object.assign({},t,{prefixCls:f,confirmPrefixCls:b,rootPrefixCls:p,content:l}))}:{closable:null==i||i,title:s,footer:null!==c&&e.createElement($f,Object.assign({},t)),children:l},g(e.createElement(Ld,Object.assign({prefixCls:f,className:D(m,`${f}-pure-panel`,a&&b,a&&`${b}-${a}`,o,v,h)},u,{closeIcon:Of(f,r),closable:i},y)))}));function sN(e){return Gf(Yf(e))}const lN=_f;lN.useModal=function(){const t=e.useRef(null),[n,o]=e.useState([]);e.useEffect((()=>{if(n.length){lt(n).forEach((e=>{e()})),o([])}}),[n]);const r=e.useCallback((n=>function(r){var i;rh+=1;const a=e.createRef();let s;const l=new Promise((e=>{s=e}));let c,u=!1;const d=e.createElement(oh,{key:`modal-${rh}`,config:n(r),ref:a,afterClose:()=>{null==c||c()},isSilent:()=>u,onConfirm:e=>{s(e)}});c=null===(i=t.current)||void 0===i?void 0:i.patchElement(d),c&&Kf.push(c);const p={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():o((t=>[].concat(lt(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():o((e=>[].concat(lt(e),[t])))},then:e=>(u=!0,l.then(e))};return p}),[]);return[e.useMemo((()=>({info:r(Qf),success:r(Zf),error:r(Jf),warning:r(Yf),confirm:r(eh)})),[]),e.createElement(ih,{key:"modal-holder",ref:t})]},lN.info=function(e){return Gf(Qf(e))},lN.success=function(e){return Gf(Zf(e))},lN.error=function(e){return Gf(Jf(e))},lN.warning=sN,lN.warn=sN,lN.confirm=function(e){return Gf(eh(e))},lN.destroyAll=function(){for(;Kf.length;){const e=Kf.pop();e&&e()}},lN.config=function(e){let{rootPrefixCls:t}=e;"production"!==process.env.NODE_ENV&&Bo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),qf=t},lN._InternalPanelDoNotUseOrYouWillBeFired=aN,"production"!==process.env.NODE_ENV&&(lN.displayName="Modal");var cN={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"};process.env.NODE_ENV;var uN=0,dN="test"!==process.env.NODE_ENV&&xt();var pN=function(t){var n=bt(e.useState(),2),o=n[0],r=n[1];return e.useEffect((function(){var e;r("rc_progress_".concat((dN?(e=uN,uN+=1):e="TEST_OR_SSR",e)))}),[]),t||o},fN=function(t){var n=t.bg,o=t.children;return e.createElement("div",{style:{width:"100%",height:"100%",background:n}},o)};function hN(e,t){return Object.keys(e).map((function(n){var o=parseFloat(n),r="".concat(Math.floor(o*t),"%");return"".concat(e[n]," ").concat(r)}))}var gN=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.color,i=t.gradientId,a=t.radius,s=t.style,l=t.ptg,c=t.strokeLinecap,u=t.strokeWidth,d=t.size,p=t.gapDegree,f=r&&"object"===T(r),h=f?"#FFF":void 0,g=d/2,m=e.createElement("circle",{className:"".concat(o,"-circle-path"),r:a,cx:g,cy:g,stroke:h,strokeLinecap:c,strokeWidth:u,opacity:0===l?0:1,style:s,ref:n});if(!f)return m;var v="".concat(i,"-conic"),b=p?"".concat(180+p/2,"deg"):"0deg",y=hN(r,(360-p)/360),x=hN(r,1),C="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),w="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(x.join(", "),")");return e.createElement(e.Fragment,null,e.createElement("mask",{id:v},m),e.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},e.createElement(fN,{bg:w},e.createElement(fN,{bg:C}))))}));"production"!==process.env.NODE_ENV&&(gN.displayName="PtgCircle");var mN=100,vN=function(e,t,n,o,r,i,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),p=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-o)/100*t;"round"===l&&100!==o&&(f+=c/2)>=t&&(f=t-.01);return{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(r+d+p,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},bN=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function yN(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var xN=function(t){var n,o,r,i,s,c=J(J({},cN),t),u=c.id,d=c.prefixCls,p=c.steps,f=c.strokeWidth,h=c.trailWidth,g=c.gapDegree,m=void 0===g?0:g,v=c.gapPosition,b=c.trailColor,y=c.strokeLinecap,x=c.style,C=c.className,w=c.strokeColor,S=c.percent,k=Lt(c,bN),E=pN(u),O="".concat(E,"-gradient"),$=50-f/2,N=2*Math.PI*$,M=m>0?90+m/2:-90,I=N*((360-m)/360),P="object"===T(p)?p:{count:p,gap:2},L=P.count,j=P.gap,R=yN(S),_=yN(w),z=_.find((function(e){return e&&"object"===T(e)})),B=z&&"object"===T(z)?"butt":y,H=vN(N,I,0,100,M,m,v,b,B,f),F=(n=a([]),o=a(null),l((function(){var e=Date.now(),t=!1;n.current.forEach((function(n){if(n){t=!0;var r=n.style;r.transitionDuration=".3s, .3s, .3s, .06s",o.current&&e-o.current<100&&(r.transitionDuration="0s, 0s")}})),t&&(o.current=Date.now())})),n.current);return e.createElement("svg",A({className:D("".concat(d,"-circle"),C),viewBox:"0 0 ".concat(mN," ").concat(mN),style:x,id:u,role:"presentation"},k),!L&&e.createElement("circle",{className:"".concat(d,"-circle-trail"),r:$,cx:50,cy:50,stroke:b,strokeLinecap:B,strokeWidth:h||f,style:H}),L?(r=Math.round(L*(R[0]/100)),i=100/L,s=0,new Array(L).fill(null).map((function(t,n){var o=n<=r-1?_[0]:b,a=o&&"object"===T(o)?"url(#".concat(O,")"):void 0,l=vN(N,I,s,i,M,m,v,o,"butt",f,j);return s+=100*(I-l.strokeDashoffset+j)/I,e.createElement("circle",{key:n,className:"".concat(d,"-circle-path"),r:$,cx:50,cy:50,stroke:a,strokeWidth:f,opacity:1,style:l,ref:function(e){F[n]=e}})}))):function(){var t=0;return R.map((function(n,o){var r=_[o]||_[_.length-1],i=vN(N,I,t,n,M,m,v,r,B,f);return t+=n,e.createElement(gN,{key:o,color:r,ptg:n,radius:$,prefixCls:d,gradientId:O,style:i,strokeLinecap:B,strokeWidth:f,gapDegree:m,ref:function(e){F[o]=e},size:mN})})).reverse()}())};function CN(e){return!e||e<0?0:e>100?100:e}function wN(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}"production"!==process.env.NODE_ENV&&(xN.displayName="Circle");const SN=(e,t,n)=>{var o,r,i,a;let s=-1,l=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=o?o:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,l=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[s,l]},kN=t=>{const{prefixCls:n,trailColor:o=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:s=120,type:l,children:c,success:u,size:d=s,steps:p}=t,[f,h]=SN(d,"circle");let{strokeWidth:g}=t;void 0===g&&(g=Math.max((e=>3/e*100)(f),6));const m={width:f,height:h,fontSize:.15*f+6},v=e.useMemo((()=>a||0===a?a:"dashboard"===l?75:void 0),[a,l]),b=(e=>{let{percent:t,success:n,successPercent:o}=e;const r=CN(wN({success:n,successPercent:o}));return[r,CN(CN(t)-r)]})(t),y=i||"dashboard"===l&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(t.strokeColor),C=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||pr.green,n||null]})({success:u,strokeColor:t.strokeColor}),w=D(`${n}-inner`,{[`${n}-circle-gradient`]:x}),S=e.createElement(xN,{steps:p,percent:p?b[1]:b,strokeWidth:g,trailWidth:g,strokeColor:p?C[1]:C,strokeLinecap:r,trailColor:o,prefixCls:n,gapDegree:v,gapPosition:y}),k=f<=20,E=e.createElement("div",{className:w,style:m},S,!k&&c);return k?e.createElement(Rv,{title:c},E):E},EN="--progress-line-stroke-color",ON="--progress-percent",$N=e=>{const t=e?"100%":"-100%";return new Eo(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},NN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},qi(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${EN})`]},height:"100%",width:`calc(1 / var(${ON}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Qt(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:$N(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:$N(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},MN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},IN=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},PN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var LN=Zi("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=$i(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[NN(n),MN(n),IN(n),PN(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),jN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const DN=(e,t)=>{const{from:n=pr.blue,to:o=pr.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=jN(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${r}, ${(e=>{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`;return{background:e,[EN]:e}}const a=`linear-gradient(${r}, ${n}, ${o})`;return{background:a,[EN]:a}},AN=t=>{const{prefixCls:n,direction:o,percent:r,size:i,strokeWidth:a,strokeColor:s,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:p}=t,{align:f,type:h}=d,g=s&&"string"!=typeof s?DN(s,o):{[EN]:s,background:s},m="square"===l||"butt"===l?0:void 0,v=null!=i?i:[-1,a||("small"===i?6:8)],[b,y]=SN(v,"line",{strokeWidth:a});if("production"!==process.env.NODE_ENV){zo("Progress").deprecated(!("strokeWidth"in t),"strokeWidth","size")}const x={backgroundColor:u||void 0,borderRadius:m},C=Object.assign(Object.assign({width:`${CN(r)}%`,height:y,borderRadius:m},g),{[ON]:CN(r)/100}),w=wN(t),S={width:`${CN(w)}%`,height:y,borderRadius:m,backgroundColor:null==p?void 0:p.strokeColor},k={width:b<0?"100%":b},E=e.createElement("div",{className:`${n}-inner`,style:x},e.createElement("div",{className:D(`${n}-bg`,`${n}-bg-${h}`),style:C},"inner"===h&&c),void 0!==w&&e.createElement("div",{className:`${n}-success-bg`,style:S})),O="outer"===h&&"start"===f,$="outer"===h&&"end"===f;return"outer"===h&&"center"===f?e.createElement("div",{className:`${n}-layout-bottom`},E,c):e.createElement("div",{className:`${n}-outer`,style:k},O&&c,E,$&&c)},TN=t=>{const{size:n,steps:o,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=t,u=Math.round(o*(r/100)),d=null!=n?n:["small"===n?2:14,i],[p,f]=SN(d,"step",{steps:o,strokeWidth:i}),h=p/o,g=new Array(o);for(let t=0;t<o;t++){const n=Array.isArray(a)?a[t]:a;g[t]=e.createElement("div",{key:t,className:D(`${l}-steps-item`,{[`${l}-steps-item-active`]:t<=u-1}),style:{backgroundColor:t<=u-1?n:s,width:h,height:f}})}return e.createElement("div",{className:`${l}-steps-outer`},g,c)};var RN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _N=["normal","exception","active","success"],zN=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,rootClassName:i,steps:a,strokeColor:s,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:p,format:f,style:h,percentPosition:g={}}=t,m=RN(t,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:b="outer"}=g,y=Array.isArray(s)?s[0]:s,x="string"==typeof s||Array.isArray(s)?s:void 0,C=e.useMemo((()=>{if(y){const e="string"==typeof y?y:Object.values(y)[0];return new Xr(e).isLight()}return!1}),[s]),w=e.useMemo((()=>{var e,n;const o=wN(t);return parseInt(void 0!==o?null===(e=null!=o?o:0)||void 0===e?void 0:e.toString():null===(n=null!=l?l:0)||void 0===n?void 0:n.toString(),10)}),[l,t.success,t.successPercent]),S=e.useMemo((()=>!_N.includes(p)&&w>=100?"success":p||"normal"),[p,w]),{getPrefixCls:k,direction:E,progress:O}=e.useContext(ai),$=k("progress",o),[N,M,I]=LN($),P="line"===d,L=P&&!a,j=e.useMemo((()=>{if(!u)return null;const n=wN(t);let o;const r=f||(e=>`${e}%`),i=P&&C&&"inner"===b;return"inner"===b||f||"exception"!==S&&"success"!==S?o=r(CN(l),CN(n)):"exception"===S?o=P?e.createElement($s,null):e.createElement(Is,null):"success"===S&&(o=P?e.createElement(ks,null):e.createElement(Hm,null)),e.createElement("span",{className:D(`${$}-text`,{[`${$}-text-bright`]:i,[`${$}-text-${v}`]:L,[`${$}-text-${b}`]:L}),title:"string"==typeof o?o:void 0},o)}),[u,l,w,S,d,$,f]);if("production"!==process.env.NODE_ENV){const e=zo("Progress");e.deprecated(!("successPercent"in t),"successPercent","success.percent"),e.deprecated(!("width"in t),"width","size"),"circle"!==d&&"dashboard"!==d||(Array.isArray(c)?"production"!==process.env.NODE_ENV&&e(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):"object"==typeof c&&"production"!==process.env.NODE_ENV&&e(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),t.success&&"progress"in t.success&&e.deprecated(!1,"success.progress","success.percent")}let A;"line"===d?A=a?e.createElement(TN,Object.assign({},t,{strokeColor:x,prefixCls:$,steps:"object"==typeof a?a.count:a}),j):e.createElement(AN,Object.assign({},t,{strokeColor:y,prefixCls:$,direction:E,percentPosition:{align:v,type:b}}),j):"circle"!==d&&"dashboard"!==d||(A=e.createElement(kN,Object.assign({},t,{strokeColor:y,prefixCls:$,progressStatus:S}),j));const T=D($,`${$}-status-${S}`,{[`${$}-${"dashboard"===d?"circle":d}`]:"line"!==d,[`${$}-inline-circle`]:"circle"===d&&SN(c,"circle")[0]<=20,[`${$}-line`]:L,[`${$}-line-align-${v}`]:L,[`${$}-line-position-${b}`]:L,[`${$}-steps`]:a,[`${$}-show-info`]:u,[`${$}-${c}`]:"string"==typeof c,[`${$}-rtl`]:"rtl"===E},null==O?void 0:O.className,r,i,M,I);return N(e.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},null==O?void 0:O.style),h),className:T,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},rt(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),A))}));"production"!==process.env.NODE_ENV&&(zN.displayName="Progress");var BN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},HN=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:BN}))},FN=e.forwardRef(HN);"production"!==process.env.NODE_ENV&&(FN.displayName="CaretDownFilled");var WN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},VN=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:WN}))},KN=e.forwardRef(VN);"production"!==process.env.NODE_ENV&&(KN.displayName="CaretDownOutlined");var qN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},XN=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:qN}))},UN=e.forwardRef(XN);"production"!==process.env.NODE_ENV&&(UN.displayName="CaretUpOutlined");var GN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},YN=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:GN}))},QN=e.forwardRef(YN);"production"!==process.env.NODE_ENV&&(QN.displayName="CopyOutlined");var ZN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},JN=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:ZN}))},eM=e.forwardRef(JN);"production"!==process.env.NODE_ENV&&(eM.displayName="EditOutlined");var tM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},nM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:tM}))},oM=e.forwardRef(nM);"production"!==process.env.NODE_ENV&&(oM.displayName="EnterOutlined");var rM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},iM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:rM}))},aM=e.forwardRef(iM);"production"!==process.env.NODE_ENV&&(aM.displayName="FileOutlined");var sM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},lM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:sM}))},cM=e.forwardRef(lM);"production"!==process.env.NODE_ENV&&(cM.displayName="FilterFilled");var uM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},dM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:uM}))},pM=e.forwardRef(dM);"production"!==process.env.NODE_ENV&&(pM.displayName="FolderOpenOutlined");var fM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},hM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:fM}))},gM=e.forwardRef(hM);"production"!==process.env.NODE_ENV&&(gM.displayName="FolderOutlined");var mM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},vM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:mM}))},bM=e.forwardRef(vM);"production"!==process.env.NODE_ENV&&(bM.displayName="HolderOutlined");var yM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},xM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:yM}))},CM=e.forwardRef(xM);"production"!==process.env.NODE_ENV&&(CM.displayName="MinusSquareOutlined");var wM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},SM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:wM}))},kM=e.forwardRef(SM);"production"!==process.env.NODE_ENV&&(kM.displayName="PlusSquareOutlined");var EM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},OM=function(t,n){return e.createElement(ws,A({},t,{ref:n,icon:EM}))},$M=e.forwardRef(OM);"production"!==process.env.NODE_ENV&&($M.displayName="UserOutlined");var NM=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],MM=e.forwardRef((function(t,n){var o,r=t.prefixCls,i=void 0===r?"rc-switch":r,a=t.className,s=t.checked,l=t.defaultChecked,c=t.disabled,u=t.loadingIcon,d=t.checkedChildren,p=t.unCheckedChildren,f=t.onClick,h=t.onChange,g=t.onKeyDown,m=Lt(t,NM),v=bt(Si(!1,{value:s,defaultValue:l}),2),b=v[0],y=v[1];function x(e,t){var n=b;return c||(y(n=e),null==h||h(n,t)),n}var C=D(i,a,(Q(o={},"".concat(i,"-checked"),b),Q(o,"".concat(i,"-disabled"),c),o));return e.createElement("button",A({},m,{type:"button",role:"switch","aria-checked":b,disabled:c,className:C,ref:n,onKeyDown:function(e){e.which===Xs.LEFT?x(!1,e):e.which===Xs.RIGHT&&x(!0,e),null==g||g(e)},onClick:function(e){var t=x(!b,e);null==f||f(t,e)}}),u,e.createElement("span",{className:"".concat(i,"-inner")},e.createElement("span",{className:"".concat(i,"-inner-checked")},d),e.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))}));MM.displayName="Switch";const IM=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Qt(l(s).add(l(o).mul(2)).equal()),d=Qt(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:Qt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Qt(l(s).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},PM=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},LM=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Qt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},jM=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=Qt(s(a).add(s(o).mul(2)).equal()),u=Qt(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(o).mul(2).equal(),marginInlineEnd:s(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(o).mul(-1).mul(2).equal(),marginInlineEnd:s(o).mul(2).equal()}}}}}},DM=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qi(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:Qt(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Gi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var AM=Zi("Switch",(e=>{const t=$i(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[DM(t),jM(t),LM(t),PM(t),IM(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,i=t*n,a=o/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Xr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),TM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const RM=e.forwardRef(((t,n)=>{const{prefixCls:o,size:r,disabled:i,loading:a,className:s,rootClassName:l,style:c,checked:u,value:d,defaultChecked:p,defaultValue:f,onChange:h}=t,g=TM(t,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,v]=Si(!1,{value:null!=u?u:d,defaultValue:null!=p?p:f}),{getPrefixCls:b,direction:y,switch:x}=e.useContext(ai),C=e.useContext(ci),w=(null!=i?i:C)||a,S=b("switch",o),k=e.createElement("div",{className:`${S}-handle`},a&&e.createElement(Ys,{className:`${S}-loading-icon`})),[E,O,$]=AM(S),N=Dl(r),M=D(null==x?void 0:x.className,{[`${S}-small`]:"small"===N,[`${S}-loading`]:a,[`${S}-rtl`]:"rtl"===y},s,l,O,$),I=Object.assign(Object.assign({},null==x?void 0:x.style),c);return E(e.createElement(jl,{component:"Switch"},e.createElement(MM,Object.assign({},g,{checked:m,onChange:function(){v(arguments.length<=0?void 0:arguments[0]),null==h||h.apply(void 0,arguments)},prefixCls:S,className:M,style:I,disabled:w,ref:n,loadingIcon:k}))))})),_M=RM;_M.__ANT_SWITCH=!0,"production"!==process.env.NODE_ENV&&(_M.displayName="Switch");var zM={},BM="rc-table-internal-hook";function HM(t){var n=e.createContext(void 0);return{Context:n,Provider:function(t){var o=t.value,r=t.children,i=e.useRef(o);i.current=o;var a=bt(e.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),1)[0];return on((function(){w((function(){a.listeners.forEach((function(e){e(o)}))}))}),[o]),e.createElement(n.Provider,{value:a},r)},defaultValue:t}}function FM(t,n){var o=xi("function"==typeof n?n:function(e){if(void 0===n)return e;if(!Array.isArray(n))return e[n];var t={};return n.forEach((function(n){t[n]=e[n]})),t}),r=e.useContext(null==t?void 0:t.Context),i=r||{},a=i.listeners,s=i.getValue,l=e.useRef();l.current=o(r?s():null==t?void 0:t.defaultValue);var c=bt(e.useState({}),2)[1];return on((function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){var t=o(e);jt(l.current,t,!0)||c({})}}),[r]),l.current}var WM=function(){var t=e.createContext(null);function n(){return e.useContext(t)}return{makeImmutable:function(o,r){var i=he(o),a=function(a,s){var l=i?{ref:s}:{},c=e.useRef(0),u=e.useRef(a);return null!==n()?e.createElement(o,A({},a,l)):(r&&!r(u.current,a)||(c.current+=1),u.current=a,e.createElement(t.Provider,{value:c.current},e.createElement(o,A({},a,l))))};return"production"!==process.env.NODE_ENV&&(a.displayName="ImmutableRoot(".concat(o.displayName||o.name,")")),i?e.forwardRef(a):a},responseImmutable:function(t,o){var r=he(t),i=function(o,i){var a=r?{ref:i}:{};return n(),e.createElement(t,A({},o,a))};return"production"!==process.env.NODE_ENV&&(i.displayName="ImmutableResponse(".concat(t.displayName||t.name,")")),r?e.memo(e.forwardRef(i),o):e.memo(i,o)},useImmutableMark:n}}(),VM=WM.makeImmutable,KM=WM.responseImmutable,qM=WM.useImmutableMark,XM=HM();function UM(t,n){var o=e.useRef(0);o.current+=1;var r=e.useRef(t),i=[];Object.keys(t||{}).map((function(e){var n;(null==t?void 0:t[e])!==(null===(n=r.current)||void 0===n?void 0:n[e])&&i.push(e)})),r.current=t;var a=e.useRef([]);return i.length&&(a.current=i),e.useDebugValue(o.current),e.useDebugValue(a.current.join(", ")),n&&console.log("".concat(n,":"),o.current,a.current),o.current}var GM="production"!==process.env.NODE_ENV?UM:function(){},YM=e.memo((function(){var t=UM();return e.createElement("h1",null,"Render Times: ",t)}));"production"!==process.env.NODE_ENV&&(YM.displayName="RenderBlock");var QM=e.createContext({renderWithProps:!1});function ZM(e){var t=[],n={};return e.forEach((function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,s=i||(o=a,null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)})),t}function JM(e){return null!=e}function eI(t,n,o,r,i,a){var s=e.useContext(QM),l=ce((function(){if(JM(r))return[r];var a,l=null==n||""===n?[]:Array.isArray(n)?n:[n],c=Mo(t,l),u=c,d=void 0;if(i){var p=i(c,t,o);!(a=p)||"object"!==T(a)||Array.isArray(a)||e.isValidElement(a)?u=p:("production"!==process.env.NODE_ENV&&U(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),u=p.children,d=p.props,s.renderWithProps=!0)}return[u,d]}),[qM(),t,r,n,i,o],(function(e,t){if(a){var n=bt(e,2)[1],o=bt(t,2)[1];return a(o,n)}return!!s.renderWithProps||!jt(e,t,!0)}));return l}function tI(t){var n,o,r,i,a,s,l,c;"production"!==process.env.NODE_ENV&&GM(t);var u=t.component,d=t.children,p=t.ellipsis,f=t.scope,h=t.prefixCls,g=t.className,m=t.align,v=t.record,b=t.render,y=t.dataIndex,x=t.renderIndex,C=t.shouldCellUpdate,w=t.index,S=t.rowType,k=t.colSpan,E=t.rowSpan,O=t.fixLeft,$=t.fixRight,N=t.firstFixLeft,M=t.lastFixLeft,I=t.firstFixRight,P=t.lastFixRight,L=t.appendNode,j=t.additionalProps,R=void 0===j?{}:j,_=t.isSticky,z="".concat(h,"-cell"),B=FM(XM,["supportSticky","allColumnsFixedLeft","rowHoverable"]),H=B.supportSticky,F=B.allColumnsFixedLeft,W=B.rowHoverable,V=bt(eI(v,y,x,d,b,C),2),K=V[0],q=V[1],X={},U="number"==typeof O&&H,G="number"==typeof $&&H;U&&(X.position="sticky",X.left=O),G&&(X.position="sticky",X.right=$);var Y=null!==(n=null!==(o=null!==(r=null==q?void 0:q.colSpan)&&void 0!==r?r:R.colSpan)&&void 0!==o?o:k)&&void 0!==n?n:1,Z=null!==(i=null!==(a=null!==(s=null==q?void 0:q.rowSpan)&&void 0!==s?s:R.rowSpan)&&void 0!==a?a:E)&&void 0!==i?i:1,ee=function(e,t){return FM(XM,(function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]}))}(w,Z),te=bt(ee,2),ne=te[0],oe=te[1],re=xi((function(e){var t;v&&oe(w,w+Z-1),null==R||null===(t=R.onMouseEnter)||void 0===t||t.call(R,e)})),ie=xi((function(e){var t;v&&oe(-1,-1),null==R||null===(t=R.onMouseLeave)||void 0===t||t.call(R,e)}));if(0===Y||0===Z)return null;var ae=null!==(l=R.title)&&void 0!==l?l:function(t){var n,o=t.ellipsis,r=t.rowType,i=t.children,a=!0===o?{showTitle:!0}:o;return a&&(a.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?n=i.toString():e.isValidElement(i)&&"string"==typeof i.props.children&&(n=i.props.children)),n}({rowType:S,ellipsis:p,children:K}),se=D(z,g,(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(c={},"".concat(z,"-fix-left"),U&&H),"".concat(z,"-fix-left-first"),N&&H),"".concat(z,"-fix-left-last"),M&&H),"".concat(z,"-fix-left-all"),M&&F&&H),"".concat(z,"-fix-right"),G&&H),"".concat(z,"-fix-right-first"),I&&H),"".concat(z,"-fix-right-last"),P&&H),"".concat(z,"-ellipsis"),p),"".concat(z,"-with-append"),L),"".concat(z,"-fix-sticky"),(U||G)&&_&&H),Q(c,"".concat(z,"-row-hover"),!q&&ne)),R.className,null==q?void 0:q.className),le={};m&&(le.textAlign=m);var ce=J(J(J(J({},X),R.style),le),null==q?void 0:q.style),ue=K;return"object"!==T(ue)||Array.isArray(ue)||e.isValidElement(ue)||(ue=null),p&&(M||I)&&(ue=e.createElement("span",{className:"".concat(z,"-content")},ue)),e.createElement(u,A({},q,R,{className:se,style:ce,title:ae,scope:f,onMouseEnter:W?re:void 0,onMouseLeave:W?ie:void 0,colSpan:1!==Y?Y:null,rowSpan:1!==Z?Z:null}),L,ue)}var nI=e.memo(tI);function oI(e,t,n,o,r){var i,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?i=o.left["rtl"===r?t:e]:"right"===l.fixed&&(a=o.right["rtl"===r?e:t]);var c=!1,u=!1,d=!1,p=!1,f=n[t+1],h=n[e-1],g=f&&!f.fixed||h&&!h.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==i)p=!(h&&"left"===h.fixed)&&g;else if(void 0!==a){d=!(f&&"right"===f.fixed)&&g}}else if(void 0!==i){c=!(f&&"left"===f.fixed)&&g}else if(void 0!==a){u=!(h&&"right"===h.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}var rI=e.createContext({});var iI=["children"];function aI(e){return e.children}aI.Row=function(t){var n=t.children,o=Lt(t,iI);return e.createElement("tr",o,n)},aI.Cell=function(t){var n=t.className,o=t.index,r=t.children,i=t.colSpan,a=void 0===i?1:i,s=t.rowSpan,l=t.align,c=FM(XM,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,p=e.useContext(rI),f=p.scrollColumnIndex,h=p.stickyOffsets,g=o+a-1+1===f?a+1:a,m=oI(o,o+g-1,p.flattenColumns,h,d);return e.createElement(nI,A({className:n,index:o,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:g,rowSpan:s,render:function(){return r}},m))};var sI=KM((function(t){"production"!==process.env.NODE_ENV&&GM(t);var n=t.children,o=t.stickyOffsets,r=t.flattenColumns,i=FM(XM,"prefixCls"),a=r.length-1,s=r[a],l=e.useMemo((function(){return{stickyOffsets:o,flattenColumns:r,scrollColumnIndex:null!=s&&s.scrollbar?a:null}}),[s,r,a,o]);return e.createElement(rI.Provider,{value:l},e.createElement("tfoot",{className:"".concat(i,"-summary")},n))})),lI=aI;function cI(e,t,n,o,r,i,a){e.push({record:t,indent:n,index:a});var s=i(t),l=null==r?void 0:r.has(s);if(t&&Array.isArray(t[o])&&l)for(var c=0;c<t[o].length;c+=1)cI(e,t[o][c],n+1,o,r,i,c)}function uI(t,n,o,r){var i=e.useMemo((function(){if(null!=o&&o.size){for(var e=[],i=0;i<(null==t?void 0:t.length);i+=1){cI(e,t[i],0,n,o,r,i)}return e}return null==t?void 0:t.map((function(e,t){return{record:e,indent:0,index:t}}))}),[t,n,o,r]);return i}function dI(e,t,n,o){var r,i=FM(XM,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,s=i.expandableType,l=i.expandedKeys,c=i.childrenColumnName,u=i.onTriggerExpand,d=i.rowExpandable,p=i.onRow,f=i.expandRowByClick,h=i.rowClassName,g="nest"===s,m="row"===s&&(!d||d(e)),v=m||g,b=l&&l.has(t),y=c&&e&&e[c],x=xi(u),C=null==p?void 0:p(e,n),w=null==C?void 0:C.onClick;"string"==typeof h?r=h:"function"==typeof h&&(r=h(e,n,o));var S=ZM(a);return J(J({},i),{},{columnsKey:S,nestExpandable:g,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:x,rowSupportExpand:m,expandable:v,rowProps:J(J({},C),{},{className:D(r,null==C?void 0:C.className),onClick:function(t){f&&v&&u(e,t);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null==w||w.apply(void 0,[t].concat(o))}})})}function pI(t){"production"!==process.env.NODE_ENV&&GM(t);var n=t.prefixCls,o=t.children,r=t.component,i=t.cellComponent,a=t.className,s=t.expanded,l=t.colSpan,c=t.isEmpty,u=FM(XM,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,p=u.fixHeader,f=u.fixColumn,h=u.componentWidth,g=u.horizonScroll,m=o;return(c?g&&h:f)&&(m=e.createElement("div",{style:{width:h-(p&&!c?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(n,"-expanded-row-fixed")},m)),e.createElement(r,{className:a,style:{display:s?null:"none"}},e.createElement(nI,{component:i,prefixCls:n,colSpan:l},m))}function fI(t,n,o,r,i){var a,s,l=t.record,c=t.prefixCls,u=t.columnsKey,d=t.fixedInfoList,p=t.expandIconColumnIndex,f=t.nestExpandable,h=t.indentSize,g=t.expandIcon,m=t.expanded,v=t.hasNestChildren,b=t.onTriggerExpand,y=u[o],x=d[o];return o===(p||0)&&f&&(a=e.createElement(e.Fragment,null,e.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),g({prefixCls:c,expanded:m,expandable:v,record:l,onExpand:b}))),n.onCell&&(s=n.onCell(l,i)),{key:y,fixedInfo:x,appendCellNode:a,additionalCellProps:s||{}}}function hI(t){"production"!==process.env.NODE_ENV&&GM(t);var n=t.className,o=t.style,r=t.record,i=t.index,a=t.renderIndex,s=t.rowKey,l=t.indent,c=void 0===l?0:l,u=t.rowComponent,d=t.cellComponent,p=t.scopeCellComponent,f=dI(r,s,i,c),h=f.prefixCls,g=f.flattenColumns,m=f.expandedRowClassName,v=f.expandedRowRender,b=f.rowProps,y=f.expanded,x=f.rowSupportExpand,C=e.useRef(!1);C.current||(C.current=y),"production"!==process.env.NODE_ENV&&GM(t);var w,S=m&&m(r,i,c),k=e.createElement(u,A({},b,{"data-row-key":s,className:D(n,"".concat(h,"-row"),"".concat(h,"-row-level-").concat(c),null==b?void 0:b.className,c>=1?S:""),style:J(J({},o),null==b?void 0:b.style)}),g.map((function(t,n){var o=t.render,s=t.dataIndex,l=t.className,u=fI(f,t,n,c,i),g=u.key,m=u.fixedInfo,v=u.appendCellNode,b=u.additionalCellProps;return e.createElement(nI,A({className:l,ellipsis:t.ellipsis,align:t.align,scope:t.rowScope,component:t.rowScope?p:d,prefixCls:h,key:g,record:r,index:i,renderIndex:a,dataIndex:s,render:o,shouldCellUpdate:t.shouldCellUpdate},m,{appendNode:v,additionalProps:b}))})));if(x&&(C.current||y)){var E=v(r,i,c+1,y);w=e.createElement(pI,{expanded:y,className:D("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(c+1),S),prefixCls:h,component:u,cellComponent:d,colSpan:g.length,isEmpty:!1},E)}return e.createElement(e.Fragment,null,k,w)}"production"!==process.env.NODE_ENV&&(hI.displayName="BodyRow");var gI=KM(hI);function mI(t){var n=t.columnKey,o=t.onColumnResize,r=e.useRef();return e.useEffect((function(){r.current&&o(n,r.current.offsetWidth)}),[]),e.createElement(ot,{data:n},e.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},e.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function vI(t){var n=t.prefixCls,o=t.columnsKey,r=t.onColumnResize;return e.createElement("tr",{"aria-hidden":"true",className:"".concat(n,"-measure-row"),style:{height:0,fontSize:0}},e.createElement(ot.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},o.map((function(t){return e.createElement(mI,{key:t,columnKey:t,onColumnResize:r})}))))}function bI(t){"production"!==process.env.NODE_ENV&&GM(t);var n,o=t.data,r=t.measureColumnWidth,i=FM(XM,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,s=i.getComponent,l=i.onColumnResize,c=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,p=i.childrenColumnName,f=i.emptyNode,h=uI(o,p,d,u),g=e.useRef({renderWithProps:!1}),m=s(["body","wrapper"],"tbody"),v=s(["body","row"],"tr"),b=s(["body","cell"],"td"),y=s(["body","cell"],"th");n=o.length?h.map((function(t,n){var o=t.record,r=t.indent,i=t.index,a=u(o,n);return e.createElement(gI,{key:a,rowKey:a,record:o,index:n,renderIndex:i,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:r})})):e.createElement(pI,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:v,cellComponent:b,colSpan:c.length,isEmpty:!0},f);var x=ZM(c);return e.createElement(QM.Provider,{value:g.current},e.createElement(m,{className:"".concat(a,"-tbody")},r&&e.createElement(vI,{prefixCls:a,columnsKey:x,onColumnResize:l}),n))}"production"!==process.env.NODE_ENV&&(bI.displayName="Body");var yI=KM(bI),xI=["expandable"],CI="RC_TABLE_INTERNAL_COL_DEFINE";var wI=["columnType"];function SI(t){for(var n=t.colWidths,o=t.columns,r=t.columCount,i=FM(XM,["tableLayout"]).tableLayout,a=[],s=!1,l=(r||o.length)-1;l>=0;l-=1){var c=n[l],u=o&&o[l],d=void 0,p=void 0;if(u&&(d=u[CI],"auto"===i&&(p=u.minWidth)),c||p||d||s){var f=d||{};f.columnType;var h=Lt(f,wI);a.unshift(e.createElement("col",A({key:l,style:{width:c,minWidth:p}},h))),s=!0}}return e.createElement("colgroup",null,a)}var kI=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var EI=e.forwardRef((function(t,n){"production"!==process.env.NODE_ENV&&GM(t);var o=t.className,r=t.noData,i=t.columns,a=t.flattenColumns,s=t.colWidths,l=t.columCount,c=t.stickyOffsets,u=t.direction,p=t.fixHeader,f=t.stickyTopOffset,h=t.stickyBottomOffset,g=t.stickyClassName,m=t.onScroll,v=t.maxContentScroll,b=t.children,y=Lt(t,kI),x=FM(XM,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=x.prefixCls,w=x.scrollbarSize,S=x.isSticky,k=(0,x.getComponent)(["header","table"],"table"),E=S&&!p?0:w,O=e.useRef(null),$=e.useCallback((function(e){de(n,e),de(O,e)}),[]);e.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(m({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var N=e.useMemo((function(){return a.every((function(e){return e.width}))}),[a]),M=a[a.length-1],I={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},P=d((function(){return E?[].concat(lt(i),[I]):i}),[E,i]),L=d((function(){return E?[].concat(lt(a),[I]):a}),[E,a]),j=d((function(){var e=c.right,t=c.left;return J(J({},c),{},{left:"rtl"===u?[].concat(lt(t.map((function(e){return e+E}))),[0]):t,right:"rtl"===u?e:[].concat(lt(e.map((function(e){return e+E}))),[0]),isSticky:S})}),[E,c,S]),A=function(e,t){return d((function(){for(var n=[],o=0;o<t;o+=1){var r=e[o];if(void 0===r)return null;n[o]=r}return n}),[e.join("_"),t])}(s,l);return e.createElement("div",{style:J({overflow:"hidden"},S?{top:f,bottom:h}:{}),ref:$,className:D(o,Q({},g,!!g))},e.createElement(k,{style:{tableLayout:"fixed",visibility:r||A?null:"hidden"}},(!r||!v||N)&&e.createElement(SI,{colWidths:A?[].concat(lt(A),[E]):[],columCount:l+1,columns:L}),b(J(J({},y),{},{stickyOffsets:j,columns:P,flattenColumns:L}))))}));"production"!==process.env.NODE_ENV&&(EI.displayName="FixedHolder");var OI=e.memo(EI),$I=function(t){var n,o=t.cells,r=t.stickyOffsets,i=t.flattenColumns,a=t.rowComponent,s=t.cellComponent,l=t.onHeaderRow,c=t.index,u=FM(XM,["prefixCls","direction"]),d=u.prefixCls,p=u.direction;l&&(n=l(o.map((function(e){return e.column})),c));var f=ZM(o.map((function(e){return e.column})));return e.createElement(a,n,o.map((function(t,n){var o,a=t.column,l=oI(t.colStart,t.colEnd,i,r,p);return a&&a.onHeaderCell&&(o=t.column.onHeaderCell(a)),e.createElement(nI,A({},t,{scope:a.title?t.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:s,prefixCls:d,key:f[n]},l,{additionalProps:o,rowType:"header"}))})))};"production"!==process.env.NODE_ENV&&($I.displayName="HeaderRow");var NI=KM((function(t){"production"!==process.env.NODE_ENV&&GM(t);var n=t.stickyOffsets,o=t.columns,r=t.flattenColumns,i=t.onHeaderRow,a=FM(XM,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=e.useMemo((function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o,a=n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,s=n.children;return s&&s.length>0&&(a=e(s,i,r+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a}));return a}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r<n;r+=1)o(r);return t}(o)}),[o]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),p=l(["header","cell"],"th");return e.createElement(u,{className:"".concat(s,"-thead")},c.map((function(t,o){return e.createElement($I,{key:o,flattenColumns:r,cells:t,stickyOffsets:n,rowComponent:d,cellComponent:p,onHeaderRow:i,index:o})})))}));function MI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var II=["children"],PI=["fixed"];function LI(t){return H(t).filter((function(t){return e.isValidElement(t)})).map((function(e){var t=e.key,n=e.props,o=n.children,r=J({key:t},Lt(n,II));return o&&(r.children=LI(o)),r}))}function jI(e){return e.filter((function(e){return e&&"object"===T(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?J(J({},e),{},{children:jI(t)}):e}))}function DI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===T(e)})).reduce((function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),s=n.children;return s&&s.length>0?[].concat(lt(e),lt(DI(s,a).map((function(e){return J({fixed:i},e)})))):[].concat(lt(e),[J(J({key:a},n),{},{fixed:i})])}),[])}function AI(t,n){var o=t.prefixCls,r=t.columns,i=t.children,a=t.expandable,s=t.expandedKeys,l=t.columnTitle,c=t.getRowKey,u=t.onTriggerExpand,d=t.expandIcon,p=t.rowExpandable,f=t.expandIconColumnIndex,h=t.direction,g=t.expandRowByClick,m=t.columnWidth,v=t.fixed,b=t.scrollWidth,y=t.clientWidth,x=e.useMemo((function(){return jI((r||LI(i)||[]).slice())}),[r,i]),C=e.useMemo((function(){if(a){var t=x.slice();if("production"!==process.env.NODE_ENV&&f>=0&&U(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!t.includes(zM)){var n=f||0;n>=0&&t.splice(n,0,zM)}"production"!==process.env.NODE_ENV&&t.filter((function(e){return e===zM})).length>1&&U(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var r=t.indexOf(zM);t=t.filter((function(e,t){return e!==zM||t===r}));var i,h=x[r];i="left"!==v&&!v||f?"right"!==v&&!v||f!==x.length?h?h.fixed:null:"right":"left";var b=Q(Q(Q(Q(Q(Q({},CI,{className:"".concat(o,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",i),"className","".concat(o,"-row-expand-icon-cell")),"width",m),"render",(function(t,n,r){var i=c(n,r),a=s.has(i),l=!p||p(n),f=d({prefixCls:o,expanded:a,expandable:l,record:n,onExpand:u});return g?e.createElement("span",{onClick:function(e){return e.stopPropagation()}},f):f}));return t.map((function(e){return e===zM?b:e}))}return"production"!==process.env.NODE_ENV&&x.includes(zM)&&U(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),x.filter((function(e){return e!==zM}))}),[a,x,c,s,d,h]),w=e.useMemo((function(){var e=C;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,C,h]),S=e.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),J({fixed:n},Lt(e,PI))}))}(DI(w)):DI(w)}),[w,h,b]),k=e.useMemo((function(){for(var e=-1,t=S.length-1;t>=0;t-=1){var n=S[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=S[o].fixed;if("left"!==r&&!0!==r)return!0}var i=S.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a<S.length;a+=1){if("right"!==S[a].fixed)return!0}return!1}),[S]),E=function(t,n,o){return e.useMemo((function(){if(n&&n>0){var e=0,r=0;t.forEach((function(t){var o=MI(n,t.width);o?e+=o:r+=1}));var i=Math.max(n,o),a=Math.max(i-e,r),s=r,l=a/r,c=0,u=t.map((function(e){var t=J({},e),o=MI(n,t.width);if(o)t.width=o;else{var r=Math.floor(l);t.width=1===s?a:r,a-=r,s-=1}return c+=t.width,t}));if(c<i){var d=i/c;a=i,u.forEach((function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n}))}return[u,Math.max(c,i)]}return[t,n]}),[t,n,o])}(S,b,y),O=bt(E,2),$=O[0],N=O[1];return[w,$,N,k]}function TI(t){var n=t.prefixCls,o=t.record,r=t.onExpand,i=t.expanded,a=t.expandable,s="".concat(n,"-row-expand-icon");if(!a)return e.createElement("span",{className:D(s,"".concat(n,"-row-spaced"))});return e.createElement("span",{className:D(s,Q(Q({},"".concat(n,"-row-expanded"),i),"".concat(n,"-row-collapsed"),!i)),onClick:function(e){r(o,e),e.stopPropagation()}})}function RI(t,n,o){var r=function(e){var t,n=e.expandable,o=Lt(e,xI);return"expandable"in e?t=J(J({},o),n):("production"!==process.env.NODE_ENV&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some((function(t){return t in e}))&&U(!1,"expanded related props have been moved into `expandable`."),t=o),!1===t.showExpandColumn&&(t.expandIconColumnIndex=-1),t}(t),i=r.expandIcon,a=r.expandedRowKeys,s=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,p=i||TI,f=r.childrenColumnName||"children",h=e.useMemo((function(){return c?"row":!!(t.expandable&&t.internalHooks===BM&&t.expandable.__PARENT_RENDER_ICON__||n.some((function(e){return e&&"object"===T(e)&&e[f]})))&&"nest"}),[!!c,n]),g=e.useState((function(){return s||(l?function(e,t,n){var o=[];return function e(r){(r||[]).forEach((function(r,i){o.push(t(r,i)),e(r[n])}))}(e),o}(n,o,f):[])})),m=bt(g,2),v=m[0],b=m[1],y=e.useMemo((function(){return new Set(a||v||[])}),[a,v]),x=e.useCallback((function(e){var t,r=o(e,n.indexOf(e)),i=y.has(r);i?(y.delete(r),t=lt(y)):t=[].concat(lt(y),[r]),b(t),u&&u(!i,e),d&&d(t)}),[o,y,n,u,d]);return"production"!==process.env.NODE_ENV&&c&&n.some((function(e){return Array.isArray(null==e?void 0:e[f])}))&&U(!1,"`expandedRowRender` should not use with nested Table"),[r,h,y,p,f,x]}function _I(e){var t=a(e),n=bt(u({}),2)[1],o=a(null),r=a([]);return l((function(){return function(){o.current=null}}),[]),[t.current,function(e){r.current.push(e);var i=Promise.resolve();o.current=i,i.then((function(){if(o.current===i){var e=r.current,a=t.current;r.current=[],e.forEach((function(e){t.current=e(t.current)})),o.current=null,a!==t.current&&n({})}}))}]}var zI=xt()?window:null;function BI(t){var n=t.className,o=t.children;return e.createElement("div",{className:n},o)}var HI=function(t,n){var o,r,i=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,l=t.container,c=FM(XM,"prefixCls"),u=(null===(o=i.current)||void 0===o?void 0:o.scrollWidth)||0,d=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,p=u&&d*(d/u),f=e.useRef(),h=bt(_I({scrollLeft:0,isHiddenScrollBar:!0}),2),g=h[0],m=h[1],v=e.useRef({delta:0,x:0}),b=bt(e.useState(!1),2),y=b[0],x=b[1],C=e.useRef(null);e.useEffect((function(){return function(){ht.cancel(C.current)}}),[]);var w=function(){x(!1)},S=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(y&&0!==n){var o=v.current.x+e.pageX-v.current.x-v.current.delta;o<=0&&(o=0),o+p>=d&&(o=d-p),a({scrollLeft:o/d*(u+2)}),v.current.x=e.pageX}else y&&x(!1)},k=function(){C.current=ht((function(){if(i.current){var e=eO(i.current).top,t=e+i.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:eO(l).top+l.clientHeight;t-md()<=n||e>=n-s?m((function(e){return J(J({},e),{},{isHiddenScrollBar:!0})})):m((function(e){return J(J({},e),{},{isHiddenScrollBar:!1})}))}}))},E=function(e){m((function(t){return J(J({},t),{},{scrollLeft:e/u*d||0})}))};return e.useImperativeHandle(n,(function(){return{setScrollLeft:E,checkScrollBarVisible:k}})),e.useEffect((function(){var e=tO(document.body,"mouseup",w,!1),t=tO(document.body,"mousemove",S,!1);return k(),function(){e.remove(),t.remove()}}),[p,y]),e.useEffect((function(){var e=tO(l,"scroll",k,!1),t=tO(window,"resize",k,!1);return function(){e.remove(),t.remove()}}),[l]),e.useEffect((function(){g.isHiddenScrollBar||m((function(e){var t=i.current;return t?J(J({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[g.isHiddenScrollBar]),u<=d||!p||g.isHiddenScrollBar?null:e.createElement("div",{style:{height:md(),width:d,bottom:s},className:"".concat(c,"-sticky-scroll")},e.createElement("div",{onMouseDown:function(e){e.persist(),v.current.delta=e.pageX-g.scrollLeft,v.current.x=0,x(!0),e.preventDefault()},ref:f,className:D("".concat(c,"-sticky-scroll-bar"),Q({},"".concat(c,"-sticky-scroll-bar-active"),y)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))},FI=e.forwardRef(HI),WI="rc-table",VI=[],KI={};function qI(){return"No Data"}function XI(t,n){var o=J({rowKey:"key",prefixCls:WI,emptyText:qI},t),r=o.prefixCls,i=o.className,s=o.rowClassName,c=o.style,u=o.data,p=o.rowKey,f=o.scroll,h=o.tableLayout,g=o.direction,m=o.title,v=o.footer,b=o.summary,y=o.caption,x=o.id,C=o.showHeader,w=o.components,S=o.emptyText,k=o.onRow,E=o.onHeaderRow,O=o.onScroll,$=o.internalHooks,N=o.transformColumns,M=o.internalRefs,I=o.tailor,P=o.getContainerWidth,L=o.sticky,j=o.rowHoverable,R=void 0===j||j,_=u||VI,z=!!_.length,B=$===BM;"production"!==process.env.NODE_ENV&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach((function(e){U(void 0===o[e],"`".concat(e,"` is removed, please use `onRow` instead."))})),U(!("getBodyWrapper"in o),"`getBodyWrapper` is deprecated, please use custom `components` instead."));var H=e.useCallback((function(e,t){return Mo(w,e)||t}),[w]),F=e.useMemo((function(){return"function"==typeof p?p:function(e){var t=e&&e[p];return"production"!==process.env.NODE_ENV&&U(void 0!==t,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),t}}),[p]),W=H(["body"]),V=function(){var t=bt(e.useState(-1),2),n=t[0],o=t[1],r=bt(e.useState(-1),2),i=r[0],a=r[1];return[n,i,e.useCallback((function(e,t){o(e),a(t)}),[])]}(),K=bt(V,3),q=K[0],X=K[1],G=K[2],Y=bt(RI(o,_,F),6),Z=Y[0],ee=Y[1],ne=Y[2],oe=Y[3],re=Y[4],ie=Y[5],ae=null==f?void 0:f.x,se=bt(e.useState(0),2),le=se[0],ue=se[1],de=bt(AI(J(J(J({},o),Z),{},{expandable:!!Z.expandedRowRender,columnTitle:Z.columnTitle,expandedKeys:ne,getRowKey:F,onTriggerExpand:ie,expandIcon:oe,expandIconColumnIndex:Z.expandIconColumnIndex,direction:g,scrollWidth:B&&I&&"number"==typeof ae?ae:null,clientWidth:le}),B?N:null),4),pe=de[0],fe=de[1],he=de[2],ge=de[3],me=null!=he?he:ae,ve=e.useMemo((function(){return{columns:pe,flattenColumns:fe}}),[pe,fe]),be=e.useRef(),ye=e.useRef(),xe=e.useRef(),Ce=e.useRef();e.useImperativeHandle(n,(function(){return{nativeElement:be.current,scrollTo:function(e){var t,n;if(xe.current instanceof HTMLElement){var o=e.index,r=e.top,i=e.key;if("number"!=typeof(n=r)||Number.isNaN(n)){var a,s=null!=i?i:F(_[o]);null===(a=xe.current.querySelector('[data-row-key="'.concat(s,'"]')))||void 0===a||a.scrollIntoView()}else{var l;null===(l=xe.current)||void 0===l||l.scrollTo({top:r})}}else null!==(t=xe.current)&&void 0!==t&&t.scrollTo&&xe.current.scrollTo(e)}}}));var we,Se,ke,Ee=e.useRef(),Oe=bt(e.useState(!1),2),$e=Oe[0],Ne=Oe[1],Me=bt(e.useState(!1),2),Ie=Me[0],Pe=Me[1],Le=bt(_I(new Map),2),je=Le[0],De=Le[1],Ae=ZM(fe).map((function(e){return je.get(e)})),Te=e.useMemo((function(){return Ae}),[Ae.join("_")]),Re=function(e,t,n){var o=d((function(){var o=t.length,r=function(n,o,r){for(var i=[],a=0,s=n;s!==o;s+=r)i.push(a),t[s].fixed&&(a+=e[s]||0);return i},i=r(0,o,1),a=r(o-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}}),[e,t,n]);return o}(Te,fe,g),_e=f&&JM(f.y),ze=f&&JM(me)||Boolean(Z.fixed),Be=ze&&fe.some((function(e){return e.fixed})),He=e.useRef(),Fe=function(t,n){var o="object"===T(t)?t:{},r=o.offsetHeader,i=void 0===r?0:r,a=o.offsetSummary,s=void 0===a?0:a,l=o.offsetScroll,c=void 0===l?0:l,u=o.getContainer,d=(void 0===u?function(){return zI}:u)()||zI,p=!!t;return e.useMemo((function(){return{isSticky:p,stickyClassName:p?"".concat(n,"-sticky-holder"):"",offsetHeader:i,offsetSummary:s,offsetScroll:c,container:d}}),[p,c,i,s,n,d])}(L,r),We=Fe.isSticky,Ve=Fe.offsetHeader,Ke=Fe.offsetSummary,qe=Fe.offsetScroll,Xe=Fe.stickyClassName,Ue=Fe.container,Ge=e.useMemo((function(){return null==b?void 0:b(_)}),[b,_]),Ye=(_e||We)&&e.isValidElement(Ge)&&Ge.type===aI&&Ge.props.fixed;_e&&(Se={overflowY:z?"scroll":"auto",maxHeight:f.y}),ze&&(we={overflowX:"auto"},_e||(Se={overflowY:"hidden"}),ke={width:!0===me?"auto":me,minWidth:"100%"});var Qe=e.useCallback((function(e,t){kl(be.current)&&De((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),Ze=bt(function(){var e=a(null),t=a();function n(){window.clearTimeout(t.current)}return l((function(){return n}),[]),[function(o){e.current=o,n(),t.current=window.setTimeout((function(){e.current=null,t.current=void 0}),100)},function(){return e.current}]}(),2),Je=Ze[0],et=Ze[1];function tt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var nt=xi((function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===g,i="number"==typeof o?o:n.scrollLeft,a=n||KI;et()&&et()!==a||(Je(a),tt(i,ye.current),tt(i,xe.current),tt(i,Ee.current),tt(i,null===(t=He.current)||void 0===t?void 0:t.setScrollLeft));var s=n||ye.current;if(s){var l="number"==typeof me?me:s.scrollWidth,c=s.clientWidth;if(l===c)return Ne(!1),void Pe(!1);r?(Ne(-i<l-c),Pe(-i>0)):(Ne(i>0),Pe(i<l-c))}})),rt=xi((function(e){nt(e),null==O||O(e)})),it=function(){var e;ze&&xe.current?nt({currentTarget:te(xe.current),scrollLeft:null===(e=xe.current)||void 0===e?void 0:e.scrollLeft}):(Ne(!1),Pe(!1))},at=e.useRef(!1);e.useEffect((function(){at.current&&it()}),[ze,u,pe.length]),e.useEffect((function(){at.current=!0}),[]);var st=bt(e.useState(0),2),lt=st[0],ct=st[1],ut=bt(e.useState(!0),2),dt=ut[0],pt=ut[1];e.useEffect((function(){I&&B||(xe.current instanceof Element?ct(vd(xe.current).width):ct(vd(Ce.current).width)),pt(ef("position","sticky"))}),[]),e.useEffect((function(){B&&M&&(M.body.current=xe.current)}));var ft,ht=e.useCallback((function(t){return e.createElement(e.Fragment,null,e.createElement(NI,t),"top"===Ye&&e.createElement(sI,t,Ge))}),[Ye,Ge]),gt=e.useCallback((function(t){return e.createElement(sI,t,Ge)}),[Ge]),mt=H(["table"],"table"),vt=e.useMemo((function(){return h||(Be?"max-content"===me?"auto":"fixed":_e||We||fe.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[_e,Be,fe,h,We]),yt={colWidths:Te,columCount:fe.length,stickyOffsets:Re,onHeaderRow:E,fixHeader:_e,scroll:f},xt=e.useMemo((function(){return z?null:"function"==typeof S?S():S}),[z,S]),Ct=e.createElement(yI,{data:_,measureColumnWidth:_e||ze||We}),wt=e.createElement(SI,{colWidths:fe.map((function(e){return e.width})),columns:fe}),St=null!=y?e.createElement("caption",{className:"".concat(r,"-caption")},y):void 0,kt=zs(o,{data:!0}),Et=zs(o,{aria:!0});if(_e||We){var Ot;"function"==typeof W?(Ot=W(_,{scrollbarSize:lt,ref:xe,onScroll:nt}),yt.colWidths=fe.map((function(e,t){var n=e.width,r=t===fe.length-1?n-lt:n;return"number"!=typeof r||Number.isNaN(r)?("production"!==process.env.NODE_ENV&&U(0===o.columns.length,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r}))):Ot=e.createElement("div",{style:J(J({},we),Se),onScroll:rt,ref:xe,className:D("".concat(r,"-body"))},e.createElement(mt,A({style:J(J({},ke),{},{tableLayout:vt})},Et),St,wt,Ct,!Ye&&Ge&&e.createElement(sI,{stickyOffsets:Re,flattenColumns:fe},Ge)));var $t=J(J(J({noData:!_.length,maxContentScroll:ze&&"max-content"===me},yt),ve),{},{direction:g,stickyClassName:Xe,onScroll:nt});ft=e.createElement(e.Fragment,null,!1!==C&&e.createElement(OI,A({},$t,{stickyTopOffset:Ve,className:"".concat(r,"-header"),ref:ye}),ht),Ot,Ye&&"top"!==Ye&&e.createElement(OI,A({},$t,{stickyBottomOffset:Ke,className:"".concat(r,"-summary"),ref:Ee}),gt),We&&xe.current&&xe.current instanceof Element&&e.createElement(FI,{ref:He,offsetScroll:qe,scrollBodyRef:xe,onScroll:nt,container:Ue}))}else ft=e.createElement("div",{style:J(J({},we),Se),className:D("".concat(r,"-content")),onScroll:nt,ref:xe},e.createElement(mt,A({style:J(J({},ke),{},{tableLayout:vt})},Et),St,wt,!1!==C&&e.createElement(NI,A({},yt,ve)),Ct,Ge&&e.createElement(sI,{stickyOffsets:Re,flattenColumns:fe},Ge)));var Nt=e.createElement("div",A({className:D(r,i,Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},"".concat(r,"-rtl"),"rtl"===g),"".concat(r,"-ping-left"),$e),"".concat(r,"-ping-right"),Ie),"".concat(r,"-layout-fixed"),"fixed"===h),"".concat(r,"-fixed-header"),_e),"".concat(r,"-fixed-column"),Be),"".concat(r,"-fixed-column-gapped"),Be&&ge),"".concat(r,"-scroll-horizontal"),ze),"".concat(r,"-has-fix-left"),fe[0]&&fe[0].fixed),"".concat(r,"-has-fix-right"),fe[fe.length-1]&&"right"===fe[fe.length-1].fixed)),style:c,id:x,ref:be},kt),m&&e.createElement(BI,{className:"".concat(r,"-title")},m(_)),e.createElement("div",{ref:Ce,className:"".concat(r,"-container")},ft),v&&e.createElement(BI,{className:"".concat(r,"-footer")},v(_)));ze&&(Nt=e.createElement(ot,{onResize:function(e){var t,n=e.width;null===(t=He.current)||void 0===t||t.checkScrollBarVisible();var o=be.current?be.current.offsetWidth:n;B&&P&&be.current&&(o=P(be.current,o)||o),o!==le&&(it(),ue(o))}},Nt));var Mt=function(e,t,n){var o=e.map((function(o,r){return oI(r,r,e,t,n)}));return ce((function(){return o}),[o],(function(e,t){return!jt(e,t)}))}(fe,Re,g),It=e.useMemo((function(){return{scrollX:me,prefixCls:r,getComponent:H,scrollbarSize:lt,direction:g,fixedInfoList:Mt,isSticky:We,supportSticky:dt,componentWidth:le,fixHeader:_e,fixColumn:Be,horizonScroll:ze,tableLayout:vt,rowClassName:s,expandedRowClassName:Z.expandedRowClassName,expandIcon:oe,expandableType:ee,expandRowByClick:Z.expandRowByClick,expandedRowRender:Z.expandedRowRender,onTriggerExpand:ie,expandIconColumnIndex:Z.expandIconColumnIndex,indentSize:Z.indentSize,allColumnsFixedLeft:fe.every((function(e){return"left"===e.fixed})),emptyNode:xt,columns:pe,flattenColumns:fe,onColumnResize:Qe,hoverStartRow:q,hoverEndRow:X,onHover:G,rowExpandable:Z.rowExpandable,onRow:k,getRowKey:F,expandedKeys:ne,childrenColumnName:re,rowHoverable:R}}),[me,r,H,lt,g,Mt,We,dt,le,_e,Be,ze,vt,s,Z.expandedRowClassName,oe,ee,Z.expandRowByClick,Z.expandedRowRender,ie,Z.expandIconColumnIndex,Z.indentSize,xt,pe,fe,Qe,q,X,G,Z.rowExpandable,k,F,ne,re,R]);return e.createElement(XM.Provider,{value:It},Nt)}var UI=e.forwardRef(XI);function GI(e){return VM(UI,e)}"production"!==process.env.NODE_ENV&&(UI.displayName="Table");var YI=GI();YI.EXPAND_COLUMN=zM,YI.INTERNAL_HOOKS=BM,YI.Column=function(e){return null},YI.ColumnGroup=function(e){return null},YI.Summary=lI;var QI=HM(null),ZI=HM(null);function JI(t){var n=t.rowInfo,o=t.column,r=t.colIndex,i=t.indent,a=t.index,s=t.component,l=t.renderIndex,c=t.record,u=t.style,d=t.className,p=t.inverse,f=t.getHeight,h=o.render,g=o.dataIndex,m=o.className,v=o.width,b=FM(ZI,["columnsOffset"]).columnsOffset,y=fI(n,o,r,i,a),x=y.key,C=y.fixedInfo,w=y.appendCellNode,S=y.additionalCellProps,k=S.style,E=S.colSpan,O=void 0===E?1:E,$=S.rowSpan,N=void 0===$?1:$,M=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,O,b),I=O>1?v-M:0,P=J(J(J({},k),u),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:I,pointerEvents:"auto"}),L=e.useMemo((function(){return p?N<=1:0===O||0===N||N>1}),[N,O,p]);L?P.visibility="hidden":p&&(P.height=null==f?void 0:f(N));var j=L?function(){return null}:h,T={};return 0!==N&&0!==O||(T.rowSpan=1,T.colSpan=1),e.createElement(nI,A({className:D(m,d),ellipsis:o.ellipsis,align:o.align,scope:o.rowScope,component:s,prefixCls:n.prefixCls,key:x,record:c,index:a,renderIndex:l,dataIndex:g,render:j,shouldCellUpdate:o.shouldCellUpdate},C,{appendNode:w,additionalProps:J(J({},S),{},{style:P},T)}))}var eP=["data","index","className","rowKey","style","extra","getHeight"],tP=e.forwardRef((function(t,n){var o,r=t.data,i=t.index,a=t.className,s=t.rowKey,l=t.style,c=t.extra,u=t.getHeight,d=Lt(t,eP),p=r.record,f=r.indent,h=r.index,g=FM(XM,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=g.scrollX,v=g.flattenColumns,b=g.prefixCls,y=g.fixColumn,x=g.componentWidth,C=FM(QI,["getComponent"]).getComponent,w=dI(p,s,i,f),S=C(["body","row"],"div"),k=C(["body","cell"],"div"),E=w.rowSupportExpand,O=w.expanded,$=w.rowProps,N=w.expandedRowRender,M=w.expandedRowClassName;if(E&&O){var I=N(p,i,f+1,O),P=null==M?void 0:M(p,i,f),L={};y&&(L={style:Q({},"--virtual-width","".concat(x,"px"))});var j="".concat(b,"-expanded-row-cell");o=e.createElement(S,{className:D("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(f+1),P)},e.createElement(nI,{component:k,prefixCls:b,className:D(j,Q({},"".concat(j,"-fixed"),y)),additionalProps:L},I))}var T=J(J({},l),{},{width:m});c&&(T.position="absolute",T.pointerEvents="none");var R=e.createElement(S,A({},$,d,{"data-row-key":s,ref:E?null:n,className:D(a,"".concat(b,"-row"),null==$?void 0:$.className,Q({},"".concat(b,"-row-extra"),c)),style:J(J({},T),null==$?void 0:$.style)}),v.map((function(t,n){return e.createElement(JI,{key:n,component:k,rowInfo:w,column:t,colIndex:n,indent:f,index:i,renderIndex:h,record:p,inverse:c,getHeight:u})})));return E?e.createElement("div",{ref:n},R,o):R})),nP=KM(tP);"production"!==process.env.NODE_ENV&&(nP.displayName="BodyLine");var oP=e.forwardRef((function(t,n){var o=t.data,r=t.onScroll,i=FM(XM,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX"]),a=i.flattenColumns,s=i.onColumnResize,l=i.getRowKey,c=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,p=i.scrollX,f=FM(QI),h=f.sticky,g=f.scrollY,m=f.listItemHeight,v=f.getComponent,b=f.onScroll,y=e.useRef(),x=uI(o,d,c,l),C=e.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),w=e.useMemo((function(){return C.map((function(e){return e[2]}))}),[C]);e.useEffect((function(){C.forEach((function(e){var t=bt(e,2),n=t[0],o=t[1];s(n,o)}))}),[C]),e.useImperativeHandle(n,(function(){var e,t={scrollTo:function(e){var t;null===(t=y.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=y.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=y.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=y.current)||void 0===t||t.scrollTo({left:e})}}),t}));var S=function(e,t){var n,o=null===(n=x[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},k=e.useMemo((function(){return{columnsOffset:w}}),[w]),E="".concat(u,"-tbody"),O=v(["body","wrapper"]),$={};return h&&($.position="sticky",$.bottom=0,"object"===T(h)&&h.offsetScroll&&($.bottom=h.offsetScroll)),e.createElement(ZI.Provider,{value:k},e.createElement(Fg,{fullHeight:!1,ref:y,prefixCls:"".concat(E,"-virtual"),styles:{horizontalScrollBar:$},className:E,height:g,itemHeight:m||24,data:x,itemKey:function(e){return l(e.record)},component:O,scrollWidth:p,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=y.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:b,extraRender:function(t){var n=t.start,o=t.end,r=t.getSize,i=t.offsetY;if(o<0)return null;for(var s=a.filter((function(e){return 0===S(e,n)})),c=n,u=function(e){if(s=s.filter((function(t){return 0===S(t,e)})),!s.length)return c=e,1},d=n;d>=0&&!u(d);d-=1);for(var p=a.filter((function(e){return 1!==S(e,o)})),f=o,h=function(e){if(p=p.filter((function(t){return 1!==S(t,e)})),!p.length)return f=Math.max(e-1,o),1},g=o;g<x.length&&!h(g);g+=1);for(var m=[],v=function(e){if(!x[e])return 1;a.some((function(t){return S(t,e)>1}))&&m.push(e)},b=c;b<=f;b+=1)v(b);var y=m.map((function(t){var n=x[t],o=l(n.record,t),a=r(o);return e.createElement(nP,{key:t,data:n,rowKey:o,index:t,style:{top:-i+a.top},extra:!0,getHeight:function(e){var n=t+e-1,i=l(x[n].record,n),a=r(o,i);return a.bottom-a.top}})}));return y}},(function(t,n,o){var r=l(t.record,n);return e.createElement(nP,{data:t,rowKey:r,index:n,style:o.style})})))})),rP=KM(oP);"production"!==process.env.NODE_ENV&&(rP.displayName="ResponseGrid");var iP=function(t,n){var o=n.ref,r=n.onScroll;return e.createElement(rP,{ref:o,data:t,onScroll:r})};function aP(t,n){var o=t.data,r=t.columns,i=t.scroll,a=t.sticky,s=t.prefixCls,l=void 0===s?WI:s,c=t.className,u=t.listItemHeight,d=t.components,p=t.onScroll,f=i||{},h=f.x,g=f.y;"number"!=typeof h&&("production"!==process.env.NODE_ENV&&U(!h,"`scroll.x` in virtual table must be number."),h=1),"number"!=typeof g&&(g=500,"production"!==process.env.NODE_ENV&&U(!1,"`scroll.y` in virtual table must be number."));var m=xi((function(e,t){return Mo(d,e)||t})),v=xi(p),b=e.useMemo((function(){return{sticky:a,scrollY:g,listItemHeight:u,getComponent:m,onScroll:v}}),[a,g,u,m,v]);return e.createElement(QI.Provider,{value:b},e.createElement(YI,A({},t,{className:D(c,"".concat(l,"-virtual")),scroll:J(J({},i),{},{x:h}),components:J(J({},d),{},{body:null!=o&&o.length?iP:void 0}),columns:r,internalHooks:BM,tailor:!0,ref:n})))}var sP=e.forwardRef(aP);function lP(e){return VM(sP,e)}"production"!==process.env.NODE_ENV&&(sP.displayName="VirtualTable"),lP();var cP=e.createContext(null),uP=function(t){for(var n=t.prefixCls,o=t.level,r=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l<o;l+=1)s.push(e.createElement("span",{key:l,className:D(a,Q(Q({},"".concat(a,"-start"),r[l]),"".concat(a,"-end"),i[l]))}));return e.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)},dP=e.memo(uP),pP=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],fP="open",hP="close",gP=function(){Xe(n,e.Component);var t=Ze(n);function n(){var o;We(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Q(Ye(o=t.call.apply(t,[this].concat(i))),"state",{dragNodeHighlight:!1}),Q(Ye(o),"selectHandle",void 0),Q(Ye(o),"cacheIndent",void 0),Q(Ye(o),"onSelectorClick",(function(e){(0,o.props.context.onNodeClick)(e,rk(o.props)),o.isSelectable()?o.onSelect(e):o.onCheck(e)})),Q(Ye(o),"onSelectorDoubleClick",(function(e){(0,o.props.context.onNodeDoubleClick)(e,rk(o.props))})),Q(Ye(o),"onSelect",(function(e){o.isDisabled()||(0,o.props.context.onNodeSelect)(e,rk(o.props))})),Q(Ye(o),"onCheck",(function(e){if(!o.isDisabled()){var t=o.props,n=t.disableCheckbox,r=t.checked,i=o.props.context.onNodeCheck;if(o.isCheckable()&&!n){var a=!r;i(e,rk(o.props),a)}}})),Q(Ye(o),"onMouseEnter",(function(e){(0,o.props.context.onNodeMouseEnter)(e,rk(o.props))})),Q(Ye(o),"onMouseLeave",(function(e){(0,o.props.context.onNodeMouseLeave)(e,rk(o.props))})),Q(Ye(o),"onContextMenu",(function(e){(0,o.props.context.onNodeContextMenu)(e,rk(o.props))})),Q(Ye(o),"onDragStart",(function(e){var t=o.props.context.onNodeDragStart;e.stopPropagation(),o.setState({dragNodeHighlight:!0}),t(e,Ye(o));try{e.dataTransfer.setData("text/plain","")}catch(e){}})),Q(Ye(o),"onDragEnter",(function(e){var t=o.props.context.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),t(e,Ye(o))})),Q(Ye(o),"onDragOver",(function(e){var t=o.props.context.onNodeDragOver;e.preventDefault(),e.stopPropagation(),t(e,Ye(o))})),Q(Ye(o),"onDragLeave",(function(e){var t=o.props.context.onNodeDragLeave;e.stopPropagation(),t(e,Ye(o))})),Q(Ye(o),"onDragEnd",(function(e){var t=o.props.context.onNodeDragEnd;e.stopPropagation(),o.setState({dragNodeHighlight:!1}),t(e,Ye(o))})),Q(Ye(o),"onDrop",(function(e){var t=o.props.context.onNodeDrop;e.preventDefault(),e.stopPropagation(),o.setState({dragNodeHighlight:!1}),t(e,Ye(o))})),Q(Ye(o),"onExpand",(function(e){var t=o.props,n=t.loading,r=t.context.onNodeExpand;n||r(e,rk(o.props))})),Q(Ye(o),"setSelectHandle",(function(e){o.selectHandle=e})),Q(Ye(o),"getNodeState",(function(){var e=o.props.expanded;return o.isLeaf()?null:e?fP:hP})),Q(Ye(o),"hasChildren",(function(){var e=o.props.eventKey;return!!((GS(o.props.context.keyEntities,e)||{}).children||[]).length})),Q(Ye(o),"isLeaf",(function(){var e=o.props,t=e.isLeaf,n=e.loaded,r=o.props.context.loadData,i=o.hasChildren();return!1!==t&&(t||!r&&!i||r&&n&&!i)})),Q(Ye(o),"isDisabled",(function(){var e=o.props.disabled;return!(!o.props.context.disabled&&!e)})),Q(Ye(o),"isCheckable",(function(){var e=o.props.checkable,t=o.props.context.checkable;return!(!t||!1===e)&&t})),Q(Ye(o),"syncLoadData",(function(e){var t=e.expanded,n=e.loading,r=e.loaded,i=o.props.context,a=i.loadData,s=i.onNodeLoad;n||a&&t&&!o.isLeaf()&&!r&&s(rk(o.props))})),Q(Ye(o),"isDraggable",(function(){var e=o.props,t=e.data,n=e.context.draggable;return!(!n||n.nodeDraggable&&!n.nodeDraggable(t))})),Q(Ye(o),"renderDragHandler",(function(){var t=o.props.context,n=t.draggable,r=t.prefixCls;return null!=n&&n.icon?e.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null})),Q(Ye(o),"renderSwitcherIconDom",(function(e){var t=o.props.switcherIcon,n=o.props.context.switcherIcon,r=t||n;return"function"==typeof r?r(J(J({},o.props),{},{isLeaf:e})):r})),Q(Ye(o),"renderSwitcher",(function(){var t=o.props.expanded,n=o.props.context.prefixCls;if(o.isLeaf()){var r=o.renderSwitcherIconDom(!0);return!1!==r?e.createElement("span",{className:D("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var i=D("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?fP:hP)),a=o.renderSwitcherIconDom(!1);return!1!==a?e.createElement("span",{onClick:o.onExpand,className:i},a):null})),Q(Ye(o),"renderCheckbox",(function(){var t=o.props,n=t.checked,r=t.halfChecked,i=t.disableCheckbox,a=o.props.context.prefixCls,s=o.isDisabled(),l=o.isCheckable();if(!l)return null;var c="boolean"!=typeof l?l:null;return e.createElement("span",{className:D("".concat(a,"-checkbox"),n&&"".concat(a,"-checkbox-checked"),!n&&r&&"".concat(a,"-checkbox-indeterminate"),(s||i)&&"".concat(a,"-checkbox-disabled")),onClick:o.onCheck},c)})),Q(Ye(o),"renderIcon",(function(){var t=o.props.loading,n=o.props.context.prefixCls;return e.createElement("span",{className:D("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(o.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})})),Q(Ye(o),"renderSelector",(function(){var t,n,r=o.state.dragNodeHighlight,i=o.props,a=i.title,s=void 0===a?"---":a,l=i.selected,c=i.icon,u=i.loading,d=i.data,p=o.props.context,f=p.prefixCls,h=p.showIcon,g=p.icon,m=p.loadData,v=p.titleRender,b=o.isDisabled(),y="".concat(f,"-node-content-wrapper");if(h){var x=c||g;t=x?e.createElement("span",{className:D("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof x?x(o.props):x):o.renderIcon()}else m&&u&&(t=o.renderIcon());n="function"==typeof s?s(d):v?v(d):s;var C=e.createElement("span",{className:"".concat(f,"-title")},n);return e.createElement("span",{ref:o.setSelectHandle,title:"string"==typeof s?s:"",className:D("".concat(y),"".concat(y,"-").concat(o.getNodeState()||"normal"),!b&&(l||r)&&"".concat(f,"-node-selected")),onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,onContextMenu:o.onContextMenu,onClick:o.onSelectorClick,onDoubleClick:o.onSelectorDoubleClick},t,C,o.renderDropIndicator())})),Q(Ye(o),"renderDropIndicator",(function(){var e=o.props,t=e.disabled,n=e.eventKey,r=o.props.context,i=r.draggable,a=r.dropLevelOffset,s=r.dropPosition,l=r.prefixCls,c=r.indent,u=r.dropIndicatorRender,d=r.dragOverNodeKey,p=r.direction,f=!t&&!!i&&d===n,h=null!=c?c:o.cacheIndent;return o.cacheIndent=c,f?u({dropPosition:s,dropLevelOffset:a,indent:h,prefixCls:l,direction:p}):null})),o}return Ke(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var t,n=this.props,o=n.eventKey,r=n.className,i=n.style,a=n.dragOver,s=n.dragOverGapTop,l=n.dragOverGapBottom,c=n.isLeaf,u=n.isStart,d=n.isEnd,p=n.expanded,f=n.selected,h=n.checked,g=n.halfChecked,m=n.loading,v=n.domRef,b=n.active;n.data;var y=n.onMouseMove,x=n.selectable,C=Lt(n,pP),w=this.props.context,S=w.prefixCls,k=w.filterTreeNode,E=w.keyEntities,O=w.dropContainerKey,$=w.dropTargetKey,N=w.draggingNodeKey,M=this.isDisabled(),I=zs(C,{aria:!0,data:!0}),P=(GS(E,o)||{}).level,L=d[d.length-1],j=this.isDraggable(),T=!M&&j,R=N===o,_=void 0!==x?{"aria-selected":!!x}:void 0;return e.createElement("div",A({ref:v,className:D(r,"".concat(S,"-treenode"),(t={},Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(t,"".concat(S,"-treenode-disabled"),M),"".concat(S,"-treenode-switcher-").concat(p?"open":"close"),!c),"".concat(S,"-treenode-checkbox-checked"),h),"".concat(S,"-treenode-checkbox-indeterminate"),g),"".concat(S,"-treenode-selected"),f),"".concat(S,"-treenode-loading"),m),"".concat(S,"-treenode-active"),b),"".concat(S,"-treenode-leaf-last"),L),"".concat(S,"-treenode-draggable"),j),"dragging",R),Q(Q(Q(Q(Q(Q(t,"drop-target",$===o),"drop-container",O===o),"drag-over",!M&&a),"drag-over-gap-top",!M&&s),"drag-over-gap-bottom",!M&&l),"filter-node",k&&k(rk(this.props))))),style:i,draggable:T,"aria-grabbed":R,onDragStart:T?this.onDragStart:void 0,onDragEnter:j?this.onDragEnter:void 0,onDragOver:j?this.onDragOver:void 0,onDragLeave:j?this.onDragLeave:void 0,onDrop:j?this.onDrop:void 0,onDragEnd:j?this.onDragEnd:void 0,onMouseMove:y},_,I),e.createElement(dP,{prefixCls:S,level:P,isStart:u,isEnd:d}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(),mP=function(t){return e.createElement(cP.Consumer,null,(function(n){return e.createElement(gP,A({},t,{context:n}))}))};function vP(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function bP(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function yP(e){return e.split("-")}function xP(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var o=t.key,r=t.children;n.push(o),e(r)}))}(GS(t,e).children),n}function CP(e){if(e.parent){var t=yP(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function wP(e,t,n,o,r,i,a,s,l,c){var u,d=e.clientX,p=e.clientY,f=e.target.getBoundingClientRect(),h=f.top,g=f.height,m=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o,v=l.filter((function(e){var t;return null===(t=s[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=GS(s,n.props.eventKey);if(p<h+g/2){var y=a.findIndex((function(e){return e.key===b.key})),x=a[y<=0?0:y-1].key;b=GS(s,x)}var C=b.key,w=b,S=b.key,k=0,E=0;if(!v.includes(C))for(var O=0;O<m&&CP(b);O+=1)b=b.parent,E+=1;var $,N=t.props.data,M=b.node,I=!0;return $=yP(b.pos),0===Number($[$.length-1])&&0===b.level&&p<h+g/2&&i({dragNode:N,dropNode:M,dropPosition:-1})&&b.key===n.props.eventKey?k=-1:(w.children||[]).length&&v.includes(S)?i({dragNode:N,dropNode:M,dropPosition:0})?k=0:I=!1:0===E?m>-1.5?i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1:i({dragNode:N,dropNode:M,dropPosition:0})?k=0:i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1:i({dragNode:N,dropNode:M,dropPosition:1})?k=1:I=!1,{dropPosition:k,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:S,dropContainerKey:0===k?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:I}}function SP(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function kP(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==T(e))return U(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function EP(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=GS(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach((function(e){o(e)})),lt(n)}mP.displayName="TreeNode",mP.isTreeNode=1;const OP={},$P="SELECT_ALL",NP="SELECT_INVERT",MP="SELECT_NONE",IP=[],PP=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(lt(n),lt(PP(e,t[e]))))})),n},LP=(t,n)=>{const{preserveSelectedRowKeys:o,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:p,onSelectNone:f,onSelectMultiple:g,columnWidth:m,type:v,selections:b,fixed:y,renderCell:x,hideSelectAll:C,checkStrictly:w=!0}=n||{},{prefixCls:S,data:k,pageData:E,getRecordByKey:O,getRowKey:$,expandType:N,childrenColumnName:M,locale:I,getPopupContainer:P}=t,L=zo("Table"),[j,A]=function(e){const[t,n]=u(null);return[h(((o,r,i)=>{const a=null!=t?t:o,s=Math.min(a||0,o),l=Math.max(a||0,o),c=r.slice(s,l+1).map((t=>e(t))),u=c.some((e=>!i.has(e))),d=[];return c.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?l:null),d}),[t]),e=>{n(e)}]}((e=>e)),[T,R]=Si(r||i||IP,{value:r}),_=e.useRef(new Map),z=h((e=>{if(o){const t=new Map;e.forEach((e=>{let n=O(e);!n&&_.current.has(e)&&(n=_.current.get(e)),t.set(e,n)})),_.current=t}}),[O,o]);e.useEffect((()=>{z(T)}),[T]);const B=d((()=>PP(M,E)),[M,E]),{keyEntities:H}=d((()=>{if(w)return{keyEntities:null};let e=k;if(o){const t=new Set(B.map(((e,t)=>$(e,t)))),n=Array.from(_.current).reduce(((e,n)=>{let[o,r]=n;return t.has(o)?e:e.concat(r)}),[]);e=[].concat(lt(e),lt(n))}return nk(e,{externalGetKey:$,childrenPropName:M})}),[k,$,w,M,o,B]),F=d((()=>{const e=new Map;return B.forEach(((t,n)=>{const o=$(t,n),r=(a?a(t):null)||{};e.set(o,r),"production"!==process.env.NODE_ENV&&L(!("checked"in r||"defaultChecked"in r),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")})),e}),[B,$,a]),W=h((e=>{var t;return!!(null===(t=F.get($(e)))||void 0===t?void 0:t.disabled)}),[F,$]),[V,K]=d((()=>{if(w)return[T||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=sk(T,!0,H,W);return[e||[],t]}),[T,w,H,W]),q=d((()=>{const e="radio"===v?V.slice(0,1):V;return new Set(e)}),[V,v]),X=d((()=>"radio"===v?new Set:new Set(K)),[K,v]);e.useEffect((()=>{n||R(IP)}),[!!n]);const U=h(((e,t)=>{let n,r;z(e),o?(n=e,r=e.map((e=>_.current.get(e)))):(n=[],r=[],e.forEach((e=>{const t=O(e);void 0!==t&&(n.push(e),r.push(t))}))),R(n),null==s||s(n,r,{type:t})}),[R,O,s,o]),G=h(((e,t,n,o)=>{if(l){const r=n.map((e=>O(e)));l(O(e),t,r,o)}U(n,"single")}),[l,O,U]),Y=d((()=>{if(!b||C)return null;return(!0===b?[$P,NP,MP]:b).map((e=>e===$P?{key:"all",text:I.selectionAll,onSelect(){U(k.map(((e,t)=>$(e,t))).filter((e=>{const t=F.get(e);return!(null==t?void 0:t.disabled)||q.has(e)})),"all")}}:e===NP?{key:"invert",text:I.selectInvert,onSelect(){const e=new Set(q);E.forEach(((t,n)=>{const o=$(t,n),r=F.get(o);(null==r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);p&&(L.deprecated(!1,"onSelectInvert","onChange"),p(t)),U(t,"invert")}}:e===MP?{key:"none",text:I.selectNone,onSelect(){null==f||f(),U(Array.from(q).filter((e=>{const t=F.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(r)),A(null)}})))}),[b,q,E,$,p,U]),Q=h((t=>{var o;if(!n)return"production"!==process.env.NODE_ENV&&L(!t.includes(OP),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),t.filter((e=>e!==OP));let r=lt(t);const i=new Set(q),a=B.map($).filter((e=>!F.get(e).disabled)),s=a.every((e=>i.has(e))),l=a.some((e=>i.has(e))),u=()=>{const e=[];s?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==c||c(!s,t.map((e=>O(e))),e.map((e=>O(e)))),U(t,"all"),A(null)};let d,p,f;if("radio"!==v){let t;if(Y){const n={getPopupContainer:P,items:Y.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!=n?n:t,onClick:()=>{null==r||r(a)},label:o}}))};t=e.createElement("div",{className:`${S}-selection-extra`},e.createElement(PE,{menu:n,getPopupContainer:P},e.createElement("span",null,e.createElement(Vm,null))))}const n=B.map(((e,t)=>{const n=$(e,t),o=F.get(n)||{};return Object.assign({checked:i.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),o=!!n.length&&n.length===B.length,r=o&&n.every((e=>{let{checked:t}=e;return t})),c=o&&n.some((e=>{let{checked:t}=e;return t}));p=e.createElement(vk,{checked:o?r:!!B.length&&s,indeterminate:o?!r&&c:!s&&l,onChange:u,disabled:0===B.length||o,"aria-label":t?"Custom selection":"Select all",skipGroup:!0}),d=!C&&e.createElement("div",{className:`${S}-selection`},p,t)}f="radio"===v?(t,n,o)=>{const r=$(n,o),a=i.has(r);return{node:e.createElement(gC,Object.assign({},F.get(r),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(r)||G(r,!0,[r],e.nativeEvent)}})),checked:a}}:(t,n,o)=>{var r;const s=$(n,o),l=i.has(s),c=X.has(s),u=F.get(s);let d;return"nest"===N?(d=c,"production"!==process.env.NODE_ENV&&L("boolean"!=typeof(null==u?void 0:u.indeterminate),"usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):d=null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:e.createElement(vk,Object.assign({},u,{indeterminate:d,checked:l,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,o=a.findIndex((e=>e===s)),r=V.some((e=>a.includes(e)));if(n&&w&&r){const e=j(o,a,i),t=Array.from(i);null==g||g(!l,t.map((e=>O(e))),e.map((e=>O(e)))),U(t,"multiple")}else{const e=V;if(w){const n=l?vP(e,s):bP(e,s);G(s,!l,n,t)}else{const n=sk([].concat(lt(e),[s]),!0,H,W),{checkedKeys:o,halfCheckedKeys:r}=n;let i=o;if(l){const e=new Set(o);e.delete(s),i=sk(Array.from(e),{checked:!1,halfCheckedKeys:r},H,W).checkedKeys}G(s,!l,i,t)}}A(l?null:o)}})),checked:l}};if(!r.includes(OP))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[CI])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,OP].concat(lt(t))}else r=[OP].concat(lt(r));const h=r.indexOf(OP);"production"!==process.env.NODE_ENV&&L(r.filter((e=>e===OP)).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),r=r.filter(((e,t)=>e!==OP||t===h));const k=r[h-1],E=r[h+1];let M=y;void 0===M&&(void 0!==(null==E?void 0:E.fixed)?M=E.fixed:void 0!==(null==k?void 0:k.fixed)&&(M=k.fixed)),M&&k&&"EXPAND_COLUMN"===(null===(o=k[CI])||void 0===o?void 0:o.columnType)&&void 0===k.fixed&&(k.fixed=M);const I=D(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:b&&"checkbox"===v}),T={fixed:M,width:m,className:`${S}-selection-column`,title:(null==n?void 0:n.columnTitle)?"function"==typeof n.columnTitle?n.columnTitle(p):n.columnTitle:d,render:(e,t,n)=>{const{node:o,checked:r}=f(e,t,n);return x?x(r,t,n,o):o},onCell:n.onCell,[CI]:{className:I}};return r.map((e=>e===OP?T:e))}),[$,B,n,V,q,X,m,Y,N,F,g,G,W]);return[Q,q]};function jP(e,t){return g(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach((e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}})),o);var o,r}))}const DP=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function AP(e,t){return t?`${t}-${e}`:`${e}`}const TP=(e,t)=>"function"==typeof e?e(t):e;function RP(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var _P=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],zP=function(t,n){var o=t.className,r=t.style,i=t.motion,a=t.motionNodes,s=t.motionType,l=t.onMotionStart,c=t.onMotionEnd,u=t.active,d=t.treeNodeRequiredProps,p=Lt(t,_P),f=bt(e.useState(!0),2),h=f[0],g=f[1],m=e.useContext(cP).prefixCls,v=a&&"hide"!==s;on((function(){a&&v!==h&&g(v)}),[a]);var b=e.useRef(!1),y=function(){a&&!b.current&&(b.current=!0,c())};!function(t,n){var o=bt(e.useState(!1),2),r=o[0],i=o[1];on((function(){if(r)return t(),function(){n()}}),[r]),on((function(){return i(!0),function(){i(!1)}}),[])}((function(){a&&l()}),y);return a?e.createElement(_a,A({ref:n,visible:h},i,{motionAppear:"show"===s,onVisibleChanged:function(e){v===e&&y()}}),(function(t,n){var o=t.className,r=t.style;return e.createElement("div",{ref:n,className:D("".concat(m,"-treenode-motion"),o),style:r},a.map((function(t){var n=Object.assign({},(RP(t.data),t.data)),o=t.title,r=t.key,i=t.isStart,a=t.isEnd;delete n.children;var s=ok(r,d);return e.createElement(mP,A({},n,s,{title:o,active:u,data:t.data,key:r,isStart:i,isEnd:a}))})))})):e.createElement(mP,A({domRef:n,className:o,style:r},p,{active:u}))};zP.displayName="MotionTreeNode";var BP=e.forwardRef(zP);function HP(e,t,n){var o=e.findIndex((function(e){return e.key===n})),r=e[o+1],i=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var FP=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],WP={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},VP=function(){},KP="RC_TREE_MOTION_".concat(Math.random()),qP={key:KP},XP={key:KP,level:0,index:0,pos:"0",node:qP,nodes:[qP]},UP={parent:null,children:[],pos:XP.pos,data:qP,title:null,key:KP,isStart:[],isEnd:[]};function GP(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function YP(e){return ZS(e.key,e.pos)}var QP=e.forwardRef((function(t,n){var o=t.prefixCls,r=t.data;t.selectable,t.checkable;var i=t.expandedKeys,a=t.selectedKeys,s=t.checkedKeys,l=t.loadedKeys,c=t.loadingKeys,u=t.halfCheckedKeys,d=t.keyEntities,p=t.disabled,f=t.dragging,h=t.dragOverNodeKey,g=t.dropPosition,m=t.motion,v=t.height,b=t.itemHeight,y=t.virtual,x=t.focusable,C=t.activeItem,w=t.focused,S=t.tabIndex,k=t.onKeyDown,E=t.onFocus,O=t.onBlur,$=t.onActiveChange,N=t.onListChangeStart,M=t.onListChangeEnd,I=Lt(t,FP),P=e.useRef(null),L=e.useRef(null);e.useImperativeHandle(n,(function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return L.current.offsetWidth}}}));var j=bt(e.useState(i),2),D=j[0],T=j[1],R=bt(e.useState(r),2),_=R[0],z=R[1],B=bt(e.useState(r),2),H=B[0],F=B[1],W=bt(e.useState([]),2),V=W[0],K=W[1],q=bt(e.useState(null),2),X=q[0],U=q[1],G=e.useRef(r);function Y(){var e=G.current;z(e),F(e),K([]),U(null),M()}G.current=r,on((function(){T(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(D,i);if(null!==e.key)if(e.add){var t=_.findIndex((function(t){return t.key===e.key})),n=GP(HP(_,r,e.key),y,v,b),o=_.slice();o.splice(t+1,0,UP),F(o),K(n),U("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),s=GP(HP(r,_,e.key),y,v,b),l=r.slice();l.splice(a+1,0,UP),F(l),K(s),U("hide")}else _!==r&&(z(r),F(r))}),[i,r]),e.useEffect((function(){f||Y()}),[f]);var Q=m?H:r,Z={expandedKeys:i,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:s,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:g,keyEntities:d};return e.createElement(e.Fragment,null,w&&C&&e.createElement("span",{style:WP,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(C)),e.createElement("div",null,e.createElement("input",{style:WP,disabled:!1===x||p,tabIndex:!1!==x?S:null,onKeyDown:k,onFocus:E,onBlur:O,value:"",onChange:VP,"aria-label":"for screen reader"})),e.createElement("div",{className:"".concat(o,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},e.createElement("div",{className:"".concat(o,"-indent")},e.createElement("div",{ref:L,className:"".concat(o,"-indent-unit")}))),e.createElement(Fg,A({},I,{data:Q,itemKey:YP,height:v,fullHeight:!1,virtual:y,itemHeight:b,prefixCls:"".concat(o,"-list"),ref:P,onVisibleChange:function(e){e.every((function(e){return YP(e)!==KP}))&&Y()}}),(function(t){var n=t.pos,o=Object.assign({},(RP(t.data),t.data)),r=t.title,i=t.key,a=t.isStart,s=t.isEnd,l=ZS(i,n);delete o.key,delete o.children;var c=ok(l,Z);return e.createElement(BP,A({},o,c,{title:r,active:!!C&&i===C.key,pos:n,data:t.data,isStart:a,isEnd:s,motion:m,motionNodes:i===KP?V:null,motionType:X,onMotionStart:N,onMotionEnd:Y,treeNodeRequiredProps:Z,onMouseMove:function(){$(null)}}))})))}));QP.displayName="NodeList";var ZP=function(){Xe(n,e.Component);var t=Ze(n);function n(){var o;We(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return Q(Ye(o=t.call.apply(t,[this].concat(i))),"destroyed",!1),Q(Ye(o),"delayedDragEnterLogic",void 0),Q(Ye(o),"loadingRetryTimes",{}),Q(Ye(o),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:JS()}),Q(Ye(o),"dragStartMousePosition",null),Q(Ye(o),"dragNode",void 0),Q(Ye(o),"currentMouseOverDroppableNodeKey",null),Q(Ye(o),"listRef",e.createRef()),Q(Ye(o),"onNodeDragStart",(function(e,t){var n=o.state,r=n.expandedKeys,i=n.keyEntities,a=o.props.onDragStart,s=t.props.eventKey;o.dragNode=t,o.dragStartMousePosition={x:e.clientX,y:e.clientY};var l=vP(r,s);o.setState({draggingNodeKey:s,dragChildrenKeys:xP(s,i),indent:o.listRef.current.getIndentWidth()}),o.setExpandedKeys(l),window.addEventListener("dragend",o.onWindowDragEnd),null==a||a({event:e,node:rk(t.props)})})),Q(Ye(o),"onNodeDragEnter",(function(e,t){var n=o.state,r=n.expandedKeys,i=n.keyEntities,a=n.dragChildrenKeys,s=n.flattenNodes,l=n.indent,c=o.props,u=c.onDragEnter,d=c.onExpand,p=c.allowDrop,f=c.direction,h=t.props,g=h.pos,m=h.eventKey,v=Ye(o).dragNode;if(o.currentMouseOverDroppableNodeKey!==m&&(o.currentMouseOverDroppableNodeKey=m),v){var b=wP(e,v,t,l,o.dragStartMousePosition,p,s,i,r,f),y=b.dropPosition,x=b.dropLevelOffset,C=b.dropTargetKey,w=b.dropContainerKey,S=b.dropTargetPos,k=b.dropAllowed,E=b.dragOverNodeKey;-1===a.indexOf(C)&&k?(o.delayedDragEnterLogic||(o.delayedDragEnterLogic={}),Object.keys(o.delayedDragEnterLogic).forEach((function(e){clearTimeout(o.delayedDragEnterLogic[e])})),v.props.eventKey!==t.props.eventKey&&(e.persist(),o.delayedDragEnterLogic[g]=window.setTimeout((function(){if(null!==o.state.draggingNodeKey){var n=lt(r),a=GS(i,t.props.eventKey);a&&(a.children||[]).length&&(n=bP(r,t.props.eventKey)),"expandedKeys"in o.props||o.setExpandedKeys(n),null==d||d(n,{node:rk(t.props),expanded:!0,nativeEvent:e.nativeEvent})}}),800)),v.props.eventKey!==C||0!==x?(o.setState({dragOverNodeKey:E,dropPosition:y,dropLevelOffset:x,dropTargetKey:C,dropContainerKey:w,dropTargetPos:S,dropAllowed:k}),null==u||u({event:e,node:rk(t.props),expandedKeys:r})):o.resetDragState()):o.resetDragState()}else o.resetDragState()})),Q(Ye(o),"onNodeDragOver",(function(e,t){var n=o.state,r=n.dragChildrenKeys,i=n.flattenNodes,a=n.keyEntities,s=n.expandedKeys,l=n.indent,c=o.props,u=c.onDragOver,d=c.allowDrop,p=c.direction,f=Ye(o).dragNode;if(f){var h=wP(e,f,t,l,o.dragStartMousePosition,d,i,a,s,p),g=h.dropPosition,m=h.dropLevelOffset,v=h.dropTargetKey,b=h.dropContainerKey,y=h.dropAllowed,x=h.dropTargetPos,C=h.dragOverNodeKey;-1===r.indexOf(v)&&y&&(f.props.eventKey===v&&0===m?null===o.state.dropPosition&&null===o.state.dropLevelOffset&&null===o.state.dropTargetKey&&null===o.state.dropContainerKey&&null===o.state.dropTargetPos&&!1===o.state.dropAllowed&&null===o.state.dragOverNodeKey||o.resetDragState():g===o.state.dropPosition&&m===o.state.dropLevelOffset&&v===o.state.dropTargetKey&&b===o.state.dropContainerKey&&x===o.state.dropTargetPos&&y===o.state.dropAllowed&&C===o.state.dragOverNodeKey||o.setState({dropPosition:g,dropLevelOffset:m,dropTargetKey:v,dropContainerKey:b,dropTargetPos:x,dropAllowed:y,dragOverNodeKey:C}),null==u||u({event:e,node:rk(t.props)}))}})),Q(Ye(o),"onNodeDragLeave",(function(e,t){o.currentMouseOverDroppableNodeKey!==t.props.eventKey||e.currentTarget.contains(e.relatedTarget)||(o.resetDragState(),o.currentMouseOverDroppableNodeKey=null);var n=o.props.onDragLeave;null==n||n({event:e,node:rk(t.props)})})),Q(Ye(o),"onWindowDragEnd",(function(e){o.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",o.onWindowDragEnd)})),Q(Ye(o),"onNodeDragEnd",(function(e,t){var n=o.props.onDragEnd;o.setState({dragOverNodeKey:null}),o.cleanDragState(),null==n||n({event:e,node:rk(t.props)}),o.dragNode=null,window.removeEventListener("dragend",o.onWindowDragEnd)})),Q(Ye(o),"onNodeDrop",(function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=o.state,a=i.dragChildrenKeys,s=i.dropPosition,l=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var u=o.props.onDrop;if(o.setState({dragOverNodeKey:null}),o.cleanDragState(),null!==l){var d=J(J({},ok(l,o.getTreeNodeRequiredProps())),{},{active:(null===(n=o.getActiveItem())||void 0===n?void 0:n.key)===l,data:GS(o.state.keyEntities,l).node});U(!(-1!==a.indexOf(l)),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=yP(c),f={event:e,node:rk(d),dragNode:o.dragNode?rk(o.dragNode.props):null,dragNodesKeys:[o.dragNode.props.eventKey].concat(a),dropToGap:0!==s,dropPosition:s+Number(p[p.length-1])};r||null==u||u(f),o.dragNode=null}}})),Q(Ye(o),"cleanDragState",(function(){null!==o.state.draggingNodeKey&&o.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),o.dragStartMousePosition=null,o.currentMouseOverDroppableNodeKey=null})),Q(Ye(o),"triggerExpandActionExpand",(function(e,t){var n=o.state,r=n.expandedKeys,i=n.flattenNodes,a=t.expanded,s=t.key;if(!(t.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey)){var l=i.filter((function(e){return e.key===s}))[0],c=rk(J(J({},ok(s,o.getTreeNodeRequiredProps())),{},{data:l.data}));o.setExpandedKeys(a?vP(r,s):bP(r,s)),o.onNodeExpand(e,c)}})),Q(Ye(o),"onNodeClick",(function(e,t){var n=o.props,r=n.onClick;"click"===n.expandAction&&o.triggerExpandActionExpand(e,t),null==r||r(e,t)})),Q(Ye(o),"onNodeDoubleClick",(function(e,t){var n=o.props,r=n.onDoubleClick;"doubleClick"===n.expandAction&&o.triggerExpandActionExpand(e,t),null==r||r(e,t)})),Q(Ye(o),"onNodeSelect",(function(e,t){var n=o.state.selectedKeys,r=o.state,i=r.keyEntities,a=r.fieldNames,s=o.props,l=s.onSelect,c=s.multiple,u=t.selected,d=t[a.key],p=!u,f=(n=p?c?bP(n,d):[d]:vP(n,d)).map((function(e){var t=GS(i,e);return t?t.node:null})).filter((function(e){return e}));o.setUncontrolledState({selectedKeys:n}),null==l||l(n,{event:"select",selected:p,node:t,selectedNodes:f,nativeEvent:e.nativeEvent})})),Q(Ye(o),"onNodeCheck",(function(e,t,n){var r,i=o.state,a=i.keyEntities,s=i.checkedKeys,l=i.halfCheckedKeys,c=o.props,u=c.checkStrictly,d=c.onCheck,p=t.key,f={event:"check",node:t,checked:n,nativeEvent:e.nativeEvent};if(u){var h=n?bP(s,p):vP(s,p);r={checked:h,halfChecked:vP(l,p)},f.checkedNodes=h.map((function(e){return GS(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),o.setUncontrolledState({checkedKeys:h})}else{var g=sk([].concat(lt(s),[p]),!0,a),m=g.checkedKeys,v=g.halfCheckedKeys;if(!n){var b=new Set(m);b.delete(p);var y=sk(Array.from(b),{checked:!1,halfCheckedKeys:v},a);m=y.checkedKeys,v=y.halfCheckedKeys}r=m,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=v,m.forEach((function(e){var t=GS(a,e);if(t){var n=t.node,o=t.pos;f.checkedNodes.push(n),f.checkedNodesPositions.push({node:n,pos:o})}})),o.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:v})}null==d||d(r,f)})),Q(Ye(o),"onNodeLoad",(function(e){var t,n=e.key,r=GS(o.state.keyEntities,n);if(null==r||null===(t=r.children)||void 0===t||!t.length){var i=new Promise((function(t,r){o.setState((function(i){var a=i.loadedKeys,s=void 0===a?[]:a,l=i.loadingKeys,c=void 0===l?[]:l,u=o.props,d=u.loadData,p=u.onLoad;return d&&-1===s.indexOf(n)&&-1===c.indexOf(n)?(d(e).then((function(){var r=bP(o.state.loadedKeys,n);null==p||p(r,{event:"load",node:e}),o.setUncontrolledState({loadedKeys:r}),o.setState((function(e){return{loadingKeys:vP(e.loadingKeys,n)}})),t()})).catch((function(e){if(o.setState((function(e){return{loadingKeys:vP(e.loadingKeys,n)}})),o.loadingRetryTimes[n]=(o.loadingRetryTimes[n]||0)+1,o.loadingRetryTimes[n]>=10){var i=o.state.loadedKeys;U(!1,"Retry for `loadData` many times but still failed. No more retry."),o.setUncontrolledState({loadedKeys:bP(i,n)}),t()}r(e)})),{loadingKeys:bP(c,n)}):null}))}));return i.catch((function(){})),i}})),Q(Ye(o),"onNodeMouseEnter",(function(e,t){var n=o.props.onMouseEnter;null==n||n({event:e,node:t})})),Q(Ye(o),"onNodeMouseLeave",(function(e,t){var n=o.props.onMouseLeave;null==n||n({event:e,node:t})})),Q(Ye(o),"onNodeContextMenu",(function(e,t){var n=o.props.onRightClick;n&&(e.preventDefault(),n({event:e,node:t}))})),Q(Ye(o),"onFocus",(function(){var e=o.props.onFocus;o.setState({focused:!0});for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==e||e.apply(void 0,n)})),Q(Ye(o),"onBlur",(function(){var e=o.props.onBlur;o.setState({focused:!1}),o.onActiveChange(null);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null==e||e.apply(void 0,n)})),Q(Ye(o),"getTreeNodeRequiredProps",(function(){var e=o.state;return{expandedKeys:e.expandedKeys||[],selectedKeys:e.selectedKeys||[],loadedKeys:e.loadedKeys||[],loadingKeys:e.loadingKeys||[],checkedKeys:e.checkedKeys||[],halfCheckedKeys:e.halfCheckedKeys||[],dragOverNodeKey:e.dragOverNodeKey,dropPosition:e.dropPosition,keyEntities:e.keyEntities}})),Q(Ye(o),"setExpandedKeys",(function(e){var t=o.state,n=tk(t.treeData,e,t.fieldNames);o.setUncontrolledState({expandedKeys:e,flattenNodes:n},!0)})),Q(Ye(o),"onNodeExpand",(function(e,t){var n=o.state.expandedKeys,r=o.state,i=r.listChanging,a=r.fieldNames,s=o.props,l=s.onExpand,c=s.loadData,u=t.expanded,d=t[a.key];if(!i){var p=n.indexOf(d),f=!u;if(U(u&&-1!==p||!u&&-1===p,"Expand state not sync with index check"),n=f?bP(n,d):vP(n,d),o.setExpandedKeys(n),null==l||l(n,{node:t,expanded:f,nativeEvent:e.nativeEvent}),f&&c){var h=o.onNodeLoad(t);h&&h.then((function(){var e=tk(o.state.treeData,n,a);o.setUncontrolledState({flattenNodes:e})})).catch((function(){var e=vP(o.state.expandedKeys,d);o.setExpandedKeys(e)}))}}})),Q(Ye(o),"onListChangeStart",(function(){o.setUncontrolledState({listChanging:!0})})),Q(Ye(o),"onListChangeEnd",(function(){setTimeout((function(){o.setUncontrolledState({listChanging:!1})}))})),Q(Ye(o),"onActiveChange",(function(e){var t=o.state.activeKey,n=o.props,r=n.onActiveChange,i=n.itemScrollOffset,a=void 0===i?0:i;t!==e&&(o.setState({activeKey:e}),null!==e&&o.scrollTo({key:e,offset:a}),null==r||r(e))})),Q(Ye(o),"getActiveItem",(function(){var e=o.state,t=e.activeKey,n=e.flattenNodes;return null===t?null:n.find((function(e){return e.key===t}))||null})),Q(Ye(o),"offsetActiveKey",(function(e){var t=o.state,n=t.flattenNodes,r=t.activeKey,i=n.findIndex((function(e){return e.key===r}));-1===i&&e<0&&(i=n.length);var a=n[i=(i+e+n.length)%n.length];if(a){var s=a.key;o.onActiveChange(s)}else o.onActiveChange(null)})),Q(Ye(o),"onKeyDown",(function(e){var t=o.state,n=t.activeKey,r=t.expandedKeys,i=t.checkedKeys,a=t.fieldNames,s=o.props,l=s.onKeyDown,c=s.checkable,u=s.selectable;switch(e.which){case Xs.UP:o.offsetActiveKey(-1),e.preventDefault();break;case Xs.DOWN:o.offsetActiveKey(1),e.preventDefault()}var d=o.getActiveItem();if(d&&d.data){var p=o.getTreeNodeRequiredProps(),f=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=rk(J(J({},ok(n,p)),{},{data:d.data,active:!0}));switch(e.which){case Xs.LEFT:f&&r.includes(n)?o.onNodeExpand({},h):d.parent&&o.onActiveChange(d.parent.key),e.preventDefault();break;case Xs.RIGHT:f&&!r.includes(n)?o.onNodeExpand({},h):d.children&&d.children.length&&o.onActiveChange(d.children[0].key),e.preventDefault();break;case Xs.ENTER:case Xs.SPACE:!c||h.disabled||!1===h.checkable||h.disableCheckbox?c||!u||h.disabled||!1===h.selectable||o.onNodeSelect({},h):o.onNodeCheck({},h,!i.includes(n))}}null==l||l(e)})),Q(Ye(o),"setUncontrolledState",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!o.destroyed){var r=!1,i=!0,a={};Object.keys(e).forEach((function(t){t in o.props?i=!1:(r=!0,a[t]=e[t])})),!r||t&&!i||o.setState(J(J({},a),n))}})),Q(Ye(o),"scrollTo",(function(e){o.listRef.current.scrollTo(e)})),o}return Ke(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var t,n=this.state,o=n.focused,r=n.flattenNodes,i=n.keyEntities,a=n.draggingNodeKey,s=n.activeKey,l=n.dropLevelOffset,c=n.dropContainerKey,u=n.dropTargetKey,d=n.dropPosition,p=n.dragOverNodeKey,f=n.indent,h=this.props,g=h.prefixCls,m=h.className,v=h.style,b=h.showLine,y=h.focusable,x=h.tabIndex,C=void 0===x?0:x,w=h.selectable,S=h.showIcon,k=h.icon,E=h.switcherIcon,O=h.draggable,$=h.checkable,N=h.checkStrictly,M=h.disabled,I=h.motion,P=h.loadData,L=h.filterTreeNode,j=h.height,R=h.itemHeight,_=h.virtual,z=h.titleRender,B=h.dropIndicatorRender,H=h.onContextMenu,F=h.onScroll,W=h.direction,V=h.rootClassName,K=h.rootStyle,q=zs(this.props,{aria:!0,data:!0});return O&&(t="object"===T(O)?O:"function"==typeof O?{nodeDraggable:O}:{}),e.createElement(cP.Provider,{value:{prefixCls:g,selectable:w,showIcon:S,icon:k,switcherIcon:E,draggable:t,draggingNodeKey:a,checkable:$,checkStrictly:N,disabled:M,keyEntities:i,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:p,indent:f,direction:W,dropIndicatorRender:B,loadData:P,filterTreeNode:L,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{role:"tree",className:D(g,m,V,Q(Q(Q({},"".concat(g,"-show-line"),b),"".concat(g,"-focused"),o),"".concat(g,"-active-focused"),null!==s)),style:K},e.createElement(QP,A({ref:this.listRef,prefixCls:g,style:v,data:r,disabled:M,selectable:w,checkable:!!$,motion:I,dragging:null!==a,height:j,itemHeight:R,virtual:_,focusable:y,focused:o,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:F},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&t in e||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=JS(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(U(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=ek(e.children)),n){r.treeData=n;var s=nk(n,{fieldNames:a});r.keyEntities=J(Q({},KP,XP),s.keyEntities),"production"!==process.env.NODE_ENV&&function(e,t){var n=new Map;!function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(o||[]).forEach((function(o){var i=o[t.key],a=o[t.children];U(null!=i,"Tree node must have a certain key: [".concat(r).concat(i,"]"));var s=String(i);U(!n.has(s)||null==i,"Same 'key' exist in the Tree: ".concat(s)),n.set(s,!0),e(a,"".concat(r).concat(s," > "))}))}(e)}(n,a)}var l,c=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?EP(e.expandedKeys,c):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=J({},c);delete u[KP];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),r.expandedKeys=d}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?EP(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var p=tk(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?r.selectedKeys=SP(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=SP(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?l=kP(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?l=kP(e.defaultCheckedKeys)||{}:n&&(l=kP(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var f=l,h=f.checkedKeys,g=void 0===h?[]:h,m=f.halfCheckedKeys,v=void 0===m?[]:m;if(!e.checkStrictly){var b=sk(g,!0,c);g=b.checkedKeys,v=b.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=v}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}();Q(ZP,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(t){var n=t.dropPosition,o=t.dropLevelOffset,r=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-o*r;break;case 1:i.bottom=0,i.left=-o*r;break;case 0:i.bottom=0,i.left=r}return e.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),Q(ZP,"TreeNode",mP);const JP=new Eo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),eL=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),tL=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Qt(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),nL=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:s}=t,l=t.paddingXS;return{[n]:Object.assign(Object.assign({},qi(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Ui(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:JP,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[o]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Qt(r)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:Qt(i),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},eL(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:Qt(i),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal(),"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${Qt(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:Qt(i),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:Qt(i),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:Qt(i),userSelect:"none"},tL(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Qt(t.calc(i).div(2).equal())} !important`}}}}})}},oL=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:r},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},rL=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.calc(t.paddingXS).div(2).equal(),i=$i(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r});return[nL(e,i),oL(i)]};var iL=Zi("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:ck(`${n}-checkbox`,e)},rL(n,e),Tc(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function aL(e){const{dropPosition:n,dropLevelOffset:o,prefixCls:r,indent:i,direction:a="ltr"}=e,s="ltr"===a?"left":"right",l="ltr"===a?"right":"left",c={[s]:-o*i+4,[l]:0};switch(n){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[s]=i+4}return t.createElement("div",{style:c,className:`${r}-drop-indicator`})}const sL=t=>{const{prefixCls:n,switcherIcon:o,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=t,{isLeaf:s,expanded:l,loading:c}=r;if(c)return e.isValidElement(a)?a:e.createElement(Ys,{className:`${n}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),s){if(!i)return null;if("boolean"!=typeof u&&u){const t="function"==typeof u?u(r):u,o=`${n}-switcher-line-custom-icon`;return e.isValidElement(t)?Fs(t,{className:D(t.props.className||"",o)}):t}return u?e.createElement(aM,{className:`${n}-switcher-line-icon`}):e.createElement("span",{className:`${n}-switcher-leaf-line`})}const d=`${n}-switcher-icon`,p="function"==typeof o?o(r):o;return e.isValidElement(p)?Fs(p,{className:D(p.props.className||"",d)}):void 0!==p?p:i?l?e.createElement(CM,{className:`${n}-switcher-line-icon`}):e.createElement(kM,{className:`${n}-switcher-line-icon`}):e.createElement(FN,{className:d})},lL=t.forwardRef(((e,n)=>{var o;const{getPrefixCls:r,direction:i,virtual:a,tree:s}=t.useContext(ai),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:p,switcherLoadingIcon:f,blockNode:h=!1,children:g,checkable:m=!1,selectable:v=!0,draggable:b,motion:y,style:x}=e,C=r("tree",l),w=r(),S=null!=y?y:Object.assign(Object.assign({},wl(w)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:m,selectable:v,showIcon:u,motion:S,blockNode:h,showLine:Boolean(d),dropIndicatorRender:aL}),[E,O,$]=iL(C),[,N]=Vi(),M=N.paddingXS/2+((null===(o=N.Tree)||void 0===o?void 0:o.titleHeight)||N.controlHeightSM),I=t.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||t.createElement(bM,null)),e}),[b]);return E(t.createElement(ZP,Object.assign({itemHeight:M,ref:n,virtual:a},k,{style:Object.assign(Object.assign({},null==s?void 0:s.style),x),prefixCls:C,className:D({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:h,[`${C}-unselectable`]:!v,[`${C}-rtl`]:"rtl"===i},null==s?void 0:s.className,c,O,$),direction:i,checkable:m?t.createElement("span",{className:`${C}-checkbox-inner`}):m,selectable:v,switcherIcon:e=>t.createElement(sL,{prefixCls:C,switcherIcon:p,switcherLoadingIcon:f,treeNodeProps:e,showLine:d}),draggable:I}),g))}));"production"!==process.env.NODE_ENV&&(lL.displayName="Tree");function cL(e,t,n){const{key:o,children:r}=n;e.forEach((function(e){const i=e[o],a=e[r];!1!==t(i,e)&&cL(a||[],t,n)}))}function uL(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i}=e;const a=[];let s=0;if(o&&o===r)return[o];if(!o||!r)return[];return cL(t,(e=>{if(2===s)return!1;if(function(e){return e===o||e===r}(e)){if(a.push(e),0===s)s=1;else if(1===s)return s=2,!1}else 1===s&&a.push(e);return n.includes(e)}),JS(i)),a}function dL(e,t,n){const o=lt(t),r=[];return cL(e,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length}),JS(n)),r}var pL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function fL(t){const{isLeaf:n,expanded:o}=t;return n?e.createElement(aM,null):o?e.createElement(pM,null):e.createElement(gM,null)}function hL(e){let{treeData:t,children:n}=e;return t||ek(n)}const gL=(t,n)=>{var{defaultExpandAll:o,defaultExpandParent:r,defaultExpandedKeys:i}=t,a=pL(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=e.useRef(),l=e.useRef(),[c,u]=e.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,p]=e.useState((()=>(()=>{const{keyEntities:e}=nk(hL(a));let t;return t=o?Object.keys(e):r?EP(a.expandedKeys||i||[],e):a.expandedKeys||i||[],t})()));e.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),e.useEffect((()=>{"expandedKeys"in a&&p(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:f,direction:h}=e.useContext(ai),{prefixCls:g,className:m,showIcon:v=!0,expandAction:b="click"}=a,y=pL(a,["prefixCls","className","showIcon","expandAction"]),x=f("tree",g),C=D(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===h},m);return e.createElement(lL,Object.assign({icon:fL,ref:n,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:x,className:C,expandedKeys:d,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:p=""}=i,f=hL(a),h=Object.assign(Object.assign({},t),{selected:!0}),g=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),m=null==c?void 0:c.shiftKey;let v;o&&g?(v=e,s.current=p,l.current=v,h.selectedNodes=dL(f,v,r)):o&&m?(v=Array.from(new Set([].concat(lt(l.current||[]),lt(uL({treeData:f,expandedKeys:d,startKey:p,endKey:s.current,fieldNames:r}))))),h.selectedNodes=dL(f,v,r)):(v=[p],s.current=p,l.current=v,h.selectedNodes=dL(f,v,r)),null===(n=a.onSelect)||void 0===n||n.call(a,v,h),"selectedKeys"in a||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||p(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))},mL=e.forwardRef(gL);"production"!==process.env.NODE_ENV&&(mL.displayName="DirectoryTree");const vL=lL;vL.DirectoryTree=mL,vL.TreeNode=mP;const bL=t=>{const{value:n,filterSearch:o,tablePrefixCls:r,locale:i,onChange:a}=t;return o?e.createElement("div",{className:`${r}-filter-dropdown-search`},e.createElement(xE,{prefix:e.createElement(Xm,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:n,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},yL=e=>{const{keyCode:t}=e;t===Xs.ENTER&&e.stopPropagation()},xL=e.forwardRef(((t,n)=>e.createElement("div",{className:t.className,onClick:e=>e.stopPropagation(),onKeyDown:yL,ref:n},t.children)));function CL(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat(lt(t),lt(CL(o))))})),t}function wL(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function SL(t){let{filters:n,prefixCls:o,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:s}=t;return n.map(((t,n)=>{const l=String(t.value);if(t.children)return{key:l||n,label:t.text,popupClassName:`${o}-dropdown-submenu`,children:SL({filters:t.children,prefixCls:o,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:s})};const c=i?vk:gC,u={key:void 0!==t.value?l:n,label:e.createElement(e.Fragment,null,e.createElement(c,{checked:r.includes(l)}),e.createElement("span",null,t.text))};return a.trim()?"function"==typeof s?s(a,t)?u:null:wL(a,t.text)?u:null:u}))}function kL(e){return e||[]}"production"!==process.env.NODE_ENV&&(xL.displayName="FilterDropdownMenuWrapper");const EL=t=>{var n,o;const{tablePrefixCls:r,prefixCls:i,column:a,dropdownPrefixCls:s,columnKey:l,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:p=!1,filterState:f,triggerFilter:h,locale:g,children:m,getPopupContainer:v,rootClassName:b}=t,{filterDropdownOpen:y,onFilterDropdownOpenChange:x,filterResetToDefaultFilteredValue:C,defaultFilteredValue:w,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=a,[E,O]=e.useState(!1),$=!(!f||!(null===(n=f.filteredKeys)||void 0===n?void 0:n.length)&&!f.forceFiltered),N=e=>{O(e),null==x||x(e),null==k||k(e)};if("production"!==process.env.NODE_ENV){const e=zo("Table");[["filterDropdownVisible","filterDropdownOpen",S],["onFilterDropdownVisibleChange","onFilterDropdownOpenChange",k]].forEach((t=>{let[n,o,r]=t;e.deprecated(null==r,n,o)}))}const M=null!==(o=null!=y?y:S)&&void 0!==o?o:E,I=null==f?void 0:f.filteredKeys,[P,L]=function(t){const n=e.useRef(t),o=tv();return[()=>n.current,e=>{n.current=e,o()}]}(kL(I)),j=e=>{let{selectedKeys:t}=e;L(t)},A=(e,t)=>{let{node:n,checked:o}=t;j(u?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};e.useEffect((()=>{E&&j({selectedKeys:kL(I)})}),[I]);const[T,R]=e.useState([]),_=e=>{R(e)},[z,B]=e.useState(""),H=e=>{const{value:t}=e.target;B(t)};e.useEffect((()=>{E||B("")}),[E]);const F=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||f&&f.filteredKeys?jt(t,null==f?void 0:f.filteredKeys,!0)?null:void h({column:a,key:l,filteredKeys:t}):null},W=()=>{N(!1),F(P())},V=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&F([]),t&&N(!1),B(""),L(C?(w||[]).map((e=>String(e))):[])},K=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&N(!1),F(P())},q=D({[`${s}-menu-without-submenu`]:(X=a.filters||[],!X.some((e=>{let{children:t}=e;return t})))});var X;const U=e=>{if(e.target.checked){const e=CL(null==a?void 0:a.filters).map((e=>String(e)));L(e)}else L([])},G=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=G({filters:e.children})),o}))},Y=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Y(e))))||[]})};let Q;const{direction:Z,renderEmpty:J}=e.useContext(ai);if("function"==typeof a.filterDropdown)Q=a.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:P(),confirm:K,clearFilters:V,filters:a.filters,visible:M,close:()=>{N(!1)}});else if(a.filterDropdown)Q=a.filterDropdown;else{const t=P()||[],n=()=>{var n;const o=null!==(n=null==J?void 0:J("Table.filter"))&&void 0!==n?n:e.createElement(hm,{image:hm.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(a.filters||[]).length)return o;if("tree"===d)return e.createElement(e.Fragment,null,e.createElement(bL,{filterSearch:p,value:z,onChange:H,tablePrefixCls:r,locale:g}),e.createElement("div",{className:`${r}-filter-dropdown-tree`},u?e.createElement(vk,{checked:t.length===CL(a.filters).length,indeterminate:t.length>0&&t.length<CL(a.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:U},g.filterCheckall):null,e.createElement(vL,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${s}-menu`,onCheck:A,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:G({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:z.trim()?e=>"function"==typeof p?p(z,Y(e)):wL(z,e.title):void 0})));const l=SL({filters:a.filters||[],filterSearch:p,prefixCls:i,filteredKeys:P(),filterMultiple:u,searchValue:z}),c=l.every((e=>null===e));return e.createElement(e.Fragment,null,e.createElement(bL,{filterSearch:p,value:z,onChange:H,tablePrefixCls:r,locale:g}),c?o:e.createElement(Lx,{selectable:!0,multiple:u,prefixCls:`${s}-menu`,className:q,onSelect:j,onDeselect:j,selectedKeys:t,getPopupContainer:v,openKeys:T,onOpenChange:_,items:l}))},o=()=>C?jt((w||[]).map((e=>String(e))),t,!0):0===t.length;Q=e.createElement(e.Fragment,null,n(),e.createElement("div",{className:`${i}-dropdown-btns`},e.createElement(id,{type:"link",size:"small",disabled:o(),onClick:()=>V()},g.filterReset),e.createElement(id,{type:"primary",size:"small",onClick:W},g.filterConfirm)))}a.filterDropdown&&(Q=e.createElement(mx,{selectable:void 0},Q));let ee;return ee="function"==typeof a.filterIcon?a.filterIcon($):a.filterIcon?a.filterIcon:e.createElement(cM,null),e.createElement("div",{className:`${i}-column`},e.createElement("span",{className:`${r}-column-title`},m),e.createElement(PE,{dropdownRender:()=>e.createElement(xL,{className:`${i}-dropdown`},Q),trigger:["click"],open:M,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==I&&L(kL(I)),N(e),e||a.filterDropdown||!c||W())},getPopupContainer:v,placement:"rtl"===Z?"bottomLeft":"bottomRight",rootClassName:b},e.createElement("span",{role:"button",tabIndex:-1,className:D(`${i}-trigger`,{active:$}),onClick:e=>{e.stopPropagation()}},ee)))},OL=(e,t,n)=>{let o=[];return(e||[]).forEach(((e,r)=>{var i;const a=AP(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:DP(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:DP(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(lt(o),lt(OL(e.children,t,a))))})),o};function $L(t,n,o,r,i,a,s,l,c){return o.map(((o,u)=>{const d=AP(u,l),{filterOnClose:p=!0,filterMultiple:f=!0,filterMode:h,filterSearch:g}=o;let m=o;if(m.filters||m.filterDropdown){const l=DP(m,d),u=r.find((e=>{let{key:t}=e;return l===t}));m=Object.assign(Object.assign({},m),{title:r=>e.createElement(EL,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:m,columnKey:l,filterState:u,filterOnClose:p,filterMultiple:f,filterMode:h,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:s,rootClassName:c},TP(o.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:$L(t,n,m.children,r,i,a,s,d,c)})),m}))}const NL=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;const i=n,{filters:a,filterDropdown:s}=r;if(s)t[i]=o||null;else if(Array.isArray(o)){const e=CL(a);t[i]=e.filter((e=>o.includes(String(e))))}else t[i]=null})),t},ML=(e,t,n)=>{const o=t.reduce(((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((o=>{const a=CL(i),s=a.findIndex((e=>String(e)===String(o))),l=-1!==s?a[s]:o;return e[n]&&(e[n]=ML(e[n],t,n)),r(l,e)})))):e}),e);return o},IL=e=>e.flatMap((e=>"children"in e?[e].concat(lt(IL(e.children||[]))):[e])),PL=t=>{const{prefixCls:n,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:s,rootClassName:l}=t,c=zo("Table"),u=e.useMemo((()=>IL(r||[])),[r]),[d,p]=e.useState((()=>OL(u,!0))),f=e.useMemo((()=>{const e=OL(u,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(u||[]).map(((e,t)=>DP(e,AP(t))));return d.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=u[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return"production"!==process.env.NODE_ENV&&c(n,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),e}),[u,d]),h=e.useMemo((()=>NL(f)),[f]),g=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),p(t),i(NL(t),t)};return[e=>$L(n,o,e,f,s,g,a,void 0,l),f,h]};var LL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jL=10;const DL="ascend",AL="descend",TL=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,RL=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,_L=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:DP(e,t),multiplePriority:TL(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=AP(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat(lt(o),lt(_L(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:DP(e,a),multiplePriority:TL(e),sortOrder:e.defaultSortOrder}))})),o},zL=(t,n,o,r,i,a,s,l)=>{const c=(n||[]).map(((n,c)=>{const u=AP(c,l);let d=n;if(d.sorter){const l=d.sortDirections||i,c=void 0===d.showSorterTooltip?s:d.showSorterTooltip,p=DP(d,u),f=o.find((e=>{let{key:t}=e;return t===p})),h=f?f.sortOrder:null,g=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,h);let m;if(n.sortIcon)m=n.sortIcon({sortOrder:h});else{const n=l.includes(DL)&&e.createElement(UN,{className:D(`${t}-column-sorter-up`,{active:h===DL})}),o=l.includes(AL)&&e.createElement(KN,{className:D(`${t}-column-sorter-down`,{active:h===AL})});m=e.createElement("span",{className:D(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!(!n||!o)})},e.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},n,o))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=a||{};let x=v;g===AL?x=y:g===DL&&(x=b);const C="object"==typeof c?Object.assign({title:x},c):{title:x};d=Object.assign(Object.assign({},d),{className:D(d.className,{[`${t}-column-sort`]:h}),title:o=>{const r=`${t}-column-sorters`,i=e.createElement("span",{className:`${t}-column-title`},TP(n.title,o)),a=e.createElement("div",{className:r},i,m);return c?"boolean"!=typeof c&&"sorter-icon"===(null==c?void 0:c.target)?e.createElement("div",{className:`${r} ${t}-column-sorters-tooltip-target-sorter`},i,e.createElement(Rv,Object.assign({},C),m)):e.createElement(Rv,Object.assign({},C),a):a},onHeaderCell:e=>{var o;const i=(null===(o=n.onHeaderCell)||void 0===o?void 0:o.call(n,e))||{},a=i.onClick,s=i.onKeyDown;i.onClick=e=>{r({column:n,key:p,sortOrder:g,multiplePriority:TL(n)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===Xs.ENTER&&(r({column:n,key:p,sortOrder:g,multiplePriority:TL(n)}),null==s||s(e))};const l=((e,t)=>{const n=TP(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(n.title,{}),c=null==l?void 0:l.toString();return h?i["aria-sort"]="ascend"===h?"ascending":"descending":i["aria-label"]=c||"",i.className=D(i.className,`${t}-column-has-sorters`),i.tabIndex=0,n.ellipsis&&(i.title=(null!=l?l:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:zL(t,d.children,o,r,i,a,s,u)})),d}));return c},BL=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},HL=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(BL);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},BL(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},FL=(e,t,n)=>{const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return RL(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:a}=o,s=RL(r);if(s&&a){const n=s(e,t,a);if(0!==n)return a===DL?n:-n}}return 0})).map((e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:FL(o,t,n)}):e})):r},WL=(e,t)=>{const n=e.map((e=>{const n=Object.assign({},e);return n.title=TP(e.title,t),"children"in n&&(n.children=WL(n.children,t)),n}));return n},VL=GI(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),KL=lP(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),qL=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${Qt(n)} ${o} ${r}`,u=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Qt(l(o).mul(-1).equal())}\n ${Qt(l(l(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Qt(l(a).mul(-1).equal())} ${Qt(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Qt(n)} 0 ${Qt(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},XL=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ki),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},UL=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},GL=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:p,tableExpandedRowBg:f,paddingXXS:h,expandIconMarginTop:g,expandIconSize:m,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${Qt(r)} ${a} ${s}`,C=y(h).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Yi(e)),{position:"relative",float:"left",width:m,height:m,color:"inherit",lineHeight:Qt(m),background:l,border:x,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:r},"&::after":{top:C,bottom:C,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Qt(y(d).mul(-1).equal())} ${Qt(y(p).mul(-1).equal())}`,padding:`${Qt(d)} ${Qt(p)}`}}}},YL=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:p,fontSizeSM:f,tablePaddingHorizontal:h,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:w,controlItemBgHover:S,controlItemBgActive:k,boxShadowSecondary:E,filterDropdownMenuBg:O,calc:$}=e,N=`${n}-dropdown`,M=`${t}-filter-dropdown`,I=`${n}-tree`,P=`${Qt(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(a).mul(-1).equal(),marginInline:`${Qt(a)} ${Qt($(h).div(2).mul(-1).equal())}`,padding:`0 ${Qt(a)}`,color:p,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},qi(e)),{minWidth:r,backgroundColor:C,borderRadius:g,boxShadow:E,overflow:"hidden",[`${N}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:`${Qt(s)} 0`,color:x,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${Qt(s)} 0`,paddingInline:s,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:S},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${M}-search`]:{padding:s,borderBottom:P,"&-input":{input:{minWidth:i},[o]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Qt($(s).sub(c).equal())} ${Qt(s)}`,overflow:"hidden",borderTop:P}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},QL=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=o;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},ZL=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Qt(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},JL=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Qt(n)} ${Qt(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Qt(n)} ${Qt(n)}`}}}}},ej=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},tj=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:p,tablePaddingHorizontal:f,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(r).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(r).add(h(i).div(4)).add(h(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Qt(h(f).div(4).equal()),[o]:{color:s,fontSize:r,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},nj=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${Qt(r)} ${Qt(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Qt(o(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Qt(o(r).mul(-1).equal())} ${Qt(o(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Qt(o(r).mul(-1).equal()),marginInline:`${Qt(o(n).sub(i).equal())} ${Qt(o(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Qt(o(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},oj=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},rj=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,p=`${Qt(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Qt(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},ij=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i=`${Qt(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${Qt(r(n).mul(-1).equal())} 0 ${o}`}}}},aj=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,s=`${Qt(o)} ${r} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Qt(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},sj=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:p,motionDurationMid:f,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableFooterTextColor:m,tableFooterBg:v,calc:b}=e,y=`${Qt(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},qi(e)),{fontSize:c,background:u,borderRadius:`${Qt(d)} ${Qt(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Qt(d)} ${Qt(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${Qt(o)} ${Qt(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Qt(o)} ${Qt(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:Qt(b(o).mul(-1).equal()),marginInline:`${Qt(b(i).sub(r).equal())}\n ${Qt(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${Qt(o)} ${Qt(r)}`,color:m,background:v}})}};var lj=Zi("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:p,rowExpandedBg:f,cellPaddingBlock:h,cellPaddingInline:g,cellPaddingBlockMD:m,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:C,footerColor:w,headerBorderRadius:S,cellFontSize:k,cellFontSizeMD:E,cellFontSizeSM:O,headerSplitColor:$,fixedHeaderSortActiveBg:N,headerFilterHoverBg:M,filterDropdownBg:I,expandIconBg:P,selectionColumnWidth:L,stickyScrollBarBg:j,calc:D}=e,A=$i(e,{tableFontSize:k,tableBg:o,tableRadius:S,tablePaddingVertical:h,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:m,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:C,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:I,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:p,zIndexTableFixed:2,zIndexTableSticky:D(2).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:O,tableSelectionColumnWidth:L,tableExpandIconBg:P,tableExpandColumnWidth:D(r).add(D(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:j,tableScrollThumbBgHover:t,tableScrollBg:n});return[sj(A),ZL(A),ij(A),oj(A),YL(A),qL(A),JL(A),GL(A),ij(A),UL(A),tj(A),QL(A),rj(A),XL(A),nj(A),ej(A),aj(A)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,controlHeight:f,colorTextPlaceholder:h,fontSize:g,fontSizeSM:m,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:C,controlInteractiveSize:w}=e,S=new Xr(r).onBackground(n).toHexShortString(),k=new Xr(i).onBackground(n).toHexShortString(),E=new Xr(t).onBackground(n).toHexShortString(),O=new Xr(y),$=new Xr(x),N=w/2-b,M=2*N+3*b;return{headerBg:E,headerColor:o,headerSortActiveBg:S,headerSortHoverBg:k,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:E,footerColor:o,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:S,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*m-3*b)/2),headerIconColor:O.clone().setAlpha(O.getAlpha()*C).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*C).toRgbString(),expandIconHalfInner:N,expandIconSize:M,expandIconScale:w/M}}),{unitless:{expandIconScale:!0}});const cj=[],uj=(t,n)=>{var o,r;const{prefixCls:i,className:a,rootClassName:s,style:l,size:c,bordered:d,dropdownPrefixCls:p,dataSource:f,pagination:h,rowSelection:g,rowKey:m="key",rowClassName:v,columns:b,children:y,childrenColumnName:x,onChange:C,getPopupContainer:w,loading:S,expandIcon:k,expandable:E,expandedRowRender:O,expandIconColumnIndex:$,indentSize:N,scroll:M,sortDirections:I,locale:P,showSorterTooltip:L={target:"full-header"},virtual:j}=t,A=zo("Table");"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&A(!("function"==typeof m&&m.length>1),"usage","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");const T=e.useMemo((()=>b||LI(y)),[b,y]),R=nv(e.useMemo((()=>T.some((e=>e.responsive))),[T])),_=e.useMemo((()=>{const e=new Set(Object.keys(R).filter((e=>R[e])));return T.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[T,R]),z=rt(t,["className","style","columns"]),{locale:B=Xo,direction:H,table:F,renderEmpty:W,getPrefixCls:V,getPopupContainer:K}=e.useContext(ai),q=Dl(c),X=Object.assign(Object.assign({},B.Table),P),U=f||cj,G=V("table",i),Y=V("dropdown",p),[,Q]=Vi(),Z=qs(G),[J,ee,te]=lj(G,Z),ne=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:$},E),{expandIcon:null!==(o=null==E?void 0:E.expandIcon)&&void 0!==o?o:null===(r=null==F?void 0:F.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:oe="children"}=ne,re=e.useMemo((()=>U.some((e=>null==e?void 0:e[oe]))?"nest":O||(null==E?void 0:E.expandedRowRender)?"row":null),[U]),ie={body:e.useRef()},ae=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(G),se=e.useRef(null),le=e.useRef(null);jP(n,(()=>Object.assign(Object.assign({},le.current),{nativeElement:se.current})));const ce=e.useMemo((()=>"function"==typeof m?m:e=>null==e?void 0:e[m]),[m]),[ue]=((t,n,o)=>{const r=e.useRef({});return[function(e){var i;if(!r.current||r.current.data!==t||r.current.childrenColumnName!==n||r.current.getRowKey!==o){const a=new Map;function s(e){e.forEach(((e,t)=>{const r=o(e,t);a.set(r,e),e&&"object"==typeof e&&n in e&&s(e[n]||[])}))}s(t),r.current={data:t,childrenColumnName:n,kvMap:a,getRowKey:o}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(e)}]})(U,oe,ce),de={},pe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o,r,i,a;const s=Object.assign(Object.assign({},de),e);n&&(null===(o=de.resetPagination)||void 0===o||o.call(de),(null===(r=s.pagination)||void 0===r?void 0:r.current)&&(s.pagination.current=1),h&&(null===(i=h.onChange)||void 0===i||i.call(h,1,null===(a=s.pagination)||void 0===a?void 0:a.pageSize))),M&&!1!==M.scrollToFirstRowOnChange&&ie.body.current&&Ks(0,{getContainer:()=>ie.body.current}),null==C||C(s.pagination,s.filters,s.sorter,{currentDataSource:ML(FL(U,s.sorterStates,oe),s.filterStates,oe),action:t})},[fe,he,ge,me]=(t=>{const{prefixCls:n,mergedColumns:o,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:s}=t,[l,c]=e.useState(_L(o,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,o)=>{const r=AP(o,t);if(n.push(DP(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,lt(t))}})),n},d=e.useMemo((()=>{let e=!0;const t=_L(o,!1);if(!t.length){const e=u(o);return l.filter((t=>{let{key:n}=t;return e.includes(n)}))}const n=[];function r(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),n}),[o,l]),p=e.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),f=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(lt(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),s(HL(t),t)};return[e=>zL(n,e,d,f,r,i,a),d,p,()=>HL(d)]})({prefixCls:G,mergedColumns:_,onSorterChange:(e,t)=>{pe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:I||["ascend","descend"],tableLocale:X,showSorterTooltip:L}),ve=e.useMemo((()=>FL(U,he,oe)),[U,he]);de.sorter=me(),de.sorterStates=he;const[be,ye,xe]=PL({prefixCls:G,locale:X,dropdownPrefixCls:Y,mergedColumns:_,onFilterChange:(e,t)=>{pe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||K,rootClassName:D(s,Z)}),Ce=ML(ve,ye,oe);de.filters=xe,de.filterStates=ye;const we=e.useMemo((()=>{const e={};return Object.keys(xe).forEach((t=>{null!==xe[t]&&(e[t]=xe[t])})),Object.assign(Object.assign({},ge),{filters:e})}),[ge,xe]),[Se]=(t=>[e.useCallback((e=>WL(e,t)),[t])])(we),[ke,Ee]=function(e,t,n){const o=n&&"object"==typeof n?n:{},{total:r=0}=o,i=LL(o,["total"]),[a,s]=u((()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:jL}))),l=o$(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/l.pageSize);l.current>c&&(l.current=c||1);const d=(e,t)=>{s({current:null!=e?e:1,pageSize:t||l.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),d(e,o),t(e,o||(null==l?void 0:l.pageSize))}}),d]}(Ce.length,((e,t)=>{pe({pagination:Object.assign(Object.assign({},de.pagination),{current:e,pageSize:t})},"paginate")}),h);de.pagination=!1===h?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(ke,h),de.resetPagination=Ee;const Oe=e.useMemo((()=>{if(!1===h||!ke.pageSize)return Ce;const{current:e=1,total:t,pageSize:n=jL}=ke;return"production"!==process.env.NODE_ENV&&A(e>0,"usage","`current` should be positive number."),Ce.length<t?Ce.length>n?("production"!==process.env.NODE_ENV&&A(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),Ce.slice((e-1)*n,e*n)):Ce:Ce.slice((e-1)*n,e*n)}),[!!h,Ce,null==ke?void 0:ke.current,null==ke?void 0:ke.pageSize,null==ke?void 0:ke.total]),[$e,Ne]=LP({prefixCls:G,data:Ce,pageData:Oe,getRowKey:ce,getRecordByKey:ue,expandType:re,childrenColumnName:oe,locale:X,getPopupContainer:w||K},g);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||k||function(t){return n=>{const{prefixCls:o,onExpand:r,record:i,expanded:a,expandable:s}=n,l=`${o}-row-expand-icon`;return e.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:D(l,{[`${l}-spaced`]:!s,[`${l}-expanded`]:s&&a,[`${l}-collapsed`]:s&&!a}),"aria-label":a?t.collapse:t.expand,"aria-expanded":a})}}(X),"nest"===re&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=g?1:0:ne.expandIconColumnIndex>0&&g&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof N?N:15);const Me=e.useCallback((e=>Se($e(be(fe(e))))),[fe,be,$e]);let Ie,Pe,Le;if(!1!==h&&(null==ke?void 0:ke.total)){let t;t=ke.size?ke.size:"small"===q||"middle"===q?"small":void 0;const n=n=>e.createElement(D$,Object.assign({},ke,{className:D(`${G}-pagination ${G}-pagination-${n}`,ke.className),size:t})),o="rtl"===H?"left":"right",{position:r}=ke;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),t=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||t||i||(Pe=n(o)),e&&(Ie=n(e.toLowerCase().replace("top",""))),t&&(Pe=n(t.toLowerCase().replace("bottom","")))}else Pe=n(o)}"boolean"==typeof S?Le={spinning:S}:"object"==typeof S&&(Le=Object.assign({spinning:!0},S));const je=D(te,Z,`${G}-wrapper`,null==F?void 0:F.className,{[`${G}-wrapper-rtl`]:"rtl"===H},a,s,ee),De=Object.assign(Object.assign({},null==F?void 0:F.style),l),Ae=void 0!==(null==P?void 0:P.emptyText)?P.emptyText:(null==W?void 0:W("Table"))||e.createElement(gm,{componentName:"Table"}),Te=j?KL:VL,Re={},_e=e.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:o,paddingSM:r}=Q,i=Math.floor(e*t);switch(q){case"large":return 2*n+i;case"small":return 2*o+i;default:return 2*r+i}}),[Q,q]);return j&&(Re.listItemHeight=_e),J(e.createElement("div",{ref:se,className:je,style:De},e.createElement(X$,Object.assign({spinning:!1},Le),Ie,e.createElement(Te,Object.assign({},Re,z,{ref:le,columns:_,direction:H,expandable:ne,prefixCls:G,className:D({[`${G}-middle`]:"middle"===q,[`${G}-small`]:"small"===q,[`${G}-bordered`]:d,[`${G}-empty`]:0===U.length},te,Z,ee),data:Oe,rowKey:ce,rowClassName:(e,t,n)=>{let o;return o=D("function"==typeof v?v(e,t,n):v),D({[`${G}-row-selected`]:Ne.has(ce(e,t))},o)},emptyText:Ae,internalHooks:BM,internalRefs:ie,transformColumns:Me,getContainerWidth:ae})),Pe)))};var dj=e.forwardRef(uj);const pj=(t,n)=>{const o=e.useRef(0);return o.current+=1,e.createElement(dj,Object.assign({},t,{ref:n,_renderTimes:o.current}))},fj=e.forwardRef(pj);fj.SELECTION_COLUMN=OP,fj.EXPAND_COLUMN=zM,fj.SELECTION_ALL=$P,fj.SELECTION_INVERT=NP,fj.SELECTION_NONE=MP,fj.Column=e=>null,fj.ColumnGroup=e=>null,fj.Summary=lI,"production"!==process.env.NODE_ENV&&(fj.displayName="Table");const hj=e=>{const{lineWidth:t,fontSizeIcon:n,calc:o}=e,r=e.fontSizeSM;return $i(e,{tagFontSize:r,tagLineHeight:Qt(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},gj=e=>({defaultBg:new Xr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var mj=Zi("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r,calc:i}=e,a=i(o).sub(n).equal(),s=i(t).sub(n).equal();return{[r]:Object.assign(Object.assign({},qi(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(hj(e))),gj),vj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bj=e.forwardRef(((t,n)=>{const{prefixCls:o,style:r,className:i,checked:a,onChange:s,onClick:l}=t,c=vj(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=e.useContext(ai),p=u("tag",o),[f,h,g]=mj(p),m=D(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},null==d?void 0:d.className,i,h,g);return f(e.createElement("span",Object.assign({},c,{ref:n,style:Object.assign(Object.assign({},r),null==d?void 0:d.style),className:m,onClick:e=>{null==s||s(!a),null==l||l(e)}})))}));var yj=ea(["Tag","preset"],(e=>(e=>ta(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(hj(e))),gj);const xj=(e,t,n)=>{const o="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Cj=ea(["Tag","status"],(e=>{const t=hj(e);return[xj(t,"success","Success"),xj(t,"processing","Info"),xj(t,"error","Error"),xj(t,"warning","Warning")]}),gj),wj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Sj=e.forwardRef(((t,n)=>{const{prefixCls:o,className:r,rootClassName:i,style:a,children:s,icon:l,color:c,onClose:u,bordered:d=!0,visible:p}=t,f=wj(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:g,tag:m}=e.useContext(ai),[v,b]=e.useState(!0),y=rt(f,["closeIcon","closable"]);if("production"!==process.env.NODE_ENV){zo("Tag").deprecated(!("visible"in t),"visible","visible && <Tag />")}e.useEffect((()=>{void 0!==p&&b(p)}),[p]);const x=jv(c),C=function(e){return Lv.includes(e)}(c),w=x||C,S=Object.assign(Object.assign({backgroundColor:c&&!w?c:void 0},null==m?void 0:m.style),a),k=h("tag",o),[E,O,$]=mj(k),N=D(k,null==m?void 0:m.className,{[`${k}-${c}`]:w,[`${k}-has-color`]:c&&!w,[`${k}-hidden`]:!v,[`${k}-rtl`]:"rtl"===g,[`${k}-borderless`]:!d},r,i,O,$),M=e=>{e.stopPropagation(),null==u||u(e),e.defaultPrevented||b(!1)},[,I]=Zp(Up(t),Up(m),{closable:!1,closeIconRender:t=>Hs(t,e.createElement("span",{className:`${k}-close-icon`,onClick:M},t),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),M(t)},className:D(null==e?void 0:e.className,`${k}-close-icon`)})))}),P="function"==typeof f.onClick||s&&"a"===s.type,L=l||null,j=L?e.createElement(e.Fragment,null,L,s&&e.createElement("span",null,s)):s,A=e.createElement("span",Object.assign({},y,{ref:n,className:N,style:S}),j,I,x&&e.createElement(yj,{key:"preset",prefixCls:k}),C&&e.createElement(Cj,{key:"status",prefixCls:k}));return E(P?e.createElement(jl,{component:"Tag"},A):A)})),kj=Sj;"production"!==process.env.NODE_ENV&&(kj.displayName="Tag"),kj.CheckableTag=bj;const Ej=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},Oj=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Yi(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},$j=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:mr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Nj=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${Qt(o)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Mj=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ij=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Ej(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),$j(e)),Oj(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Yi(e)),{marginInlineStart:e.marginXXS})}),Nj(e)),Mj(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var Pj=Zi("Typography",(e=>[Ij(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));const Lj=t=>{const{prefixCls:n,"aria-label":o,className:r,style:i,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:p,component:f,enterIcon:h=e.createElement(oM,null)}=t,g=e.useRef(null),m=e.useRef(!1),v=e.useRef(),[b,y]=e.useState(c);e.useEffect((()=>{y(c)}),[c]),e.useEffect((()=>{var e;if(null===(e=g.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=g.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{u(b.trim())},[C,w,S]=Pj(n),k=D(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a,[`${n}-${f}`]:!!f},r,w,S);return C(e.createElement("div",{className:k,style:i},e.createElement(yE,{ref:g,maxLength:s,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;v.current!==t||m.current||n||o||r||i||(t===Xs.ENTER?(x(),null==p||p()):t===Xs.ESC&&d())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{x()},"aria-label":o,rows:1,autoSize:l}),null!==h?Fs(h,{className:`${n}-edit-content-confirm`}):null))};var jj=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}},Dj={"text/plain":"Text","text/html":"Url",default:"Text"};var Aj=function(e,t){var n,o,r,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(r=jj(),i=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=Dj[t.format]||Dj.default;window.clipboardData.setData(r,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),r()}return l},Tj=O(Aj),Rj=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const _j=t=>{let{copyConfig:n,children:o}=t;const[r,i]=e.useState(!1),[a,s]=e.useState(!1),l=e.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};n.format&&(u.format=n.format),e.useEffect((()=>c),[]);return{copied:r,copyLoading:a,onClick:xi((e=>Rj(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),s(!0);try{const r="function"==typeof n.text?yield n.text():n.text;Tj(r||function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&null==e?[]:Array.isArray(e)?e:[e]}(o,!0).join("")||"",u),s(!1),i(!0),c(),l.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw s(!1),e}}))))}};function zj(t,n){return e.useMemo((()=>{const e=!!t;return[e,Object.assign(Object.assign({},n),e&&"object"==typeof t?t:null)]}),[t])}var Bj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Hj=e.forwardRef(((t,n)=>{const{prefixCls:o,component:r="article",className:i,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=t,d=Bj(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:f,typography:h}=e.useContext(ai),g=null!=c?c:f,m=s?pe(n,s):n,v=p("typography",o);if("production"!==process.env.NODE_ENV){zo("Typography").deprecated(!s,"setContentRef","ref")}const[b,y,x]=Pj(v),C=D(v,null==h?void 0:h.className,{[`${v}-rtl`]:"rtl"===g},i,a,y,x),w=Object.assign(Object.assign({},null==h?void 0:h.style),u);return b(e.createElement(r,Object.assign({className:C,style:w,ref:m},d),l))}));function Fj(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function Wj(e,t,n){return!0===e||void 0===e?t:e||n&&t}"production"!==process.env.NODE_ENV&&(Hj.displayName="Typography");const Vj=e=>["string","number"].includes(typeof e),Kj=t=>{let{prefixCls:n,copied:o,locale:r,iconOnly:i,tooltips:a,icon:s,tabIndex:l,onCopy:c,loading:u}=t;const d=Fj(a),p=Fj(s),{copied:f,copy:h}=null!=r?r:{},g=o?f:h,m=Wj(d[o?1:0],g),v="string"==typeof m?m:g;return e.createElement(Rv,{title:m},e.createElement("button",{type:"button",className:D(`${n}-copy`,{[`${n}-copy-success`]:o,[`${n}-copy-icon-only`]:i}),onClick:c,"aria-label":v,tabIndex:l},o?Wj(p[1],e.createElement(Hm,null),!0):Wj(p[0],u?e.createElement(Ys,null):e.createElement(QN,null),!0)))},qj=e.forwardRef(((t,n)=>{let{style:o,children:r}=t;const i=e.useRef(null);return e.useImperativeHandle(n,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),e.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},o)},r)}));function Xj(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(Vj(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const Uj=0,Gj=4,Yj={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Qj(t){const{enableMeasure:n,width:o,text:r,children:i,rows:a,expanded:s,miscDeps:l,onEllipsis:c}=t,u=e.useMemo((()=>H(r)),[r]),d=e.useMemo((()=>(e=>e.reduce(((e,t)=>e+(Vj(t)?String(t).length:1)),0))(u)),[r]),p=e.useMemo((()=>i(u,!1)),[r]),[f,h]=e.useState(null),g=e.useRef(null),m=e.useRef(null),v=e.useRef(null),b=e.useRef(null),y=e.useRef(null),[x,C]=e.useState(!1),[w,S]=e.useState(Uj),[k,E]=e.useState(0),[O,$]=e.useState(null);on((()=>{S(n&&o&&d?1:Uj)}),[o,r,a,n,u]),on((()=>{var e,t,n,o;if(1===w){S(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;$(e)}else if(2===w){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());S(r?3:Gj),h(r?[0,d]:null),C(r);const i=(null===(t=v.current)||void 0===t?void 0:t.getHeight())||0,s=1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,l=(null===(o=y.current)||void 0===o?void 0:o.getHeight())||0,u=Math.max(i,s+l);E(u+1),c(r)}}),[w]);const N=f?Math.ceil((f[0]+f[1])/2):0;on((()=>{var e;const[t,n]=f||[0,0];if(t!==n){const o=((null===(e=g.current)||void 0===e?void 0:e.getHeight())||0)>k;let r=N;n-t==1&&(r=o?t:n),h(o?[t,r]:[r,n])}}),[f,N]);const M=e.useMemo((()=>{if(!n)return i(u,!1);if(3!==w||!f||f[0]!==f[1]){const t=i(u,!1);return[Gj,Uj].includes(w)?t:e.createElement("span",{style:Object.assign(Object.assign({},Yj),{WebkitLineClamp:a})},t)}return i(s?u:Xj(u,f[0]),x)}),[s,w,f,u].concat(lt(l))),I={width:o,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return e.createElement(e.Fragment,null,M,2===w&&e.createElement(e.Fragment,null,e.createElement(qj,{style:Object.assign(Object.assign(Object.assign({},I),Yj),{WebkitLineClamp:a}),ref:v},p),e.createElement(qj,{style:Object.assign(Object.assign(Object.assign({},I),Yj),{WebkitLineClamp:a-1}),ref:b},p),e.createElement(qj,{style:Object.assign(Object.assign(Object.assign({},I),Yj),{WebkitLineClamp:1}),ref:y},i([],!0))),3===w&&f&&f[0]!==f[1]&&e.createElement(qj,{style:Object.assign(Object.assign({},I),{top:400}),ref:g},i(Xj(u,N),!0)),1===w&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const Zj=t=>{let{enableEllipsis:n,isEllipsis:o,children:r,tooltipProps:i}=t;return(null==i?void 0:i.title)&&n?e.createElement(Rv,Object.assign({open:!!o&&void 0},i),r):r};"production"!==process.env.NODE_ENV&&(Zj.displayName="EllipsisTooltip");var Jj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const eD=e.forwardRef(((t,n)=>{var r;const{prefixCls:i,className:s,style:c,type:u,disabled:p,children:f,ellipsis:h,editable:g,copyable:m,component:v,title:b}=t,y=Jj(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:C}=e.useContext(ai),[w]=Jo("Text"),S=e.useRef(null),k=e.useRef(null),E=x("typography",i),O=rt(y,["mark","code","delete","underline","strong","keyboard","italic"]),[$,N]=zj(g),[M,I]=Si(!1,{value:N.editing}),{triggerType:P=["icon"]}=N,L=e=>{var t;e&&(null===(t=N.onStart)||void 0===t||t.call(N)),I(e)},j=(e=>{const t=a();return l((()=>{t.current=e})),t.current})(M);on((()=>{var e;!M&&j&&(null===(e=k.current)||void 0===e||e.focus())}),[M]);const A=e=>{null==e||e.preventDefault(),L(!0)},T=e=>{var t;null===(t=N.onChange)||void 0===t||t.call(N,e),L(!1)},R=()=>{var e;null===(e=N.onCancel)||void 0===e||e.call(N),L(!1)},[_,z]=zj(m),{copied:B,copyLoading:F,onClick:W}=_j({copyConfig:z,children:f}),[V,K]=e.useState(!1),[q,X]=e.useState(!1),[U,G]=e.useState(!1),[Y,Q]=e.useState(!1),[Z,J]=e.useState(!0),[ee,te]=zj(h,{expandable:!1,symbol:e=>e?null==w?void 0:w.collapse:null==w?void 0:w.expand}),[ne,oe]=Si(te.defaultExpanded||!1,{value:te.expanded}),re=ee&&(!ne||"collapsible"===te.expandable),{rows:ie=1}=te,ae=e.useMemo((()=>re&&(void 0!==te.suffix||te.onEllipsis||te.expandable||$||_)),[re,te,$,_]);on((()=>{ee&&!ae&&(K(ef("webkitLineClamp")),X(ef("textOverflow")))}),[ae,ee]);const[se,le]=e.useState(re),ce=e.useMemo((()=>!ae&&(1===ie?q:V)),[ae,q,V]);on((()=>{le(ce&&re)}),[ce,re]);const ue=re&&(se?Y:U),de=re&&1===ie&&se,fe=re&&ie>1&&se,[he,ge]=e.useState(0),me=e=>{var t;G(e),U!==e&&(null===(t=te.onEllipsis)||void 0===t||t.call(te,e))};e.useEffect((()=>{const e=S.current;if(ee&&se&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t),"production"!==process.env.NODE_ENV&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return e.removeChild(t),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}(e);Y!==t&&Q(t)}}),[ee,se,f,fe,Z,he]),e.useEffect((()=>{const e=S.current;if("undefined"==typeof IntersectionObserver||!e||!se||!re)return;const t=new IntersectionObserver((()=>{J(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[se,re]);const ve=((e,t,n)=>d((()=>!0===e?{title:null!=t?t:n}:o(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]))(te.tooltip,N.text,f),be=e.useMemo((()=>{if(ee&&!se)return[N.text,f,b,ve.title].find(Vj)}),[ee,se,b,ve.title,ue]);if(M)return e.createElement(Lj,{value:null!==(r=N.text)&&void 0!==r?r:"string"==typeof f?f:"",onSave:T,onCancel:R,onEnd:N.onEnd,prefixCls:E,className:s,style:c,direction:C,component:v,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const ye=()=>{const{expandable:t,symbol:n}=te;return t?e.createElement("button",{type:"button",key:"expand",className:`${E}-${ne?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;oe(t.expanded),null===(n=te.onExpand)||void 0===n||n.call(te,e,t)})(e,{expanded:!ne}),"aria-label":ne?w.collapse:null==w?void 0:w.expand},"function"==typeof n?n(ne):n):null},xe=()=>{if(!$)return;const{icon:t,tooltip:n,tabIndex:o}=N,r=H(n)[0]||(null==w?void 0:w.edit),i="string"==typeof r?r:"";return P.includes("icon")?e.createElement(Rv,{key:"edit",title:!1===n?"":r},e.createElement("button",{type:"button",ref:k,className:`${E}-edit`,onClick:A,"aria-label":i,tabIndex:o},t||e.createElement(eM,{role:"button"}))):null},Ce=t=>[t&&ye(),xe(),_?e.createElement(Kj,Object.assign({key:"copy"},z,{prefixCls:E,copied:B,locale:w,onCopy:W,loading:F,iconOnly:null==f})):null];return e.createElement(ot,{onResize:e=>{let{offsetWidth:t}=e;ge(t)},disabled:!re},(o=>e.createElement(Zj,{tooltipProps:ve,enableEllipsis:re,isEllipsis:ue},e.createElement(Hj,Object.assign({className:D({[`${E}-${u}`]:u,[`${E}-disabled`]:p,[`${E}-ellipsis`]:ee,[`${E}-ellipsis-single-line`]:de,[`${E}-ellipsis-multiple-line`]:fe},s),prefixCls:i,style:Object.assign(Object.assign({},c),{WebkitLineClamp:fe?ie:void 0}),component:v,ref:pe(o,S,n),direction:C,onClick:P.includes("text")?A:void 0,"aria-label":null==be?void 0:be.toString(),title:b},O),e.createElement(Qj,{enableMeasure:re&&!se,text:f,rows:ie,width:he,onEllipsis:me,expanded:ne,miscDeps:[B,ne,F,$,_]},((n,o)=>function(t,n){let{mark:o,code:r,underline:i,delete:a,strong:s,keyboard:l,italic:c}=t,u=n;function d(t,n){n&&(u=e.createElement(t,{},u))}return d("strong",s),d("u",i),d("del",a),d("code",r),d("mark",o),d("kbd",l),d("i",c),u}(t,e.createElement(e.Fragment,null,n.length>0&&o&&!ne&&be?e.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(t=>[t&&!ne&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),te.suffix,Ce(t)])(o)))))))))}));var tD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const nD=e.forwardRef(((t,n)=>{var{ellipsis:o,rel:r}=t,i=tD(t,["ellipsis","rel"]);if("production"!==process.env.NODE_ENV){const e=zo("Typography.Link");"production"!==process.env.NODE_ENV&&e("object"!=typeof o,"usage","`ellipsis` only supports boolean value.")}const a=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete a.navigate,e.createElement(eD,Object.assign({},a,{ref:n,ellipsis:!!o,component:"a"}))})),oD=e.forwardRef(((t,n)=>e.createElement(eD,Object.assign({ref:n},t,{component:"div"}))));var rD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const iD=(t,n)=>{var{ellipsis:o}=t,r=rD(t,["ellipsis"]);const i=e.useMemo((()=>o&&"object"==typeof o?rt(o,["expandable","rows"]):o),[o]);if("production"!==process.env.NODE_ENV){const e=zo("Typography.Text");"production"!==process.env.NODE_ENV&&e("object"!=typeof o||!o||!("expandable"in o)&&!("rows"in o),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return e.createElement(eD,Object.assign({ref:n},r,{ellipsis:i,component:"span"}))};var aD=e.forwardRef(iD),sD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lD=[1,2,3,4,5],cD=e.forwardRef(((t,n)=>{const{level:o=1}=t,r=sD(t,["level"]);if("production"!==process.env.NODE_ENV){const e=zo("Typography.Title");"production"!==process.env.NODE_ENV&&e(lD.includes(o),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const i=lD.includes(o)?`h${o}`:"h1";return e.createElement(eD,Object.assign({ref:n},r,{component:i}))})),uD=Hj;function dD(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}uD.Text=aD,uD.Link=nD,uD.Title=cD,uD.Paragraph=oD;dD(".placeHolder {\n line-height: normal;\n position: absolute;\n bottom: 50%;\n transform: translateY(50%);\n left: 11px;\n color: #000000;\n z-index: 1 !important;\n}\n.requiredText {\n opacity: 60%;\n color: #686869 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n.star {\n color: rgba(255, 40, 25, 1);\n display: inline-block;\n transform: translateX(1.5px);\n}\n\n.appInput {\n font-size: var(--font-14);\n font-weight: 500;\n position: relative;\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\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.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var pD=function(e){var t=e.className,n=e.label,o=e.name,r=e.value,i=e.dataTestId,s=e.type,c=e.id,d=e.disabled,p=e.handleChange,f=e.onClick,h=e.defaultValue,g=e.onPressEnter,m=e.isAutoFocus,v=e.triggerFocus,b=e.isOptional,y=e.errorMessage,x=e.suffixIcon,C=e.prefixIcon,w=e.required,S=E(e,["className","label","name","value","dataTestId","type","id","disabled","handleChange","onClick","defaultValue","onPressEnter","isAutoFocus","triggerFocus","isOptional","errorMessage","suffixIcon","prefixIcon","required"]),O=a(null),$=u(r||""),N=$[0],M=$[1],I=u(!1),P=I[0],j=I[1];l((function(){m&&O.current&&O.current.focus()}),[v,m]),l((function(){void 0!==r&&M(r)}),[r]);var D=b?"".concat(n," (optional)"):n;return L.jsxs("div",{className:"appInput ".concat(t),children:[w&&!P&&!N&&L.jsxs("div",{className:"placeHolder",onClick:function(){var e;return null===(e=O.current)||void 0===e?void 0:e.focus()},children:[L.jsx("label",{className:"requiredText",htmlFor:c,children:D}),L.jsx("span",{className:"star",children:"*"})]}),L.jsx(xE,k({type:s,"data-test-id":i,id:c,disabled:d,name:o,className:"input",value:N,onChange:function(e){M(e.target.value),j(e.target.value.length>0),null==p||p(e)},onClick:f,defaultValue:h,onPressEnter:g,placeholder:"".concat(w?"":D),ref:O,prefix:C&&C,suffix:x&&x},S)),y&&L.jsx("div",{className:"error",children:y})]})};dD(".appButton {\n width: max-content;\n\n .ant-btn {\n padding: 12px;\n height: unset;\n &:hover {\n border-color: transparent !important;\n outline: unset !important;\n box-shadow: unset !important;\n }\n }\n}\n");var fD=function(e){var t=e.type,n=e.size,o=e.className,r=e.handleClick,i=e.icon,a=e.text,s=e.disabled,l=e.iconPosition,c=e.isLoading;return L.jsx("div",{className:"appButton ".concat(o),children:L.jsx(id,{disabled:s,type:t,className:["customBtn",i?"btn-icon":"","right"===l?"iconRight":""].join(" "),size:n,onClick:r,icon:i,loading:c,children:a})})};dD('.sideBar {\n height: 100vh;\n width: max-content;\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 &::after {\n display: none;\n }\n &::before {\n display: none;\n }\n }\n }\n }\n}\n\n.sideBarHead {\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 hD=n$.Sider,gD=function(e){var t=e.links,n=e.sideBarHead,o=e.footerLinks,r=e.className,i=e.activeLink,a=function(e){e&&(window.location.href=e)},s=t.map((function(e){return{key:e.path||e.label,icon:e.path===i&&e.activeIcon?e.activeIcon:e.icon,className:e.path===i?"active":"",label:L.jsxs("span",{onClick:function(){return function(e,t){t?t():a(e)}(e.path,e.onClick)},children:[L.jsx("span",{children:e.label}),e.tag&&L.jsx("span",{className:"tag",children:e.tag})]})}})),l=null==o?void 0:o.map((function(e){return{key:e.path,icon:e.path===i&&e.activeIcon?e.activeIcon:e.icon,className:e.path===i?"active":"",label:L.jsx("span",{onClick:function(){return a(e.path)},children:e.label})}}));return L.jsx("div",{className:"sideBar ".concat(r),children:L.jsxs(hD,{className:"sider",children:[L.jsx("div",{className:"sideBarHead",children:n}),L.jsx(Lx,{mode:"inline",className:"menu",items:s}),o&&L.jsx("div",{className:"footer",children:L.jsx(Lx,{mode:"inline",items:l})})]})})};dD(".appTextArea {\n .ant-input-outlined {\n border-color: #bfbebe;\n &:hover {\n border-color: #bfbebe;\n }\n }\n .ant-input::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var mD=function(e){var t=e.id,n=e.placeholder,o=e.name,r=e.value,i=e.dataTestId,a=e.defaultValue,s=e.onPressEnter,l=e.handleChange,c=e.rows,u=e.cols,d=e.className,p=e.error;return L.jsxs("div",{className:"appTextArea ".concat(d),children:[L.jsx(xE.TextArea,{"data-test-id":i,id:t,name:o,placeholder:n,value:r,className:"textArea",onChange:l,defaultValue:a,onPressEnter:s,rows:c,cols:u}),p&&L.jsx("div",{className:"error",children:p})]})};dD(".appTab {\n .tab {\n .ant-tabs-nav {\n &::before {\n border: unset !important;\n }\n .ant-tabs-nav-wrap {\n .ant-tabs-nav-list {\n display: flex;\n gap: 3.5rem;\n align-items: center;\n .ant-tabs-tab {\n margin: 0;\n }\n .ant-tabs-ink-bar {\n display: none;\n }\n }\n }\n }\n }\n}\n");var vD=function(e){var t=e.className,n=e.items,o=e.handleChange,r=e.defaultActiveKey,i=e.activeKey;return L.jsx("div",{className:"appTab ".concat(t),children:L.jsx(Pw,{defaultActiveKey:r,activeKey:i,items:n,onChange:o,className:"tab"})})},bD={searchIcon:L.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("circle",{cx:"11.7666",cy:"12.2666",r:"8.98856",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),L.jsx("path",{d:"M18.0183 18.9851L21.5423 22.5",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),eyePassword:L.jsx("svg",{width:"24",height:"16",viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M23.0136 7.77219C22.9817 7.69906 22.2017 5.96938 20.4599 4.2275C18.8436 2.61313 16.0667 0.6875 11.9999 0.6875C7.93299 0.6875 5.15611 2.61313 3.53986 4.2275C1.79799 5.96938 1.01799 7.69625 0.986113 7.77219C0.954062 7.84419 0.9375 7.92212 0.9375 8.00094C0.9375 8.07975 0.954062 8.15768 0.986113 8.22969C1.01799 8.30187 1.79799 10.0316 3.53986 11.7734C5.15611 13.3878 7.93299 15.3125 11.9999 15.3125C16.0667 15.3125 18.8436 13.3878 20.4599 11.7734C22.2017 10.0316 22.9817 8.30469 23.0136 8.22969C23.0457 8.15768 23.0622 8.07975 23.0622 8.00094C23.0622 7.92212 23.0457 7.84419 23.0136 7.77219ZM11.9999 14.1875C9.05799 14.1875 6.48924 13.1169 4.36393 11.0066C3.473 10.1211 2.71908 9.10781 2.12705 8C2.71891 6.89237 3.47285 5.87932 4.36393 4.99438C6.48924 2.88313 9.05799 1.8125 11.9999 1.8125C14.9417 1.8125 17.5105 2.88313 19.6358 4.99438C20.5269 5.87932 21.2808 6.89237 21.8727 8C21.2755 9.14469 18.2811 14.1875 11.9999 14.1875ZM11.9999 3.6875C11.1469 3.6875 10.3132 3.94042 9.60397 4.41429C8.89478 4.88815 8.34204 5.56167 8.01563 6.34968C7.68923 7.13768 7.60383 8.00478 7.77023 8.84133C7.93663 9.67787 8.34735 10.4463 8.95047 11.0494C9.55358 11.6525 10.322 12.0632 11.1585 12.2296C11.9951 12.396 12.8622 12.3106 13.6502 11.9842C14.4382 11.6578 15.1117 11.1051 15.5856 10.3959C16.0594 9.68671 16.3124 8.85293 16.3124 8C16.3109 6.85671 15.856 5.76067 15.0476 4.95225C14.2392 4.14382 13.1432 3.68899 11.9999 3.6875ZM11.9999 11.1875C11.3694 11.1875 10.7532 11.0006 10.229 10.6503C9.7048 10.3001 9.29625 9.80224 9.055 9.2198C8.81374 8.63736 8.75062 7.99646 8.87361 7.37815C8.9966 6.75984 9.30018 6.19188 9.74596 5.7461C10.1917 5.30032 10.7597 4.99674 11.378 4.87375C11.9963 4.75076 12.6372 4.81388 13.2197 5.05513C13.8021 5.29639 14.2999 5.70494 14.6502 6.22912C15.0004 6.7533 15.1874 7.36957 15.1874 8C15.1874 8.84538 14.8515 9.65613 14.2538 10.2539C13.656 10.8517 12.8452 11.1875 11.9999 11.1875Z",fill:"black"})}),uploadIcon:L.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33325 3.99998C2.33325 2.80336 3.3033 1.83331 4.49992 1.83331H9.83325C10.1094 1.83331 10.3333 1.60945 10.3333 1.33331C10.3333 1.05717 10.1094 0.833313 9.83325 0.833313H4.49992C2.75102 0.833313 1.33325 2.25108 1.33325 3.99998V12C1.33325 13.7489 2.75102 15.1666 4.49992 15.1666H12.4999C14.2488 15.1666 15.6666 13.7489 15.6666 12V6.66665C15.6666 6.3905 15.4427 6.16665 15.1666 6.16665C14.8904 6.16665 14.6666 6.3905 14.6666 6.66665V9.00604C14.6365 8.98198 14.6052 8.95911 14.5728 8.93751L12.9856 7.87931C11.9279 7.17418 10.5196 7.31364 9.62072 8.21251L7.37912 10.4541C6.48025 11.353 5.07193 11.4924 4.01427 10.7873L2.33325 9.66664V3.99998ZM13.1666 5.83331C13.4427 5.83331 13.6666 5.60945 13.6666 5.33331V2.54042L14.1464 3.0202C14.3416 3.21546 14.6582 3.21546 14.8534 3.0202C15.0487 2.82494 15.0487 2.50835 14.8534 2.31309L13.9915 1.45117C13.5359 0.995553 12.7972 0.995553 12.3416 1.45117L11.4797 2.31309C11.2844 2.50835 11.2844 2.82494 11.4797 3.0202C11.675 3.21546 11.9915 3.21546 12.1868 3.0202L12.6666 2.54042V5.33331C12.6666 5.60945 12.8904 5.83331 13.1666 5.83331ZM6.16658 7.33331C7.08706 7.33331 7.83325 6.58712 7.83325 5.66665C7.83325 4.74617 7.08706 3.99998 6.16658 3.99998C5.24611 3.99998 4.49992 4.74617 4.49992 5.66665C4.49992 6.58712 5.24611 7.33331 6.16658 7.33331Z",fill:"#FAFAFA"})}),backArrow:L.jsxs("svg",{width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M1.25 7.27429L16.25 7.27429",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),L.jsx("path",{d:"M7.2998 13.2987L1.2498 7.27469L7.2998 1.24969",stroke:"#202123",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),badge:L.jsxs("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66025 0L17.3205 5V15L8.66025 20L0 15V5L8.66025 0Z",fill:"#FBBA07"}),L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.40147 12.3416L5.51352 12.5685C5.61142 12.7668 5.84666 12.9243 6.06777 12.9389L6.60913 12.9746C6.68987 12.9799 6.8315 13.0385 6.89252 13.092L7.30057 13.4495C7.4669 13.5953 7.74449 13.6507 7.95435 13.5796L8.30207 13.4617L7.07889 16.209L6.04906 14.7045L4.24194 14.9459L5.40147 12.3416ZM8.94099 13.4617L9.28871 13.5796C9.49816 13.6506 9.77583 13.5955 9.94249 13.4495L10.3505 13.092C10.4114 13.0386 10.553 12.9799 10.6339 12.9746L11.1753 12.9389C11.396 12.9243 11.6314 12.7672 11.7295 12.5685L11.8416 12.3416L13.0011 14.9459L11.194 14.7045L10.1642 16.209L8.94099 13.4617Z",fill:"white"}),L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36671 13.3491L8.85289 13.1749C8.72505 13.1315 8.51688 13.1318 8.38992 13.1749L7.87611 13.3491C7.74827 13.3924 7.56161 13.3548 7.46079 13.2664L7.05275 12.9089C6.95122 12.8199 6.75878 12.7405 6.62502 12.7317L6.08366 12.696C5.94897 12.6871 5.79091 12.581 5.73158 12.4608L5.49142 11.9743C5.43166 11.8532 5.28425 11.7062 5.16405 11.6469L4.67757 11.4067C4.55652 11.347 4.45113 11.1884 4.44231 11.0547L4.4066 10.5133C4.39772 10.3786 4.31777 10.1864 4.22943 10.0856L3.87188 9.67753C3.78292 9.576 3.74624 9.38916 3.78927 9.26221L3.96345 8.7484C4.00679 8.62055 4.00648 8.41238 3.96345 8.28543L3.78927 7.77162C3.74593 7.64377 3.78354 7.45712 3.87188 7.3563L4.22943 6.94825C4.31839 6.84673 4.39778 6.65429 4.4066 6.52053L4.44231 5.97917C4.45119 5.84447 4.55737 5.68642 4.67757 5.62708L5.16405 5.38693C5.2851 5.32717 5.43208 5.17976 5.49142 5.05956L5.73158 4.57307C5.79133 4.45203 5.94991 4.34664 6.08366 4.33782L6.62502 4.30211C6.75972 4.29322 6.95193 4.21328 7.05275 4.12494L7.46079 3.76739C7.56232 3.67843 7.74916 3.64174 7.87611 3.68478L8.38992 3.85896C8.51777 3.9023 8.72594 3.90199 8.85289 3.85896L9.36671 3.68478C9.49455 3.64144 9.6812 3.67905 9.78202 3.76739L10.1901 4.12494C10.2916 4.2139 10.484 4.29329 10.6178 4.30211L11.1592 4.33782C11.2938 4.3467 11.4519 4.45288 11.5112 4.57307L11.7514 5.05956C11.8112 5.1806 11.9586 5.32759 12.0788 5.38693L12.5652 5.62708C12.6863 5.68684 12.7917 5.84542 12.8005 5.97917L12.8362 6.52053C12.8451 6.65523 12.925 6.84744 13.0134 6.94825L13.3709 7.3563C13.4599 7.45783 13.4966 7.64467 13.4535 7.77162L13.2794 8.28543C13.236 8.41328 13.2363 8.62145 13.2794 8.7484L13.4535 9.26221C13.4969 9.39006 13.4593 9.57671 13.3709 9.67753L13.0134 10.0856C12.9244 10.1871 12.845 10.3795 12.8362 10.5133L12.8005 11.0547C12.7916 11.1894 12.6854 11.3474 12.5652 11.4067L12.0788 11.6469C11.9577 11.7067 11.8107 11.8541 11.7514 11.9743L11.5112 12.4608C11.4515 12.5818 11.2929 12.6872 11.1592 12.696L10.6178 12.7317C10.4831 12.7406 10.2909 12.8206 10.1901 12.9089L9.78202 13.2664C9.68049 13.3554 9.49366 13.3921 9.36671 13.3491ZM8.62141 12.1666C10.6371 12.1666 12.2711 10.5326 12.2711 8.51692C12.2711 6.50127 10.6371 4.86726 8.62141 4.86726C6.60576 4.86726 4.97175 6.50127 4.97175 8.51692C4.97175 10.5326 6.60576 12.1666 8.62141 12.1666Z",fill:"white"}),L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.62144 9.96838L7.25525 10.6877C7.14583 10.7454 7.07412 10.6934 7.09512 10.5714L7.35711 9.04978L6.25077 7.97275C6.16216 7.88649 6.18942 7.80223 6.31193 7.78451L7.84004 7.56346L8.52248 6.17845C8.57714 6.06753 8.66569 6.06741 8.72041 6.17845L9.40285 7.56346L10.931 7.78451C11.0533 7.80221 11.0808 7.8864 10.9921 7.97275L9.88578 9.04978L10.1478 10.5714C10.1687 10.6933 10.0972 10.7454 9.98764 10.6877L8.62144 9.96838Z",fill:"white"})]}),message_icon:L.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M11.2 -0.00219727H4.8C2.15333 -0.00219727 0 2.15114 0 4.7978V8.53114C0 11.0885 2.01013 13.185 4.53333 13.3239V15.549C4.53333 15.7989 4.73707 16.0021 4.98747 16.0021C5.1072 16.0021 5.22053 15.9546 5.30613 15.869L5.8064 15.3687C7.12 14.0549 8.86693 13.3311 10.7251 13.3311H11.2C13.8467 13.3311 16 11.1778 16 8.53114V4.7978C16 2.15114 13.8467 -0.00219727 11.2 -0.00219727ZM4.53333 7.73114C3.94507 7.73114 3.46667 7.25274 3.46667 6.66447C3.46667 6.0762 3.94507 5.5978 4.53333 5.5978C5.1216 5.5978 5.6 6.0762 5.6 6.66447C5.6 7.25274 5.12133 7.73114 4.53333 7.73114ZM8 7.73114C7.41173 7.73114 6.93333 7.25274 6.93333 6.66447C6.93333 6.0762 7.41173 5.5978 8 5.5978C8.58827 5.5978 9.06667 6.0762 9.06667 6.66447C9.06667 7.25274 8.588 7.73114 8 7.73114ZM11.4667 7.73114C10.8784 7.73114 10.4 7.25274 10.4 6.66447C10.4 6.0762 10.8784 5.5978 11.4667 5.5978C12.0549 5.5978 12.5333 6.0762 12.5333 6.66447C12.5333 7.25274 12.0547 7.73114 11.4667 7.73114Z",fill:"white"})}),iconHiddenIcon:L.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M23.0139 11.7722C22.982 11.6991 22.202 9.96938 20.4601 8.2275C18.8439 6.61313 16.067 4.6875 12.0001 4.6875C7.93323 4.6875 5.15636 6.61313 3.54011 8.2275C1.79823 9.96938 1.01823 11.6962 0.986357 11.7722C0.954306 11.8442 0.937744 11.9221 0.937744 12.0009C0.937744 12.0798 0.954306 12.1577 0.986357 12.2297C1.01823 12.3019 1.79823 14.0316 3.54011 15.7734C5.15636 17.3878 7.93323 19.3125 12.0001 19.3125C16.067 19.3125 18.8439 17.3878 20.4601 15.7734C22.202 14.0316 22.982 12.3047 23.0139 12.2297C23.0459 12.1577 23.0625 12.0798 23.0625 12.0009C23.0625 11.9221 23.0459 11.8442 23.0139 11.7722ZM12.0001 18.1875C9.05823 18.1875 6.48948 17.1169 4.36417 15.0066C3.47324 14.1211 2.71933 13.1078 2.12729 12C2.71916 10.8924 3.47309 9.87932 4.36417 8.99438C6.48948 6.88313 9.05823 5.8125 12.0001 5.8125C14.942 5.8125 17.5107 6.88313 19.636 8.99438C20.5271 9.87932 21.2811 10.8924 21.8729 12C21.2757 13.1447 18.2814 18.1875 12.0001 18.1875ZM12.0001 7.6875C11.1472 7.6875 10.3134 7.94042 9.60421 8.41429C8.89502 8.88815 8.34228 9.56167 8.01588 10.3497C7.68947 11.1377 7.60407 12.0048 7.77047 12.8413C7.93687 13.6779 8.3476 14.4463 8.95071 15.0494C9.55382 15.6525 10.3222 16.0632 11.1588 16.2296C11.9953 16.396 12.8624 16.3106 13.6504 15.9842C14.4384 15.6578 15.112 15.1051 15.5858 14.3959C16.0597 13.6867 16.3126 12.8529 16.3126 12C16.3111 10.8567 15.8563 9.76067 15.0479 8.95225C14.2394 8.14382 13.1434 7.68899 12.0001 7.6875ZM12.0001 15.1875C11.3697 15.1875 10.7534 15.0006 10.2292 14.6503C9.70505 14.3001 9.2965 13.8022 9.05524 13.2198C8.81399 12.6374 8.75086 11.9965 8.87385 11.3781C8.99684 10.7598 9.30042 10.1919 9.7462 9.7461C10.192 9.30032 10.7599 8.99674 11.3783 8.87375C11.9966 8.75076 12.6375 8.81388 13.2199 9.05513C13.8023 9.29639 14.3002 9.70494 14.6504 10.2291C15.0007 10.7533 15.1876 11.3696 15.1876 12C15.1876 12.8454 14.8518 13.6561 14.254 14.2539C13.6562 14.8517 12.8455 15.1875 12.0001 15.1875Z",fill:"black"}),L.jsx("path",{d:"M21 3L3 21",stroke:"black","stroke-linecap":"round"})]})};dD(".backArrow {\n display: flex;\n align-items: center;\n cursor: pointer;\n font-size: 1rem;\n & > span {\n display: flex;\n }\n\n .icon {\n margin-right: 0.5rem;\n }\n\n .text {\n font-weight: 500;\n }\n}\n");var yD=function(e){var t=e.text,n=void 0===t?"Back":t,o=e.href,r=e.className,i=e.backIcon,a=e.onClick;return L.jsxs("div",{className:"backArrow ".concat(r),onClick:function(e){a?a(e):o&&(window.location.href=o)},children:[L.jsx("span",{className:"icon",children:i||bD.backArrow}),n&&L.jsx("span",{className:"text",children:n})]})};dD(".appBadge {\n .ribbonWrapper {\n .ant-ribbon-wrapper {\n position: relative;\n .ant-ribbon {\n position: absolute;\n top: 0;\n }\n }\n }\n}\n");var xD=function(e){var t=e.content,n=e.children,o=e.className,r=e.ribbon,i=E(e,["content","children","className","ribbon"]);return L.jsx("div",{className:"appBadge ".concat(o),children:L.jsx(gb,k({count:t},i,{children:r?L.jsx("div",{className:"ribbonWrapper",children:L.jsx(gb.Ribbon,{text:r.text,color:r.color,placement:r.placement,children:n})}):n}))})};dD(".overViewCard {\n border-radius: 12px;\n padding: 0.5rem 1rem;\n background-color: #f9f9f9;\n width: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.5rem;\n .text {\n font-size: 14px;\n font-weight: 700;\n line-height: normal;\n }\n}\n"),uD.Text;var CD=function(e){var t=e.className,n=e.text,o=e.number,r=void 0!==o?o.toString().padStart(2,"0"):"";return L.jsxs("div",{className:"overViewCard ".concat(t),children:[L.jsx("span",{className:"text",children:n}),L.jsx("span",{children:r})]})};
|
27
|
+
/*!
|
28
|
+
* @kurkle/color v0.3.4
|
29
|
+
* https://github.com/kurkle/color#readme
|
30
|
+
* (c) 2024 Jukka Kurkela
|
31
|
+
* Released under the MIT License
|
32
|
+
*/function wD(e){return e+.5|0}const SD=(e,t,n)=>Math.max(Math.min(e,n),t);function kD(e){return SD(wD(2.55*e),0,255)}function ED(e){return SD(wD(255*e),0,255)}function OD(e){return SD(wD(e/2.55)/100,0,1)}function $D(e){return SD(wD(100*e),0,100)}const ND={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},MD=[..."0123456789ABCDEF"],ID=e=>MD[15&e],PD=e=>MD[(240&e)>>4]+MD[15&e],LD=e=>(240&e)>>4==(15&e);function jD(e){var t=(e=>LD(e.r)&&LD(e.g)&&LD(e.b)&&LD(e.a))(e)?ID:PD;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const DD=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function AD(e,t,n){const o=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-o*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function TD(e,t,n){const o=(o,r=(o+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[o(5),o(3),o(1)]}function RD(e,t,n){const o=AD(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function _D(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;let s,l,c;return r!==i&&(c=r-i,l=a>.5?c/(2-r-i):c/(r+i),s=function(e,t,n,o,r){return e===r?(t-n)/o+(t<n?6:0):t===r?(n-e)/o+2:(e-t)/o+4}(t,n,o,c,r),s=60*s+.5),[0|s,l||0,a]}function zD(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(ED)}function BD(e,t,n){return zD(AD,e,t,n)}function HD(e){return(e%360+360)%360}function FD(e){const t=DD.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?kD(+t[5]):ED(+t[5]));const r=HD(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return zD(RD,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return zD(TD,e,t,n)}(r,i,a):BD(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}const WD={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},VD={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let KD;function qD(e){KD||(KD=function(){const e={},t=Object.keys(VD),n=Object.keys(WD);let o,r,i,a,s;for(o=0;o<t.length;o++){for(a=s=t[o],r=0;r<n.length;r++)i=n[r],s=s.replace(i,WD[i]);i=parseInt(VD[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),KD.transparent=[0,0,0,0]);const t=KD[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const XD=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const UD=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,GD=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function YD(e,t,n){if(e){let o=_D(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=BD(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function QD(e,t){return e?Object.assign(t||{},e):e}function ZD(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ED(e[3]))):(t=QD(e,{r:0,g:0,b:0,a:1})).a=ED(t.a),t}function JD(e){return"r"===e.charAt(0)?function(e){const t=XD.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?kD(e):SD(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?kD(n):SD(n,0,255)),o=255&(t[4]?kD(o):SD(o,0,255)),r=255&(t[6]?kD(r):SD(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):FD(e)}class eA{constructor(e){if(e instanceof eA)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=ZD(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*ND[o[1]],g:255&17*ND[o[2]],b:255&17*ND[o[3]],a:5===i?17*ND[o[4]]:255}:7!==i&&9!==i||(r={r:ND[o[1]]<<4|ND[o[2]],g:ND[o[3]]<<4|ND[o[4]],b:ND[o[5]]<<4|ND[o[6]],a:9===i?ND[o[7]]<<4|ND[o[8]]:255})),n=r||qD(e)||JD(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=QD(this._rgb);return e&&(e.a=OD(e.a)),e}set rgb(e){this._rgb=ZD(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${OD(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?jD(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=_D(e),n=t[0],o=$D(t[1]),r=$D(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${OD(e.a)})`:`hsl(${n}, ${o}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let r;const i=t===r?.5:t,a=2*i-1,s=n.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*o.r+.5,n.g=255&l*n.g+r*o.g+.5,n.b=255&l*n.b+r*o.b+.5,n.a=i*n.a+(1-i)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=GD(OD(e.r)),r=GD(OD(e.g)),i=GD(OD(e.b));return{r:ED(UD(o+n*(GD(OD(t.r))-o))),g:ED(UD(r+n*(GD(OD(t.g))-r))),b:ED(UD(i+n*(GD(OD(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new eA(this.rgb)}alpha(e){return this._rgb.a=ED(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=wD(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return YD(this._rgb,2,e),this}darken(e){return YD(this._rgb,2,-e),this}saturate(e){return YD(this._rgb,1,e),this}desaturate(e){return YD(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=_D(e);n[0]=HD(n[0]+t),n=BD(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}
|
33
|
+
/*!
|
34
|
+
* Chart.js v4.4.4
|
35
|
+
* https://www.chartjs.org
|
36
|
+
* (c) 2024 Chart.js Contributors
|
37
|
+
* Released under the MIT License
|
38
|
+
*/function tA(){}const nA=(()=>{let e=0;return()=>e++})();function oA(e){return null==e}function rA(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function iA(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function aA(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function sA(e,t){return aA(e)?e:t}function lA(e,t){return void 0===e?t:e}const cA=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function uA(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function dA(e,t,n,o){let r,i,a;if(rA(e))for(i=e.length,r=0;r<i;r++)t.call(n,e[r],r);else if(iA(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function pA(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function fA(e){if(rA(e))return e.map(fA);if(iA(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=fA(e[n[r]]);return t}return e}function hA(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function gA(e,t,n,o){if(!hA(e))return;const r=t[e],i=n[e];iA(r)&&iA(i)?mA(r,i,o):t[e]=fA(i)}function mA(e,t,n){const o=rA(t)?t:[t],r=o.length;if(!iA(e))return e;const i=(n=n||{}).merger||gA;let a;for(let t=0;t<r;++t){if(a=o[t],!iA(a))continue;const r=Object.keys(a);for(let t=0,o=r.length;t<o;++t)i(r[t],e,a,n)}return e}function vA(e,t){return mA(e,t,{merger:bA})}function bA(e,t,n){if(!hA(e))return;const o=t[e],r=n[e];iA(o)&&iA(r)?vA(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=fA(r))}const yA={"":e=>e,x:e=>e.x,y:e=>e.y};function xA(e,t){const n=yA[t]||(yA[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const e of t)o+=e,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function CA(e){return e.charAt(0).toUpperCase()+e.slice(1)}const wA=e=>void 0!==e,SA=e=>"function"==typeof e,kA=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const EA=Math.PI,OA=2*EA,$A=OA+EA,NA=Number.POSITIVE_INFINITY,MA=EA/180,IA=EA/2,PA=EA/4,LA=2*EA/3,jA=Math.log10,DA=Math.sign;function AA(e,t,n){return Math.abs(e-t)<n}function TA(e){const t=Math.round(e);e=AA(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(jA(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function RA(e){return!isNaN(parseFloat(e))&&isFinite(e)}function _A(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function zA(e){return e*(EA/180)}function BA(e){return e*(180/EA)}function HA(e){if(!aA(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function FA(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*EA&&(i+=OA),{angle:i,distance:r}}function WA(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function VA(e,t){return(e-t+$A)%OA-EA}function KA(e){return(e%OA+OA)%OA}function qA(e,t,n,o){const r=KA(e),i=KA(t),a=KA(n),s=KA(i-r),l=KA(a-r),c=KA(r-i),u=KA(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function XA(e,t,n){return Math.max(t,Math.min(n,e))}function UA(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function GA(e,t,n){n=n||(n=>e[n]<t);let o,r=e.length-1,i=0;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const YA=(e,t,n,o)=>GA(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),QA=(e,t,n)=>GA(e,n,(o=>e[o][t]>=n));const ZA=["push","pop","shift","splice","unshift"];function JA(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length>0||(ZA.forEach((t=>{delete e[t]})),delete e._chartjs)}function eT(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const tT="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function nT(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,tT.call(window,(()=>{o=!1,e.apply(t,n)})))}}const oT=e=>"start"===e?"left":"end"===e?"right":"center",rT=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const iT=e=>0===e||1===e,aT=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*OA/n),sT=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*OA/n)+1,lT={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*IA),easeOutSine:e=>Math.sin(e*IA),easeInOutSine:e=>-.5*(Math.cos(EA*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>iT(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>iT(e)?e:aT(e,.075,.3),easeOutElastic:e=>iT(e)?e:sT(e,.075,.3),easeInOutElastic(e){const t=.1125;return iT(e)?e:e<.5?.5*aT(2*e,t,.45):.5+.5*sT(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-lT.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*lT.easeInBounce(2*e):.5*lT.easeOutBounce(2*e-1)+.5};function cT(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function uT(e){return cT(e)?e:new eA(e)}function dT(e){return cT(e)?e:new eA(e).saturate(.5).darken(.1).hexString()}const pT=["x","y","borderWidth","radius","tension"],fT=["color","borderColor","backgroundColor"];const hT=new Map;function gT(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=hT.get(n);return o||(o=new Intl.NumberFormat(e,t),hT.set(n,o)),o}(t,n).format(e)}const mT={values:e=>rA(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const a=jA(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),gT(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(jA(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?mT.numeric.call(this,e,t,n):""}};var vT={formatters:mT};const bT=Object.create(null),yT=Object.create(null);function xT(e,t){if(!t)return e;const n=t.split(".");for(let t=0,o=n.length;t<o;++t){const o=n[t];e=e[o]||(e[o]=Object.create(null))}return e}function CT(e,t,n){return"string"==typeof t?mA(xT(e,t),n):mA(xT(e,""),t)}class wT{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>dT(t.backgroundColor),this.hoverBorderColor=(e,t)=>dT(t.borderColor),this.hoverColor=(e,t)=>dT(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return CT(this,e,t)}get(e){return xT(this,e)}describe(e,t){return CT(yT,e,t)}override(e,t){return CT(bT,e,t)}route(e,t,n,o){const r=xT(this,e),i=xT(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[o];return iA(e)?Object.assign({},t,e):lA(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var ST=new wT({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:fT},numbers:{type:"number",properties:pT}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:vT.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function kT(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function ET(e,t,n){const o=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function OT(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function $T(e,t,n,o){NT(e,t,n,o,null)}function NT(e,t,n,o,r){let i,a,s,l,c,u,d,p;const f=t.pointStyle,h=t.rotation,g=t.radius;let m=(h||0)*MA;if(f&&"object"==typeof f&&(i=f.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(m),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void e.restore();if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f){default:r?e.ellipse(n,o,r/2,g,0,0,OA):e.arc(n,o,g,0,OA),e.closePath();break;case"triangle":u=r?r/2:g,e.moveTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=LA,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),m+=LA,e.lineTo(n+Math.sin(m)*u,o-Math.cos(m)*g),e.closePath();break;case"rectRounded":c=.516*g,l=g-c,a=Math.cos(m+PA)*l,d=Math.cos(m+PA)*(r?r/2-c:l),s=Math.sin(m+PA)*l,p=Math.sin(m+PA)*(r?r/2-c:l),e.arc(n-d,o-s,c,m-EA,m-IA),e.arc(n+p,o-a,c,m-IA,m),e.arc(n+d,o+s,c,m,m+IA),e.arc(n-p,o+a,c,m+IA,m+EA),e.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*g,u=r?r/2:l,e.rect(n-u,o-l,2*u,2*l);break}m+=PA;case"rectRot":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+p,o-a),e.lineTo(n+d,o+s),e.lineTo(n-p,o+a),e.closePath();break;case"crossRot":m+=PA;case"cross":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a);break;case"star":d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a),m+=PA,d=Math.cos(m)*(r?r/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,p=Math.sin(m)*(r?r/2:g),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+p,o-a),e.lineTo(n-p,o+a);break;case"line":a=r?r/2:Math.cos(m)*g,s=Math.sin(m)*g,e.moveTo(n-a,o-s),e.lineTo(n+a,o+s);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(m)*(r?r/2:g),o+Math.sin(m)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function MT(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function IT(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function PT(e){e.restore()}function LT(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===r!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function jT(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function DT(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),a=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function AT(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function TT(e,t,n,o,r,i={}){const a=rA(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),oA(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&AT(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),oA(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),DT(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function RT(e,t){const{x:n,y:o,w:r,h:i,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*EA,EA,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,EA,IA,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,IA,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-IA,!0),e.lineTo(n+a.topLeft,o)}const _T=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,zT=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function BT(e,t){const n=(""+e).match(_T);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}function HT(e,t){const n={},o=iA(t),r=o?Object.keys(t):t,i=iA(e)?o?n=>lA(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=+i(e)||0;return n}function FT(e){return HT(e,{top:"y",right:"x",bottom:"y",left:"x"})}function WT(e){return HT(e,["topLeft","topRight","bottomLeft","bottomRight"])}function VT(e){const t=FT(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function KT(e,t){e=e||{},t=t||ST.font;let n=lA(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=lA(e.style,t.style);o&&!(""+o).match(zT)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:lA(e.family,t.family),lineHeight:BT(lA(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:lA(e.weight,t.weight),string:""};return r.string=function(e){return!e||oA(e.size)||oA(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function qT(e,t,n,o){let r,i,a;for(r=0,i=e.length;r<i;++r)if(a=e[r],void 0!==a&&void 0!==a)return a}function XT(e,t){return Object.assign(Object.create(e),t)}function UT(e,t=[""],n,o,r=()=>e[0]){const i=n||e;void 0===o&&(o=iR("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>UT([n,...e],t,i,o)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>JT(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=iR(QT(i,e),n),void 0!==r)return ZT(e,r)?oR(n,o,e,r):r}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>aR(e).includes(t),ownKeys:e=>aR(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function GT(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:YT(e,o),setContext:t=>GT(e,t,n,o),override:r=>GT(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>JT(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];SA(s)&&a.isScriptable(t)&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(i,a||o);s.delete(e),ZT(e,l)&&(l=oR(r._scopes,r,e,l));return l}(t,s,e,n));rA(s)&&s.length&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=n;if(void 0!==i.index&&o(e))return t[i.index%t.length];if(iA(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=oR(o,r,e,l);t.push(GT(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));ZT(t,s)&&(s=GT(s,r,i&&i[t],a));return s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function YT(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:SA(n)?n:()=>n,isIndexable:SA(o)?o:()=>o}}const QT=(e,t)=>e?e+CA(t):t,ZT=(e,t)=>iA(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function JT(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const o=n();return e[t]=o,o}function eR(e,t,n){return SA(e)?e(t,n):e}const tR=(e,t)=>!0===e?t:"string"==typeof e?xA(t,e):void 0;function nR(e,t,n,o,r){for(const i of t){const t=tR(n,i);if(t){e.add(t);const i=eR(t._fallback,n,r);if(void 0!==i&&i!==n&&i!==o)return i}else if(!1===t&&void 0!==o&&n!==o)return null}return!1}function oR(e,t,n,o){const r=t._rootScopes,i=eR(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=rR(s,a,n,i||n,o);return null!==l&&((void 0===i||i===n||(l=rR(s,a,i,l,o),null!==l))&&UT(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];if(rA(r)&&iA(n))return n;return r||{}}(t,n,o))))}function rR(e,t,n,o,r){for(;n;)n=nR(e,t,n,o,r);return n}function iR(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function aR(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const sR=Number.EPSILON||1e-14,lR=(e,t)=>t<e.length&&!e[t].skip&&e[t],cR=e=>"x"===e?"y":"x";function uR(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=WA(i,r),l=WA(a,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=o*c,p=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+p*(a.x-r.x),y:i.y+p*(a.y-r.y)}}}function dR(e,t="x"){const n=cR(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=lR(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=lR(e,a+1),l){if(c){const e=c[t]-l[t];r[a]=0!==e?(c[n]-l[n])/e:0}i[a]=s?c?DA(r[a-1])!==DA(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const o=e.length;let r,i,a,s,l,c=lR(e,0);for(let u=0;u<o-1;++u)l=c,c=lR(e,u+1),l&&c&&(AA(t[u],0,sR)?n[u]=n[u+1]=0:(r=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(r,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=r*a*t[u],n[u+1]=i*a*t[u])))}(e,r,i),function(e,t,n="x"){const o=cR(n),r=e.length;let i,a,s,l=lR(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=lR(e,c+1),!s)continue;const r=s[n],u=s[o];a&&(i=(r-a[n])/3,s[`cp1${n}`]=r-i,s[`cp1${o}`]=u-i*t[c]),l&&(i=(l[n]-r)/3,s[`cp2${n}`]=r+i,s[`cp2${o}`]=u+i*t[c])}}(e,i,t)}function pR(e,t,n){return Math.max(Math.min(e,n),t)}function fR(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)dR(e,r);else{let n=o?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)s=e[i],l=uR(n,s,e[Math.min(i+1,a-(o?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,o,r,i,a,s=MT(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&MT(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=pR(r.cp1x,t.left,t.right),r.cp1y=pR(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=pR(r.cp2x,t.left,t.right),r.cp2y=pR(r.cp2y,t.top,t.bottom)))}(e,n)}function hR(){return"undefined"!=typeof window&&"undefined"!=typeof document}function gR(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function mR(e,t,n){let o;return"string"==typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const vR=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const bR=["top","right","bottom","left"];function yR(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=bR[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function xR(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=vR(n),i="border-box"===r.boxSizing,a=yR(r,"padding"),s=yR(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let a,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(r,i,e.target))a=r,s=i;else{const e=t.getBoundingClientRect();a=o.clientX-e.left,s=o.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:f,height:h}=t;return i&&(f-=a.width+s.width,h-=a.height+s.height),{x:Math.round((l-d)/f*n.width/o),y:Math.round((c-p)/h*n.height/o)}}const CR=e=>Math.round(10*e)/10;function wR(e,t,n,o){const r=vR(e),i=yR(r,"margin"),a=mR(r.maxWidth,e,"clientWidth")||NA,s=mR(r.maxHeight,e,"clientHeight")||NA,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=e&&gR(e);if(i){const e=i.getBoundingClientRect(),a=vR(i),s=yR(a,"border","width"),l=yR(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=mR(a.maxWidth,i,"clientWidth"),r=mR(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||NA,maxHeight:r||NA}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=yR(r,"border","width"),t=yR(r,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-i.width),u=Math.max(0,o?c/o:u-i.height),c=CR(Math.min(c,a,l.maxWidth)),u=CR(Math.min(u,s,l.maxHeight)),c&&!u&&(u=CR(c/2));return(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=CR(Math.floor(u*o))),{width:c,height:u}}function SR(e,t,n){const o=t||1,r=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==o||a.height!==r||a.width!==i)&&(e.currentDevicePixelRatio=o,a.height=r,a.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0)}const kR=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};hR()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function ER(e,t){const n=function(e,t){return vR(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function OR(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function $R(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function NR(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=OR(e,r,n),s=OR(r,i,n),l=OR(i,t,n),c=OR(a,s,n),u=OR(s,l,n);return OR(c,u,n)}function MR(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function IR(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function PR(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function LR(e){return"angle"===e?{between:qA,compare:VA,normalize:KA}:{between:UA,compare:(e,t)=>e-t,normalize:e=>e}}function jR({start:e,end:t,count:n,loop:o,style:r}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n==0,style:r}}function DR(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=LR(o),{start:u,end:d,loop:p,style:f}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:s}=LR(o),l=t.length;let c,u,{start:d,end:p,loop:f}=e;if(f){for(d+=l,p+=l,c=0,u=l;c<u&&a(s(t[d%l][o]),r,i);++c)d--,p--;d%=l,p%=l}return p<d&&(p+=l),{start:d,end:p,loop:f,style:e.style}}(e,t,n),h=[];let g,m,v,b=!1,y=null;const x=()=>b||l(r,v,g)&&0!==s(r,v),C=()=>!b||0===s(i,g)||l(i,v,g);for(let e=u,n=u;e<=d;++e)m=t[e%a],m.skip||(g=c(m[o]),g!==v&&(b=l(g,r,i),null===y&&x()&&(y=0===s(g,r)?e:n),null!==y&&C()&&(h.push(jR({start:y,end:e,loop:p,count:a,style:f})),y=null),n=e,v=g));return null!==y&&h.push(jR({start:y,end:d,loop:p,count:a,style:f})),h}function AR(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=TR(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,p=d;function f(e,t,o,r){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:o,style:r}),u=r,d=t%l)}}for(const e of t){d=s?d:e.start;let t,i=n[d%l];for(p=d+1;p<=e.end;p++){const s=n[p%l];t=TR(o.setContext(XT(r,{type:"segment",p0:i,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),RR(t,u)&&f(d,p-1,e.loop,u),i=s,u=t}d<p-1&&f(d,p-1,e.loop,u)}return c}(e,t,n,o):t}function TR(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function RR(e,t){if(!t)return!1;const n=[],o=function(e,t){return cT(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}
|
39
|
+
/*!
|
40
|
+
* Chart.js v4.4.4
|
41
|
+
* https://www.chartjs.org
|
42
|
+
* (c) 2024 Chart.js Contributors
|
43
|
+
* Released under the MIT License
|
44
|
+
*/class _R{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const r=t.listeners[o],i=t.duration;r.forEach((o=>o({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=tT.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,a=r.length-1,s=!1;for(;a>=0;--a)i=r[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(r[a]=r[r.length-1],r.pop());s&&(o.draw(),this._notify(o,n,e,"progress")),r.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var zR=new _R;const BR="transparent",HR={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=uT(e||BR),r=o.valid&&uT(t||BR);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class FR{constructor(e,t,n,o){const r=t[n];o=qT([e.to,o,r,e.from]);const i=qT([e.from,r,o]);this._active=!0,this._fn=e.fn||HR[e.type||typeof i],this._easing=lT[e.easing]||lT.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=qT([e.to,t,o,e.from]),this._from=qT([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,r=this._from,i=this._loop,a=this._to;let s;if(this._active=r!==a&&(i||t<n),!this._active)return this._target[o]=a,void this._notify(!0);t<0?this._target[o]=r:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(r,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class WR{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!iA(e))return;const t=Object.keys(ST.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!iA(r))return;const i={};for(const e of t)i[e]=r[e];(rA(r.properties)&&r.properties||[o]).forEach((e=>{e!==o&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!o)return[];const r=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let t=0;t<o.length;t++){const r=e[o[t]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,o=[],r=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){o.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(r[l]=u=new FR(d,e,l,c),o.push(u)):e[l]=c}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(zR.add(this._chart,n),!0):void 0}}function VR(e,t){const n=e&&e.options||{},o=n.reverse,r=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:o?i:r,end:o?r:i}}function KR(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function qR(e,t,n,o={}){const r=e.keys,i="single"===o.mode;let a,s,l,c;if(null!==t){for(a=0,s=r.length;a<s;++a){if(l=+r[a],l===n){if(o.all)continue;break}c=e.values[l],aA(c)&&(i||0===t||DA(t)===DA(c))&&(t+=c)}return t}}function XR(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function UR(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function GR(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function YR(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=o,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,o),d=t.length;let p;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;p=(n._stacks||(n._stacks={}))[c]=UR(r,u,i),p[s]=d,p._top=GR(p,a,!0,o.type),p._bottom=GR(p,a,!1,o.type);(p._visualValues||(p._visualValues={}))[s]=d}}function QR(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function ZR(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n],void 0!==t[o]._visualValues&&void 0!==t[o]._visualValues[n]&&delete t[o]._visualValues[n]}}}const JR=e=>"reset"===e||"none"===e,e_=(e,t)=>t?e:Object.assign({},e);class t_{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=XR(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&ZR(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,r=t.xAxisID=lA(n.xAxisID,QR(e,"x")),i=t.yAxisID=lA(n.yAxisID,QR(e,"y")),a=t.rAxisID=lA(n.rAxisID,QR(e,"r")),s=t.indexAxis,l=t.iAxisID=o(s,r,i,a),c=t.vAxisID=o(s,i,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&JA(this._data,this),e._stacked&&ZR(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(iA(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:o}=t,r="x"===n.axis?"x":"y",i="x"===o.axis?"x":"y",a=Object.keys(e),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[r]:u,[i]:e[u]};return s}(t,e)}else if(n!==t){if(n){JA(n,this);const e=this._cachedMeta;ZR(e),e._parsed=[]}t&&Object.isExtensible(t)&&function(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ZA.forEach((t=>{const n="_onData"+CA(t),o=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const r=o.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[n]&&e[n](...t)})),r}})})))}(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=t._stacked;t._stacked=XR(t.vScale,t),t.stack!==n.stack&&(o=!0,ZR(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&YR(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:i}=n,a=r.axis;let s,l,c,u=0===e&&t===o.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,c=o;else{c=rA(o[e])?this.parseArrayData(n,o,e,t):iA(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const r=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(r()&&(u=!1),d=l);n._sorted=u}i&&YR(this,c)}parsePrimitiveData(e,t,n,o){const{iScale:r,vScale:i}=e,a=r.axis,s=i.axis,l=r.getLabels(),c=r===i,u=new Array(o);let d,p,f;for(d=0,p=o;d<p;++d)f=d+n,u[d]={[a]:c||r.parse(l[f],f),[s]:i.parse(t[f],f)};return u}parseArrayData(e,t,n,o){const{xScale:r,yScale:i}=e,a=new Array(o);let s,l,c,u;for(s=0,l=o;s<l;++s)c=s+n,u=t[c],a[s]={x:r.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,o){const{xScale:r,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(o);let c,u,d,p;for(c=0,u=o;c<u;++c)d=c+n,p=t[d],l[c]={x:r.parse(xA(p,a),d),y:i.parse(xA(p,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,r=this._cachedMeta,i=t[e.axis];return qR({keys:KR(o,!0),values:t._stacks[e.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const r=n[t.axis];let i=null===r?NaN:r;const a=o&&n._stacks[t.axis];o&&a&&(o.values=a,i=qR(o,r,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&e===n.iScale,i=o.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:KR(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,p;function f(){p=o[d];const t=p[a.axis];return!aA(p[e.axis])||c>t||u<t}for(d=0;d<i&&(f()||(this.updateRangeFromParsed(l,e,p,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,e,p,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o][e.axis],aA(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,r;return iA(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:!1===e}}(lA(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=VR(e,n),r=VR(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],r=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||o.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,a,s),c=a;c<a+s;++c){const t=o[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,r))}for(c=0;c<i.length;++c)i[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return XT(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return XT(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const o="active"===t,r=this._cachedDataOpts,i=e+"-"+t,a=r[i],s=this.enableOptionSharing&&wA(n);if(a)return e_(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),p=Object.keys(ST.elements[e]),f=l.resolveNamedOptions(d,p,(()=>this.getContext(n,o,t)),u);return f.$shared&&(f.$shared=s,r[i]=Object.freeze(e_(f,s))),f}_resolveAnimations(e,t,n){const o=this.chart,r=this._cachedDataOpts,i=`animation-${t}`,a=r[i];if(a)return a;let s;if(!1!==o.options.animation){const o=this.chart.config,r=o.datasetAnimationScopeKeys(this._type,t),i=o.getOptionScopes(this.getDataset(),r);s=o.createResolver(i,this.getContext(e,n,t))}const l=new WR(o,s&&s.animations);return s&&s._cacheable&&(r[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||JR(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(t,r)||r!==o;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:i}}updateElement(e,t,n,o){JR(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!JR(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const r=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const o=n.length,r=t.length,i=Math.min(r,o);i&&this.parse(0,i),r>o?this._insertElements(o,r-o,e):r<o&&this._removeElements(r,o-r)}_insertElements(e,t,n=!0){const o=this._cachedMeta,r=o.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(r),a=e;a<i;++a)r[a]=new this.dataElementType;this._parsing&&s(o._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&ZR(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function n_(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,r=n.length;t<r;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=eT(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,r,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(wA(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(o=0,r=n.length;o<r;++o)i=t.getPixelForValue(n[o]),l();for(a=void 0,o=0,r=t.ticks.length;o<r;++o)i=t.getPixelForTick(o),l();return s}function o_(e,t,n,o){return rA(e)?function(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),a=Math.min(r,i),s=Math.max(r,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:i,min:a,max:s}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function r_(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),s=r===i,l=[];let c,u,d,p;for(c=n,u=n+o;c<u;++c)p=t[c],d={},d[r.axis]=s||r.parse(a[c],c),l.push(o_(p,d,i,c));return l}function i_(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function a_(e,t,n,o){let r=t.borderSkipped;const i={};if(!r)return void(e.borderSkipped=i);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=c:(n._bottom||0)===o?r=u:(i[s_(u,a,s,l)]=!0,r=c)),i[s_(r,a,s,l)]=!0,e.borderSkipped=i}function s_(e,t,n,o){var r,i,a;return o?(a=n,e=l_(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=l_(e,t,n),e}function l_(e,t,n){return"start"===e?t:"end"===e?n:e}function c_(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class u_ extends t_{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,o){return r_(e,t,n,o)}parseArrayData(e,t,n,o){return r_(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:r,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?a:s,c="x"===i.axis?a:s,u=[];let d,p,f,h;for(d=n,p=n+o;d<p;++d)h=t[d],f={},f[r.axis]=r.parse(xA(h,l),d),u.push(o_(xA(h,c),f,i,d));return u}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,r=this.getParsed(e),i=r._custom,a=i_(i)?"["+i.start+", "+i.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const r="reset"===o,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,o);for(let p=t;p<t+n;p++){const t=this.getParsed(p),n=r||oA(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,c),h=(t._stacks||{})[a.axis],g={horizontal:l,base:n.base,enableBorderRadius:!h||i_(t._custom)||i===h._top||i===h._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};d&&(g.options=u||this.resolveDataElementOptions(p,e[p].active?"active":o));const m=g.options||e[p].options;a_(g,m,h,i),c_(g,m,c.ratio),this.updateElement(e[p],p,g,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(t),s=a&&a[n.axis],l=e=>{const t=e._parsed.find((e=>e[n.axis]===s)),o=t&&t[e.vScale.axis];if(oA(o)||isNaN(o))return!0};for(const n of o)if((void 0===t||!l(n))&&((!1===r||-1===i.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),r=void 0!==t?o.indexOf(t):-1;return-1===r?o.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let r,i;for(r=0,i=t.data.length;r<i;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||n_(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:o},options:{base:r,minBarLength:i}}=this,a=r||0,s=this.getParsed(e),l=s._custom,c=i_(l);let u,d,p=s[t.axis],f=0,h=n?this.applyStack(t,s,n):p;h!==p&&(f=h-p,h=p),c&&(p=l.barStart,h=l.barEnd-l.barStart,0!==p&&DA(p)!==DA(l.barEnd)&&(f=0),f+=p);const g=oA(r)||c?f:r;let m=t.getPixelForValue(g);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(f+h):m,d=u-m,Math.abs(d)<i){d=function(e,t,n){return 0!==e?DA(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,p===a&&(m-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),f=Math.max(e,r);m=Math.max(Math.min(m,f),l),u=m+d,n&&!c&&(s._stacks[t.axis]._visualValues[o]=t.getValueForPixel(u)-t.getValueForPixel(m))}if(m===t.getPixelForValue(a)){const e=DA(d)*t.getLineWidthForValue(a)/2;m+=e,d-=e}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,r=o.skipNull,i=lA(o.maxBarThickness,1/0);let a,s;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===o.barThickness?function(e,t,n,o){const r=t.pixels,i=r[e];let a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/o,ratio:n.barPercentage,start:c}}(e,t,o,n):function(e,t,n,o){const r=n.barThickness;let i,a;return oA(r)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:t.pixels[e]-i/2}}(e,t,o,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let r=0;for(;r<o;++r)null===this.getParsed(r)[t.axis]||n[r].hidden||n[r].draw(this._ctx)}}class d_ extends t_{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return t.labels.map(((t,r)=>{const i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:o,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let r,i,a=e=>+n[e];if(iA(n[e])){const{key:e="value"}=this._parsing;a=t=>+xA(n[t],e)}for(r=e,i=e+t;r<i;++r)o._parsed[r]=a(r)}}_getRotation(){return zA(this.options.rotation-90)}_getCircumference(){return zA(this.options.circumference)}_getRotationExtents(){let e=OA,t=-OA;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,r=o._getRotation(),i=o._getCircumference();e=Math.min(e,r),t=Math.max(t,r+i)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,o=this._cachedMeta,r=o.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:p}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:m}=function(e,t,n){let o=1,r=1,i=0,a=0;if(t<OA){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),f=(e,t,o)=>qA(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),h=(e,t,o)=>qA(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),g=f(0,c,d),m=f(IA,u,p),v=h(EA,c,d),b=h(EA+IA,u,p);o=(g-v)/2,r=(m-b)/2,i=-(g+v)/2,a=-(m+b)/2}return{ratioX:o,ratioY:r,offsetX:i,offsetY:a}}(p,d,s),v=(n.width-i)/f,b=(n.height-i)/h,y=Math.max(Math.min(v,b)/2,0),x=cA(this.options.radius,y),C=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,o.total=this.calculateTotal(),this.outerRadius=x-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,o=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*r/OA)}updateElements(e,t,n,o){const r="reset"===o,i=this.chart,a=i.chartArea,s=i.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=r&&s.animateScale,d=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(t,o);let g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,r);for(g=t;g<t+n;++g){const t=this._circumference(g,r),n=e[g],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+t,circumference:t,outerRadius:p,innerRadius:d};h&&(i.options=f||this.resolveDataElementOptions(g,n.active?"active":o)),m+=t,this.updateElement(n,g,i,o)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,o=0;for(n=0;n<t.length;n++){const r=e._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||t[n].hidden||(o+=Math.abs(r))}return o}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?OA*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=gT(t._parsed[e],n.options.locale);return{label:o[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let o,r,i,a,s;if(!e)for(o=0,r=n.data.datasets.length;o<r;++o)if(n.isDatasetVisible(o)){i=n.getDatasetMeta(o),e=i.data,a=i.controller;break}if(!e)return 0;for(o=0,r=e.length;o<r;++o)s=a.resolveDataElementOptions(o),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,o=e.length;n<o;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(lA(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class p_ extends t_{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=function(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:p}=a.getUserBounds();d&&(r=XA(Math.min(YA(s,l,c).lo,n?o:YA(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=p?XA(Math.max(YA(s,a.axis,u,!0).hi+1,n?0:YA(t,l,a.getPixelForValue(u),!0).hi+1),r,o)-r:o-r}return{start:r,count:i}}(t,o,i);this._drawStart=a,this._drawCount=s,function(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}(t)&&(a=0,s=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(o,a,s,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,o),d=i.axis,p=a.axis,{spanGaps:f,segment:h}=this.options,g=RA(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===o,v=t+n,b=e.length;let y=t>0&&this.getParsed(t-1);for(let n=0;n<b;++n){const f=e[n],b=m?f:{};if(n<t||n>=v){b.skip=!0;continue}const x=this.getParsed(n),C=oA(x[p]),w=b[d]=i.getPixelForValue(x[d],n),S=b[p]=r||C?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[p],n);b.skip=isNaN(w)||isNaN(S)||C,b.stop=n>0&&Math.abs(x[d]-y[d])>g,h&&(b.parsed=x,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,f.active?"active":o)),m||this.updateElement(f,n,b,o),y=x}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const r=o[0].size(this.resolveDataElementOptions(0)),i=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}class f_ extends d_{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function h_(e,t,n,o){const{controller:r,data:i,_sorted:a}=e,s=r._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?QA:YA;if(!o)return e(i,t,n);if(r._sharedOptions){const o=i[0],r="function"==typeof o.getRange&&o.getRange(t);if(r){const o=e(i,t,n-r),a=e(i,t,n+r);return{lo:o.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function g_(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=h_(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function m_(e,t,n,o,r){const i=[];if(!r&&!e.isPointInArea(t))return i;return g_(e,n,t,(function(n,a,s){(r||MT(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i}function v_(e,t,n,o,r,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const r=t?Math.abs(e.x-o.x):0,i=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return g_(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const p=n.getCenterPoint(r);if(!(!!i||e.isPointInArea(p))&&!d)return;const f=s(t,p);f<l?(a=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function b_(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?v_(e,t,n,o,r,i):function(e,t,n,o){let r=[];return g_(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=FA(e,{x:t.x,y:t.y});qA(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function y_(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return g_(e,n,t,((e,o,l)=>{e[a]&&e[a](t[n],r)&&(i.push({element:e,datasetIndex:o,index:l}),s=s||e.inRange(t.x,t.y,r))})),o&&!s?[]:i}var x_={evaluateInteractionItems:g_,modes:{index(e,t,n,o){const r=xR(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?m_(e,r,i,o,a):b_(e,r,i,!1,o,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,o){const r=xR(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?m_(e,r,i,o,a):b_(e,r,i,!1,o,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,o)=>m_(e,xR(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=xR(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return b_(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>y_(e,xR(t,e),"x",n.intersect,o),y:(e,t,n,o)=>y_(e,xR(t,e),"y",n.intersect,o)}};const C_=["left","top","right","bottom"];function w_(e,t){return e.filter((e=>e.pos===t))}function S_(e,t){return e.filter((e=>-1===C_.indexOf(e.pos)&&e.box.axis===t))}function k_(e,t){return e.sort(((e,n)=>{const o=t?n:e,r=t?e:n;return o.weight===r.weight?o.index-r.index:o.weight-r.weight}))}function E_(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!C_.includes(o))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*o:a&&t.availableWidth,s.height=r):(s.width=o,s.height=c?c*r:a&&t.availableHeight)}return n}function O_(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function $_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function N_(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!iA(r)){n.size&&(e[r]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[r]+=n.size}i.getPadding&&$_(a,i.getPadding());const s=Math.max(0,t.outerWidth-O_(a,e,"left","right")),l=Math.max(0,t.outerHeight-O_(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function M_(e,t){const n=t.maxPadding;function o(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}return o(e?["left","right"]:["top","bottom"])}function I_(e,t,n,o){const r=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,M_(s.horizontal,t));const{same:a,other:d}=N_(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&I_(r,t,n,o)||u}function P_(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function L_(e,t,n,o){const r=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=o[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const o=t.w*c,i=l.size||e.height;wA(l.start)&&(a=l.start),e.fullSize?P_(e,r.left,a,n.outerWidth-r.right-r.left,i):P_(e,t.left+l.placed,a,o,i),l.start=a,l.placed+=o,a=e.bottom}else{const o=t.h*c,a=l.size||e.width;wA(l.start)&&(i=l.start),e.fullSize?P_(e,i,r.top,a,n.outerHeight-r.bottom-r.top):P_(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var j_={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=VT(e.options.layout.padding),i=Math.max(t-r.width,0),a=Math.max(n-r.height,0),s=function(e){const t=function(e){const t=[];let n,o,r,i,a,s;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=r),t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=k_(t.filter((e=>e.box.fullSize)),!0),o=k_(w_(t,"left"),!0),r=k_(w_(t,"right")),i=k_(w_(t,"top"),!0),a=k_(w_(t,"bottom")),s=S_(t,"x"),l=S_(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:w_(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;dA(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},r);$_(p,VT(o));const f=Object.assign({maxPadding:p,w:i,h:a,x:r.left,y:r.top},r),h=E_(l.concat(c),d);I_(s.fullSize,f,d,h),I_(l,f,d,h),I_(c,f,d,h)&&I_(l,f,d,h),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(f),L_(s.leftAndTop,f,d,h),f.x+=f.w,f.y+=f.h,L_(s.rightAndBottom,f,d,h),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},dA(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class D_{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class A_ extends D_{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const T_="$chartjs",R_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},__=e=>null===e||""===e;const z_=!!kR&&{passive:!0};function B_(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,z_)}function H_(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function F_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||H_(n.addedNodes,o),t=t&&!H_(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function W_(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||H_(n.removedNodes,o),t=t&&!H_(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const V_=new Map;let K_=0;function q_(){const e=window.devicePixelRatio;e!==K_&&(K_=e,V_.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function X_(e,t,n){const o=e.canvas,r=o&&gR(o);if(!r)return;const i=nT(((e,t)=>{const o=r.clientWidth;n(e,t),o<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||i(n,o)}));return a.observe(r),function(e,t){V_.size||window.addEventListener("resize",q_),V_.set(e,t)}(e,i),a}function U_(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){V_.delete(e),V_.size||window.removeEventListener("resize",q_)}(e)}function G_(e,t,n){const o=e.canvas,r=nT((t=>{null!==e.ctx&&n(function(e,t){const n=R_[e.type]||e.type,{x:o,y:r}=xR(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e&&e.addEventListener(t,n,z_)}(o,t,r),r}class Y_ extends D_{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[T_]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",__(r)){const t=ER(e,"width");void 0!==t&&(e.width=t)}if(__(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=ER(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[T_])return!1;const n=t[T_].initial;["height","width"].forEach((e=>{const o=n[e];oA(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[T_],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:F_,detach:W_,resize:X_}[t]||G_;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];if(!o)return;({attach:U_,detach:U_,resize:U_}[t]||B_)(e,t,o),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return wR(e,t,n,o)}isAttached(e){const t=e&&gR(e);return!(!t||!t.isConnected)}}let Q_=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return RA(this.x)&&RA(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}};function Z_(e,t){const n=e.options.ticks,o=function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>r)return function(e,t,n,o){let r,i=0,a=n[0];for(o=Math.ceil(o),r=0;r<e.length;r++)r===a&&(t.push(e[r]),i++,a=n[i*o])}(t,c,i,a/r),c;const u=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),r=t.length/n;if(!o)return Math.max(r,1);const i=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o==0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>r)return t}return Math.max(r,1)}(i,t,r);if(a>0){let e,n;const o=a>1?Math.round((l-s)/(a-1)):null;for(J_(t,c,u,oA(o)?0:s-o,s),e=0,n=a-1;e<n;e++)J_(t,c,u,i[e],i[e+1]);return J_(t,c,u,l,oA(o)?t.length:l+o),c}return J_(t,c,u),c}function J_(e,t,n,o,r){const i=lA(o,0),a=Math.min(lA(r,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-o,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const ez=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,tz=(e,t)=>Math.min(t||e,e);function nz(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function oz(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===o?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<i-s||c>a+s)))return c}function rz(e){return e.drawTicks?e.tickLength:0}function iz(e,t){if(!e.display)return 0;const n=KT(e.font,t),o=VT(e.padding);return(rA(e.text)?e.text.length:1)*n.lineHeight+o.height}function az(e,t,n){let o=oT(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class sz extends Q_{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=sA(e,Number.POSITIVE_INFINITY),t=sA(t,Number.NEGATIVE_INFINITY),n=sA(n,Number.POSITIVE_INFINITY),o=sA(o,Number.NEGATIVE_INFINITY),{min:sA(e,n),max:sA(t,o),minDefined:aA(e),maxDefined:aA(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),i||(o=Math.max(o,t.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:sA(n,sA(o,n)),max:sA(o,sA(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){uA(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:r,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:r}=e,i=cA(t,(r-o)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(o,-Math.abs(i)),max:a(r,i)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?nz(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=Z_(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){uA(this.options.afterUpdate,[this])}beforeSetDimensions(){uA(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){uA(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),uA(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){uA(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,r;for(n=0,o=e.length;n<o;n++)r=e[n],r.label=uA(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){uA(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){uA(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=tz(this.ticks.length,e.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let i,a,s,l=o;if(!this._isVisible()||!t.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,p=XA(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:p/(n-1),u+6>i&&(i=p/(n-(e.offset?.5:1)),a=this.maxHeight-rz(e.grid)-t.padding-iz(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=BA(Math.min(Math.asin(XA((c.highest.height+6)/i,-1,1)),Math.asin(XA(a/s,-1,1))-Math.asin(XA(d/s,-1,1)))),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){uA(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){uA(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:r}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=iz(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=rz(r)+i):(e.height=this.maxHeight,e.width=rz(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=zA(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*r.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*r.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,o,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:r,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=o*e.width,d=n*t.height):(u=n*e.height,d=o*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,o=e.height/2;"start"===r?(n=0,o=e.height):"end"===r&&(n=t.height,o=0),this.paddingTop=n+i,this.paddingBottom=o+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){uA(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)oA(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=nz(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:o,_longestTextCache:r}=this,i=[],a=[],s=Math.floor(t/tz(t,n));let l,c,u,d,p,f,h,g,m,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,p=this._resolveTickFontOptions(l),o.font=f=p.string,h=r[f]=r[f]||{data:{},gc:[]},g=p.lineHeight,m=v=0,oA(d)||rA(d)){if(rA(d))for(c=0,u=d.length;c<u;++c)b=d[c],oA(b)||rA(b)||(m=kT(o,h.data,h.gc,m,b),v+=g)}else m=kT(o,h.data,h.gc,m,d),v=g;i.push(m),a.push(v),y=Math.max(m,y),x=Math.max(v,x)}!function(e,t){dA(e,(e=>{const n=e.gc,o=n.length/2;let r;if(o>t){for(r=0;r<o;++r)delete e.data[n[r]];n.splice(0,o)}}))}(r,t);const C=i.indexOf(y),w=a.indexOf(x),S=e=>({width:i[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(C),highest:S(w),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return XA(this._alignToPixels?ET(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return XT(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=XT(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=zA(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),i=e.autoSkipPadding||0,a=r?r.widest.width+i:0,s=r?r.highest.height+i:0;return this.isHorizontal()?s*n>a*o?a/n:s/o:s*o<a*n?s/n:a/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:r,position:i,border:a}=o,s=r.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=rz(r),d=[],p=a.setContext(this.getContext()),f=p.display?p.width:0,h=f/2,g=function(e){return ET(n,e,f)};let m,v,b,y,x,C,w,S,k,E,O,$;if("top"===i)m=g(this.bottom),C=this.bottom-u,S=m-h,E=g(e.top)+h,$=e.bottom;else if("bottom"===i)m=g(this.top),E=e.top,$=g(e.bottom)-h,C=m+h,S=this.top+u;else if("left"===i)m=g(this.right),x=this.right-u,w=m-h,k=g(e.left)+h,O=e.right;else if("right"===i)m=g(this.left),k=e.left,O=g(e.right)-h,x=m+h,w=this.left+u;else if("x"===t){if("center"===i)m=g((e.top+e.bottom)/2+.5);else if(iA(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}E=e.top,$=e.bottom,C=m+h,S=C+u}else if("y"===t){if("center"===i)m=g((e.left+e.right)/2);else if(iA(i)){const e=Object.keys(i)[0],t=i[e];m=g(this.chart.scales[e].getPixelForValue(t))}x=m-h,w=x-u,k=e.left,O=e.right}const N=lA(o.ticks.maxTicksLimit,c),M=Math.max(1,Math.ceil(c/N));for(v=0;v<c;v+=M){const e=this.getContext(v),t=r.setContext(e),o=a.setContext(e),i=t.lineWidth,c=t.color,u=o.dash||[],p=o.dashOffset,f=t.tickWidth,h=t.tickColor,g=t.tickBorderDash||[],m=t.tickBorderDashOffset;b=oz(this,v,s),void 0!==b&&(y=ET(n,b,i),l?x=w=k=O=y:C=S=E=$=y,d.push({tx1:x,ty1:C,tx2:w,ty2:S,x1:k,y1:E,x2:O,y2:$,width:i,color:c,borderDash:u,borderDashOffset:p,tickWidth:f,tickColor:h,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:r}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,d=rz(n.grid),p=d+c,f=u?-c:p,h=-zA(this.labelRotation),g=[];let m,v,b,y,x,C,w,S,k,E,O,$,N="middle";if("top"===o)C=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===o)C=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,x=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,x=e.x}else if("x"===t){if("center"===o)C=(e.top+e.bottom)/2+p;else if(iA(o)){const e=Object.keys(o)[0],t=o[e];C=this.chart.scales[e].getPixelForValue(t)+p}w=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(e.left+e.right)/2-p;else if(iA(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?N="top":"end"===s&&(N="bottom"));const M=this._getLabelSizes();for(m=0,v=a.length;m<v;++m){b=a[m],y=b.label;const e=r.setContext(this.getContext(m));S=this.getPixelForTick(m)+r.labelOffset,k=this._resolveTickFontOptions(m),E=k.lineHeight,O=rA(y)?y.length:1;const t=O/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=w;if(i?(x=S,"inner"===w&&(p=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),$="top"===o?"near"===l||0!==h?-O*E+E/2:"center"===l?-M.highest.height/2-t*E+E:-M.highest.height+E/2:"near"===l||0!==h?E/2:"center"===l?M.highest.height/2-t*E:M.highest.height-O*E,u&&($*=-1),0===h||e.showLabelBackdrop||(x+=E/2*Math.sin(h))):(C=S,$=(1-O)*E/2),e.showLabelBackdrop){const t=VT(e.backdropPadding),n=M.heights[m],o=M.widths[m];let r=$-t.top,i=0-t.left;switch(N){case"middle":r-=n/2;break;case"bottom":r-=n}switch(w){case"center":i-=o/2;break;case"right":i-=o;break;case"inner":m===v-1?i-=o:m>0&&(i-=o/2)}d={left:i,top:r,width:o+t.width,height:n+t.height,color:e.backdropColor}}g.push({label:y,font:k,textOffset:$,options:{rotation:h,color:n,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:N,translation:[x,C],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-zA(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:r}}=this.options,i=e+r,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?o?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?o?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:r,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,r,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,i;const a=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,i=o.length;r<i;++r){const e=o[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const a=o.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=ET(e,this.left,i)-i/2,c=ET(e,this.right,a)+a/2,u=d=s):(u=ET(e,this.top,i)-i/2,d=ET(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&IT(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;TT(t,e.label,0,e.textOffset,o,n)}n&&PT(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=KT(n.font),i=VT(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||iA(t)?(s+=i.bottom,rA(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,o){const{top:r,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,p,f,h=0;const g=a-r,m=s-i;if(e.isHorizontal()){if(p=rT(o,i,s),iA(n)){const e=Object.keys(n)[0],o=n[e];f=u[e].getPixelForValue(o)+g-t}else f="center"===n?(c.bottom+c.top)/2+g-t:ez(e,n,t);d=s-i}else{if(iA(n)){const e=Object.keys(n)[0],o=n[e];p=u[e].getPixelForValue(o)-m+t}else p="center"===n?(c.left+c.right)/2-m+t:ez(e,n,t);f=rT(o,a,r),h="left"===n?-IA:IA}return{titleX:p,titleY:f,maxWidth:d,rotation:h}}(this,s,t,a);TT(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:az(a,t,o),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=lA(e.grid&&e.grid.z,-1),o=lA(e.border&&e.border.z,0);return this._isVisible()&&this.draw===sz.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];i[n]!==this.id||e&&i.type!==e||o.push(i)}return o}_resolveTickFontOptions(e){return KT(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class lz{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,r=e.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in o||(o[r]=e,function(e,t,n){const o=mA(Object.create(null),[n?ST.get(n):{},ST.get(t),e.defaults]);ST.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");ST.route(i,r,l,s)}))}(t,e.defaultRoutes);e.descriptors&&ST.describe(t,e.descriptors)}(e,i,n),this.override&&ST.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in ST[o]&&(delete ST[o][n],this.override&&delete bT[n])}}class cz{constructor(){this.controllers=new lz(t_,"datasets",!0),this.elements=new lz(Q_,"elements"),this.plugins=new lz(Object,"plugins"),this.scales=new lz(sz,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):dA(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=CA(e);uA(n["before"+o],[],n),t[e](n),uA(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var uz=new cz;class dz{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=o?this._descriptors(e).filter(o):this._descriptors(e),i=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,o){o=o||{};for(const r of e){const e=r.plugin;if(!1===uA(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){oA(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=lA(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(uz.plugins.items);for(let e=0;e<o.length;e++)n.push(uz.getPlugin(o[e]));const r=e.plugins||[];for(let e=0;e<r.length;e++){const o=r[e];-1===n.indexOf(o)&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,{plugins:t,localIds:n},o,r){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=pz(o[t],r);null!==l&&i.push({plugin:s,options:fz(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,r,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function pz(e,t){return t||!1!==e?!0===e?{}:e:null}function fz(e,{plugin:t,local:n},o,r){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(o,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hz(e,t){const n=ST.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function gz(e){if("x"===e||"y"===e||"r"===e)return e}function mz(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function vz(e,...t){if(gz(e))return e;for(const n of t){const t=n.axis||mz(n.position)||e.length>1&&gz(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function bz(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function yz(e,t){const n=bT[e.type]||{scales:{}},o=t.scales||{},r=hz(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!iA(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=vz(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return bz(e,"x",n[0])||bz(e,"y",n[0])}return{}}(t,e),ST.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=vA(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||hz(r,t),s=(bT[r]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),r=n[t+"AxisID"]||t;i[r]=i[r]||Object.create(null),vA(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];vA(t,[ST.scales[t.type],ST.scale])})),i}function xz(e){const t=e.options||(e.options={});t.plugins=lA(t.plugins,{}),t.scales=yz(e,t)}function Cz(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const wz=new Map,Sz=new Set;function kz(e,t){let n=wz.get(e);return n||(n=t(),wz.set(e,n),Sz.add(n)),n}const Ez=(e,t,n)=>{const o=xA(t,n);void 0!==o&&e.add(o)};class Oz{constructor(e){this._config=function(e){return(e=e||{}).data=Cz(e.data),xz(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Cz(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),xz(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return kz(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return kz(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return kz(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return kz(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:r}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>Ez(s,e,t)))),t.forEach((e=>Ez(s,o,e))),t.forEach((e=>Ez(s,bT[r]||{},e))),t.forEach((e=>Ez(s,ST,e))),t.forEach((e=>Ez(s,yT,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Sz.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,bT[t]||{},ST.datasets[t]||{},{type:t},ST,yT]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=$z(this._resolverCache,e,o);let s=i;if(function(e,t){const{isScriptable:n,isIndexable:o}=YT(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(SA(a)||Nz(a))||i&&rA(a))return!0}return!1}(i,t)){r.$shared=!1;s=GT(i,n=SA(n)?n():n,this.createResolver(e,n,a))}for(const e of t)r[e]=s[e];return r}createResolver(e,t,n=[""],o){const{resolver:r}=$z(this._resolverCache,e,n);return iA(t)?GT(r,t,void 0,o):r}}function $z(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);if(!i){i={resolver:UT(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)}return i}const Nz=e=>iA(e)&&Object.getOwnPropertyNames(e).some((t=>SA(e[t])));const Mz=["top","bottom","left","right","chartArea"];function Iz(e,t){return"top"===e||"bottom"===e||-1===Mz.indexOf(e)&&"x"===t}function Pz(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function Lz(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),uA(n&&n.onComplete,[e],t)}function jz(e){const t=e.chart,n=t.options.animation;uA(n&&n.onProgress,[e],t)}function Dz(e){return hR()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Az={},Tz=e=>{const t=Dz(e);return Object.values(Az).filter((e=>e.canvas===t)).pop()};function Rz(e,t,n){const o=Object.keys(e);for(const r of o){const o=+r;if(o>=t){const i=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=i)}}}function _z(e,t,n){return e.options.clip?e[n]:t[n]}let zz=class{static defaults=ST;static instances=Az;static overrides=bT;static registry=uz;static version="4.4.4";static getChart=Tz;static register(...e){uz.add(...e),Bz()}static unregister(...e){uz.remove(...e),Bz()}constructor(e,t){const n=this.config=new Oz(t),o=Dz(e),r=Tz(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!hR()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?A_:Y_}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=nA(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dz,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],Az[this.id]=this,a&&s?(zR.listen(this,"complete",Lz),zR.listen(this,"progress",jz),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:r}=this;return oA(e)?t&&r?r:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return uz}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():SR(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return OT(this.canvas,this.ctx),this}stop(){return zR.stop(this),this}resize(e,t){zR.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(o,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,SR(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),uA(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){dA(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],o=vz(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),dA(r,(t=>{const r=t.options,i=r.id,a=vz(i,r),s=lA(r.type,t.dtype);void 0!==r.position&&Iz(r.position,a)===Iz(t.dposition)||(r.position=t.dposition),o[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(uz.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,e)})),dA(o,((e,t)=>{e||delete n[t]})),dA(n,(e=>{j_.configure(this,e,e.options),j_.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Pz("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let r=this.getDatasetMeta(n);const i=o.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=o.indexAxis||hz(i,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=uz.getController(i),{datasetElementType:o,dataElementType:a}=ST.datasets[i];Object.assign(t,{dataElementType:uz.getElement(a),datasetElementType:o&&uz.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){dA(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!o&&-1===r.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),o||dA(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Pz("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){dA(this.scales,(e=>{j_.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);kA(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of t){Rz(e,o,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let e=1;e<t;e++)if(!kA(o,n(e)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;j_.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],dA(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,SA(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(zR.has(this)?this.attached&&!zR.running(this)&&zR.start(this):(this.draw(),Lz({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,r;for(o=0,r=t.length;o<r;++o){const r=t[o];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,o=!n.disabled,r=function(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:_z(n,t,"left"),right:_z(n,t,"right"),top:_z(o,t,"top"),bottom:_z(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&IT(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),o&&PT(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return MT(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=x_.modes[t];return"function"==typeof r?r(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=XT(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",r=this.getDatasetMeta(e),i=r.controller._resolveAnimations(void 0,o);wA(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),zR.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),OT(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Az[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};dA(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",i)};i=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){dA(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},dA(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let r,i,a,s;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[o+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!pA(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const o=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=r(t,e),a=n?e:r(e,t);i.length&&this.updateHoverStyle(i,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:r}=this,i=t,a=this._getActiveElements(e,o,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,uA(r.onHover,[e,a,this],this),s&&uA(r.onClick,[e,a,this],this));const c=!pA(a,o);return(c||t)&&(this._active=a,this._updateHoverStyles(a,o,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,o)}};function Bz(){return dA(zz.instances,(e=>e._plugins.invalidate()))}function Hz(e,t,n,o){const r=HT(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(n-t)/2,a=Math.min(i,o*t/2),s=e=>{const t=(n-Math.min(i,e))*o/2;return XA(e,0,Math.min(i,t))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:XA(r.innerStart,0,a),innerEnd:XA(r.innerEnd,0,a)}}function Fz(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function Wz(e,t,n,o,r,i){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+o+n-c,0),p=u>0?u+o+n+c:0;let f=0;const h=r-l;if(o){const e=((u>0?u-o:0)+(d>0?d-o:0))/2;f=(h-(0!==e?h*e/(e+o):h))/2}const g=(h-Math.max(.001,h*d-n/EA)/d)/2,m=l+g+f,v=r-g-f,{outerStart:b,outerEnd:y,innerStart:x,innerEnd:C}=Hz(t,p,d,v-m),w=d-b,S=d-y,k=m+b/w,E=v-y/S,O=p+x,$=p+C,N=m+x/O,M=v-C/$;if(e.beginPath(),i){const t=(k+E)/2;if(e.arc(a,s,d,k,t),e.arc(a,s,d,t,E),y>0){const t=Fz(S,E,a,s);e.arc(t.x,t.y,y,E,v+IA)}const n=Fz($,v,a,s);if(e.lineTo(n.x,n.y),C>0){const t=Fz($,M,a,s);e.arc(t.x,t.y,C,v+IA,M+Math.PI)}const o=(v-C/p+(m+x/p))/2;if(e.arc(a,s,p,v-C/p,o,!0),e.arc(a,s,p,o,m+x/p,!0),x>0){const t=Fz(O,N,a,s);e.arc(t.x,t.y,x,N+Math.PI,m-IA)}const r=Fz(w,m,a,s);if(e.lineTo(r.x,r.y),b>0){const t=Fz(w,k,a,s);e.arc(t.x,t.y,b,m-IA,k)}}else{e.moveTo(a,s);const t=Math.cos(k)*d+a,n=Math.sin(k)*d+s;e.lineTo(t,n);const o=Math.cos(E)*d+a,r=Math.sin(E)*d+s;e.lineTo(o,r)}e.closePath()}function Vz(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,f?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let h=t.endAngle;if(i){Wz(e,t,n,o,h,r);for(let t=0;t<i;++t)e.stroke();isNaN(s)||(h=a+(s%OA||OA))}f&&function(e,t,n){const{startAngle:o,pixelMargin:r,x:i,y:a,outerRadius:s,innerRadius:l}=t;let c=r/s;e.beginPath(),e.arc(i,a,s,o-c,n+c),l>r?(c=r/l,e.arc(i,a,l,n+c,o-c,!0)):e.arc(i,a,r,n+IA,o-IA),e.closePath(),e.clip()}(e,t,h),i||(Wz(e,t,n,o,h,r),e.stroke())}function Kz(e,t,n=t){e.lineCap=lA(n.borderCapStyle,t.borderCapStyle),e.setLineDash(lA(n.borderDash,t.borderDash)),e.lineDashOffset=lA(n.borderDashOffset,t.borderDashOffset),e.lineJoin=lA(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=lA(n.borderWidth,t.borderWidth),e.strokeStyle=lA(n.borderColor,t.borderColor)}function qz(e,t,n){e.lineTo(n.x,n.y)}function Xz(e,t,n={}){const o=e.length,{start:r=0,end:i=o-1}=n,{start:a,end:s}=t,l=Math.max(r,a),c=Math.min(i,s),u=r<a&&i<a||r>s&&i>s;return{count:o,start:l,loop:t.loop,ilen:c<l&&!u?o+c-l:c-l}}function Uz(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=Xz(r,n,o),u=function(e){return e.stepped?LT:e.tension||"monotone"===e.cubicInterpolationMode?jT:qz}(i);let d,p,f,{move:h=!0,reverse:g}=o||{};for(d=0;d<=c;++d)p=r[(s+(g?c-d:d))%a],p.skip||(h?(e.moveTo(p.x,p.y),h=!1):u(e,f,p,g,i.stepped),f=p);return l&&(p=r[(s+(g?c:0))%a],u(e,f,p,g,i.stepped)),!!l}function Gz(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=Xz(r,n,o),{move:l=!0,reverse:c}=o||{};let u,d,p,f,h,g,m=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{f!==h&&(e.lineTo(m,h),e.lineTo(m,f),e.lineTo(m,g))};for(l&&(d=r[b(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[b(u)],d.skip)continue;const t=d.x,n=d.y,o=0|t;o===p?(n<f?f=n:n>h&&(h=n),m=(v*m+t)/++v):(y(),e.lineTo(t,n),p=o,v=0,f=h=n),g=n}y()}function Yz(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n)?Gz:Uz}const Qz="function"==typeof Path2D;function Zz(e,t,n,o){Qz&&!t.options.segment?function(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),Kz(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=Yz(t);for(const s of r)Kz(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}function Jz(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}function eB(e,t){const{x:n,y:o,base:r,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=a/2,s=Math.min(n,r),l=Math.max(n,r),c=o-d,u=o+d):(d=i/2,s=n-d,l=n+d,c=Math.min(o,r),u=Math.max(o,r)),{left:s,top:c,right:l,bottom:u}}function tB(e,t,n,o){return e?0:XA(t,n,o)}function nB(e){const t=eB(e),n=t.right-t.left,o=t.bottom-t.top,r=function(e,t,n){const o=e.options.borderWidth,r=e.borderSkipped,i=FT(o);return{t:tB(r.top,i.top,0,n),r:tB(r.right,i.right,0,t),b:tB(r.bottom,i.bottom,0,n),l:tB(r.left,i.left,0,t)}}(e,n/2,o/2),i=function(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),r=e.options.borderRadius,i=WT(r),a=Math.min(t,n),s=e.borderSkipped,l=o||iA(r);return{topLeft:tB(!l||s.top||s.left,i.topLeft,0,a),topRight:tB(!l||s.top||s.right,i.topRight,0,a),bottomLeft:tB(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:tB(!l||s.bottom||s.right,i.bottomRight,0,a)}}(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:o-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function oB(e,t,n,o){const r=null===t,i=null===n,a=e&&!(r&&i)&&eB(e,o);return a&&(r||UA(t,a.left,a.right))&&(i||UA(n,a.top,a.bottom))}function rB(e,t){e.rect(t.x,t.y,t.w,t.h)}function iB(e,t,n={}){const o=e.x!==n.x?-t:0,r=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,a=(e.y+e.h!==n.y+n.h?t:0)-r;return{x:e.x+o,y:e.y+r,w:e.w+i,h:e.h+a,radius:e.radius}}const aB=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}};class sB extends Q_{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=uA(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,o=KT(n.font),r=o.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=aB(n,r);let l,c;t.font=o.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,r,a,s)+10):(c=this.maxHeight,l=this._fitCols(i,o,a,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,o){const{ctx:r,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=o+a;let u=e;r.textAlign="left",r.textBaseline="middle";let d=-1,p=-c;return this.legendItems.forEach(((e,f)=>{const h=n+t/2+r.measureText(e.text).width;(0===f||l[l.length-1]+h+2*a>i)&&(u+=c,l[l.length-(f>0?0:1)]=0,p+=c,d++),s[f]={left:0,top:p,row:d,width:h,height:o},l[l.length-1]+=h+a})),u}_fitCols(e,t,n,o){const{ctx:r,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-e;let u=a,d=0,p=0,f=0,h=0;return this.legendItems.forEach(((e,i)=>{const{itemWidth:g,itemHeight:m}=function(e,t,n,o,r){const i=function(e,t,n,o){let r=e.text;r&&"string"!=typeof r&&(r=r.reduce(((e,t)=>e.length>t.length?e:t)));return t+n.size/2+o.measureText(r).width}(o,e,t,n),a=function(e,t,n){let o=e;"string"!=typeof t.text&&(o=lB(t,n));return o}(r,o,t.lineHeight);return{itemWidth:i,itemHeight:a}}(n,t,r,e,o);i>0&&p+m+2*a>c&&(u+=d+a,l.push({width:d,height:p}),f+=d+a,h++,d=p=0),s[i]={left:f,top:p,col:h,width:g,height:m},d=Math.max(d,g),p+=m+a})),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:r}}=this,i=MR(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=rT(n,this.left+o,this.right-this.lineWidths[r]);for(const s of t)r!==s.row&&(r=s.row,a=rT(n,this.left+o,this.right-this.lineWidths[r])),s.top+=this.top+e+o,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+o}else{let r=0,a=rT(n,this.top+e+o,this.bottom-this.columnSizes[r].height);for(const s of t)s.col!==r&&(r=s.col,a=rT(n,this.top+e+o,this.bottom-this.columnSizes[r].height)),s.top=a,s.left+=this.left+o,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;IT(e,this),this._draw(),PT(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:r,labels:i}=e,a=ST.color,s=MR(e.rtl,this.left,this.width),l=KT(i.font),{padding:c}=i,u=l.size,d=u/2;let p;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:f,boxHeight:h,itemHeight:g}=aB(i,u),m=this.isHorizontal(),v=this._computeTitleHeight();p=m?{x:rT(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:rT(r,this.top+v+c,this.bottom-t[0].height),line:0},IR(this.ctx,e.textDirection);const b=g+c;this.legendItems.forEach(((y,x)=>{o.strokeStyle=y.fontColor,o.fillStyle=y.fontColor;const C=o.measureText(y.text).width,w=s.textAlign(y.textAlign||(y.textAlign=i.textAlign)),S=f+d+C;let k=p.x,E=p.y;s.setWidth(this.width),m?x>0&&k+S+c>this.right&&(E=p.y+=b,p.line++,k=p.x=rT(r,this.left+c,this.right-n[p.line])):x>0&&E+b>this.bottom&&(k=p.x=k+t[p.line].width+c,p.line++,E=p.y=rT(r,this.top+v+c,this.bottom-t[p.line].height));if(function(e,t,n){if(isNaN(f)||f<=0||isNaN(h)||h<0)return;o.save();const r=lA(n.lineWidth,1);if(o.fillStyle=lA(n.fillStyle,a),o.lineCap=lA(n.lineCap,"butt"),o.lineDashOffset=lA(n.lineDashOffset,0),o.lineJoin=lA(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=lA(n.strokeStyle,a),o.setLineDash(lA(n.lineDash,[])),i.usePointStyle){const a={radius:h*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(e,f/2);NT(o,a,l,t+d,i.pointStyleWidth&&f)}else{const i=t+Math.max((u-h)/2,0),a=s.leftForLtr(e,f),l=WT(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?RT(o,{x:a,y:i,w:f,h:h,radius:l}):o.rect(a,i,f,h),o.fill(),0!==r&&o.stroke()}o.restore()}(s.x(k),E,y),k=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(w,k+f+d,m?k+S:this.right,e.rtl),function(e,t,n){TT(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),E,y),m)p.x+=S+c;else if("string"!=typeof y.text){const e=l.lineHeight;p.y+=lB(y,e)+c}else p.y+=b})),PR(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=KT(t.font),o=VT(t.padding);if(!t.display)return;const r=MR(e.rtl,this.left,this.width),i=this.ctx,a=t.position,s=n.size/2,l=o.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=rT(e.align,u,this.right-d);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+rT(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=rT(a,u,u+d);i.textAlign=r.textAlign(oT(a)),i.textBaseline="middle",i.strokeStyle=t.color,i.fillStyle=t.color,i.font=n.string,TT(i,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=KT(e.font),n=VT(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,r;if(UA(e,this.left,this.right)&&UA(t,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],UA(e,o.left,o.left+o.width)&&UA(t,o.top,o.top+o.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const i=this._hoveredItem,a=(r=n,null!==(o=i)&&null!==r&&o.datasetIndex===r.datasetIndex&&o.index===r.index);i&&!a&&uA(t.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!a&&uA(t.onHover,[e,n,this],this)}else n&&uA(t.onClick,[e,n,this],this);var o,r}}function lB(e,t){return t*(e.text?e.text.length:0)}var cB={id:"legend",_element:sB,start(e,t,n){const o=e.legend=new sB({ctx:e.ctx,options:n,chart:e});j_.configure(e,o,n),j_.addBox(e,o)},stop(e){j_.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;j_.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,r=n.chart;r.isDatasetVisible(o)?(r.hide(o),t.hidden=!0):(r.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const l=e.controller.getStyle(n?0:void 0),c=VT(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:o||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};let uB=class extends Q_{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=rA(n.text)?n.text.length:1;this._padding=VT(n.padding);const r=o*KT(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:r,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=rT(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=rT(a,o,t),u=-.5*EA):(l=r-e,c=rT(a,t,o),u=.5*EA),s=o-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=KT(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);TT(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:oT(t.align),textBaseline:"middle",translation:[r,i]})}};var dB={id:"title",_element:uB,start(e,t,n){!function(e,t){const n=new uB({ctx:e.ctx,options:t,chart:e});j_.configure(e,n,t),j_.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;j_.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;j_.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const pB={average(e){if(!e.length)return!1;let t,n,o=new Set,r=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o.add(e.x),r+=e.y,++i}}if(0===i||0===o.size)return!1;return{x:[...o].reduce(((e,t)=>e+t))/o.size,y:r/i}},nearest(e,t){if(!e.length)return!1;let n,o,r,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=WA(t,o.getCenterPoint());e<s&&(s=e,r=o)}}if(r){const e=r.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function fB(e,t){return t&&(rA(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function hB(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function gB(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:a,value:s}=i.getLabelAndValue(r);return{chart:e,label:a,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:s,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function mB(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=KT(t.bodyFont),c=KT(t.titleFont),u=KT(t.footerFont),d=i.length,p=r.length,f=o.length,h=VT(t.padding);let g=h.height,m=0,v=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){g+=f*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}p&&(g+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let b=0;const y=function(e){m=Math.max(m,n.measureText(e).width+b)};return n.save(),n.font=c.string,dA(e.title,y),n.font=l.string,dA(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,dA(o,(e=>{dA(e.before,y),dA(e.lines,y),dA(e.after,y)})),b=0,n.font=u.string,dA(e.footer,y),n.restore(),m+=h.width,{width:m,height:g}}function vB(e,t,n,o){const{x:r,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===o?c=r<=(s+l)/2?"left":"right":r<=i/2?c="left":r>=a-i/2&&(c="right"),function(e,t,n,o){const{x:r,width:i}=o,a=n.caretSize+n.caretPadding;return"left"===e&&r+i+a>t.width||"right"===e&&r-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function bB(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||vB(e,t,n,o),yAlign:o}}function yB(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=r+i,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:f}=WT(a);let h=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,s);const g=function(e,t,n){let{y:o,height:r}=e;return"top"===t?o+=n:o-="bottom"===t?r+n:r/2,o}(t,l,c);return"center"===l?"left"===s?h+=c:"right"===s&&(h-=c):"left"===s?h-=Math.max(u,p)+r:"right"===s&&(h+=Math.max(d,f)+r),{x:XA(h,0,o.width-t.width),y:XA(g,0,o.height-t.height)}}function xB(e,t,n){const o=VT(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function CB(e){return fB([],hB(e))}function wB(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const SB={beforeTitle:tA,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:tA,beforeBody:tA,beforeLabel:tA,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return oA(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:tA,afterBody:tA,beforeFooter:tA,footer:tA,afterFooter:tA};function kB(e,t,n,o){const r=e[t].call(n,o);return void 0===r?SB[t].call(n,o):r}class EB extends Q_{static positioners=pB;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,r=new WR(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,XT(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}getTitle(e,t){const{callbacks:n}=t,o=kB(n,"beforeTitle",this,e),r=kB(n,"title",this,e),i=kB(n,"afterTitle",this,e);let a=[];return a=fB(a,hB(o)),a=fB(a,hB(r)),a=fB(a,hB(i)),a}getBeforeBody(e,t){return CB(kB(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return dA(e,(e=>{const t={before:[],lines:[],after:[]},r=wB(n,e);fB(t.before,hB(kB(r,"beforeLabel",this,e))),fB(t.lines,kB(r,"label",this,e)),fB(t.after,hB(kB(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return CB(kB(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=kB(n,"beforeFooter",this,e),r=kB(n,"footer",this,e),i=kB(n,"afterFooter",this,e);let a=[];return a=fB(a,hB(o)),a=fB(a,hB(r)),a=fB(a,hB(i)),a}_createItems(e){const t=this._active,n=this.chart.data,o=[],r=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(gB(this.chart,t[a]));return e.filter&&(l=l.filter(((t,o,r)=>e.filter(t,o,r,n)))),e.itemSort&&(l=l.sort(((t,o)=>e.itemSort(t,o,n)))),dA(l,(t=>{const n=wB(e.callbacks,t);o.push(kB(n,"labelColor",this,t)),r.push(kB(n,"labelPointStyle",this,t)),i.push(kB(n,"labelTextColor",this,t))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let r,i=[];if(o.length){const e=pB[n.position].call(this,o,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=mB(this,n),a=Object.assign({},e,t),s=bB(this.chart,n,a),l=yB(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const r=this.getCaretPosition(e,n,o);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:r}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=WT(a),{x:d,y:p}=e,{width:f,height:h}=t;let g,m,v,b,y,x;return"center"===r?(y=p+h/2,"left"===o?(g=d,m=g-i,b=y+i,x=y-i):(g=d+f,m=g+i,b=y-i,x=y+i),v=g):(m="left"===o?d+Math.max(s,c)+i:"right"===o?d+f-Math.max(l,u)-i:this.caretX,"top"===r?(b=p,y=b-i,g=m-i,v=m+i):(b=p+h,y=b+i,g=m+i,v=m-i),x=b),{x1:g,x2:m,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const o=this.title,r=o.length;let i,a,s;if(r){const l=MR(n.rtl,this.x,this.width);for(e.x=xB(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=KT(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<r;++s)t.fillText(o[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,o,r){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=r,c=KT(r.bodyFont),u=xB(this,"left",r),d=o.x(u),p=s<c.lineHeight?(c.lineHeight-s)/2:0,f=t.y+p;if(r.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(d,l)+l/2,c=f+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,$T(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,$T(e,t,n,c)}else{e.lineWidth=iA(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=o.leftForLtr(d,l),n=o.leftForLtr(o.xPlus(d,1),l-2),a=WT(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,RT(e,{x:t,y:f,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),RT(e,{x:n,y:f+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,f,l,s),e.strokeRect(t,f,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,f+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:r,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=KT(n.bodyFont);let d=u.lineHeight,p=0;const f=MR(n.rtl,this.x,this.width),h=function(n){t.fillText(n,f.x(e.x+p),e.y+d/2),e.y+=d+r},g=f.textAlign(i);let m,v,b,y,x,C,w;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=xB(this,g,n),t.fillStyle=n.bodyColor,dA(this.beforeBody,h),p=a&&"right"!==g?"center"===i?l/2+c:l+2+c:0,y=0,C=o.length;y<C;++y){for(m=o[y],v=this.labelTextColors[y],t.fillStyle=v,dA(m.before,h),b=m.lines,a&&b.length&&(this._drawColorBox(t,e,y,f,n),d=Math.max(u.lineHeight,s)),x=0,w=b.length;x<w;++x)h(b[x]),d=u.lineHeight;dA(m.after,h)}p=0,d=u.lineHeight,dA(this.afterBody,h),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=MR(n.rtl,this.x,this.width);for(e.x=xB(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=KT(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<r;++a)t.fillText(o[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:r,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:f}=WT(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===r&&this.drawCaret(e,t,n,o),t.lineTo(a+l,s+c-f),t.quadraticCurveTo(a+l,s+c,a+l-f,s+c),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+p,s+c),t.quadraticCurveTo(a,s+c,a,s+c-p),"center"===i&&"left"===r&&this.drawCaret(e,t,n,o),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const n=pB[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=mB(this,e),a=Object.assign({},n,this._size),s=bB(t,e,a),l=yB(e,a,s,t);o._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=VT(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,o,t),IR(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),PR(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!pA(n,o),i=this._positionChanged(o,t);(r||i)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],i=this._getActiveElements(e,r,t,n),a=this._positionChanged(i,e),s=t||!pA(i,r)||a;return s&&(this._active=i,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,o){const r=this.options;if("mouseout"===e.type)return[];if(!o)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:o,options:r}=this,i=pB[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var OB={id:"tooltip",_element:EB,positioners:pB,afterInit(e,t,n){n&&(e.tooltip=new EB({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:SB},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function $B(e,t,n,o){const r=e.indexOf(t);if(-1===r)return((e,t,n,o)=>("string"==typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o);return r!==e.lastIndexOf(t)?n:r}function NB(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function MB(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=r||1,f=c-1,{min:h,max:g}=t,m=!oA(i),v=!oA(a),b=!oA(l),y=(g-h)/(u+1);let x,C,w,S,k=TA((g-h)/f/p)*p;if(k<1e-14&&!m&&!v)return[{value:h},{value:g}];S=Math.ceil(g/k)-Math.floor(h/k),S>f&&(k=TA(S*k/f/p)*p),oA(s)||(x=Math.pow(10,s),k=Math.ceil(k*x)/x),"ticks"===o?(C=Math.floor(h/k)*k,w=Math.ceil(g/k)*k):(C=h,w=g),m&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,k/1e3)?(S=Math.round(Math.min((a-i)/k,c)),k=(a-i)/S,C=i,w=a):b?(C=m?i:C,w=v?a:w,S=l-1,k=(w-C)/S):(S=(w-C)/k,S=AA(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const E=Math.max(HA(k),HA(C));x=Math.pow(10,oA(s)?E:s),C=Math.round(C*x)/x,w=Math.round(w*x)/x;let O=0;for(m&&(d&&C!==i?(n.push({value:i}),C<i&&O++,AA(Math.round((C+O*k)*x)/x,i,IB(i,y,e))&&O++):C<i&&O++);O<S;++O){const e=Math.round((C+O*k)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&w!==a?n.length&&AA(n[n.length-1].value,a,IB(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&w!==a||n.push({value:w}),n}function IB(e,t,{horizontal:n,minRotation:o}){const r=zA(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class PB extends sz{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return oA(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const i=e=>o=t?o:e,a=e=>r=n?r:e;if(e){const e=DA(o),t=DA(r);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(o===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||i(o-t)}this.min=o,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=MB({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&_A(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return gT(e,this.chart.options.locale,this.options.ticks.format)}}class LB extends PB{static id="linear";static defaults={ticks:{callback:vT.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=aA(e)?e:0,this.max=aA(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=zA(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}vT.formatters.logarithmic;vT.formatters.numeric;const jB="label";function DB(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function AB(e,t){e.labels=t}function TB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jB;const o=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[n]===t[n]));return r&&t.data&&!o.includes(r)?(o.push(r),Object.assign(r,t),r):{...t}}))}function RB(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jB;const n={labels:[],datasets:[]};return AB(n,e.labels),TB(n,e.datasets,t),n}function _B(e,n){const{height:o=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:c,data:u,options:d,plugins:p=[],fallbackContent:f,updateMode:h,...g}=e,m=a(null),v=a(),b=()=>{m.current&&(v.current=new zz(m.current,{type:c,data:RB(u,s),options:d&&{...d},plugins:p}),DB(n,v.current))},y=()=>{DB(n,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!i&&v.current&&d&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(v.current,d)}),[i,d]),l((()=>{!i&&v.current&&AB(v.current.config.data,u.labels)}),[i,u.labels]),l((()=>{!i&&v.current&&u.datasets&&TB(v.current.config.data,u.datasets,s)}),[i,u.datasets]),l((()=>{v.current&&(i?(y(),setTimeout(b)):v.current.update(h))}),[i,d,u.labels,u.datasets,h]),l((()=>{v.current&&(y(),setTimeout(b))}),[c]),l((()=>(b(),()=>y())),[]),t.createElement("canvas",Object.assign({ref:m,role:"img",height:o,width:r},g),f)}const zB=c(_B);function BB(e,n){return zz.register(n),c(((n,o)=>t.createElement(zB,Object.assign({},n,{ref:o,type:e}))))}const HB=BB("line",p_),FB=BB("bar",u_),WB=BB("doughnut",d_),VB=BB("pie",f_);dD(".appChart {\n & > canvas {\n height: 100% !important;\n width: 100% !important;\n }\n}\n"),zz.register(class extends sz{static id="category";static defaults={ticks:{callback:NB}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(oA(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:XA(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:$B(n,e,lA(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)o.push({value:n});return o}getLabelForValue(e){return NB.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},LB,class extends Q_{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:o}}=this,{inner:r,outer:i}=nB(this),a=function(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}(i.radius)?RT:rB;e.save(),i.w===r.w&&i.h===r.h||(e.beginPath(),a(e,iB(i,t,r)),e.clip(),a(e,iB(r,-t,i)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,iB(r,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return oB(this,e,t,n)}inXRange(e,t){return oB(this,e,null,t)}inYRange(e,t){return oB(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:o,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+o)/2:t,y:r?n:(n+o)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},class extends Q_{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;fR(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}(n,r,i,o);return AR(e,!0===o?[{start:a,end:s,loop:i}]:function(e,t,n,o){const r=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(o=!1,i.push({start:t%r,end:(a-1)%r,loop:o}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%r,end:s%r,loop:o}),i}(n,a,s<a?s+r:s,!!e._fullLoop&&0===a&&s===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],r=this.points,i=function(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=DR(o[r],e.points,t);i.length&&n.push(...i)}return n}(this,{property:t,start:o,end:o});if(!i.length)return;const a=[],s=function(e){return e.stepped?$R:e.tension||"monotone"===e.cubicInterpolationMode?NR:OR}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],p=r[u];if(d===p){a.push(d);continue}const f=s(d,p,Math.abs((o-d[t])/(p[t]-d[t])),n.stepped);f[t]=e[t],a.push(f)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return Yz(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=Yz(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of o)i&=r(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,o){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),Zz(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends Q_{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:r,y:i}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-i,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return Jz(this,e,"x",t)}inYRange(e,t){return Jz(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!MT(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,$T(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},class extends Q_{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.getProps(["x","y"],n),{angle:r,distance:i}=FA(o,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,p=lA(u,s-a),f=qA(r,a,s)&&a!==s,h=p>=OA||f,g=UA(i,l+d,c+d);return h&&g}getCenterPoint(e){const{x:t,y:n,startAngle:o,endAngle:r,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(o+r)/2,u=(i+a+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,o=(t.offset||0)/4,r=(t.spacing||0)/2,i=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>OA?Math.floor(n/OA):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*o,Math.sin(a)*o);const s=o*(1-Math.sin(Math.min(EA,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,o,r){const{fullCircles:i,startAngle:a,circumference:s}=t;let l=t.endAngle;if(i){Wz(e,t,n,o,l,r);for(let t=0;t<i;++t)e.fill();isNaN(s)||(l=a+(s%OA||OA))}Wz(e,t,n,o,l,r),e.fill()}(e,this,s,r,i),Vz(e,this,s,r,i),e.restore()}},dB,OB,cB);var KB=function(e){var t=e.type,n=e.data,o=e.options,r=e.className,i=e.height,a=void 0===i?400:i,s=e.width,l=void 0===s?600:s;E(e,["type","data","options","className","height","width"]);return L.jsx("div",{style:{height:a,width:l},className:"appChart ".concat(r),children:function(){switch(t){case"bar":return L.jsx(FB,{data:n,options:o,className:r});case"line":return L.jsx(HB,{data:n,options:o,className:r});case"pie":return L.jsx(VB,{data:n,options:o,className:r});case"doughnut":return L.jsx(WB,{data:n,options:o,className:r});default:return null}}()})};dD(".appImageBox {\n width: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n\n .ant-image {\n border-radius: 50%;\n overflow: hidden;\n\n .ant-image-img {\n border-radius: 50%;\n }\n }\n .text {\n font-size: 16px;\n font-weight: 700;\n line-height: normal;\n color: #000000;\n }\n}\n");var qB=function(e){var t=e.width,n=void 0===t?100:t,o=e.height,r=void 0===o?100:o,i=e.text,a=e.image,s=e.className,l=e.handleClick;return L.jsxs("div",{className:"appImageBox ".concat(s),onClick:l,children:[L.jsx(XO,{preview:!1,width:n,height:r,src:a.src,alt:i}),i&&L.jsx("span",{className:"text",dangerouslySetInnerHTML:{__html:i}})]})},XB=function(e){var t=e.src,n=e.fallbackIcon,o=void 0===n?L.jsx($M,{}):n,r=e.className,i=E(e,["src","fallbackIcon","className"]);return L.jsx("div",{className:r,children:L.jsx(Xv,k({src:t,icon:t?void 0:o},i))})};dD(".appCheckboxText {\n .checkboxText {\n & > span:last-child {\n line-height: unset;\n & > span {\n font-size: 15px;\n font-weight: 500;\n text-align: left;\n }\n }\n }\n}\n");var UB=function(e){var t=e.text,n=e.checked,o=e.handleChange,r=e.className;return L.jsx("div",{className:"appCheckboxText ".concat(r),children:L.jsx(vk,{className:"checkboxText",checked:n,onChange:o,children:L.jsx("span",{dangerouslySetInnerHTML:{__html:t}})})})};Cu.Panel;var GB=function(e){var t=e.panels,n=void 0===t?[]:t,o=e.defaultActiveKey,r=e.onChange,i=e.expandIconPosition,a=e.ghost,s=e.accordion,l=e.expandIcon,c=e.size,u=e.bordered,d=e.activeKey,p=e.className,f=E(e,["panels","defaultActiveKey","onChange","expandIconPosition","ghost","accordion","expandIcon","size","bordered","activeKey","className"]),h=n.map((function(e){return{key:e.key,label:e.header,children:e.content,collapsible:e.collapsible}}));return L.jsx("div",{className:p,children:L.jsx(Cu,k({defaultActiveKey:o,onChange:r,expandIconPosition:i,ghost:a,accordion:s,expandIcon:l,size:c,bordered:u,activeKey:d,items:h},f))})};dD('.wrapper {\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n background-color: (0, 0, 0, 0.3);\n backdrop-filter: blur(10px);\n display: flex;\n z-index: 99;\n}\n\n/*code for custom loading icon*/\n\n.loader {\n position: relative;\n width: 80px;\n margin-left: 45%;\n margin-top: 25%;\n}\n\n.loader span {\n display: block;\n transform-origin: 40px 40px;\n animation: ding 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n}\n\n.loader span::before {\n content: "";\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: rgb(0, 0, 0);\n margin: -4px 0 0 -4px;\n}\n\n.loader span:nth-child(1) {\n animation-delay: -0.36s;\n}\n\n.loader span:nth-child(1):before {\n top: 63px;\n left: 63px;\n}\n\n.loader span:nth-child(2) {\n animation-delay: -0.72s;\n}\n\n.loader span:nth-child(2):before {\n top: 68px;\n left: 56px;\n}\n\n.loader span:nth-child(3) {\n animation-delay: -0.108s;\n}\n\n.loader span:nth-child(3):before {\n top: 71px;\n left: 48px;\n}\n.loader span:nth-child(4) {\n animation-delay: -0.144s;\n}\n\n.loader span:nth-child(4):before {\n top: 72px;\n left: 40px;\n}\n\n.loader span:nth-child(5) {\n animation-delay: -0.18;\n}\n\n.loader span:nth-child(5):before {\n top: 71px;\n left: 32px;\n}\n\n.loader span:nth-child(6) {\n animation-delay: -0.216s;\n}\n\n.loader span:nth-child(6):before {\n top: 68px;\n left: 24px;\n}\n\n.loader span:nth-child(7) {\n animation-delay: -0.252s;\n}\n\n.loader span:nth-child(7):before {\n top: 63px;\n left: 17px;\n}\n\n.loader span:nth-child(8) {\n animation-delay: -0.288s;\n}\n\n.loader span:nth-child(8):before {\n top: 56px;\n left: 12px;\n}\n\n@keyframes ding {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n');var YB,QB,ZB=function(e){var t=e.className;return L.jsx("div",{className:"wrapper ".concat(t),children:L.jsxs("div",{className:"loader",children:[L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{}),L.jsx("span",{})]})})};function JB(e){return JB="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},JB(e)}function eH(e){var t=function(e,t){if("object"!=JB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=JB(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==JB(t)?t:t+""}function tH(e,t,n){return(t=eH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nH(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oH=function(){if(QB)return YB;QB=1;var e=process.env.NODE_ENV;return YB=function(t,n,o,r,i,a,s,l){if("production"!==e&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[o,r,i,a,s,l],d=0;(c=new Error(n.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}},YB}(),rH=nH(oH),iH=i(null);function aH(e,t,n,o){var r,i,a={};return r=e,i=(e,r)=>{var i=n[r];i!==t[r]&&(a[r]=i,e(o,i))},Object.keys(r).forEach((e=>i(r[e],e))),a}function sH(e,t,n){var o,r,i,a=(o=n,r=function(n,o,r){return"function"==typeof e[r]&&n.push(google.maps.event.addListener(t,o,e[r])),n},i=[],Object.keys(o).reduce((function(e,t){return r(e,o[t],t)}),i));return a}function lH(e){google.maps.event.removeListener(e)}function cH(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(lH)}function uH(e){var{updaterMap:t,eventMap:n,prevProps:o,nextProps:r,instance:i}=e,a=sH(r,i,n);return aH(t,o,r,i),a}var dH={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},pH={extraMapTypes(e,t){t.forEach((function(t,n){e.mapTypes.set(String(n),t)}))},center(e,t){e.setCenter(t)},clickableIcons(e,t){e.setClickableIcons(t)},heading(e,t){e.setHeading(t)},mapTypeId(e,t){e.setMapTypeId(t)},options(e,t){e.setOptions(t)},streetView(e,t){e.setStreetView(t)},tilt(e,t){e.setTilt(t)},zoom(e,t){e.setZoom(t)}};v((function(e){var{children:t,options:n,id:o,mapContainerStyle:r,mapContainerClassName:i,center:s,onClick:c,onDblClick:d,onDrag:p,onDragEnd:f,onDragStart:h,onMouseMove:g,onMouseOut:m,onMouseOver:v,onMouseDown:b,onMouseUp:y,onRightClick:x,onCenterChanged:C,onLoad:w,onUnmount:S}=e,[k,E]=u(null),O=a(null),[$,N]=u(null),[M,I]=u(null),[P,j]=u(null),[D,A]=u(null),[T,R]=u(null),[_,z]=u(null),[B,H]=u(null),[F,W]=u(null),[V,K]=u(null),[q,X]=u(null),[U,G]=u(null),[Y,Q]=u(null);return l((()=>{n&&null!==k&&k.setOptions(n)}),[k,n]),l((()=>{null!==k&&void 0!==s&&k.setCenter(s)}),[k,s]),l((()=>{k&&d&&(null!==M&&google.maps.event.removeListener(M),I(google.maps.event.addListener(k,"dblclick",d)))}),[d]),l((()=>{k&&f&&(null!==P&&google.maps.event.removeListener(P),j(google.maps.event.addListener(k,"dragend",f)))}),[f]),l((()=>{k&&h&&(null!==D&&google.maps.event.removeListener(D),A(google.maps.event.addListener(k,"dragstart",h)))}),[h]),l((()=>{k&&b&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener(k,"mousedown",b)))}),[b]),l((()=>{k&&g&&(null!==_&&google.maps.event.removeListener(_),z(google.maps.event.addListener(k,"mousemove",g)))}),[g]),l((()=>{k&&m&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(k,"mouseout",m)))}),[m]),l((()=>{k&&v&&(null!==F&&google.maps.event.removeListener(F),W(google.maps.event.addListener(k,"mouseover",v)))}),[v]),l((()=>{k&&y&&(null!==V&&google.maps.event.removeListener(V),K(google.maps.event.addListener(k,"mouseup",y)))}),[y]),l((()=>{k&&x&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(k,"rightclick",x)))}),[x]),l((()=>{k&&c&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener(k,"click",c)))}),[c]),l((()=>{k&&p&&(null!==Y&&google.maps.event.removeListener(Y),Q(google.maps.event.addListener(k,"drag",p)))}),[p]),l((()=>{k&&C&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(k,"center_changed",C)))}),[c]),l((()=>{var e=null===O.current?null:new google.maps.Map(O.current,n);return E(e),null!==e&&w&&w(e),()=>{null!==e&&S&&S(e)}}),[]),L.jsx("div",{id:o,ref:O,style:r,className:i,children:L.jsx(iH.Provider,{value:k,children:null!==k?t:null})})}));class fH extends b{constructor(){super(...arguments),tH(this,"state",{map:null}),tH(this,"registeredEvents",[]),tH(this,"mapRef",null),tH(this,"getInstance",(()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options))),tH(this,"panTo",(e=>{var t=this.getInstance();t&&t.panTo(e)})),tH(this,"setMapCallback",(()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)})),tH(this,"getRef",(e=>{this.mapRef=e}))}componentDidMount(){var e=this.getInstance();this.registeredEvents=uH({updaterMap:pH,eventMap:dH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)}componentDidUpdate(e){null!==this.state.map&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:pH,eventMap:dH,prevProps:e,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),cH(this.registeredEvents))}render(){return L.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:L.jsx(iH.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})}}function hH(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function gH(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){hH(i,o,r,a,s,"next",e)}function s(e){hH(i,o,r,a,s,"throw",e)}a(void 0)}))}}function mH(e){var{googleMapsApiKey:t,googleMapsClientId:n,version:o="weekly",language:r,region:i,libraries:a,channel:s,mapIds:l,authReferrerPolicy:c}=e,u=[];return rH(t&&n||!(t&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?u.push("key=".concat(t)):n&&u.push("client=".concat(n)),o&&u.push("v=".concat(o)),r&&u.push("language=".concat(r)),i&&u.push("region=".concat(i)),a&&a.length&&u.push("libraries=".concat(a.sort().join(","))),s&&u.push("channel=".concat(s)),l&&l.length&&u.push("map_ids=".concat(l.join(","))),c&&u.push("auth_referrer_policy=".concat(c)),u.push("loading=async"),u.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(u.join("&"))}var vH="undefined"!=typeof document;function bH(e){var{url:t,id:n,nonce:o}=e;return vH?new Promise((function(e,r){var i=document.getElementById(n),a=window;if(i){var s=i.getAttribute("data-state");if(i.src===t&&"error"!==s){if("ready"===s)return e(n);var l=a.initMap,c=i.onerror;return a.initMap=function(){l&&l(),e(n)},void(i.onerror=function(e){c&&c(e),r(e)})}i.remove()}var u=document.createElement("script");u.type="text/javascript",u.src=t,u.id=n,u.async=!0,u.nonce=o||"",u.onerror=function(e){u.setAttribute("data-state","error"),r(e)},a.initMap=function(){u.setAttribute("data-state","ready"),e(n)},document.head.appendChild(u)})).catch((e=>{throw console.error("injectScript error: ",e),e})):Promise.reject(new Error("document is undefined"))}function yH(e){var t=e.href;return!(!t||0!==t.indexOf("https://fonts.googleapis.com/css?family=Roboto")&&0!==t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",!0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",!0):"style"===e.tagName.toLowerCase()&&!e.styleSheet&&!e.innerHTML)}function xH(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(n,o){return yH(n)||Reflect.apply(t,e,[n,o]),n};var n=e.appendChild.bind(e);e.appendChild=function(t){return yH(t)||Reflect.apply(n,e,[t]),t}}}var CH=!1;function wH(){return L.jsx("div",{children:"Loading..."})}var SH,kH={id:"script-loader",version:"weekly"};class EH extends b{constructor(){super(...arguments),tH(this,"check",f()),tH(this,"state",{loaded:!1}),tH(this,"cleanupCallback",(()=>{delete window.google.maps,this.injectScript()})),tH(this,"isCleaningUp",gH((function*(){return new Promise((function(e){if(CH){if(vH)var t=window.setInterval((function(){CH||(window.clearInterval(t),e())}),1)}else e()}))}))),tH(this,"cleanup",(()=>{CH=!0;var e=document.getElementById(this.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(e){return"string"==typeof e.src&&e.src.includes("maps.googleapis")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))})),tH(this,"injectScript",(()=>{this.props.preventGoogleFontsLoading&&xH(),rH(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id),bH({id:this.props.id,nonce:this.props.nonce,url:mH(this.props)}).then((()=>{this.props.onLoad&&this.props.onLoad(),this.setState((function(){return{loaded:!0}}))})).catch((e=>{this.props.onError&&this.props.onError(e),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(this.props.googleMapsApiKey||"-",") or Client ID (").concat(this.props.googleMapsClientId||"-",") to <LoadScript />\n Otherwise it is a Network issue.\n "))}))}))}componentDidMount(){if(vH){if(window.google&&window.google.maps&&!CH)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(e){console.error("Error at injecting script after cleaning up: ",e)}))}}componentDidUpdate(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),vH&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))}componentWillUnmount(){if(vH){this.cleanup();window.setTimeout((()=>{this.check.current||(delete window.google,CH=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}}render(){return L.jsxs(L.Fragment,{children:[L.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||L.jsx(wH,{})]})}}function OH(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}tH(EH,"defaultProps",kH);var $H,NH=["loadingElement","onLoad","onError","onUnmount","children"],MH=L.jsx(wH,{});function IH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function PH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IH(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}v((function(e){var{loadingElement:t,onLoad:n,onError:o,onUnmount:r,children:i}=e,s=OH(e,NH),{isLoaded:c,loadError:d}=function(e){var{id:t=kH.id,version:n=kH.version,nonce:o,googleMapsApiKey:r,googleMapsClientId:i,language:s,region:c,libraries:d,preventGoogleFontsLoading:p,channel:f,mapIds:h,authReferrerPolicy:g}=e,m=a(!1),[v,b]=u(!1),[y,x]=u(void 0);l((function(){return m.current=!0,()=>{m.current=!1}}),[]),l((function(){vH&&p&&xH()}),[p]),l((function(){v&&rH(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[v]);var C=mH({version:n,googleMapsApiKey:r,googleMapsClientId:i,language:s,region:c,libraries:d,channel:f,mapIds:h,authReferrerPolicy:g});l((function(){function e(){m.current&&(b(!0),SH=C)}vH&&(window.google&&window.google.maps&&SH===C?e():bH({id:t,url:C,nonce:o}).then(e).catch((function(e){m.current&&x(e),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(r||"-",") or Client ID (").concat(i||"-",")\n Otherwise it is a Network issue.\n ")),console.error(e)})))}),[t,C,o]);var w=a();return l((function(){w.current&&d!==w.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),w.current=d}),[d]),{isLoaded:v,loadError:y,url:C}}(s);return l((function(){c&&"function"==typeof n&&n()}),[c,n]),l((function(){d&&"function"==typeof o&&o(d)}),[d,o]),l((function(){return()=>{r&&r()}}),[r]),c?i:t||MH})),"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}($H||($H={}));var LH={},jH={options(e,t){e.setOptions(t)}};v((function(e){var{options:t,onLoad:n,onUnmount:o}=e,i=r(iH),[a,s]=u(null);return l((()=>{null!==a&&a.setMap(i)}),[i]),l((()=>{t&&null!==a&&a.setOptions(t)}),[a,t]),l((()=>{var e=new google.maps.TrafficLayer(PH(PH({},t),{},{map:i}));return s(e),n&&n(e),()=>{null!==a&&(o&&o(a),a.setMap(null))}}),[]),null}));tH(class extends b{constructor(){super(...arguments),tH(this,"state",{trafficLayer:null}),tH(this,"setTrafficLayerCallback",(()=>{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)})),tH(this,"registeredEvents",[])}componentDidMount(){var e=new google.maps.TrafficLayer(PH(PH({},this.props.options),{},{map:this.context}));this.registeredEvents=uH({updaterMap:jH,eventMap:LH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)}componentDidUpdate(e){null!==this.state.trafficLayer&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:jH,eventMap:LH,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),cH(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}},"contextType",iH),v((function(e){var{onLoad:t,onUnmount:n}=e,o=r(iH),[i,a]=u(null);return l((()=>{null!==i&&i.setMap(o)}),[o]),l((()=>{var e=new google.maps.BicyclingLayer;return a(e),e.setMap(o),t&&t(e),()=>{null!==e&&(n&&n(e),e.setMap(null))}}),[]),null}));tH(class extends b{constructor(){super(...arguments),tH(this,"state",{bicyclingLayer:null}),tH(this,"setBicyclingLayerCallback",(()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}))}componentDidMount(){var e=new google.maps.BicyclingLayer;this.setState((()=>({bicyclingLayer:e})),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}},"contextType",iH),v((function(e){var{onLoad:t,onUnmount:n}=e,o=r(iH),[i,a]=u(null);return l((()=>{null!==i&&i.setMap(o)}),[o]),l((()=>{var e=new google.maps.TransitLayer;return a(e),e.setMap(o),t&&t(e),()=>{null!==i&&(n&&n(i),i.setMap(null))}}),[]),null}));function DH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function AH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DH(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(class extends b{constructor(){super(...arguments),tH(this,"state",{transitLayer:null}),tH(this,"setTransitLayerCallback",(()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}))}componentDidMount(){var e=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:e}}),this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}},"contextType",iH);var TH={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},RH={drawingMode(e,t){e.setDrawingMode(t)},options(e,t){e.setOptions(t)}};v((function(e){var{options:t,drawingMode:n,onCircleComplete:o,onMarkerComplete:i,onOverlayComplete:a,onPolygonComplete:s,onPolylineComplete:c,onRectangleComplete:d,onLoad:p,onUnmount:f}=e,h=r(iH),[g,m]=u(null),[v,b]=u(null),[y,x]=u(null),[C,w]=u(null),[S,k]=u(null),[E,O]=u(null),[$,N]=u(null);return l((()=>{null!==g&&g.setMap(h)}),[h]),l((()=>{t&&null!==g&&g.setOptions(t)}),[g,t]),l((()=>{null!==g&&g.setDrawingMode(null!=n?n:null)}),[g,n]),l((()=>{g&&o&&(null!==v&&google.maps.event.removeListener(v),b(google.maps.event.addListener(g,"circlecomplete",o)))}),[g,o]),l((()=>{g&&i&&(null!==y&&google.maps.event.removeListener(y),x(google.maps.event.addListener(g,"markercomplete",i)))}),[g,i]),l((()=>{g&&a&&(null!==C&&google.maps.event.removeListener(C),w(google.maps.event.addListener(g,"overlaycomplete",a)))}),[g,a]),l((()=>{g&&s&&(null!==S&&google.maps.event.removeListener(S),k(google.maps.event.addListener(g,"polygoncomplete",s)))}),[g,s]),l((()=>{g&&c&&(null!==E&&google.maps.event.removeListener(E),O(google.maps.event.addListener(g,"polylinecomplete",c)))}),[g,c]),l((()=>{g&&d&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(g,"rectanglecomplete",d)))}),[g,d]),l((()=>{rH(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var e=new google.maps.drawing.DrawingManager(AH(AH({},t),{},{map:h}));return n&&e.setDrawingMode(n),o&&b(google.maps.event.addListener(e,"circlecomplete",o)),i&&x(google.maps.event.addListener(e,"markercomplete",i)),a&&w(google.maps.event.addListener(e,"overlaycomplete",a)),s&&k(google.maps.event.addListener(e,"polygoncomplete",s)),c&&O(google.maps.event.addListener(e,"polylinecomplete",c)),d&&N(google.maps.event.addListener(e,"rectanglecomplete",d)),m(e),p&&p(e),()=>{null!==g&&(v&&google.maps.event.removeListener(v),y&&google.maps.event.removeListener(y),C&&google.maps.event.removeListener(C),S&&google.maps.event.removeListener(S),E&&google.maps.event.removeListener(E),$&&google.maps.event.removeListener($),f&&f(g),g.setMap(null))}}),[]),null}));function _H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function zH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_H(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(class extends b{constructor(e){super(e),tH(this,"registeredEvents",[]),tH(this,"state",{drawingManager:null}),tH(this,"setDrawingManagerCallback",(()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)})),rH(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){var e=new google.maps.drawing.DrawingManager(AH(AH({},this.props.options),{},{map:this.context}));this.registeredEvents=uH({updaterMap:RH,eventMap:TH,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)}componentDidUpdate(e){null!==this.state.drawingManager&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:RH,eventMap:TH,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),cH(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return null}},"contextType",iH);var BH={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},HH={animation(e,t){e.setAnimation(t)},clickable(e,t){e.setClickable(t)},cursor(e,t){e.setCursor(t)},draggable(e,t){e.setDraggable(t)},icon(e,t){e.setIcon(t)},label(e,t){e.setLabel(t)},map(e,t){e.setMap(t)},opacity(e,t){e.setOpacity(t)},options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},shape(e,t){e.setShape(t)},title(e,t){e.setTitle(t)},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}},FH={};v((function(e){var{position:t,options:n,clusterer:i,noClustererRedraw:a,children:s,draggable:c,visible:f,animation:h,clickable:g,cursor:v,icon:b,label:y,opacity:x,shape:C,title:w,zIndex:S,onClick:k,onDblClick:E,onDrag:O,onDragEnd:$,onDragStart:N,onMouseOut:M,onMouseOver:I,onMouseUp:P,onMouseDown:j,onRightClick:D,onClickableChanged:A,onCursorChanged:T,onAnimationChanged:R,onDraggableChanged:_,onFlatChanged:z,onIconChanged:B,onPositionChanged:H,onShapeChanged:F,onTitleChanged:W,onVisibleChanged:V,onZindexChanged:K,onLoad:q,onUnmount:X}=e,U=r(iH),[G,Y]=u(null),[Q,Z]=u(null),[J,ee]=u(null),[te,ne]=u(null),[oe,re]=u(null),[ie,ae]=u(null),[se,le]=u(null),[ce,ue]=u(null),[de,pe]=u(null),[fe,he]=u(null),[ge,me]=u(null),[ve,be]=u(null),[ye,xe]=u(null),[Ce,we]=u(null),[Se,ke]=u(null),[Ee,Oe]=u(null),[$e,Ne]=u(null),[Me,Ie]=u(null),[Pe,Le]=u(null),[je,De]=u(null),[Ae,Te]=u(null),[Re,_e]=u(null);l((()=>{null!==G&&G.setMap(U)}),[U]),l((()=>{void 0!==n&&null!==G&&G.setOptions(n)}),[G,n]),l((()=>{void 0!==c&&null!==G&&G.setDraggable(c)}),[G,c]),l((()=>{t&&null!==G&&G.setPosition(t)}),[G,t]),l((()=>{void 0!==f&&null!==G&&G.setVisible(f)}),[G,f]),l((()=>{null==G||G.setAnimation(h)}),[G,h]),l((()=>{G&&void 0!==g&&G.setClickable(g)}),[G,g]),l((()=>{G&&void 0!==v&&G.setCursor(v)}),[G,v]),l((()=>{G&&void 0!==b&&G.setIcon(b)}),[G,b]),l((()=>{G&&void 0!==y&&G.setLabel(y)}),[G,y]),l((()=>{G&&void 0!==x&&G.setOpacity(x)}),[G,x]),l((()=>{G&&void 0!==C&&G.setShape(C)}),[G,C]),l((()=>{G&&void 0!==w&&G.setTitle(w)}),[G,w]),l((()=>{G&&void 0!==S&&G.setZIndex(S)}),[G,S]),l((()=>{G&&E&&(null!==Q&&google.maps.event.removeListener(Q),Z(google.maps.event.addListener(G,"dblclick",E)))}),[E]),l((()=>{G&&$&&(null!==J&&google.maps.event.removeListener(J),ee(google.maps.event.addListener(G,"dragend",$)))}),[$]),l((()=>{G&&N&&(null!==te&&google.maps.event.removeListener(te),ne(google.maps.event.addListener(G,"dragstart",N)))}),[N]),l((()=>{G&&j&&(null!==oe&&google.maps.event.removeListener(oe),re(google.maps.event.addListener(G,"mousedown",j)))}),[j]),l((()=>{G&&M&&(null!==ie&&google.maps.event.removeListener(ie),ae(google.maps.event.addListener(G,"mouseout",M)))}),[M]),l((()=>{G&&I&&(null!==se&&google.maps.event.removeListener(se),le(google.maps.event.addListener(G,"mouseover",I)))}),[I]),l((()=>{G&&P&&(null!==ce&&google.maps.event.removeListener(ce),ue(google.maps.event.addListener(G,"mouseup",P)))}),[P]),l((()=>{G&&D&&(null!==de&&google.maps.event.removeListener(de),pe(google.maps.event.addListener(G,"rightclick",D)))}),[D]),l((()=>{G&&k&&(null!==fe&&google.maps.event.removeListener(fe),he(google.maps.event.addListener(G,"click",k)))}),[k]),l((()=>{G&&O&&(null!==ge&&google.maps.event.removeListener(ge),me(google.maps.event.addListener(G,"drag",O)))}),[O]),l((()=>{G&&A&&(null!==ve&&google.maps.event.removeListener(ve),be(google.maps.event.addListener(G,"clickable_changed",A)))}),[A]),l((()=>{G&&T&&(null!==ye&&google.maps.event.removeListener(ye),xe(google.maps.event.addListener(G,"cursor_changed",T)))}),[T]),l((()=>{G&&R&&(null!==Ce&&google.maps.event.removeListener(Ce),we(google.maps.event.addListener(G,"animation_changed",R)))}),[R]),l((()=>{G&&_&&(null!==Se&&google.maps.event.removeListener(Se),ke(google.maps.event.addListener(G,"draggable_changed",_)))}),[_]),l((()=>{G&&z&&(null!==Ee&&google.maps.event.removeListener(Ee),Oe(google.maps.event.addListener(G,"flat_changed",z)))}),[z]),l((()=>{G&&B&&(null!==$e&&google.maps.event.removeListener($e),Ne(google.maps.event.addListener(G,"icon_changed",B)))}),[B]),l((()=>{G&&H&&(null!==Me&&google.maps.event.removeListener(Me),Ie(google.maps.event.addListener(G,"position_changed",H)))}),[H]),l((()=>{G&&F&&(null!==Pe&&google.maps.event.removeListener(Pe),Le(google.maps.event.addListener(G,"shape_changed",F)))}),[F]),l((()=>{G&&W&&(null!==je&&google.maps.event.removeListener(je),De(google.maps.event.addListener(G,"title_changed",W)))}),[W]),l((()=>{G&&V&&(null!==Ae&&google.maps.event.removeListener(Ae),Te(google.maps.event.addListener(G,"visible_changed",V)))}),[V]),l((()=>{G&&K&&(null!==Re&&google.maps.event.removeListener(Re),_e(google.maps.event.addListener(G,"zindex_changed",K)))}),[K]),l((()=>{var e=zH(zH(zH({},n||FH),i?FH:{map:U}),{},{position:t}),o=new google.maps.Marker(e);return i?i.addMarker(o,!!a):o.setMap(U),t&&o.setPosition(t),void 0!==f&&o.setVisible(f),void 0!==c&&o.setDraggable(c),void 0!==g&&o.setClickable(g),"string"==typeof v&&o.setCursor(v),b&&o.setIcon(b),void 0!==y&&o.setLabel(y),void 0!==x&&o.setOpacity(x),C&&o.setShape(C),"string"==typeof w&&o.setTitle(w),"number"==typeof S&&o.setZIndex(S),E&&Z(google.maps.event.addListener(o,"dblclick",E)),$&&ee(google.maps.event.addListener(o,"dragend",$)),N&&ne(google.maps.event.addListener(o,"dragstart",N)),j&&re(google.maps.event.addListener(o,"mousedown",j)),M&&ae(google.maps.event.addListener(o,"mouseout",M)),I&&le(google.maps.event.addListener(o,"mouseover",I)),P&&ue(google.maps.event.addListener(o,"mouseup",P)),D&&pe(google.maps.event.addListener(o,"rightclick",D)),k&&he(google.maps.event.addListener(o,"click",k)),O&&me(google.maps.event.addListener(o,"drag",O)),A&&be(google.maps.event.addListener(o,"clickable_changed",A)),T&&xe(google.maps.event.addListener(o,"cursor_changed",T)),R&&we(google.maps.event.addListener(o,"animation_changed",R)),_&&ke(google.maps.event.addListener(o,"draggable_changed",_)),z&&Oe(google.maps.event.addListener(o,"flat_changed",z)),B&&Ne(google.maps.event.addListener(o,"icon_changed",B)),H&&Ie(google.maps.event.addListener(o,"position_changed",H)),F&&Le(google.maps.event.addListener(o,"shape_changed",F)),W&&De(google.maps.event.addListener(o,"title_changed",W)),V&&Te(google.maps.event.addListener(o,"visible_changed",V)),K&&_e(google.maps.event.addListener(o,"zindex_changed",K)),Y(o),q&&q(o),()=>{null!==Q&&google.maps.event.removeListener(Q),null!==J&&google.maps.event.removeListener(J),null!==te&&google.maps.event.removeListener(te),null!==oe&&google.maps.event.removeListener(oe),null!==ie&&google.maps.event.removeListener(ie),null!==se&&google.maps.event.removeListener(se),null!==ce&&google.maps.event.removeListener(ce),null!==de&&google.maps.event.removeListener(de),null!==fe&&google.maps.event.removeListener(fe),null!==ve&&google.maps.event.removeListener(ve),null!==ye&&google.maps.event.removeListener(ye),null!==Ce&&google.maps.event.removeListener(Ce),null!==Se&&google.maps.event.removeListener(Se),null!==Ee&&google.maps.event.removeListener(Ee),null!==$e&&google.maps.event.removeListener($e),null!==Me&&google.maps.event.removeListener(Me),null!==je&&google.maps.event.removeListener(je),null!==Ae&&google.maps.event.removeListener(Ae),null!==Re&&google.maps.event.removeListener(Re),X&&X(o),i?i.removeMarker(o,!!a):o&&o.setMap(null)}}),[]);var ze=d((()=>s?p.map(s,(e=>o(e)?m(e,{anchor:G}):e)):null),[s,G]);return L.jsx(L.Fragment,{children:ze})||null}));tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[])}componentDidMount(){var e=this;return gH((function*(){var t=zH(zH(zH({},e.props.options||FH),e.props.clusterer?FH:{map:e.context}),{},{position:e.props.position});e.marker=new google.maps.Marker(t),e.props.clusterer?e.props.clusterer.addMarker(e.marker,!!e.props.noClustererRedraw):e.marker.setMap(e.context),e.registeredEvents=uH({updaterMap:HH,eventMap:BH,prevProps:{},nextProps:e.props,instance:e.marker}),e.props.onLoad&&e.props.onLoad(e.marker)}))()}componentDidUpdate(e){this.marker&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:HH,eventMap:BH,prevProps:e,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),cH(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){return(this.props.children?p.map(this.props.children,(e=>o(e)?m(e,{anchor:this.marker}):e)):null)||null}},"contextType",iH);var WH=function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(t.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var t=this.cluster.getClusterer();if(google.maps.event.trigger(t,"click",this.cluster),google.maps.event.trigger(t,"clusterclick",this.cluster),t.getZoomOnClick()){var n=t.getMaxZoom(),o=this.cluster.getBounds(),r=t.getMap();null!==r&&"fitBounds"in r&&r.fitBounds(o),this.timeOut=window.setTimeout((function(){var e=t.getMap();if(null!==e){"fitBounds"in e&&e.fitBounds(o);var r=e.getZoom()||0;null!==n&&r>n&&e.setZoom(n+1)}}),100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(e=this.getPanes())||void 0===e||e.overlayMouseTarget.appendChild(this.div);var t=this.getMap();null!==t&&(this.boundsChangedListener=google.maps.event.addListener(t,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},e.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=null!==e?"".concat(e.y,"px"):"0",this.div.style.left=null!==e?"".concat(e.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var e,t,n,o,r,i;if(this.div&&this.center){var a=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,s=this.backgroundPosition.split(" "),l=parseInt((null===(e=s[0])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),c=parseInt((null===(t=s[1])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),u=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==u?"".concat(u.y,"px"):"0","; left: ").concat(null!==u?"".concat(u.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var d=document.createElement("img");d.alt=a,d.src=this.url,d.width=this.width,d.height=this.height,d.setAttribute("style","position: absolute; top: ".concat(c,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(d.style.clip="rect(-".concat(c,"px, -").concat(l+this.width,"px, -").concat(c+this.height,", -").concat(l,")"));var p=document.createElement("div");p.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(n=this.sums)||void 0===n?void 0:n.text)&&(p.innerText="".concat(null===(o=this.sums)||void 0===o?void 0:o.text)),(null===(r=this.sums)||void 0===r?void 0:r.html)&&(p.innerHTML="".concat(null===(i=this.sums)||void 0===i?void 0:i.html)),this.div.innerHTML="",this.div.appendChild(d),this.div.appendChild(p),this.div.title=a,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(e){this.sums=e;var t=this.cluster.getClusterer().getStyles(),n=t[Math.min(t.length-1,Math.max(0,e.index-1))];n&&(this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className="".concat(this.clusterClassName," ").concat(n.className)),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0")},e.prototype.setCenter=function(e){this.center=e},e.prototype.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return null!==t&&(t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0]),t},e}(),VH=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new WH(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=0,n=this.getMarkers();t<n.length;t++){var o=n[t].getPosition();o&&e.extend(o)}return e},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(e){var t,n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter&&(n=e.getPosition())){var o=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(o-1)+n.lat())/o,(this.center.lng()*(o-1)+n.lng())/o),this.calculateBounds()}}else(n=e.getPosition())&&(this.center=n,this.calculateBounds());e.isAdded=!0,this.markers.push(e);var r=this.markers.length,i=this.markerClusterer.getMaxZoom(),a=null===(t=this.map)||void 0===t?void 0:t.getZoom();if(null!==i&&void 0!==a&&a>i)e.getMap()!==this.map&&e.setMap(this.map);else if(r<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(r===this.minClusterSize)for(var s=0,l=this.markers;s<l.length;s++){l[s].setMap(null)}else e.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(e){if(null!==this.bounds){var t=e.getPosition();if(t)return this.bounds.contains(t)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var e,t=this.markers.length,n=this.markerClusterer.getMaxZoom(),o=null===(e=this.map)||void 0===e?void 0:e.getZoom();null!==n&&void 0!==o&&o>n||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},e.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var t=0;t<this.markers.length;t++)if(e===this.markers[t])return!0;return!1},e}();function KH(e,t){var n=e.length,o=n.toString().length,r=Math.min(o,t);return{text:n.toString(),index:r,title:""}}var qH=[53,56,66,78,90],XH=function(){function e(t,n,o){void 0===n&&(n=[]),void 0===o&&(o={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=o.gridSize||60,this.minClusterSize=o.minimumClusterSize||2,this.maxZoom=o.maxZoom||null,this.styles=o.styles||[],this.title=o.title||"",this.zoomOnClick=!0,void 0!==o.zoomOnClick&&(this.zoomOnClick=o.zoomOnClick),this.averageCenter=!1,void 0!==o.averageCenter&&(this.averageCenter=o.averageCenter),this.ignoreHidden=!1,void 0!==o.ignoreHidden&&(this.ignoreHidden=o.ignoreHidden),this.enableRetinaIcons=!1,void 0!==o.enableRetinaIcons&&(this.enableRetinaIcons=o.enableRetinaIcons),this.imagePath=o.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=o.imageExtension||"png",this.imageSizes=o.imageSizes||qH,this.calculator=o.calculator||KH,this.batchSize=o.batchSize||2e3,this.batchSizeIE=o.batchSizeIE||500,this.clusterClass=o.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(t)}return e.prototype.onZoomChanged=function(){var e,t;this.resetViewport(!1),(null===(e=this.getMap())||void 0===e?void 0:e.getZoom())!==(this.get("minZoom")||0)&&(null===(t=this.getMap())||void 0===t?void 0:t.getZoom())!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")},e.prototype.onIdle=function(){this.redraw()},e.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),null!==e&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},e.prototype.onRemove=function(){for(var e=0,t=this.markers;e<t.length;e++){var n=t[e];n.getMap()!==this.activeMap&&n.setMap(this.activeMap)}for(var o=0,r=this.clusters;o<r.length;o++){r[o].remove()}this.clusters=[];for(var i=0,a=this.listeners;i<a.length;i++){var s=a[i];google.maps.event.removeListener(s)}this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.getMap=function(){return null},e.prototype.getPanes=function(){return null},e.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},e.prototype.setMap=function(){},e.prototype.addListener=function(){return{remove:function(){}}},e.prototype.bindTo=function(){},e.prototype.get=function(){},e.prototype.notify=function(){},e.prototype.set=function(){},e.prototype.setValues=function(){},e.prototype.unbind=function(){},e.prototype.unbindAll=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},e.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0,o=e;n<o.length;n++){var r=o[n].getPosition();r&&t.extend(r)}var i=this.getMap();null!==i&&"fitBounds"in i&&i.fitBounds(t)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(e){this.gridSize=e},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(e){this.maxZoom=e},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(e){this.styles=e},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(e){this.title=e},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(e){this.averageCenter=e},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(e){this.imageExtension=e},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(e){this.imagePath=e},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(e){this.imageSizes=e},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(e){this.calculator=e},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(e){this.clusterClass=e},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(e,t){this.pushMarkerTo(e),t||this.redraw()},e.prototype.addMarkers=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];o&&this.pushMarkerTo(o)}t||this.redraw()},e.prototype.pushMarkerTo=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers.push(e)},e.prototype.removeMarker_=function(e){var t=-1;if(this.markers.indexOf)t=this.markers.indexOf(e);else for(var n=0;n<this.markers.length;n++)if(e===this.markers[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers.splice(t,1),!0)},e.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},e.prototype.removeMarkers=function(e,t){for(var n=!1,o=0,r=e;o<r.length;o++){var i=r[o];n=n||this.removeMarker_(i)}return!t&&n&&this.repaint(),n},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var t=0,n=e;t<n.length;t++){n[t].remove()}}),0)},e.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));null!==n&&(n.x+=this.gridSize,n.y-=this.gridSize);var o=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(null!==o&&(o.x-=this.gridSize,o.y+=this.gridSize),null!==n){var r=t.fromDivPixelToLatLng(n);null!==r&&e.extend(r)}if(null!==o){var i=t.fromDivPixelToLatLng(o);null!==i&&e.extend(i)}return e},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(e){for(var t=0,n=this.clusters;t<n.length;t++){n[t].remove()}this.clusters=[];for(var o=0,r=this.markers;o<r.length;o++){var i=r[o];i.isAdded=!1,e&&i.setMap(null)}},e.prototype.distanceBetweenPoints=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,o=(t.lng()-e.lng())*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},e.prototype.isMarkerInBounds=function(e,t){var n=e.getPosition();return!!n&&t.contains(n)},e.prototype.addToClosestCluster=function(e){for(var t,n=4e4,o=null,r=0,i=this.clusters;r<i.length;r++){var a=(t=i[r]).getCenter(),s=e.getPosition();if(a&&s){var l=this.distanceBetweenPoints(a,s);l<n&&(n=l,o=t)}}o&&o.isMarkerInClusterBounds(e)?o.addMarker(e):((t=new VH(this)).addMarker(e),this.clusters.push(t))},e.prototype.createClusters=function(e){var t=this;if(this.ready){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap(),o=(null!==n&&"getBounds"in n?n.getBounds():null),r=((null==n?void 0:n.getZoom())||0)>3?new google.maps.LatLngBounds(null==o?void 0:o.getSouthWest(),null==o?void 0:o.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),i=this.getExtendedBounds(r),a=Math.min(e+this.batchSize,this.markers.length),s=e;s<a;s++){var l=this.markers[s];l&&!l.isAdded&&this.isMarkerInBounds(l,i)&&(!this.ignoreHidden||this.ignoreHidden&&l.getVisible())&&this.addToClosestCluster(l)}if(a<this.markers.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters(a)}),0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var c=0,u=this.clusters;c<u.length;c++){u[c].updateIcon()}}}},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype){var n=t;this.prototype[n]=e.prototype[n]}return this}.apply(e,[t])},e}();function UH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var GH={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},YH={averageCenter(e,t){e.setAverageCenter(t)},batchSizeIE(e,t){e.setBatchSizeIE(t)},calculator(e,t){e.setCalculator(t)},clusterClass(e,t){e.setClusterClass(t)},enableRetinaIcons(e,t){e.setEnableRetinaIcons(t)},gridSize(e,t){e.setGridSize(t)},ignoreHidden(e,t){e.setIgnoreHidden(t)},imageExtension(e,t){e.setImageExtension(t)},imagePath(e,t){e.setImagePath(t)},imageSizes(e,t){e.setImageSizes(t)},maxZoom(e,t){e.setMaxZoom(t)},minimumClusterSize(e,t){e.setMinimumClusterSize(t)},styles(e,t){e.setStyles(t)},title(e,t){e.setTitle(t)},zoomOnClick(e,t){e.setZoomOnClick(t)}},QH={};v((function(e){var{children:t,options:n,averageCenter:o,batchSizeIE:i,calculator:a,clusterClass:s,enableRetinaIcons:c,gridSize:d,ignoreHidden:p,imageExtension:f,imagePath:h,imageSizes:g,maxZoom:m,minimumClusterSize:v,styles:b,title:y,zoomOnClick:x,onClick:C,onClusteringBegin:w,onClusteringEnd:S,onMouseOver:k,onMouseOut:E,onLoad:O,onUnmount:$}=e,[N,M]=u(null),I=r(iH),[P,L]=u(null),[j,D]=u(null),[A,T]=u(null),[R,_]=u(null),[z,B]=u(null);return l((()=>{N&&E&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(N,GH.onMouseOut,E)))}),[E]),l((()=>{N&&k&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(N,GH.onMouseOver,k)))}),[k]),l((()=>{N&&C&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(N,GH.onClick,C)))}),[C]),l((()=>{N&&w&&(null!==j&&google.maps.event.removeListener(j),D(google.maps.event.addListener(N,GH.onClusteringBegin,w)))}),[w]),l((()=>{N&&S&&(null!==A&&google.maps.event.removeListener(A),D(google.maps.event.addListener(N,GH.onClusteringEnd,S)))}),[S]),l((()=>{void 0!==o&&null!==N&&YH.averageCenter(N,o)}),[N,o]),l((()=>{void 0!==i&&null!==N&&YH.batchSizeIE(N,i)}),[N,i]),l((()=>{void 0!==a&&null!==N&&YH.calculator(N,a)}),[N,a]),l((()=>{void 0!==s&&null!==N&&YH.clusterClass(N,s)}),[N,s]),l((()=>{void 0!==c&&null!==N&&YH.enableRetinaIcons(N,c)}),[N,c]),l((()=>{void 0!==d&&null!==N&&YH.gridSize(N,d)}),[N,d]),l((()=>{void 0!==p&&null!==N&&YH.ignoreHidden(N,p)}),[N,p]),l((()=>{void 0!==f&&null!==N&&YH.imageExtension(N,f)}),[N,f]),l((()=>{void 0!==h&&null!==N&&YH.imagePath(N,h)}),[N,h]),l((()=>{void 0!==g&&null!==N&&YH.imageSizes(N,g)}),[N,g]),l((()=>{void 0!==m&&null!==N&&YH.maxZoom(N,m)}),[N,m]),l((()=>{void 0!==v&&null!==N&&YH.minimumClusterSize(N,v)}),[N,v]),l((()=>{void 0!==b&&null!==N&&YH.styles(N,b)}),[N,b]),l((()=>{void 0!==y&&null!==N&&YH.title(N,y)}),[N,y]),l((()=>{void 0!==x&&null!==N&&YH.zoomOnClick(N,x)}),[N,x]),l((()=>{if(I){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UH(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n||QH),t=new XH(I,[],e);return o&&YH.averageCenter(t,o),i&&YH.batchSizeIE(t,i),a&&YH.calculator(t,a),s&&YH.clusterClass(t,s),c&&YH.enableRetinaIcons(t,c),d&&YH.gridSize(t,d),p&&YH.ignoreHidden(t,p),f&&YH.imageExtension(t,f),h&&YH.imagePath(t,h),g&&YH.imageSizes(t,g),m&&YH.maxZoom(t,m),v&&YH.minimumClusterSize(t,v),b&&YH.styles(t,b),y&&YH.title(t,y),x&&YH.zoomOnClick(t,x),E&&_(google.maps.event.addListener(t,GH.onMouseOut,E)),k&&B(google.maps.event.addListener(t,GH.onMouseOver,k)),C&&L(google.maps.event.addListener(t,GH.onClick,C)),w&&D(google.maps.event.addListener(t,GH.onClusteringBegin,w)),S&&T(google.maps.event.addListener(t,GH.onClusteringEnd,S)),M(t),O&&O(t),()=>{null!==R&&google.maps.event.removeListener(R),null!==z&&google.maps.event.removeListener(z),null!==P&&google.maps.event.removeListener(P),null!==j&&google.maps.event.removeListener(j),null!==A&&google.maps.event.removeListener(A),$&&$(t)}}}),[]),null!==N&&t(N)||null}));function ZH(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{markerClusterer:null}),tH(this,"setClustererCallback",(()=>{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}))}componentDidMount(){if(this.context){var e=new XH(this.context,[],this.props.options);this.registeredEvents=uH({updaterMap:YH,eventMap:GH,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({markerClusterer:e})),this.setClustererCallback)}}componentDidUpdate(e){this.state.markerClusterer&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:YH,eventMap:GH,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),cH(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}},"contextType",iH);var JH=function(){function e(t){void 0===t&&(t={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var e=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var t=this.getPanes();if(null!==t&&t[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var o=0,r=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];o<r.length;o++){var i=r[o];this.eventListeners.push(google.maps.event.addListener(this.div,i,ZH))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",(function(){e.div&&(e.div.style.cursor="default")})))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",(function(t){t.returnValue=!1,t.preventDefault&&t.preventDefault(),e.enableEventPropagation||ZH(t)})),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var e="";return""!==this.closeBoxURL&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},e.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&""!==this.closeBoxURL?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},e.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},e.prototype.getCloseClickHandler=function(){return this.closeClickHandler},e.prototype.panBox=function(e){if(this.div&&!e){var t=this.getMap();if(t instanceof google.maps.Map){var n=0,o=0,r=t.getBounds();r&&!r.contains(this.position)&&t.setCenter(this.position);var i=t.getDiv(),a=i.offsetWidth,s=i.offsetHeight,l=this.pixelOffset.width,c=this.pixelOffset.height,u=this.div.offsetWidth,d=this.div.offsetHeight,p=this.infoBoxClearance.width,f=this.infoBoxClearance.height,h=this.getProjection().fromLatLngToContainerPixel(this.position);null!==h&&(h.x<-l+p?n=h.x+l-p:h.x+u+l+p>a&&(n=h.x+u+l+p-a),this.alignBottom?h.y<-c+f+d?o=h.y+c-f-d:h.y+c+f>s&&(o=h.y+c+f-s):h.y<-c+f?o=h.y+c-f:h.y+d+c+f>s&&(o=h.y+d+c+f-s)),0===n&&0===o||t.panBy(n,o)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var t=this.div.ownerDocument,n=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;n&&(e.top=parseInt(n.borderTopWidth||"",10)||0,e.bottom=parseInt(n.borderBottomWidth||"",10)||0,e.left=parseInt(n.borderLeftWidth||"",10)||0,e.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var o=this.div.currentStyle;o&&(e.top=parseInt(o.borderTopWidth||"",10)||0,e.bottom=parseInt(o.borderBottomWidth||"",10)||0,e.left=parseInt(o.borderLeftWidth||"",10)||0,e.right=parseInt(o.borderRightWidth||"",10)||0)}return e},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(e){void 0===e&&(e={}),void 0!==e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),void 0!==e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),void 0!==e.content&&this.setContent(e.content),void 0!==e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),void 0!==e.maxWidth&&(this.maxWidth=e.maxWidth),void 0!==e.pixelOffset&&(this.pixelOffset=e.pixelOffset),void 0!==e.alignBottom&&(this.alignBottom=e.alignBottom),void 0!==e.position&&this.setPosition(e.position),void 0!==e.zIndex&&this.setZIndex(e.zIndex),void 0!==e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),void 0!==e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),void 0!==e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),void 0!==e.isHidden&&(this.isHidden=e.isHidden),void 0!==e.visible&&(this.isHidden=!e.visible),void 0!==e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var e=this.getMap();return null!=e&&!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(e,t){var n=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",(function(){var e=t.getPosition();n.setPosition(e)})),this.mapListener=google.maps.event.addListener(t,"map_changed",(function(){n.setMap(t.map)}))),this.setMap(e),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,t=this.eventListeners;e<t.length;e++){var n=t[e];google.maps.event.removeListener(n)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)Object.prototype.hasOwnProperty.call(this,t)||(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},e}(),eF=["position"],tF=["position"];function nF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function oF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nF(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rF,iF,aF={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},sF={options(e,t){e.setOptions(t)},position(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}},lF={};v((function(e){var{children:t,anchor:n,options:o,position:i,zIndex:s,onCloseClick:c,onDomReady:d,onContentChanged:f,onPositionChanged:h,onZindexChanged:g,onLoad:m,onUnmount:v}=e,b=r(iH),[y,x]=u(null),[w,S]=u(null),[k,E]=u(null),[O,$]=u(null),[N,M]=u(null),[I,P]=u(null),L=a(null);return l((()=>{b&&null!==y&&(y.close(),n?y.open(b,n):y.getPosition()&&y.open(b))}),[b,y,n]),l((()=>{o&&null!==y&&y.setOptions(o)}),[y,o]),l((()=>{if(i&&null!==y){var e=i instanceof google.maps.LatLng?i:new google.maps.LatLng(i.lat,i.lng);y.setPosition(e)}}),[i]),l((()=>{"number"==typeof s&&null!==y&&y.setZIndex(s)}),[s]),l((()=>{y&&c&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(y,"closeclick",c)))}),[c]),l((()=>{y&&d&&(null!==k&&google.maps.event.removeListener(k),E(google.maps.event.addListener(y,"domready",d)))}),[d]),l((()=>{y&&f&&(null!==O&&google.maps.event.removeListener(O),$(google.maps.event.addListener(y,"content_changed",f)))}),[f]),l((()=>{y&&h&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(y,"position_changed",h)))}),[h]),l((()=>{y&&g&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(y,"zindex_changed",g)))}),[g]),l((()=>{if(b){var e,t=o||lF,{position:r}=t,i=OH(t,eF);!r||r instanceof google.maps.LatLng||(e=new google.maps.LatLng(r.lat,r.lng));var a=new JH(oF(oF({},i),e?{position:e}:{}));L.current=document.createElement("div"),x(a),c&&S(google.maps.event.addListener(a,"closeclick",c)),d&&E(google.maps.event.addListener(a,"domready",d)),f&&$(google.maps.event.addListener(a,"content_changed",f)),h&&M(google.maps.event.addListener(a,"position_changed",h)),g&&P(google.maps.event.addListener(a,"zindex_changed",g)),a.setContent(L.current),n?a.open(b,n):a.getPosition()?a.open(b):rH(!1,"You must provide either an anchor or a position prop for <InfoBox>."),m&&m(a)}return()=>{null!==y&&(w&&google.maps.event.removeListener(w),O&&google.maps.event.removeListener(O),k&&google.maps.event.removeListener(k),N&&google.maps.event.removeListener(N),I&&google.maps.event.removeListener(I),v&&v(y),y.close())}}),[]),L.current?C(p.only(t),L.current):null}));tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"containerElement",null),tH(this,"state",{infoBox:null}),tH(this,"open",((e,t)=>{t?null!==this.context&&e.open(this.context,t):e.getPosition()?null!==this.context&&e.open(this.context):rH(!1,"You must provide either an anchor or a position prop for <InfoBox>.")})),tH(this,"setInfoBoxCallback",(()=>{null!==this.state.infoBox&&null!==this.containerElement&&(this.state.infoBox.setContent(this.containerElement),this.open(this.state.infoBox,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoBox))}))}componentDidMount(){var e,t=this.props.options||{},{position:n}=t,o=OH(t,tF);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var r=new JH(oF(oF({},o),e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=uH({updaterMap:sF,eventMap:aF,prevProps:{},nextProps:this.props,instance:r}),this.setState({infoBox:r},this.setInfoBoxCallback)}componentDidUpdate(e){var{infoBox:t}=this.state;null!==t&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:sF,eventMap:aF,prevProps:e,nextProps:this.props,instance:t}))}componentWillUnmount(){var{onUnmount:e}=this.props,{infoBox:t}=this.state;null!==t&&(e&&e(t),cH(this.registeredEvents),t.close())}render(){return this.containerElement?C(p.only(this.props.children),this.containerElement):null}},"contextType",iH);var cF=(iF||(iF=1,rF=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}),rF),uF=nH(cF),dF=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class pF{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");var o=n>>4;if(1!==o)throw new Error("Got v".concat(o," data when expected v").concat(1,"."));var r=dF[15&n];if(!r)throw new Error("Unrecognized array type.");var[i]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new pF(a,i,r,e)}constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float64Array,o=arguments.length>3?arguments[3]:void 0;if(isNaN(e)||e<0)throw new Error("Unpexpected numItems value: ".concat(e,"."));this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;var r=dF.indexOf(this.ArrayType),i=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(r<0)throw new Error("Unexpected typed array class: ".concat(n,"."));o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+i+a+s),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+r]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){var n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){var e=this._pos>>1;if(e!==this.numItems)throw new Error("Added ".concat(e," items when expected ").concat(this.numItems,"."));return fF(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:r,coords:i,nodeSize:a}=this,s=[0,r.length-1,0],l=[];s.length;){var c=s.pop()||0,u=s.pop()||0,d=s.pop()||0;if(u-d<=a)for(var p=d;p<=u;p++){var f=i[2*p],h=i[2*p+1];f>=e&&f<=n&&h>=t&&h<=o&&l.push(r[p])}else{var g=d+u>>1,m=i[2*g],v=i[2*g+1];m>=e&&m<=n&&v>=t&&v<=o&&l.push(r[g]),(0===c?e<=m:t<=v)&&(s.push(d),s.push(g-1),s.push(1-c)),(0===c?n>=m:o>=v)&&(s.push(g+1),s.push(u),s.push(1-c))}}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:o,coords:r,nodeSize:i}=this,a=[0,o.length-1,0],s=[],l=n*n;a.length;){var c=a.pop()||0,u=a.pop()||0,d=a.pop()||0;if(u-d<=i)for(var p=d;p<=u;p++)vF(r[2*p],r[2*p+1],e,t)<=l&&s.push(o[p]);else{var f=d+u>>1,h=r[2*f],g=r[2*f+1];vF(h,g,e,t)<=l&&s.push(o[f]),(0===c?e-n<=h:t-n<=g)&&(a.push(d),a.push(f-1),a.push(1-c)),(0===c?e+n>=h:t+n>=g)&&(a.push(f+1),a.push(u),a.push(1-c))}}return s}}function fF(e,t,n,o,r,i){if(!(r-o<=n)){var a=o+r>>1;hF(e,t,a,o,r,i),fF(e,t,n,o,a-1,1-i),fF(e,t,n,a+1,r,1-i)}}function hF(e,t,n,o,r,i){for(;r>o;){if(r-o>600){var a=r-o+1,s=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(s-a/2<0?-1:1);hF(e,t,n,Math.max(o,Math.floor(n-s*c/a+u)),Math.min(r,Math.floor(n+(a-s)*c/a+u)),i)}var d=t[2*n+i],p=o,f=r;for(gF(e,t,o,n),t[2*r+i]>d&&gF(e,t,o,r);p<f;){for(gF(e,t,p,f),p++,f--;t[2*p+i]<d;)p++;for(;t[2*f+i]>d;)f--}t[2*o+i]===d?gF(e,t,o,f):gF(e,t,++f,r),f<=n&&(o=f+1),n<=f&&(r=f-1)}}function gF(e,t,n,o){mF(e,n,o),mF(t,2*n,2*o),mF(t,2*n+1,2*o+1)}function mF(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function vF(e,t,n,o){var r=e-n,i=t-o;return r*r+i*i}var bF,yF={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},xF=Math.fround||(bF=new Float32Array(1),e=>(bF[0]=+e,bF[0]));class CF{constructor(e){this.options=Object.assign(Object.create(yF),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){var{log:t,minZoom:n,maxZoom:o}=this.options;t&&console.time("total time");var r="prepare ".concat(e.length," points");t&&console.time(r),this.points=e;for(var i=[],a=0;a<e.length;a++){var s=e[a];if(s.geometry){var[l,c]=s.geometry.coordinates,u=xF(kF(l)),d=xF(EF(c));i.push(u,d,1/0,a,-1,1),this.options.reduce&&i.push(0)}}var p=this.trees[o+1]=this._createTree(i);t&&console.timeEnd(r);for(var f=o;f>=n;f--){var h=+Date.now();p=this.trees[f]=this._createTree(this._cluster(p,f)),t&&console.log("z%d: %d clusters in %dms",f,p.numItems,+Date.now()-h)}return t&&console.timeEnd("total time"),this}getClusters(e,t){var n=((e[0]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,e[1])),r=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,r=180;else if(n>r){var a=this.getClusters([n,o,180,i],t),s=this.getClusters([-180,o,r,i],t);return a.concat(s)}var l=this.trees[this._limitZoom(t)],c=l.range(kF(n),EF(i),kF(r),EF(o)),u=l.data,d=[];for(var p of c){var f=this.stride*p;d.push(u[f+5]>1?wF(u,f,this.clusterProps):this.points[u[f+3]])}return d}getChildren(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),o="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(o);var i=r.data;if(t*this.stride>=i.length)throw new Error(o);var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=i[t*this.stride],l=i[t*this.stride+1],c=r.within(s,l,a),u=[];for(var d of c){var p=d*this.stride;i[p+4]===e&&u.push(i[p+5]>1?wF(i,p,this.clusterProps):this.points[i[p+3]])}if(0===u.length)throw new Error(o);return u}getLeaves(e,t,n){t=t||10,n=n||0;var o=[];return this._appendLeaves(o,e,t,n,0),o}getTile(e,t,n){var o=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:i,radius:a}=this.options,s=a/i,l=(n-s)/r,c=(n+1+s)/r,u={features:[]};return this._addTileFeatures(o.range((t-s)/r,l,(t+1+s)/r,c),o.data,t,n,r,u),0===t&&this._addTileFeatures(o.range(1-s/r,l,1,c),o.data,r,n,r,u),t===r-1&&this._addTileFeatures(o.range(0,l,s/r,c),o.data,-1,n,r,u),u.features.length?u:null}getClusterExpansionZoom(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,o,r){var i=this.getChildren(t);for(var a of i){var s=a.properties;if(s&&s.cluster?r+s.point_count<=o?r+=s.point_count:r=this._appendLeaves(e,s.cluster_id,n,o,r):r<o?r++:e.push(a),e.length===n)break}return r}_createTree(e){for(var t=new pF(e.length/this.stride|0,this.options.nodeSize,Float32Array),n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,n,o,r,i){for(var a of e){var s=a*this.stride,l=t[s+5]>1,c=void 0,u=void 0,d=void 0;if(l)c=SF(t,s,this.clusterProps),u=t[s],d=t[s+1];else{var p=this.points[t[s+3]];c=p.properties;var[f,h]=p.geometry.coordinates;u=kF(f),d=EF(h)}var g={type:1,geometry:[[Math.round(this.options.extent*(u*r-n)),Math.round(this.options.extent*(d*r-o))]],tags:c},m=void 0;void 0!==(m=l||this.options.generateId?t[s+3]:this.points[t[s+3]].id)&&(g.id=m),i.features.push(g)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){for(var{radius:n,extent:o,reduce:r,minPoints:i}=this.options,a=n/(o*Math.pow(2,t)),s=e.data,l=[],c=this.stride,u=0;u<s.length;u+=c)if(!(s[u+2]<=t)){s[u+2]=t;var d=s[u],p=s[u+1],f=e.within(s[u],s[u+1],a),h=s[u+5],g=h;for(var m of f){var v=m*c;s[v+2]>t&&(g+=s[v+5])}if(g>h&&g>=i){var b=d*h,y=p*h,x=void 0,C=-1,w=(u/c<<5)+(t+1)+this.points.length;for(var S of f){var k=S*c;if(!(s[k+2]<=t)){s[k+2]=t;var E=s[k+5];b+=s[k]*E,y+=s[k+1]*E,s[k+4]=w,r&&(x||(x=this._map(s,u,!0),C=this.clusterProps.length,this.clusterProps.push(x)),r(x,this._map(s,k)))}}s[u+4]=w,l.push(b/g,y/g,1/0,w,-1,g),r&&l.push(C)}else{for(var O=0;O<c;O++)l.push(s[u+O]);if(g>1)for(var $ of f){var N=$*c;if(!(s[N+2]<=t)){s[N+2]=t;for(var M=0;M<c;M++)l.push(s[N+M])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+5]>1){var o=this.clusterProps[e[t+6]];return n?Object.assign({},o):o}var r=this.points[e[t+3]].properties,i=this.options.map(r);return n&&i===r?Object.assign({},i):i}}function wF(e,t,n){return{type:"Feature",id:e[t+3],properties:SF(e,t,n),geometry:{type:"Point",coordinates:[(i=e[t],360*(i-.5)),(o=e[t+1],r=(180-360*o)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var o,r,i;
|
45
|
+
/*! *****************************************************************************
|
46
|
+
Copyright (c) Microsoft Corporation.
|
47
|
+
|
48
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
49
|
+
purpose with or without fee is hereby granted.
|
50
|
+
|
51
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
52
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
53
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
54
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
55
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
56
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
57
|
+
PERFORMANCE OF THIS SOFTWARE.
|
58
|
+
***************************************************************************** */}function SF(e,t,n){var o=e[t+5],r=o>=1e4?"".concat(Math.round(o/1e3),"k"):o>=1e3?"".concat(Math.round(o/100)/10,"k"):o,i=e[t+6],a=-1===i?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+3],point_count:o,point_count_abbreviated:r})}function kF(e){return e/360+.5}function EF(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}class OF{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class $F{constructor(e){var{markers:t,position:n}=e;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(0!==this.markers.length||this._position){var e=new google.maps.LatLngBounds(this._position,this._position);for(var t of this.markers)e.extend(OF.getPosition(t));return e}}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>OF.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(OF.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class NF{constructor(e){var{maxZoom:t=16}=e;this.maxZoom=t}noop(e){var{markers:t}=e;return IF(t)}}var MF,IF=e=>e.map((e=>new $F({position:OF.getPosition(e),markers:[e]})));class PF extends NF{constructor(e){var{maxZoom:t,radius:n=60}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1},this.superCluster=new CF(Object.assign({maxZoom:this.maxZoom,radius:n},o))}calculate(e){var t=!1,n={zoom:e.map.getZoom()};if(!uF(e.markers,this.markers)){t=!0,this.markers=[...e.markers];var o=this.markers.map((e=>{var t=OF.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(o)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!uF(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster(e){var{map:t}=e;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map((e=>this.transformCluster(e)))}transformCluster(e){var{geometry:{coordinates:[t,n]},properties:o}=e;if(o.cluster)return new $F({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:n,lng:t}});var r=o.marker;return new $F({markers:[r],position:OF.getPosition(r)})}}class LF{constructor(e,t){this.markers={sum:e.length};var n=t.map((e=>e.count)),o=n.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:o/t.length,sum:o,min:Math.min(...n),max:Math.max(...n)}}}}class jF{render(e,t,n){var{count:o,position:r}=e,i=o>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff",a='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">').concat(o,"</text>\n</svg>"),s="Cluster of ".concat(o," markers"),l=Number(google.maps.Marker.MAX_ZINDEX)+o;if(OF.isAdvancedMarkerAvailable(n)){var c=(new DOMParser).parseFromString(a,"image/svg+xml").documentElement;c.setAttribute("transform","translate(0 25)");var u={map:n,position:r,zIndex:l,title:s,content:c};return new google.maps.marker.AdvancedMarkerElement(u)}var d={position:r,zIndex:l,title:s,icon:{url:"data:image/svg+xml;base64,".concat(btoa(a)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(d)}}class DF{constructor(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(DF,google.maps.OverlayView)}}!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(MF||(MF={}));var AF=(e,t,n)=>{n.fitBounds(t.bounds)};class TF extends DF{constructor(e){var{map:t,markers:n=[],algorithmOptions:o={},algorithm:r=new PF(o),renderer:i=new jF,onClusterClick:a=AF}=e;super(),this.markers=[...n],this.clusters=[],this.algorithm=r,this.renderer=i,this.onClusterClick=a,t&&this.setMap(t)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){var n=this.markers.indexOf(e);return-1!==n&&(OF.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){var n=!1;return e.forEach((e=>{n=this.removeMarker(e,!0)||n})),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,MF.CLUSTERING_BEGIN,this);var{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||null==n){var o=new Set;for(var r of t)1==r.markers.length&&o.add(r.markers[0]);var i=[];for(var a of this.clusters)null!=a.marker&&(1==a.markers.length?o.has(a.marker)||OF.setMap(a.marker,null):i.push(a.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>i.forEach((e=>OF.setMap(e,null)))))}google.maps.event.trigger(this,MF.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>OF.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){var e=new LF(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e,t),n.markers.forEach((e=>OF.setMap(e,null))),this.onClusterClick&&n.marker.addListener("click",(e=>{google.maps.event.trigger(this,MF.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)}))),OF.setMap(n.marker,t)}))}}function RF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RF(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zF(e){var t=function(){rH(!!r,"useGoogleMap is React hook and requires React version 16.8+");var e=r(iH);return rH(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}(),[n,o]=u(null);return l((()=>{if(t&&null===n){var r=new TF(_F(_F({},e),{},{map:t}));o(r)}}),[t]),n}v((function(e){var{children:t,options:n}=e,o=zF(n);return null!==o?t(o):null}));var BF={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},HF={options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},zIndex(e,t){e.setZIndex(t)}};v((function(e){var{children:t,anchor:n,options:o,position:i,zIndex:s,onCloseClick:c,onDomReady:d,onContentChanged:f,onPositionChanged:h,onZindexChanged:g,onLoad:m,onUnmount:v}=e,b=r(iH),[y,x]=u(null),[w,S]=u(null),[k,E]=u(null),[O,$]=u(null),[N,M]=u(null),[I,P]=u(null),L=a(null);return l((()=>{null!==y&&(y.close(),n?y.open(b,n):y.getPosition()&&y.open(b))}),[b,y,n]),l((()=>{o&&null!==y&&y.setOptions(o)}),[y,o]),l((()=>{i&&null!==y&&y.setPosition(i)}),[i]),l((()=>{"number"==typeof s&&null!==y&&y.setZIndex(s)}),[s]),l((()=>{y&&c&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(y,"closeclick",c)))}),[c]),l((()=>{y&&d&&(null!==k&&google.maps.event.removeListener(k),E(google.maps.event.addListener(y,"domready",d)))}),[d]),l((()=>{y&&f&&(null!==O&&google.maps.event.removeListener(O),$(google.maps.event.addListener(y,"content_changed",f)))}),[f]),l((()=>{y&&h&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(y,"position_changed",h)))}),[h]),l((()=>{y&&g&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(y,"zindex_changed",g)))}),[g]),l((()=>{var e=new google.maps.InfoWindow(o);return x(e),L.current=document.createElement("div"),c&&S(google.maps.event.addListener(e,"closeclick",c)),d&&E(google.maps.event.addListener(e,"domready",d)),f&&$(google.maps.event.addListener(e,"content_changed",f)),h&&M(google.maps.event.addListener(e,"position_changed",h)),g&&P(google.maps.event.addListener(e,"zindex_changed",g)),e.setContent(L.current),i&&e.setPosition(i),s&&e.setZIndex(s),n?e.open(b,n):e.getPosition()?e.open(b):rH(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),m&&m(e),()=>{w&&google.maps.event.removeListener(w),O&&google.maps.event.removeListener(O),k&&google.maps.event.removeListener(k),N&&google.maps.event.removeListener(N),I&&google.maps.event.removeListener(I),v&&v(e),e.close()}}),[]),L.current?C(p.only(t),L.current):null}));function FF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function WF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FF(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"containerElement",null),tH(this,"state",{infoWindow:null}),tH(this,"open",((e,t)=>{t?e.open(this.context,t):e.getPosition()?e.open(this.context):rH(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")})),tH(this,"setInfoWindowCallback",(()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}))}componentDidMount(){var e=new google.maps.InfoWindow(this.props.options);this.containerElement=document.createElement("div"),this.registeredEvents=uH({updaterMap:HF,eventMap:BF,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({infoWindow:e})),this.setInfoWindowCallback)}componentDidUpdate(e){null!==this.state.infoWindow&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:HF,eventMap:BF,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(cH(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())}render(){return this.containerElement?C(p.only(this.props.children),this.containerElement):null}},"contextType",iH);var VF={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},KF={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},visible(e,t){e.setVisible(t)}},qF={};v((function(e){var{options:t,draggable:n,editable:o,visible:i,path:a,onDblClick:s,onDragEnd:c,onDragStart:d,onMouseDown:p,onMouseMove:f,onMouseOut:h,onMouseOver:g,onMouseUp:m,onRightClick:v,onClick:b,onDrag:y,onLoad:x,onUnmount:C}=e,w=r(iH),[S,k]=u(null),[E,O]=u(null),[$,N]=u(null),[M,I]=u(null),[P,L]=u(null),[j,D]=u(null),[A,T]=u(null),[R,_]=u(null),[z,B]=u(null),[H,F]=u(null),[W,V]=u(null),[K,q]=u(null);return l((()=>{null!==S&&S.setMap(w)}),[w]),l((()=>{void 0!==t&&null!==S&&S.setOptions(t)}),[S,t]),l((()=>{void 0!==n&&null!==S&&S.setDraggable(n)}),[S,n]),l((()=>{void 0!==o&&null!==S&&S.setEditable(o)}),[S,o]),l((()=>{void 0!==i&&null!==S&&S.setVisible(i)}),[S,i]),l((()=>{void 0!==a&&null!==S&&S.setPath(a)}),[S,a]),l((()=>{S&&s&&(null!==E&&google.maps.event.removeListener(E),O(google.maps.event.addListener(S,"dblclick",s)))}),[s]),l((()=>{S&&c&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(S,"dragend",c)))}),[c]),l((()=>{S&&d&&(null!==M&&google.maps.event.removeListener(M),I(google.maps.event.addListener(S,"dragstart",d)))}),[d]),l((()=>{S&&p&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(S,"mousedown",p)))}),[p]),l((()=>{S&&f&&(null!==j&&google.maps.event.removeListener(j),D(google.maps.event.addListener(S,"mousemove",f)))}),[f]),l((()=>{S&&h&&(null!==A&&google.maps.event.removeListener(A),T(google.maps.event.addListener(S,"mouseout",h)))}),[h]),l((()=>{S&&g&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(S,"mouseover",g)))}),[g]),l((()=>{S&&m&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(S,"mouseup",m)))}),[m]),l((()=>{S&&v&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(S,"rightclick",v)))}),[v]),l((()=>{S&&b&&(null!==W&&google.maps.event.removeListener(W),V(google.maps.event.addListener(S,"click",b)))}),[b]),l((()=>{S&&y&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(S,"drag",y)))}),[y]),l((()=>{var e=new google.maps.Polyline(WF(WF({},t||qF),{},{map:w}));return a&&e.setPath(a),void 0!==i&&e.setVisible(i),void 0!==o&&e.setEditable(o),void 0!==n&&e.setDraggable(n),s&&O(google.maps.event.addListener(e,"dblclick",s)),c&&N(google.maps.event.addListener(e,"dragend",c)),d&&I(google.maps.event.addListener(e,"dragstart",d)),p&&L(google.maps.event.addListener(e,"mousedown",p)),f&&D(google.maps.event.addListener(e,"mousemove",f)),h&&T(google.maps.event.addListener(e,"mouseout",h)),g&&_(google.maps.event.addListener(e,"mouseover",g)),m&&B(google.maps.event.addListener(e,"mouseup",m)),v&&F(google.maps.event.addListener(e,"rightclick",v)),b&&V(google.maps.event.addListener(e,"click",b)),y&&q(google.maps.event.addListener(e,"drag",y)),k(e),x&&x(e),()=>{null!==E&&google.maps.event.removeListener(E),null!==$&&google.maps.event.removeListener($),null!==M&&google.maps.event.removeListener(M),null!==P&&google.maps.event.removeListener(P),null!==j&&google.maps.event.removeListener(j),null!==A&&google.maps.event.removeListener(A),null!==R&&google.maps.event.removeListener(R),null!==z&&google.maps.event.removeListener(z),null!==H&&google.maps.event.removeListener(H),null!==W&&google.maps.event.removeListener(W),C&&C(e),e.setMap(null)}}),[]),null}));function XF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function UF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XF(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{polyline:null}),tH(this,"setPolylineCallback",(()=>{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}))}componentDidMount(){var e=new google.maps.Polyline(WF(WF({},this.props.options),{},{map:this.context}));this.registeredEvents=uH({updaterMap:KF,eventMap:VF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)}componentDidUpdate(e){null!==this.state.polyline&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:KF,eventMap:VF,prevProps:e,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),cH(this.registeredEvents),this.state.polyline.setMap(null))}render(){return null}},"contextType",iH);var GF={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},YF={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},paths(e,t){e.setPaths(t)},visible(e,t){e.setVisible(t)}};v((function(e){var{options:t,draggable:n,editable:o,visible:i,path:a,paths:s,onDblClick:c,onDragEnd:d,onDragStart:p,onMouseDown:f,onMouseMove:h,onMouseOut:g,onMouseOver:m,onMouseUp:v,onRightClick:b,onClick:y,onDrag:x,onLoad:C,onUnmount:w,onEdit:S}=e,k=r(iH),[E,O]=u(null),[$,N]=u(null),[M,I]=u(null),[P,L]=u(null),[j,D]=u(null),[A,T]=u(null),[R,_]=u(null),[z,B]=u(null),[H,F]=u(null),[W,V]=u(null),[K,q]=u(null),[X,U]=u(null);return l((()=>{null!==E&&E.setMap(k)}),[k]),l((()=>{void 0!==t&&null!==E&&E.setOptions(t)}),[E,t]),l((()=>{void 0!==n&&null!==E&&E.setDraggable(n)}),[E,n]),l((()=>{void 0!==o&&null!==E&&E.setEditable(o)}),[E,o]),l((()=>{void 0!==i&&null!==E&&E.setVisible(i)}),[E,i]),l((()=>{void 0!==a&&null!==E&&E.setPath(a)}),[E,a]),l((()=>{void 0!==s&&null!==E&&E.setPaths(s)}),[E,s]),l((()=>{E&&"function"==typeof c&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(E,"dblclick",c)))}),[c]),l((()=>{E&&(google.maps.event.addListener(E.getPath(),"insert_at",(()=>{null==S||S(E)})),google.maps.event.addListener(E.getPath(),"set_at",(()=>{null==S||S(E)})),google.maps.event.addListener(E.getPath(),"remove_at",(()=>{null==S||S(E)})))}),[E,S]),l((()=>{E&&"function"==typeof d&&(null!==M&&google.maps.event.removeListener(M),I(google.maps.event.addListener(E,"dragend",d)))}),[d]),l((()=>{E&&"function"==typeof p&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(E,"dragstart",p)))}),[p]),l((()=>{E&&"function"==typeof f&&(null!==j&&google.maps.event.removeListener(j),D(google.maps.event.addListener(E,"mousedown",f)))}),[f]),l((()=>{E&&"function"==typeof h&&(null!==A&&google.maps.event.removeListener(A),T(google.maps.event.addListener(E,"mousemove",h)))}),[h]),l((()=>{E&&"function"==typeof g&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(E,"mouseout",g)))}),[g]),l((()=>{E&&"function"==typeof m&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(E,"mouseover",m)))}),[m]),l((()=>{E&&"function"==typeof v&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(E,"mouseup",v)))}),[v]),l((()=>{E&&"function"==typeof b&&(null!==W&&google.maps.event.removeListener(W),V(google.maps.event.addListener(E,"rightclick",b)))}),[b]),l((()=>{E&&"function"==typeof y&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(E,"click",y)))}),[y]),l((()=>{E&&"function"==typeof x&&(null!==X&&google.maps.event.removeListener(X),U(google.maps.event.addListener(E,"drag",x)))}),[x]),l((()=>{var e=new google.maps.Polygon(UF(UF({},t),{},{map:k}));return a&&e.setPath(a),s&&e.setPaths(s),void 0!==i&&e.setVisible(i),void 0!==o&&e.setEditable(o),void 0!==n&&e.setDraggable(n),c&&N(google.maps.event.addListener(e,"dblclick",c)),d&&I(google.maps.event.addListener(e,"dragend",d)),p&&L(google.maps.event.addListener(e,"dragstart",p)),f&&D(google.maps.event.addListener(e,"mousedown",f)),h&&T(google.maps.event.addListener(e,"mousemove",h)),g&&_(google.maps.event.addListener(e,"mouseout",g)),m&&B(google.maps.event.addListener(e,"mouseover",m)),v&&F(google.maps.event.addListener(e,"mouseup",v)),b&&V(google.maps.event.addListener(e,"rightclick",b)),y&&q(google.maps.event.addListener(e,"click",y)),x&&U(google.maps.event.addListener(e,"drag",x)),O(e),C&&C(e),()=>{null!==$&&google.maps.event.removeListener($),null!==M&&google.maps.event.removeListener(M),null!==P&&google.maps.event.removeListener(P),null!==j&&google.maps.event.removeListener(j),null!==A&&google.maps.event.removeListener(A),null!==R&&google.maps.event.removeListener(R),null!==z&&google.maps.event.removeListener(z),null!==H&&google.maps.event.removeListener(H),null!==W&&google.maps.event.removeListener(W),null!==K&&google.maps.event.removeListener(K),w&&w(e),e.setMap(null)}}),[]),null}));function QF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ZF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QF(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[])}componentDidMount(){var e=this.props.options||{};this.polygon=new google.maps.Polygon(e),this.polygon.setMap(this.context),this.registeredEvents=uH({updaterMap:YF,eventMap:GF,prevProps:{},nextProps:this.props,instance:this.polygon}),this.props.onLoad&&this.props.onLoad(this.polygon)}componentDidUpdate(e){this.polygon&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:YF,eventMap:GF,prevProps:e,nextProps:this.props,instance:this.polygon}))}componentWillUnmount(){this.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.polygon),cH(this.registeredEvents),this.polygon&&this.polygon.setMap(null))}render(){return null}},"contextType",iH);var JF={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},eW={bounds(e,t){e.setBounds(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},visible(e,t){e.setVisible(t)}};v((function(e){var{options:t,bounds:n,draggable:o,editable:i,visible:a,onDblClick:s,onDragEnd:c,onDragStart:d,onMouseDown:p,onMouseMove:f,onMouseOut:h,onMouseOver:g,onMouseUp:m,onRightClick:v,onClick:b,onDrag:y,onBoundsChanged:x,onLoad:C,onUnmount:w}=e,S=r(iH),[k,E]=u(null),[O,$]=u(null),[N,M]=u(null),[I,P]=u(null),[L,j]=u(null),[D,A]=u(null),[T,R]=u(null),[_,z]=u(null),[B,H]=u(null),[F,W]=u(null),[V,K]=u(null),[q,X]=u(null),[U,G]=u(null);return l((()=>{null!==k&&k.setMap(S)}),[S]),l((()=>{void 0!==t&&null!==k&&k.setOptions(t)}),[k,t]),l((()=>{void 0!==o&&null!==k&&k.setDraggable(o)}),[k,o]),l((()=>{void 0!==i&&null!==k&&k.setEditable(i)}),[k,i]),l((()=>{void 0!==a&&null!==k&&k.setVisible(a)}),[k,a]),l((()=>{void 0!==n&&null!==k&&k.setBounds(n)}),[k,n]),l((()=>{k&&s&&(null!==O&&google.maps.event.removeListener(O),$(google.maps.event.addListener(k,"dblclick",s)))}),[s]),l((()=>{k&&c&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(k,"dragend",c)))}),[c]),l((()=>{k&&d&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(k,"dragstart",d)))}),[d]),l((()=>{k&&p&&(null!==L&&google.maps.event.removeListener(L),j(google.maps.event.addListener(k,"mousedown",p)))}),[p]),l((()=>{k&&f&&(null!==D&&google.maps.event.removeListener(D),A(google.maps.event.addListener(k,"mousemove",f)))}),[f]),l((()=>{k&&h&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener(k,"mouseout",h)))}),[h]),l((()=>{k&&g&&(null!==_&&google.maps.event.removeListener(_),z(google.maps.event.addListener(k,"mouseover",g)))}),[g]),l((()=>{k&&m&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(k,"mouseup",m)))}),[m]),l((()=>{k&&v&&(null!==F&&google.maps.event.removeListener(F),W(google.maps.event.addListener(k,"rightclick",v)))}),[v]),l((()=>{k&&b&&(null!==V&&google.maps.event.removeListener(V),K(google.maps.event.addListener(k,"click",b)))}),[b]),l((()=>{k&&y&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(k,"drag",y)))}),[y]),l((()=>{k&&x&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener(k,"bounds_changed",x)))}),[x]),l((()=>{var e=new google.maps.Rectangle(ZF(ZF({},t),{},{map:S}));return void 0!==a&&e.setVisible(a),void 0!==i&&e.setEditable(i),void 0!==o&&e.setDraggable(o),void 0!==n&&e.setBounds(n),s&&$(google.maps.event.addListener(e,"dblclick",s)),c&&M(google.maps.event.addListener(e,"dragend",c)),d&&P(google.maps.event.addListener(e,"dragstart",d)),p&&j(google.maps.event.addListener(e,"mousedown",p)),f&&A(google.maps.event.addListener(e,"mousemove",f)),h&&R(google.maps.event.addListener(e,"mouseout",h)),g&&z(google.maps.event.addListener(e,"mouseover",g)),m&&H(google.maps.event.addListener(e,"mouseup",m)),v&&W(google.maps.event.addListener(e,"rightclick",v)),b&&K(google.maps.event.addListener(e,"click",b)),y&&X(google.maps.event.addListener(e,"drag",y)),x&&G(google.maps.event.addListener(e,"bounds_changed",x)),E(e),C&&C(e),()=>{null!==O&&google.maps.event.removeListener(O),null!==N&&google.maps.event.removeListener(N),null!==I&&google.maps.event.removeListener(I),null!==L&&google.maps.event.removeListener(L),null!==D&&google.maps.event.removeListener(D),null!==T&&google.maps.event.removeListener(T),null!==_&&google.maps.event.removeListener(_),null!==B&&google.maps.event.removeListener(B),null!==F&&google.maps.event.removeListener(F),null!==V&&google.maps.event.removeListener(V),null!==q&&google.maps.event.removeListener(q),null!==U&&google.maps.event.removeListener(U),w&&w(e),e.setMap(null)}}),[]),null}));function tW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function nW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tW(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{rectangle:null}),tH(this,"setRectangleCallback",(()=>{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}))}componentDidMount(){var e=new google.maps.Rectangle(ZF(ZF({},this.props.options),{},{map:this.context}));this.registeredEvents=uH({updaterMap:eW,eventMap:JF,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)}componentDidUpdate(e){null!==this.state.rectangle&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:eW,eventMap:JF,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),cH(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return null}},"contextType",iH);var oW={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},rW={center(e,t){e.setCenter(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},radius(e,t){e.setRadius(t)},visible(e,t){e.setVisible(t)}},iW={};v((function(e){var{options:t,center:n,radius:o,draggable:i,editable:a,visible:s,onDblClick:c,onDragEnd:d,onDragStart:p,onMouseDown:f,onMouseMove:h,onMouseOut:g,onMouseOver:m,onMouseUp:v,onRightClick:b,onClick:y,onDrag:x,onCenterChanged:C,onRadiusChanged:w,onLoad:S,onUnmount:k}=e,E=r(iH),[O,$]=u(null),[N,M]=u(null),[I,P]=u(null),[L,j]=u(null),[D,A]=u(null),[T,R]=u(null),[_,z]=u(null),[B,H]=u(null),[F,W]=u(null),[V,K]=u(null),[q,X]=u(null),[U,G]=u(null),[Y,Q]=u(null),[Z,J]=u(null);return l((()=>{null!==O&&O.setMap(E)}),[E]),l((()=>{void 0!==t&&null!==O&&O.setOptions(t)}),[O,t]),l((()=>{void 0!==i&&null!==O&&O.setDraggable(i)}),[O,i]),l((()=>{void 0!==a&&null!==O&&O.setEditable(a)}),[O,a]),l((()=>{void 0!==s&&null!==O&&O.setVisible(s)}),[O,s]),l((()=>{"number"==typeof o&&null!==O&&O.setRadius(o)}),[O,o]),l((()=>{void 0!==n&&null!==O&&O.setCenter(n)}),[O,n]),l((()=>{O&&c&&(null!==N&&google.maps.event.removeListener(N),M(google.maps.event.addListener(O,"dblclick",c)))}),[c]),l((()=>{O&&d&&(null!==I&&google.maps.event.removeListener(I),P(google.maps.event.addListener(O,"dragend",d)))}),[d]),l((()=>{O&&p&&(null!==L&&google.maps.event.removeListener(L),j(google.maps.event.addListener(O,"dragstart",p)))}),[p]),l((()=>{O&&f&&(null!==D&&google.maps.event.removeListener(D),A(google.maps.event.addListener(O,"mousedown",f)))}),[f]),l((()=>{O&&h&&(null!==T&&google.maps.event.removeListener(T),R(google.maps.event.addListener(O,"mousemove",h)))}),[h]),l((()=>{O&&g&&(null!==_&&google.maps.event.removeListener(_),z(google.maps.event.addListener(O,"mouseout",g)))}),[g]),l((()=>{O&&m&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(O,"mouseover",m)))}),[m]),l((()=>{O&&v&&(null!==F&&google.maps.event.removeListener(F),W(google.maps.event.addListener(O,"mouseup",v)))}),[v]),l((()=>{O&&b&&(null!==V&&google.maps.event.removeListener(V),K(google.maps.event.addListener(O,"rightclick",b)))}),[b]),l((()=>{O&&y&&(null!==q&&google.maps.event.removeListener(q),X(google.maps.event.addListener(O,"click",y)))}),[y]),l((()=>{O&&x&&(null!==U&&google.maps.event.removeListener(U),G(google.maps.event.addListener(O,"drag",x)))}),[x]),l((()=>{O&&C&&(null!==Y&&google.maps.event.removeListener(Y),Q(google.maps.event.addListener(O,"center_changed",C)))}),[y]),l((()=>{O&&w&&(null!==Z&&google.maps.event.removeListener(Z),J(google.maps.event.addListener(O,"radius_changed",w)))}),[w]),l((()=>{var e=new google.maps.Circle(nW(nW({},t||iW),{},{map:E}));return"number"==typeof o&&e.setRadius(o),void 0!==n&&e.setCenter(n),"number"==typeof o&&e.setRadius(o),void 0!==s&&e.setVisible(s),void 0!==a&&e.setEditable(a),void 0!==i&&e.setDraggable(i),c&&M(google.maps.event.addListener(e,"dblclick",c)),d&&P(google.maps.event.addListener(e,"dragend",d)),p&&j(google.maps.event.addListener(e,"dragstart",p)),f&&A(google.maps.event.addListener(e,"mousedown",f)),h&&R(google.maps.event.addListener(e,"mousemove",h)),g&&z(google.maps.event.addListener(e,"mouseout",g)),m&&H(google.maps.event.addListener(e,"mouseover",m)),v&&W(google.maps.event.addListener(e,"mouseup",v)),b&&K(google.maps.event.addListener(e,"rightclick",b)),y&&X(google.maps.event.addListener(e,"click",y)),x&&G(google.maps.event.addListener(e,"drag",x)),C&&Q(google.maps.event.addListener(e,"center_changed",C)),w&&J(google.maps.event.addListener(e,"radius_changed",w)),$(e),S&&S(e),()=>{null!==N&&google.maps.event.removeListener(N),null!==I&&google.maps.event.removeListener(I),null!==L&&google.maps.event.removeListener(L),null!==D&&google.maps.event.removeListener(D),null!==T&&google.maps.event.removeListener(T),null!==_&&google.maps.event.removeListener(_),null!==B&&google.maps.event.removeListener(B),null!==F&&google.maps.event.removeListener(F),null!==V&&google.maps.event.removeListener(V),null!==q&&google.maps.event.removeListener(q),null!==Y&&google.maps.event.removeListener(Y),null!==Z&&google.maps.event.removeListener(Z),k&&k(e),e.setMap(null)}}),[]),null}));function aW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aW(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{circle:null}),tH(this,"setCircleCallback",(()=>{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)}))}componentDidMount(){var e=new google.maps.Circle(nW(nW({},this.props.options),{},{map:this.context}));this.registeredEvents=uH({updaterMap:rW,eventMap:oW,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)}componentDidUpdate(e){null!==this.state.circle&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:rW,eventMap:oW,prevProps:e,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){var e;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),cH(this.registeredEvents),null===(e=this.state.circle)||void 0===e||e.setMap(null))}render(){return null}},"contextType",iH);var lW={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},cW={add(e,t){e.add(t)},addgeojson(e,t,n){e.addGeoJson(t,n)},contains(e,t){e.contains(t)},foreach(e,t){e.forEach(t)},loadgeojson(e,t,n,o){e.loadGeoJson(t,n,o)},overridestyle(e,t,n){e.overrideStyle(t,n)},remove(e,t){e.remove(t)},revertstyle(e,t){e.revertStyle(t)},controlposition(e,t){e.setControlPosition(t)},controls(e,t){e.setControls(t)},drawingmode(e,t){e.setDrawingMode(t)},map(e,t){e.setMap(t)},style(e,t){e.setStyle(t)},togeojson(e,t){e.toGeoJson(t)}};v((function(e){var{options:t,onClick:n,onDblClick:o,onMouseDown:i,onMouseMove:a,onMouseOut:s,onMouseOver:c,onMouseUp:d,onRightClick:p,onAddFeature:f,onRemoveFeature:h,onRemoveProperty:g,onSetGeometry:m,onSetProperty:v,onLoad:b,onUnmount:y}=e,x=r(iH),[C,w]=u(null),[S,k]=u(null),[E,O]=u(null),[$,N]=u(null),[M,I]=u(null),[P,L]=u(null),[j,D]=u(null),[A,T]=u(null),[R,_]=u(null),[z,B]=u(null),[H,F]=u(null),[W,V]=u(null),[K,q]=u(null),[X,U]=u(null);return l((()=>{null!==C&&C.setMap(x)}),[x]),l((()=>{C&&o&&(null!==S&&google.maps.event.removeListener(S),k(google.maps.event.addListener(C,"dblclick",o)))}),[o]),l((()=>{C&&i&&(null!==E&&google.maps.event.removeListener(E),O(google.maps.event.addListener(C,"mousedown",i)))}),[i]),l((()=>{C&&a&&(null!==$&&google.maps.event.removeListener($),N(google.maps.event.addListener(C,"mousemove",a)))}),[a]),l((()=>{C&&s&&(null!==M&&google.maps.event.removeListener(M),I(google.maps.event.addListener(C,"mouseout",s)))}),[s]),l((()=>{C&&c&&(null!==P&&google.maps.event.removeListener(P),L(google.maps.event.addListener(C,"mouseover",c)))}),[c]),l((()=>{C&&d&&(null!==j&&google.maps.event.removeListener(j),D(google.maps.event.addListener(C,"mouseup",d)))}),[d]),l((()=>{C&&p&&(null!==A&&google.maps.event.removeListener(A),T(google.maps.event.addListener(C,"rightclick",p)))}),[p]),l((()=>{C&&n&&(null!==R&&google.maps.event.removeListener(R),_(google.maps.event.addListener(C,"click",n)))}),[n]),l((()=>{C&&f&&(null!==z&&google.maps.event.removeListener(z),B(google.maps.event.addListener(C,"addfeature",f)))}),[f]),l((()=>{C&&h&&(null!==H&&google.maps.event.removeListener(H),F(google.maps.event.addListener(C,"removefeature",h)))}),[h]),l((()=>{C&&g&&(null!==W&&google.maps.event.removeListener(W),V(google.maps.event.addListener(C,"removeproperty",g)))}),[g]),l((()=>{C&&m&&(null!==K&&google.maps.event.removeListener(K),q(google.maps.event.addListener(C,"setgeometry",m)))}),[m]),l((()=>{C&&v&&(null!==X&&google.maps.event.removeListener(X),U(google.maps.event.addListener(C,"setproperty",v)))}),[v]),l((()=>{if(null!==x){var e=new google.maps.Data(sW(sW({},t),{},{map:x}));o&&k(google.maps.event.addListener(e,"dblclick",o)),i&&O(google.maps.event.addListener(e,"mousedown",i)),a&&N(google.maps.event.addListener(e,"mousemove",a)),s&&I(google.maps.event.addListener(e,"mouseout",s)),c&&L(google.maps.event.addListener(e,"mouseover",c)),d&&D(google.maps.event.addListener(e,"mouseup",d)),p&&T(google.maps.event.addListener(e,"rightclick",p)),n&&_(google.maps.event.addListener(e,"click",n)),f&&B(google.maps.event.addListener(e,"addfeature",f)),h&&F(google.maps.event.addListener(e,"removefeature",h)),g&&V(google.maps.event.addListener(e,"removeproperty",g)),m&&q(google.maps.event.addListener(e,"setgeometry",m)),v&&U(google.maps.event.addListener(e,"setproperty",v)),w(e),b&&b(e)}return()=>{C&&(null!==S&&google.maps.event.removeListener(S),null!==E&&google.maps.event.removeListener(E),null!==$&&google.maps.event.removeListener($),null!==M&&google.maps.event.removeListener(M),null!==P&&google.maps.event.removeListener(P),null!==j&&google.maps.event.removeListener(j),null!==A&&google.maps.event.removeListener(A),null!==R&&google.maps.event.removeListener(R),null!==z&&google.maps.event.removeListener(z),null!==H&&google.maps.event.removeListener(H),null!==W&&google.maps.event.removeListener(W),null!==K&&google.maps.event.removeListener(K),null!==X&&google.maps.event.removeListener(X),y&&y(C),C.setMap(null))}}),[]),null}));function uW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uW(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{data:null}),tH(this,"setDataCallback",(()=>{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)}))}componentDidMount(){if(null!==this.context){var e=new google.maps.Data(sW(sW({},this.props.options),{},{map:this.context}));this.registeredEvents=uH({updaterMap:cW,eventMap:lW,prevProps:{},nextProps:this.props,instance:e}),this.setState((()=>({data:e})),this.setDataCallback)}}componentDidUpdate(e){null!==this.state.data&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:cW,eventMap:lW,prevProps:e,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),cH(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}},"contextType",iH);var pW={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},fW={options(e,t){e.setOptions(t)},url(e,t){e.setUrl(t)},zIndex(e,t){e.setZIndex(t)}};function hW(e,t){return"function"==typeof t?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function gW(e,t){return new t(e.lat,e.lng)}function mW(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function vW(e,t,n,o){return void 0!==n?function(e,t,n){var o=e&&e.fromLatLngToDivPixel(n.getNorthEast()),r=e&&e.fromLatLngToDivPixel(n.getSouthWest());return o&&r?{left:"".concat(r.x+t.x,"px"),top:"".concat(o.y+t.y,"px"),width:"".concat(o.x-r.x-t.x,"px"),height:"".concat(r.y-o.y-t.y,"px")}:{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(n,google.maps.LatLngBounds,mW)):function(e,t,n){var o=e&&e.fromLatLngToDivPixel(n);if(o){var{x:r,y:i}=o;return{left:"".concat(r+t.x,"px"),top:"".concat(i+t.y,"px")}}return{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(o,google.maps.LatLng,gW))}function bW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function yW(e,t,n,o,r){class i extends google.maps.OverlayView{constructor(e,t,n,o){super(),this.container=e,this.pane=t,this.position=n,this.bounds=o}onAdd(){var e,t=null===(e=this.getPanes())||void 0===e?void 0:e[this.pane];null==t||t.appendChild(this.container)}draw(){var e=this.getProjection(),t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bW(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.container?hW(this.container,r):{x:0,y:0}),n=vW(e,t,this.bounds,this.position);for(var[o,i]of Object.entries(n))this.container.style[o]=i}onRemove(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)}}return new i(e,t,n,o)}function xW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function CW(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function wW(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{kmlLayer:null}),tH(this,"setKmlLayerCallback",(()=>{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}))}componentDidMount(){var e=new google.maps.KmlLayer(dW(dW({},this.props.options),{},{map:this.context}));this.registeredEvents=uH({updaterMap:fW,eventMap:pW,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)}componentDidUpdate(e){null!==this.state.kmlLayer&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:fW,eventMap:pW,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),cH(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}},"contextType",iH),v((function(e){var{position:t,bounds:n,mapPaneName:o,zIndex:i,onLoad:a,onUnmount:s,getPixelPositionOffset:c,children:u}=e,p=r(iH),f=d((()=>{var e=document.createElement("div");return e.style.position="absolute",e}),[]),h=d((()=>yW(f,o,t,n,c)),[f,o,t,n]);return l((()=>(null==a||a(h),null==h||h.setMap(p),()=>{null==s||s(h),null==h||h.setMap(null)})),[p,h]),l((()=>{f.style.zIndex="".concat(i)}),[i,f]),y.createPortal(u,f)}));class SW extends b{constructor(e){super(e),tH(this,"state",{paneEl:null,containerStyle:{position:"absolute"}}),tH(this,"updatePane",(()=>{var e=this.props.mapPaneName,t=this.overlayView.getPanes();rH(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?this.setState({paneEl:t[e]}):this.setState({paneEl:null})})),tH(this,"onAdd",(()=>{var e,t;this.updatePane(),null===(e=(t=this.props).onLoad)||void 0===e||e.call(t,this.overlayView)})),tH(this,"onPositionElement",(()=>{var e,t,n,o,r,i,a=this.overlayView.getProjection(),s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xW(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:0,y:0},this.containerRef.current?hW(this.containerRef.current,this.props.getPixelPositionOffset):{}),l=vW(a,s,this.props.bounds,this.props.position);(r=l,i={left:this.state.containerStyle.left,top:this.state.containerStyle.top,width:this.state.containerStyle.width,height:this.state.containerStyle.height},r.left!==i.left||r.top!==i.top||r.width!==i.height||r.height!==i.height)&&this.setState({containerStyle:{top:null!==(e=l.top)&&void 0!==e?e:0,left:null!==(t=l.left)&&void 0!==t?t:0,width:null!==(n=l.width)&&void 0!==n?n:0,height:null!==(o=l.height)&&void 0!==o?o:0,position:"absolute"}})})),tH(this,"draw",(()=>{this.onPositionElement()})),tH(this,"onRemove",(()=>{var e,t;this.setState((()=>({paneEl:null}))),null===(e=(t=this.props).onUnmount)||void 0===e||e.call(t,this.overlayView)})),this.containerRef=f();var t=new google.maps.OverlayView;t.onAdd=this.onAdd,t.draw=this.draw,t.onRemove=this.onRemove,this.overlayView=t}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(e){var t=CW(e.position),n=CW(this.props.position),o=wW(e.bounds),r=wW(this.props.bounds);t===n&&o===r||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){var e=this.state.paneEl;return e?y.createPortal(L.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:p.only(this.props.children)}),e):null}}function kW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function EW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kW(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(SW,"FLOAT_PANE","floatPane"),tH(SW,"MAP_PANE","mapPane"),tH(SW,"MARKER_LAYER","markerLayer"),tH(SW,"OVERLAY_LAYER","overlayLayer"),tH(SW,"OVERLAY_MOUSE_TARGET","overlayMouseTarget"),tH(SW,"contextType",iH);var OW={onDblClick:"dblclick",onClick:"click"},$W={opacity(e,t){e.setOpacity(t)}};v((function(e){var{url:t,bounds:n,options:o,visible:i}=e,a=r(iH),s=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),c=d((()=>new google.maps.GroundOverlay(t,s,o)),[]);return l((()=>{null!==c&&c.setMap(a)}),[a]),l((()=>{void 0!==t&&null!==c&&(c.set("url",t),c.setMap(a))}),[c,t]),l((()=>{void 0!==i&&null!==c&&c.setOpacity(i?1:0)}),[c,i]),l((()=>{var e=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));void 0!==n&&null!==c&&(c.set("bounds",e),c.setMap(a))}),[c,n]),null}));class NW extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{groundOverlay:null}),tH(this,"setGroundOverlayCallback",(()=>{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}))}componentDidMount(){rH(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,EW(EW({},this.props.options),{},{map:this.context}));this.registeredEvents=uH({updaterMap:$W,eventMap:OW,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)}componentDidUpdate(e){null!==this.state.groundOverlay&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:$W,eventMap:OW,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}function MW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function IW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MW(Object(n),!0).forEach((function(t){tH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tH(NW,"defaultProps",{onLoad:function(){}}),tH(NW,"contextType",iH);var PW={},LW={data(e,t){e.setData(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)}};v((function(e){var{data:t,onLoad:n,onUnmount:o,options:i}=e,a=r(iH),[s,c]=u(null);return l((()=>{google.maps.visualization||rH(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)}),[]),l((()=>{rH(!!t,"data property is required in HeatmapLayer %s",t)}),[t]),l((()=>{null!==s&&s.setMap(a)}),[a]),l((()=>{i&&null!==s&&s.setOptions(i)}),[s,i]),l((()=>{var e=new google.maps.visualization.HeatmapLayer(IW(IW({},i),{},{data:t,map:a}));return c(e),n&&n(e),()=>{null!==s&&(o&&o(s),s.setMap(null))}}),[]),null}));tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{heatmapLayer:null}),tH(this,"setHeatmapLayerCallback",(()=>{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}))}componentDidMount(){rH(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),rH(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(IW(IW({},this.props.options),{},{data:this.props.data,map:this.context}));this.registeredEvents=uH({updaterMap:LW,eventMap:PW,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)}componentDidUpdate(e){cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:LW,eventMap:PW,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),cH(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}},"contextType",iH);var jW={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},DW={register(e,t,n){e.registerPanoProvider(t,n)},links(e,t){e.setLinks(t)},motionTracking(e,t){e.setMotionTracking(t)},options(e,t){e.setOptions(t)},pano(e,t){e.setPano(t)},position(e,t){e.setPosition(t)},pov(e,t){e.setPov(t)},visible(e,t){e.setVisible(t)},zoom(e,t){e.setZoom(t)}};tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{streetViewPanorama:null}),tH(this,"setStreetViewPanoramaCallback",(()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}))}componentDidMount(){var e,t,n=null!==(e=null===(t=this.context)||void 0===t?void 0:t.getStreetView())&&void 0!==e?e:null;this.registeredEvents=uH({updaterMap:DW,eventMap:jW,prevProps:{},nextProps:this.props,instance:n}),this.setState((()=>({streetViewPanorama:n})),this.setStreetViewPanoramaCallback)}componentDidUpdate(e){null!==this.state.streetViewPanorama&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:DW,eventMap:jW,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),cH(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}},"contextType",iH);tH(class extends b{constructor(){super(...arguments),tH(this,"state",{streetViewService:null}),tH(this,"setStreetViewServiceCallback",(()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}))}componentDidMount(){var e=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:e}}),this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}},"contextType",iH);var AW={onDirectionsChanged:"directions_changed"},TW={directions(e,t){e.setDirections(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},panel(e,t){e.setPanel(t)},routeIndex(e,t){e.setRouteIndex(t)}};tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"state",{directionsRenderer:null}),tH(this,"setDirectionsRendererCallback",(()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}))}componentDidMount(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=uH({updaterMap:TW,eventMap:AW,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)}componentDidUpdate(e){null!==this.state.directionsRenderer&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:TW,eventMap:AW,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),cH(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return null}},"contextType",iH);var RW={onPlacesChanged:"places_changed"},_W={bounds(e,t){e.setBounds(t)}};tH(class extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"containerElement",f()),tH(this,"state",{searchBox:null}),tH(this,"setSearchBoxCallback",(()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}))}componentDidMount(){if(rH(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var e=this.containerElement.current.querySelector("input");if(null!==e){var t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=uH({updaterMap:_W,eventMap:RW,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}}componentDidUpdate(e){null!==this.state.searchBox&&(cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:_W,eventMap:RW,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),cH(this.registeredEvents))}render(){return L.jsx("div",{ref:this.containerElement,children:p.only(this.props.children)})}},"contextType",iH);var zW={onPlaceChanged:"place_changed"},BW={bounds(e,t){e.setBounds(t)},restrictions(e,t){e.setComponentRestrictions(t)},fields(e,t){e.setFields(t)},options(e,t){e.setOptions(t)},types(e,t){e.setTypes(t)}};class HW extends b{constructor(){super(...arguments),tH(this,"registeredEvents",[]),tH(this,"containerElement",f()),tH(this,"state",{autocomplete:null}),tH(this,"setAutocompleteCallback",(()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}))}componentDidMount(){var e;rH(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var t=null===(e=this.containerElement.current)||void 0===e?void 0:e.querySelector("input");if(t){var n=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=uH({updaterMap:BW,eventMap:zW,prevProps:{},nextProps:this.props,instance:n}),this.setState((()=>({autocomplete:n})),this.setAutocompleteCallback)}}componentDidUpdate(e){cH(this.registeredEvents),this.registeredEvents=uH({updaterMap:BW,eventMap:zW,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&cH(this.registeredEvents)}render(){return L.jsx("div",{ref:this.containerElement,className:this.props.className,children:p.only(this.props.children)})}}tH(HW,"defaultProps",{className:""}),tH(HW,"contextType",iH);dD(".appLocationMap {\n width: max-content;\n height: max-content;\n}\n");var FW=function(e){var t=e.cityId,n=e.className,o=e.containerStyle,r=e.clickableIcons,i=e.zoom,a=void 0===i?10:i,s=e.mapKey,c=u(null),d=c[0],p=c[1];return l((function(){t?p(t):navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){p({lat:e.coords.latitude,lng:e.coords.longitude})}))}),[t]),L.jsx("div",{className:"appLocationMap ".concat(n),children:L.jsx(EH,{googleMapsApiKey:s,children:L.jsx("div",{style:o,children:d&&L.jsx(fH,{mapContainerStyle:o,center:d,clickableIcons:r,zoom:a})})})})};dD(".header {\n width: 100%;\n}\n\n.title,\n.titleLeft {\n font-size: 1rem;\n font-weight: 500;\n text-align: center;\n flex-grow: 1;\n}\n\n.titleLeft {\n text-align: left;\n}\n\n.descriptionLeft {\n text-align: left;\n}\n\n.closeButton {\n align-self: flex-end;\n}\n\n.body {\n text-align: center;\n}\n\n.footer {\n margin-top: 16px;\n display: flex;\n justify-content: center;\n width: 100%;\n}\n");var WW=function(e){var t=e.visible,n=e.onClose,o=e.title,r=e.description,i=e.children,a=e.footerButtons,s=e.alignTitleLeft,l=void 0!==s&&s,c=e.className,u=e.closeIcon,d=e.width;return L.jsx("div",{children:L.jsxs(lN,{open:t,width:d,onCancel:n,footer:null,closeIcon:u||L.jsx(Is,{}),className:c,children:[L.jsxs("div",{className:"header",children:[o&&L.jsx("div",{className:l?"titleLeft":"title",children:o}),r&&L.jsx("div",{className:l?"descriptionLeft":"description",children:r})]}),L.jsx("div",{className:"body",children:i}),a&&L.jsx("div",{className:"footer",children:a})]})})},VW=function(e){return"object"==typeof e&&null!==e},KW=function(e){var n=e.value,o=void 0===n?"":n,r=e.numInputs,i=void 0===r?4:r,a=e.onChange,s=e.onPaste,l=e.renderInput,c=e.shouldAutoFocus,u=void 0!==c&&c,d=e.inputType,p=void 0===d?"text":d,f=e.renderSeparator,h=e.placeholder,g=e.containerStyle,m=e.inputStyle,v=e.skipDefaultStyles,b=void 0!==v&&v,y=t.useState(0),x=y[0],C=y[1],w=t.useRef([]),S=function(){return o?o.toString().split(""):[]},k="number"===p||"tel"===p;t.useEffect((function(){w.current=w.current.slice(0,i)}),[i]),t.useEffect((function(){var e;u&&(null===(e=w.current[0])||void 0===e||e.focus())}),[u]);var E=function(){if("string"==typeof h){if(h.length===i)return h;h.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}},O=function(e){return(k?!isNaN(Number(e)):"string"==typeof e)&&1===e.trim().length},$=function(e){var t=e.target.value;O(t)&&(L(t),P(x+1))},N=function(e){var t=e.nativeEvent,n=e.target.value;if(!O(n)){if(n.length===i)n.split("").some((function(e){return!O(e)}))||(j(n.split("")),P(i-1));null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),L(""),P(x-1)),e.target.value=""}},M=function(){C(x-1)},I=function(e){var t=S();[e.code,e.key].includes("Backspace")?(e.preventDefault(),L(""),P(x-1)):"Delete"===e.code?(e.preventDefault(),L("")):"ArrowLeft"===e.code?(e.preventDefault(),P(x-1)):"ArrowRight"===e.code||e.key===t[x]?(e.preventDefault(),P(x+1)):"Spacebar"!==e.code&&"Space"!==e.code&&"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()},P=function(e){var t,n,o=Math.max(Math.min(i-1,e),0);w.current[o]&&(null===(t=w.current[o])||void 0===t||t.focus(),null===(n=w.current[o])||void 0===n||n.select(),C(o))},L=function(e){var t=S();t[x]=e[0],j(t)},j=function(e){var t=e.join("");a(t)},D=function(e){var t;e.preventDefault();var n=S(),o=x,r=e.clipboardData.getData("text/plain").slice(0,i-x).split("");if(!k||!r.some((function(e){return isNaN(Number(e))}))){for(var a=0;a<i;++a)a>=x&&r.length>0&&(n[a]=null!==(t=r.shift())&&void 0!==t?t:"",o++);P(o),j(n)}};return t.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},VW(g)&&g),className:"string"==typeof g?g:void 0,onPaste:s},Array.from({length:i},(function(e,t){return t})).map((function(e){var n,o,r;return t.createElement(t.Fragment,{key:e},l({value:null!==(n=S()[e])&&void 0!==n?n:"",placeholder:null!==(r=null===(o=E())||void 0===o?void 0:o[e])&&void 0!==r?r:void 0,ref:function(t){return w.current[e]=t},onChange:$,onFocus:function(t){return function(e){return function(t){C(t),e.target.select()}}(t)(e)},onBlur:M,onKeyDown:I,onPaste:D,autoComplete:"off","aria-label":"Please enter OTP character ".concat(e+1),style:Object.assign(b?{}:{width:"1em",textAlign:"center"},VW(m)?m:{}),className:"string"==typeof m?m:void 0,type:p,inputMode:k?"numeric":"text",onInput:N},e),e<i-1&&("function"==typeof f?f(e):f))})))};dD(".appOtpField {\n .otpInputStyle {\n gap: 0.5rem;\n & input {\n margin: 0 5px;\n font-size: 24px;\n border-radius: 10px;\n border-color: #f6f7f9;\n }\n }\n .resendWrap {\n margin-top: 1rem;\n & .forgotPassword {\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 500;\n line-height: 150%;\n letter-spacing: -0.0175rem;\n cursor: pointer;\n .resendTimer {\n color: rgb(255, 0, 0);\n }\n .resendBtn {\n color: #009046;\n }\n }\n }\n}\n");var qW=function(e){var t=e.otp,n=e.onChange,o=e.numInputs,r=void 0===o?4:o,i=e.otpError,a=e.resendTimeout,s=e.onResendOtp,c=e.setResendTimeout,u=e.className,d=e.resendTxt,p=e.resendTime;return l((function(){if(a&&a>0){var e=setTimeout((function(){c(a-1)}),1e3);return function(){return clearTimeout(e)}}}),[a,c]),L.jsxs("div",{className:"appOtpField ".concat(u),children:[L.jsx(KW,{value:t,onChange:n,numInputs:r,containerStyle:"otpInputStyle",renderSeparator:L.jsx("span",{children:"-"}),renderInput:function(e){return L.jsx("input",k({},e))}}),i&&L.jsx("p",{className:"error",children:i})," ",L.jsx("div",{className:"resendWrap",children:void 0!==a&&L.jsx("span",{className:"forgotPassword",children:a>0?L.jsx("span",{className:"resendTimer",children:p}):s&&L.jsx("span",{className:"resendBtn",onClick:function(){return s()},children:d})})})]})},XW=function(e){var t=e.total,n=e.currentPage,o=e.pageSize,r=void 0===o?10:o,i=e.onPageChange,a=e.showGotoBox,s=void 0!==a&&a,l=e.sizeChanger,c=void 0===l||l,u=e.className,d=E(e,["total","currentPage","pageSize","onPageChange","showGotoBox","sizeChanger","className"]);return L.jsx("div",{className:u,children:L.jsx(D$,k({current:n,pageSize:r,total:t,onChange:i,showSizeChanger:c,showQuickJumper:s},d))})};dD(".appPasswordInput {\n font-size: var(--font-14);\n font-weight: 500;\n border: none;\n position: relative;\n\n .icon {\n position: absolute;\n right: 1rem;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n }\n\n *:focus {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-input-outlined {\n height: 40px;\n &:hover {\n border-color: #bfbebe !important;\n }\n &::placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n \n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var UW=function(e){var t=e.label,n=e.name,o=e.value,r=e.dataTestId,i=e.id,a=e.disabled,s=e.handleChange,l=e.onClick,c=e.defaultValue,d=e.onPressEnter,p=e.className,f=e.errorMessage,h=e.isAutoFocus;e.triggerFocus;var g=e.autoComplete,m=void 0===g?"new-password":g,v=e.icon,b=e.hiddenIcon,y=e.showIcon,x=void 0===y||y,C=u(!1),w=C[0],S=C[1];return L.jsxs("div",{className:"appPasswordInput ".concat(p),children:[L.jsxs("div",{className:"position-relative w-100",children:[L.jsx(xE,{type:w?"text":"password",className:"inputPassword","data-test-id":r,id:i,disabled:a,name:n,value:o,onChange:s,onClick:l,defaultValue:c,onPressEnter:d,placeholder:t,autoFocus:h,autoComplete:m}),x&&L.jsx("span",{className:"icon",onClick:function(){S(!w)},children:w?b||bD.eyePassword:v||bD.iconHiddenIcon})]}),f&&L.jsx("div",{className:"error",children:f})]})};dD(".titleComponent {\n span {\n color: #000;\n text-align: center;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n }\n .subText {\n font-size: 1rem !important;\n }\n}\n");var GW=uD.Title,YW=uD.Text,QW=function(e){var t=e.mainText,n=e.className,o=void 0===n?"":n,r=e.subText,i=e.level,a=void 0===i?1:i;return L.jsxs("div",{className:"titleComponent ".concat(o),children:[L.jsx(GW,{level:a,children:t}),r&&L.jsx(YW,{className:"subText",children:r})]})};dD(".toggleContainer {\n display: flex;\n align-items: center;\n .ant-switch {\n height: 16px;\n position: relative;\n .ant-switch-handle {\n top: 50%;\n bottom: 50%;\n transform: translateY(-50%);\n }\n }\n &:not(.ant-switch.ant-switch-checked .ant-switch-handle) {\n inset-inline-start: 0px;\n }\n & .ant-switch.ant-switch-checked .ant-switch-handle {\n inset-inline-start: calc(100% - 18px);\n }\n}\n\n.switch {\n margin-right: 0.5rem;\n}\n\n.label {\n font-size: 1rem;\n}\n");var ZW=function(e){var t=e.initialChecked,n=void 0!==t&&t,o=e.onChange,r=e.checkedLabel,i=e.uncheckedLabel,a=e.className,s=u(n),l=s[0],c=s[1];return L.jsxs("div",{className:"toggleContainer ".concat(a),children:[L.jsx(_M,{checked:l,onChange:function(e){c(e),o&&o(e)},className:"switch"}),L.jsx("span",{className:"label",children:l?r:i})]})};dD(".profileImageContainer {\n display: flex;\n align-items: center;\n gap: 2rem;\n}\n\n.altTextWrapper {\n font-size: 0.8rem;\n text-align: center;\n img {\n border-radius: 0;\n }\n}\n\n.profileImage {\n width: 100px;\n height: 100px;\n border-radius: 50%;\n object-fit: cover;\n position: relative;\n font-size: 0.8rem;\n}\n\n.fileInput {\n display: none;\n}\n");var JW=function(e){var t=e.className,n=e.uploadIcon,o=e.value,r=void 0===o?"":o,i=e.text,s=void 0===i?"Upload Image":i,l=e.onFileChange,c=e.alertMessages,d=void 0===c?{invalidType:"You can only upload JPG/PNG/SVG file!",sizeExceed:"Image must be smaller than 2MB!"}:c,p=e.acceptedFormats,f=void 0===p?["image/jpeg","image/png","image/svg+xml"]:p,h=e.maxSizeMb,g=void 0===h?2:h,m=e.altText,v=void 0===m?"Profile Image":m,b=u(r),y=b[0],x=b[1],C=a(null);return L.jsxs("div",{className:"profileImageContainer ".concat(t),children:[L.jsx("div",{className:""===y?"altTextWrapper":"",children:L.jsx("img",{className:"profileImage",src:y,alt:v})}),L.jsxs("button",{className:"uploadButton",onClick:function(){var e;null===(e=C.current)||void 0===e||e.click()},children:[L.jsx("span",{children:n||bD.uploadIcon}),s]}),L.jsx("input",{type:"file",accept:f.join(","),className:"fileInput",ref:C,onChange:function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){var o=f.includes(n.type),r=n.size/1024/1024<g;if(!o)return void alert(d.invalidType);if(!r)return void alert(d.sizeExceed);var i=new FileReader;i.onloadend=function(){x(i.result),l&&l(n)},i.readAsDataURL(n)}else l&&l(null)}})]})};dD(".appRadioGroup {\n .radioGroup {\n display: flex;\n align-items: center;\n }\n}\n");var eV=function(e){var t=e.options,n=e.selectedValue,o=e.onChange,r=e.className;return L.jsx("div",{className:"appRadioGroup ".concat(r),children:L.jsx(gC.Group,{className:"radioGroup",onChange:function(e){o(e.target.value)},value:n,children:t.map((function(e){return L.jsx(gC,{value:e.value,children:e.text},e.value)}))})})};dD(".appselect {\n font-weight: 500;\n font-size: var(--font-14);\n position: relative;\n *:focus,\n *:active,\n *:focus-within {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-select {\n width: 100%;\n height: 40px;\n .ant-select-selector {\n .ant-select-selection-placeholder {\n color: #202123 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n }\n }\n &:hover {\n .ant-select-selector {\n border-color: #d9d9d9 !important;\n }\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n\n.placeHolder {\n line-height: normal;\n position: absolute;\n bottom: 50%;\n transform: translateY(50%);\n left: 11px;\n z-index: 1 !important;\n}\n.requiredText {\n opacity: 60%;\n color: #686869 !important;\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n.star {\n color: rgba(255, 40, 25, 1);\n display: inline-block;\n transform: translateX(1.5px);\n}\n");var tV=function(e){var t=e.value,n=e.handleChange,o=e.options,r=e.disabled,i=e.placeholder,s=e.className,c=e.errorMessage,d=e.showSearch,p=e.required,f=E(e,["value","handleChange","options","disabled","placeholder","className","errorMessage","showSearch","required"]),h=a(null),g=u(t||null),m=g[0],v=g[1];l((function(){void 0!==t&&v(t)}),[t]);return L.jsxs("div",{className:"appselect ".concat(s),ref:h,children:[p&&!m&&L.jsxs("div",{className:"placeHolder",onClick:function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.querySelector(".ant-select-selector");t&&(t.click(),setTimeout((function(){t.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0}))}),0))},children:[L.jsx("label",{className:"requiredText",htmlFor:f.id,children:i}),L.jsx("span",{className:"star",children:"*"})]}),L.jsx(Qm,k({className:"select",showSearch:d,disabled:r,value:m||null,placeholder:"".concat(p?"":i),onChange:function(e){v(e?String(e):null),null==n||n(e)},filterOption:function(e,t){return((null==t?void 0:t.label)||"").toString().toLowerCase().includes(e.toLowerCase())},options:null==o?void 0:o.map((function(e){var t=e.value,n=e.label,o=e.flag;return{label:L.jsx(L.Fragment,{children:o?L.jsxs("div",{style:{display:"grid",alignItems:"center",gridTemplateColumns:"0.2fr 1fr",gap:12},children:[L.jsx("img",{src:o,alt:n,style:{width:32,height:20}}),L.jsx("span",{children:n})]}):L.jsx("span",{children:n})}),value:t}}))},f)),c&&L.jsx("div",{className:"error",children:c})]})};dD(".appSelectAdd {\n *:focus,\n *:active,\n *:focus-within {\n outline: 0 !important;\n box-shadow: unset !important;\n }\n .ant-select {\n &:hover {\n .ant-select-selector {\n border-color: #d9d9d9 !important;\n }\n }\n }\n}\n\n.error {\n color: red;\n font-size: 0.875rem;\n margin-top: 0.25rem;\n}\n");var nV=function(e){var t=e.options,n=void 0===t?[]:t,o=e.placeholder,r=void 0===o?"Tags Mode":o,i=e.onChange,a=e.className,s=E(e,["options","placeholder","onChange","className"]);return L.jsx("div",{className:"appSelectAdd ".concat(a),children:L.jsx(Qm,k({mode:"tags",style:{width:"100%"},placeholder:r,onChange:i,options:n},s))})};dD(".appTab {\n width: max-content;\n .ant-tag {\n display: flex;\n align-items: center;\n margin: 0;\n border-radius: 8px;\n padding: 4px 8px;\n line-height: normal;\n }\n}\n");var oV=function(e){var t=e.color,n=e.closable,o=void 0!==n&&n,r=e.onClick,i=e.style,a=e.className,s=e.children,l=e.closeIcon,c=u(!0),d=c[0],p=c[1];return d?L.jsx("div",{className:"appTab ".concat(a),children:L.jsx(kj,{color:t,closable:o,onClose:function(){p(!1)},onClick:r,style:i,closeIcon:l,children:s})}):null},rV=function(e){var t=e.renderItem,n=e.dataSource,o=e.className,r=E(e,["renderItem","dataSource","className"]);return L.jsx("div",{className:o,children:L.jsx(rN,k({dataSource:n,renderItem:function(e,n){return t(e,n)}},r))})};dD(".loader {\n width: 100vw;\n height: 100vh;\n display: grid;\n place-items: center;\n\n position: fixed;\n top: 0;\n left: 0;\n background-color: (0, 0, 0, 0.3);\n backdrop-filter: blur(10px);\n z-index: 99;\n * {\n transform: scale(1.5);\n }\n}\n");var iV=function(e){var t=e.type,n=e.customLoader,o=e.className;switch(n?"custom":t||"spinner"){case"spinner":default:return L.jsx(X$,{className:"loader ".concat(o)});case"skeleton":return L.jsx(Cf,{active:!0,className:"loader ".concat(o)});case"custom":return n||L.jsx(X$,{className:"loader ".concat(o)})}},aV=function(e){var t=e.className,n=E(e,["className"]);return L.jsx("div",{className:t,children:L.jsx(jk,k({},n))})};dD(".label {\n display: inline-block;\n font-weight: 500;\n margin-bottom: 0.5rem;\n}\n");var sV=function(e){var t=e.text,n=e.htmlFor,o=e.color,r=void 0===o?"inherit":o,i=e.fontSize,a=void 0===i?"inherit":i,s=e.className,l={color:r,fontSize:a};return L.jsx("label",{htmlFor:n,className:"label ".concat(s),style:l,children:t})},lV=function(e){var t=e.className,n=E(e,["className"]);return L.jsx("div",{className:t,children:L.jsx(Yx,k({},n))})};dD(".borderless {\n border: none !important;\n box-shadow: none !important;\n & * {\n border: none !important;\n box-shadow: none !important;\n }\n}\n");var cV=function(e){var t=e.title,n=e.extra,o=e.cover,r=e.hoverable,i=void 0!==r&&r,a=e.actions,s=e.className,l=e.borderless,c=E(e,["title","extra","cover","hoverable","actions","className","borderless"]);return L.jsx("div",{className:"appCard ".concat(s),children:L.jsx(Xw,k({title:t,extra:n,cover:o,hoverable:i,className:"".concat(l?"borderless":""),actions:a},c,{children:c.children}))})};dD(".appCarousel {\n position: relative;\n width: 100%;\n\n .ant-carousel .slick-slide {\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n\n .slick-dots {\n gap: 0.5rem;\n align-items: center;\n li {\n width: 6px !important;\n border-radius: 50%;\n margin: 0;\n button {\n height: 6px;\n }\n }\n }\n}\n\n.carouselItem {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n img {\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n }\n}\n\n.prevArrow,\n.nextArrow {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n border: none;\n color: rgb(0, 0, 0);\n font-size: 1.5rem;\n cursor: pointer;\n z-index: 1;\n display: flex;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\n.prevArrow {\n left: 10px;\n}\n\n.nextArrow {\n right: 10px;\n}\n\n.carouselLines {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 10px;\n}\n");var uV=function(e){var t=e.items,n=e.className,o=e.nxtIcon,r=e.prevIcon,i=e.showIcon,s=e.showDots,l=void 0===s||s,c=e.autoplay,u=E(e,["items","className","nxtIcon","prevIcon","showIcon","showDots","autoplay"]),d=a(null);return L.jsxs("div",{className:"appCarousel ".concat(n),children:[i&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"prevArrow",onClick:function(){var e;null===(e=d.current)||void 0===e||e.prev()},children:r||L.jsx(Uy,{})}),L.jsx("span",{className:"nextArrow",onClick:function(){var e;null===(e=d.current)||void 0===e||e.next()},children:o||L.jsx(Oc,{})})]}),L.jsx(US,k({autoplay:c,ref:d,dots:l},u,{children:t.map((function(e,t){return L.jsx("div",{className:"carouselItem",children:e},t)}))}))]})},dV=function(e){var t=e.columns,n=e.dataSource,o=e.rowKey,r=e.bordered,i=void 0!==r&&r,a=e.pagination,s=void 0===a?{pageSize:10}:a,l=e.size,c=void 0===l?"middle":l,u=e.scroll,d=e.className,p=E(e,["columns","dataSource","rowKey","bordered","pagination","size","scroll","className"]);return L.jsx("div",{className:d,children:L.jsx(fj,k({columns:t,dataSource:n,rowKey:o,bordered:i,pagination:s,size:c,scroll:u},p))})},pV=function(e){var t=e.percent,n=e.type,o=void 0===n?"line":n,r=e.strokeColor,i=e.trailColor,a=e.size,s=void 0===a?"default":a,l=e.status,c=e.showInfo,u=void 0===c||c,d=e.className;return L.jsx("div",{className:d,children:L.jsx(zN,{percent:t,type:o,strokeColor:r,trailColor:i,size:s,status:l,showInfo:u})})};dD(".appPopover {\n .popoverComponent {\n width: max-content;\n }\n}\n");var fV=function(e){var t=e.content,n=e.title,o=e.children,r=e.bgColor,i=e.color,a=e.triggerType,s=void 0===a?"hover":a,l=e.className,c=E(e,["content","title","children","bgColor","color","triggerType","className"]),u={color:null!=i?i:"inherit"};return L.jsx("div",{className:"appPopover ".concat(l),children:L.jsx(Kv,k({color:r,content:L.jsx("div",{style:u,children:t}),title:n?L.jsx("div",{style:u,children:n}):null,trigger:s,overlayClassName:l},c,{children:L.jsx("div",{className:"popoverComponent",children:o})}))})},hV=function(e){var t=e.className,n=e.onClick,o=e.onMouseEnter,r=E(e,["className","onClick","onMouseEnter"]);return L.jsx("div",{className:t,children:L.jsx(qE,k({},r,{onClick:n,onMouseEnter:o}))})};dD(".react-tel-input{font-family:'Roboto',sans-serif;font-size:15px;position:relative;width:100%}.react-tel-input :disabled{cursor:not-allowed}.react-tel-input .flag{width:16px;height:11px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAACmCAMAAAACnqETAAADAFBMVEUAAAD30gQCKn0GJJ4MP4kMlD43WGf9/f329vcBAQHhAADx8vHvAwL8AQL7UlL4RUUzqDP2MjLp6un2Jyj0Ghn2PTr9fHvi5OJYuln7Xl75+UPpNzXUAQH29jH6cXC+AAIAJwBNtE/23Ff5aGdDr0TJAQHsZV3qR0IAOQB3x3fdRD/Z2NvuWFLkcG7fVlH4kI4AAlXO0M8BATsdS6MCagIBfQEASgPoKSc4VKL442q4xeQAigD46eetAABYd9jvf3nZMiwAAoD30zz55X5ng9tPbKZnwGXz8x77+lY7OTjzzikABGsenh72pKNPldEAWgHgGBgAACH88/Gqt95JR0OWAwP3uLd/qdr53kMBBJJ3d3XMPTpWer8NnAwABKPH1O1VVFIuLSz13NtZnlf2kEh9keLn7vfZ4vNkZGHzvwJIXZRfZLuDwfv4y8tvk79LlUblzsxorGcCBusFKuYCCcdmfq5jqvlxt/tzktEABLb8/HL2tlTAw8SLlMFpj/ZlpNhBZ81BYbQcGxuToN9SYdjXY2Lz7lD0dCQ6S9Dm0EUCYPdDlvWWvd2AnviXqc11eMZTqPc3cPMCRev16ZrRUE0Hf/tNT7HIJyTptDVTffSsTkvhtgQ0T4jigoFUx/g+hsX9/QUHzQY1dbJ7sHV02Pduvd0leiK1XmaTrfpCQPgELrrdsrY1NamgyPrh03iPxosvX92ysbCgoZzk5kP1YD7t6AILnu+45LykNS40qvXDdHnR6tBennz6u3TSxU1Or9Swz6wqzCsPZKzglJbIqEY8hDhyAgFzbJxuOC+Li4d9sJLFsnhwbvH2d1A3kzAqPZQITsN76nq2dzaZdKJf4F6RJkb078YFiM+tnWZGh2F+dDibykYoMcsnekdI1UhCAwWb25qVkEq43km9yBrclQMGwfyZ3/zZ2QK9gJxsJWCBUk32QwqOSYKRxh6Xdm3B4oMW22EPZzawnR72kgZltCqPxrdH1dkBkqDdWwwMwMO9O2sqKXHvipPGJkzlRVLhJjVIs9KrAAAAB3RSTlMA/v3+/Pn9Fk05qAAAUU9JREFUeNp0nAlYVNcVxzHazoroGBkXhAgCCjMsroDoKIgKdFABBwQUnSAoCqLRFBfcCBIM4kbqShO1hlSrCJqQQmNssVFqjBarsdjFJWlMTOLXJDZt8/X7+j/n3pk3vNq/bb8+3nbP79137/+dd954qTVt8uTJL73OMhqNer03ady4cWOhWbNmjV+0FfKGjMb36Y9/1fXUst9cb2y8/lpb797z5k2dOjXVD9Ljn59fcHBwQEDAgGch3l9on6feeeedn0r9kvT222+/sErRgvcDArwV8f5tN/rcvPnMZ22pqVFRSVGjR38k9Rsp9fLql/MXLj20VGjt2rVeak2Og/auI/kHBQ3We/tCo0ZNhwYNGj58/NaWlpbOyMhIX1//2/jTrICvckhXruQsWbJw4cL3tzhPORynSk5lZWVtglL9IkmdDQ05NqvVGhLwbKSUL+Tvb9yH/2sj+eN0IZZ3fvq3Hnp71ZtCOyofdnTYSzq9xX7UtsF9+/Y1FpeZT54sc2aUlq6Jy89YM/qj2oZaoeOkMR8dV/Tee++NWb04rrA5MRYKDAyc/NKCpwDIyKhE9LEzZ/r4DLQAAE6EyEeM6AcNH7m1pTMnB+fHX7tG9Bs0Xt+GwM/frqm5tz950aKDk6rsiA0xbUrbRAii/BDeV9bGhQsPRlyOCAuZ9GykZwT++n2RHPnVYQU+oaFDPQD8jEQAPiDdaLPaHGVXbn/O7YHQuIH9B/gYgzts1iqrtSopKWlNRkzS6I8arFaOFvTfew8AfiYil/rN6sWTKwtbArOzExISUl7+vwCuQNt8Bg71AQCcTwNpWeFbW3IIQEmJr08XgIzX2xDcvZrs7Jru5EWXwwKSwh2RkQ77w7Q0bXp6YRoDaKO+kZl8MCwsYpJ3pEf8liAAoPhDhqUMQ/wAkF+oqKiosJYA7HxotdnTtVe6Pr/S0h+AI90QffU3T9obGuwdD5PqkmJiMtbM+ajWI/60TX0COhoarAAE1dfXV80FgMmLi1oSKP7/B6ASAGyBV4YM7D/Bx8/bF7g5fgmgEwCCSiJtJQRgxEi9zZqVdYUu9pW0tLCIgOvxdR0dpxx5aWl7EzV7CYDV+tXnCzMzkzMvE4AFlTuhZaSf/OQny1L32RC+JcHikzJ06NAJoe+YNKRbsbG3xPlWZTxssNmdOP/J27ffudLJ60V7DAaT1lxRVvfwYe3Jlrq4uJiKjAwAcIWP+BkAhV/i7HA0uAG8BAIUf8qfzvwvgJcQf+XMK4GWi8OGTpgQ6uftzwC0LIM2WgcASwaXOBwlA7v6/YgAhFRt2pRGeu0/UyImbal77eHDo2kVAJAeKwE0fl6P63/5nSlTAKBCiR8AovbZEL9lf8I5AMD5booAE7OzY8X5fhGJi0/nTzTcMh+80iIBaF0APqvIu3EjqfRGcV3S4aSKYk8AaW4ADU4gOFlfn8sAXnoJBDpTCMDL87zU2kwATl+x1Nw+P2HChKHBBMDHFT8DwGjX11FSYu/f/aMf9XtOjwAacf2hmxRg7ywXDrr30kb7NVhDquo/z0y+nJs7ZUoYA5DxM4BFmcnJyV93PzjbvQhK3urqAYF7xflWVT5ssDaU4Ox7T9+6Ei4BaN0AUkvXJEExMTGHD9cdFgA2yfgZQAP1f0dJw0lrfS4BmIb4z5yZBgL/H8DibbehGROenQ0AQRhvZPwQAGDQ8wlqsFkmdP9ofr/n/OgK2ml1xxQECAAy/tdee++91wCA1mfWJy/KXUTr536T+O67764X2r9//T+3JkPdDx50f7qItDXfff+zeAxY1lYV0VCmPV1Ts5fGAGUYDbHpo0qT6vKTignAtWvXiuf0StwGZZPQybMPAYC8/xF/bj0AUPwvvzytKCdl6dMAvJxRuXjxkCHnL86YMXs2A8B4m4yWQTrdIp0uByMajcATJrwzXwCIiIjAFSrbJwGI+FlH00YH8/rQy5enQPsYgBK/BLCI1c0Afonhn/XjH8MNLP9o1Y4Pfg795N9hYQ23bt1q4fb07z+A/ITR2J8AFJnqOP7iuj7Fc35TK+9/bkPaM+NGiSnsB6wRIwGA4n/5T5Pzc5aeeAqAP1VCM4niWRqVgr1p1sEYlskNJQC4BQZbLJi0MAgCgBUKqYo3VEVEhIWFTZqXtYmVxiIAtB4QeDUAvMuSFBgAJCkwAKHlLAKw4wMIFG5URVgdLdwedEq6BuCgj1qzpi4uiVScYa6I0fWKJQVC2aRDY0eNWrlyECwMMIDDc2vZ6UF0F7z8tB5w4kTvtZ+ygklGkk4lvZ6sne45SDg8aJIQ2z+4Mmg0qcfauXPnfvPNN9XV/1S0VSWyf1Ls4FZ5aIHu/blGKb2UOM0ckq4PmsZ2b8yYMb2l4FbhX8ePHwmhuSPXkhaQ5q0tXzBvntdUUq9eSyFu9njXxpA74Leg198yktRWVI4OkAkymw2Q3WO90+nnN3u2H0QkHI6JpHHj2GvTYdsupd68GfVZ4yTJqJeUaNKhQ+rzCUvOMXEr//4vD3333XdLe+rRJx4iqumDnT2O5zW1HII1hPLy8pJGjz9GWgk9D61Al4fWkWay9VRbUa1GEVCYDRoonu0dr++n0ZQ0dMCNdDRYHVrtuImjWHQ80lvfl4WfhJetw1CFm6h+rkazd28iJHvyIe/IHt7ZOBY7o4GPH4smPqf7nRwz/sH6bmmi2HtvYiBUYPxEcZakt701PdsPAIhb3DBbYmIIAOK+F9HXJ6z7t799AwDI48+cOQRi66m2ogoAYVwIQEkQb8DrJza1azRWq9NpjUjXtg+aNXHU9EEQHW/YsGFD3toHMFZbgzUsDNPkPgAgpScG1vA4TgB8PZATAAoc6IasWPHhhwCQkyNCdwMIJCVqDabA8+cAAJFLYVD92dvpjvQe7ZcA7p0/350dEzNmy+iRAHBPrO9+AwB41Of4h2HoFdZYhsfL7ej7QmbSBdED/GkDXv+ju9Pv4i9mM+g09Rs1duKoQSQR/4whb7msbFhufHy8M2xup6AZ3sHzWOChaveIWQCtn00A7s/84MDuD4bd+fBDcYEukrVna5fwMQPAsqnQZOqqLtBzezysvHd6z/YLANndUELMGAmgXqzPfeON3+IE8PHbuL2YegYCAO+/fz/io2VMM+5HpR/BGXIPGCzix3oAaBo13aApK9Mahg8fNAo9ANsPGi7iB4BLZRUPH9advJGb6zx+3Jk7FwFtCNekNzQUabW3cAv0Ek9uUA0U+PGsY4NmzrxQVBS3e82wGQDA7bvI8SsAsgNP7y26HV4GALyeJzGaY5J18fZ4GT+3DwBK8/K2ZF/s7v46ZYwEsMJHrJ/gApBJ8QPAs9gh2BYBnT077OwUnvcBwB0/nCEAQPFBdADefv5dPEu3p2u18e39Bg2aPou2h9wNmP3wi7bGL9qsuVOcizoBgM/X0BBtamggK2wGABn+WSLw8awm9P4Du3ecys+aMWPGt6J9medF/EsBIBbxJxSFm4vM5moJAOGL+AHAO90jfglgy5bshO7uFAIQM2fkyhUr6sX6fW+MJQDYX1wvWI/+uOIc79mziJec4ESxDPGy6AF9RfzYHgBw02s7yswNhf1GDJ8+lvcfPgKrxfoAa0S9uP9HTV95LHdur8TzuF7W5OSqDdEGAFiaiIjk9U8hAMdw+1Ts3r37VPOMGR/K9l3k+CUA9P9b4c6y8LKC6upqAiDj3wpxD1Dix/m9Uku3KAD6xMx5DgC6xfrLYwnAEuw/jOJnAMHjpnvECwA8aK5YseK3EA2aogf0pQNIAIOaXI8S0/sBAPaHaLUEIOJHPmjUsWACACN7/qLVmoz2Zjabv3x8X+oBdP/DWeih94d9sHv3BzO+fOOND6l9C93xL00BgOy97dHo/ZHm6EcAwM8OHlZ+YLpFtF9eQAGA9+81pg8DQCzdU3D9Ef/YN3AC8OP4Z5D1DBg7XYmfAKitqYl7AA8AvDxxVLtGW1VVVhYRZjC0jhg/Tuzv3j6gCuEjfghGYd/cXrFk5BNqai4K633k938h/Zp15C8Tx68E7X7Dtm2b8QZEAH743j8gYQQwC8TGlp08Z7ZWC+k/4eFf6pc//Sje3+TZ/pFeqXkQ7hoIhhoAnve8ogRgCQZBMQsgTgBgXykpAoDKmpoIuJP/wMvzwaOKHkisVfUnDYZZ2J/k3n4ST/94UiHt2/d+Lx7yttFAXnP+60W6+X9ggQFzGDdeOJT791fQNAgAv/qHFFMAAJou7AWQBCAkKXzknW71bD96APnWQ4c+hthRsv1Ty2WNA4InwYYpzhJSW1MT+lmkxx9awyfNhQVmvf9+c9M4kVt1by8tsmuLub3I/in6er7URGkh1SZ1znfk/xR9o2oP7F8Pax1vbO8RgJcwhYp8BvpMcD1t+0GffPJ7xUo+CA54Yc+DPXv2vGA0vkBavfqIW+xeH3kr8iJ9QxJegQNpu/TMzZupnzXOkQ7+OkumeCCOU+Si2Sr7kR6RkQZ/iA0y62PWVKlUiLy8fsz1MSd6s+YhLz1vu0t7ILS4T1Rqn2cU9fF6YQdpMZIAG6dNmzZ5bX+7PZKGsXi0CM9xwZ+0DmuVnejxsHMDJu3Zu24vkrT+QTtYq4/8nvWHPzyeCa2HUySRbzMKAO9CGhZ15Pku67uGlaS7frzoeFat26uY2CpzijiIrbKfLdH2buy7eKLkR8oAaXWhQNLH8+qEKirKy0tLS6O8bXVZQpvg8dPmbV/O+jH0IvRClLY06hkPAcBGqLa19ckBzC0HVg+0R9rQFpqFtWER1oBPhr3+eutPocevPzIaBwTseTORAu/rQ7sd2AgA4g69T1PlfmGVsX9fn8ESALk4ER5Gsb/Mny2tbzGkPQwASH1s2iTDBwC2yhYeVdgq+yXODAwpCCzAozT7Dml12fqR8VGcOMtk9A0pkUvsI7YvR+DQrl2vQLtWpdbFPAVAq8lgMrcygKEEoKQsJKTMYQgLDQn4ZN3r60T43ngSrH5g1rBcWaINAoCMX1plXq8GoBUAXNYX4RcfPqzVXa8tqk3bpATAVtnCVpytsp8tsCBifcJVil8BoFhfu7OE5RCyGn0HWxweQLYvf/HF2tp1T568IgD0Gf2MJilKBSCrPf5Cc3h76e4zuwmAv8ZqQ5cLMwwNA4DWn+IfwoeqX3/8kQvAQC2rGQCU+NkqywuiAqAVACa6rO/hYsR/uBi3wKZd7wGA1gPAcEvfhAQAmEEA4DwLEgo4/tmzwyYdYqurWF+9zWKxhCKlTjnV2WEBxkhHX5/G8jSZEZoKALWJWbuyYgWBVRgA6vqk9hgDNh54YtI2t2jbn5wBgAl2m1XTYAmxhFoNU5DG/uRnHuG/d/yjEa0X7kID+99tgu6OxTytxK8A0KoAaCGexz+rWHPpUtKaG4e1hwnAhhNZlLtMhwyG+HhDGVvl0PXZ2fv7w3oMe8vPijuf4of2AQCyutDmzWdI1zcv0Psr8SOFF2As0Th8Qr84CiEzcjSKni09b4l5C+al4r9uAcCBA1nthuYKc3spA4i0hWgNdFazgbK8n3iEjzct380S1rd/f+mkAECJH87O21/2v76eALQM4MiRX0+MKqXsFXSYAei8/d3WXLHaoQNTUga4AYSGiesPTSEASvwEwCrin4D4GYAv4m9MS5M5yalGX1uixccntCDwKqf5n5FSboGNBw4caG03m1tbz5zZs3v1bAAAKvtJDAuzAeD1c0r4DEBY4f4DKH4C8AclfgYQxFl0etRWAAj+RwjA6DUyfuoC3xt02F6JnwDQ8UNpeQAB+DTY6op/HxJLU+au3jj5JYRPwvR5ZoFN3v12oVxjkE+oXbG+4o71WH5dJa9VALD7wBPMArvP7AEAfaTVgm3NZkzcszHoBCvhM4BvhTcfMOCB8OZH/sDxp0hrCwA8PvKjNqkaAPaL80sAyvU3fF+sU1tptspDaRkA3gKAEIoforwaAPhZ3f2de4RWeUvAARqDKH65ZDKE7/nxriexm17ZtO0JxvhXX1n1Q5UAYCMQTCsvn7ybEuYL9JE2q9jfZJoSBgADEP5xt757MJM0xMcHUUOfzr9Pywlua+vtThhJAOvdPYDc/LjRayC+CxiDTm2l2SpbeJmPHywzyhLDXH1ICI96wEAcAlIr4ABKSThuXt4c75ByyJ2Zj9qDWbD2SSJmAdaqBSp5CdPoB5frx9LDdEVDG6C5cKnB/xz1kdB3rAcP2Bb7+X0q9GtOXirWU7HGEgBSwI/CoehosrIT2f7pFKmtNFvlYF4W/jvAI6kMoX2y1kBIZKBHu1PDwfNI7A1ZbP+UIgPMAn08hFnAIOROal3P6pnlzSQlK8pHf4F2s+AwjSRNvDsCadl76bQif9tbqDBdNvzPfxcy8+nCw1OULDDrOukEi7PXnngo+IDLY8UZZMmGOmsMn09yPTI8VwjhWEUkXIY4mYVu2/7qq9tJXuqsLoxJj+XMZqEWUmdnskabf8olWOI9Rl9Ik07vqeh1id/EpqZRUGKOhksqxveuZGm0Idx3g//+BPrd734n793wXnuFEoUOXc+ClJcrC4wiI8rv0On4GNUbbh8TBRtwDOPVWerxv2P9SuiPukKcBwd0xRPusuLSH+/xUmd1r9dm5XsuZzZ35kBLxCt+ANBoihA5CY6YAODEmnS8KRpIr7cBgJp2uyDkahcmi+EAUE7SpvPQFRrw9yfcvk5nPHUyApDokQWPBQCOXN7DafPo+ABH1RN8fL0t6OrVq1X3eC7C8dVZ6vHu2P/4xz//WQDAQ44rnmhXFlrYYxeAW+mJ6bcSEyUAEFCyqJdPfkX6HLp8+fJXBEBTyAR2uAD0tWjSfbh9BGAUxX/1zi8HVXcpAHZq03m9BNBptXY4ET8DUOKXANJk/AxAFETYbO/ayJ3aACAwcH3gep/Qru4PUZ8w/nW8X9gWOMSdZR7bRG81jkOU1XjeDUArFOey4i++WFW1vr4NAMTLaFjLvekuAJvylYKIXIcvFcQItzLB9o5G44CzylcA+Pe1+GjS+fojwGDO4hbcOfuXX35bnZ0deIgB7Nyp1QqrygB+1Wb9lbOBAUQTAOV1XuwhdRZXI7Q3UVplfSKS45aEc0MH9p/yTveKkQCw7WrIXneWmYDMrD3++Mnx47x8Iqt8GiTs4+bJ8y6V3Xj4sOLkjV27qjA9AYCBvGJsQkLgXraKBAAEOsCdZPfLdbjjRwQAUOJvxy7t/BK+NKuPhqVYTX6PEHJ101+qq8MWLcrUqdf/ne5Pa+OvMLPRPB3dBw+ychaDSkers7gaFiAliv31sSHr14euv0o8n322XoeAHXhwOyuydsMYwJDax0+ePD5OywCA8NM4fAIwdWfdtIqKvKyMXbuKDPWFRS8wAG3r3lvtF0RBAveANuqv7K2Dc+3K9Z/g7gGtlKRja9sjPjSQF6/eqc7+9ttztKz3Z6uarl22BcqL+jvdo1URvyqzGbSUpOTX6XlkW0mvpaqzuBLA6dOxOD4DKMA7koRzaMyUf3+xczUCvlVgic+m+CWAIUNqjz95vEkBwJdfAniVhj6+/xuRjGyTAO42XRjVxJMfACjxE4CuveRlC2SO7d13NJD59yJFSQD0QRj+tPHu7flhpqv6y+pv/9lF7wn0QexZ4g1bBIBZBCAnIsJaEm+QAJT4f/Naqrmndd2wCFMPhuHTp3OWQDk6vS1hfcL+6v6I/iU8vgPAkAs1+5vPIn62zt6+56AsdNChjx49OqcvwsEQPx2OjwcAIv5d+YW5hfkSgNZ814wNGADHP0HEo58Q8PXe2Fjx/JkCxd7T8uXn+CUA3P4AILcPFu8NuqrDziF+lND4hfCjigAQsywKozQN0Esc8eJ89LTHLk8+7ZmV+LnBnJX2KNAA8KvVQ//9xWTYkDNnJq9VW2m5XF8vl2lSx/X3AMDhU35kee7yXS94mfh8St78RNZDOetAEwBAmaRjoS6t4a7M0TKFcWxNtfE+cvvgsWKCjs3U8jwFAGxd0w150DIAkHO0QSjaSPM3Pa6BI+RnVtojAPAErBRo6AeHtN1YDP8uRra1aiutXgYALTZ1H287pn+SxAAA0pFB0aQT7wuzKbOQwV93kfC/Qt13j/TI0k5kg2Yqox1YY0VBwlKdWXgx6VvLzKlRrPEjRU53Q7QQdpenE/bW7G7JBpZOpUmfLVi9arXQWkhtpdXLZP8WzFsQFx3Hh2vm/CjrBZaX9UbvmzenotZWWmpZ3AOJUgvCtkq/2u2Vy0lmbiOfZhxLqSWuyC/FpS5qbCyiW/6LUm/om2rv6mrvR9VGyCRkNErs6uOprS2bcpaZ91Bbd0CTmsTiPd/i8gtuzxGVPpoIebTY61qJ+aT9pJOytEnQ6NfiSBlxcbWsMTRG7LBtdFvJ8nxI9FAyKEhgkJRa4jqHpigjQxMZqamry/fV1Hk3eWRx198zmjTpmEZovSbe7tRGq4+ntraGnlY9nJfT47Wu5YAGVIKSZIEF7y8KOrg9R5C++r2iI6/W9myvF2p3/YNwyqQYcl/Fc14TkcNAk+r60AkPhBzg0wkA4GNi2fyDCMAg5VURKkfz4uwOzWJN0GBNuR0Qrnk3jTrrqlh68O1wvDlyNCBp6R+k0Tqq7ACgOp7K2koA6b7xSgFGeuTgvkElWBYAEDgidxVY8P5c0DGMrbLTgx908tVTPdo73uumw+4baW94WByTlp+fFuMCkJGhBqD1ACCeFP2pTg/WVzkgTpiXUV6GtCCeD4Li82N29vYGoDs1/Lrvy379ngcADaWtg0JwMAe8ufp46gIM+brdYnEKL4/lSF5fItqjFE6ms6/g/UVBB18Qb1xgeno4x7qqf/XUKdr81i2ZIfJaU1LR0YEsbUxMWmnFUQEgP5/sYFxceXlWn1XIGR6w0JzDWosGZ2SIBgeFwJvDeBBvtxWVz5Ior2Xle486i4KIO1fP3aEXkiv0QQ47pa9CQoTTnP304227d08ejwMsszRaylwAZIGDvwCw/RQ8ObRRaBUXcIiCDpwPAN6NvQoN5vgHngOA5XT7NDVJa+31WUXSjRsxa27EXEuLawGAo3HU/+OysnBjlpdmPeNnExkYV16+HO3NEKMQJjgrGizjl1a0MTLI4xL2vek9KrBg+IiuhBRUFhMAfrojiae74Kcf715m8j0+ngDgj/vBR9QOAyArUmj2njc5cJmkOLCKa5u5PTO4YMM7cR0REPELAMtxxA0bpDX3SsXYFwNdu5bWmZN0bc7RjNraOMSPHpBRCgCrKWcYKq//njNrp4kGmyCQCQlGg5X40WDZA3z6u3vAnUEjRtw5d+5LAJi/Qm9xcOstFht9JxHp9/TjDeteKJyd7AFhuVPKhFX39vcXXd4hssjbuQO4IGxkAD6iPZy1Rg9Yj/g5/IGPAGD58kJ42Q0bwnE8AUDG39mZl5eToyMAiL62Fok2AkD34O7QM26jlIcG14oui6sYEjymrpxeyuUJlaZuqViWnz5Y0x8AQpt7J6V6Hxs+4k4N2chD386f/6EeRseB9lso89oBY6I+3lhVAQYDSHfud5qEkUEWGftj574ii2xWUqJyPTqfKOjg/WlQ5P7v4wJwSguhoJEV7hW1huOHKO1xDQD45aJWWyoAUAPOhBEAgwtAbZ2YhC2haDA/bbkfNvKmxmRobJF5mgEDNL/Q2EPKU72nD7rPPhq5rwf9CIDdageAUK2hod4GAKrj/U8BRiQ/ju8/R/7UJ4Ssbl9HutbpL63uUws2RH/k5bKe1vrKq8td1nsflDsXAES5OXQY9da639SS6uQswAC0ByyTlR6QAQkbEgIBQNbicggY8qCpdRpb3M6dNAguS4rTWC4ZjwVCXIABCitgdZ2RGNBDMAs4bSUAoDre/xRgsCFYvx5hkbkVVjfIv6/L6j61YIMLOs7ysuvttdSRV+vcnqEecycAiFpbFtUbiEpbzpiy6NKsDlhL/pS1ZQuq6TZwkjCYJOtuSVNJpZ8nIQeaf/NmPlKyz9R+b4T++cj46JF+9iM9JK2un5+0uurjkX2T5Qsso5Df/7O6smCj5/a93oI+5eUjKu0JVpLMJK/r18PDZRaWq4i3k0ykcHbLKmcqaoVlCvcQtGjEjyZ6emF1Fre3CpDa6vKZhbHn8wdLueytnqU8n7CTFSllugeMik0WaJd6CrUZDTfmwep/cY3S5M/hmqjP73V9Mj0uKjnA7ZQtFebiRWiVt8x/yrHW6GE1SYf8Hraa2psUa2m0QWRlQ0QWd8FiUrkrL5XK+ytm13iiUog3mzZtQbANsrpL7CfpySCz+G8BXEChYRVAxj1vSsmCDVUBxTfFTq3zpDO+Li5/Q9OFlrg6tdX2MovZCn6MtXM7PS8LAPQ+HQA48IcPeardqFesJtf6HvL2bby97tat9unCCQIAz/ORkWKeBwB3PgafKWxOFVYXCYvjwuqe4NAlnpcIgIhcFkQAAAfOfwwNIwAALR4IkKEpMJp6ZrWj1QUUgx2Yde32G/hIB+VVx6LUVlsCcF2Dyt4MQBzvFQgAKP62pvA2CUBaTZmF/RjLEV+dn7nuVvuo4fQRFQBYoHRH31DKAgdX5EMSb0ZGXIy0uiU+JcLqEoBprvgZgBK/BKDEHxYBAIMEAG16NQDoJYAdO7QCQAKnL043N5+mbpB4qNEZ77CXlFRk5FMJfFOd/OyOxJ/deZ1A99+8Weue5gjALphFLL+yezcB2AhZmy5Y2Wnh9feSCGE1ET8DAM2D3WeHDKFuMGi80R/hl+CjqvgSBsBlc5V0vMpCqigRF4viN7AVXV252B3+S8jaKtdTZoH5q7IIaUUjJnEBhYHWxysA3ty4482Nb2r5+KyMuvw64fQqnBknT2aU7aQe0PX8MqoXaKUsaCvivWvQmiQA7qHQ5t7bkSt5RctWYzcD2MEAwsNDJICvFi7sewf6knRnIltPn8vdxGNYvGkcAPj42OPt9hJfTqpyAws1GRnaImRBXQAQf4mBG7i2snwnaxlp51R1FjnEYRfqgBo69nHO0YD1ngAKNxbiP7S9BFAXV1EhnN7D8KLw5riiirq4lXUHK47VIf6mC63tTU3trU3T78IJilJSpQcAwK5XeLlQAXCg6oMbVYife8DCep8RSqkpACD+e0hL70UPGD5S70/pLXQ6pyhY4BzfYi20uNDgBoD4Bxi4gQyQZnVZPK3OMquXOecIdgQA0vMGuPwbD+yg9RIA4o8T20+tAFvxlV59Te6y0Vh5wWQytLYaTOgBAFCp3KNiEPzxrldUADD8VV06/wUWfw4AZDUVqzoSy2GXHwyZiTGgHwGhLHGoj7Mk0jmUAVS4D54BxcVcr90E5fUfkJTGb36ox4gSDwg9hkthP4RQCDtu3Ic6dYEDF1CYPAHweowBwgqPbVoJyXJXfFCxrCgjDv8Jr4urO51bk1GBLDOUQ+IssxesKKlSqveeH7+iBnAAqo/YTTogsq49rOfB7m23brUOp2UGQNH4DJ1gEVnledP47pKvfLdEqd/9occo8TMAJX4CoFXilwBg+lQA5HoFAIcvviiZWsHXH4q5nVDzk9HqLLNXUaFLJlORqahuz4uQOCDPAkblUYvkx1bTw3oGt3Xi4ivLsoDBnVWeygNc3mYSsoQA4PnyFwDIMCglD8EjXc3/kAQAPbPE4Wx9PW6BF6RDkW1ci2+K+JsngQE9AB2QOwEudGNdRoU6y+zl/ohMmjWyf6uiyfduWEVSnJ0wZLw4UvkMTaebCCuqLOtVFQxKGasQdwSYZdcZPWweSykFFuKwlZxoOBdQXIiGmvUkVxJ5g5TaSivnHs3SqeQ1UZUl7Q1p9Bp3kQWvFicXNvvQfGX7cR8fmqs6oPozOp1KAqgClSyw1AKSnqVA/PbTXj3E7RWnn/81jrcb4loHme7+n/Pz5krWuu3GM5+hVnmOfAICAFVWtzdVE9g05VApHvNTPawnW8fLiYmPeXvofmCNztv2lRxRuG/p1AUXOl6rrDd6WFGyyqsXQ4oXnKe3sRIT2f5YAsY2PV4nNJPUS2nv/a9wQJ3yewPiW2OcP3wDN8LQvIHP3zO+7/kXJ8IvrYGuJBUDgEhqyruaAJSXa0I0eaSjRwGA1otw2DrqOs8HBt6hzb+tSbi4RAdn17jE/UI7UwJw+Po6xLOFjmsroj//fEMmr+eCCovl6lUfeqHu47d2scsG0WA5eSqMj1AovM/QiAB8JXZnnRvBul6u9k4/v9Ccmbzwn8ZIgROwwDPET6sxdeaEa5xOTfiSnHA+//OeWetce0cDVAzl5BwGgNb29lb570L73fZ+AFCqsWg4fgCIYuspLidbVxzwNgggzZOQ0o2AyNpG2JWHKQZgJ6sdycvR3CGdDbYyE6kFABD/+uyEgoFcUBHQEAHVV1XxZyNhcwUAy/r1FP+UiIBZo0zmY+2etcQc//3uzE5T54P1evSokvj4SB/w7I/jAUB4Z3N6ZF8f3/TmJRsYwMILraQLUOvwz8ocHR2ODlSo5V65sg8ANKx0B7IsJGGtLaraXXF+Nir0/r77fPb58wkXM1HAAACUpbZjvQJAfJY00EnLRt8gdPXPIyIuiwoRLqi4mlBQkFI9gQFQUWpDhNNZbwWAXADg+AMD9w8dOmVKaMAsg2FQ+3BYFs/2TL+/EIN4Z8qjgXqjf4kdpoP7kwCgMWkdMGNDI03hOD+11+xhrWWt8uHiwyfbGk+6AdjtjkhhPV3Fx2F0/tnyszixP9cCy8/UshP2y8/Q7Brg9sHeImvLX42JlLADy+E4HrxxZlhY8gSuEGGrjOrnagAg4wMA9RH4lCu+w5lLADpQ+mlxxm8LvFUytKTEcnCWofV5fOVzzAmVlDk7yAneP4/4M79GcSoBcJb4l8SHIH4+Hj8oNoeGLtv8kNojASjWGlnwS5eK16BMM6eidMlhFwBtpK/Bw3qGqqyn2J+SkASAPtM6fz7l62QG4O8RvwQQL95qOGnZDeCyLGaGVeYesL8ayxKANl6Lt125+/DV2CVTZZGzcrHZPDmvbPLm8O/RA4a39+uux+WQF2T6/ZZMxJ/yDbcHPcBGPYDjFwBM2lPL8jafyTCF4/zUXrOHlY7iStXDEDlUAPCNdzgdeHqz8z9Hwzx8SQoAR4/S6/yYo1FsPbUKADipewnZeMvxZcrS7q2LuNY3TMYPAQAUSfHbeDma/1xmtdIYYMYYQE5yYEFKyjdoLwMIC4sHAPzHSQAqKovi8L5w2uT8yrz8uPLiWStN7Su60COnkADg8fkWU2dmZkr/ZwWAoCCMAUEU/7M4np9BE57TrM3avLm8sHnhBkM0ffbX4S4mdoSNXiPiv3b7ypIlt2/rvNjaYnwXFQb99QRAO5QB4Fvio6PZeor4OAury7mYXfMtWeFvD/X6OpNqfbtkXpYLIkTBhX1w30gDA6D9Mfp2d/cTn6kZg7gQoLpaFlQsKH/J9Sj6p1/8Yktq76LFIDAtP39yXn5dXv4zs5DFqFB06Us8jYZn7v/GVRCBW4qrC4aKMQA9wJyzJFqbn2+IXrgkmgHkDqRV8nwE4DDU53DO7dt0C6gLCqZi+tdatHlyGhjN1lPL4vVbAwPvu2aVOyn7dd4h92ReVhREqAsuxk6XqyFplT0LMILXyklQUpiaVJlfWRkXt7g8P6M8I2Na1KyVpTt2vPjiRgjO/MAq3RKopsDd3lNFbuVDWTj/hmYTj3ctzQYCEIFRVzkfirUheRdcAwB1lpXsnyHAFOVyj2w9hdPk9UsPjVM+Oxv/9cdzx49VliF1wcVY1S84eBg9JavMLlyqeOrhw6mpl4qjooqfiSruM+sErLmHYP7++sijvduVYgfa7gX1+XV6Y48TzoF6WOFPDilfxZHUWWB1VlY+Fe12qTe0wCOIQKkE+SaAQcp6E1JvlZRSYaH+AyCPn1sTnxMqmq2SOsurXl5L6vUWnYFb4KXWJ3v39viFBXXWVFpT/EFY0wOiSjg//03Wmd5ZdRcSL9SJdyN4MRK4cuX69bHvtjWyLn4claHNqFCssfN/ACSSlF+MGKC8+fSFjHPbWOJ4Bw/+1VsldXvVy2sXQ+ug2Fgy108DwIHXPr4gfmHhs4fQDegL0g2dPhI20/2ISwA4B52fv5EeQncAwGk0/HReHj/u5qUGrny+oCBWNPhg48GuKK3GcMkKcR2DddI8IfQYIffvA8hfjEDBBklG4A8AHDj0DnTwr656mAApdZZXvcxWe+bM27e3bQujn/J6CoDH/FFkQs1dBnCiklL4izERbebSUmEMTE3HzOIzOQaw42+dnX/bCBGAFjS/heNXADQ27u+6eLHrIABkGOouKVmdsgyhiooMoU/58/ga1vnzNV/j9beUqB94v02JnwDopFxPzOqCCvUyAZi8rQa/d5f9fwAkcg/APXteApgGFWq0hZM9ANx9fkWTJ4CizOQiAWDBYnR8cf1BYHNq4PMAEAgACfsPgkBXVMWlS+gBso6lapJGqKVFI6T+BQpTz6ywuSzeKVVG6tCxtrZsdQPgeLu65C9W8LLyCxEAgFlm2+2IiHsAMOWpAKgHXKAe8AQE3j5BxMrp/NO4tJQBtFOKpp2sJAPYsTwuOTnuRQbwfcWNG5eEMLdc0kkABxMu7t+f0nWzK75nlrdMxpe8SAGgxA8fYVJlhf+nFpkVvUSn6RQAOCtd39WVi3gJQKS4f0R9bxAATAaAewUFADDlqQD+W9y1hkVRRmGyy+6ygrYleMVCM4sQoRvQKiFSBlG56CZiYYigEIgFlcJWhIJ0YUuUCLMbT1mhS4ClaRJPEQRElhbhpRD1qSyhInvq6f6e832zMzta/arebm4zOzvnnW9n3j3fOe9H8f/gev6HH57vpPZyMAbK0pESpAfz/YKA5YuWvb9skdnMBGCq6PO2lpbMz6l19pWhUZdg8h1ljvLHSOCiZUxASxyw/eM9F7Cbn1LHNGWugYHyv3pJgIcDhSRAla5B/zQCZNvdnj2y7U73/lAiYFVJ3/33980jJXkqAsDA84e+aaorq5MEYCaLlBjiVwgw73z//eadZgAEIAV3O6YB9qN4CASQ1t/KMkP82BEE4Mu/5+ieoyDA6pnVzd3G6Ni3r0P8aVqwNA94nJDcetfnWyRuB7Z80rqDvv8MPA+36y1M9W13escIEACVNW9eX9+8vyIghr0Fnq/r/IEdFnq/xP1fwbHjprFqZyYCvHDaYzRXGBkHJAoCArby5qtJa4KAGctAwIzqTR9/vP3j7Xu20whQ69gwAs7UgbPIfGyRRUYxs1LMCzy6tnWTGj8R8CkDnUfyDyc5WOiyxCtmQmTOGxcXd20cm7mdTIALI4DwvHBYGOopjceO9czaggDcA0TBA+4BIGCSsp1mr8YIAgKrqqs/BrbvOWr1lMa5egJ0WWQQAIhqXgAEqE9BQu+3OuilvL7W+FZKOAmHvYuBkwl4rV81WCB4CmNtgncag+XfKyr0bWyiq7kK2MDQdb2dPALUtzPWywznWolWoFcD/fv1Ul6pE1DKjVmkiloGPgMvPTh/qpGOWjsGoPeZUlF9+ypv//pVTspyLe5S3n/paR5YynvfweDt+qzzEAn5CWhkdySGR2NKMD4+1oH/c5WAsv9lO9qSqJZ5k5LbNgukKuerrxUmKrSXzyTQ2moSuJEgiiouIKBfAPBTpWO0IzJS9rAsWNAWPLR0ZQw9VyIisH1UQcnXnJVdSYjg/U/Twcdvl5/fewzejv0ZSlZ2SDmhsLs7t5w+I2yIozwjwwGxjFcZkflh+iz1L7VBtW+jzc3pzM8CwoyGUM7hBcjz5YIKqTSBaWrWWbTxcVZ6IHhgYNMAZ6Vv7ADEk4J9jgUBE1TpiConQzls5WJji2IHStN+8vErCEzzpSqlEVtnVG0dylnZEioQmMf7y7jnzXMTEDjBF/aHAG/n/YHD54us8xDE7WjurLVXuPDDlAjIiUzPyTcY8ImRKSBAZH0PHJAFF4+/jfDwd2wl5c5jw8xB9cSAzVeeL0tleZ8gpYik6yRlQp0KMSkrXb3uq2EXvpv8LmWluWNFEIAqBDcBqnSMTiQCEH7R/D2lu1ItkJZdBWm+aWkj0qq2YjtnZbkKawbvf4TQ39/d3d/Pf/TZFVjg+xID22l/jv6aiyYOP4DECBNQX9HgKMx3VRAB0Q5k9nNiiYCUICaA4p84ejTCp/25zQ21zCCgvHxmJUZAoYEJkOcLLzQMDE5fsRcaLDQ+BA5to8IwImCA4qcn7cePX6cSAG8zI0nj8WJ6fJQqHeMdiZH5dPk3IXyjOf/rkC5fhF9QUFp69jkoNOSsLBdIzOD9ScGcf+gio/GiQ+dfjxcYMV2SAN6O/YGJzcaJQuoSARXfFDkiwztiYjPzw8opNZcSaTBGRpYnwhwT+59/WEijfux/heI4URk+8+aamZWzzTKNPUyebxKZwRURwskLbSqatCj+nTsPCQJ8/Dyn35kAY27nV7VaAiZdDAjT03gUfdLl79rVbcxw5M+mvjykMEePSyutikPpKkvXEtkxzwQA2wzANv6jT0RBYJcggLfT/ofroKK2NSOi4ZOHOEBAaE650VEUkwkC+LGNf5SkJRFwzWiaGm08QbW+xxxZe/dWOvdmhs901EzP1BAgpO9UR74U4sBZbSYm4KNtOz8iIAlLSlGVSgoB/vUDQWb+bSAIGMnnTlL0ivgcXP62Tbu6zZE54bDW+toPI6CrNC6utPQcGgEsXRE/CGDlxe1Tt8Ay8NAtz9KffWBmtpXCv/NO1RFip9G80+hfh+MTAfmFFbGO0AUdMZnhsbPLUzLSMQjQ05kY5J8YGUv7L2scfaB/XOMLtH+8MysWU9tAT0tfX7gkwGgdIaWvvlZZEPAhj4DPQIDOoYIJ2GdsQFkiDDLcBJyvFjzE5+Dmtys7qDwW1ZIgAFJza0HaCIRf+v3XisMD1+IKAoRIsaRmp2/nP/pEzPAkgM3TcAecOFwc35Gf73C5CuubY9rDQQCMkVPgCms04kVkfvhs3v/9/nHj+hE/E1CE+LmYt69vtyQAOWSY1UkCZPyybQ7KkupCP9yG+ImAG2vUyXYyiLyCCfBvaPDXEGA8Xy14iM9v67Tj4u++dPduJiCgYF7p2WdXVZ177tenfT9CODzw58Wx9OQMlq/9ppvsvufSn/EVmAECKEGnOkIMP7TN/9A1fHwiIL+jor4+ph7FuUxAeUo+EwBvcBDA+7//Pp8PEyDiZ4AAPl8iQErfE4cPc8GSBNr4hDK/Wrb9ieOp8YGAffvEF078NmDpeI1a4DC1vjYxJ5YQDuArMCuwC4MItjaY7Kq6lmtz5VOApScr2DE3QcvjP4APPZ9fYpyyljdetMkWFnJ2lghIsVgc+UYjnoL+QeGz9ftP5cd/bCxYIJhk1tn6F7XC+qzzeP32K94ABAEXAyCApOONkwGRtT1rSLxaPQzAP4qwdKk34wvOEn/xKnDUmzBGB9477w4gj7frfX01hg8MvMbfYRZLmHAX4/35DfyOydjbo5pZJn1zvSXUUmEBVb4L6D+f/yMKQKYRvPKSBgeTUKp7gdT0c3XSNSlaZqzjo4upse0DAVFcDHytgmt3rwDqLNQXbekwAaLAwky1x3w8ofRVua/P4iImwwcGNQ198OBBLy2mMlQSnQGLF/vOnD5scyCjTPEpVnZhFjRtdkrbHX8U4JVUUVFfUeF4z2wjWHN9NtZ5SNFop8PBZXzF6dmjID0/ePjh4vLyYsXn4davd0mI/uKh8CWm2Wwz5uN2ki8xS1tRsMDHQy2ytnfzTn3tMLLQhocNAcETpOPEwaHeBz0IQLM5Q5ixzX4iIzVjZUZ2yr0ls8gQvEw6RNCdZm8+vmLjbXZjsGfbnTGdunBEgYa31/6KehdKS9dMkVlfH79JfdousCSnK7ANPviRlgBIz4TmDx7+xlUyq6T+vpkzUeM0EwSkKSil2l2y2AQBNTWoxiSLTZa2ggA+HipRAf65DxABOBN3HpMImGS42cClc+w4sXmoNfVlDwI4cDm7Ezt7UmpMQkRIRMLqEkYZHCJYOmeGH99xfDcISDWkTvHwPU7npplhskADBDhcaE5fY7EycimrmqvxCU5yBoIAZ0YqbEKH5W678VgFcsz7R4/u3MsIy7ZZFaQCtZMFAYsWGY3bXmACRgoCjGaWtg8h06Ma3N3+4Dlau/xRAd6CAJmCIQJsqanW0zUE5GjihxvdsOyYkEC/iLensB98SZl0iNiLG+bx3cczZ4832g1TZPxyBKRsYTM04XiBr0CM0+VyrrmYSwKmjB+6o2CS77qFC5WSl2hnW1tloiUE99yQoIuoDW3WrP19eAYMGwY16uuN2IDsXbtkSQwREGrYtuydDiLgHZNa22tmKawYQsRUiIIFs2cWOMgA3Ky+tuy2W63eY4d4jgCKX5qxPZFhD5oVaX9xeiPiBwGKQ0T4pszdxzcdnz0+WG2rpPoD5fMofiYgz4HLDygjYKhrfqDvsGTFwQEEVGbh8o84e5h950RuQ5vVtx8MjEP8RIA4YEJX6S7hQEG+xKGGmnfeWW5sJgLU2l4LZX0VApo3SkcIszZ+aeCw+D5gJq8Qcesv3t6bdyN9oBCwocKloKmpyTW4KmHx4mGLnVOyED9QdmxvZlvbk20gYNPu3cfDmQAZPxOwfosYfTTbRZ4kXhdQ/z6AEUfCYLz3QGDwsGS+/A8IAootCfh2+gUdIqlMI2B0H+KfQfFTZ6c6AjgLS77Eoc3L33lnUUcz+RKrtb0Wer86AmKE9jfrsrj06j5NQcMvYzdu5OsvQStKuGd3z8g0Bc7CzY/RyASobYAQckPCTdK3mJukqP6A70G4Aymf52W1EZRvsTWXtHM20hUSndEZVrQt4vKPFFJ58jdNfXPm9I07wZnJfaZt8maxU6D5PCKgbhkufkcz+RKTtJUE8PvlPeD55/kxcPfa0++RM/EA2d9ByRnuY8cV4RU2NSo1dcpULQHlhoxYEf4ZggAZ/jyE31g1NV+N/9iQ3aZp5Fs8nCDOn9sBRDl0SBSyxl5jgy/RZnWnQfunwdWcgPRG3NEgKviZkNs8XErJyW8coJo4jh+pWZNH29pVw88jX2I00eBGENRMvsQsRQUB/H4qxmasB2BuFp0jg+dmrefCxk4iAjhLTO5x08JgTD9pWpibAHiRWSIRvyDgSRDA8SN8ip8IcMdfXX0MBJBvscZHGN5iiJ8IyL5wTDYISLUB6n28FtpftrkxC0d98JCy+9e5peR57FEk8SkI0ElN8iVGaVxNjdFcCF9isV0QwNvXqklvgAjIkUOAAQImGW82KlVaIOACOKmOBwMqATnKUwA8yBEgKWACshQdn3kcbYDsW6w5v7UYeQSaqU6lEUBunLUCbxOGfr90A5qtjiqAYuqsu0yVkqjj9YBeatLmGmRlC4NCF7m3hwbR/zmPtq8FtPZm0bpaXsg/88sWNcuJ/81QGFCW01DA8k+iCsD+HrtwOhonqIh9pZgCYpghfIXF1RcNegLu1rVeb0+p2pDkmTcmWenO4QI2BXJIXRYVdUWS5h1508aqWXZAX2sszNDUz1uvgvXzKZf40MwX6R0puCXvVeC009T0uSZGL5aimlrgsbq2NdPARqFSAgp4++juYqdmsawwesRrpbPNs1Y4NcpiycbuLqcLv7OzKqfe8d6XG0UWF4Djg77WGFIaULPU6kQJpm0efXTtqZf4GFD8vkx6RwquRdYsEeI9aRSyppw2JYwHATiQphZ4rK5tDVnV6kt8gbQZcVuxHQEmInBgMyAIuIZqd6Ujg00bPhPgb8/KaiqrbGrLbNkNApAvp/dI5OprjSGllx9oKiiQWV8QgMB/+OabH14ngIBTLfGB0IXXGQjQOVLk0WSvcJTg/b1HjRmT3NWVfDWDCcDxNLXAcqkrV0y3UGKUVv4KS06k4a5IvsFGg82W4pTxny4IQPzI+E1sngil5yZABvhCtr2msrKsrL2sJbNpSWwYCHjpvQx1u77WGAQ0lXVtLaiSWV8i4BCmYcYJBtby8ckugn1ozf5iBHD8TIDekSKPJns1S4SMRU3pxStXagkAnZpaYNGuHjElLcIqCVhY2DCnetjWrajuRUbI2L1ypc3s3Mzxn75ZElDnP3L4yJ3NUHoKAcoVDsKZVFa2tcMvP65lScvUOx5JwdpRe1ezozwmS30CRslaY5WArtTcLrmEBxMw7hmgkVYgen2tCDg1JCRVU5w9wPEzAXpHCnah1SwRMgQP3ITkZDseusBz8V6cNVVrgQUBFYGrdwRWSHO0woVz6ue8m3z2OaVLUZxs6541q9uwsuH4McJxk5l+506sI9P+kcNJKofILyjPWI7CXB0IaI/tmUEE7G8JuyPSkIFs0XEpTVuJAG2tsSAgI7iKs54gAN/9ZwjjBAHpQnnWObOF9BZKEvFLAvSOFAoBSOLheIIAFDFnX6olQK4mp86vm8v37i2HYwET0DBnznx8P7efc24ptmMEVNhsIe4sKxFw/sSLzIdkgYM+CxtKBLS0NM3vw11uMBNfgUhaNkuugLYaI0CNX0rpAy1dUWVx4v0g4NFHrxUj4DUQcKcgIDUqCgSYFQIGZPyt75r0jhRUIHF/ibpECBEA45mNl3KPPAgQq8npCDBmwARItKlRre2cBvpl0Ps4B2zrtmVPkPFJApBTbTbX1TWPBAH6goWhWI+wMhMFUC0tRwaXbAYBuP4Z6nS5rtaYf0scaKqqKsX7FQLoHnBtx2uCAGVPbvNKZwKMRhl+77smvSPFipmo9OD4BQFGIDk7N5mPgQssaoU1tcB6H18QUN9O8QNzh3LACcPUggQmgB4AdTv9rxl+1clLbnh3pq3bvHl+S8sgsGTzbBCwyuJu6zHX6muNJ9MSH+/jAPx+IgC3vh8OH0b8TADf1QFaLg1marcyAQNMQG8rCNA7UqygUieO/1U+Ht+YduzINQv4i1phtRYYBEzx8PFFbW77EqXN7N2rva/tDtEvqWH+uyU3QMDqrErG5vDNRMBe7ZoarfpaY7HEh/r+9fT4B15nEAGA6LYGmACcungMAia9IwXXInMWex4fz6wWTwgChhJyGd6EC7QqDTB5ojVNV5BAVN+od3AANJP0c8NUeTo7r3U8jqsuqaGrNZZaW33/ep37WR5B02amb03TO1LQXis2cIGEPF8mxw0vo4TSO6lRngycm8f6c3mL895Tz2D7IGRuUvQR8i6Tvr46qXoGgAINLomYCgz19qw/GeMMv2l8uPNxxQhZ3/ZmtCkwQ1pbLM+6cQvDKODuHLuccBrjlFL6KkDbR6f3Fc5YzwVaAi7X3WshTRmyE9NUbFxsSHwPwJewweXaHw2dW78SSBPS9Ko6T6l6BrLHqATOEXg6zDvbZseyvAEy6zu2MiElISTFnuh0kt1g1lSeKFXPx6Jvw4MpitYW5Rb9+bO5GytfIX3VeISPsFqwIXyJ9b7C/kgZKVnrzrIyFwhwNyPj7rTMlFecQrGvATrLmpYhY5SV5YLUTGNpSgURNVqpCgJycvCDTVr0gQCbPcAOF6ULpZMUChsnTAAdYoa/CATgt4Z6PhabgWtm+bUgQLPuDlas0J0/CEBgmtXx1HiEj7BnBsq80+slt0cwrW35yB14g7L/fU1N5SBgUd225prmZvzT8QIIWJyBq4/w9zaVHXiBCWgX8Z+tFEQs12QYckHADcgv5CN+SUDqJVi2WcQPAi5IwHjxi9pRVNQCFE2FoUIGtxKuIkxPeiUxalSq36jixYziFZ9tOwQoo+DDZyUBLpdRIQAXViN9RTx3bdnyKKUh7lrrE8J1pAUFUqh54bHEEBO6L92xXsaP3ekNdxIBzc11zXUdy5mANcZVxmJx+V9A3osIcLnjv8SeS1ng5WrbSOhS/ZIYdlsCHtDSIv/C8UUJiVEbEzc6isKZgLAVM+1m+xrCQWBNdN4jAci8+zqJEJTu3qp+PTRSuK4C+dHl/BoE0Fp2Bw4I6QsCEM2WlIwMUPDoQyCACyZm4IRYamsJoCzFS3dgvh1QZpxLvkCWt3lnc0dH3aLlNcsQcF7kquJVuPxNB16QBLTL+M+eYIew4CzwIqVSDwREqPETAUNxBTTl9xfMjSzescNZviM8fMCR4ggHAZhtUOJ/GQQsDh6VGuI7cxURsMZNgHL8IL5gD3f+8ENPA7JMd93Jnz8aNSaHxep44oLiB3IK4gcBomAibdy4UsSvJ+AOEKAvOJisLqbGAa/A+HfSt5/iv4wIcHH8IwKy3W12y/3l+TEBFL+6GpzNMwucixHEX38QMLBsERGAG4wHAaHOmc7a6Rw/E6B9vyRgeWddTc+yh4gAWcDR3y+lr/ARvj09/faHeLuQ3jNQyS1Xm5u28WfCbwI/t+oLDkiaNjMKmwUBaxo6cfk5fiKggeIfRj/OcEtpvhxZ4EWaR23hkJynn0b80qP0uTAmQOMHEO1E/JVU4VS0bFlReNjcL38W+Jjwc+/4jW/nTg/FuuF8fuvmHpSOQwC7zrBP8H03d7bcdwNPtbEZm0b6Ch9h3Ai2KFNxbqXGaX0vvXRFAB7L0REBYt21ukV0xfPqcfkXyfiR9Y12pQ3zTbCiBubQRcOx/+XXLJqjdWgAAc/h+iN+JmC2TY2fgBGgVHjtxlK54WGn8AkOsEepr1es4tEB5AEHo0Wef0ts7O0iQM5Sq6vjgQB1KpK2mw3ysy2M0JPa5k7K8roNKd4hmOZ0lnVqV6ML2+Vn99/ZXDdyotj/suWeDg1UEIG7AB4CjNlmXe1wvJPL3ABRkPFPPsG3riIo3xEQIGcZRZhEgPoUoP312y93t/HJ1eZOMifTFRwAJi2ODr7g8frdd9+/6jLs7y5AMHmC5B+yzO4SB5Jz0gwil0ACkHPCEv/kE6zvslOFsgCXVyAHitU5dFJabscO2iy211kmT4zXFUioApyxoiF4UrCKKVfrs7TwRvFwJt7Rdvqxj4cc26Skvrm0gl0hNrAWlu+9SpGm+uONB7T11nkEFvj4B2jV7T958uPT5k4+7zvluumPZxZQzdSefEVncRHlKRXvhLXMI8WPKHeeFfWpU66+2I2bxuuztDeopjkPA2+dIWt9xSIwsWFsniYW1SA5PFYWSLg/T18wofcN5l+D5JPlqidtkGTq3OXx+ZM7MLkB++7QDp7BMZ3sU5zqB6td5TUIeH29RyelT9QkjfEuCPDw+gIBWEYZi2lLPL5dn6X9vkK7uvqun0St78bg2KL89vZYIgB5e9EoCCFABCRkB4waFSgelWVy9ThVCut9gykfkJ7TiQVPmnqK1tyfZJrfE9ilfj4I2LFxdce+jn3+b/ASG3x+2Zj/svtJn+JRtByesj8IwK+kyFSLgoU+fl1pJcDoRrqTNvanpKutuUBxvXVXdwgYUAjQL2xMxcvrqhcutNqruc3tmFzSIraoKbCqpWg2ETBTNEqyEPLB9Ugd5et2f6tkSyMH4AQc0eK5H1NREWHj43OOL316J9DUfpAIWNJXUqDWOk/uwFjZV7gv1PLGp5IAX7vdzzfAHjJB+BRnj4Kxsbrw8hkPbXvo0ewQBe9CKnaljR5dMoj4B68dfcTgqbUt9fVL2g3Z5yhfKzYsMDaT+dghiyQgrQWPgVBrbkvuu9W9+bLWt6ioottNADu9BUIOEwF2q93X94QEapI4feLOOhs5/u6KCmuMQkBDw/T0+9e0d7b3HLw/2tQQtHB/ybw0WTsMAlZvWr3vDf+gjn1MAElfu1+C1c8vdQJtlxdMXXj5jIefKXxw/c8+Er1QSl1bYex73eC4/bcNjpMEpNTUpIiChvr65x21BssxBXRArK6N+M+/iKRv647OzoUNDXMKl7TX7tmDEeBYwKvLhYe3NLWAAG7MdHG36BgmIISywr7utrloJ8evpt0pfuSpkaN2kfSFUnQ1dC5Ys6aop70FvxVMFqyEg4qVNFkLfB4TsG/fGxQ/pu9J+dl9rX7D7NZRtF1XOwwCHq149MEv8UoABPAIaBwcd+2rg9cyAXyNm2XBQkPnlztiUqBZBIbwCGCLjzp/MxPgKK+GCij0r9/elrO9N56qLlnptBw4MBg+m5e8cFH8IECt5j7BGH7iininev1PT9osa4PxiypGSGsQ0NlQ1g4CsEY6pDKPgMZ5aUoW+rw3Vg+sw7y1nL4XBASEWBP8Un1puz5r7XXWaw8+mNJtVbDQZ8LWNEUJv/pqY3+k+v0X94DumApHtLpiob5NjdvcPr7utsJaavOSBIQTAZktLWeFzz6dZmpcFH8ZF0EtjaCeYVmQgIWTk4o1M4+VWVPNuuODgPbOpibcAfct20cEzJ+zv0TMoigEVK/m+CUByDonJEwYAWfJS2i7LmsNAh5c/60GV/gEY4EkjVsc33SgvbDEHdTXqlvxFFgQPUSF3pzse9z+GVWEgp9AgIj/0ieBcNPp90xfsMDF/cJXEgEbIsoA8l0mxA3qzdN4Ieh3VOmNLG9WT1N7T0/PvmUvEwFL+maUqtIZBLy9eqMIXxKAeO2pVmvCKN6ul9pev6z/9lktAd471BwtcF6e6vIEHkBAyu54TfzxenMyOFMzygWGTOXHP0HU+t56j3ITdF0IoJbX8/N88MiWE0sEb/1C0LfiPJwNrsCypvY3yHHC1FMwSiOVQQAeg7J8AzD9g7TGCPiOcYWCabqCB9XxVqAt3mPR1l9MOkD+aZ2Jz9CW+tL205OAQV43mBPQemmql776haClFI6Pjxbo1e1vMs31qDn4J2ntpZeKVgzkB6y+7tetEr2M7b0vM2B6JrerWdbLTxzBB+qzynqCshT4BfAMvX7JjPjElKypUxMdiZI3xV3CIrPEdDlOkyDmXj1yhMsfFOxou/XYx0mQ3sBUQH98fbxeeql4jq1h/vwGm1153bpDwaZO16ae3pdp4QG4aSvb3W1uFzWW9KHAAQUNgFrQYFINHAmmLMMW+sv4ovimN5htFVjj62HCzcDp8UYkiOm2K+6Cs3k1OpRVKlnhvPe43oHTvlSQ8X7UykPyNWFpkpDexe4CjgqrrbvCUIG/u7u7K1z6eEWBREKC6sBgt7UvXDjfliBf66XpyzcXw4UX5dlyu2JudrgR1lq37R+k6WwOXRY0cIpN9SF+NWuLdCDBrDD8xqZYUHpbwfe8dEJkfEa6IyMyIzIofDM1SIAAIRttstY3773pq5TjkTna+4unf6M5/lLZZrfaXcBRERGD6CNKbLaIwLLGTindu7oUKcxS0Wq1qw4MCWBgznxriHgNy1as2vQmgMLNuI4hgoDp0y9Us8Bk7tXYuB/3wMHGfhCgncpae5pYKFlK3XlHs7YYHzM+Zn5sPY3LWeZCEFCyEi1jW7bwyh5vtX6ptAF+DFSblMXYbObuzs5uKwhYtQrF2qNJqpOP8WlEsOpzvEFI7417Kzcvwn0QBEBDlJQsdux9zzXuSFl3EMULFMxQpDCEiJ/Nb1jACOswxYEhwTZ/DjHAr/F+Q4qM/+mON0EA1ieFR+aFQkoyAbj8TXPQlHek8dAHTMBTMn5MZgqhk91gtIv9s7Y8Rlj/li8oP8dvndkaE2M1SpdReIzqsr6FICCCYMzo6Ww6UiEIOHzg8OETh6+l2uM8nqVIxwDiLHJSFknv4tq9mzfvq2letjnMaQx1BZY4sVNZo6sisZDPZ96M0aPj4s5mKQxlZLdhPCOppUhFMICCgCXWEHptaG7GIBDxPx3XEX36zewRugBnL9vi6PL34RnY19j45utrP3n4ecKbEpdCGAHGhiVGaoDfjnsALr/lQf8P+L6UXm+hiSCcvkShrna4cKkwWcFPIXNPj9koCDgwsbFxeP+1JJ3xGvEXrzlYnIEs2ZqkY85KVHdnEQF1ze+AgIxIgyHCFpy7uqy5OAMEsI0vjZcROH8mAPEGQCj5ZZ/rlooh1iW33bbEGoXXMRUx3Rkcf08cLWV98kLJB+jyX4fLX0fT16d5ZpVp/UASxsaL68XqcTwCHnzrg5eZQb/qG1J4+Ct4K10bv4YAY4WrtrY+NHSFGAEnTvQfuZZylnjN8R8EA5QjjHZL6X3LQMDs4sgUw7JAIqAx0uEPAvj8S5EWl1KYpKEd9Xw0Ia9KRTDwwAMLU6PO9jZ0d3P4lOmJewME6KTkVa6SPmigvsbDb74mCFDjJwIGXU3AEQX70Umi+qQGpba/fLNqsksE97KUdsO0IUa47GCuqbbWbAmlgFHwcWI4jk6lt71uvwdRshOfpfyU6Ozra9rMXWaNByqaWppccUGQ0uL8x20dgaSxJIDiDaH4tVIxxLrwgQfmpIZ466WpXkp+4VooLj8qWCQBavyvjtvwjOfrL/yy/ahVW3yDfAKqM/j+z4Crr6VQ5yvMBAQCZloMGgFQVrgEXYX9OBoRoD8fECB/SvUAggBzs6UszlVcaGYCeK0KavbD/kzAqaUixsB1ty1J9e5Vbsp7qvYgw3GStCQp3NdY8vzrDBCgPvUIG3y6BLYKeAepbFrS/f27XlZshm9gRF/h6SsMAuRTgN7DBOArII7feKqCjHihH+QwYAL487qRpmMC9FL4r6Virgmo7WVAYP7Ue0ppif+1/4sTH7izrm5jsA0C+v2nELhEpJrhr1teTilEUCCOcvRortxpxYqkJOXopyrI0LflWdxrTwicJIUf2GCaq5WGSTC4nzZtndvyIgzgo2G7B2SNw1VXjQw9R/N+/epzQZM1OWZgnhszGJfq8MckTbGtbdIfXv82TD0xAzs00jDJiaxncIIsY1s3Nyy/PMgRCTsouR0ODVF+qpPt2P66ukOWBPX9l9cp6CkoaEk7z2io+YaADlfCVaNHqEBKqErGHa4QkD3l92xeZZWqAX+fku31b8M0vy8QpbCKFGYCVq97e906tvYhAiLb2spRmy+2gwBEfoni4njJ2MGYi5ZftDNhgnw/CLhIunuPXJ6WVjMZN9FOrRSeN8LdIgkwAUVFOQtynAvuKSrCC4Ph1z9+tRm6ugw2/MFg8Pq3QVnVsq+q3VlSImAdCEhel2tMTU5uRYNCZnkbehPk9pBsuwLy6LzQ1BlxzfKROy3yfweDAMR/jSwrWT7ZuDLBMCBvgj/9tHU8CKDoq6q8CRczAU6MAAyBBQvwgi/879lRUfRvw39BgCuwqa9MWeh4jkkSkJycm1yLv0BAZmI59WZI6asvUKC8PFWLi6zGyCtAgDR3H3PObQ+keUfFzAqJql5XnZzMbnCt80Yg/LRzq6puSsPEEAgQGOjJFH8wEH4dExx8MS7/f0JA55KyOftlv8WGsj3JYi2L5GRj7eNvm0FAW2Ybxf+LlL46qUq+vX2B15xPFilw9Zl43uV1irm9IMAeMmuW3Sj5hRIUBFS99VZV2lg3AZkopJQMSJ/jm25KMPxHBPS0NO0vk+eHE5wWLK29UpPffhwjQC999W1uuIeU1cD1REwlnT8ZBMjhf+W5D4AAc8isAnM1H5L79ogA79KqHxdV/aQSgPjBQLgkgG8D+Ps/ImAJrv+c990LKU9bLU82udZci2puvfRtL9Sux19/namzERUFO/3FdGBklljiYqRKAHyWv8Is4k8//cQNGCDAG6iqajmGphVJQHgPCBhQRkAqf/v/s3vAEjV+QQDHT0DG7vFWvdTEkFduGDxiBiOoXWLxGqVgQV3i4qZzHzCVggBzzziNFJ43huMvrfqpCk07IICR2TMwHwNAfQoA/9VToM+15HzNQspz8fgHkiUNraeQvu48MGDqp6fgYnfFQrS6xMWFY667rdTbaK45wBBGF5fNGKN1uU0GAYz5bh1wCS484T/TAUdNk7ULKSuFvK0SJ0lfHS677MzyFZrV1NQlLi6Aj9dYb3+T55IXM9CxogAcV/3vSvC/Bj1utPD6n/EnnaQbrf6BCX0AAAAASUVORK5CYII=)}.react-tel-input .ad{background-position:-16px 0}.react-tel-input .ae{background-position:-32px 0}.react-tel-input .af{background-position:-48px 0}.react-tel-input .ag{background-position:-64px 0}.react-tel-input .ai{background-position:-80px 0}.react-tel-input .al{background-position:-96px 0}.react-tel-input .am{background-position:-112px 0}.react-tel-input .ao{background-position:-128px 0}.react-tel-input .ar{background-position:-144px 0}.react-tel-input .as{background-position:-160px 0}.react-tel-input .at{background-position:-176px 0}.react-tel-input .au{background-position:-192px 0}.react-tel-input .aw{background-position:-208px 0}.react-tel-input .az{background-position:-224px 0}.react-tel-input .ba{background-position:-240px 0}.react-tel-input .bb{background-position:0 -11px}.react-tel-input .bd{background-position:-16px -11px}.react-tel-input .be{background-position:-32px -11px}.react-tel-input .bf{background-position:-48px -11px}.react-tel-input .bg{background-position:-64px -11px}.react-tel-input .bh{background-position:-80px -11px}.react-tel-input .bi{background-position:-96px -11px}.react-tel-input .bj{background-position:-112px -11px}.react-tel-input .bm{background-position:-128px -11px}.react-tel-input .bn{background-position:-144px -11px}.react-tel-input .bo{background-position:-160px -11px}.react-tel-input .br{background-position:-176px -11px}.react-tel-input .bs{background-position:-192px -11px}.react-tel-input .bt{background-position:-208px -11px}.react-tel-input .bw{background-position:-224px -11px}.react-tel-input .by{background-position:-240px -11px}.react-tel-input .bz{background-position:0 -22px}.react-tel-input .ca{background-position:-16px -22px}.react-tel-input .cd{background-position:-32px -22px}.react-tel-input .cf{background-position:-48px -22px}.react-tel-input .cg{background-position:-64px -22px}.react-tel-input .ch{background-position:-80px -22px}.react-tel-input .ci{background-position:-96px -22px}.react-tel-input .ck{background-position:-112px -22px}.react-tel-input .cl{background-position:-128px -22px}.react-tel-input .cm{background-position:-144px -22px}.react-tel-input .cn{background-position:-160px -22px}.react-tel-input .co{background-position:-176px -22px}.react-tel-input .cr{background-position:-192px -22px}.react-tel-input .cu{background-position:-208px -22px}.react-tel-input .cv{background-position:-224px -22px}.react-tel-input .cw{background-position:-240px -22px}.react-tel-input .cy{background-position:0 -33px}.react-tel-input .cz{background-position:-16px -33px}.react-tel-input .de{background-position:-32px -33px}.react-tel-input .dj{background-position:-48px -33px}.react-tel-input .dk{background-position:-64px -33px}.react-tel-input .dm{background-position:-80px -33px}.react-tel-input .do{background-position:-96px -33px}.react-tel-input .dz{background-position:-112px -33px}.react-tel-input .ec{background-position:-128px -33px}.react-tel-input .ee{background-position:-144px -33px}.react-tel-input .eg{background-position:-160px -33px}.react-tel-input .er{background-position:-176px -33px}.react-tel-input .es{background-position:-192px -33px}.react-tel-input .et{background-position:-208px -33px}.react-tel-input .fi{background-position:-224px -33px}.react-tel-input .fj{background-position:-240px -33px}.react-tel-input .fk{background-position:0 -44px}.react-tel-input .fm{background-position:-16px -44px}.react-tel-input .fo{background-position:-32px -44px}.react-tel-input .fr,.react-tel-input .bl,.react-tel-input .mf{background-position:-48px -44px}.react-tel-input .ga{background-position:-64px -44px}.react-tel-input .gb{background-position:-80px -44px}.react-tel-input .gd{background-position:-96px -44px}.react-tel-input .ge{background-position:-112px -44px}.react-tel-input .gf{background-position:-128px -44px}.react-tel-input .gh{background-position:-144px -44px}.react-tel-input .gi{background-position:-160px -44px}.react-tel-input .gl{background-position:-176px -44px}.react-tel-input .gm{background-position:-192px -44px}.react-tel-input .gn{background-position:-208px -44px}.react-tel-input .gp{background-position:-224px -44px}.react-tel-input .gq{background-position:-240px -44px}.react-tel-input .gr{background-position:0 -55px}.react-tel-input .gt{background-position:-16px -55px}.react-tel-input .gu{background-position:-32px -55px}.react-tel-input .gw{background-position:-48px -55px}.react-tel-input .gy{background-position:-64px -55px}.react-tel-input .hk{background-position:-80px -55px}.react-tel-input .hn{background-position:-96px -55px}.react-tel-input .hr{background-position:-112px -55px}.react-tel-input .ht{background-position:-128px -55px}.react-tel-input .hu{background-position:-144px -55px}.react-tel-input .id{background-position:-160px -55px}.react-tel-input .ie{background-position:-176px -55px}.react-tel-input .il{background-position:-192px -55px}.react-tel-input .in{background-position:-208px -55px}.react-tel-input .io{background-position:-224px -55px}.react-tel-input .iq{background-position:-240px -55px}.react-tel-input .ir{background-position:0 -66px}.react-tel-input .is{background-position:-16px -66px}.react-tel-input .it{background-position:-32px -66px}.react-tel-input .je{background-position:-144px -154px}.react-tel-input .jm{background-position:-48px -66px}.react-tel-input .jo{background-position:-64px -66px}.react-tel-input .jp{background-position:-80px -66px}.react-tel-input .ke{background-position:-96px -66px}.react-tel-input .kg{background-position:-112px -66px}.react-tel-input .kh{background-position:-128px -66px}.react-tel-input .ki{background-position:-144px -66px}.react-tel-input .xk{background-position:-128px -154px}.react-tel-input .km{background-position:-160px -66px}.react-tel-input .kn{background-position:-176px -66px}.react-tel-input .kp{background-position:-192px -66px}.react-tel-input .kr{background-position:-208px -66px}.react-tel-input .kw{background-position:-224px -66px}.react-tel-input .ky{background-position:-240px -66px}.react-tel-input .kz{background-position:0 -77px}.react-tel-input .la{background-position:-16px -77px}.react-tel-input .lb{background-position:-32px -77px}.react-tel-input .lc{background-position:-48px -77px}.react-tel-input .li{background-position:-64px -77px}.react-tel-input .lk{background-position:-80px -77px}.react-tel-input .lr{background-position:-96px -77px}.react-tel-input .ls{background-position:-112px -77px}.react-tel-input .lt{background-position:-128px -77px}.react-tel-input .lu{background-position:-144px -77px}.react-tel-input .lv{background-position:-160px -77px}.react-tel-input .ly{background-position:-176px -77px}.react-tel-input .ma{background-position:-192px -77px}.react-tel-input .mc{background-position:-208px -77px}.react-tel-input .md{background-position:-224px -77px}.react-tel-input .me{background-position:-112px -154px;height:12px}.react-tel-input .mg{background-position:0 -88px}.react-tel-input .mh{background-position:-16px -88px}.react-tel-input .mk{background-position:-32px -88px}.react-tel-input .ml{background-position:-48px -88px}.react-tel-input .mm{background-position:-64px -88px}.react-tel-input .mn{background-position:-80px -88px}.react-tel-input .mo{background-position:-96px -88px}.react-tel-input .mp{background-position:-112px -88px}.react-tel-input .mq{background-position:-128px -88px}.react-tel-input .mr{background-position:-144px -88px}.react-tel-input .ms{background-position:-160px -88px}.react-tel-input .mt{background-position:-176px -88px}.react-tel-input .mu{background-position:-192px -88px}.react-tel-input .mv{background-position:-208px -88px}.react-tel-input .mw{background-position:-224px -88px}.react-tel-input .mx{background-position:-240px -88px}.react-tel-input .my{background-position:0 -99px}.react-tel-input .mz{background-position:-16px -99px}.react-tel-input .na{background-position:-32px -99px}.react-tel-input .nc{background-position:-48px -99px}.react-tel-input .ne{background-position:-64px -99px}.react-tel-input .nf{background-position:-80px -99px}.react-tel-input .ng{background-position:-96px -99px}.react-tel-input .ni{background-position:-112px -99px}.react-tel-input .nl,.react-tel-input .bq{background-position:-128px -99px}.react-tel-input .no{background-position:-144px -99px}.react-tel-input .np{background-position:-160px -99px}.react-tel-input .nr{background-position:-176px -99px}.react-tel-input .nu{background-position:-192px -99px}.react-tel-input .nz{background-position:-208px -99px}.react-tel-input .om{background-position:-224px -99px}.react-tel-input .pa{background-position:-240px -99px}.react-tel-input .pe{background-position:0 -110px}.react-tel-input .pf{background-position:-16px -110px}.react-tel-input .pg{background-position:-32px -110px}.react-tel-input .ph{background-position:-48px -110px}.react-tel-input .pk{background-position:-64px -110px}.react-tel-input .pl{background-position:-80px -110px}.react-tel-input .pm{background-position:-96px -110px}.react-tel-input .pr{background-position:-112px -110px}.react-tel-input .ps{background-position:-128px -110px}.react-tel-input .pt{background-position:-144px -110px}.react-tel-input .pw{background-position:-160px -110px}.react-tel-input .py{background-position:-176px -110px}.react-tel-input .qa{background-position:-192px -110px}.react-tel-input .re{background-position:-208px -110px}.react-tel-input .ro{background-position:-224px -110px}.react-tel-input .rs{background-position:-240px -110px}.react-tel-input .ru{background-position:0 -121px}.react-tel-input .rw{background-position:-16px -121px}.react-tel-input .sa{background-position:-32px -121px}.react-tel-input .sb{background-position:-48px -121px}.react-tel-input .sc{background-position:-64px -121px}.react-tel-input .sd{background-position:-80px -121px}.react-tel-input .se{background-position:-96px -121px}.react-tel-input .sg{background-position:-112px -121px}.react-tel-input .sh{background-position:-128px -121px}.react-tel-input .si{background-position:-144px -121px}.react-tel-input .sk{background-position:-160px -121px}.react-tel-input .sl{background-position:-176px -121px}.react-tel-input .sm{background-position:-192px -121px}.react-tel-input .sn{background-position:-208px -121px}.react-tel-input .so{background-position:-224px -121px}.react-tel-input .sr{background-position:-240px -121px}.react-tel-input .ss{background-position:0 -132px}.react-tel-input .st{background-position:-16px -132px}.react-tel-input .sv{background-position:-32px -132px}.react-tel-input .sx{background-position:-48px -132px}.react-tel-input .sy{background-position:-64px -132px}.react-tel-input .sz{background-position:-80px -132px}.react-tel-input .tc{background-position:-96px -132px}.react-tel-input .td{background-position:-112px -132px}.react-tel-input .tg{background-position:-128px -132px}.react-tel-input .th{background-position:-144px -132px}.react-tel-input .tj{background-position:-160px -132px}.react-tel-input .tk{background-position:-176px -132px}.react-tel-input .tl{background-position:-192px -132px}.react-tel-input .tm{background-position:-208px -132px}.react-tel-input .tn{background-position:-224px -132px}.react-tel-input .to{background-position:-240px -132px}.react-tel-input .tr{background-position:0 -143px}.react-tel-input .tt{background-position:-16px -143px}.react-tel-input .tv{background-position:-32px -143px}.react-tel-input .tw{background-position:-48px -143px}.react-tel-input .tz{background-position:-64px -143px}.react-tel-input .ua{background-position:-80px -143px}.react-tel-input .ug{background-position:-96px -143px}.react-tel-input .us{background-position:-112px -143px}.react-tel-input .uy{background-position:-128px -143px}.react-tel-input .uz{background-position:-144px -143px}.react-tel-input .va{background-position:-160px -143px}.react-tel-input .vc{background-position:-176px -143px}.react-tel-input .ve{background-position:-192px -143px}.react-tel-input .vg{background-position:-208px -143px}.react-tel-input .vi{background-position:-224px -143px}.react-tel-input .vn{background-position:-240px -143px}.react-tel-input .vu{background-position:0 -154px}.react-tel-input .wf{background-position:-16px -154px}.react-tel-input .ws{background-position:-32px -154px}.react-tel-input .ye{background-position:-48px -154px}.react-tel-input .za{background-position:-64px -154px}.react-tel-input .zm{background-position:-80px -154px}.react-tel-input .zw{background-position:-96px -154px}.react-tel-input *{box-sizing:border-box;-moz-box-sizing:border-box}.react-tel-input .hide{display:none}.react-tel-input .v-hide{visibility:hidden}.react-tel-input .form-control{position:relative;font-size:14px;letter-spacing:.01rem;margin-top:0 !important;margin-bottom:0 !important;padding-left:48px;margin-left:0;background:#FFFFFF;border:1px solid #CACACA;border-radius:5px;line-height:25px;height:35px;width:300px;outline:none}.react-tel-input .form-control.invalid-number{border:1px solid #d79f9f;background-color:#FAF0F0;border-left-color:#cacaca}.react-tel-input .form-control.invalid-number:focus{border:1px solid #d79f9f;border-left-color:#cacaca;background-color:#FAF0F0}.react-tel-input .flag-dropdown{position:absolute;top:0;bottom:0;padding:0;background-color:#f5f5f5;border:1px solid #cacaca;border-radius:3px 0 0 3px}.react-tel-input .flag-dropdown:hover,.react-tel-input .flag-dropdown:focus{cursor:pointer}.react-tel-input .flag-dropdown.invalid-number{border-color:#d79f9f}.react-tel-input .flag-dropdown.open{z-index:2;background:#fff;border-radius:3px 0 0 0}.react-tel-input .flag-dropdown.open .selected-flag{background:#fff;border-radius:3px 0 0 0}.react-tel-input input[disabled]+.flag-dropdown:hover{cursor:default}.react-tel-input input[disabled]+.flag-dropdown:hover .selected-flag{background-color:transparent}.react-tel-input .selected-flag{outline:none;position:relative;width:38px;height:100%;padding:0 0 0 8px;border-radius:3px 0 0 3px}.react-tel-input .selected-flag:hover,.react-tel-input .selected-flag:focus{background-color:#fff}.react-tel-input .selected-flag .flag{position:absolute;top:50%;margin-top:-5px}.react-tel-input .selected-flag .arrow{position:relative;top:50%;margin-top:-2px;left:20px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #555}.react-tel-input .selected-flag .arrow.up{border-top:none;border-bottom:4px solid #555}.react-tel-input .country-list{outline:none;z-index:1;list-style:none;position:absolute;padding:0;margin:10px 0 10px -1px;box-shadow:1px 2px 10px rgba(0,0,0,0.35);background-color:white;width:300px;max-height:200px;overflow-y:scroll;border-radius:0 0 3px 3px}.react-tel-input .country-list .flag{display:inline-block}.react-tel-input .country-list .divider{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #ccc}.react-tel-input .country-list .country{padding:7px 9px}.react-tel-input .country-list .country .dial-code{color:#6b6b6b}.react-tel-input .country-list .country:hover{background-color:#f1f1f1}.react-tel-input .country-list .country.highlight{background-color:#f1f1f1}.react-tel-input .country-list .flag{margin-right:7px;margin-top:2px}.react-tel-input .country-list .country-name{margin-right:6px}.react-tel-input .country-list .search{position:sticky;top:0;background-color:#fff;padding:10px 0 6px 10px}.react-tel-input .country-list .search-emoji{font-size:15px}.react-tel-input .country-list .search-box{border:1px solid #cacaca;border-radius:3px;font-size:15px;line-height:15px;margin-left:6px;padding:3px 8px 5px;outline:none}.react-tel-input .country-list .no-entries-message{padding:7px 10px 11px;opacity:.7}.react-tel-input .invalid-number-message{position:absolute;z-index:1;font-size:13px;left:46px;top:-8px;background:#fff;padding:0 2px;color:#de0000}.react-tel-input .special-label{display:none;position:absolute;z-index:1;font-size:13px;left:46px;top:-8px;background:#fff;padding:0 2px;white-space:nowrap}");var gV=O(function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,n){e.exports=t},function(e,t,n){var o;
|
59
|
+
/*!
|
60
|
+
Copyright (c) 2017 Jed Watson.
|
61
|
+
Licensed under the MIT License (MIT), see
|
62
|
+
http://jedwatson.github.io/classnames
|
63
|
+
*/!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=c.Symbol,p=d?d.prototype:void 0,f=p?p.toString:void 0;function h(e){if("string"==typeof e)return e;if(m(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}function v(e){return e?(e=function(e){if("number"==typeof e)return e;if(m(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=r.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):o.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}e.exports=function(e,t,n){var o,r,i;return e=null==(o=e)?"":h(o),r=function(e){var t=v(e),n=t%1;return t==t?n?t-n:t:0}(n),i=e.length,r==r&&(void 0!==i&&(r=r<=i?r:i),r=r>=0?r:0),n=r,t=h(t),e.slice(n,n+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,o=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")(),s=Array.prototype,l=Function.prototype,c=Object.prototype,u=a["__core-js_shared__"],d=(n=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",p=l.toString,f=c.hasOwnProperty,h=c.toString,g=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,v=E(a,"Map"),b=E(Object,"create");function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function w(e,t){for(var n,o,r=e.length;r--;)if((n=e[r][0])===(o=t)||n!=n&&o!=o)return r;return-1}function S(e){return!(!$(e)||(t=e,d&&d in t))&&(function(e){var t=$(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?g:o).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function k(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function E(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return S(n)?n:void 0}function O(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a),a};return n.cache=new(O.Cache||C),n}function $(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}y.prototype.clear=function(){this.__data__=b?b(null):{}},y.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},y.prototype.get=function(e){var t=this.__data__;if(b){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return f.call(t,e)?t[e]:void 0},y.prototype.has=function(e){var t=this.__data__;return b?void 0!==t[e]:f.call(t,e)},y.prototype.set=function(e,t){return this.__data__[e]=b&&void 0===t?"__lodash_hash_undefined__":t,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(e){var t=this.__data__,n=w(t,e);return!(n<0||(n==t.length-1?t.pop():m.call(t,n,1),0))},x.prototype.get=function(e){var t=this.__data__,n=w(t,e);return n<0?void 0:t[n][1]},x.prototype.has=function(e){return w(this.__data__,e)>-1},x.prototype.set=function(e,t){var n=this.__data__,o=w(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new y,map:new(v||x),string:new y}},C.prototype.delete=function(e){return k(this,e).delete(e)},C.prototype.get=function(e){return k(this,e).get(e)},C.prototype.has=function(e){return k(this,e).has(e)},C.prototype.set=function(e,t){return k(this,e).set(e,t),this},O.Cache=C,e.exports=O}).call(this,n(3))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=r.test(e);return s||i.test(e)?a(e.slice(2),s?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var o,r,i,a,s,l,c=0,u=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=o,i=r;return o=r=void 0,c=t,a=e.apply(i,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||m&&e-c>=i}function x(){var e=f();if(y(e))return C(e);s=setTimeout(x,function(e){var n=t-(e-l);return m?p(n,i-(e-c)):n}(e))}function C(e){return s=void 0,v&&o?b(e):(o=r=void 0,a)}function w(){var e=f(),n=y(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),u?b(e):a}(l);if(m)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=g(t)||0,h(n)&&(u=!!n.leading,i=(m="maxWait"in n)?d(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},w.flush=function(){return void 0===s?a:C(f())},w}}).call(this,n(3))},function(e,t,n){(function(e,n){var o="[object Arguments]",r="[object Map]",i="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[o]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[r]=h["[object Number]"]=h[i]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object WeakMap]"]=!1;var g="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&"object"==typeof n&&n&&!n.nodeType&&n,x=y&&y.exports===b&&g.process,C=function(){try{return x&&x.binding("util")}catch(e){}}(),w=C&&C.isTypedArray;function S(e,t,n,o){var r=-1,i=e?e.length:0;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function k(e,t){for(var n=-1,o=e?e.length:0;++n<o;)if(t(e[n],n,e))return!0;return!1}function E(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function O(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var M,I,P,L=Array.prototype,j=Function.prototype,D=Object.prototype,A=v["__core-js_shared__"],T=(M=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",R=j.toString,_=D.hasOwnProperty,z=D.toString,B=RegExp("^"+R.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=v.Symbol,F=v.Uint8Array,W=D.propertyIsEnumerable,V=L.splice,K=(I=Object.keys,P=Object,function(e){return I(P(e))}),q=Ce(v,"DataView"),X=Ce(v,"Map"),U=Ce(v,"Promise"),G=Ce(v,"Set"),Y=Ce(v,"WeakMap"),Q=Ce(Object,"create"),Z=Me(q),J=Me(X),ee=Me(U),te=Me(G),ne=Me(Y),oe=H?H.prototype:void 0,re=oe?oe.valueOf:void 0,ie=oe?oe.toString:void 0;function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function le(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new le;++t<n;)this.add(e[t])}function ue(e){this.__data__=new se(e)}function de(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}ae.prototype.clear=function(){this.__data__=Q?Q(null):{}},ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ae.prototype.get=function(e){var t=this.__data__;if(Q){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _.call(t,e)?t[e]:void 0},ae.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:_.call(t,e)},ae.prototype.set=function(e,t){return this.__data__[e]=Q&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(e){var t=this.__data__,n=de(t,e);return!(n<0||(n==t.length-1?t.pop():V.call(t,n,1),0))},se.prototype.get=function(e){var t=this.__data__,n=de(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return de(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,o=de(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},le.prototype.clear=function(){this.__data__={hash:new ae,map:new(X||se),string:new ae}},le.prototype.delete=function(e){return xe(this,e).delete(e)},le.prototype.get=function(e){return xe(this,e).get(e)},le.prototype.has=function(e){return xe(this,e).has(e)},le.prototype.set=function(e,t){return xe(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.clear=function(){this.__data__=new se},ue.prototype.delete=function(e){return this.__data__.delete(e)},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var o=n.__data__;if(!X||o.length<199)return o.push([e,t]),this;n=this.__data__=new le(o)}return n.set(e,t),this};var pe,fe=(pe=function(e,t){return e&&he(e,t,He)},function(e,t){if(null==e)return e;if(!De(e))return pe(e,t);for(var n=e.length,o=-1,r=Object(e);++o<n&&!1!==t(r[o],o,r););return e}),he=function(e,t,n){for(var o=-1,r=Object(e),i=n(e),a=i.length;a--;){var s=i[++o];if(!1===t(r[s],s,r))break}return e};function ge(e,t){for(var n=0,o=(t=ke(t,e)?[t]:be(t)).length;null!=e&&n<o;)e=e[Ne(t[n++])];return n&&n==o?e:void 0}function me(e,t){return null!=e&&t in Object(e)}function ve(e,t,n,s,l){return e===t||(null==e||null==t||!Re(e)&&!_e(t)?e!=e&&t!=t:function(e,t,n,s,l,c){var u=je(e),d=je(t),p="[object Array]",f="[object Array]";u||(p=(p=we(e))==o?i:p),d||(f=(f=we(t))==o?i:f);var h=p==i&&!O(e),g=f==i&&!O(t),m=p==f;if(m&&!h)return c||(c=new ue),u||Be(e)?ye(e,t,n,s,l,c):function(e,t,n,o,i,s,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new F(e),new F(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Pe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var c=$;case a:var u=2&s;if(c||(c=N),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;s|=1,l.set(e,t);var p=ye(c(e),c(t),o,i,s,l);return l.delete(e),p;case"[object Symbol]":if(re)return re.call(e)==re.call(t)}return!1}(e,t,p,n,s,l,c);if(!(2&l)){var v=h&&_.call(e,"__wrapped__"),b=g&&_.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,x=b?t.value():t;return c||(c=new ue),n(y,x,s,l,c)}}return!!m&&(c||(c=new ue),function(e,t,n,o,r,i){var a=2&r,s=He(e),l=s.length;if(l!=He(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:_.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var f=a;++c<l;){var h=e[u=s[c]],g=t[u];if(o)var m=a?o(g,h,u,t,e,i):o(h,g,u,e,t,i);if(!(void 0===m?h===g||n(h,g,o,r,i):m)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,s,l,c))}(e,t,ve,n,s,l))}function be(e){return je(e)?e:$e(e)}function ye(e,t,n,o,r,i){var a=2&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=1&r?new ce:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var f=e[u],h=t[u];if(o)var g=a?o(h,f,u,t,e,i):o(f,h,u,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!k(t,(function(e,t){if(!p.has(t)&&(f===e||n(f,e,o,r,i)))return p.add(t)}))){d=!1;break}}else if(f!==h&&!n(f,h,o,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function xe(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Re(e)||function(e){return!!T&&T in e}(e))&&(Ae(e)||O(e)?B:p).test(Me(e))}(n)?n:void 0}var we=function(e){return z.call(e)};function Se(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}function ke(e,t){if(je(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ze(e))||l.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Ee(e){return e==e&&!Re(e)}function Oe(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(q&&"[object DataView]"!=we(new q(new ArrayBuffer(1)))||X&&we(new X)!=r||U&&"[object Promise]"!=we(U.resolve())||G&&we(new G)!=a||Y&&"[object WeakMap]"!=we(new Y))&&(we=function(e){var t=z.call(e),n=t==i?e.constructor:void 0,o=n?Me(n):void 0;if(o)switch(o){case Z:return"[object DataView]";case J:return r;case ee:return"[object Promise]";case te:return a;case ne:return"[object WeakMap]"}return t});var $e=Ie((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ze(e))return ie?ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(u,(function(e,t,o,r){n.push(o?r.replace(d,"$1"):t||e)})),n}));function Ne(e){if("string"==typeof e||ze(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Me(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ie(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a),a};return n.cache=new(Ie.Cache||le),n}function Pe(e,t){return e===t||e!=e&&t!=t}function Le(e){return function(e){return _e(e)&&De(e)}(e)&&_.call(e,"callee")&&(!W.call(e,"callee")||z.call(e)==o)}Ie.Cache=le;var je=Array.isArray;function De(e){return null!=e&&Te(e.length)&&!Ae(e)}function Ae(e){var t=Re(e)?z.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Re(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _e(e){return!!e&&"object"==typeof e}function ze(e){return"symbol"==typeof e||_e(e)&&"[object Symbol]"==z.call(e)}var Be=w?function(e){return function(t){return e(t)}}(w):function(e){return _e(e)&&Te(e.length)&&!!h[z.call(e)]};function He(e){return De(e)?function(e){var t=je(e)||Le(e)?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],n=t.length,o=!!n;for(var r in e)!_.call(e,r)||o&&("length"==r||Se(r,n))||t.push(r);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||D))return K(e);var t,n,o=[];for(var r in Object(e))_.call(e,r)&&"constructor"!=r&&o.push(r);return o}(e)}function Fe(e){return e}n.exports=function(e,t,n){var o=je(e)?S:E,r=arguments.length<3;return o(e,function(e){return"function"==typeof e?e:null==e?Fe:"object"==typeof e?je(e)?function(e,t){return ke(e)&&Ee(t)?Oe(Ne(e),t):function(n){var o=function(e,t){var n=null==e?void 0:ge(e,t);return void 0===n?void 0:n}(n,e);return void 0===o&&o===t?function(e,t){return null!=e&&function(e,t,n){for(var o,r=-1,i=(t=ke(t,e)?[t]:be(t)).length;++r<i;){var a=Ne(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||!!(i=e?e.length:0)&&Te(i)&&Se(a,i)&&(je(e)||Le(e))}(e,t,me)}(n,e):ve(t,o,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=He(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,Ee(r)]}return t}(e);return 1==t.length&&t[0][2]?Oe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n){var o=n.length,r=o;if(null==e)return!r;for(e=Object(e);o--;){var i=n[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<r;){var a=(i=n[o])[0],s=e[a],l=i[1];if(i[2]){if(void 0===s&&!(a in e))return!1}else if(!ve(l,s,void 0,3,new ue))return!1}return!0}(n,0,t)}}(e):ke(t=e)?(n=Ne(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return ge(t,e)}}(t);var t,n}(t),n,r,fe)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,n){function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){if(Array.isArray(e))return e}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return(c="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})(e)}function u(e){return(u="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(e){return c(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var h=n(0),g=n.n(h),m=n(5),v=n.n(m),b=n(4),y=n.n(b),x=n(6),C=n.n(x),w=n(2),S=n.n(w),k=n(1),E=n.n(k);function O(e,t){return a(e)||function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||s()}n(8);var $=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],N=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function M(e,t,n,o,r){return!n||r?e+"".padEnd(t.length,".")+" "+o:e+"".padEnd(t.length,".")+" "+n}function I(e,t,n,r,a){var s,l,c=[];return l=!0===t,[(s=[]).concat.apply(s,i(e.map((function(e){var i={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:M(n,e[3],e[4],r,a),priority:e[5]||0},s=[];return e[6]&&e[6].map((function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}({},i);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,s.push(n)})),s.length>0?(i.mainCode=!0,l||"Array"===t.constructor.name&&t.includes(e[2])?(i.hasAreaCodes=!0,[i].concat(s)):(c=c.concat(s),[i])):[i]})))),c]}function P(e,t,n,o){if(null!==n){var r=Object.keys(n),i=Object.values(n);r.forEach((function(n,r){if(o)return e.push([n,i[r]]);var a=e.findIndex((function(e){return e[0]===n}));if(-1===a){var s=[n];s[t]=i[r],e.push(s)}else e[a][t]=i[r]}))}}function L(e,t){return 0===t.length?e:e.map((function(e){var n=t.findIndex((function(t){return t[0]===e[2]}));if(-1===n)return e;var o=t[n];return o[1]&&(e[4]=o[1]),o[3]&&(e[5]=o[3]),o[2]&&(e[6]=o[2]),e}))}var j=function e(t,n,o,r,a,s,c,u,d,p,f,h,g,m){l(this,e),this.filterRegions=function(e,t){if("string"==typeof e){var n=e;return t.filter((function(e){return e.regions.some((function(e){return e===n}))}))}return t.filter((function(t){return e.map((function(e){return t.regions.some((function(t){return t===e}))})).some((function(e){return e}))}))},this.sortTerritories=function(e,t){var n=[].concat(i(e),i(t));return n.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map((function(e){var n=t.find((function(t){return t.iso2===e}));if(n)return n})).filter((function(e){return e})):t.filter((function(t){return e.some((function(e){return e===t.iso2}))}))},this.localizeCountries=function(e,t,n){for(var o=0;o<e.length;o++)void 0!==t[e[o].iso2]?e[o].localName=t[e[o].iso2]:void 0!==t[e[o].name]&&(e[o].localName=t[e[o].name]);return n||e.sort((function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0})),e},this.getCustomAreas=function(e,t){for(var n=[],o=0;o<t.length;o++){var r=JSON.parse(JSON.stringify(e));r.dialCode+=t[o],n.push(r)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter((function(e){return!t.includes(e.iso2)}))};var v=function(e,t,n){var o=[];return P(o,1,e,!0),P(o,3,t),P(o,2,n),o}(u,d,p),b=L(JSON.parse(JSON.stringify($)),v),y=L(JSON.parse(JSON.stringify(N)),v),x=O(I(b,t,h,g,m),2),C=x[0],w=x[1];if(n){var S=O(I(y,t,h,g,m),2),k=S[0];S[1],C=this.sortTerritories(k,C)}o&&(C=this.filterRegions(o,C)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(r,C,c.includes("onlyCountries")),s),f,c.includes("onlyCountries")),this.preferredCountries=0===a.length?[]:this.localizeCountries(this.getFilteredCountryList(a,C,c.includes("preferredCountries")),f,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(r,w),s)},D=function(e){function t(e){var n;l(this,t),(n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?d(e):t}(this,p(t).call(this,e))).getProbableCandidate=y()((function(e){return e&&0!==e.length?n.state.onlyCountries.filter((function(t){return S()(t.name.toLowerCase(),e.toLowerCase())}),d(d(n)))[0]:null})),n.guessSelectedCountry=y()((function(e,t,o,r){var i;if(!1===n.props.enableAreaCodes&&(r.some((function(t){if(S()(e,t.dialCode))return o.some((function(e){if(t.iso2===e.iso2&&e.mainCode)return i=e,!0})),!0})),i))return i;var a=o.find((function(e){return e.iso2==t}));if(""===e.trim())return a;var s=o.reduce((function(t,n){if(S()(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t}),{dialCode:"",priority:10001},d(d(n)));return s.name?s:a})),n.updateCountry=function(e){var t,o=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?o.find((function(t){return t.dialCode==+e})):o.find((function(t){return t.iso2==e})))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var o=n.dropdownRef;if(o&&document.body){var r=o.offsetHeight,i=o.getBoundingClientRect().top+document.body.scrollTop,a=i+r,s=e,l=s.getBoundingClientRect(),c=s.offsetHeight,u=l.top+document.body.scrollTop,d=u+c,p=u-i+o.scrollTop,f=r/2-c/2;if(n.props.enableSearch?u<i+32:u<i)t&&(p-=f),o.scrollTop=p;else if(d>a){t&&(p+=f);var h=r-c;o.scrollTop=p-h}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var o,i=t.format,l=n.props,c=l.disableCountryCode,u=l.enableAreaCodeStretch,d=l.enableLongNumbers,p=l.autoFormat;if(c?((o=i.split(" ")).shift(),o=o.join(" ")):u&&t.isAreaCode?((o=i.split(" "))[1]=o[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),o=o.join(" ")):o=i,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!o||!p)return c?e:n.props.prefix+e;var f,h=C()(o,(function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,o=a(n=e.remainingText)||r(n)||s(),i=o[0],l=o.slice(1);return{formattedText:e.formattedText+i,remainingText:l}}),{formattedText:"",remainingText:e.split("")});return(f=d?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!f.includes(")")&&(f+=")"),f},n.cursorToEnd=function(){var e=n.numberInputRef;if(document.activeElement===e){e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)}},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,o=t.preferredCountries,r=t.onlyCountries,i=t.selectedCountry,a=n.concatPreferredCountries(o,r).findIndex((function(e){return e.dialCode===i.dialCode&&e.iso2===i.iso2}));n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:a},(function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))}))}},n.handleInput=function(e){var t=e.target.value,o=n.props,r=o.prefix,i=o.onChange,a=n.props.disableCountryCode?"":r,s=n.state.selectedCountry,l=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=r+(s.hasAreaCodes?n.state.onlyCountries.find((function(e){return e.iso2===s.iso2&&e.mainCode})).dialCode:s.dialCode);if(t.slice(0,c.length)!==c)return}if(t===r)return i&&i("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===n.props.enableLongNumbers)return;if("number"==typeof n.props.enableLongNumbers&&t.replace(/\D/g,"").length>n.props.enableLongNumbers)return}if(t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var u=n.props.country,d=n.state,p=d.onlyCountries,f=d.selectedCountry,h=d.hiddenAreaCodes;if(i&&e.persist(),t.length>0){var g=t.replace(/\D/g,"");(!n.state.freezeSelection||f&&f.dialCode.length>g.length)&&(s=n.props.disableCountryGuess?f:n.guessSelectedCountry(g.substring(0,6),u,p,h)||f,l=!1),a=n.formatNumber(g,s),s=s.dialCode?s:f}var m=e.target.selectionStart,v=e.target.selectionStart,b=n.state.formattedNumber,y=a.length-b.length;n.setState({formattedNumber:a,freezeSelection:l,selectedCountry:s},(function(){y>0&&(v-=y),")"==a.charAt(a.length-1)?n.numberInputRef.setSelectionRange(a.length-1,a.length-1):v>0&&b.length>=a.length?n.numberInputRef.setSelectionRange(v,v):m<b.length&&n.numberInputRef.setSelectionRange(m,m),i&&i(a.replace(/[^0-9]+/g,""),n.getCountryData(),e,a)}))}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var o=n.state.selectedCountry,r=n.state.onlyCountries.find((function(t){return t==e}));if(r){var i=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),a=i.length>1?i.replace(o.dialCode,r.dialCode):r.dialCode,s=n.formatNumber(a.replace(/\D/g,""),r);n.setState({showDropdown:!1,selectedCountry:r,freezeSelection:!0,formattedNumber:s,searchValue:""},(function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(s.replace(/[^0-9]+/g,""),n.getCountryData(),t,s)}))}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},(function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)})),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex((function(t){return t==e}))+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,o=e.target.className;if(o.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(o.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!o.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var r=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},(function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)}))};switch(e.which){case t.DOWN:r(1);break;case t.UP:r(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(i(n.state.preferredCountries),i(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,o=t.keys,r=t.onEnterKeyPress,i=t.onKeyDown;e.which===o.ENTER&&r&&r(e),i&&i(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,o=n.state,r=o.preferredCountries,i=o.selectedCountry,a=0;if(""===t&&i){var s=n.state.onlyCountries;a=n.concatPreferredCountries(r,s).findIndex((function(e){return e==i})),setTimeout((function(){return n.scrollTo(n.getElement(a))}),100)}n.setState({searchValue:t,highlightCountryIndex:a})},n.concatPreferredCountries=function(e,t){return e.length>0?i(new Set(e.concat(t))):t},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,o=e.onlyCountries,r=e.searchValue,a=n.props.enableSearch,s=n.concatPreferredCountries(t,o),l=r.trim().toLowerCase().replace("+","");if(a&&l){if(/^\d+$/.test(l))return s.filter((function(e){var t=e.dialCode;return["".concat(t)].some((function(e){return e.toLowerCase().includes(l)}))}));var c=s.filter((function(e){var t=e.iso2;return["".concat(t)].some((function(e){return e.toLowerCase().includes(l)}))})),u=s.filter((function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some((function(e){return e.toLowerCase().includes(l)}))}));return n.scrollToTop(),i(new Set([].concat(c,u)))}return s},n.getCountryDropdownList=function(){var e=n.state,t=e.preferredCountries,r=e.highlightCountryIndex,i=e.showDropdown,a=e.searchValue,s=n.props,l=s.disableDropdown,c=s.prefix,u=n.props,d=u.enableSearch,p=u.searchNotFound,f=u.disableSearchIcon,h=u.searchClass,m=u.searchStyle,v=u.searchPlaceholder,b=u.autocompleteSearch,y=n.getSearchFilteredCountries().map((function(e,t){var o=r===t,i=E()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:o}),a="flag ".concat(e.iso2);return g.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:i,"data-dial-code":"1",tabIndex:l?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},o?{"aria-selected":!0}:{}),g.a.createElement("div",{className:a}),g.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),g.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):c+e.dialCode))})),x=g.a.createElement("li",{key:"dashes",className:"divider"});t.length>0&&(!d||d&&!a.trim())&&y.splice(t.length,0,x);var C=E()(o({"country-list":!0,hide:!i},n.props.dropdownClass,!0));return g.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),n.dropdownRef=e},className:C,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&g.a.createElement("li",{className:E()(o({search:!0},h,h))},!f&&g.a.createElement("span",{className:E()(o({"search-emoji":!0},"".concat(h,"-emoji"),h)),role:"img","aria-label":"Magnifying glass"},"🔎"),g.a.createElement("input",{className:E()(o({"search-box":!0},"".concat(h,"-box"),h)),style:m,type:"search",placeholder:v,autoFocus:!0,autoComplete:b?"on":"off",value:a,onChange:n.handleSearchChange})),y.length>0?y:g.a.createElement("li",{className:"no-entries-message"},g.a.createElement("span",null,p)))};var c,f=new j(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),h=f.onlyCountries,m=f.preferredCountries,b=f.hiddenAreaCodes,x=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:x.length>1?n.guessSelectedCountry(x.substring(0,6),e.country,h,b)||0:e.country&&h.find((function(t){return t.iso2==e.country}))||0;var w,k=x.length<2&&c&&!S()(x,c.dialCode)?c.dialCode:"";w=""===x&&0===c?"":n.formatNumber((e.disableCountryCode?"":k)+x,c.name?c:void 0);var O=h.findIndex((function(e){return e==c}));return n.state={showDropdown:e.showDropdown,formattedNumber:w,onlyCountries:h,preferredCountries:m,hiddenAreaCodes:b,selectedCountry:c,highlightCountryIndex:O,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:v()(n.searchCountry,250),searchValue:""},n}var n;return function(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}}),t&&f(e,t)}(t,e),(n=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,o=t.selectedCountry,r=t.hiddenAreaCodes,i=this.props,a=i.country,s=i.prefix;if(""===e)return this.setState({selectedCountry:o,formattedNumber:""});var l,c,u=e.replace(/\D/g,"");if(o&&S()(e,s+o.dialCode))c=this.formatNumber(u,o),this.setState({formattedNumber:c});else{var d=(l=this.props.disableCountryGuess?o:this.guessSelectedCountry(u.substring(0,6),a,n,r)||o)&&S()(u,s+l.dialCode)?l.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":d)+u,l||void 0),this.setState({selectedCountry:l,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,r=this,i=this.state,a=i.onlyCountries,s=i.selectedCountry,l=i.showDropdown,c=i.formattedNumber,u=i.hiddenAreaCodes,d=this.props,p=d.disableDropdown,f=d.renderStringAsFlag,h=d.isValid,m=d.defaultErrorMessage,v=d.specialLabel;if("boolean"==typeof h)t=h;else{var b=h(c.replace(/\D/g,""),s,a,u);"boolean"==typeof b?!1===(t=b)&&(n=m):(t=!1,n=b)}var y=E()((o(e={},this.props.containerClass,!0),o(e,"react-tel-input",!0),e)),x=E()({arrow:!0,up:l}),C=E()(o({"form-control":!0,"invalid-number":!t,open:l},this.props.inputClass,!0)),w=E()({"selected-flag":!0,open:l}),S=E()(o({"flag-dropdown":!0,"invalid-number":!t,open:l},this.props.buttonClass,!0)),k="flag ".concat(s&&s.iso2);return g.a.createElement("div",{className:"".concat(y," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},v&&g.a.createElement("div",{className:"special-label"},v),n&&g.a.createElement("div",{className:"invalid-number-message"},n),g.a.createElement("input",Object.assign({className:C,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:c,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(e){r.numberInputRef=e,"function"==typeof r.props.inputProps.ref?r.props.inputProps.ref(e):"object"==typeof r.props.inputProps.ref&&(r.props.inputProps.ref.current=e)}})),g.a.createElement("div",{className:S,style:this.props.buttonStyle,ref:function(e){return r.dropdownContainerRef=e}},f?g.a.createElement("div",{className:w},f):g.a.createElement("div",{onClick:p?void 0:this.handleFlagDropdownClick,className:w,title:s?"".concat(s.localName||s.name,": + ").concat(s.dialCode):"",tabIndex:p?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!l||void 0},g.a.createElement("div",{className:k},!p&&g.a.createElement("div",{className:x}))),l&&this.getCountryDropdownList()))}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),t}(g.a.Component);D.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=D}]));dD(".inputContainer {\n .react-tel-input .flag-dropdown {\n height: 40px !important;\n background-color: unset;\n border: unset;\n }\n .react-tel-input .form-control {\n height: 40px !important;\n width: 100%;\n padding-left: 40px;\n }\n}\n");var mV=function(e){var t=e.handleChange,n=e.countryCode,o=e.phone,r=e.className,i=e.id,s=a(null);return l((function(){if(s.current){var e=s.current.querySelector("input");e&&(e.id=i)}}),[i]),L.jsx("div",{className:r,children:L.jsx("div",{className:"inputContainer",ref:s,children:L.jsx(gV,{value:"+".concat(n).concat(o),country:n&&o||""!=n&&""!=o?"":"us",countryCodeEditable:!1,onChange:function(e,n){t(e.replace(n.dialCode,""),n.dialCode,n.countryCode)},enableSearch:!0,inputProps:{required:!0}})})})};export{XB as AppAvatar,yD as AppBackArrow,xD as AppBadge,lV as AppBreadcrumb,fD as AppButton,cV as AppCard,uV as AppCarousel,KB as AppChart,UB as AppCheckboxText,GB as AppCollapse,ZB as AppCustomLoader,aV as AppDivider,hV as AppFloatButton,qB as AppImageBox,pD as AppInput,sV as AppLabel,rV as AppList,iV as AppLoader,FW as AppLocationMap,WW as AppModal,qW as AppOtpField,XW as AppPagination,UW as AppPasswordInput,mV as AppPhoneInput,fV as AppPopover,pV as AppProgress,eV as AppRadioGroup,tV as AppSelect,nV as AppSelectAdd,gD as AppSidebar,vD as AppTab,dV as AppTable,oV as AppTag,mD as AppTextarea,QW as AppTitle,ZW as AppToggleButton,JW as AppUploadImage,CD as OverViewCard};
|
64
|
+
//# sourceMappingURL=index.mjs.map
|