gf-components 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +60 -60
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5607 -5623
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/button/GFButton.d.ts +6 -3
- package/dist/src/components/card/GFCard.d.ts +3 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Ol;function Tv(){if(Ol)return Zn;Ol=1;var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,u){var d,f={},v=null,b=null;u!==void 0&&(v=""+u),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(b=l.ref);for(d in l)n.call(l,d)&&!o.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:s,key:v,ref:b,props:f,_owner:a.current}}return Zn.Fragment=r,Zn.jsx=i,Zn.jsxs=i,Zn}var Jn={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Rl;function Nv(){return Rl||(Rl=1,process.env.NODE_ENV!=="production"&&function(){var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=Symbol.iterator,p="@@iterator";function g(_){if(_===null||typeof _!="object")return null;var G=h&&_[h]||_[p];return typeof G=="function"?G:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(_){{for(var G=arguments.length,X=new Array(G>1?G-1:0),ie=1;ie<G;ie++)X[ie-1]=arguments[ie];y("error",_,X)}}function y(_,G,X){{var ie=S.ReactDebugCurrentFrame,Pe=ie.getStackAddendum();Pe!==""&&(G+="%s",X=X.concat([Pe]));var $e=X.map(function(_e){return String(_e)});$e.unshift("Warning: "+G),Function.prototype.apply.call(console[_],console,$e)}}var E=!1,C=!1,x=!1,R=!1,w=!1,$;$=Symbol.for("react.module.reference");function N(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||w||_===a||_===u||_===d||R||_===b||E||C||x||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===f||_.$$typeof===i||_.$$typeof===s||_.$$typeof===l||_.$$typeof===$||_.getModuleId!==void 0))}function F(_,G,X){var ie=_.displayName;if(ie)return ie;var Pe=G.displayName||G.name||"";return Pe!==""?X+"("+Pe+")":X}function j(_){return _.displayName||"Context"}function A(_){if(_==null)return null;if(typeof _.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var G=_;return j(G)+".Consumer";case i:var X=_;return j(X._context)+".Provider";case l:return F(_,_.render,"ForwardRef");case f:var ie=_.displayName||null;return ie!==null?ie:A(_.type)||"Memo";case v:{var Pe=_,$e=Pe._payload,_e=Pe._init;try{return A(_e($e))}catch{return null}}}return null}var M=Object.assign,H=0,T,O,I,D,V,k,K;function W(){}W.__reactDisabledLog=!0;function q(){{if(H===0){T=console.log,O=console.info,I=console.warn,D=console.error,V=console.group,k=console.groupCollapsed,K=console.groupEnd;var _={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}H++}}function Y(){{if(H--,H===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},_,{value:T}),info:M({},_,{value:O}),warn:M({},_,{value:I}),error:M({},_,{value:D}),group:M({},_,{value:V}),groupCollapsed:M({},_,{value:k}),groupEnd:M({},_,{value:K})})}H<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=S.ReactCurrentDispatcher,J;function te(_,G,X){{if(J===void 0)try{throw Error()}catch(Pe){var ie=Pe.stack.trim().match(/\n( *(at )?)/);J=ie&&ie[1]||""}return`
|
|
18
|
-
`+J+_}}var ae=!1,fe;{var de=typeof WeakMap=="function"?WeakMap:Map;fe=new de}function ve(_,G){if(!_||ae)return"";{var X=fe.get(_);if(X!==void 0)return X}var ie;ae=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Z.current,Z.current=null,q();try{if(G){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(gt){ie=gt}Reflect.construct(_,[],_e)}else{try{_e.call()}catch(gt){ie=gt}_.call(_e.prototype)}}else{try{throw Error()}catch(gt){ie=gt}_()}}catch(gt){if(gt&&ie&&typeof gt.stack=="string"){for(var Ie=gt.stack.split(`
|
|
19
|
-
`),vt=ie.stack.split(`
|
|
20
|
-
`),et=Ie.length-1,ze=vt.length-1;et>=1&&ze>=0&&Ie[et]!==vt[ze];)ze--;for(;et>=1&&ze>=0;et--,ze--)if(Ie[et]!==vt[ze]){if(et!==1||ze!==1)do if(et--,ze--,ze<0||Ie[et]!==vt[ze]){var Et=`
|
|
21
|
-
`+Ie[et].replace(" at new "," at ");return _.displayName&&Et.includes("<anonymous>")&&(Et=Et.replace("<anonymous>",_.displayName)),typeof _=="function"&&fe.set(_,Et),Et}while(et>=1&&ze>=0);break}}}finally{ae=!1,Z.current=$e,Y(),Error.prepareStackTrace=Pe}var Ht=_?_.displayName||_.name:"",zt=Ht?te(Ht):"";return typeof _=="function"&&fe.set(_,zt),zt}function we(_,G,X){return ve(_,!1)}function B(_){var G=_.prototype;return!!(G&&G.isReactComponent)}function ce(_,G,X){if(_==null)return"";if(typeof _=="function")return ve(_,B(_));if(typeof _=="string")return te(_);switch(_){case u:return te("Suspense");case d:return te("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case l:return we(_.render);case f:return ce(_.type,G,X);case v:{var ie=_,Pe=ie._payload,$e=ie._init;try{return ce($e(Pe),G,X)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,Ce={},pe=S.ReactDebugCurrentFrame;function ne(_){if(_){var G=_._owner,X=ce(_.type,_._source,G?G.type:null);pe.setExtraStackFrame(X)}else pe.setExtraStackFrame(null)}function ge(_,G,X,ie,Pe){{var $e=Function.call.bind(se);for(var _e in _)if($e(_,_e)){var Ie=void 0;try{if(typeof _[_e]!="function"){var vt=Error((ie||"React class")+": "+X+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Ie=_[_e](G,_e,ie,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(et){Ie=et}Ie&&!(Ie instanceof Error)&&(ne(Pe),m("%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).",ie||"React class",X,_e,typeof Ie),ne(null)),Ie instanceof Error&&!(Ie.message in Ce)&&(Ce[Ie.message]=!0,ne(Pe),m("Failed %s type: %s",X,Ie.message),ne(null))}}}var xe=Array.isArray;function Me(_){return xe(_)}function oe(_){{var G=typeof Symbol=="function"&&Symbol.toStringTag,X=G&&_[Symbol.toStringTag]||_.constructor.name||"Object";return X}}function re(_){try{return me(_),!1}catch{return!0}}function me(_){return""+_}function he(_){if(re(_))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(_)),me(_)}var tt=S.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ue,Xe;Xe={};function Ze(_){if(se.call(_,"ref")){var G=Object.getOwnPropertyDescriptor(_,"ref").get;if(G&&G.isReactWarning)return!1}return _.ref!==void 0}function Fe(_){if(se.call(_,"key")){var G=Object.getOwnPropertyDescriptor(_,"key").get;if(G&&G.isReactWarning)return!1}return _.key!==void 0}function Te(_,G){if(typeof _.ref=="string"&&tt.current&&G&&tt.current.stateNode!==G){var X=A(tt.current.type);Xe[X]||(m('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',A(tt.current.type),_.ref),Xe[X]=!0)}}function it(_,G){{var X=function(){Ae||(Ae=!0,m("%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)",G))};X.isReactWarning=!0,Object.defineProperty(_,"key",{get:X,configurable:!0})}}function Ye(_,G){{var X=function(){Ue||(Ue=!0,m("%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)",G))};X.isReactWarning=!0,Object.defineProperty(_,"ref",{get:X,configurable:!0})}}var Le=function(_,G,X,ie,Pe,$e,_e){var Ie={$$typeof:t,type:_,key:G,ref:X,props:_e,_owner:$e};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function ue(_,G,X,ie,Pe){{var $e,_e={},Ie=null,vt=null;X!==void 0&&(he(X),Ie=""+X),Fe(G)&&(he(G.key),Ie=""+G.key),Ze(G)&&(vt=G.ref,Te(G,Pe));for($e in G)se.call(G,$e)&&!qe.hasOwnProperty($e)&&(_e[$e]=G[$e]);if(_&&_.defaultProps){var et=_.defaultProps;for($e in et)_e[$e]===void 0&&(_e[$e]=et[$e])}if(Ie||vt){var ze=typeof _=="function"?_.displayName||_.name||"Unknown":_;Ie&&it(_e,ze),vt&&Ye(_e,ze)}return Le(_,Ie,vt,Pe,ie,tt.current,_e)}}var Ee=S.ReactCurrentOwner,Ke=S.ReactDebugCurrentFrame;function rt(_){if(_){var G=_._owner,X=ce(_.type,_._source,G?G.type:null);Ke.setExtraStackFrame(X)}else Ke.setExtraStackFrame(null)}var bt;bt=!1;function ut(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function Be(){{if(Ee.current){var _=A(Ee.current.type);if(_)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+_+"`."}return""}}function Ve(_){return""}var De={};function Re(_){{var G=Be();if(!G){var X=typeof _=="string"?_:_.displayName||_.name;X&&(G=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+X+">.")}return G}}function be(_,G){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var X=Re(G);if(De[X])return;De[X]=!0;var ie="";_&&_._owner&&_._owner!==Ee.current&&(ie=" It was passed a child from "+A(_._owner.type)+"."),rt(_),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,ie),rt(null)}}function Ge(_,G){{if(typeof _!="object")return;if(Me(_))for(var X=0;X<_.length;X++){var ie=_[X];ut(ie)&&be(ie,G)}else if(ut(_))_._store&&(_._store.validated=!0);else if(_){var Pe=g(_);if(typeof Pe=="function"&&Pe!==_.entries)for(var $e=Pe.call(_),_e;!(_e=$e.next()).done;)ut(_e.value)&&be(_e.value,G)}}}function pt(_){{var G=_.type;if(G==null||typeof G=="string")return;var X;if(typeof G=="function")X=G.propTypes;else if(typeof G=="object"&&(G.$$typeof===l||G.$$typeof===f))X=G.propTypes;else return;if(X){var ie=A(G);ge(X,_.props,"prop",ie,_)}else if(G.PropTypes!==void 0&&!bt){bt=!0;var Pe=A(G);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ke(_){{for(var G=Object.keys(_.props),X=0;X<G.length;X++){var ie=G[X];if(ie!=="children"&&ie!=="key"){rt(_),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),rt(null);break}}_.ref!==null&&(rt(_),m("Invalid attribute `ref` supplied to `React.Fragment`."),rt(null))}}var He={};function st(_,G,X,ie,Pe,$e){{var _e=N(_);if(!_e){var Ie="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(Ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var vt=Ve();vt?Ie+=vt:Ie+=Be();var et;_===null?et="null":Me(_)?et="array":_!==void 0&&_.$$typeof===t?(et="<"+(A(_.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):et=typeof _,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,Ie)}var ze=ue(_,G,X,Pe,$e);if(ze==null)return ze;if(_e){var Et=G.children;if(Et!==void 0)if(ie)if(Me(Et)){for(var Ht=0;Ht<Et.length;Ht++)Ge(Et[Ht],_);Object.freeze&&Object.freeze(Et)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(Et,_)}if(se.call(G,"key")){var zt=A(_),gt=Object.keys(G).filter(function(Wt){return Wt!=="key"}),yr=gt.length>0?"{key: someKey, "+gt.join(": ..., ")+": ...}":"{key: someKey}";if(!He[zt+yr]){var Dr=gt.length>0?"{"+gt.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,yr,zt,Dr,zt),He[zt+yr]=!0}}return _===n?ke(ze):pt(ze),ze}}function ht(_,G,X){return st(_,G,X,!0)}function Rt(_,G,X){return st(_,G,X,!1)}var Dt=Rt,kt=ht;Jn.Fragment=n,Jn.jsx=Dt,Jn.jsxs=kt}()),Jn}process.env.NODE_ENV==="production"?Fi.exports=Tv():Fi.exports=Nv();var wt=Fi.exports,Ru={exports:{}};/*!
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xn=require("styled-components"),P=require("react"),_n=require("react-dom");function $u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=$u(P),_v=$u(_n);function Ou(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ru={exports:{}};/*!
|
|
31
2
|
Copyright (c) 2018 Jed Watson.
|
|
32
3
|
Licensed under the MIT License (MIT), see
|
|
33
4
|
http://jedwatson.github.io/classnames
|
|
34
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ru);var
|
|
5
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ru);var Tv=Ru.exports;const Q=Ou(Tv);function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(null,arguments)}var Fi={exports:{}},lt={};/**
|
|
35
6
|
* @license React
|
|
36
7
|
* react-is.production.min.js
|
|
37
8
|
*
|
|
@@ -39,7 +10,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
39
10
|
*
|
|
40
11
|
* This source code is licensed under the MIT license found in the
|
|
41
12
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var
|
|
13
|
+
*/var Ol;function Nv(){if(Ol)return lt;Ol=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var S=g.$$typeof;switch(S){case e:switch(g=g.type,g){case r:case a:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case i:case l:case v:case f:case o:return g;default:return S}}case t:return S}}}return lt.ContextConsumer=i,lt.ContextProvider=o,lt.Element=e,lt.ForwardRef=l,lt.Fragment=r,lt.Lazy=v,lt.Memo=f,lt.Portal=t,lt.Profiler=a,lt.StrictMode=n,lt.Suspense=u,lt.SuspenseList=d,lt.isAsyncMode=function(){return!1},lt.isConcurrentMode=function(){return!1},lt.isContextConsumer=function(g){return p(g)===i},lt.isContextProvider=function(g){return p(g)===o},lt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},lt.isForwardRef=function(g){return p(g)===l},lt.isFragment=function(g){return p(g)===r},lt.isLazy=function(g){return p(g)===v},lt.isMemo=function(g){return p(g)===f},lt.isPortal=function(g){return p(g)===t},lt.isProfiler=function(g){return p(g)===a},lt.isStrictMode=function(g){return p(g)===n},lt.isSuspense=function(g){return p(g)===u},lt.isSuspenseList=function(g){return p(g)===d},lt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===a||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===f||g.$$typeof===o||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},lt.typeOf=p,lt}var ct={};/**
|
|
43
14
|
* @license React
|
|
44
15
|
* react-is.development.js
|
|
45
16
|
*
|
|
@@ -47,18 +18,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
47
18
|
*
|
|
48
19
|
* This source code is licensed under the MIT license found in the
|
|
49
20
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var _l;function Av(){return _l||(_l=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=!1,p=!1,g=!1,S=!1,m=!1,y;y=Symbol.for("react.module.reference");function E(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||m||B===n||B===u||B===d||S||B===b||h||p||g||typeof B=="object"&&B!==null&&(B.$$typeof===v||B.$$typeof===f||B.$$typeof===o||B.$$typeof===i||B.$$typeof===l||B.$$typeof===y||B.getModuleId!==void 0))}function C(B){if(typeof B=="object"&&B!==null){var ce=B.$$typeof;switch(ce){case e:var se=B.type;switch(se){case r:case a:case n:case u:case d:return se;default:var Ce=se&&se.$$typeof;switch(Ce){case s:case i:case l:case v:case f:case o:return Ce;default:return ce}}case t:return ce}}}var x=i,R=o,w=e,$=l,N=r,F=v,j=f,A=t,M=a,H=n,T=u,O=d,I=!1,D=!1;function V(B){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return C(B)===i}function W(B){return C(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Y(B){return C(B)===l}function Z(B){return C(B)===r}function J(B){return C(B)===v}function te(B){return C(B)===f}function ae(B){return C(B)===t}function fe(B){return C(B)===a}function de(B){return C(B)===n}function ve(B){return C(B)===u}function we(B){return C(B)===d}ct.ContextConsumer=x,ct.ContextProvider=R,ct.Element=w,ct.ForwardRef=$,ct.Fragment=N,ct.Lazy=F,ct.Memo=j,ct.Portal=A,ct.Profiler=M,ct.StrictMode=H,ct.Suspense=T,ct.SuspenseList=O,ct.isAsyncMode=V,ct.isConcurrentMode=k,ct.isContextConsumer=K,ct.isContextProvider=W,ct.isElement=q,ct.isForwardRef=Y,ct.isFragment=Z,ct.isLazy=J,ct.isMemo=te,ct.isPortal=ae,ct.isProfiler=fe,ct.isStrictMode=de,ct.isSuspense=ve,ct.isSuspenseList=we,ct.isValidElementType=E,ct.typeOf=C}()),ct}process.env.NODE_ENV==="production"?Li.exports=Mv():Li.exports=Av();var la=Li.exports;function $r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return P.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat($r(n)):la.isFragment(n)&&n.props?r=r.concat($r(n.props.children,t)):r.push(n))}),r}var Di={},Gs=[],jv=function(t){Gs.push(t)};function Tn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Gs.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Fv(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Gs.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Pu(){Di={}}function _u(e,t,r){!t&&!Di[r]&&(e(!1,r),Di[r]=!0)}function at(e,t){_u(Tn,e,t)}function Lv(e,t){_u(Fv,e,t)}at.preMessage=jv;at.resetWarned=Pu;at.noteOnce=Lv;function Ne(e){"@babel/helpers - typeof";return Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ne(e)}function Dv(e,t){if(Ne(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ne(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tu(e){var t=Dv(e,"string");return Ne(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Tu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tl(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function va(e){return e instanceof HTMLElement||e instanceof SVGElement}function zv(e){return e&&Ne(e)==="object"&&va(e.nativeElement)?e.nativeElement:va(e)?e:null}function ao(e){var t=zv(e);if(t)return t;if(e instanceof P.Component){var r;return(r=_n.findDOMNode)===null||r===void 0?void 0:r.call(_n,e)}return null}function No(e,t,r){var n=c.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Us=function(t,r){typeof t=="function"?t(r):Ne(t)==="object"&&t&&"current"in t&&(t.current=r)},Or=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){Us(i,o)})}},_a=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return No(function(){return Or.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},on=function(t){var r,n,a=la.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==la.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==la.ForwardRef)};function Nl(e){return P.isValidElement(e)&&!la.isFragment(e)}Number(P.version.split(".")[0])>=19;var zi=c.createContext(null);function Vv(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(zi),i=c.useCallback(function(s,l,u){n.current+=1;var d=n.current;a.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){d===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,l,u)},[r,o]);return c.createElement(zi.Provider,{value:i},t)}var Nu=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,o){return a[0]===r?(n=o,!0):!1}),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(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];r.call(n,i[1],i[0])}},t}()}(),Vi=typeof window<"u"&&typeof document<"u"&&window.document===document,po=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Bv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(po):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),kv=2;function Hv(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){Bv(o)}function s(){var l=Date.now();if(r){if(l-a<kv)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var Wv=20,Gv=["top","right","bottom","left","width","height","size","weight"],Uv=typeof MutationObserver<"u",Kv=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Hv(this.refresh.bind(this),Wv)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Vi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Uv?(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(){!Vi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=Gv.some(function(o){return!!~n.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Iu=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Nn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||po},Mu=Io(0,0,0,0);function ho(e){return parseFloat(e)||0}function Il(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var o=e["border-"+a+"-width"];return n+ho(o)},0)}function qv(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var o=a[n],i=e["padding-"+o];r[o]=ho(i)}return r}function Xv(e){var t=e.getBBox();return Io(0,0,t.width,t.height)}function Yv(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Mu;var n=Nn(e).getComputedStyle(e),a=qv(n),o=a.left+a.right,i=a.top+a.bottom,s=ho(n.width),l=ho(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Il(n,"left","right")+o),Math.round(l+i)!==r&&(l-=Il(n,"top","bottom")+i)),!Zv(e)){var u=Math.round(s+o)-t,d=Math.round(l+i)-r;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return Io(a.left,a.top,s,l)}var Qv=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Nn(e).SVGGraphicsElement}:function(e){return e instanceof Nn(e).SVGElement&&typeof e.getBBox=="function"}}();function Zv(e){return e===Nn(e).document.documentElement}function Jv(e){return Vi?Qv(e)?Xv(e):Yv(e):Mu}function eg(e){var t=e.x,r=e.y,n=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return Iu(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function Io(e,t,r,n){return{x:e,y:t,width:r,height:n}}var tg=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Io(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Jv(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),rg=function(){function e(t,r){var n=eg(r);Iu(this,{target:t,contentRect:n})}return e}(),ng=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Nu,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new tg(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new rg(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Au=typeof WeakMap<"u"?new WeakMap:new Nu,ju=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Kv.getInstance(),n=new ng(t,r,this);Au.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ju.prototype[e]=function(){var t;return(t=Au.get(this))[e].apply(t,arguments)}});var ag=function(){return typeof po.ResizeObserver<"u"?po.ResizeObserver:ju}(),Mr=new Map;function Fu(e){e.forEach(function(t){var r,n=t.target;(r=Mr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Lu=new ag(Fu);process.env.NODE_ENV;process.env.NODE_ENV;function og(e,t){Mr.has(e)||(Mr.set(e,new Set),Lu.observe(e)),Mr.get(e).add(t)}function ig(e,t){Mr.has(e)&&(Mr.get(e).delete(t),Mr.get(e).size||(Lu.unobserve(e),Mr.delete(e)))}function jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ml(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tu(n.key),n)}}function Ft(e,t,r){return t&&Ml(e.prototype,t),r&&Ml(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ga(e,t){return ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ga(e,t)}function qr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ga(e,t)}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ma(e)}function Ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ks=function(){return!!e})()}function We(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sg(e,t){if(t&&(Ne(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function Xr(e){var t=Ks();return function(){var r,n=ma(e);if(t){var a=ma(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return sg(this,r)}}var lg=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function cg(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(zi),s=typeof r=="function",l=s?r(a):r,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&on(l),f=d?l.ref:null,v=_a(f,a),b=function(){var S;return ao(a.current)||(a.current&&Ne(a.current)==="object"?ao((S=a.current)===null||S===void 0?void 0:S.nativeElement):null)||ao(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(g){var S=h.current,m=S.onResize,y=S.data,E=g.getBoundingClientRect(),C=E.width,x=E.height,R=g.offsetWidth,w=g.offsetHeight,$=Math.floor(C),N=Math.floor(x);if(u.current.width!==$||u.current.height!==N||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var F={width:$,height:N,offsetWidth:R,offsetHeight:w};u.current=F;var j=R===Math.round(C)?C:R,A=w===Math.round(x)?x:w,M=z(z({},F),{},{offsetWidth:j,offsetHeight:A});i==null||i(M,g,y),m&&Promise.resolve().then(function(){m(M,g)})}},[]);return c.useEffect(function(){var g=b();return g&&!n&&og(g,p),function(){return ig(g,p)}},[a.current,n]),c.createElement(lg,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var Du=c.forwardRef(cg);process.env.NODE_ENV!=="production"&&(Du.displayName="SingleObserver");var ug="rc-observer-key";function dg(e,t){var r=e.children,n=typeof r=="function"?[r]:$r(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Tn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Tn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(ug,"-").concat(o);return c.createElement(Du,Oe({},e,{key:i,ref:o===0?t:void 0}),a)})}var vr=c.forwardRef(dg);process.env.NODE_ENV!=="production"&&(vr.displayName="ResizeObserver");vr.Collection=Vv;function hr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Bi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function fg(e){if(Array.isArray(e))return Bi(e)}function zu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qs(e,t){if(e){if(typeof e=="string")return Bi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bi(e,t):void 0}}function vg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
51
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e){return
|
|
52
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Hu(e)||gg(e,t)||qs(e,t)||Wu()}function pa(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Kt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function mg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var jl="data-rc-order",Fl="data-rc-priority",pg="rc-util-key",ki=new Map;function Gu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):pg}function Ao(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function hg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xs(e){return Array.from((ki.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Uu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Kt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=hg(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(jl,i),s&&o&&l.setAttribute(Fl,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=Ao(t),d=u.firstChild;if(n){if(s){var f=(t.styles||Xs(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(jl)))return!1;var b=Number(v.getAttribute(Fl)||0);return o>=b});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function Ku(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ao(t);return(t.styles||Xs(r)).find(function(n){return n.getAttribute(Gu(t))===e})}function ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ku(e,t);if(r){var n=Ao(t);n.removeChild(r)}}function bg(e,t){var r=ki.get(e);if(!r||!mg(document,r)){var n=Uu("",t),a=n.parentNode;ki.set(e,a),e.removeChild(n)}}function Ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ao(r),a=Xs(n),o=z(z({},r),{},{styles:a});bg(n,o);var i=Ku(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Uu(e,o);return d.setAttribute(Gu(o),t),d}function yg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Je(e,t){if(e==null)return{};var r,n,a=yg(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ba(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(at(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d<o.length;d++)if(!a(o[d],i[d],u))return!1;return!0}if(o&&i&&Ne(o)==="object"&&Ne(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],u)})}return!1}return a(e,t)}var Sg="%";function Hi(e){return e.join(Sg)}var Cg=function(){function e(t){jt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Ft(e,[{key:"get",value:function(r){return this.opGet(Hi(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Hi(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),In="data-token-hash",gr="data-css-hash",Eg="data-cache-path",Gr="__cssinjs_instance__";function xg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(gr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Gr]=a[Gr]||e,a[Gr]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(gr,"]"))).forEach(function(a){var o=a.getAttribute(gr);if(n[o]){if(a[Gr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new Cg(e)}var wg=c.createContext({hashPriority:"low",cache:xg(),defaultCache:!0});const jo=wg;function $g(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ys=function(){function e(){jt(this,e),L(this,"cache",void 0),L(this,"keys",void 0),L(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ft(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=U(u,2),v=f[1];return a.internalGet(d)[1]<v?[d,a.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=U(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(u,d){if(d===r.length-1)l.set(u,{value:[n,a.cacheCallTimes++]});else{var f=l.get(u);f?f.map||(f.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!$g(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(Ys,"MAX_CACHE_SIZE",20);L(Ys,"MAX_CACHE_OFFSET",5);var Ll=0,qu=function(){function e(t){jt(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ll,t.length===0&&Tn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ll+=1}return Ft(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ni=new Ys;function Wi(e){var t=Array.isArray(e)?e:[e];return ni.has(t)||ni.set(t,new qu(t)),ni.get(t)}var Og=new WeakMap,ai={};function Rg(e,t){for(var r=Og,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(ai)||r.set(ai,e()),r.get(ai)}var Dl=new WeakMap;function ca(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Dl.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof qu?r+=a.id:a&&Ne(a)==="object"?r+=ca(a,t):r+=a}),t&&(r=pa(r)),Dl.set(e,r)),r}function zl(e,t){return pa("".concat(t,"_").concat(ca(e,!0)))}var Gi=Kt();function ee(e){return typeof e=="number"?"".concat(e,"px"):e}function bo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=z(z({},n),{},L(L({},In,t),gr,r)),i=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var oo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Pg=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=U(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Xu=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,u=U(i,2),d=u[0],f=u[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var v,b=oo(d,n==null?void 0:n.prefix);a[b]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(b,")")}}),[o,Pg(a,r,{scope:n==null?void 0:n.scope})]},Vl=process.env.NODE_ENV!=="test"&&Kt()?c.useLayoutEffect:c.useEffect,yt=function(t,r){var n=c.useRef(!0);Vl(function(){return t(n.current)},r),Vl(function(){return n.current=!1,function(){n.current=!0}},[])},Ui=function(t,r){yt(function(n){if(!n)return t()},r)},_g=z({},c),Bl=_g.useInsertionEffect,Tg=function(t,r,n){c.useMemo(t,n),yt(function(){return r(!0)},n)},Ng=Bl?function(e,t,r){return Bl(function(){return e(),t()},r)}:Tg;const Ig=Ng;var Mg=z({},c),Ag=Mg.useInsertionEffect,jg=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&Tn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return c.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},Fg=function(){return function(t){t()}},Lg=typeof Ag<"u"?jg:Fg;const Dg=Lg;function zg(){return!1}var Ki=!1;function Vg(){return Ki}const Bg=process.env.NODE_ENV==="production"?zg:Vg;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var oi=window;if(typeof oi.webpackHotUpdate=="function"){var kg=oi.webpackHotUpdate;oi.webpackHotUpdate=function(){return Ki=!0,setTimeout(function(){Ki=!1},0),kg.apply(void 0,arguments)}}}function Qs(e,t,r,n,a){var o=c.useContext(jo),i=o.cache,s=[e].concat(ye(t)),l=Hi(s),u=Dg([l]),d=Bg(),f=function(p){i.opUpdate(l,function(g){var S=g||[void 0,void 0],m=U(S,2),y=m[0],E=y===void 0?0:y,C=m[1],x=C;process.env.NODE_ENV!=="production"&&C&&d&&(n==null||n(x,d),x=null);var R=x||r(),w=[E,R];return p?p(w):w})};c.useMemo(function(){f()},[l]);var v=i.opGet(l);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.opGet(l));var b=v[1];return Ig(function(){a==null||a(b)},function(h){return f(function(p){var g=U(p,2),S=g[0],m=g[1];return h&&S===0&&(a==null||a(b)),[S+1,m]}),function(){i.opUpdate(l,function(p){var g=p||[],S=U(g,2),m=S[0],y=m===void 0?0:m,E=S[1],C=y-1;return C===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(E,!1))}),null):[y-1,E]})}},[l]),b}var Hg={},Wg=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",tn=new Map;function Gg(e){tn.set(e,(tn.get(e)||0)+1)}function Ug(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(In,'="').concat(e,'"]'));r.forEach(function(n){if(n[Gr]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Kg=0;function qg(e,t){tn.set(e,(tn.get(e)||0)-1);var r=Array.from(tn.keys()),n=r.filter(function(a){var o=tn.get(a)||0;return o<=0});r.length-n.length>Kg&&n.forEach(function(a){Ug(a,t),tn.delete(a)})}var Xg=function(t,r,n,a){var o=n.getDerivativeToken(t),i=z(z({},o),r);return a&&(i=a(i)),i},Yu="token";function Yg(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(jo),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?Hg:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=Rg(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),h=ca(b),p=ca(u),g=v?ca(v):"",S=Qs(Yu,[s,e.id,h,p,g],function(){var m,y=f?f(b,u,e):Xg(b,u,e,d),E=z({},y),C="";if(v){var x=Xu(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(x,2);y=R[0],C=R[1]}var w=zl(y,s);y._tokenKey=w,E._tokenKey=zl(E,s);var $=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:w;y._themeKey=$,Gg($);var N="".concat(Wg,"-").concat(pa(w));return y._hashId=N,[y,N,E,C,(v==null?void 0:v.key)||""]},function(m){qg(m[0]._themeKey,a)},function(m){var y=U(m,4),E=y[0],C=y[3];if(v&&C){var x=Ar(C,pa("css-variables-".concat(E._themeKey)),{mark:gr,prepend:"queue",attachTo:o,priority:-999});x[Gr]=a,x.setAttribute(In,E._themeKey)}});return S}var Qg=function(t,r,n){var a=U(t,5),o=a[2],i=a[3],s=a[4],l=n||{},u=l.plain;if(!i)return null;var d=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=bo(i,s,d,v,u);return[f,d,b]},Zg={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},Qu="comm",Zu="rule",Ju="decl",Jg="@import",em="@keyframes",tm="@layer",ed=Math.abs,Zs=String.fromCharCode;function td(e){return e.trim()}function io(e,t,r){return e.replace(t,r)}function rm(e,t,r){return e.indexOf(t,r)}function ya(e,t){return e.charCodeAt(t)|0}function Mn(e,t,r){return e.slice(t,r)}function xr(e){return e.length}function nm(e){return e.length}function Ba(e,t){return t.push(e),e}var Fo=1,An=1,rd=0,ir=0,Ot=0,zn="";function Js(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Fo,column:An,length:i,return:"",siblings:s}}function am(){return Ot}function om(){return Ot=ir>0?ya(zn,--ir):0,An--,Ot===10&&(An=1,Fo--),Ot}function mr(){return Ot=ir<rd?ya(zn,ir++):0,An++,Ot===10&&(An=1,Fo++),Ot}function Ur(){return ya(zn,ir)}function so(){return ir}function Lo(e,t){return Mn(zn,e,t)}function Sa(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 im(e){return Fo=An=1,rd=xr(zn=e),ir=0,[]}function sm(e){return zn="",e}function ii(e){return td(Lo(ir-1,qi(e===91?e+2:e===40?e+1:e)))}function lm(e){for(;(Ot=Ur())&&Ot<33;)mr();return Sa(e)>2||Sa(Ot)>3?"":" "}function cm(e,t){for(;--t&&mr()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Lo(e,so()+(t<6&&Ur()==32&&mr()==32))}function qi(e){for(;mr();)switch(Ot){case e:return ir;case 34:case 39:e!==34&&e!==39&&qi(Ot);break;case 40:e===41&&qi(e);break;case 92:mr();break}return ir}function um(e,t){for(;mr()&&e+Ot!==57;)if(e+Ot===84&&Ur()===47)break;return"/*"+Lo(t,ir-1)+"*"+Zs(e===47?e:mr())}function dm(e){for(;!Sa(Ur());)mr();return Lo(e,ir)}function fm(e){return sm(lo("",null,null,null,[""],e=im(e),0,[0],e))}function lo(e,t,r,n,a,o,i,s,l){for(var u=0,d=0,f=i,v=0,b=0,h=0,p=1,g=1,S=1,m=0,y="",E=a,C=o,x=n,R=y;g;)switch(h=m,m=mr()){case 40:if(h!=108&&ya(R,f-1)==58){rm(R+=io(ii(m),"&","&\f"),"&\f",ed(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=ii(m);break;case 9:case 10:case 13:case 32:R+=lm(h);break;case 92:R+=cm(so()-1,7);continue;case 47:switch(Ur()){case 42:case 47:Ba(vm(um(mr(),so()),t,r,l),l),(Sa(h||1)==5||Sa(Ur()||1)==5)&&xr(R)&&Mn(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=xr(R)*S;case 125*p:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+d:S==-1&&(R=io(R,/\f/g,"")),b>0&&(xr(R)-f||p===0&&h===47)&&Ba(b>32?Hl(R+";",n,r,f-1,l):Hl(io(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(Ba(x=kl(R,t,r,u,d,a,s,y,E=[],C=[],f,o),o),m===123)if(d===0)lo(R,t,x,x,E,o,f,s,C);else switch(v===99&&ya(R,3)===110?100:v){case 100:case 108:case 109:case 115:lo(e,x,x,n&&Ba(kl(e,x,x,0,0,a,s,y,a,E=[],f,C),C),a,C,f,s,n?E:C);break;default:lo(R,x,x,x,[""],C,0,s,C)}}u=d=b=0,p=S=1,y=R="",f=i;break;case 58:f=1+xr(R),b=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&om()==125)continue}switch(R+=Zs(m),m*p){case 38:S=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(xr(R)-1)*S,S=1;break;case 64:Ur()===45&&(R+=ii(mr())),v=Ur(),d=f=xr(y=R+=dm(so())),m++;break;case 45:h===45&&xr(R)==2&&(p=0)}}return o}function kl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=nm(b),p=0,g=0,S=0;p<n;++p)for(var m=0,y=Mn(e,v+1,v=ed(g=i[p])),E=e;m<h;++m)(E=td(g>0?b[m]+" "+y:io(y,/&\f/g,b[m])))&&(l[S++]=E);return Js(e,t,r,a===0?Zu:s,l,u,d,f)}function vm(e,t,r,n){return Js(e,t,r,Qu,Zs(am()),Mn(e,2,-2),0,n)}function Hl(e,t,r,n,a){return Js(e,t,r,Ju,Mn(e,0,n),Mn(e,n+1,-1),n,a)}function Xi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function gm(e,t,r,n){switch(e.type){case tm:if(e.children.length)break;case Jg:case Ju:return e.return=e.return||e.value;case Qu:return"";case em:return e.return=e.value+"{"+Xi(e.children,n)+"}";case Zu:if(!xr(e.value=e.props.join(",")))return""}return xr(r=Xi(e.children,n))?e.return=e.value+"{"+r+"}":""}function nd(e,t){var r=t.path,n=t.parentSelectors;at(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var mm=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&nd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},pm=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&nd("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Wl="data-ant-cssinjs-cache-path",ad="_FILE_STYLE__",an,od=!0;function hm(){if(!an&&(an={},Kt())){var e=document.createElement("div");e.className=Wl,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=U(o,2),s=i[0],l=i[1];an[s]=l});var r=document.querySelector("style[".concat(Wl,"]"));if(r){var n;od=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function bm(e){return hm(),!!an[e]}function ym(e){var t=an[e],r=null;if(t&&Kt())if(od)r=ad;else{var n=document.querySelector("style[".concat(gr,'="').concat(an[e],'"]'));n?r=n.innerHTML:delete an[e]}return[r,t]}var id="_skip_check_",sd="_multi_value_";function co(e){var t=Xi(fm(e),gm);return t.replace(/\{%%%\:[^;];}/g,";")}function Sm(e){return Ne(e)==="object"&&e&&(id in e||sd in e)}function Gl(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),u=l[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(ye(l.slice(1))).join(" ")});return o.join(",")}var Cm=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,u=r.path,d=r.hashPriority,f=r.transformers,v=f===void 0?[]:f,b=r.linters,h=b===void 0?[]:b,p="",g={};function S(E){var C=E.getName(s);if(!g[C]){var x=e(E.style,r,{root:!1,parentSelectors:i}),R=U(x,1),w=R[0];g[C]="@keyframes ".concat(E.getName(s)).concat(w)}}function m(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(x){Array.isArray(x)?m(x,C):x&&C.push(x)}),C}var y=m(Array.isArray(t)?t:[t]);return y.forEach(function(E){var C=typeof E=="string"&&!a?{}:E;if(typeof C=="string")p+="".concat(C,`
|
|
53
|
-
`);else if(C._keyframe)S(C);else{var x=v.reduce(function(R,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,R))||R},C);Object.keys(x).forEach(function(R){var w=x[R];if(Ne(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!
|
|
54
|
-
`))):p="{".concat(p,"}"),[p,g]};function ld(e,t){return pa("".concat(e.join("%")).concat(t))}function Em(){return null}var cd="style";function Yi(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,d=c.useContext(jo),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,g=d.ssrInline,S=d.transformers,m=d.linters,y=d.cache,E=d.layer,C=r._tokenKey,x=[C];E&&x.push("layer"),x.push.apply(x,ye(n));var R=Gi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=Qs(cd,x,function(){var A=x.join("|");if(bm(A)){var M=ym(A),H=U(M,2),T=H[0],O=H[1];if(T)return[T,C,O,{},s,u]}var I=t(),D=Cm(I,{hashId:a,hashPriority:h,layer:E?o:void 0,path:n.join("-"),transformers:S,linters:m}),V=U(D,2),k=V[0],K=V[1],W=co(k),q=ld(x,W);return[W,C,q,K,s,u]},function(A,M){var H=U(A,3),T=H[2];(M||f)&&Gi&&ha(T,{mark:gr})},function(A){var M=U(A,4),H=M[0];M[1];var T=M[2],O=M[3];if(R&&H!==ad){var I={mark:gr,prepend:E?!1:"queue",attachTo:p,priority:u},D=typeof i=="function"?i():i;D&&(I.csp={nonce:D});var V=[],k=[];Object.keys(O).forEach(function(W){W.startsWith("@layer")?V.push(W):k.push(W)}),V.forEach(function(W){Ar(co(O[W]),"_layer-".concat(W),z(z({},I),{},{prepend:!0}))});var K=Ar(H,T,I);K[Gr]=y.instanceId,K.setAttribute(In,C),process.env.NODE_ENV!=="production"&&K.setAttribute(Eg,x.join("|")),k.forEach(function(W){Ar(co(O[W]),"_effect-".concat(W),I)})}}),$=U(w,3),N=$[0],F=$[1],j=$[2];return function(A){var M;return!g||R||!b?M=c.createElement(Em,null):M=c.createElement("style",Oe({},L(L({},In,F),gr,j),{dangerouslySetInnerHTML:{__html:N}})),c.createElement(c.Fragment,null,M,A)}}var xm=function(t,r,n){var a=U(t,6),o=a[0],i=a[1],s=a[2],l=a[3],u=a[4],d=a[5],f=n||{},v=f.plain;if(u)return null;var b=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=bo(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var g=co(l[p]),S=bo(g,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=S+b:b+=S}}),[d,s,b]},ud="cssVar",wm=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=P.useContext(jo),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(ye(t.path),[n,u,b]),p=Qs(ud,h,function(){var g=r(),S=Xu(g,n,{prefix:a,unitless:o,ignore:i,scope:u}),m=U(S,2),y=m[0],E=m[1],C=ld(h,E);return[y,E,C,n]},function(g){var S=U(g,3),m=S[2];Gi&&ha(m,{mark:gr})},function(g){var S=U(g,3),m=S[1],y=S[2];if(m){var E=Ar(m,y,{mark:gr,prepend:"queue",attachTo:v,priority:-999});E[Gr]=f,E.setAttribute(In,n)}});return p},$m=function(t,r,n){var a=U(t,4),o=a[1],i=a[2],s=a[3],l=n||{},u=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=bo(o,s,i,f,u);return[d,i,v]};L(L(L({},cd,xm),Yu,Qg),ud,$m);var $t=function(){function e(t,r){jt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Ft(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function fn(e){return e.notSplit=!0,e}fn(["borderTop","borderBottom"]),fn(["borderTop"]),fn(["borderBottom"]),fn(["borderLeft","borderRight"]),fn(["borderLeft"]),fn(["borderRight"]);var el=P.createContext({});function Om(e){return Hu(e)||zu(e)||qs(e)||Wu()}function wr(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function dd(e,t,r,n){if(!t.length)return r;var a=Om(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=ye(e):s=z({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=dd(s[o],i,r,n),s}function dr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!wr(e,t.slice(0,-1))?e:dd(e,t,r,n)}function Rm(e){return Ne(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ul(e){return Array.isArray(e)?[]:{}}var Pm=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Ul(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=wr(a,i),d=Array.isArray(u);if(d||Rm(u)){if(!l.has(u)){l.add(u);var f=wr(n,i);d?n=dr(n,i,[]):(!f||Ne(f)!=="object")&&(n=dr(n,i,Ul(u))),Pm(u).forEach(function(v){o([].concat(ye(i),[v]),l)})}}else n=dr(n,i,u)}o([])}),n}function fd(){}let Ir=null;function _m(){Ir=null,Pu()}let tl=fd;process.env.NODE_ENV!=="production"&&(tl=(e,t,r)=>{at(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&_m()});const vd=c.createContext({}),It=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(vd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Ir;Ir||(Ir={}),Ir[e]=Ir[e]||[],Ir[e].includes(o||"")||Ir[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ir)}else process.env.NODE_ENV!=="production"&&tl(n,e,o)};return r.deprecated=(n,a,o,i)=>{r(n,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=fd,e},Do=tl,Tm=P.createContext(void 0);var Nm={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"},Im={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Mm=z(z({},Im),{},{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 gd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Kl={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"]},Mm),timePickerLocale:Object.assign({},gd)},Yt="${label} is not a valid ${type}",jn={locale:"en",Pagination:Nm,DatePicker:Kl,TimePicker:gd,Calendar:Kl,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:Yt,method:Yt,array:Yt,object:Yt,number:Yt,date:Yt,boolean:Yt,integer:Yt,float:Yt,regexp:Yt,email:Yt,url:Yt,hex:Yt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},jn.Modal);let uo=[];const ql=()=>uo.reduce((e,t)=>Object.assign(Object.assign({},e),t),jn.Modal);function Am(e){if(e){const t=Object.assign({},e);return uo.push(t),ql(),()=>{uo=uo.filter(r=>r!==t),ql()}}Object.assign({},jn.Modal)}const rl=P.createContext(void 0),jm=(e,t)=>{const r=c.useContext(rl),n=c.useMemo(()=>{var o;const i=jn[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=c.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?jn.locale:o},[r]);return[n,a]},md="internalMark",pd=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=It("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===md,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Am(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(rl.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(pd.displayName="LocaleProvider");function At(e,t){Fm(e)&&(e="100%");var r=Lm(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ka(e){return Math.min(1,Math.max(0,e))}function Fm(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Lm(e){return typeof e=="string"&&e.indexOf("%")!==-1}function hd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ha(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rn(e){return e.length===1?"0"+e:String(e)}function Dm(e,t,r){return{r:At(e,255)*255,g:At(t,255)*255,b:At(r,255)*255}}function Xl(e,t,r){e=At(e,255),t=At(t,255),r=At(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function si(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function zm(e,t,r){var n,a,o;if(e=At(e,360),t=At(t,100),r=At(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=si(s,i,e+1/3),a=si(s,i,e),o=si(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function Qi(e,t,r){e=At(e,255),t=At(t,255),r=At(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function Vm(e,t,r){e=At(e,360)*6,t=At(t,100),r=At(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,i,o,o,s,r][l],d=[s,r,r,i,o,o][l],f=[o,o,s,r,r,i][l];return{r:u*255,g:d*255,b:f*255}}function Zi(e,t,r,n){var a=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Bm(e,t,r,n,a){var o=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16)),rn(km(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function km(e){return Math.round(parseFloat(e)*255).toString(16)}function Yl(e){return Zt(e)/255}function Zt(e){return parseInt(e,16)}function Hm(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ji={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 En(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Um(e)),typeof e=="object"&&(Tr(e.r)&&Tr(e.g)&&Tr(e.b)?(t=Dm(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Tr(e.h)&&Tr(e.s)&&Tr(e.v)?(n=Ha(e.s),a=Ha(e.v),t=Vm(e.h,n,a),i=!0,s="hsv"):Tr(e.h)&&Tr(e.s)&&Tr(e.l)&&(n=Ha(e.s),o=Ha(e.l),t=zm(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=hd(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Wm="[-\\+]?\\d+%?",Gm="[-\\+]?\\d*\\.\\d+%?",Kr="(?:".concat(Gm,")|(?:").concat(Wm,")"),li="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),ci="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),ur={CSS_UNIT:new RegExp(Kr),rgb:new RegExp("rgb"+li),rgba:new RegExp("rgba"+ci),hsl:new RegExp("hsl"+li),hsla:new RegExp("hsla"+ci),hsv:new RegExp("hsv"+li),hsva:new RegExp("hsva"+ci),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 Um(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ji[e])e=Ji[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ur.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ur.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ur.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ur.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ur.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ur.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ur.hex8.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),a:Yl(r[4]),format:t?"name":"hex8"}:(r=ur.hex6.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),format:t?"name":"hex"}:(r=ur.hex4.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),a:Yl(r[4]+r[4]),format:t?"name":"hex8"}:(r=ur.hex3.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Tr(e){return!!ur.CSS_UNIT.exec(String(e))}var Jt=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Hm(t)),this.originalInput=t;var a=En(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=hd(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Qi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Qi(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Xl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Xl(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Zi(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Bm(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(At(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(At(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Zi(this.r,this.g,this.b,!1),r=0,n=Object.entries(Ji);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=ka(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ka(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=ka(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ka(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Wa=2,Ql=.16,Km=.05,qm=.05,Xm=.15,bd=5,yd=4,Ym=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Zl(e){var t=e.r,r=e.g,n=e.b,a=Qi(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Ga(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Zi(t,r,n,!1))}function Qm(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function Jl(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Wa*t:Math.round(e.h)+Wa*t:n=r?Math.round(e.h)+Wa*t:Math.round(e.h)-Wa*t,n<0?n+=360:n>=360&&(n-=360),n}function ec(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Ql*t:t===yd?n=e.s+Ql:n=e.s+Km*t,n>1&&(n=1),r&&t===bd&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function tc(e,t,r){var n;return r?n=e.v+qm*t:n=e.v-Xm*t,n>1&&(n=1),Number(n.toFixed(2))}function Ca(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=En(e),a=bd;a>0;a-=1){var o=Zl(n),i=Ga(En({h:Jl(o,a,!0),s:ec(o,a,!0),v:tc(o,a,!0)}));r.push(i)}r.push(Ga(n));for(var s=1;s<=yd;s+=1){var l=Zl(n),u=Ga(En({h:Jl(l,s),s:ec(l,s),v:tc(l,s)}));r.push(u)}return t.theme==="dark"?Ym.map(function(d){var f=d.index,v=d.opacity,b=Ga(Qm(En(t.backgroundColor||"#141414"),En(r[f]),v*100));return b}):r}var ui={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"},es=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];es.primary=es[5];var ts=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ts.primary=ts[5];var rs=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];rs.primary=rs[5];var yo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yo.primary=yo[5];var ns=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ns.primary=ns[5];var as=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];as.primary=as[5];var os=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];os.primary=os[5];var is=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];is.primary=is[5];var So=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];So.primary=So[5];var ss=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ss.primary=ss[5];var ls=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ls.primary=ls[5];var cs=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];cs.primary=cs[5];var us=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];us.primary=us[5];var di={red:es,volcano:ts,orange:rs,gold:yo,yellow:ns,lime:as,green:os,cyan:is,blue:So,geekblue:ss,purple:ls,magenta:cs,grey:us};const Sd={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"},Ea=Object.assign(Object.assign({},Sd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
21
|
+
*/var Rl;function Iv(){return Rl||(Rl=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=!1,p=!1,g=!1,S=!1,m=!1,y;y=Symbol.for("react.module.reference");function E(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===a||m||B===n||B===u||B===d||S||B===b||h||p||g||typeof B=="object"&&B!==null&&(B.$$typeof===v||B.$$typeof===f||B.$$typeof===o||B.$$typeof===i||B.$$typeof===l||B.$$typeof===y||B.getModuleId!==void 0))}function C(B){if(typeof B=="object"&&B!==null){var ce=B.$$typeof;switch(ce){case e:var se=B.type;switch(se){case r:case a:case n:case u:case d:return se;default:var Ce=se&&se.$$typeof;switch(Ce){case s:case i:case l:case v:case f:case o:return Ce;default:return ce}}case t:return ce}}}var x=i,R=o,w=e,$=l,N=r,F=v,j=f,A=t,M=a,H=n,T=u,O=d,I=!1,D=!1;function V(B){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(B){return C(B)===i}function W(B){return C(B)===o}function q(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function Y(B){return C(B)===l}function Z(B){return C(B)===r}function J(B){return C(B)===v}function te(B){return C(B)===f}function ae(B){return C(B)===t}function fe(B){return C(B)===a}function de(B){return C(B)===n}function ve(B){return C(B)===u}function we(B){return C(B)===d}ct.ContextConsumer=x,ct.ContextProvider=R,ct.Element=w,ct.ForwardRef=$,ct.Fragment=N,ct.Lazy=F,ct.Memo=j,ct.Portal=A,ct.Profiler=M,ct.StrictMode=H,ct.Suspense=T,ct.SuspenseList=O,ct.isAsyncMode=V,ct.isConcurrentMode=k,ct.isContextConsumer=K,ct.isContextProvider=W,ct.isElement=q,ct.isForwardRef=Y,ct.isFragment=Z,ct.isLazy=J,ct.isMemo=te,ct.isPortal=ae,ct.isProfiler=fe,ct.isStrictMode=de,ct.isSuspense=ve,ct.isSuspenseList=we,ct.isValidElementType=E,ct.typeOf=C}()),ct}process.env.NODE_ENV==="production"?Fi.exports=Nv():Fi.exports=Iv();var la=Fi.exports;function $r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return P.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat($r(n)):la.isFragment(n)&&n.props?r=r.concat($r(n.props.children,t)):r.push(n))}),r}var Li={},Gs=[],Mv=function(t){Gs.push(t)};function Tn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Gs.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Av(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Gs.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Pu(){Li={}}function _u(e,t,r){!t&&!Li[r]&&(e(!1,r),Li[r]=!0)}function at(e,t){_u(Tn,e,t)}function jv(e,t){_u(Av,e,t)}at.preMessage=Mv;at.resetWarned=Pu;at.noteOnce=jv;function Ne(e){"@babel/helpers - typeof";return Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ne(e)}function Fv(e,t){if(Ne(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ne(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tu(e){var t=Fv(e,"string");return Ne(t)=="symbol"?t:t+""}function L(e,t,r){return(t=Tu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pl(Object(r),!0).forEach(function(n){L(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function va(e){return e instanceof HTMLElement||e instanceof SVGElement}function Lv(e){return e&&Ne(e)==="object"&&va(e.nativeElement)?e.nativeElement:va(e)?e:null}function ao(e){var t=Lv(e);if(t)return t;if(e instanceof P.Component){var r;return(r=_n.findDOMNode)===null||r===void 0?void 0:r.call(_n,e)}return null}function No(e,t,r){var n=c.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Us=function(t,r){typeof t=="function"?t(r):Ne(t)==="object"&&t&&"current"in t&&(t.current=r)},Or=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(o){r.forEach(function(i){Us(i,o)})}},_a=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return No(function(){return Or.apply(void 0,r)},r,function(a,o){return a.length!==o.length||a.every(function(i,s){return i!==o[s]})})},on=function(t){var r,n,a=la.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==la.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==la.ForwardRef)};function _l(e){return P.isValidElement(e)&&!la.isFragment(e)}Number(P.version.split(".")[0])>=19;var Di=c.createContext(null);function Dv(e){var t=e.children,r=e.onBatchResize,n=c.useRef(0),a=c.useRef([]),o=c.useContext(Di),i=c.useCallback(function(s,l,u){n.current+=1;var d=n.current;a.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){d===n.current&&(r==null||r(a.current),a.current=[])}),o==null||o(s,l,u)},[r,o]);return c.createElement(Di.Provider,{value:i},t)}var Nu=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,o){return a[0]===r?(n=o,!0):!1}),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(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,o=this.__entries__;a<o.length;a++){var i=o[a];r.call(n,i[1],i[0])}},t}()}(),zi=typeof window<"u"&&typeof document<"u"&&window.document===document,po=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),zv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(po):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Vv=2;function Bv(e,t){var r=!1,n=!1,a=0;function o(){r&&(r=!1,e()),n&&s()}function i(){zv(o)}function s(){var l=Date.now();if(r){if(l-a<Vv)return;n=!0}else r=!0,n=!1,setTimeout(i,t);a=l}return s}var kv=20,Hv=["top","right","bottom","left","width","height","size","weight"],Wv=typeof MutationObserver<"u",Gv=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Bv(this.refresh.bind(this),kv)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!zi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Wv?(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(){!zi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=Hv.some(function(o){return!!~n.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Iu=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Nn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||po},Mu=Io(0,0,0,0);function ho(e){return parseFloat(e)||0}function Tl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var o=e["border-"+a+"-width"];return n+ho(o)},0)}function Uv(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var o=a[n],i=e["padding-"+o];r[o]=ho(i)}return r}function Kv(e){var t=e.getBBox();return Io(0,0,t.width,t.height)}function qv(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Mu;var n=Nn(e).getComputedStyle(e),a=Uv(n),o=a.left+a.right,i=a.top+a.bottom,s=ho(n.width),l=ho(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Tl(n,"left","right")+o),Math.round(l+i)!==r&&(l-=Tl(n,"top","bottom")+i)),!Yv(e)){var u=Math.round(s+o)-t,d=Math.round(l+i)-r;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return Io(a.left,a.top,s,l)}var Xv=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Nn(e).SVGGraphicsElement}:function(e){return e instanceof Nn(e).SVGElement&&typeof e.getBBox=="function"}}();function Yv(e){return e===Nn(e).document.documentElement}function Qv(e){return zi?Xv(e)?Kv(e):qv(e):Mu}function Zv(e){var t=e.x,r=e.y,n=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return Iu(i,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),i}function Io(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Jv=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Io(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Qv(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),eg=function(){function e(t,r){var n=Zv(r);Iu(this,{target:t,contentRect:n})}return e}(),tg=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Nu,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Jv(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Nn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new eg(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Au=typeof WeakMap<"u"?new WeakMap:new Nu,ju=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Gv.getInstance(),n=new tg(t,r,this);Au.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ju.prototype[e]=function(){var t;return(t=Au.get(this))[e].apply(t,arguments)}});var rg=function(){return typeof po.ResizeObserver<"u"?po.ResizeObserver:ju}(),Mr=new Map;function Fu(e){e.forEach(function(t){var r,n=t.target;(r=Mr.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Lu=new rg(Fu);process.env.NODE_ENV;process.env.NODE_ENV;function ng(e,t){Mr.has(e)||(Mr.set(e,new Set),Lu.observe(e)),Mr.get(e).add(t)}function ag(e,t){Mr.has(e)&&(Mr.get(e).delete(t),Mr.get(e).size||(Lu.unobserve(e),Mr.delete(e)))}function jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tu(n.key),n)}}function Ft(e,t,r){return t&&Nl(e.prototype,t),r&&Nl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ga(e,t){return ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ga(e,t)}function qr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ga(e,t)}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ma(e)}function Ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ks=function(){return!!e})()}function We(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function og(e,t){if(t&&(Ne(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function Xr(e){var t=Ks();return function(){var r,n=ma(e);if(t){var a=ma(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return og(this,r)}}var ig=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function sg(e,t){var r=e.children,n=e.disabled,a=c.useRef(null),o=c.useRef(null),i=c.useContext(Di),s=typeof r=="function",l=s?r(a):r,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&on(l),f=d?l.ref:null,v=_a(f,a),b=function(){var S;return ao(a.current)||(a.current&&Ne(a.current)==="object"?ao((S=a.current)===null||S===void 0?void 0:S.nativeElement):null)||ao(o.current)};c.useImperativeHandle(t,function(){return b()});var h=c.useRef(e);h.current=e;var p=c.useCallback(function(g){var S=h.current,m=S.onResize,y=S.data,E=g.getBoundingClientRect(),C=E.width,x=E.height,R=g.offsetWidth,w=g.offsetHeight,$=Math.floor(C),N=Math.floor(x);if(u.current.width!==$||u.current.height!==N||u.current.offsetWidth!==R||u.current.offsetHeight!==w){var F={width:$,height:N,offsetWidth:R,offsetHeight:w};u.current=F;var j=R===Math.round(C)?C:R,A=w===Math.round(x)?x:w,M=z(z({},F),{},{offsetWidth:j,offsetHeight:A});i==null||i(M,g,y),m&&Promise.resolve().then(function(){m(M,g)})}},[]);return c.useEffect(function(){var g=b();return g&&!n&&ng(g,p),function(){return ag(g,p)}},[a.current,n]),c.createElement(ig,{ref:o},d?c.cloneElement(l,{ref:v}):l)}var Du=c.forwardRef(sg);process.env.NODE_ENV!=="production"&&(Du.displayName="SingleObserver");var lg="rc-observer-key";function cg(e,t){var r=e.children,n=typeof r=="function"?[r]:$r(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Tn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Tn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(lg,"-").concat(o);return c.createElement(Du,Oe({},e,{key:i,ref:o===0?t:void 0}),a)})}var vr=c.forwardRef(cg);process.env.NODE_ENV!=="production"&&(vr.displayName="ResizeObserver");vr.Collection=Dv;function hr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Vi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ug(e){if(Array.isArray(e))return Vi(e)}function zu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qs(e,t){if(e){if(typeof e=="string")return Vi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vi(e,t):void 0}}function dg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e){return ug(e)||zu(e)||qs(e)||dg()}var Vu=function(t){return+setTimeout(t,16)},Bu=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Vu=function(t){return window.requestAnimationFrame(t)},Bu=function(t){return window.cancelAnimationFrame(t)});var Il=0,Mo=new Map;function ku(e){Mo.delete(e)}var _t=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Il+=1;var n=Il;function a(o){if(o===0)ku(n),t();else{var i=Vu(function(){a(o-1)});Mo.set(n,i)}}return a(r),n};_t.cancel=function(e){var t=Mo.get(e);return ku(e),Bu(t)};process.env.NODE_ENV!=="production"&&(_t.ids=function(){return Mo});function Hu(e){if(Array.isArray(e))return e}function fg(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function Wu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return Hu(e)||fg(e,t)||qs(e,t)||Wu()}function pa(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Kt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function vg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Ml="data-rc-order",Al="data-rc-priority",gg="rc-util-key",Bi=new Map;function Gu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):gg}function Ao(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function mg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xs(e){return Array.from((Bi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Uu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Kt())return null;var r=t.csp,n=t.prepend,a=t.priority,o=a===void 0?0:a,i=mg(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Ml,i),s&&o&&l.setAttribute(Al,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var u=Ao(t),d=u.firstChild;if(n){if(s){var f=(t.styles||Xs(u)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Ml)))return!1;var b=Number(v.getAttribute(Al)||0);return o>=b});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function Ku(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ao(t);return(t.styles||Xs(r)).find(function(n){return n.getAttribute(Gu(t))===e})}function ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ku(e,t);if(r){var n=Ao(t);n.removeChild(r)}}function pg(e,t){var r=Bi.get(e);if(!r||!vg(document,r)){var n=Uu("",t),a=n.parentNode;Bi.set(e,a),e.removeChild(n)}}function Ar(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ao(r),a=Xs(n),o=z(z({},r),{},{styles:a});pg(n,o);var i=Ku(t,o);if(i){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Uu(e,o);return d.setAttribute(Gu(o),t),d}function hg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Je(e,t){if(e==null)return{};var r,n,a=hg(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ba(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(at(!l,"Warning: There may be circular references"),l)return!1;if(o===i)return!0;if(r&&s>1)return!1;n.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d<o.length;d++)if(!a(o[d],i[d],u))return!1;return!0}if(o&&i&&Ne(o)==="object"&&Ne(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],u)})}return!1}return a(e,t)}var bg="%";function ki(e){return e.join(bg)}var yg=function(){function e(t){jt(this,e),L(this,"instanceId",void 0),L(this,"cache",new Map),this.instanceId=t}return Ft(e,[{key:"get",value:function(r){return this.opGet(ki(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(ki(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),o=n(a);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),In="data-token-hash",gr="data-css-hash",Sg="data-cache-path",Gr="__cssinjs_instance__";function Cg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(gr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Gr]=a[Gr]||e,a[Gr]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(gr,"]"))).forEach(function(a){var o=a.getAttribute(gr);if(n[o]){if(a[Gr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else n[o]=!0})}return new yg(e)}var Eg=c.createContext({hashPriority:"low",cache:Cg(),defaultCache:!0});const jo=Eg;function xg(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ys=function(){function e(){jt(this,e),L(this,"cache",void 0),L(this,"keys",void 0),L(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ft(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=U(u,2),v=f[1];return a.internalGet(d)[1]<v?[d,a.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=U(o,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(u,d){if(d===r.length-1)l.set(u,{value:[n,a.cacheCallTimes++]});else{var f=l.get(u);f?f.map||(f.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var o;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!xg(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();L(Ys,"MAX_CACHE_SIZE",20);L(Ys,"MAX_CACHE_OFFSET",5);var jl=0,qu=function(){function e(t){jt(this,e),L(this,"derivatives",void 0),L(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=jl,t.length===0&&Tn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),jl+=1}return Ft(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ni=new Ys;function Hi(e){var t=Array.isArray(e)?e:[e];return ni.has(t)||ni.set(t,new qu(t)),ni.get(t)}var wg=new WeakMap,ai={};function $g(e,t){for(var r=wg,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(ai)||r.set(ai,e()),r.get(ai)}var Fl=new WeakMap;function ca(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Fl.get(e)||"";return r||(Object.keys(e).forEach(function(n){var a=e[n];r+=n,a instanceof qu?r+=a.id:a&&Ne(a)==="object"?r+=ca(a,t):r+=a}),t&&(r=pa(r)),Fl.set(e,r)),r}function Ll(e,t){return pa("".concat(t,"_").concat(ca(e,!0)))}var Wi=Kt();function ee(e){return typeof e=="number"?"".concat(e,"px"):e}function bo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=z(z({},n),{},L(L({},In,t),gr,r)),i=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var oo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Og=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var o=U(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Xu=function(t,r,n){var a={},o={};return Object.entries(t).forEach(function(i){var s,l,u=U(i,2),d=u[0],f=u[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var v,b=oo(d,n==null?void 0:n.prefix);a[b]=typeof f=="number"&&!(n!=null&&(v=n.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(b,")")}}),[o,Og(a,r,{scope:n==null?void 0:n.scope})]},Dl=process.env.NODE_ENV!=="test"&&Kt()?c.useLayoutEffect:c.useEffect,yt=function(t,r){var n=c.useRef(!0);Dl(function(){return t(n.current)},r),Dl(function(){return n.current=!1,function(){n.current=!0}},[])},Gi=function(t,r){yt(function(n){if(!n)return t()},r)},Rg=z({},c),zl=Rg.useInsertionEffect,Pg=function(t,r,n){c.useMemo(t,n),yt(function(){return r(!0)},n)},_g=zl?function(e,t,r){return zl(function(){return e(),t()},r)}:Pg;const Tg=_g;var Ng=z({},c),Ig=Ng.useInsertionEffect,Mg=function(t){var r=[],n=!1;function a(o){if(n){process.env.NODE_ENV!=="production"&&Tn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return c.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),a},Ag=function(){return function(t){t()}},jg=typeof Ig<"u"?Mg:Ag;const Fg=jg;function Lg(){return!1}var Ui=!1;function Dg(){return Ui}const zg=process.env.NODE_ENV==="production"?Lg:Dg;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var oi=window;if(typeof oi.webpackHotUpdate=="function"){var Vg=oi.webpackHotUpdate;oi.webpackHotUpdate=function(){return Ui=!0,setTimeout(function(){Ui=!1},0),Vg.apply(void 0,arguments)}}}function Qs(e,t,r,n,a){var o=c.useContext(jo),i=o.cache,s=[e].concat(ye(t)),l=ki(s),u=Fg([l]),d=zg(),f=function(p){i.opUpdate(l,function(g){var S=g||[void 0,void 0],m=U(S,2),y=m[0],E=y===void 0?0:y,C=m[1],x=C;process.env.NODE_ENV!=="production"&&C&&d&&(n==null||n(x,d),x=null);var R=x||r(),w=[E,R];return p?p(w):w})};c.useMemo(function(){f()},[l]);var v=i.opGet(l);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.opGet(l));var b=v[1];return Tg(function(){a==null||a(b)},function(h){return f(function(p){var g=U(p,2),S=g[0],m=g[1];return h&&S===0&&(a==null||a(b)),[S+1,m]}),function(){i.opUpdate(l,function(p){var g=p||[],S=U(g,2),m=S[0],y=m===void 0?0:m,E=S[1],C=y-1;return C===0?(u(function(){(h||!i.opGet(l))&&(n==null||n(E,!1))}),null):[y-1,E]})}},[l]),b}var Bg={},kg=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",tn=new Map;function Hg(e){tn.set(e,(tn.get(e)||0)+1)}function Wg(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(In,'="').concat(e,'"]'));r.forEach(function(n){if(n[Gr]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Gg=0;function Ug(e,t){tn.set(e,(tn.get(e)||0)-1);var r=Array.from(tn.keys()),n=r.filter(function(a){var o=tn.get(a)||0;return o<=0});r.length-n.length>Gg&&n.forEach(function(a){Wg(a,t),tn.delete(a)})}var Kg=function(t,r,n,a){var o=n.getDerivativeToken(t),i=z(z({},o),r);return a&&(i=a(i)),i},Yu="token";function qg(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=P.useContext(jo),a=n.cache.instanceId,o=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,u=l===void 0?Bg:l,d=r.formatToken,f=r.getComputedToken,v=r.cssVar,b=$g(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),h=ca(b),p=ca(u),g=v?ca(v):"",S=Qs(Yu,[s,e.id,h,p,g],function(){var m,y=f?f(b,u,e):Kg(b,u,e,d),E=z({},y),C="";if(v){var x=Xu(y,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),R=U(x,2);y=R[0],C=R[1]}var w=Ll(y,s);y._tokenKey=w,E._tokenKey=Ll(E,s);var $=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:w;y._themeKey=$,Hg($);var N="".concat(kg,"-").concat(pa(w));return y._hashId=N,[y,N,E,C,(v==null?void 0:v.key)||""]},function(m){Ug(m[0]._themeKey,a)},function(m){var y=U(m,4),E=y[0],C=y[3];if(v&&C){var x=Ar(C,pa("css-variables-".concat(E._themeKey)),{mark:gr,prepend:"queue",attachTo:o,priority:-999});x[Gr]=a,x.setAttribute(In,E._themeKey)}});return S}var Xg=function(t,r,n){var a=U(t,5),o=a[2],i=a[3],s=a[4],l=n||{},u=l.plain;if(!i)return null;var d=o._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=bo(i,s,d,v,u);return[f,d,b]},Yg={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},Qu="comm",Zu="rule",Ju="decl",Qg="@import",Zg="@keyframes",Jg="@layer",ed=Math.abs,Zs=String.fromCharCode;function td(e){return e.trim()}function io(e,t,r){return e.replace(t,r)}function em(e,t,r){return e.indexOf(t,r)}function ya(e,t){return e.charCodeAt(t)|0}function Mn(e,t,r){return e.slice(t,r)}function xr(e){return e.length}function tm(e){return e.length}function Ba(e,t){return t.push(e),e}var Fo=1,An=1,rd=0,ir=0,$t=0,zn="";function Js(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Fo,column:An,length:i,return:"",siblings:s}}function rm(){return $t}function nm(){return $t=ir>0?ya(zn,--ir):0,An--,$t===10&&(An=1,Fo--),$t}function mr(){return $t=ir<rd?ya(zn,ir++):0,An++,$t===10&&(An=1,Fo++),$t}function Ur(){return ya(zn,ir)}function so(){return ir}function Lo(e,t){return Mn(zn,e,t)}function Sa(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 am(e){return Fo=An=1,rd=xr(zn=e),ir=0,[]}function om(e){return zn="",e}function ii(e){return td(Lo(ir-1,Ki(e===91?e+2:e===40?e+1:e)))}function im(e){for(;($t=Ur())&&$t<33;)mr();return Sa(e)>2||Sa($t)>3?"":" "}function sm(e,t){for(;--t&&mr()&&!($t<48||$t>102||$t>57&&$t<65||$t>70&&$t<97););return Lo(e,so()+(t<6&&Ur()==32&&mr()==32))}function Ki(e){for(;mr();)switch($t){case e:return ir;case 34:case 39:e!==34&&e!==39&&Ki($t);break;case 40:e===41&&Ki(e);break;case 92:mr();break}return ir}function lm(e,t){for(;mr()&&e+$t!==57;)if(e+$t===84&&Ur()===47)break;return"/*"+Lo(t,ir-1)+"*"+Zs(e===47?e:mr())}function cm(e){for(;!Sa(Ur());)mr();return Lo(e,ir)}function um(e){return om(lo("",null,null,null,[""],e=am(e),0,[0],e))}function lo(e,t,r,n,a,o,i,s,l){for(var u=0,d=0,f=i,v=0,b=0,h=0,p=1,g=1,S=1,m=0,y="",E=a,C=o,x=n,R=y;g;)switch(h=m,m=mr()){case 40:if(h!=108&&ya(R,f-1)==58){em(R+=io(ii(m),"&","&\f"),"&\f",ed(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=ii(m);break;case 9:case 10:case 13:case 32:R+=im(h);break;case 92:R+=sm(so()-1,7);continue;case 47:switch(Ur()){case 42:case 47:Ba(dm(lm(mr(),so()),t,r,l),l),(Sa(h||1)==5||Sa(Ur()||1)==5)&&xr(R)&&Mn(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*p:s[u++]=xr(R)*S;case 125*p:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+d:S==-1&&(R=io(R,/\f/g,"")),b>0&&(xr(R)-f||p===0&&h===47)&&Ba(b>32?Bl(R+";",n,r,f-1,l):Bl(io(R," ","")+";",n,r,f-2,l),l);break;case 59:R+=";";default:if(Ba(x=Vl(R,t,r,u,d,a,s,y,E=[],C=[],f,o),o),m===123)if(d===0)lo(R,t,x,x,E,o,f,s,C);else switch(v===99&&ya(R,3)===110?100:v){case 100:case 108:case 109:case 115:lo(e,x,x,n&&Ba(Vl(e,x,x,0,0,a,s,y,a,E=[],f,C),C),a,C,f,s,n?E:C);break;default:lo(R,x,x,x,[""],C,0,s,C)}}u=d=b=0,p=S=1,y=R="",f=i;break;case 58:f=1+xr(R),b=h;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&nm()==125)continue}switch(R+=Zs(m),m*p){case 38:S=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(xr(R)-1)*S,S=1;break;case 64:Ur()===45&&(R+=ii(mr())),v=Ur(),d=f=xr(y=R+=cm(so())),m++;break;case 45:h===45&&xr(R)==2&&(p=0)}}return o}function Vl(e,t,r,n,a,o,i,s,l,u,d,f){for(var v=a-1,b=a===0?o:[""],h=tm(b),p=0,g=0,S=0;p<n;++p)for(var m=0,y=Mn(e,v+1,v=ed(g=i[p])),E=e;m<h;++m)(E=td(g>0?b[m]+" "+y:io(y,/&\f/g,b[m])))&&(l[S++]=E);return Js(e,t,r,a===0?Zu:s,l,u,d,f)}function dm(e,t,r,n){return Js(e,t,r,Qu,Zs(rm()),Mn(e,2,-2),0,n)}function Bl(e,t,r,n,a){return Js(e,t,r,Ju,Mn(e,0,n),Mn(e,n+1,-1),n,a)}function qi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function fm(e,t,r,n){switch(e.type){case Jg:if(e.children.length)break;case Qg:case Ju:return e.return=e.return||e.value;case Qu:return"";case Zg:return e.return=e.value+"{"+qi(e.children,n)+"}";case Zu:if(!xr(e.value=e.props.join(",")))return""}return xr(r=qi(e.children,n))?e.return=e.value+"{"+r+"}":""}function nd(e,t){var r=t.path,n=t.parentSelectors;at(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var vm=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&nd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},gm=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&nd("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},kl="data-ant-cssinjs-cache-path",ad="_FILE_STYLE__",an,od=!0;function mm(){if(!an&&(an={},Kt())){var e=document.createElement("div");e.className=kl,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var o=a.split(":"),i=U(o,2),s=i[0],l=i[1];an[s]=l});var r=document.querySelector("style[".concat(kl,"]"));if(r){var n;od=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function pm(e){return mm(),!!an[e]}function hm(e){var t=an[e],r=null;if(t&&Kt())if(od)r=ad;else{var n=document.querySelector("style[".concat(gr,'="').concat(an[e],'"]'));n?r=n.innerHTML:delete an[e]}return[r,t]}var id="_skip_check_",sd="_multi_value_";function co(e){var t=qi(um(e),fm);return t.replace(/\{%%%\:[^;];}/g,";")}function bm(e){return Ne(e)==="object"&&e&&(id in e||sd in e)}function Hl(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),u=l[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(ye(l.slice(1))).join(" ")});return o.join(",")}var ym=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,o=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,u=r.path,d=r.hashPriority,f=r.transformers,v=f===void 0?[]:f,b=r.linters,h=b===void 0?[]:b,p="",g={};function S(E){var C=E.getName(s);if(!g[C]){var x=e(E.style,r,{root:!1,parentSelectors:i}),R=U(x,1),w=R[0];g[C]="@keyframes ".concat(E.getName(s)).concat(w)}}function m(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(x){Array.isArray(x)?m(x,C):x&&C.push(x)}),C}var y=m(Array.isArray(t)?t:[t]);return y.forEach(function(E){var C=typeof E=="string"&&!a?{}:E;if(typeof C=="string")p+="".concat(C,`
|
|
24
|
+
`);else if(C._keyframe)S(C);else{var x=v.reduce(function(R,w){var $;return(w==null||($=w.visit)===null||$===void 0?void 0:$.call(w,R))||R},C);Object.keys(x).forEach(function(R){var w=x[R];if(Ne(w)==="object"&&w&&(R!=="animationName"||!w._keyframe)&&!bm(w)){var $=!1,N=R.trim(),F=!1;(a||o)&&s?N.startsWith("@")?$=!0:N==="&"?N=Hl("",s,d):N=Hl(R,s,d):a&&!s&&(N==="&"||N==="")&&(N="",F=!0);var j=e(w,r,{root:F,injectHash:$,parentSelectors:[].concat(ye(i),[N])}),A=U(j,2),M=A[0],H=A[1];g=z(z({},g),H),p+="".concat(N).concat(M)}else{let I=function(D,V){process.env.NODE_ENV!=="production"&&(Ne(w)!=="object"||!(w!=null&&w[id]))&&[vm,gm].concat(ye(h)).forEach(function(W){return W(D,V,{path:u,hashId:s,parentSelectors:i})});var k=D.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=V;!Yg[D]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),D==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(S(V),K=V.getName(s)),p+="".concat(k,":").concat(K,";")};var T,O=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;Ne(w)==="object"&&w!==null&&w!==void 0&&w[sd]&&Array.isArray(O)?O.forEach(function(D){I(R,D)}):I(R,O)}})}}),a?l&&(p="@layer ".concat(l.name," {").concat(p,"}"),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(l.name,";")}).join(`
|
|
25
|
+
`))):p="{".concat(p,"}"),[p,g]};function ld(e,t){return pa("".concat(e.join("%")).concat(t))}function Sm(){return null}var cd="style";function Xi(e,t){var r=e.token,n=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,d=c.useContext(jo),f=d.autoClear,v=d.mock,b=d.defaultCache,h=d.hashPriority,p=d.container,g=d.ssrInline,S=d.transformers,m=d.linters,y=d.cache,E=d.layer,C=r._tokenKey,x=[C];E&&x.push("layer"),x.push.apply(x,ye(n));var R=Wi;process.env.NODE_ENV!=="production"&&v!==void 0&&(R=v==="client");var w=Qs(cd,x,function(){var A=x.join("|");if(pm(A)){var M=hm(A),H=U(M,2),T=H[0],O=H[1];if(T)return[T,C,O,{},s,u]}var I=t(),D=ym(I,{hashId:a,hashPriority:h,layer:E?o:void 0,path:n.join("-"),transformers:S,linters:m}),V=U(D,2),k=V[0],K=V[1],W=co(k),q=ld(x,W);return[W,C,q,K,s,u]},function(A,M){var H=U(A,3),T=H[2];(M||f)&&Wi&&ha(T,{mark:gr})},function(A){var M=U(A,4),H=M[0];M[1];var T=M[2],O=M[3];if(R&&H!==ad){var I={mark:gr,prepend:E?!1:"queue",attachTo:p,priority:u},D=typeof i=="function"?i():i;D&&(I.csp={nonce:D});var V=[],k=[];Object.keys(O).forEach(function(W){W.startsWith("@layer")?V.push(W):k.push(W)}),V.forEach(function(W){Ar(co(O[W]),"_layer-".concat(W),z(z({},I),{},{prepend:!0}))});var K=Ar(H,T,I);K[Gr]=y.instanceId,K.setAttribute(In,C),process.env.NODE_ENV!=="production"&&K.setAttribute(Sg,x.join("|")),k.forEach(function(W){Ar(co(O[W]),"_effect-".concat(W),I)})}}),$=U(w,3),N=$[0],F=$[1],j=$[2];return function(A){var M;return!g||R||!b?M=c.createElement(Sm,null):M=c.createElement("style",Oe({},L(L({},In,F),gr,j),{dangerouslySetInnerHTML:{__html:N}})),c.createElement(c.Fragment,null,M,A)}}var Cm=function(t,r,n){var a=U(t,6),o=a[0],i=a[1],s=a[2],l=a[3],u=a[4],d=a[5],f=n||{},v=f.plain;if(u)return null;var b=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return b=bo(o,i,s,h,v),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var g=co(l[p]),S=bo(g,i,"_effect-".concat(p),h,v);p.startsWith("@layer")?b=S+b:b+=S}}),[d,s,b]},ud="cssVar",Em=function(t,r){var n=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=P.useContext(jo),f=d.cache.instanceId,v=d.container,b=s._tokenKey,h=[].concat(ye(t.path),[n,u,b]),p=Qs(ud,h,function(){var g=r(),S=Xu(g,n,{prefix:a,unitless:o,ignore:i,scope:u}),m=U(S,2),y=m[0],E=m[1],C=ld(h,E);return[y,E,C,n]},function(g){var S=U(g,3),m=S[2];Wi&&ha(m,{mark:gr})},function(g){var S=U(g,3),m=S[1],y=S[2];if(m){var E=Ar(m,y,{mark:gr,prepend:"queue",attachTo:v,priority:-999});E[Gr]=f,E.setAttribute(In,n)}});return p},xm=function(t,r,n){var a=U(t,4),o=a[1],i=a[2],s=a[3],l=n||{},u=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=bo(o,s,i,f,u);return[d,i,v]};L(L(L({},cd,Cm),Yu,Xg),ud,xm);var wt=function(){function e(t,r){jt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=r}return Ft(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function fn(e){return e.notSplit=!0,e}fn(["borderTop","borderBottom"]),fn(["borderTop"]),fn(["borderBottom"]),fn(["borderLeft","borderRight"]),fn(["borderLeft"]),fn(["borderRight"]);var el=P.createContext({});function wm(e){return Hu(e)||zu(e)||qs(e)||Wu()}function wr(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function dd(e,t,r,n){if(!t.length)return r;var a=wm(t),o=a[0],i=a.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=ye(e):s=z({},e),n&&r===void 0&&i.length===1?delete s[o][i[0]]:s[o]=dd(s[o],i,r,n),s}function dr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!wr(e,t.slice(0,-1))?e:dd(e,t,r,n)}function $m(e){return Ne(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wl(e){return Array.isArray(e)?[]:{}}var Om=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Wl(t[0]);return t.forEach(function(a){function o(i,s){var l=new Set(s),u=wr(a,i),d=Array.isArray(u);if(d||$m(u)){if(!l.has(u)){l.add(u);var f=wr(n,i);d?n=dr(n,i,[]):(!f||Ne(f)!=="object")&&(n=dr(n,i,Wl(u))),Om(u).forEach(function(v){o([].concat(ye(i),[v]),l)})}}else n=dr(n,i,u)}o([])}),n}function fd(){}let Ir=null;function Rm(){Ir=null,Pu()}let tl=fd;process.env.NODE_ENV!=="production"&&(tl=(e,t,r)=>{at(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Rm()});const vd=c.createContext({}),It=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=c.useContext(vd),r=(n,a,o)=>{if(!n)if(t===!1&&a==="deprecated"){const i=Ir;Ir||(Ir={}),Ir[e]=Ir[e]||[],Ir[e].includes(o||"")||Ir[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ir)}else process.env.NODE_ENV!=="production"&&tl(n,e,o)};return r.deprecated=(n,a,o,i)=>{r(n,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=fd,e},Do=tl,Pm=P.createContext(void 0);var _m={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"},Tm={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Nm=z(z({},Tm),{},{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 gd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Gl={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"]},Nm),timePickerLocale:Object.assign({},gd)},Yt="${label} is not a valid ${type}",jn={locale:"en",Pagination:_m,DatePicker:Gl,TimePicker:gd,Calendar:Gl,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:Yt,method:Yt,array:Yt,object:Yt,number:Yt,date:Yt,boolean:Yt,integer:Yt,float:Yt,regexp:Yt,email:Yt,url:Yt,hex:Yt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},jn.Modal);let uo=[];const Ul=()=>uo.reduce((e,t)=>Object.assign(Object.assign({},e),t),jn.Modal);function Im(e){if(e){const t=Object.assign({},e);return uo.push(t),Ul(),()=>{uo=uo.filter(r=>r!==t),Ul()}}Object.assign({},jn.Modal)}const rl=P.createContext(void 0),Mm=(e,t)=>{const r=c.useContext(rl),n=c.useMemo(()=>{var o;const i=jn[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),a=c.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?jn.locale:o},[r]);return[n,a]},md="internalMark",pd=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=It("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===md,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}c.useEffect(()=>Im(t==null?void 0:t.Modal),[t]);const a=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(rl.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(pd.displayName="LocaleProvider");function At(e,t){Am(e)&&(e="100%");var r=jm(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ka(e){return Math.min(1,Math.max(0,e))}function Am(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function jm(e){return typeof e=="string"&&e.indexOf("%")!==-1}function hd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ha(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rn(e){return e.length===1?"0"+e:String(e)}function Fm(e,t,r){return{r:At(e,255)*255,g:At(t,255)*255,b:At(r,255)*255}}function Kl(e,t,r){e=At(e,255),t=At(t,255),r=At(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=0,s=(n+a)/2;if(n===a)i=0,o=0;else{var l=n-a;switch(i=s>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function si(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Lm(e,t,r){var n,a,o;if(e=At(e,360),t=At(t,100),r=At(r,100),t===0)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=si(s,i,e+1/3),a=si(s,i,e),o=si(s,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function Yi(e,t,r){e=At(e,255),t=At(t,255),r=At(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=n===0?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function Dm(e,t,r){e=At(e,360)*6,t=At(t,100),r=At(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,i,o,o,s,r][l],d=[s,r,r,i,o,o][l],f=[o,o,s,r,r,i][l];return{r:u*255,g:d*255,b:f*255}}function Qi(e,t,r,n){var a=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function zm(e,t,r,n,a){var o=[rn(Math.round(e).toString(16)),rn(Math.round(t).toString(16)),rn(Math.round(r).toString(16)),rn(Vm(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Vm(e){return Math.round(parseFloat(e)*255).toString(16)}function ql(e){return Zt(e)/255}function Zt(e){return parseInt(e,16)}function Bm(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Zi={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 En(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Wm(e)),typeof e=="object"&&(Tr(e.r)&&Tr(e.g)&&Tr(e.b)?(t=Fm(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Tr(e.h)&&Tr(e.s)&&Tr(e.v)?(n=Ha(e.s),a=Ha(e.v),t=Dm(e.h,n,a),i=!0,s="hsv"):Tr(e.h)&&Tr(e.s)&&Tr(e.l)&&(n=Ha(e.s),o=Ha(e.l),t=Lm(e.h,n,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=hd(r),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var km="[-\\+]?\\d+%?",Hm="[-\\+]?\\d*\\.\\d+%?",Kr="(?:".concat(Hm,")|(?:").concat(km,")"),li="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),ci="[\\s|\\(]+(".concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")[,|\\s]+(").concat(Kr,")\\s*\\)?"),ur={CSS_UNIT:new RegExp(Kr),rgb:new RegExp("rgb"+li),rgba:new RegExp("rgba"+ci),hsl:new RegExp("hsl"+li),hsla:new RegExp("hsla"+ci),hsv:new RegExp("hsv"+li),hsva:new RegExp("hsva"+ci),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 Wm(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Zi[e])e=Zi[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ur.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ur.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ur.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ur.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ur.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ur.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ur.hex8.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),a:ql(r[4]),format:t?"name":"hex8"}:(r=ur.hex6.exec(e),r?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),format:t?"name":"hex"}:(r=ur.hex4.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),a:ql(r[4]+r[4]),format:t?"name":"hex8"}:(r=ur.hex3.exec(e),r?{r:Zt(r[1]+r[1]),g:Zt(r[2]+r[2]),b:Zt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Tr(e){return!!ur.CSS_UNIT.exec(String(e))}var Jt=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Bm(t)),this.originalInput=t;var a=En(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=hd(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Yi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Yi(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Kl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Kl(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Qi(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),zm(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(At(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(At(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Qi(this.r,this.g,this.b,!1),r=0,n=Object.entries(Zi);r<n.length;r++){var a=n[r],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,o=!r&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=ka(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ka(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=ka(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ka(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),o=r/100,i={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,o=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(new e({h:n,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(n+i*o)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Wa=2,Xl=.16,Gm=.05,Um=.05,Km=.15,bd=5,yd=4,qm=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Yl(e){var t=e.r,r=e.g,n=e.b,a=Yi(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function Ga(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Qi(t,r,n,!1))}function Xm(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function Ql(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Wa*t:Math.round(e.h)+Wa*t:n=r?Math.round(e.h)+Wa*t:Math.round(e.h)-Wa*t,n<0?n+=360:n>=360&&(n-=360),n}function Zl(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Xl*t:t===yd?n=e.s+Xl:n=e.s+Gm*t,n>1&&(n=1),r&&t===bd&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Jl(e,t,r){var n;return r?n=e.v+Um*t:n=e.v-Km*t,n>1&&(n=1),Number(n.toFixed(2))}function Ca(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=En(e),a=bd;a>0;a-=1){var o=Yl(n),i=Ga(En({h:Ql(o,a,!0),s:Zl(o,a,!0),v:Jl(o,a,!0)}));r.push(i)}r.push(Ga(n));for(var s=1;s<=yd;s+=1){var l=Yl(n),u=Ga(En({h:Ql(l,s),s:Zl(l,s),v:Jl(l,s)}));r.push(u)}return t.theme==="dark"?qm.map(function(d){var f=d.index,v=d.opacity,b=Ga(Xm(En(t.backgroundColor||"#141414"),En(r[f]),v*100));return b}):r}var ui={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"},Ji=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ji.primary=Ji[5];var es=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];es.primary=es[5];var ts=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ts.primary=ts[5];var yo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];yo.primary=yo[5];var rs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];rs.primary=rs[5];var ns=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ns.primary=ns[5];var as=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];as.primary=as[5];var os=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];os.primary=os[5];var So=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];So.primary=So[5];var is=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];is.primary=is[5];var ss=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ss.primary=ss[5];var ls=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ls.primary=ls[5];var cs=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];cs.primary=cs[5];var di={red:Ji,volcano:es,orange:ts,gold:yo,yellow:rs,lime:ns,green:as,cyan:os,blue:So,geekblue:is,purple:ss,magenta:ls,grey:cs};const Sd={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"},Ea=Object.assign(Object.assign({},Sd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
55
26
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
56
|
-
'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
|
|
27
|
+
'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 Ym(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,f=r(l),v=r(a),b=r(o),h=r(i),p=r(s),g=n(u,d),S=e.colorLink||e.colorInfo,m=r(S);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:h[1],colorErrorBgHover:h[2],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:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new Jt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Qm=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}};function Zm(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},Qm(n))}const Jm=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function fo(e){return(e+8)/e}function ep(e){const t=new Array(10).fill(null).map((r,n)=>{const a=n-1,o=e*Math.pow(Math.E,a/5),i=n>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:fo(r)}))}const tp=e=>{const t=ep(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),a=r[1],o=r[0],i=r[2],s=n[1],l=n[0],u=n[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(l*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function rp(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Nr=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),Zn=(e,t)=>new Jt(e).darken(t).toHexString(),np=e=>{const t=Ca(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]}},ap=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Nr(n,.88),colorTextSecondary:Nr(n,.65),colorTextTertiary:Nr(n,.45),colorTextQuaternary:Nr(n,.25),colorFill:Nr(n,.15),colorFillSecondary:Nr(n,.06),colorFillTertiary:Nr(n,.04),colorFillQuaternary:Nr(n,.02),colorBgLayout:Zn(r,4),colorBgContainer:Zn(r,0),colorBgElevated:Zn(r,0),colorBgSpotlight:Nr(n,.85),colorBgBlur:"transparent",colorBorder:Zn(r,15),colorBorderSecondary:Zn(r,6)}};function op(e){ui.pink=ui.magenta,di.pink=di.magenta;const t=Object.keys(Sd).map(r=>{const n=e[r]===ui[r]?di[r]:Ca(e[r]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${r}-${i+1}`]=n[i],a[`${r}${i+1}`]=n[i],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Ym(e,{generateColorPalettes:np,generateNeutralColorPalettes:ap})),tp(e.fontSize)),rp(e)),Jm(e)),Zm(e))}const Cd=Hi(op),us={token:Ea,override:{override:Ea},hashed:!0},Ed=P.createContext(us),Co="ant",xd="anticon",ip=["outlined","borderless","filled"],sp=(e,t)=>t||(e?`${Co}-${e}`:Co),ot=c.createContext({getPrefixCls:sp,iconPrefixCls:xd}),lp=`-ant-${Date.now()}-${Math.random()}`;function cp(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(i,s)=>{const l=new Jt(i),u=Ca(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=u[1],r[`${s}-color-hover`]=u[4],r[`${s}-color-active`]=u[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=u[0],r[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new Jt(t.primaryColor),s=Ca(i.toRgbString());s.forEach((u,d)=>{r[`primary-${d+1}`]=u}),r["primary-color-deprecated-l-35"]=n(i,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=n(i,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=n(i,u=>u.setAlpha(u.getAlpha()*.12));const l=new Jt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,u=>u.setAlpha(u.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
57
28
|
:root {
|
|
58
29
|
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
59
30
|
`)}
|
|
60
31
|
}
|
|
61
|
-
`.trim()}function fp(e,t){const r=dp(e,t);Kt()?Ar(r,`${up}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Do(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Fn=c.createContext(!1),vp=e=>{let{children:t,disabled:r}=e;const n=c.useContext(Fn);return c.createElement(Fn.Provider,{value:r??n},t)},Ln=c.createContext(void 0),gp=e=>{let{children:t,size:r}=e;const n=c.useContext(Ln);return c.createElement(Ln.Provider,{value:r||n},t)};function mp(){const e=P.useContext(Fn),t=P.useContext(Ln);return{componentDisabled:e,componentSize:t}}var wd=Ft(function e(){jt(this,e)}),$d="CALC_UNIT",pp=new RegExp($d,"g");function fi(e){return typeof e=="number"?"".concat(e).concat($d):e}var hp=function(e){qr(r,e);var t=Xr(r);function r(n,a){var o;jt(this,r),o=t.call(this),L(We(o),"result",""),L(We(o),"unitlessCssVar",void 0),L(We(o),"lowPriority",void 0);var i=Ne(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=fi(n):i==="string"&&(o.result=n),o}return Ft(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(fi(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(fi(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(l=!1),this.result=this.result.replace(pp,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(wd),bp=function(e){qr(r,e);var t=Xr(r);function r(n){var a;return jt(this,r),a=t.call(this),L(We(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Ft(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(wd),yp=function(t,r){var n=t==="css"?hp:bp;return function(a){return new n(a,r)}},rc=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Bt(e){var t=c.useRef();t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function xa(e){var t=c.useRef(!1),r=c.useState(e),n=U(r,2),a=n[0],o=n[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}function vi(e){return e!==void 0}function or(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=xa(function(){return vi(a)?a:vi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=U(s,2),u=l[0],d=l[1],f=a!==void 0?a:u,v=i?i(f):f,b=Bt(o),h=xa([f]),p=U(h,2),g=p[0],S=p[1];Ui(function(){var y=g[0];u!==y&&b(u,y)},[g]),Ui(function(){vi(a)||d(a)},[a]);var m=Bt(function(y,E){d(y,E),S([f],E)});return[v,m]}function nc(e,t,r,n){var a=z({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=U(s,2),u=l[0],d=l[1];if(process.env.NODE_ENV!=="production"&&at(!(a!=null&&a[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),a!=null&&a[u]||a!=null&&a[d]){var f;(f=a[d])!==null&&f!==void 0||(a[d]=a==null?void 0:a[u])}})}var i=z(z({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Od=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",fs=!0;function Lt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Od)return Object.assign.apply(Object,[{}].concat(t));fs=!1;var n={};return t.forEach(function(a){if(Ne(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),fs=!0,n}var ac={};function Sp(){}var Cp=function(t){var r,n=t,a=Sp;return Od&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return fs&&r.add(s),i[s]}}),a=function(i,s){var l;ac[i]={global:Array.from(r),component:z(z({},(l=ac[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function oc(e,t,r){if(typeof r=="function"){var n;return r(Lt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Ep(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return ee(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return ee(o)}).join(","),")")}}}var xp=1e3*60*10,wp=function(){function e(){jt(this,e),L(this,"map",new Map),L(this,"objectIDMap",new WeakMap),L(this,"nextID",0),L(this,"lastAccessBeat",new Map),L(this,"accessBeat",0)}return Ft(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&Ne(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ne(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>xp&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ic=new wp;function $p(e,t){return P.useMemo(function(){var r=ic.get(t);if(r)return r;var n=e();return ic.set(t,n),n},t)}var Op=function(){return{}};function Rp(e){var t=e.useCSP,r=t===void 0?Op:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,p){var g=Array.isArray(v)?v[0]:v;function S(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var m=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},E=z(z({},y),{},L({},S("zIndexPopup"),!0));Object.keys(m).forEach(function(w){E[S(w)]=m[w]});var C=z(z({},p),{},{unitless:E,prefixToken:S}),x=d(v,b,h,C),R=u(g,h,C);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,N=x(w,$),F=U(N,2),j=F[1],A=R($),M=U(A,2),H=M[0],T=M[1];return[H,j,T]}}function u(v,b,h){var p=h.unitless,g=h.injectStyle,S=g===void 0?!0:g,m=h.prefixToken,y=h.ignore,E=function(R){var w=R.rootCls,$=R.cssVar,N=$===void 0?{}:$,F=n(),j=F.realToken;return wm({path:[v],prefix:N.prefix,key:N.key,unitless:p,ignore:y,token:j,scope:w},function(){var A=oc(v,j,b),M=nc(v,j,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(H){M[m(H)]=M[H],delete M[H]}),M}),null},C=function(R){var w=n(),$=w.cssVar;return[function(N){return S&&$?P.createElement(P.Fragment,null,P.createElement(E,{rootCls:R,cssVar:$,component:v}),N):N},$==null?void 0:$.key]};return C}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(v)?v:[v,v],S=U(g,1),m=S[0],y=g.join("-");return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=n(),R=x.theme,w=x.realToken,$=x.hashId,N=x.token,F=x.cssVar,j=a(),A=j.rootPrefixCls,M=j.iconPrefixCls,H=r(),T=F?"css":"js",O=$p(function(){var W=new Set;return F&&Object.keys(p.unitless||{}).forEach(function(q){W.add(oo(q,F.prefix)),W.add(oo(q,rc(m,F.prefix)))}),yp(T,W)},[T,m,F==null?void 0:F.prefix]),I=Ep(T),D=I.max,V=I.min,k={theme:R,token:N,hashId:$,nonce:function(){return H.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};Yi(z(z({},k),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(N):[]});var K=Yi(z(z({},k),{},{path:[y,E,M]}),function(){if(p.injectStyle===!1)return[];var W=Cp(N),q=W.token,Y=W.flush,Z=oc(m,w,h),J=".".concat(E),te=nc(m,w,Z,{deprecatedTokens:p.deprecatedTokens});F&&Ne(Z)==="object"&&Object.keys(Z).forEach(function(ve){Z[ve]="var(".concat(oo(ve,rc(m,F.prefix)),")")});var ae=Lt(q,{componentCls:J,prefixCls:E,iconCls:".".concat(M),antCls:".".concat(A),calc:O,max:D,min:V},F?Z:te),fe=b(ae,{hashId:$,prefixCls:E,rootPrefixCls:A,iconPrefixCls:M});Y(m,te);var de=typeof i=="function"?i(ae,E,C,p.resetFont):null;return[p.resetStyle===!1?null:de,fe]});return[K,$]}}function f(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(v,b,h,z({resetStyle:!1,order:-998},p)),S=function(y){var E=y.prefixCls,C=y.rootCls,x=C===void 0?E:C;return g(E,x),null};return process.env.NODE_ENV!=="production"&&(S.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),S}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Pp="5.20.3";function gi(e){return e>=0&&e<=255}function Ua(e,t){const{r,g:n,b:a,a:o}=new Jt(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new Jt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-i*(1-u))/u),f=Math.round((n-s*(1-u))/u),v=Math.round((a-l*(1-u))/u);if(gi(d)&&gi(f)&&gi(v))return new Jt({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new Jt({r,g:n,b:a,a:1}).toRgbString()}var _p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Rd(e){const{override:t}=e,r=_p(e,["override"]),n=Object.assign({},t);Object.keys(Ea).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,l=992,u=1200,d=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Ua(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Ua(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ua(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Ua(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
32
|
+
`.trim()}function up(e,t){const r=cp(e,t);Kt()?Ar(r,`${lp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Do(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Fn=c.createContext(!1),dp=e=>{let{children:t,disabled:r}=e;const n=c.useContext(Fn);return c.createElement(Fn.Provider,{value:r??n},t)},Ln=c.createContext(void 0),fp=e=>{let{children:t,size:r}=e;const n=c.useContext(Ln);return c.createElement(Ln.Provider,{value:r||n},t)};function vp(){const e=P.useContext(Fn),t=P.useContext(Ln);return{componentDisabled:e,componentSize:t}}var wd=Ft(function e(){jt(this,e)}),$d="CALC_UNIT",gp=new RegExp($d,"g");function fi(e){return typeof e=="number"?"".concat(e).concat($d):e}var mp=function(e){qr(r,e);var t=Xr(r);function r(n,a){var o;jt(this,r),o=t.call(this),L(We(o),"result",""),L(We(o),"unitlessCssVar",void 0),L(We(o),"lowPriority",void 0);var i=Ne(n);return o.unitlessCssVar=a,n instanceof r?o.result="(".concat(n.result,")"):i==="number"?o.result=fi(n):i==="string"&&(o.result=n),o}return Ft(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(fi(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(fi(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(l=!1),this.result=this.result.replace(gp,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(wd),pp=function(e){qr(r,e);var t=Xr(r);function r(n){var a;return jt(this,r),a=t.call(this),L(We(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Ft(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(wd),hp=function(t,r){var n=t==="css"?mp:pp;return function(a){return new n(a,r)}},ec=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Bt(e){var t=c.useRef();t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function xa(e){var t=c.useRef(!1),r=c.useState(e),n=U(r,2),a=n[0],o=n[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||o(s)}return[a,i]}function vi(e){return e!==void 0}function or(e,t){var r=t||{},n=r.defaultValue,a=r.value,o=r.onChange,i=r.postState,s=xa(function(){return vi(a)?a:vi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=U(s,2),u=l[0],d=l[1],f=a!==void 0?a:u,v=i?i(f):f,b=Bt(o),h=xa([f]),p=U(h,2),g=p[0],S=p[1];Gi(function(){var y=g[0];u!==y&&b(u,y)},[g]),Gi(function(){vi(a)||d(a)},[a]);var m=Bt(function(y,E){d(y,E),S([f],E)});return[v,m]}function tc(e,t,r,n){var a=z({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=U(s,2),u=l[0],d=l[1];if(process.env.NODE_ENV!=="production"&&at(!(a!=null&&a[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),a!=null&&a[u]||a!=null&&a[d]){var f;(f=a[d])!==null&&f!==void 0||(a[d]=a==null?void 0:a[u])}})}var i=z(z({},r),a);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Od=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",ds=!0;function Lt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Od)return Object.assign.apply(Object,[{}].concat(t));ds=!1;var n={};return t.forEach(function(a){if(Ne(a)==="object"){var o=Object.keys(a);o.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return a[i]}})})}}),ds=!0,n}var rc={};function bp(){}var yp=function(t){var r,n=t,a=bp;return Od&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){return ds&&r.add(s),i[s]}}),a=function(i,s){var l;rc[i]={global:Array.from(r),component:z(z({},(l=rc[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:a}};function nc(e,t,r){if(typeof r=="function"){var n;return r(Lt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Sp(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(o){return ee(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(o){return ee(o)}).join(","),")")}}}var Cp=1e3*60*10,Ep=function(){function e(){jt(this,e),L(this,"map",new Map),L(this,"objectIDMap",new WeakMap),L(this,"nextID",0),L(this,"lastAccessBeat",new Map),L(this,"accessBeat",0)}return Ft(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(o){return o&&Ne(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Ne(o),"_").concat(o)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,o){n-a>Cp&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ac=new Ep;function xp(e,t){return P.useMemo(function(){var r=ac.get(t);if(r)return r;var n=e();return ac.set(t,n),n},t)}var wp=function(){return{}};function $p(e){var t=e.useCSP,r=t===void 0?wp:t,n=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(v,b,h,p){var g=Array.isArray(v)?v[0]:v;function S(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var m=(p==null?void 0:p.unitless)||{},y=typeof s=="function"?s(v):{},E=z(z({},y),{},L({},S("zIndexPopup"),!0));Object.keys(m).forEach(function(w){E[S(w)]=m[w]});var C=z(z({},p),{},{unitless:E,prefixToken:S}),x=d(v,b,h,C),R=u(g,h,C);return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,N=x(w,$),F=U(N,2),j=F[1],A=R($),M=U(A,2),H=M[0],T=M[1];return[H,j,T]}}function u(v,b,h){var p=h.unitless,g=h.injectStyle,S=g===void 0?!0:g,m=h.prefixToken,y=h.ignore,E=function(R){var w=R.rootCls,$=R.cssVar,N=$===void 0?{}:$,F=n(),j=F.realToken;return Em({path:[v],prefix:N.prefix,key:N.key,unitless:p,ignore:y,token:j,scope:w},function(){var A=nc(v,j,b),M=tc(v,j,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(H){M[m(H)]=M[H],delete M[H]}),M}),null},C=function(R){var w=n(),$=w.cssVar;return[function(N){return S&&$?P.createElement(P.Fragment,null,P.createElement(E,{rootCls:R,cssVar:$,component:v}),N):N},$==null?void 0:$.key]};return C}function d(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(v)?v:[v,v],S=U(g,1),m=S[0],y=g.join("-");return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=n(),R=x.theme,w=x.realToken,$=x.hashId,N=x.token,F=x.cssVar,j=a(),A=j.rootPrefixCls,M=j.iconPrefixCls,H=r(),T=F?"css":"js",O=xp(function(){var W=new Set;return F&&Object.keys(p.unitless||{}).forEach(function(q){W.add(oo(q,F.prefix)),W.add(oo(q,ec(m,F.prefix)))}),hp(T,W)},[T,m,F==null?void 0:F.prefix]),I=Sp(T),D=I.max,V=I.min,k={theme:R,token:N,hashId:$,nonce:function(){return H.nonce},clientOnly:p.clientOnly,layer:{name:"antd"},order:p.order||-999};Xi(z(z({},k),{},{clientOnly:!1,path:["Shared",A]}),function(){return typeof o=="function"?o(N):[]});var K=Xi(z(z({},k),{},{path:[y,E,M]}),function(){if(p.injectStyle===!1)return[];var W=yp(N),q=W.token,Y=W.flush,Z=nc(m,w,h),J=".".concat(E),te=tc(m,w,Z,{deprecatedTokens:p.deprecatedTokens});F&&Ne(Z)==="object"&&Object.keys(Z).forEach(function(ve){Z[ve]="var(".concat(oo(ve,ec(m,F.prefix)),")")});var ae=Lt(q,{componentCls:J,prefixCls:E,iconCls:".".concat(M),antCls:".".concat(A),calc:O,max:D,min:V},F?Z:te),fe=b(ae,{hashId:$,prefixCls:E,rootPrefixCls:A,iconPrefixCls:M});Y(m,te);var de=typeof i=="function"?i(ae,E,C,p.resetFont):null;return[p.resetStyle===!1?null:de,fe]});return[K,$]}}function f(v,b,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(v,b,h,z({resetStyle:!1,order:-998},p)),S=function(y){var E=y.prefixCls,C=y.rootCls,x=C===void 0?E:C;return g(E,x),null};return process.env.NODE_ENV!=="production"&&(S.displayName="SubStyle_".concat(String(Array.isArray(v)?v.join("."):v))),S}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const Eo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Op="5.20.3";function gi(e){return e>=0&&e<=255}function Ua(e,t){const{r,g:n,b:a,a:o}=new Jt(e).toRgb();if(o<1)return e;const{r:i,g:s,b:l}=new Jt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-i*(1-u))/u),f=Math.round((n-s*(1-u))/u),v=Math.round((a-l*(1-u))/u);if(gi(d)&&gi(f)&&gi(v))return new Jt({r:d,g:f,b:v,a:Math.round(u*100)/100}).toRgbString()}return new Jt({r,g:n,b:a,a:1}).toRgbString()}var Rp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Rd(e){const{override:t}=e,r=Rp(e,["override"]),n=Object.assign({},t);Object.keys(Ea).forEach(v=>{delete n[v]});const a=Object.assign(Object.assign({},r),n),o=480,i=576,s=768,l=992,u=1200,d=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Ua(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Ua(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ua(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Ua(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
|
|
62
33
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
63
34
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
64
35
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -90,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
90
61
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
91
62
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
92
63
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
93
|
-
`,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)"}),n)}var sc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Pd={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},Tp={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},Np={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},_d=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=sc(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=Rd(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=sc(u,["theme"]);let v=f;d&&(v=_d(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Lr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=P.useContext(Ed),o=`${Pp}-${t||""}`,i=r||Cd,[s,l,u]=Yg(i,[Ea,e],{salt:o,override:n,getComputedToken:_d,formatToken:Rd,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Pd,ignore:Tp,preserve:Np}});return[i,u,t?l:"",s,a]}const Td=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),nl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ip=()=>({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"}}),Ta=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Mp=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"}}}),Ap=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},jp=e=>({outline:`${ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),al=e=>({"&:focus-visible":Object.assign({},jp(e))}),Nd=(e,t)=>{const[r,n]=Lr();return Yi({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Ip()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:br,genComponentStyleHook:Fp,genSubStyleComponent:Lp}=Rp({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Lr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=P.useContext(ot);return Nd(t,e),e??{}},getResetStyles:e=>[{"&":Mp(e)}],getCommonStyle:Ap,getCompUnitless:()=>Pd});function Dp(e,t){return Eo.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const zp=Object.assign({},c),{useId:lc}=zp,Vp=()=>"",Bp=typeof lc>"u"?Vp:lc;function kp(e,t,r){var n,a;const o=It("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},ds),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:ds.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=Bp();if(process.env.NODE_ENV!=="production"){const u=i.cssVar||s.cssVar,d=!!(typeof i.cssVar=="object"&&(!((a=i.cssVar)===null||a===void 0)&&a.key)||l);process.env.NODE_ENV!=="production"&&o(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return No(()=>{var u,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const v=`css-var-${l.replace(/:/g,"")}`,b=((u=i.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:b})},[i,s],(u,d)=>u.some((f,v)=>{const b=d[v];return!ba(f,b,!0)}))}var Hp=["children"],Id=c.createContext({});function Wp(e){var t=e.children,r=Je(e,Hp);return c.createElement(Id.Provider,{value:r},t)}var Gp=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function Up(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=Bt(function(){return a.current}),i=Bt(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Hr="none",Ka="appear",qa="enter",Xa="leave",cc="none",fr="prepare",$n="start",On="active",ol="end",Md="prepared";function uc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Kp(e,t){var r={animationend:uc("Animation","AnimationEnd"),transitionend:uc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var qp=Kp(Kt(),typeof window<"u"?window:{}),Ad={};if(Kt()){var Xp=document.createElement("div");Ad=Xp.style}var Ya={};function jd(e){if(Ya[e])return Ya[e];var t=qp[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Ad)return Ya[e]=t[o],Ya[e]}return""}var Fd=jd("animationend"),Ld=jd("transitionend"),Dd=!!(Fd&&Ld),dc=Fd||"animationend",fc=Ld||"transitionend";function vc(e,t){if(!e)return null;if(Ne(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const Yp=function(e){var t=P.useRef();function r(a){a&&(a.removeEventListener(fc,e),a.removeEventListener(dc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(fc,e),a.addEventListener(dc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var zd=Kt()?P.useLayoutEffect:P.useEffect;const Qp=function(){var e=c.useRef(null);function t(){_t.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=_t(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return c.useEffect(function(){return function(){t()}},[]),[r,t]};var Zp=[fr,$n,On,ol],Jp=[fr,Md],Vd=!1,eh=!0;function Bd(e){return e===On||e===ol}const th=function(e,t,r){var n=xa(cc),a=U(n,2),o=a[0],i=a[1],s=Qp(),l=U(s,2),u=l[0],d=l[1];function f(){i(fr,!0)}var v=t?Jp:Zp;return zd(function(){if(o!==cc&&o!==ol){var b=v.indexOf(o),h=v[b+1],p=r(o);p===Vd?i(h,!0):h&&u(function(g){function S(){g.isCanceled()||i(h,!0)}p===!0?S():Promise.resolve(p).then(S)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function rh(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,u=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,b=n.onEnterPrepare,h=n.onLeavePrepare,p=n.onAppearStart,g=n.onEnterStart,S=n.onLeaveStart,m=n.onAppearActive,y=n.onEnterActive,E=n.onLeaveActive,C=n.onAppearEnd,x=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=xa(),N=U($,2),F=N[0],j=N[1],A=Up(Hr),M=U(A,2),H=M[0],T=M[1],O=xa(null),I=U(O,2),D=I[0],V=I[1],k=H(),K=P.useRef(!1),W=P.useRef(null);function q(){return r()}var Y=P.useRef(!1);function Z(){T(Hr),V(null,!0)}var J=Bt(function(ge){var xe=H();if(xe!==Hr){var Me=q();if(!(ge&&!ge.deadline&&ge.target!==Me)){var oe=Y.current,re;xe===Ka&&oe?re=C==null?void 0:C(Me,ge):xe===qa&&oe?re=x==null?void 0:x(Me,ge):xe===Xa&&oe&&(re=R==null?void 0:R(Me,ge)),oe&&re!==!1&&Z()}}}),te=Yp(J),ae=U(te,1),fe=ae[0],de=function(xe){switch(xe){case Ka:return L(L(L({},fr,v),$n,p),On,m);case qa:return L(L(L({},fr,b),$n,g),On,y);case Xa:return L(L(L({},fr,h),$n,S),On,E);default:return{}}},ve=c.useMemo(function(){return de(k)},[k]),we=th(k,!e,function(ge){if(ge===fr){var xe=ve[fr];return xe?xe(q()):Vd}if(se in ve){var Me;V(((Me=ve[se])===null||Me===void 0?void 0:Me.call(ve,q(),null))||null)}return se===On&&k!==Hr&&(fe(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),se===Md&&Z(),eh}),B=U(we,2),ce=B[0],se=B[1],Ce=Bd(se);Y.current=Ce,zd(function(){j(t);var ge=K.current;K.current=!0;var xe;!ge&&t&&s&&(xe=Ka),ge&&t&&o&&(xe=qa),(ge&&!t&&u||!ge&&f&&!t&&u)&&(xe=Xa);var Me=de(xe);xe&&(e||Me[fr])?(T(xe),ce()):T(Hr)},[t]),P.useEffect(function(){(k===Ka&&!s||k===qa&&!o||k===Xa&&!u)&&T(Hr)},[s,o,u]),P.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var pe=c.useRef(!1);P.useEffect(function(){F&&(pe.current=!0),F!==void 0&&k===Hr&&((pe.current||F)&&(w==null||w(F)),pe.current=!0)},[F,k]);var ne=D;return ve[fr]&&se===$n&&(ne=z({transition:"none"},ne)),[k,se,ne,F??t]}function nh(e){var t=e;Ne(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=c.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,u=l===void 0?!0:l,d=a.forceRender,f=a.children,v=a.motionName,b=a.leavedClassName,h=a.eventProps,p=c.useContext(Id),g=p.motion,S=r(a,g),m=P.useRef(),y=P.useRef();function E(){try{return m.current instanceof HTMLElement?m.current:ao(y.current)}catch{return null}}var C=rh(S,s,E,a),x=U(C,4),R=x[0],w=x[1],$=x[2],N=x[3],F=c.useRef(N);N&&(F.current=!0);var j=c.useCallback(function(D){m.current=D,Us(o,D)},[o]),A,M=z(z({},h),{},{visible:s});if(!f)A=null;else if(R===Hr)N?A=f(z({},M),j):!u&&F.current&&b?A=f(z(z({},M),{},{className:b}),j):d||!u&&!b?A=f(z(z({},M),{},{style:{display:"none"}}),j):A=null;else{var H;w===fr?H="prepare":Bd(w)?H="active":w===$n&&(H="start");var T=vc(v,"".concat(R,"-").concat(H));A=f(z(z({},M),{},{className:Q(vc(v,R),L(L({},T,T&&H),v,typeof v=="string")),style:$}),j)}if(c.isValidElement(A)&&on(A)){var O=A,I=O.ref;I||(A=c.cloneElement(A,{ref:j}))}return c.createElement(Gp,{ref:y},A)});return n.displayName="CSSMotion",n}const sn=nh(Dd);var vs="add",gs="keep",ms="remove",mi="removed";function ah(e){var t;return e&&Ne(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function ps(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(ah)}function oh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=ps(e),i=ps(t);o.forEach(function(u){for(var d=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===u.key){n<f&&(r=r.concat(i.slice(n,f).map(function(b){return z(z({},b),{},{status:vs})})),n=f),r.push(z(z({},v),{},{status:gs})),n+=1,d=!0;break}}d||r.push(z(z({},u),{},{status:ms}))}),n<a&&(r=r.concat(i.slice(n).map(function(u){return z(z({},u),{},{status:vs})})));var s={};r.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){r=r.filter(function(d){var f=d.key,v=d.status;return f!==u||v!==ms}),r.forEach(function(d){d.key===u&&(d.status=gs)})}),r}var ih=["component","children","onVisibleChanged","onAllRemoved"],sh=["status"],lh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ch(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,r=function(n){qr(o,n);var a=Xr(o);function o(){var i;jt(this,o);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return i=a.call.apply(a,[this].concat(l)),L(We(i),"state",{keyEntities:[]}),L(We(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(b){return b.key!==d?b:z(z({},b),{},{status:mi})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==mi}).length}),i}return Ft(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged,b=u.onAllRemoved,h=Je(u,ih),p=d||c.Fragment,g={};return lh.forEach(function(S){g[S]=h[S],delete h[S]}),delete h.keys,c.createElement(p,h,l.map(function(S,m){var y=S.status,E=Je(S,sh),C=y===vs||y===gs;return c.createElement(t,Oe({},g,{key:E.key,visible:C,eventProps:E,onVisibleChanged:function(R){if(v==null||v(R,{key:E.key}),!R){var w=s.removeKey(E.key);w===0&&b&&b()}}}),function(x,R){return f(z(z({},x),{},{index:m}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=ps(u),v=oh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var g=p.key;return b.key===g});return!(h&&h.status===mi&&b.status===ms)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}ch(Dd);function uh(e){const{children:t}=e,[,r]=Lr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(Wp,{motion:n},t):t}const kd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return It("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(kd.displayName="PropWarning");const dh=process.env.NODE_ENV!=="production"?kd:()=>null;var fh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let hs=!1;process.env.NODE_ENV;const vh=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Hd;function gh(){return Hd||Co}function mh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const ph=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Hd=t),n&&mh(n)&&(process.env.NODE_ENV!=="production"&&Do(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),fp(gh(),n))},hh=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,popupOverflow:h,legacyLocale:p,parentContext:g,iconPrefixCls:S,theme:m,componentDisabled:y,segmented:E,statistic:C,spin:x,calendar:R,carousel:w,cascader:$,collapse:N,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:T,steps:O,image:I,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Y,breadcrumb:Z,menu:J,pagination:te,input:ae,textArea:fe,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Ce,message:pe,tag:ne,table:ge,card:xe,tabs:Me,timeline:oe,timePicker:re,upload:me,notification:he,tree:tt,colorPicker:qe,datePicker:Ae,rangePicker:Ue,flex:Xe,wave:Ze,dropdown:Fe,warning:Te,tour:it,floatButtonGroup:Ye,variant:Le,inputNumber:ue,treeSelect:Ee}=e,Ke=c.useCallback((ke,He)=>{const{prefixCls:st}=e;if(He)return He;const ht=st||g.getPrefixCls("");return ke?`${ht}-${ke}`:ht},[g.getPrefixCls,e.prefixCls]),rt=S||g.iconPrefixCls||xd,bt=r||g.csp;Nd(rt,bt);const ut=kp(m,g.theme,{prefixCls:Ke("")});process.env.NODE_ENV!=="production"&&(hs=hs||!!ut);const Be={csp:bt,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:Ke,iconPrefixCls:rt,theme:ut,segmented:E,statistic:C,spin:x,calendar:R,carousel:w,cascader:$,collapse:N,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:T,steps:O,image:I,input:ae,textArea:fe,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Y,breadcrumb:Z,menu:J,pagination:te,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Ce,message:pe,tag:ne,table:ge,card:xe,tabs:Me,timeline:oe,timePicker:re,upload:me,notification:he,tree:tt,colorPicker:qe,datePicker:Ae,rangePicker:Ue,flex:Xe,wave:Ze,dropdown:Fe,warning:Te,tour:it,floatButtonGroup:Ye,variant:Le,inputNumber:ue,treeSelect:Ee};process.env.NODE_ENV!=="production"&&It("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ve=Object.assign({},g);Object.keys(Be).forEach(ke=>{Be[ke]!==void 0&&(Ve[ke]=Be[ke])}),vh.forEach(ke=>{const He=e[ke];He&&(Ve[ke]=He)}),typeof n<"u"&&(Ve.button=Object.assign({autoInsertSpace:n},Ve.button));const De=No(()=>Ve,Ve,(ke,He)=>{const st=Object.keys(ke),ht=Object.keys(He);return st.length!==ht.length||st.some(Rt=>ke[Rt]!==He[Rt])}),Re=c.useMemo(()=>({prefixCls:rt,csp:bt}),[rt,bt]);let be=c.createElement(c.Fragment,null,c.createElement(dh,{dropdownMatchSelectWidth:v}),t);const Ge=c.useMemo(()=>{var ke,He,st,ht;return wn(((ke=jn.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((st=(He=De.locale)===null||He===void 0?void 0:He.Form)===null||st===void 0?void 0:st.defaultValidateMessages)||{},((ht=De.form)===null||ht===void 0?void 0:ht.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[De,i==null?void 0:i.validateMessages]);Object.keys(Ge).length>0&&(be=c.createElement(Tm.Provider,{value:Ge},be)),s&&(be=c.createElement(pd,{locale:s,_ANT_MARK__:md},be)),(rt||bt)&&(be=c.createElement(el.Provider,{value:Re},be)),l&&(be=c.createElement(gp,{size:l},be)),be=c.createElement(uh,null,be);const pt=c.useMemo(()=>{const ke=ut||{},{algorithm:He,token:st,components:ht,cssVar:Rt}=ke,Dt=fh(ke,["algorithm","token","components","cssVar"]),kt=He&&(!Array.isArray(He)||He.length>0)?Wi(He):Cd,_={};Object.entries(ht||{}).forEach(X=>{let[ie,Pe]=X;const $e=Object.assign({},Pe);"algorithm"in $e&&($e.algorithm===!0?$e.theme=kt:(Array.isArray($e.algorithm)||typeof $e.algorithm=="function")&&($e.theme=Wi($e.algorithm)),delete $e.algorithm),_[ie]=$e});const G=Object.assign(Object.assign({},Ea),st);return Object.assign(Object.assign({},Dt),{theme:kt,token:G,components:_,override:Object.assign({override:G},_),cssVar:Rt})},[ut]);return m&&(be=c.createElement(Ed.Provider,{value:pt},be)),De.warning&&(be=c.createElement(vd.Provider,{value:De.warning},be)),y!==void 0&&(be=c.createElement(vp,{disabled:y},be)),c.createElement(ot.Provider,{value:De},be)},Bn=e=>{const t=c.useContext(ot),r=c.useContext(rl);return c.createElement(hh,Object.assign({parentContext:t,legacyLocale:r},e))};Bn.ConfigContext=ot;Bn.SizeContext=Ln;Bn.config=ph;Bn.useConfig=mp;Object.defineProperty(Bn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Do(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ln)});process.env.NODE_ENV!=="production"&&(Bn.displayName="ConfigProvider");function Wd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function bh(e){return Wd(e)instanceof ShadowRoot}function xo(e){return bh(e)?Wd(e):null}function yh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Sh(e,t){at(e,"[@ant-design/icons] ".concat(t))}function gc(e){return Ne(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ne(e.icon)==="object"||typeof e.icon=="function")}function mc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[yh(r)]=n}return t},{})}function bs(e,t,r){return r?P.createElement(e.tag,z(z({key:t},mc(e.attrs)),r),(e.children||[]).map(function(n,a){return bs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):P.createElement(e.tag,z({key:t},mc(e.attrs)),(e.children||[]).map(function(n,a){return bs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Gd(e){return Ca(e)[0]}function Ud(e){return e?Array.isArray(e)?e:[e]:[]}var Ch=`
|
|
64
|
+
`,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)"}),n)}var oc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Pd={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},Pp={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},_p={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},_d=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,o=oc(t,["override"]);let i=Object.assign(Object.assign({},n),{override:a});return i=Rd(i),o&&Object.entries(o).forEach(s=>{let[l,u]=s;const{theme:d}=u,f=oc(u,["theme"]);let v=f;d&&(v=_d(Object.assign(Object.assign({},i),f),{override:f},d)),i[l]=v}),i};function Lr(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=P.useContext(Ed),o=`${Op}-${t||""}`,i=r||Cd,[s,l,u]=qg(i,[Ea,e],{salt:o,override:n,getComputedToken:_d,formatToken:Rd,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Pd,ignore:Pp,preserve:_p}});return[i,u,t?l:"",s,a]}const Td=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),nl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Tp=()=>({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"}}),Ta=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Np=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"}}}),Ip=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},Mp=e=>({outline:`${ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),al=e=>({"&:focus-visible":Object.assign({},Mp(e))}),Nd=(e,t)=>{const[r,n]=Lr();return Xi({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},Tp()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:br,genComponentStyleHook:Ap,genSubStyleComponent:jp}=$p({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=P.useContext(ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Lr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=P.useContext(ot);return Nd(t,e),e??{}},getResetStyles:e=>[{"&":Np(e)}],getCommonStyle:Ip,getCompUnitless:()=>Pd});function Fp(e,t){return Eo.reduce((r,n)=>{const a=e[`${n}1`],o=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const Lp=Object.assign({},c),{useId:ic}=Lp,Dp=()=>"",zp=typeof ic>"u"?Dp:ic;function Vp(e,t,r){var n,a;const o=It("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},us),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:us.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=zp();if(process.env.NODE_ENV!=="production"){const u=i.cssVar||s.cssVar,d=!!(typeof i.cssVar=="object"&&(!((a=i.cssVar)===null||a===void 0)&&a.key)||l);process.env.NODE_ENV!=="production"&&o(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return No(()=>{var u,d;if(!e)return t;const f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const v=`css-var-${l.replace(/:/g,"")}`,b=((u=i.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((d=i.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:f,cssVar:b})},[i,s],(u,d)=>u.some((f,v)=>{const b=d[v];return!ba(f,b,!0)}))}var Bp=["children"],Id=c.createContext({});function kp(e){var t=e.children,r=Je(e,Bp);return c.createElement(Id.Provider,{value:r},t)}var Hp=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component);function Wp(e){var t=c.useReducer(function(s){return s+1},0),r=U(t,2),n=r[1],a=c.useRef(e),o=Bt(function(){return a.current}),i=Bt(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[o,i]}var Hr="none",Ka="appear",qa="enter",Xa="leave",sc="none",fr="prepare",$n="start",On="active",ol="end",Md="prepared";function lc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Gp(e,t){var r={animationend:lc("Animation","AnimationEnd"),transitionend:lc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Up=Gp(Kt(),typeof window<"u"?window:{}),Ad={};if(Kt()){var Kp=document.createElement("div");Ad=Kp.style}var Ya={};function jd(e){if(Ya[e])return Ya[e];var t=Up[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var o=r[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Ad)return Ya[e]=t[o],Ya[e]}return""}var Fd=jd("animationend"),Ld=jd("transitionend"),Dd=!!(Fd&&Ld),cc=Fd||"animationend",uc=Ld||"transitionend";function dc(e,t){if(!e)return null;if(Ne(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const qp=function(e){var t=P.useRef();function r(a){a&&(a.removeEventListener(uc,e),a.removeEventListener(cc,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(uc,e),a.addEventListener(cc,e),t.current=a)}return c.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var zd=Kt()?P.useLayoutEffect:P.useEffect;const Xp=function(){var e=c.useRef(null);function t(){_t.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=_t(function(){a<=1?n({isCanceled:function(){return o!==e.current}}):r(n,a-1)});e.current=o}return c.useEffect(function(){return function(){t()}},[]),[r,t]};var Yp=[fr,$n,On,ol],Qp=[fr,Md],Vd=!1,Zp=!0;function Bd(e){return e===On||e===ol}const Jp=function(e,t,r){var n=xa(sc),a=U(n,2),o=a[0],i=a[1],s=Xp(),l=U(s,2),u=l[0],d=l[1];function f(){i(fr,!0)}var v=t?Qp:Yp;return zd(function(){if(o!==sc&&o!==ol){var b=v.indexOf(o),h=v[b+1],p=r(o);p===Vd?i(h,!0):h&&u(function(g){function S(){g.isCanceled()||i(h,!0)}p===!0?S():Promise.resolve(p).then(S)})}},[e,o]),c.useEffect(function(){return function(){d()}},[]),[f,o]};function eh(e,t,r,n){var a=n.motionEnter,o=a===void 0?!0:a,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,u=l===void 0?!0:l,d=n.motionDeadline,f=n.motionLeaveImmediately,v=n.onAppearPrepare,b=n.onEnterPrepare,h=n.onLeavePrepare,p=n.onAppearStart,g=n.onEnterStart,S=n.onLeaveStart,m=n.onAppearActive,y=n.onEnterActive,E=n.onLeaveActive,C=n.onAppearEnd,x=n.onEnterEnd,R=n.onLeaveEnd,w=n.onVisibleChanged,$=xa(),N=U($,2),F=N[0],j=N[1],A=Wp(Hr),M=U(A,2),H=M[0],T=M[1],O=xa(null),I=U(O,2),D=I[0],V=I[1],k=H(),K=P.useRef(!1),W=P.useRef(null);function q(){return r()}var Y=P.useRef(!1);function Z(){T(Hr),V(null,!0)}var J=Bt(function(ge){var xe=H();if(xe!==Hr){var Me=q();if(!(ge&&!ge.deadline&&ge.target!==Me)){var oe=Y.current,re;xe===Ka&&oe?re=C==null?void 0:C(Me,ge):xe===qa&&oe?re=x==null?void 0:x(Me,ge):xe===Xa&&oe&&(re=R==null?void 0:R(Me,ge)),oe&&re!==!1&&Z()}}}),te=qp(J),ae=U(te,1),fe=ae[0],de=function(xe){switch(xe){case Ka:return L(L(L({},fr,v),$n,p),On,m);case qa:return L(L(L({},fr,b),$n,g),On,y);case Xa:return L(L(L({},fr,h),$n,S),On,E);default:return{}}},ve=c.useMemo(function(){return de(k)},[k]),we=Jp(k,!e,function(ge){if(ge===fr){var xe=ve[fr];return xe?xe(q()):Vd}if(se in ve){var Me;V(((Me=ve[se])===null||Me===void 0?void 0:Me.call(ve,q(),null))||null)}return se===On&&k!==Hr&&(fe(q()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),se===Md&&Z(),Zp}),B=U(we,2),ce=B[0],se=B[1],Ce=Bd(se);Y.current=Ce,zd(function(){j(t);var ge=K.current;K.current=!0;var xe;!ge&&t&&s&&(xe=Ka),ge&&t&&o&&(xe=qa),(ge&&!t&&u||!ge&&f&&!t&&u)&&(xe=Xa);var Me=de(xe);xe&&(e||Me[fr])?(T(xe),ce()):T(Hr)},[t]),P.useEffect(function(){(k===Ka&&!s||k===qa&&!o||k===Xa&&!u)&&T(Hr)},[s,o,u]),P.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var pe=c.useRef(!1);P.useEffect(function(){F&&(pe.current=!0),F!==void 0&&k===Hr&&((pe.current||F)&&(w==null||w(F)),pe.current=!0)},[F,k]);var ne=D;return ve[fr]&&se===$n&&(ne=z({transition:"none"},ne)),[k,se,ne,F??t]}function th(e){var t=e;Ne(e)==="object"&&(t=e.transitionSupport);function r(a,o){return!!(a.motionName&&t&&o!==!1)}var n=c.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,l=a.removeOnLeave,u=l===void 0?!0:l,d=a.forceRender,f=a.children,v=a.motionName,b=a.leavedClassName,h=a.eventProps,p=c.useContext(Id),g=p.motion,S=r(a,g),m=P.useRef(),y=P.useRef();function E(){try{return m.current instanceof HTMLElement?m.current:ao(y.current)}catch{return null}}var C=eh(S,s,E,a),x=U(C,4),R=x[0],w=x[1],$=x[2],N=x[3],F=c.useRef(N);N&&(F.current=!0);var j=c.useCallback(function(D){m.current=D,Us(o,D)},[o]),A,M=z(z({},h),{},{visible:s});if(!f)A=null;else if(R===Hr)N?A=f(z({},M),j):!u&&F.current&&b?A=f(z(z({},M),{},{className:b}),j):d||!u&&!b?A=f(z(z({},M),{},{style:{display:"none"}}),j):A=null;else{var H;w===fr?H="prepare":Bd(w)?H="active":w===$n&&(H="start");var T=dc(v,"".concat(R,"-").concat(H));A=f(z(z({},M),{},{className:Q(dc(v,R),L(L({},T,T&&H),v,typeof v=="string")),style:$}),j)}if(c.isValidElement(A)&&on(A)){var O=A,I=O.ref;I||(A=c.cloneElement(A,{ref:j}))}return c.createElement(Hp,{ref:y},A)});return n.displayName="CSSMotion",n}const sn=th(Dd);var fs="add",vs="keep",gs="remove",mi="removed";function rh(e){var t;return e&&Ne(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function ms(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(rh)}function nh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,o=ms(e),i=ms(t);o.forEach(function(u){for(var d=!1,f=n;f<a;f+=1){var v=i[f];if(v.key===u.key){n<f&&(r=r.concat(i.slice(n,f).map(function(b){return z(z({},b),{},{status:fs})})),n=f),r.push(z(z({},v),{},{status:vs})),n+=1,d=!0;break}}d||r.push(z(z({},u),{},{status:gs}))}),n<a&&(r=r.concat(i.slice(n).map(function(u){return z(z({},u),{},{status:fs})})));var s={};r.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){r=r.filter(function(d){var f=d.key,v=d.status;return f!==u||v!==gs}),r.forEach(function(d){d.key===u&&(d.status=vs)})}),r}var ah=["component","children","onVisibleChanged","onAllRemoved"],oh=["status"],ih=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,r=function(n){qr(o,n);var a=Xr(o);function o(){var i;jt(this,o);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return i=a.call.apply(a,[this].concat(l)),L(We(i),"state",{keyEntities:[]}),L(We(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(b){return b.key!==d?b:z(z({},b),{},{status:mi})});return i.setState({keyEntities:v}),v.filter(function(b){var h=b.status;return h!==mi}).length}),i}return Ft(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,v=u.onVisibleChanged,b=u.onAllRemoved,h=Je(u,ah),p=d||c.Fragment,g={};return ih.forEach(function(S){g[S]=h[S],delete h[S]}),delete h.keys,c.createElement(p,h,l.map(function(S,m){var y=S.status,E=Je(S,oh),C=y===fs||y===vs;return c.createElement(t,Oe({},g,{key:E.key,visible:C,eventProps:E,onVisibleChanged:function(R){if(v==null||v(R,{key:E.key}),!R){var w=s.removeKey(E.key);w===0&&b&&b()}}}),function(x,R){return f(z(z({},x),{},{index:m}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=ms(u),v=nh(d,f);return{keyEntities:v.filter(function(b){var h=d.find(function(p){var g=p.key;return b.key===g});return!(h&&h.status===mi&&b.status===gs)})}}}]),o}(c.Component);return L(r,"defaultProps",{component:"div"}),r}sh(Dd);function lh(e){const{children:t}=e,[,r]=Lr(),{motion:n}=r,a=c.useRef(!1);return a.current=a.current||n===!1,a.current?c.createElement(kp,{motion:n},t):t}const kd=c.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return It("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(kd.displayName="PropWarning");const ch=process.env.NODE_ENV!=="production"?kd:()=>null;var uh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let ps=!1;process.env.NODE_ENV;const dh=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Hd;function fh(){return Hd||Co}function vh(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const gh=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Hd=t),n&&vh(n)&&(process.env.NODE_ENV!=="production"&&Do(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),up(fh(),n))},mh=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:o,form:i,locale:s,componentSize:l,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,popupOverflow:h,legacyLocale:p,parentContext:g,iconPrefixCls:S,theme:m,componentDisabled:y,segmented:E,statistic:C,spin:x,calendar:R,carousel:w,cascader:$,collapse:N,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:T,steps:O,image:I,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Y,breadcrumb:Z,menu:J,pagination:te,input:ae,textArea:fe,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Ce,message:pe,tag:ne,table:ge,card:xe,tabs:Me,timeline:oe,timePicker:re,upload:me,notification:he,tree:tt,colorPicker:qe,datePicker:Ae,rangePicker:Ue,flex:Xe,wave:Ze,dropdown:Fe,warning:Te,tour:it,floatButtonGroup:Ye,variant:Le,inputNumber:ue,treeSelect:Ee}=e,Ke=c.useCallback((ke,He)=>{const{prefixCls:st}=e;if(He)return He;const ht=st||g.getPrefixCls("");return ke?`${ht}-${ke}`:ht},[g.getPrefixCls,e.prefixCls]),rt=S||g.iconPrefixCls||xd,bt=r||g.csp;Nd(rt,bt);const ut=Vp(m,g.theme,{prefixCls:Ke("")});process.env.NODE_ENV!=="production"&&(ps=ps||!!ut);const Be={csp:bt,autoInsertSpaceInButton:n,alert:a,anchor:o,locale:s||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:b??v,popupOverflow:h,getPrefixCls:Ke,iconPrefixCls:rt,theme:ut,segmented:E,statistic:C,spin:x,calendar:R,carousel:w,cascader:$,collapse:N,typography:F,checkbox:j,descriptions:A,divider:M,drawer:H,skeleton:T,steps:O,image:I,input:ae,textArea:fe,layout:D,list:V,mentions:k,modal:K,progress:W,result:q,slider:Y,breadcrumb:Z,menu:J,pagination:te,empty:de,badge:ve,radio:we,rate:B,switch:ce,transfer:se,avatar:Ce,message:pe,tag:ne,table:ge,card:xe,tabs:Me,timeline:oe,timePicker:re,upload:me,notification:he,tree:tt,colorPicker:qe,datePicker:Ae,rangePicker:Ue,flex:Xe,wave:Ze,dropdown:Fe,warning:Te,tour:it,floatButtonGroup:Ye,variant:Le,inputNumber:ue,treeSelect:Ee};process.env.NODE_ENV!=="production"&&It("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ve=Object.assign({},g);Object.keys(Be).forEach(ke=>{Be[ke]!==void 0&&(Ve[ke]=Be[ke])}),dh.forEach(ke=>{const He=e[ke];He&&(Ve[ke]=He)}),typeof n<"u"&&(Ve.button=Object.assign({autoInsertSpace:n},Ve.button));const De=No(()=>Ve,Ve,(ke,He)=>{const st=Object.keys(ke),ht=Object.keys(He);return st.length!==ht.length||st.some(Ot=>ke[Ot]!==He[Ot])}),Re=c.useMemo(()=>({prefixCls:rt,csp:bt}),[rt,bt]);let be=c.createElement(c.Fragment,null,c.createElement(ch,{dropdownMatchSelectWidth:v}),t);const Ge=c.useMemo(()=>{var ke,He,st,ht;return wn(((ke=jn.Form)===null||ke===void 0?void 0:ke.defaultValidateMessages)||{},((st=(He=De.locale)===null||He===void 0?void 0:He.Form)===null||st===void 0?void 0:st.defaultValidateMessages)||{},((ht=De.form)===null||ht===void 0?void 0:ht.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[De,i==null?void 0:i.validateMessages]);Object.keys(Ge).length>0&&(be=c.createElement(Pm.Provider,{value:Ge},be)),s&&(be=c.createElement(pd,{locale:s,_ANT_MARK__:md},be)),(rt||bt)&&(be=c.createElement(el.Provider,{value:Re},be)),l&&(be=c.createElement(fp,{size:l},be)),be=c.createElement(lh,null,be);const pt=c.useMemo(()=>{const ke=ut||{},{algorithm:He,token:st,components:ht,cssVar:Ot}=ke,Dt=uh(ke,["algorithm","token","components","cssVar"]),kt=He&&(!Array.isArray(He)||He.length>0)?Hi(He):Cd,_={};Object.entries(ht||{}).forEach(X=>{let[ie,Pe]=X;const $e=Object.assign({},Pe);"algorithm"in $e&&($e.algorithm===!0?$e.theme=kt:(Array.isArray($e.algorithm)||typeof $e.algorithm=="function")&&($e.theme=Hi($e.algorithm)),delete $e.algorithm),_[ie]=$e});const G=Object.assign(Object.assign({},Ea),st);return Object.assign(Object.assign({},Dt),{theme:kt,token:G,components:_,override:Object.assign({override:G},_),cssVar:Ot})},[ut]);return m&&(be=c.createElement(Ed.Provider,{value:pt},be)),De.warning&&(be=c.createElement(vd.Provider,{value:De.warning},be)),y!==void 0&&(be=c.createElement(dp,{disabled:y},be)),c.createElement(ot.Provider,{value:De},be)},Bn=e=>{const t=c.useContext(ot),r=c.useContext(rl);return c.createElement(mh,Object.assign({parentContext:t,legacyLocale:r},e))};Bn.ConfigContext=ot;Bn.SizeContext=Ln;Bn.config=gh;Bn.useConfig=vp;Object.defineProperty(Bn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Do(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ln)});process.env.NODE_ENV!=="production"&&(Bn.displayName="ConfigProvider");function Wd(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function ph(e){return Wd(e)instanceof ShadowRoot}function xo(e){return ph(e)?Wd(e):null}function hh(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function bh(e,t){at(e,"[@ant-design/icons] ".concat(t))}function fc(e){return Ne(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ne(e.icon)==="object"||typeof e.icon=="function")}function vc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[hh(r)]=n}return t},{})}function hs(e,t,r){return r?P.createElement(e.tag,z(z({key:t},vc(e.attrs)),r),(e.children||[]).map(function(n,a){return hs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):P.createElement(e.tag,z({key:t},vc(e.attrs)),(e.children||[]).map(function(n,a){return hs(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Gd(e){return Ca(e)[0]}function Ud(e){return e?Array.isArray(e)?e:[e]:[]}var yh=`
|
|
94
65
|
.anticon {
|
|
95
66
|
display: inline-flex;
|
|
96
67
|
align-items: center;
|
|
@@ -145,34 +116,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
145
116
|
transform: rotate(360deg);
|
|
146
117
|
}
|
|
147
118
|
}
|
|
148
|
-
`,Eh=function(t){var r=P.useContext(el),n=r.csp,a=r.prefixCls,o=Ch;a&&(o=o.replace(/anticon/g,a)),P.useEffect(function(){var i=t.current,s=xo(i);Ar(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},xh=["icon","className","onClick","style","primaryColor","secondaryColor"],ua={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function wh(e){var t=e.primaryColor,r=e.secondaryColor;ua.primaryColor=t,ua.secondaryColor=r||Gd(t),ua.calculated=!!r}function $h(){return z({},ua)}var kn=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=Je(t,xh),u=c.useRef(),d=ua;if(i&&(d={primaryColor:i,secondaryColor:s||Gd(i)}),Eh(u),Sh(gc(r),"icon should be icon definiton, but got ".concat(r)),!gc(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),bs(f.icon,"svg-".concat(f.name),z(z({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};kn.displayName="IconReact";kn.getTwoToneColors=$h;kn.setTwoToneColors=wh;function Kd(e){var t=Ud(e),r=U(t,2),n=r[0],a=r[1];return kn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Oh(){var e=kn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Rh=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Kd(So.primary);var Xt=c.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=Je(e,Rh),d=c.useContext(el),f=d.prefixCls,v=f===void 0?"anticon":f,b=d.rootClassName,h=Q(b,v,L(L({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=Ud(l),m=U(S,2),y=m[0],E=m[1];return c.createElement("span",Oe({role:"img","aria-label":n.name},u,{ref:t,tabIndex:p,onClick:s,className:h}),c.createElement(kn,{icon:n,primaryColor:y,secondaryColor:E,style:g}))});Xt.displayName="AntdIcon";Xt.getTwoToneColor=Oh;Xt.setTwoToneColor=Kd;var Ph={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"},_h=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Ph}))},qd=c.forwardRef(_h);process.env.NODE_ENV!=="production"&&(qd.displayName="CloseCircleFilled");var Th={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"},Nh=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Th}))},Xd=c.forwardRef(Nh);process.env.NODE_ENV!=="production"&&(Xd.displayName="CloseOutlined");function Yd(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const Ih=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function zo(e,t){return Ih(e,e,t)}const il=e=>{const[,,,,t]=Lr();return t?`${e}-css-var`:""};var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=le.F1&&r<=le.F12)return!1;switch(r){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Mh={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"},Ah=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Mh}))},sl=c.forwardRef(Ah);process.env.NODE_ENV!=="production"&&(sl.displayName="LoadingOutlined");const ll=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(ll.displayName="zIndexContext");const en=100,jh=10,Fh=en*jh,Qd={Modal:en,Drawer:en,Popover:en,Popconfirm:en,Tooltip:en,Tour:en},Lh={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Dh(e){return e in Qd}function zh(e,t){const[,r]=Lr(),n=P.useContext(ll),a=Dh(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+Qd[e]:i+=Lh[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=It(e),s=r.zIndexPopupBase+Fh,l=o[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o}function qt(){qt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,O,I){T[O]=I.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(T,O,I){return Object.defineProperty(T,O,{value:I,enumerable:!0,configurable:!0,writable:!0}),T[O]}try{u({},"")}catch{u=function(I,D,V){return I[D]=V}}function d(T,O,I,D){var V=O&&O.prototype instanceof S?O:S,k=Object.create(V.prototype),K=new M(D||[]);return a(k,"_invoke",{value:N(T,I,K)}),k}function f(T,O,I){try{return{type:"normal",arg:T.call(O,I)}}catch(D){return{type:"throw",arg:D}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",g={};function S(){}function m(){}function y(){}var E={};u(E,i,function(){return this});var C=Object.getPrototypeOf,x=C&&C(C(H([])));x&&x!==r&&n.call(x,i)&&(E=x);var R=y.prototype=S.prototype=Object.create(E);function w(T){["next","throw","return"].forEach(function(O){u(T,O,function(I){return this._invoke(O,I)})})}function $(T,O){function I(V,k,K,W){var q=f(T[V],T,k);if(q.type!=="throw"){var Y=q.arg,Z=Y.value;return Z&&Ne(Z)=="object"&&n.call(Z,"__await")?O.resolve(Z.__await).then(function(J){I("next",J,K,W)},function(J){I("throw",J,K,W)}):O.resolve(Z).then(function(J){Y.value=J,K(Y)},function(J){return I("throw",J,K,W)})}W(q.arg)}var D;a(this,"_invoke",{value:function(k,K){function W(){return new O(function(q,Y){I(k,K,q,Y)})}return D=D?D.then(W,W):W()}})}function N(T,O,I){var D=v;return function(V,k){if(D===h)throw Error("Generator is already running");if(D===p){if(V==="throw")throw k;return{value:e,done:!0}}for(I.method=V,I.arg=k;;){var K=I.delegate;if(K){var W=F(K,I);if(W){if(W===g)continue;return W}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(D===v)throw D=p,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);D=h;var q=f(T,O,I);if(q.type==="normal"){if(D=I.done?p:b,q.arg===g)continue;return{value:q.arg,done:I.done}}q.type==="throw"&&(D=p,I.method="throw",I.arg=q.arg)}}}function F(T,O){var I=O.method,D=T.iterator[I];if(D===e)return O.delegate=null,I==="throw"&&T.iterator.return&&(O.method="return",O.arg=e,F(T,O),O.method==="throw")||I!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+I+"' method")),g;var V=f(D,T.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,g;var k=V.arg;return k?k.done?(O[T.resultName]=k.value,O.next=T.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,g):k:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,g)}function j(T){var O={tryLoc:T[0]};1 in T&&(O.catchLoc=T[1]),2 in T&&(O.finallyLoc=T[2],O.afterLoc=T[3]),this.tryEntries.push(O)}function A(T){var O=T.completion||{};O.type="normal",delete O.arg,T.completion=O}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(j,this),this.reset(!0)}function H(T){if(T||T===""){var O=T[i];if(O)return O.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var I=-1,D=function V(){for(;++I<T.length;)if(n.call(T,I))return V.value=T[I],V.done=!1,V;return V.value=e,V.done=!0,V};return D.next=D}}throw new TypeError(Ne(T)+" is not iterable")}return m.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var O=typeof T=="function"&&T.constructor;return!!O&&(O===m||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,y):(T.__proto__=y,u(T,l,"GeneratorFunction")),T.prototype=Object.create(R),T},t.awrap=function(T){return{__await:T}},w($.prototype),u($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(T,O,I,D,V){V===void 0&&(V=Promise);var k=new $(d(T,O,I,D),V);return t.isGeneratorFunction(O)?k:k.next().then(function(K){return K.done?K.value:k.next()})},w(R),u(R,l,"Generator"),u(R,i,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),t.keys=function(T){var O=Object(T),I=[];for(var D in O)I.push(D);return I.reverse(),function V(){for(;I.length;){var k=I.pop();if(k in O)return V.value=k,V.done=!1,V}return V.done=!0,V}},t.values=H,M.prototype={constructor:M,reset:function(O){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(A),!O)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var I=this;function D(Y,Z){return K.type="throw",K.arg=O,I.next=Y,Z&&(I.method="next",I.arg=e),!!Z}for(var V=this.tryEntries.length-1;V>=0;--V){var k=this.tryEntries[V],K=k.completion;if(k.tryLoc==="root")return D("end");if(k.tryLoc<=this.prev){var W=n.call(k,"catchLoc"),q=n.call(k,"finallyLoc");if(W&&q){if(this.prev<k.catchLoc)return D(k.catchLoc,!0);if(this.prev<k.finallyLoc)return D(k.finallyLoc)}else if(W){if(this.prev<k.catchLoc)return D(k.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return D(k.finallyLoc)}}}},abrupt:function(O,I){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc<=this.prev&&n.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var k=V;break}}k&&(O==="break"||O==="continue")&&k.tryLoc<=I&&I<=k.finallyLoc&&(k=null);var K=k?k.completion:{};return K.type=O,K.arg=I,k?(this.method="next",this.next=k.finallyLoc,g):this.complete(K)},complete:function(O,I){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&I&&(this.next=I),g},finish:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.finallyLoc===O)return this.complete(D.completion,D.afterLoc),A(D),g}},catch:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc===O){var V=D.completion;if(V.type==="throw"){var k=V.arg;A(D)}return k}}throw Error("illegal catch attempt")},delegateYield:function(O,I,D){return this.delegate={iterator:H(O),resultName:I,nextLoc:D},this.method==="next"&&(this.arg=e),g}},t}function pc(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,a)}function ln(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){pc(o,n,a,i,s,"next",l)}function s(l){pc(o,n,a,i,s,"throw",l)}i(void 0)})}}var Na=z({},_v),Vh=Na.version,Bh=Na.render,kh=Na.unmountComponentAtNode,Vo;try{var Hh=Number((Vh||"").split(".")[0]);Hh>=18&&(Vo=Na.createRoot)}catch{}function hc(e){var t=Na.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ne(t)==="object"&&(t.usingClientEntryPoint=e)}var wo="__rc_react_root__";function Wh(e,t){hc(!0);var r=t[wo]||Vo(t);hc(!1),r.render(e),t[wo]=r}function Gh(e,t){Bh(e,t)}function Uh(e,t){if(Vo){Wh(e,t);return}Gh(e,t)}function Kh(e){return ys.apply(this,arguments)}function ys(){return ys=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[wo])===null||a===void 0||a.unmount(),delete t[wo]}));case 1:case"end":return n.stop()}},e)})),ys.apply(this,arguments)}function qh(e){kh(e)}function Xh(e){return Ss.apply(this,arguments)}function Ss(){return Ss=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Vo===void 0){n.next=2;break}return n.abrupt("return",Kh(t));case 2:qh(t);case 3:case"end":return n.stop()}},e)})),Ss.apply(this,arguments)}const Zd=(e,t,r)=>r!==void 0?r:`${e}-${t}`,cl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},Yh=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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(",")}}}}},Qh=Fp("Wave",e=>[Yh(e)]),Jd=`${Co}-wave-target`;function Zh(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function pi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Zh(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Jh(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return pi(t)?t:pi(r)?r:pi(n)?n:null}function hi(e){return Number.isNaN(e)?0:e}const e0=e=>{const{className:t,target:r,component:n}=e,a=c.useRef(null),[o,i]=c.useState(null),[s,l]=c.useState([]),[u,d]=c.useState(0),[f,v]=c.useState(0),[b,h]=c.useState(0),[p,g]=c.useState(0),[S,m]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(x=>`${x}px`).join(" ")};o&&(y["--wave-color"]=o);function E(){const x=getComputedStyle(r);i(Jh(r));const R=x.position==="static",{borderLeftWidth:w,borderTopWidth:$}=x;d(R?r.offsetLeft:hi(-parseFloat(w))),v(R?r.offsetTop:hi(-parseFloat($))),h(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:F,borderBottomLeftRadius:j,borderBottomRightRadius:A}=x;l([N,F,A,j].map(M=>hi(parseFloat(M))))}if(c.useEffect(()=>{if(r){const x=_t(()=>{E(),m(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(E),R.observe(r)),()=>{_t.cancel(x),R==null||R.disconnect()}}},[]),!S)return null;const C=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Jd));return c.createElement(sn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;Xh($).then(()=>{$==null||$.remove()})}return!1}},(x,R)=>{let{className:w}=x;return c.createElement("div",{ref:Or(a,R),className:Q(t,w,{"wave-quick":C}),style:y})})},t0=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),Uh(c.createElement(e0,Object.assign({},t,{target:e})),a)},r0=(e,t,r)=>{const{wave:n}=c.useContext(ot),[,a,o]=Lr(),i=Bt(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Jd}`)||d,{showEffect:v}=n||{};(v||t0)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{_t.cancel(s.current),s.current=_t(()=>{i(u)})}},ef=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=P.useContext(ot),o=P.useRef(null),i=a("wave"),[,s]=Qh(i),l=r0(o,Q(i,s),n);if(P.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!cl(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!P.isValidElement(t))return t??null;const u=on(t)?Or(t.ref,o):o;return zo(t,{ref:u})};process.env.NODE_ENV!=="production"&&(ef.displayName="Wave");const Hn=e=>{const t=P.useContext(Ln);return P.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},n0=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},a0=e=>{const{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},o0=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}}}},tf=br("Space",e=>{const t=Lt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[a0(t),o0(t),n0(t)]},()=>({}),{resetStyle:!1});var rf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Bo=c.createContext(null),nf=(e,t)=>{const r=c.useContext(Bo),n=c.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=r,s=a==="vertical"?"-vertical-":"-";return Q(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},i0=e=>{let{children:t}=e;return c.createElement(Bo.Provider,{value:null},t)},s0=e=>{var{children:t}=e,r=rf(e,["children"]);return c.createElement(Bo.Provider,{value:r},t)},l0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(ot),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=rf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Hn(y=>n??y),v=t("space-compact",i),[b,h]=tf(v),p=Q(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),g=c.useContext(Bo),S=$r(u),m=c.useMemo(()=>S.map((y,E)=>{const C=(y==null?void 0:y.key)||`${v}-item-${E}`;return c.createElement(s0,{key:C,compactSize:f,compactDirection:a,isFirstItem:E===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:E===S.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[n,S,g]);return S.length===0?null:b(c.createElement("div",Object.assign({className:p},d),m))},c0=l0;var u0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const af=c.createContext(void 0),d0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(ot),{prefixCls:n,size:a,className:o}=e,i=u0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Lr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=It("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Q(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(af.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},bc=/^[\u4e00-\u9fa5]{2}$/,Cs=bc.test.bind(bc);function yc(e){return typeof e=="string"}function Qa(e){return e==="text"||e==="link"}function f0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&yc(e.type)&&Cs(e.props.children)?zo(e,{children:e.props.children.split("").join(r)}):yc(e)?Cs(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):Yd(e)?P.createElement("span",null,e):e}function v0(e,t){let r=!1;const n=[];return P.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=i}),P.Children.map(n,a=>f0(a,t))}const of=P.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:o}=e,i=Q(`${o}-icon`,r);return P.createElement("span",{ref:t,className:i,style:n},a)}),Sc=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Q(`${r}-loading-icon`,n);return P.createElement(of,{prefixCls:r,className:i,style:a,ref:t},P.createElement(sl,{className:o}))}),bi=()=>({width:0,opacity:0,transform:"scale(0)"}),yi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),g0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?P.createElement(Sc,{prefixCls:t,className:a,style:o}):P.createElement(sn,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:bi,onAppearActive:yi,onEnterStart:bi,onEnterActive:yi,onLeaveStart:yi,onLeaveActive:bi},(s,l)=>{let{className:u,style:d}=s;return P.createElement(Sc,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},Cc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),m0=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:o}=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(n).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:r}},Cc(`${t}-primary`,a),Cc(`${t}-danger`,o)]}},sf=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Lt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},lf=e=>{var t,r,n,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:fo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:fo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:fo(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*v)/2-e.lineWidth,0)}},p0=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ee(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({},al(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Fr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),h0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),b0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),y0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),wa=(e,t,r,n,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},Fr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),ul=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},y0(e))}),cf=e=>Object.assign({},ul(e)),$o=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Fr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),wa(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ul(e))}),S0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Fr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),wa(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Fr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ul(e))}),C0=e=>Object.assign(Object.assign({},uf(e)),{borderStyle:"dashed"}),E0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$o(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$o(e))}),x0=e=>Object.assign(Object.assign(Object.assign({},Fr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$o(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},$o(e)),Fr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),w0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:uf(e),[`${t}-primary`]:S0(e),[`${t}-dashed`]:C0(e),[`${t}-link`]:E0(e),[`${t}-text`]:x0(e),[`${t}-ghost`]:wa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},dl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,d=`${r}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:n,padding:`${ee(u)} ${ee(s)}`,borderRadius:i,[`&${d}`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:h0(e)},{[`${r}${r}-round${t}`]:b0(e)}]},$0=e=>{const t=Lt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return dl(t,e.componentCls)},O0=e=>{const t=Lt(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 dl(t,`${e.componentCls}-sm`)},R0=e=>{const t=Lt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return dl(t,`${e.componentCls}-lg`)},P0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},_0=br("Button",e=>{const t=sf(e);return[p0(t),$0(t),O0(t),R0(t),P0(t),w0(t),m0(t)]},lf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function T0(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function N0(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function df(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},T0(e,n,t)),N0(r,n,t))}}function I0(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 M0(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function A0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},I0(e,t)),M0(e.componentCls,t))}}const j0=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ee(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:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ee(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},F0=Lp(["Button","compact"],e=>{const t=sf(e);return[df(t),A0(t),j0(t)]},lf);var L0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function D0(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const z0=P.forwardRef((e,t)=>{var r,n,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:u="default",size:d,styles:f,disabled:v,className:b,rootClassName:h,children:p,icon:g,iconPosition:S="start",ghost:m=!1,block:y=!1,htmlType:E="button",classNames:C,style:x={},autoInsertSpace:R}=e,w=L0(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=s||"default",{getPrefixCls:N,direction:F,button:j}=P.useContext(ot),A=(r=R??(j==null?void 0:j.autoInsertSpace))!==null&&r!==void 0?r:!0,M=N("btn",i),[H,T,O]=_0(M),I=P.useContext(Fn),D=v??I,V=P.useContext(af),k=P.useMemo(()=>D0(o),[o]),[K,W]=P.useState(k.loading),[q,Y]=P.useState(!1),J=Or(t,P.createRef()),te=P.Children.count(p)===1&&!g&&!Qa($);P.useEffect(()=>{let re=null;k.delay>0?re=setTimeout(()=>{re=null,W(!0)},k.delay):W(k.loading);function me(){re&&(clearTimeout(re),re=null)}return me},[k]),P.useEffect(()=>{if(!J||!J.current||!A)return;const re=J.current.textContent;te&&Cs(re)?q||Y(!0):q&&Y(!1)},[J]);const ae=re=>{const{onClick:me}=e;if(K||D){re.preventDefault();return}me==null||me(re)};if(process.env.NODE_ENV!=="production"){const re=It("Button");process.env.NODE_ENV!=="production"&&re(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&re(!(m&&Qa($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:fe,compactItemClassnames:de}=nf(M,F),ve={large:"lg",small:"sm",middle:void 0},we=Hn(re=>{var me,he;return(he=(me=d??fe)!==null&&me!==void 0?me:V)!==null&&he!==void 0?he:re}),B=we&&ve[we]||"",ce=K?"loading":g,se=hr(w,["navigate"]),Ce=Q(M,T,O,{[`${M}-${u}`]:u!=="default"&&u,[`${M}-${$}`]:$,[`${M}-${B}`]:B,[`${M}-icon-only`]:!p&&p!==0&&!!ce,[`${M}-background-ghost`]:m&&!Qa($),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:q&&A&&!K,[`${M}-block`]:y,[`${M}-dangerous`]:l,[`${M}-rtl`]:F==="rtl",[`${M}-icon-end`]:S==="end"},de,b,h,j==null?void 0:j.className),pe=Object.assign(Object.assign({},j==null?void 0:j.style),x),ne=Q(C==null?void 0:C.icon,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.icon),ge=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.icon)||{}),xe=g&&!K?P.createElement(of,{prefixCls:M,className:ne,style:ge},g):P.createElement(g0,{existIcon:!!g,prefixCls:M,loading:K}),Me=p||p===0?v0(p,te&&A):null;if(se.href!==void 0)return H(P.createElement("a",Object.assign({},se,{className:Q(Ce,{[`${M}-disabled`]:D}),href:D?void 0:se.href,style:pe,onClick:ae,ref:J,tabIndex:D?-1:0}),xe,Me));let oe=P.createElement("button",Object.assign({},w,{type:E,className:Ce,style:pe,onClick:ae,disabled:D,ref:J}),xe,Me,!!de&&P.createElement(F0,{key:"compact",prefixCls:M}));return Qa($)||(oe=P.createElement(ef,{component:"Button",disabled:K},oe)),H(oe)}),ko=z0;ko.Group=d0;ko.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(ko.displayName="Button");var ff=c.createContext(null),Ec=[];function V0(e,t){var r=c.useState(function(){if(!Kt())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=U(r,1),a=n[0],o=c.useRef(!1),i=c.useContext(ff),s=c.useState(Ec),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var g=[h].concat(ye(p));return g})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return yt(function(){return e?i?i(v):v():b(),b},[e]),yt(function(){u.length&&(u.forEach(function(h){return h()}),d(Ec))},[u]),[a,f]}function B0(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";Ar(`
|
|
119
|
+
`,Sh=function(t){var r=P.useContext(el),n=r.csp,a=r.prefixCls,o=yh;a&&(o=o.replace(/anticon/g,a)),P.useEffect(function(){var i=t.current,s=xo(i);Ar(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:s})},[])},Ch=["icon","className","onClick","style","primaryColor","secondaryColor"],ua={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Eh(e){var t=e.primaryColor,r=e.secondaryColor;ua.primaryColor=t,ua.secondaryColor=r||Gd(t),ua.calculated=!!r}function xh(){return z({},ua)}var kn=function(t){var r=t.icon,n=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,l=Je(t,Ch),u=c.useRef(),d=ua;if(i&&(d={primaryColor:i,secondaryColor:s||Gd(i)}),Sh(u),bh(fc(r),"icon should be icon definiton, but got ".concat(r)),!fc(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),hs(f.icon,"svg-".concat(f.name),z(z({className:n,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};kn.displayName="IconReact";kn.getTwoToneColors=xh;kn.setTwoToneColors=Eh;function Kd(e){var t=Ud(e),r=U(t,2),n=r[0],a=r[1];return kn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function wh(){var e=kn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var $h=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Kd(So.primary);var Xt=c.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=Je(e,$h),d=c.useContext(el),f=d.prefixCls,v=f===void 0?"anticon":f,b=d.rootClassName,h=Q(b,v,L(L({},"".concat(v,"-").concat(n.name),!!n.name),"".concat(v,"-spin"),!!a||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=Ud(l),m=U(S,2),y=m[0],E=m[1];return c.createElement("span",Oe({role:"img","aria-label":n.name},u,{ref:t,tabIndex:p,onClick:s,className:h}),c.createElement(kn,{icon:n,primaryColor:y,secondaryColor:E,style:g}))});Xt.displayName="AntdIcon";Xt.getTwoToneColor=wh;Xt.setTwoToneColor=Kd;var Oh={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"},Rh=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Oh}))},qd=c.forwardRef(Rh);process.env.NODE_ENV!=="production"&&(qd.displayName="CloseCircleFilled");var Ph={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"},_h=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Ph}))},Xd=c.forwardRef(_h);process.env.NODE_ENV!=="production"&&(Xd.displayName="CloseOutlined");function Yd(e){return e&&P.isValidElement(e)&&e.type===P.Fragment}const Th=(e,t,r)=>P.isValidElement(e)?P.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function zo(e,t){return Th(e,e,t)}const il=e=>{const[,,,,t]=Lr();return t?`${e}-css-var`:""};var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=le.F1&&r<=le.F12)return!1;switch(r){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Nh={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"},Ih=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Nh}))},sl=c.forwardRef(Ih);process.env.NODE_ENV!=="production"&&(sl.displayName="LoadingOutlined");const ll=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(ll.displayName="zIndexContext");const en=100,Mh=10,Ah=en*Mh,Qd={Modal:en,Drawer:en,Popover:en,Popconfirm:en,Tooltip:en,Tour:en},jh={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Fh(e){return e in Qd}function Lh(e,t){const[,r]=Lr(),n=P.useContext(ll),a=Fh(e);let o;if(t!==void 0)o=[t,t];else{let i=n??0;a?i+=(n?0:r.zIndexPopupBase)+Qd[e]:i+=jh[e],o=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=It(e),s=r.zIndexPopupBase+Ah,l=o[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o}function qt(){qt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,O,I){T[O]=I.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(T,O,I){return Object.defineProperty(T,O,{value:I,enumerable:!0,configurable:!0,writable:!0}),T[O]}try{u({},"")}catch{u=function(I,D,V){return I[D]=V}}function d(T,O,I,D){var V=O&&O.prototype instanceof S?O:S,k=Object.create(V.prototype),K=new M(D||[]);return a(k,"_invoke",{value:N(T,I,K)}),k}function f(T,O,I){try{return{type:"normal",arg:T.call(O,I)}}catch(D){return{type:"throw",arg:D}}}t.wrap=d;var v="suspendedStart",b="suspendedYield",h="executing",p="completed",g={};function S(){}function m(){}function y(){}var E={};u(E,i,function(){return this});var C=Object.getPrototypeOf,x=C&&C(C(H([])));x&&x!==r&&n.call(x,i)&&(E=x);var R=y.prototype=S.prototype=Object.create(E);function w(T){["next","throw","return"].forEach(function(O){u(T,O,function(I){return this._invoke(O,I)})})}function $(T,O){function I(V,k,K,W){var q=f(T[V],T,k);if(q.type!=="throw"){var Y=q.arg,Z=Y.value;return Z&&Ne(Z)=="object"&&n.call(Z,"__await")?O.resolve(Z.__await).then(function(J){I("next",J,K,W)},function(J){I("throw",J,K,W)}):O.resolve(Z).then(function(J){Y.value=J,K(Y)},function(J){return I("throw",J,K,W)})}W(q.arg)}var D;a(this,"_invoke",{value:function(k,K){function W(){return new O(function(q,Y){I(k,K,q,Y)})}return D=D?D.then(W,W):W()}})}function N(T,O,I){var D=v;return function(V,k){if(D===h)throw Error("Generator is already running");if(D===p){if(V==="throw")throw k;return{value:e,done:!0}}for(I.method=V,I.arg=k;;){var K=I.delegate;if(K){var W=F(K,I);if(W){if(W===g)continue;return W}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(D===v)throw D=p,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);D=h;var q=f(T,O,I);if(q.type==="normal"){if(D=I.done?p:b,q.arg===g)continue;return{value:q.arg,done:I.done}}q.type==="throw"&&(D=p,I.method="throw",I.arg=q.arg)}}}function F(T,O){var I=O.method,D=T.iterator[I];if(D===e)return O.delegate=null,I==="throw"&&T.iterator.return&&(O.method="return",O.arg=e,F(T,O),O.method==="throw")||I!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+I+"' method")),g;var V=f(D,T.iterator,O.arg);if(V.type==="throw")return O.method="throw",O.arg=V.arg,O.delegate=null,g;var k=V.arg;return k?k.done?(O[T.resultName]=k.value,O.next=T.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,g):k:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,g)}function j(T){var O={tryLoc:T[0]};1 in T&&(O.catchLoc=T[1]),2 in T&&(O.finallyLoc=T[2],O.afterLoc=T[3]),this.tryEntries.push(O)}function A(T){var O=T.completion||{};O.type="normal",delete O.arg,T.completion=O}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(j,this),this.reset(!0)}function H(T){if(T||T===""){var O=T[i];if(O)return O.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var I=-1,D=function V(){for(;++I<T.length;)if(n.call(T,I))return V.value=T[I],V.done=!1,V;return V.value=e,V.done=!0,V};return D.next=D}}throw new TypeError(Ne(T)+" is not iterable")}return m.prototype=y,a(R,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var O=typeof T=="function"&&T.constructor;return!!O&&(O===m||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,y):(T.__proto__=y,u(T,l,"GeneratorFunction")),T.prototype=Object.create(R),T},t.awrap=function(T){return{__await:T}},w($.prototype),u($.prototype,s,function(){return this}),t.AsyncIterator=$,t.async=function(T,O,I,D,V){V===void 0&&(V=Promise);var k=new $(d(T,O,I,D),V);return t.isGeneratorFunction(O)?k:k.next().then(function(K){return K.done?K.value:k.next()})},w(R),u(R,l,"Generator"),u(R,i,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),t.keys=function(T){var O=Object(T),I=[];for(var D in O)I.push(D);return I.reverse(),function V(){for(;I.length;){var k=I.pop();if(k in O)return V.value=k,V.done=!1,V}return V.done=!0,V}},t.values=H,M.prototype={constructor:M,reset:function(O){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(A),!O)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var I=this;function D(Y,Z){return K.type="throw",K.arg=O,I.next=Y,Z&&(I.method="next",I.arg=e),!!Z}for(var V=this.tryEntries.length-1;V>=0;--V){var k=this.tryEntries[V],K=k.completion;if(k.tryLoc==="root")return D("end");if(k.tryLoc<=this.prev){var W=n.call(k,"catchLoc"),q=n.call(k,"finallyLoc");if(W&&q){if(this.prev<k.catchLoc)return D(k.catchLoc,!0);if(this.prev<k.finallyLoc)return D(k.finallyLoc)}else if(W){if(this.prev<k.catchLoc)return D(k.catchLoc,!0)}else{if(!q)throw Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return D(k.finallyLoc)}}}},abrupt:function(O,I){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc<=this.prev&&n.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var k=V;break}}k&&(O==="break"||O==="continue")&&k.tryLoc<=I&&I<=k.finallyLoc&&(k=null);var K=k?k.completion:{};return K.type=O,K.arg=I,k?(this.method="next",this.next=k.finallyLoc,g):this.complete(K)},complete:function(O,I){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&I&&(this.next=I),g},finish:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.finallyLoc===O)return this.complete(D.completion,D.afterLoc),A(D),g}},catch:function(O){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc===O){var V=D.completion;if(V.type==="throw"){var k=V.arg;A(D)}return k}}throw Error("illegal catch attempt")},delegateYield:function(O,I,D){return this.delegate={iterator:H(O),resultName:I,nextLoc:D},this.method==="next"&&(this.arg=e),g}},t}function gc(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,a)}function ln(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function i(l){gc(o,n,a,i,s,"next",l)}function s(l){gc(o,n,a,i,s,"throw",l)}i(void 0)})}}var Na=z({},_v),Dh=Na.version,zh=Na.render,Vh=Na.unmountComponentAtNode,Vo;try{var Bh=Number((Dh||"").split(".")[0]);Bh>=18&&(Vo=Na.createRoot)}catch{}function mc(e){var t=Na.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ne(t)==="object"&&(t.usingClientEntryPoint=e)}var wo="__rc_react_root__";function kh(e,t){mc(!0);var r=t[wo]||Vo(t);mc(!1),r.render(e),t[wo]=r}function Hh(e,t){zh(e,t)}function Wh(e,t){if(Vo){kh(e,t);return}Hh(e,t)}function Gh(e){return bs.apply(this,arguments)}function bs(){return bs=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[wo])===null||a===void 0||a.unmount(),delete t[wo]}));case 1:case"end":return n.stop()}},e)})),bs.apply(this,arguments)}function Uh(e){Vh(e)}function Kh(e){return ys.apply(this,arguments)}function ys(){return ys=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Vo===void 0){n.next=2;break}return n.abrupt("return",Gh(t));case 2:Uh(t);case 3:case"end":return n.stop()}},e)})),ys.apply(this,arguments)}const Zd=(e,t,r)=>r!==void 0?r:`${e}-${t}`,cl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},qh=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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(",")}}}}},Xh=Ap("Wave",e=>[qh(e)]),Jd=`${Co}-wave-target`;function Yh(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function pi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Yh(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Qh(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return pi(t)?t:pi(r)?r:pi(n)?n:null}function hi(e){return Number.isNaN(e)?0:e}const Zh=e=>{const{className:t,target:r,component:n}=e,a=c.useRef(null),[o,i]=c.useState(null),[s,l]=c.useState([]),[u,d]=c.useState(0),[f,v]=c.useState(0),[b,h]=c.useState(0),[p,g]=c.useState(0),[S,m]=c.useState(!1),y={left:u,top:f,width:b,height:p,borderRadius:s.map(x=>`${x}px`).join(" ")};o&&(y["--wave-color"]=o);function E(){const x=getComputedStyle(r);i(Qh(r));const R=x.position==="static",{borderLeftWidth:w,borderTopWidth:$}=x;d(R?r.offsetLeft:hi(-parseFloat(w))),v(R?r.offsetTop:hi(-parseFloat($))),h(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:F,borderBottomLeftRadius:j,borderBottomRightRadius:A}=x;l([N,F,A,j].map(M=>hi(parseFloat(M))))}if(c.useEffect(()=>{if(r){const x=_t(()=>{E(),m(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(E),R.observe(r)),()=>{_t.cancel(x),R==null||R.disconnect()}}},[]),!S)return null;const C=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Jd));return c.createElement(sn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,R)=>{var w;if(R.deadline||R.propertyName==="opacity"){const $=(w=a.current)===null||w===void 0?void 0:w.parentElement;Kh($).then(()=>{$==null||$.remove()})}return!1}},(x,R)=>{let{className:w}=x;return c.createElement("div",{ref:Or(a,R),className:Q(t,w,{"wave-quick":C}),style:y})})},Jh=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),Wh(c.createElement(Zh,Object.assign({},t,{target:e})),a)},e0=(e,t,r)=>{const{wave:n}=c.useContext(ot),[,a,o]=Lr(),i=Bt(u=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const f=d.querySelector(`.${Jd}`)||d,{showEffect:v}=n||{};(v||Jh)(f,{className:t,token:a,component:r,event:u,hashId:o})}),s=c.useRef();return u=>{_t.cancel(s.current),s.current=_t(()=>{i(u)})}},ef=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=P.useContext(ot),o=P.useRef(null),i=a("wave"),[,s]=Xh(i),l=e0(o,Q(i,s),n);if(P.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const f=v=>{!cl(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!P.isValidElement(t))return t??null;const u=on(t)?Or(t.ref,o):o;return zo(t,{ref:u})};process.env.NODE_ENV!=="production"&&(ef.displayName="Wave");const Hn=e=>{const t=P.useContext(Ln);return P.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},t0=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},r0=e=>{const{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},n0=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}}}},tf=br("Space",e=>{const t=Lt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[r0(t),n0(t),t0(t)]},()=>({}),{resetStyle:!1});var rf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Bo=c.createContext(null),nf=(e,t)=>{const r=c.useContext(Bo),n=c.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=r,s=a==="vertical"?"-vertical-":"-";return Q(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},a0=e=>{let{children:t}=e;return c.createElement(Bo.Provider,{value:null},t)},o0=e=>{var{children:t}=e,r=rf(e,["children"]);return c.createElement(Bo.Provider,{value:r},t)},i0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(ot),{size:n,direction:a,block:o,prefixCls:i,className:s,rootClassName:l,children:u}=e,d=rf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Hn(y=>n??y),v=t("space-compact",i),[b,h]=tf(v),p=Q(v,h,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},s,l),g=c.useContext(Bo),S=$r(u),m=c.useMemo(()=>S.map((y,E)=>{const C=(y==null?void 0:y.key)||`${v}-item-${E}`;return c.createElement(o0,{key:C,compactSize:f,compactDirection:a,isFirstItem:E===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:E===S.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[n,S,g]);return S.length===0?null:b(c.createElement("div",Object.assign({className:p},d),m))},s0=i0;var l0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const af=c.createContext(void 0),c0=e=>{const{getPrefixCls:t,direction:r}=c.useContext(ot),{prefixCls:n,size:a,className:o}=e,i=l0(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Lr();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=It("Button.Group");process.env.NODE_ENV!=="production"&&f(!a||["large","small","middle"].includes(a),"usage","Invalid prop `size`.")}const d=Q(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:r==="rtl"},o,l);return c.createElement(af.Provider,{value:a},c.createElement("div",Object.assign({},i,{className:d})))},pc=/^[\u4e00-\u9fa5]{2}$/,Ss=pc.test.bind(pc);function hc(e){return typeof e=="string"}function Qa(e){return e==="text"||e==="link"}function u0(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hc(e.type)&&Ss(e.props.children)?zo(e,{children:e.props.children.split("").join(r)}):hc(e)?Ss(e)?P.createElement("span",null,e.split("").join(r)):P.createElement("span",null,e):Yd(e)?P.createElement("span",null,e):e}function d0(e,t){let r=!1;const n=[];return P.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(r&&i){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=i}),P.Children.map(n,a=>u0(a,t))}const of=P.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:o}=e,i=Q(`${o}-icon`,r);return P.createElement("span",{ref:t,className:i,style:n},a)}),bc=P.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:o}=e,i=Q(`${r}-loading-icon`,n);return P.createElement(of,{prefixCls:r,className:i,style:a,ref:t},P.createElement(sl,{className:o}))}),bi=()=>({width:0,opacity:0,transform:"scale(0)"}),yi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),f0=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:o}=e,i=!!r;return n?P.createElement(bc,{prefixCls:t,className:a,style:o}):P.createElement(sn,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:bi,onAppearActive:yi,onEnterStart:bi,onEnterActive:yi,onLeaveStart:yi,onLeaveActive:bi},(s,l)=>{let{className:u,style:d}=s;return P.createElement(bc,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:l,iconClassName:u})})},yc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),v0=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:o}=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(n).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:r}},yc(`${t}-primary`,a),yc(`${t}-danger`,o)]}},sf=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Lt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},lf=e=>{var t,r,n,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:fo(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:fo(l),v=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:fo(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*v)/2-e.lineWidth,0)}},g0=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ee(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({},al(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Fr=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),m0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),p0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),h0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),wa=(e,t,r,n,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},Fr(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),ul=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},h0(e))}),cf=e=>Object.assign({},ul(e)),$o=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cf(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Fr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),wa(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ul(e))}),b0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cf(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Fr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),wa(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Fr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),wa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ul(e))}),y0=e=>Object.assign(Object.assign({},uf(e)),{borderStyle:"dashed"}),S0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$o(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$o(e))}),C0=e=>Object.assign(Object.assign(Object.assign({},Fr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$o(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},$o(e)),Fr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),E0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:uf(e),[`${t}-primary`]:b0(e),[`${t}-dashed`]:y0(e),[`${t}-link`]:S0(e),[`${t}-text`]:C0(e),[`${t}-ghost`]:wa(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},dl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:u}=e,d=`${r}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:n,padding:`${ee(u)} ${ee(s)}`,borderRadius:i,[`&${d}`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:m0(e)},{[`${r}${r}-round${t}`]:p0(e)}]},x0=e=>{const t=Lt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return dl(t,e.componentCls)},w0=e=>{const t=Lt(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 dl(t,`${e.componentCls}-sm`)},$0=e=>{const t=Lt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return dl(t,`${e.componentCls}-lg`)},O0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},R0=br("Button",e=>{const t=sf(e);return[g0(t),x0(t),w0(t),$0(t),O0(t),E0(t),v0(t)]},lf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function P0(e,t,r){const{focusElCls:n,focus:a,borderElCls:o}=r,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function _0(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function df(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},P0(e,n,t)),_0(r,n,t))}}function T0(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 N0(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function I0(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},T0(e,t)),N0(e.componentCls,t))}}const M0=e=>{const{componentCls:t,calc:r}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ee(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:r(e.lineWidth).mul(-1).equal(),insetInlineStart:r(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ee(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},A0=jp(["Button","compact"],e=>{const t=sf(e);return[df(t),I0(t),M0(t)]},lf);var j0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function F0(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const L0=P.forwardRef((e,t)=>{var r,n,a;const{loading:o=!1,prefixCls:i,type:s,danger:l=!1,shape:u="default",size:d,styles:f,disabled:v,className:b,rootClassName:h,children:p,icon:g,iconPosition:S="start",ghost:m=!1,block:y=!1,htmlType:E="button",classNames:C,style:x={},autoInsertSpace:R}=e,w=j0(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),$=s||"default",{getPrefixCls:N,direction:F,button:j}=P.useContext(ot),A=(r=R??(j==null?void 0:j.autoInsertSpace))!==null&&r!==void 0?r:!0,M=N("btn",i),[H,T,O]=R0(M),I=P.useContext(Fn),D=v??I,V=P.useContext(af),k=P.useMemo(()=>F0(o),[o]),[K,W]=P.useState(k.loading),[q,Y]=P.useState(!1),J=Or(t,P.createRef()),te=P.Children.count(p)===1&&!g&&!Qa($);P.useEffect(()=>{let re=null;k.delay>0?re=setTimeout(()=>{re=null,W(!0)},k.delay):W(k.loading);function me(){re&&(clearTimeout(re),re=null)}return me},[k]),P.useEffect(()=>{if(!J||!J.current||!A)return;const re=J.current.textContent;te&&Ss(re)?q||Y(!0):q&&Y(!1)},[J]);const ae=re=>{const{onClick:me}=e;if(K||D){re.preventDefault();return}me==null||me(re)};if(process.env.NODE_ENV!=="production"){const re=It("Button");process.env.NODE_ENV!=="production"&&re(!(typeof g=="string"&&g.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${g}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&re(!(m&&Qa($)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:fe,compactItemClassnames:de}=nf(M,F),ve={large:"lg",small:"sm",middle:void 0},we=Hn(re=>{var me,he;return(he=(me=d??fe)!==null&&me!==void 0?me:V)!==null&&he!==void 0?he:re}),B=we&&ve[we]||"",ce=K?"loading":g,se=hr(w,["navigate"]),Ce=Q(M,T,O,{[`${M}-${u}`]:u!=="default"&&u,[`${M}-${$}`]:$,[`${M}-${B}`]:B,[`${M}-icon-only`]:!p&&p!==0&&!!ce,[`${M}-background-ghost`]:m&&!Qa($),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:q&&A&&!K,[`${M}-block`]:y,[`${M}-dangerous`]:l,[`${M}-rtl`]:F==="rtl",[`${M}-icon-end`]:S==="end"},de,b,h,j==null?void 0:j.className),pe=Object.assign(Object.assign({},j==null?void 0:j.style),x),ne=Q(C==null?void 0:C.icon,(n=j==null?void 0:j.classNames)===null||n===void 0?void 0:n.icon),ge=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=j==null?void 0:j.styles)===null||a===void 0?void 0:a.icon)||{}),xe=g&&!K?P.createElement(of,{prefixCls:M,className:ne,style:ge},g):P.createElement(f0,{existIcon:!!g,prefixCls:M,loading:K}),Me=p||p===0?d0(p,te&&A):null;if(se.href!==void 0)return H(P.createElement("a",Object.assign({},se,{className:Q(Ce,{[`${M}-disabled`]:D}),href:D?void 0:se.href,style:pe,onClick:ae,ref:J,tabIndex:D?-1:0}),xe,Me));let oe=P.createElement("button",Object.assign({},w,{type:E,className:Ce,style:pe,onClick:ae,disabled:D,ref:J}),xe,Me,!!de&&P.createElement(A0,{key:"compact",prefixCls:M}));return Qa($)||(oe=P.createElement(ef,{component:"Button",disabled:K},oe)),H(oe)}),ko=L0;ko.Group=c0;ko.__ANT_BUTTON=!0;process.env.NODE_ENV!=="production"&&(ko.displayName="Button");var ff=c.createContext(null),Sc=[];function D0(e,t){var r=c.useState(function(){if(!Kt())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=U(r,1),a=n[0],o=c.useRef(!1),i=c.useContext(ff),s=c.useState(Sc),l=U(s,2),u=l[0],d=l[1],f=i||(o.current?void 0:function(h){d(function(p){var g=[h].concat(ye(p));return g})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return yt(function(){return e?i?i(v):v():b(),b},[e]),yt(function(){u.length&&(u.forEach(function(h){return h()}),d(Sc))},[u]),[a,f]}function z0(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";Ar(`
|
|
149
120
|
#`.concat(t,`::-webkit-scrollbar {
|
|
150
121
|
`).concat(d,`
|
|
151
122
|
`).concat(f,`
|
|
152
|
-
}`),t)}catch(h){console.error(h),a=l,o=u}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,b=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),ha(t),{width:v,height:b}}function
|
|
123
|
+
}`),t)}catch(h){console.error(h),a=l,o=u}}document.body.appendChild(r);var v=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,b=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),ha(t),{width:v,height:b}}function V0(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:z0(e)}function B0(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var k0="rc-util-locker-".concat(Date.now()),Cc=0;function H0(e){var t=!!e,r=c.useState(function(){return Cc+=1,"".concat(k0,"_").concat(Cc)}),n=U(r,1),a=n[0];yt(function(){if(t){var o=V0(document.body).width,i=B0();Ar(`
|
|
153
124
|
html body {
|
|
154
125
|
overflow-y: hidden;
|
|
155
126
|
`.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
156
|
-
}`),a)}else ha(a);return function(){ha(a)}},[t,a])}var U0=!1;function K0(e){return U0}var wc=function(t){return t===!1?!1:!Kt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},fl=c.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,u=c.useState(r),d=U(u,2),f=d[0],v=d[1],b=f||r;process.env.NODE_ENV!=="production"&&at(Kt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=c.useState(function(){return wc(a)}),p=U(h,2),g=p[0],S=p[1];c.useEffect(function(){var j=wc(a);S(j??null)});var m=V0(b&&!g,o),y=U(m,2),E=y[0],C=y[1],x=g??E;G0(n&&r&&Kt()&&(x===E||x===document.body));var R=null;if(l&&on(l)&&t){var w=l;R=w.ref}var $=_a(R,t);if(!b||!Kt()||g===void 0)return null;var N=x===!1||K0(),F=l;return t&&(F=c.cloneElement(l,{ref:$})),c.createElement(ff.Provider,{value:C},N?F:_n.createPortal(F,x))});process.env.NODE_ENV!=="production"&&(fl.displayName="Portal");function q0(){var e=z({},c);return e.useId}var $c=0,Oc=q0();const X0=Oc?function(t){var r=Oc();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=c.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return c.useEffect(function(){var i=$c;$c+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var nn="RC_FORM_INTERNAL_HOOKS",ft=function(){at(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Dn=c.createContext({getFieldValue:ft,getFieldsValue:ft,getFieldError:ft,getFieldWarning:ft,getFieldsError:ft,isFieldsTouched:ft,isFieldTouched:ft,isFieldValidating:ft,isFieldsValidating:ft,resetFields:ft,setFields:ft,setFieldValue:ft,setFieldsValue:ft,validateFields:ft,submit:ft,getInternalHooks:function(){return ft(),{dispatch:ft,initEntityValue:ft,registerField:ft,useSubscribe:ft,setInitialValues:ft,destroyForm:ft,setCallbacks:ft,registerWatch:ft,getFields:ft,setValidateMessages:ft,setPreserve:ft,getInitialValue:ft}}}),Oo=c.createContext(null);function Es(e){return e==null?[]:Array.isArray(e)?e:[e]}function Y0(e){return e&&!!e._init}function xs(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ws=xs();function Q0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Z0(e,t,r){if(Ks())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ga(a,r.prototype),a}function $s(e){var t=typeof Map=="function"?new Map:void 0;return $s=function(n){if(n===null||!Q0(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Z0(n,arguments,ma(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ga(a,n)},$s(e)}var J0=/%[sdj%]/g,vf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(vf=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function Os(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function er(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(J0,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function eb(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Tt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eb(t)&&typeof e=="string"&&!e)}function tb(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,ye(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function Rc(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function rb(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ye(e[r]||[]))}),t}var Pc=function(e){qr(r,e);var t=Xr(r);function r(n,a){var o;return jt(this,r),o=t.call(this,"Async Validation Error"),L(We(o),"errors",void 0),L(We(o),"fields",void 0),o.errors=n,o.fields=a,o}return Ft(r)}($s(Error));function nb(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(S){return n(S),S.length?b(new Pc(S,Os(S))):v(a)},p=rb(e);Rc(p,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(v,b){var h=function(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Pc(d,Os(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?Rc(g,r,h):tb(g,r,h)})});return f.catch(function(v){return v}),f}function ab(e){return!!(e&&e.message!==void 0)}function ob(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function _c(e,t){return function(r){var n;return e.fullFields?n=ob(t,e.fullFields):n=t[r.field||e.fullField],ab(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Tc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ne(n)==="object"&&Ne(e[r])==="object"?e[r]=z(z({},e[r]),n):e[r]=n}}return e}var vn="enum",ib=function(t,r,n,a,o){t[vn]=Array.isArray(t[vn])?t[vn]:[],t[vn].indexOf(r)===-1&&a.push(er(o.messages[vn],t.fullField,t[vn].join(", ")))},sb=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(er(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(er(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},lb=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(u,"_").length),i?d!==t.len&&a.push(er(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(er(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(er(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(er(o.messages[f].range,t.fullField,t.min,t.max))},gf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||Tt(r,i||t.type))&&a.push(er(o.messages.required,t.fullField))},Za;const cb=function(){if(Za)return Za;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(r).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(r).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?u:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(S,")").concat(m).concat(y);return Za=new RegExp("(?:^".concat(E,"$)"),"i"),Za};var Nc={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oa={integer:function(t){return oa.number(t)&&parseInt(t,10)===t},float:function(t){return oa.number(t)&&!oa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ne(t)==="object"&&!oa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Nc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cb())},hex:function(t){return typeof t=="string"&&!!t.match(Nc.hex)}},ub=function(t,r,n,a,o){if(t.required&&r===void 0){gf(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?oa[s](r)||a.push(er(o.messages.types[s],t.fullField,t.type)):s&&Ne(r)!==t.type&&a.push(er(o.messages.types[s],t.fullField,t.type))},db=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(er(o.messages.whitespace,t.fullField))};const Qe={required:gf,whitespace:db,type:ub,range:lb,enum:ib,pattern:sb};var fb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},vb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Qe.required(t,r,a,i,o,"array"),r!=null&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},gb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},mb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!Tt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},pb="enum",hb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[pb](t,r,a,i,o)}n(i)},bb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},yb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Sb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Cb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Eb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},xb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),Tt(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},wb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),Tt(r)||Qe.type(t,r,a,i,o)}n(i)},$b=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ne(r);Qe.required(t,r,a,i,o,s),n(i)},Ob=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),Tt(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},Si=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Tt(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),Tt(r,i)||Qe.type(t,r,a,s,o)}n(s)};const da={string:Ob,method:Sb,number:Cb,boolean:gb,regexp:wb,integer:yb,float:bb,array:vb,object:Eb,enum:hb,pattern:xb,date:mb,url:Si,hex:Si,email:Si,required:$b,any:fb};var Ia=function(){function e(t){jt(this,e),L(this,"rules",null),L(this,"_messages",ws),this.define(t)}return Ft(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ne(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Tc(xs(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function u(h){var p=[],g={};function S(y){if(Array.isArray(y)){var E;p=(E=p).concat.apply(E,ye(y))}else p.push(y)}for(var m=0;m<h.length;m++)S(h[m]);p.length?(g=Os(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===ws&&(d=xs()),Tc(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var p=n.rules[h],g=i[h];p.forEach(function(S){var m=S;typeof m.transform=="function"&&(i===r&&(i=z({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ne(g)))),typeof m=="function"?m={validator:m}:m=z({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=n.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:g,source:i,field:h}))})});var b={};return nb(f,s,function(h,p){var g=h.rule,S=(g.type==="object"||g.type==="array")&&(Ne(g.fields)==="object"||Ne(g.defaultField)==="object");S=S&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return z(z({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(ye(g.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(R)?R:[R];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(_c(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!S)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(_c(g,i)):s.error&&($=[s.error(g,er(s.messages.required,g.field))]),p($);var N={};g.defaultField&&Object.keys(h.value).map(function(A){N[A]=g.defaultField}),N=z(z({},N),h.rule.fields);var F={};Object.keys(N).forEach(function(A){var M=N[A],H=Array.isArray(M)?M:[M];F[A]=H.map(m.bind(null,A))});var j=new e(F);j.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),j.validate(h.value,h.rule.options||s,function(A){var M=[];$&&$.length&&M.push.apply(M,ye($)),A&&A.length&&M.push.apply(M,ye(A)),p(M.length?M:null)})}}var E;if(g.asyncValidator)E=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{E=g.validator(g,h.value,y,h.source,s)}catch(R){var C,x;(C=(x=console).error)===null||C===void 0||C.call(x,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}E===!0?y():E===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):E instanceof Array?y(E):E instanceof Error&&y(E.message)}E&&E.then&&E.then(function(){return y()},function(R){return y(R)})},function(h){u(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!da.hasOwnProperty(r.type))throw new Error(er("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?da.required:da[this.getType(r)]||void 0}}]),e}();L(Ia,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");da[t]=r});L(Ia,"warning",vf);L(Ia,"messages",ws);L(Ia,"validators",da);var Qt="'${name}' is not a valid ${type}",mf={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:Qt,method:Qt,array:Qt,object:Qt,number:Qt,date:Qt,boolean:Qt,integer:Qt,float:Qt,regexp:Qt,email:Qt,url:Qt,hex:Qt},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}"}},Ic=Ia;function Rb(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Mc="CODE_LOGIC_ERROR";function Rs(e,t,r,n,a){return Ps.apply(this,arguments)}function Ps(){return Ps=ln(qt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return qt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=z({},n),delete i.ruleIndex,Ic.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(Mc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Ic(L({},t,[i])),d=wn(mf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),z({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(S,m){var y=S.message,E=y===Mc?d.default:y;return c.isValidElement(E)?c.cloneElement(E,{key:"error_".concat(m)}):E}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(S,m){return Rs("".concat(t,".").concat(m),S,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(S,m){return[].concat(ye(S),ye(m))},[]));case 23:return b=z(z({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?Rb(S,b):S}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Ps.apply(this,arguments)}function Pb(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=z(z({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var S=!1,m=function(){for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];Promise.resolve().then(function(){at(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||g.apply(void 0,x)})},y=v(h,p,m);S=y&&typeof y.then=="function"&&typeof y.catch=="function",at(S,"`callback` is deprecated. Please return a promise instead."),S&&y.then(function(){g()}).catch(function(E){g(E||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!v==!!h?b-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=ln(qt().mark(function f(v,b){var h,p,g;return qt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Rs(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Rs(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Tb(u):_b(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function _b(e){return _s.apply(this,arguments)}function _s(){return _s=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,ye(a));return i}));case 1:case"end":return n.stop()}},e)})),_s.apply(this,arguments)}function Tb(e){return Ts.apply(this,arguments)}function Ts(){return Ts=ln(qt().mark(function e(t){var r;return qt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),Ts.apply(this,arguments)}function xt(e){return Es(e)}function Ac(e,t){var r={};return t.forEach(function(n){var a=wr(e,n);r=dr(r,n,a)}),r}function Rn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return pf(t,n,r)})}function pf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function Nb(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ne(e)!=="object"||Ne(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return ye(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function Ib(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ne(t.target)==="object"&&e in t.target?t.target[e]:t}function jc(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(ye(e.slice(0,r)),[a],ye(e.slice(r,t)),ye(e.slice(t+1,n))):o<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,r+1)),[a],ye(e.slice(r+1,n))):e}var Mb=["name"],rr=[];function Ci(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var vl=function(e){qr(r,e);var t=Xr(r);function r(n){var a;if(jt(this,r),a=t.call(this,n),L(We(a),"state",{resetCount:0}),L(We(a),"cancelRegisterFunc",null),L(We(a),"mounted",!1),L(We(a),"touched",!1),L(We(a),"dirty",!1),L(We(a),"validatePromise",void 0),L(We(a),"prevValidating",void 0),L(We(a),"errors",rr),L(We(a),"warnings",rr),L(We(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,xt(f)),a.cancelRegisterFunc=null}),L(We(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(ye(v),ye(u)):[]}),L(We(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(We(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(We(a),"metaCache",null),L(We(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=z(z({},a.getMeta()),{},{destroy:l});ba(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(We(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,S=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),E=u&&Rn(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!ba(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=rr,a.warnings=rr,a.triggerMetaEvent()),d.type){case"reset":if(!u||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=rr,a.warnings=rr,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Ci(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var C=d.data;if(E){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||rr),"warnings"in C&&(a.warnings=C.warnings||rr),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&Rn(u,S,!0)){a.reRender();return}if(v&&!S.length&&Ci(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var x=h.map(xt);if(x.some(function(R){return Rn(d.relatedFields,R)})){a.reRender();return}break}default:if(E||(!h.length||S.length||v)&&Ci(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(We(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,p=Promise.resolve().then(ln(qt().mark(function g(){var S,m,y,E,C,x,R;return qt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(S=a.props,m=S.validateFirst,y=m===void 0?!1:m,E=S.messageVariables,C=S.validateDebounce,x=a.getRules(),v&&(x=x.filter(function(N){return N}).filter(function(N){var F=N.validateTrigger;if(!F)return!0;var j=Es(F);return j.includes(v)})),!(C&&v)){$.next=10;break}return $.next=8,new Promise(function(N){setTimeout(N,C)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=Pb(u,d,x,l,y,E),R.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rr;if(a.validatePromise===p){var F;a.validatePromise=null;var j=[],A=[];(F=N.forEach)===null||F===void 0||F.call(N,function(M){var H=M.rule.warningOnly,T=M.errors,O=T===void 0?rr:T;H?A.push.apply(A,ye(O)):j.push.apply(j,ye(O))}),a.errors=j,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=rr,a.warnings=rr,a.triggerMetaEvent(),a.reRender()),p}),L(We(a),"isFieldValidating",function(){return!!a.validatePromise}),L(We(a),"isFieldTouched",function(){return a.touched}),L(We(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(nn),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),L(We(a),"getErrors",function(){return a.errors}),L(We(a),"getWarnings",function(){return a.warnings}),L(We(a),"isListField",function(){return a.props.isListField}),L(We(a),"isList",function(){return a.props.isList}),L(We(a),"isPreserve",function(){return a.props.preserve}),L(We(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(We(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return z(z({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=$r(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(We(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return wr(l||u(!0),d)}),L(We(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,v=u.validateTrigger,b=u.getValueFromEvent,h=u.normalize,p=u.valuePropName,g=u.getValueProps,S=u.fieldContext,m=v!==void 0?v:S.validateTrigger,y=a.getNamePath(),E=S.getInternalHooks,C=S.getFieldsValue,x=E(nn),R=x.dispatch,w=a.getValue(),$=g||function(M){return L({},p,M)},N=l[f],F=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&F&&Object.keys(F).forEach(function(M){at(typeof F[M]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(M,")"))});var j=z(z({},l),F);j[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var M,H=arguments.length,T=new Array(H),O=0;O<H;O++)T[O]=arguments[O];b?M=b.apply(void 0,T):M=Ib.apply(void 0,[p].concat(T)),h&&(M=h(M,w,C(!0))),R({type:"updateValue",namePath:y,value:M}),N&&N.apply(void 0,T)};var A=Es(m||[]);return A.forEach(function(M){var H=j[M];j[M]=function(){H&&H.apply(void 0,arguments);var T=a.props.rules;T&&T.length&&R({type:"validateField",namePath:y,triggerName:M})}}),j}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(nn),s=i.initEntityValue;s(We(a))}return a}return Ft(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(nn),u=l.registerField;this.cancelRegisterFunc=u(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(at(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(vl,"contextType",Dn);L(vl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function hf(e){var t=e.name,r=Je(e,Mb),n=c.useContext(Dn),a=c.useContext(Oo),o=t!==void 0?xt(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&at(!1,"`preserve` should not apply on Form.List fields."),c.createElement(vl,Oe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function Ab(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Dn),l=c.useContext(Oo),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=xt(s.prefixName)||[];return[].concat(ye(p),ye(xt(t)))},[s.prefixName,t]),v=c.useMemo(function(){return z(z({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var S=f.length,m=g[S];return[d.keys[m],g.slice(S+1)]}}},[f]);if(typeof n!="function")return at(!1,"Form.List only accepts function as children."),null;var h=function(g,S,m){var y=m.source;return y==="internal"?!1:g!==S};return c.createElement(Oo.Provider,{value:b},c.createElement(Dn.Provider,{value:v},c.createElement(hf,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var S=p.value,m=S===void 0?[]:S,y=p.onChange,E=s.getFieldValue,C=function(){var $=E(f||[]);return $||[]},x={add:function($,N){var F=C();N>=0&&N<=F.length?(d.keys=[].concat(ye(d.keys.slice(0,N)),[d.id],ye(d.keys.slice(N))),y([].concat(ye(F.slice(0,N)),[$],ye(F.slice(N))))):(process.env.NODE_ENV!=="production"&&(N<0||N>F.length)&&at(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(ye(d.keys),[d.id]),y([].concat(ye(F),[$]))),d.id+=1},remove:function($){var N=C(),F=new Set(Array.isArray($)?$:[$]);F.size<=0||(d.keys=d.keys.filter(function(j,A){return!F.has(A)}),y(N.filter(function(j,A){return!F.has(A)})))},move:function($,N){if($!==N){var F=C();$<0||$>=F.length||N<0||N>=F.length||(d.keys=jc(d.keys,$,N),y(jc(F,$,N)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&at(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var N=d.keys[$];return N===void 0&&(d.keys[$]=d.id,N=d.keys[$],d.id+=1),{name:$,key:N,isListField:!0}}),x,g)})))}function jb(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var bf="__@field_split__";function Ei(e){return e.map(function(t){return"".concat(Ne(t),":").concat(t)}).join(bf)}var gn=function(){function e(){jt(this,e),L(this,"kvs",new Map)}return Ft(e,[{key:"set",value:function(r,n){this.kvs.set(Ei(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ei(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Ei(r))}},{key:"map",value:function(r){return ye(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(bf);return r({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=U(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),Fb=["name"],Lb=Ft(function e(t){var r=this;jt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===nn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(at(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=wn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=dr(i,l,wr(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new gn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=wr(r.initialValues,n);return n.length?wn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||at(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new gn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=xt(o);return a.get(i)||{INVALIDATE_NAME_PATH:xt(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ne(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),Ac(r.store,u.map(xt))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=xt(n);return wr(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:xt(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=xt(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=xt(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map(xt),u=!1):(l=null,u=i):(l=i.map(xt),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new gn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(S){S.every(function(m,y){return g[y]===m})&&v.update(S,function(m){return[].concat(ye(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});return u?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map(xt);return a.some(function(i){var s=i.getNamePath();return Rn(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new gn,o=r.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)at(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=a.get(v);if(h&&h.size>1)at(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(v),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(dr(r.store,v,ye(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=s).push.apply(d,ye(ye(u).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(wn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(xt);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(dr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=Je(i,Fb),u=xt(s);o.push(u),"value"in l&&r.updateStore(dr(r.store,u,l.value)),r.notifyObservers(a,[u],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=z(z({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=wr(r.store,o);i===void 0&&r.updateStore(dr(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==u&&r.fieldEntities.every(function(f){return!pf(f.getNamePath(),a)})){var d=r.store;r.updateStore(dr(d,a,u,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=z(z({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ye(o))}),o}),L(this,"updateValue",function(n,a){var o=xt(n),i=r.store;r.updateStore(dr(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var u=Ac(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(ye(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=wn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new gn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=xt(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new gn;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var d=u.name;return Rn(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map(xt):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var y=m.getNamePath();if(f.add(y.join(d)),!s||Rn(l,y,b)){var E=m.validateRules(z({validateMessages:z(z({},mf),r.validateMessages)},i));u.push(E.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var x,R=[],w=[];return(x=C.forEach)===null||x===void 0||x.call(C,function($){var N=$.rule.warningOnly,F=$.errors;N?w.push.apply(w,ye(F)):R.push.apply(R,ye(F))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=jb(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(E){var C=E.name;return C});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var S=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(S),g}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function yf(e){var t=c.useRef(),r=c.useState({}),n=U(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new Lb(o);t.current=i.getForm()}return[t.current]}var Ns=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Db=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Ns),s=c.useRef({});return c.createElement(Ns.Provider,{value:z(z({},i),{},{validateMessages:z(z({},i.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=z(z({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=z({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},zb=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Vb=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,S=t.onFinishFailed,m=t.clearOnDestroy,y=Je(t,zb),E=c.useRef(null),C=c.useContext(Ns),x=yf(i),R=U(x,1),w=R[0],$=w.getInternalHooks(nn),N=$.useSubscribe,F=$.setInitialValues,j=$.setCallbacks,A=$.setValidateMessages,M=$.setPreserve,H=$.destroyForm;c.useImperativeHandle(r,function(){return z(z({},w),{},{nativeElement:E.current})}),c.useEffect(function(){return C.registerForm(n,w),function(){C.unregisterForm(n)}},[C,w,n]),A(z(z({},C.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(q){if(C.triggerFormChange(n,q),p){for(var Y=arguments.length,Z=new Array(Y>1?Y-1:0),J=1;J<Y;J++)Z[J-1]=arguments[J];p.apply(void 0,[q].concat(Z))}},onFinish:function(q){C.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:S}),M(s);var T=c.useRef(null);F(a,!T.current),T.current||(T.current=!0),c.useEffect(function(){return function(){return H(m)}},[]);var O,I=typeof l=="function";if(I){var D=w.getFieldsValue(!0);O=l(D,w)}else O=l;N(!I);var V=c.useRef();c.useEffect(function(){Nb(V.current||[],o||[])||w.setFields(o||[]),V.current=o},[o,w]);var k=c.useMemo(function(){return z(z({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(Oo.Provider,{value:null},c.createElement(Dn.Provider,{value:k},O));return d===!1?K:c.createElement(d,Oe({},y,{ref:E,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Fc(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Bb=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);at(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function kb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=Y0(o)?{form:o}:o,s=i.form,l=P.useState(),u=U(l,2),d=u[0],f=u[1],v=P.useMemo(function(){return Fc(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(Dn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&at(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var S=xt(n),m=P.useRef(S);return m.current=S,Bb(S),P.useEffect(function(){if(g){var y=p.getFieldsValue,E=p.getInternalHooks,C=E(nn),x=C.registerWatch,R=function(F,j){var A=i.preserve?j:F;return typeof n=="function"?n(A):wr(A,m.current)},w=x(function(N,F){var j=R(N,F),A=Fc(j);b.current!==A&&(b.current=A,f(j))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var Hb=c.forwardRef(Vb),Ma=Hb;Ma.FormProvider=Db;Ma.Field=hf;Ma.List=Ab;Ma.useForm=yf;Ma.useWatch=kb;const $a=c.createContext({});process.env.NODE_ENV!=="production"&&($a.displayName="FormItemInputContext");const Wb=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext($a),o=P.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement($a.Provider,{value:o},t)},Gb=P.createContext(void 0),Is=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(Wb,{override:!0,status:!0},a)),t&&(a=P.createElement(i0,null,a)),a};var Sf=function(t){if(Kt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},Ub=function(t,r){if(!Sf(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Lc(e,t){return!Array.isArray(e)&&t!==void 0?Ub(e,t):Sf(e)}const Ho=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Q({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Q({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Q(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},Kb=new $t("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Wo=e=>({height:e,lineHeight:ee(e)}),Pn=e=>Object.assign({width:e},Wo(e)),qb=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Kb,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),xi=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Wo(e)),Xb=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},Pn(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Pn(a)),[`${t}${t}-sm`]:Object.assign({},Pn(o))}},Yb=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:r},xi(t,s)),[`${n}-lg`]:Object.assign({},xi(a,s)),[`${n}-sm`]:Object.assign({},xi(o,s))}},Dc=e=>Object.assign({width:e},Wo(e)),Qb=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},Dc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Dc(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},wi=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},$i=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Wo(e)),Zb=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},$i(n,s))},wi(e,n,r)),{[`${r}-lg`]:Object.assign({},$i(a,s))}),wi(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},$i(o,s))}),wi(e,o,`${r}-sm`))},Jb=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:S,controlHeightXS:m,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Pn(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},Pn(u)),[`${r}-sm`]:Object.assign({},Pn(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:m}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Zb(e)),Xb(e)),Yb(e)),Qb(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
127
|
+
}`),a)}else ha(a);return function(){ha(a)}},[t,a])}var W0=!1;function G0(e){return W0}var Ec=function(t){return t===!1?!1:!Kt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},fl=c.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,u=c.useState(r),d=U(u,2),f=d[0],v=d[1],b=f||r;process.env.NODE_ENV!=="production"&&at(Kt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),c.useEffect(function(){(s||r)&&v(r)},[r,s]);var h=c.useState(function(){return Ec(a)}),p=U(h,2),g=p[0],S=p[1];c.useEffect(function(){var j=Ec(a);S(j??null)});var m=D0(b&&!g,o),y=U(m,2),E=y[0],C=y[1],x=g??E;H0(n&&r&&Kt()&&(x===E||x===document.body));var R=null;if(l&&on(l)&&t){var w=l;R=w.ref}var $=_a(R,t);if(!b||!Kt()||g===void 0)return null;var N=x===!1||G0(),F=l;return t&&(F=c.cloneElement(l,{ref:$})),c.createElement(ff.Provider,{value:C},N?F:_n.createPortal(F,x))});process.env.NODE_ENV!=="production"&&(fl.displayName="Portal");function U0(){var e=z({},c);return e.useId}var xc=0,wc=U0();const K0=wc?function(t){var r=wc();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=c.useState("ssr-id"),n=U(r,2),a=n[0],o=n[1];return c.useEffect(function(){var i=xc;xc+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)};var nn="RC_FORM_INTERNAL_HOOKS",ft=function(){at(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Dn=c.createContext({getFieldValue:ft,getFieldsValue:ft,getFieldError:ft,getFieldWarning:ft,getFieldsError:ft,isFieldsTouched:ft,isFieldTouched:ft,isFieldValidating:ft,isFieldsValidating:ft,resetFields:ft,setFields:ft,setFieldValue:ft,setFieldsValue:ft,validateFields:ft,submit:ft,getInternalHooks:function(){return ft(),{dispatch:ft,initEntityValue:ft,registerField:ft,useSubscribe:ft,setInitialValues:ft,destroyForm:ft,setCallbacks:ft,registerWatch:ft,getFields:ft,setValidateMessages:ft,setPreserve:ft,getInitialValue:ft}}}),Oo=c.createContext(null);function Cs(e){return e==null?[]:Array.isArray(e)?e:[e]}function q0(e){return e&&!!e._init}function Es(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var xs=Es();function X0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Y0(e,t,r){if(Ks())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ga(a,r.prototype),a}function ws(e){var t=typeof Map=="function"?new Map:void 0;return ws=function(n){if(n===null||!X0(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Y0(n,arguments,ma(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ga(a,n)},ws(e)}var Q0=/%[sdj%]/g,vf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(vf=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function $s(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function er(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(Q0,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Z0(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Tt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Z0(t)&&typeof e=="string"&&!e)}function J0(e,t,r){var n=[],a=0,o=e.length;function i(s){n.push.apply(n,ye(s||[])),a++,a===o&&r(n)}e.forEach(function(s){t(s,i)})}function $c(e,t,r){var n=0,a=e.length;function o(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<a?t(e[s],o):r([])}o([])}function eb(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ye(e[r]||[]))}),t}var Oc=function(e){qr(r,e);var t=Xr(r);function r(n,a){var o;return jt(this,r),o=t.call(this,"Async Validation Error"),L(We(o),"errors",void 0),L(We(o),"fields",void 0),o.errors=n,o.fields=a,o}return Ft(r)}(ws(Error));function tb(e,t,r,n,a){if(t.first){var o=new Promise(function(v,b){var h=function(S){return n(S),S.length?b(new Oc(S,$s(S))):v(a)},p=eb(e);$c(p,r,h)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(v,b){var h=function(g){if(d.push.apply(d,g),u++,u===l)return n(d),d.length?b(new Oc(d,$s(d))):v(a)};s.length||(n(d),v(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?$c(g,r,h):J0(g,r,h)})});return f.catch(function(v){return v}),f}function rb(e){return!!(e&&e.message!==void 0)}function nb(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Rc(e,t){return function(r){var n;return e.fullFields?n=nb(t,e.fullFields):n=t[r.field||e.fullField],rb(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Pc(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Ne(n)==="object"&&Ne(e[r])==="object"?e[r]=z(z({},e[r]),n):e[r]=n}}return e}var vn="enum",ab=function(t,r,n,a,o){t[vn]=Array.isArray(t[vn])?t[vn]:[],t[vn].indexOf(r)===-1&&a.push(er(o.messages[vn],t.fullField,t[vn].join(", ")))},ob=function(t,r,n,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(er(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||a.push(er(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ib=function(t,r,n,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,v=typeof r=="number",b=typeof r=="string",h=Array.isArray(r);if(v?f="number":b?f="string":h&&(f="array"),!f)return!1;h&&(d=r.length),b&&(d=r.replace(u,"_").length),i?d!==t.len&&a.push(er(o.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?a.push(er(o.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?a.push(er(o.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&a.push(er(o.messages[f].range,t.fullField,t.min,t.max))},gf=function(t,r,n,a,o,i){t.required&&(!n.hasOwnProperty(t.field)||Tt(r,i||t.type))&&a.push(er(o.messages.required,t.fullField))},Za;const sb=function(){if(Za)return Za;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(r).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(r).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?u:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",b=d.v4().source,h=d.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(b,"|").concat(h,"|").concat(p).concat(g).concat(S,")").concat(m).concat(y);return Za=new RegExp("(?:^".concat(E,"$)"),"i"),Za};var _c={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oa={integer:function(t){return oa.number(t)&&parseInt(t,10)===t},float:function(t){return oa.number(t)&&!oa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ne(t)==="object"&&!oa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(_c.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sb())},hex:function(t){return typeof t=="string"&&!!t.match(_c.hex)}},lb=function(t,r,n,a,o){if(t.required&&r===void 0){gf(t,r,n,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?oa[s](r)||a.push(er(o.messages.types[s],t.fullField,t.type)):s&&Ne(r)!==t.type&&a.push(er(o.messages.types[s],t.fullField,t.type))},cb=function(t,r,n,a,o){(/^\s+$/.test(r)||r==="")&&a.push(er(o.messages.whitespace,t.fullField))};const Qe={required:gf,whitespace:cb,type:lb,range:ib,enum:ab,pattern:ob};var ub=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o)}n(i)},db=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Qe.required(t,r,a,i,o,"array"),r!=null&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},fb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},vb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r,"date")&&!t.required)return n();if(Qe.required(t,r,a,i,o),!Tt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Qe.type(t,l,a,i,o),l&&Qe.range(t,l.getTime(),a,i,o)}}n(i)},gb="enum",mb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe[gb](t,r,a,i,o)}n(i)},pb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},hb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},bb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},yb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o))}n(i)},Sb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),r!==void 0&&Qe.type(t,r,a,i,o)}n(i)},Cb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o),Tt(r,"string")||Qe.pattern(t,r,a,i,o)}n(i)},Eb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r)&&!t.required)return n();Qe.required(t,r,a,i,o),Tt(r)||Qe.type(t,r,a,i,o)}n(i)},xb=function(t,r,n,a,o){var i=[],s=Array.isArray(r)?"array":Ne(r);Qe.required(t,r,a,i,o,s),n(i)},wb=function(t,r,n,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Tt(r,"string")&&!t.required)return n();Qe.required(t,r,a,i,o,"string"),Tt(r,"string")||(Qe.type(t,r,a,i,o),Qe.range(t,r,a,i,o),Qe.pattern(t,r,a,i,o),t.whitespace===!0&&Qe.whitespace(t,r,a,i,o))}n(i)},Si=function(t,r,n,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Tt(r,i)&&!t.required)return n();Qe.required(t,r,a,s,o,i),Tt(r,i)||Qe.type(t,r,a,s,o)}n(s)};const da={string:wb,method:bb,number:yb,boolean:fb,regexp:Eb,integer:hb,float:pb,array:db,object:Sb,enum:mb,pattern:Cb,date:vb,url:Si,hex:Si,email:Si,required:xb,any:ub};var Ia=function(){function e(t){jt(this,e),L(this,"rules",null),L(this,"_messages",xs),this.define(t)}return Ft(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Ne(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var o=r[a];n.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=Pc(Es(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=a,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function u(h){var p=[],g={};function S(y){if(Array.isArray(y)){var E;p=(E=p).concat.apply(E,ye(y))}else p.push(y)}for(var m=0;m<h.length;m++)S(h[m]);p.length?(g=$s(p),l(p,g)):l(null,i)}if(s.messages){var d=this.messages();d===xs&&(d=Es()),Pc(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},v=s.keys||Object.keys(this.rules);v.forEach(function(h){var p=n.rules[h],g=i[h];p.forEach(function(S){var m=S;typeof m.transform=="function"&&(i===r&&(i=z({},i)),g=i[h]=m.transform(g),g!=null&&(m.type=m.type||(Array.isArray(g)?"array":Ne(g)))),typeof m=="function"?m={validator:m}:m=z({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=h,m.fullField=m.fullField||h,m.type=n.getType(m),f[h]=f[h]||[],f[h].push({rule:m,value:g,source:i,field:h}))})});var b={};return tb(f,s,function(h,p){var g=h.rule,S=(g.type==="object"||g.type==="array")&&(Ne(g.fields)==="object"||Ne(g.defaultField)==="object");S=S&&(g.required||!g.required&&h.value),g.field=h.field;function m(R,w){return z(z({},w),{},{fullField:"".concat(g.fullField,".").concat(R),fullFields:g.fullFields?[].concat(ye(g.fullFields),[R]):[R]})}function y(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(R)?R:[R];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&(w=[].concat(g.message));var $=w.map(Rc(g,i));if(s.first&&$.length)return b[g.field]=1,p($);if(!S)p($);else{if(g.required&&!h.value)return g.message!==void 0?$=[].concat(g.message).map(Rc(g,i)):s.error&&($=[s.error(g,er(s.messages.required,g.field))]),p($);var N={};g.defaultField&&Object.keys(h.value).map(function(A){N[A]=g.defaultField}),N=z(z({},N),h.rule.fields);var F={};Object.keys(N).forEach(function(A){var M=N[A],H=Array.isArray(M)?M:[M];F[A]=H.map(m.bind(null,A))});var j=new e(F);j.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),j.validate(h.value,h.rule.options||s,function(A){var M=[];$&&$.length&&M.push.apply(M,ye($)),A&&A.length&&M.push.apply(M,ye(A)),p(M.length?M:null)})}}var E;if(g.asyncValidator)E=g.asyncValidator(g,h.value,y,h.source,s);else if(g.validator){try{E=g.validator(g,h.value,y,h.source,s)}catch(R){var C,x;(C=(x=console).error)===null||C===void 0||C.call(x,R),s.suppressValidatorError||setTimeout(function(){throw R},0),y(R.message)}E===!0?y():E===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):E instanceof Array?y(E):E instanceof Error&&y(E.message)}E&&E.then&&E.then(function(){return y()},function(R){return y(R)})},function(h){u(h)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!da.hasOwnProperty(r.type))throw new Error(er("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?da.required:da[this.getType(r)]||void 0}}]),e}();L(Ia,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");da[t]=r});L(Ia,"warning",vf);L(Ia,"messages",xs);L(Ia,"validators",da);var Qt="'${name}' is not a valid ${type}",mf={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:Qt,method:Qt,array:Qt,object:Qt,number:Qt,date:Qt,boolean:Qt,integer:Qt,float:Qt,regexp:Qt,email:Qt,url:Qt,hex:Qt},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}"}},Tc=Ia;function $b(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Nc="CODE_LOGIC_ERROR";function Os(e,t,r,n,a){return Rs.apply(this,arguments)}function Rs(){return Rs=ln(qt().mark(function e(t,r,n,a,o){var i,s,l,u,d,f,v,b,h;return qt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return i=z({},n),delete i.ruleIndex,Tc.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(Nc)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),u=new Tc(L({},t,[i])),d=wn(mf,a.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(L({},t,r),z({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(S,m){var y=S.message,E=y===Nc?d.default:y;return c.isValidElement(E)?c.cloneElement(E,{key:"error_".concat(m)}):E}));case 18:if(!(!f.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(S,m){return Os("".concat(t,".").concat(m),S,l,a,o)}));case 21:return v=g.sent,g.abrupt("return",v.reduce(function(S,m){return[].concat(ye(S),ye(m))},[]));case 23:return b=z(z({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?$b(S,b):S}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Rs.apply(this,arguments)}function Ob(e,t,r,n,a,o){var i=e.join("."),s=r.map(function(d,f){var v=d.validator,b=z(z({},d),{},{ruleIndex:f});return v&&(b.validator=function(h,p,g){var S=!1,m=function(){for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];Promise.resolve().then(function(){at(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||g.apply(void 0,x)})},y=v(h,p,m);S=y&&typeof y.then=="function"&&typeof y.catch=="function",at(S,"`callback` is deprecated. Please return a promise instead."),S&&y.then(function(){g()}).catch(function(E){g(E||" ")})}),b}).sort(function(d,f){var v=d.warningOnly,b=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!v==!!h?b-p:v?1:-1}),l;if(a===!0)l=new Promise(function(){var d=ln(qt().mark(function f(v,b){var h,p,g;return qt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:h=0;case 1:if(!(h<s.length)){m.next=12;break}return p=s[h],m.next=5,Os(i,t,p,n,o);case 5:if(g=m.sent,!g.length){m.next=9;break}return b([{errors:g,rule:p}]),m.abrupt("return");case 9:h+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return Os(i,t,d,n,o).then(function(f){return{errors:f,rule:d}})});l=(a?Pb(u):Rb(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function Rb(e){return Ps.apply(this,arguments)}function Ps(){return Ps=ln(qt().mark(function e(t){return qt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,ye(a));return i}));case 1:case"end":return n.stop()}},e)})),Ps.apply(this,arguments)}function Pb(e){return _s.apply(this,arguments)}function _s(){return _s=ln(qt().mark(function e(t){var r;return qt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),_s.apply(this,arguments)}function xt(e){return Cs(e)}function Ic(e,t){var r={};return t.forEach(function(n){var a=wr(e,n);r=dr(r,n,a)}),r}function Rn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return pf(t,n,r)})}function pf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function _b(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ne(e)!=="object"||Ne(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return ye(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function Tb(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ne(t.target)==="object"&&e in t.target?t.target[e]:t}function Mc(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],o=t-r;return o>0?[].concat(ye(e.slice(0,r)),[a],ye(e.slice(r,t)),ye(e.slice(t+1,n))):o<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,r+1)),[a],ye(e.slice(r+1,n))):e}var Nb=["name"],rr=[];function Ci(e,t,r,n,a,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==a}var vl=function(e){qr(r,e);var t=Xr(r);function r(n){var a;if(jt(this,r),a=t.call(this,n),L(We(a),"state",{resetCount:0}),L(We(a),"cancelRegisterFunc",null),L(We(a),"mounted",!1),L(We(a),"touched",!1),L(We(a),"dirty",!1),L(We(a),"validatePromise",void 0),L(We(a),"prevValidating",void 0),L(We(a),"errors",rr),L(We(a),"warnings",rr),L(We(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,xt(f)),a.cancelRegisterFunc=null}),L(We(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return u!==void 0?[].concat(ye(v),ye(u)):[]}),L(We(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),L(We(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),L(We(a),"metaCache",null),L(We(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=z(z({},a.getMeta()),{},{destroy:l});ba(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),L(We(a),"onStoreChange",function(l,u,d){var f=a.props,v=f.shouldUpdate,b=f.dependencies,h=b===void 0?[]:b,p=f.onReset,g=d.store,S=a.getNamePath(),m=a.getValue(l),y=a.getValue(g),E=u&&Rn(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!ba(m,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=rr,a.warnings=rr,a.triggerMetaEvent()),d.type){case"reset":if(!u||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=rr,a.warnings=rr,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v&&Ci(v,l,g,m,y,d)){a.reRender();return}break}case"setField":{var C=d.data;if(E){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||rr),"warnings"in C&&(a.warnings=C.warnings||rr),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&Rn(u,S,!0)){a.reRender();return}if(v&&!S.length&&Ci(v,l,g,m,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var x=h.map(xt);if(x.some(function(R){return Rn(d.relatedFields,R)})){a.reRender();return}break}default:if(E||(!h.length||S.length||v)&&Ci(v,l,g,m,y,d)){a.reRender();return}break}v===!0&&a.reRender()}),L(We(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},v=f.triggerName,b=f.validateOnly,h=b===void 0?!1:b,p=Promise.resolve().then(ln(qt().mark(function g(){var S,m,y,E,C,x,R;return qt().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(a.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(S=a.props,m=S.validateFirst,y=m===void 0?!1:m,E=S.messageVariables,C=S.validateDebounce,x=a.getRules(),v&&(x=x.filter(function(N){return N}).filter(function(N){var F=N.validateTrigger;if(!F)return!0;var j=Cs(F);return j.includes(v)})),!(C&&v)){$.next=10;break}return $.next=8,new Promise(function(N){setTimeout(N,C)});case 8:if(a.validatePromise===p){$.next=10;break}return $.abrupt("return",[]);case 10:return R=Ob(u,d,x,l,y,E),R.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rr;if(a.validatePromise===p){var F;a.validatePromise=null;var j=[],A=[];(F=N.forEach)===null||F===void 0||F.call(N,function(M){var H=M.rule.warningOnly,T=M.errors,O=T===void 0?rr:T;H?A.push.apply(A,ye(O)):j.push.apply(j,ye(O))}),a.errors=j,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),$.abrupt("return",R);case 13:case"end":return $.stop()}},g)})));return h||(a.validatePromise=p,a.dirty=!0,a.errors=rr,a.warnings=rr,a.triggerMetaEvent(),a.reRender()),p}),L(We(a),"isFieldValidating",function(){return!!a.validatePromise}),L(We(a),"isFieldTouched",function(){return a.touched}),L(We(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(nn),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),L(We(a),"getErrors",function(){return a.errors}),L(We(a),"getWarnings",function(){return a.warnings}),L(We(a),"isListField",function(){return a.props.isListField}),L(We(a),"isList",function(){return a.props.isList}),L(We(a),"isPreserve",function(){return a.props.preserve}),L(We(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),L(We(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return z(z({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=$r(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(We(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return wr(l||u(!0),d)}),L(We(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,v=u.validateTrigger,b=u.getValueFromEvent,h=u.normalize,p=u.valuePropName,g=u.getValueProps,S=u.fieldContext,m=v!==void 0?v:S.validateTrigger,y=a.getNamePath(),E=S.getInternalHooks,C=S.getFieldsValue,x=E(nn),R=x.dispatch,w=a.getValue(),$=g||function(M){return L({},p,M)},N=l[f],F=d!==void 0?$(w):{};process.env.NODE_ENV!=="production"&&F&&Object.keys(F).forEach(function(M){at(typeof F[M]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(M,")"))});var j=z(z({},l),F);j[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var M,H=arguments.length,T=new Array(H),O=0;O<H;O++)T[O]=arguments[O];b?M=b.apply(void 0,T):M=Tb.apply(void 0,[p].concat(T)),h&&(M=h(M,w,C(!0))),R({type:"updateValue",namePath:y,value:M}),N&&N.apply(void 0,T)};var A=Cs(m||[]);return A.forEach(function(M){var H=j[M];j[M]=function(){H&&H.apply(void 0,arguments);var T=a.props.rules;T&&T.length&&R({type:"validateField",namePath:y,triggerName:M})}}),j}),n.fieldContext){var o=n.fieldContext.getInternalHooks,i=o(nn),s=i.initEntityValue;s(We(a))}return a}return Ft(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(nn),u=l.registerField;this.cancelRegisterFunc=u(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),s=i.child,l=i.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(at(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:a},u)}}]),r}(c.Component);L(vl,"contextType",Dn);L(vl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function hf(e){var t=e.name,r=Je(e,Nb),n=c.useContext(Dn),a=c.useContext(Oo),o=t!==void 0?xt(t):void 0,i="keep";return r.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&r.isListField&&o.length<=1&&at(!1,"`preserve` should not apply on Form.List fields."),c.createElement(vl,Oe({key:i,name:o,isListField:!!a},r,{fieldContext:n}))}function Ib(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,s=c.useContext(Dn),l=c.useContext(Oo),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var p=xt(s.prefixName)||[];return[].concat(ye(p),ye(xt(t)))},[s.prefixName,t]),v=c.useMemo(function(){return z(z({},s),{},{prefixName:f})},[s,f]),b=c.useMemo(function(){return{getKey:function(g){var S=f.length,m=g[S];return[d.keys[m],g.slice(S+1)]}}},[f]);if(typeof n!="function")return at(!1,"Form.List only accepts function as children."),null;var h=function(g,S,m){var y=m.source;return y==="internal"?!1:g!==S};return c.createElement(Oo.Provider,{value:b},c.createElement(Dn.Provider,{value:v},c.createElement(hf,{name:[],shouldUpdate:h,rules:a,validateTrigger:o,initialValue:r,isList:!0,isListField:i??!!l},function(p,g){var S=p.value,m=S===void 0?[]:S,y=p.onChange,E=s.getFieldValue,C=function(){var $=E(f||[]);return $||[]},x={add:function($,N){var F=C();N>=0&&N<=F.length?(d.keys=[].concat(ye(d.keys.slice(0,N)),[d.id],ye(d.keys.slice(N))),y([].concat(ye(F.slice(0,N)),[$],ye(F.slice(N))))):(process.env.NODE_ENV!=="production"&&(N<0||N>F.length)&&at(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(ye(d.keys),[d.id]),y([].concat(ye(F),[$]))),d.id+=1},remove:function($){var N=C(),F=new Set(Array.isArray($)?$:[$]);F.size<=0||(d.keys=d.keys.filter(function(j,A){return!F.has(A)}),y(N.filter(function(j,A){return!F.has(A)})))},move:function($,N){if($!==N){var F=C();$<0||$>=F.length||N<0||N>=F.length||(d.keys=Mc(d.keys,$,N),y(Mc(F,$,N)))}}},R=m||[];return Array.isArray(R)||(R=[],process.env.NODE_ENV!=="production"&&at(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),n(R.map(function(w,$){var N=d.keys[$];return N===void 0&&(d.keys[$]=d.id,N=d.keys[$],d.id+=1),{name:$,key:N,isListField:!0}}),x,g)})))}function Mb(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),a(n))})})}):Promise.resolve([])}var bf="__@field_split__";function Ei(e){return e.map(function(t){return"".concat(Ne(t),":").concat(t)}).join(bf)}var gn=function(){function e(){jt(this,e),L(this,"kvs",new Map)}return Ft(e,[{key:"set",value:function(r,n){this.kvs.set(Ei(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ei(r))}},{key:"update",value:function(r,n){var a=this.get(r),o=n(a);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Ei(r))}},{key:"map",value:function(r){return ye(this.kvs.entries()).map(function(n){var a=U(n,2),o=a[0],i=a[1],s=o.split(bf);return r({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=U(u,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,o=n.value;return r[a.join(".")]=o,null}),r}}]),e}(),Ab=["name"],jb=Ft(function e(t){var r=this;jt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),L(this,"getInternalHooks",function(n){return n===nn?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(at(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(n){r.subscribable=n}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var o,i=wn(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;i=dr(i,l,wr(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),L(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new gn;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),L(this,"getInitialValue",function(n){var a=wr(r.initialValues,n);return n.length?wn(a):a}),L(this,"setCallbacks",function(n){r.callbacks=n}),L(this,"setValidateMessages",function(n){r.validateMessages=n}),L(this,"setPreserve",function(n){r.preserve=n}),L(this,"watchList",[]),L(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),L(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(a,o,n)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||at(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),L(this,"updateStore",function(n){r.store=n}),L(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),L(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new gn;return r.getFieldEntities(n).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),L(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(o){var i=xt(o);return a.get(i)||{INVALIDATE_NAME_PATH:xt(o)}})}),L(this,"getFieldsValue",function(n,a){r.warningUnhooked();var o,i,s;if(n===!0||Array.isArray(n)?(o=n,i=a):n&&Ne(n)==="object"&&(s=n.strict,i=n.filter),o===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(d){var f,v,b="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)u.push(b);else{var g="getMeta"in d?d.getMeta():null;i(g)&&u.push(b)}}),Ic(r.store,u.map(xt))}),L(this,"getFieldValue",function(n){r.warningUnhooked();var a=xt(n);return wr(r.store,a)}),L(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:xt(n[i]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(n){r.warningUnhooked();var a=xt(n),o=r.getFieldsError([a])[0];return o.errors}),L(this,"getFieldWarning",function(n){r.warningUnhooked();var a=xt(n),o=r.getFieldsError([a])[0];return o.warnings}),L(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a[0],s=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(i)?(l=i.map(xt),u=!1):(l=null,u=i):(l=i.map(xt),u=s);var d=r.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!l)return u?d.every(function(p){return f(p)||p.isList()}):d.some(f);var v=new gn;l.forEach(function(p){v.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();l.forEach(function(S){S.every(function(m,y){return g[y]===m})&&v.update(S,function(m){return[].concat(ye(m),[p])})})});var b=function(g){return g.some(f)},h=v.map(function(p){var g=p.value;return g});return u?h.every(b):h.some(b)}),L(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),L(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(i){return i.isFieldValidating()});var o=n.map(xt);return a.some(function(i){var s=i.getNamePath();return Rn(o,s)&&i.isFieldValidating()})}),L(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),L(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new gn,o=r.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),b=r.getInitialValue(v);if(b!==void 0)at(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=a.get(v);if(h&&h.size>1)at(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(v),g=d.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(dr(r.store,v,ye(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=s).push.apply(d,ye(ye(u).map(function(f){return f.entity})))}})):s=o,i(s)}),L(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(wn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(xt);o.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(dr(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(a,o,{type:"reset"}),r.notifyWatch(o)}),L(this,"setFields",function(n){r.warningUnhooked();var a=r.store,o=[];n.forEach(function(i){var s=i.name,l=Je(i,Ab),u=xt(s);o.push(u),"value"in l&&r.updateStore(dr(r.store,u,l.value)),r.notifyObservers(a,[u],{type:"setField",data:i})}),r.notifyWatch(o)}),L(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(o){var i=o.getNamePath(),s=o.getMeta(),l=z(z({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),L(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var o=n.getNamePath(),i=wr(r.store,o);i===void 0&&r.updateStore(dr(r.store,o,a))}}),L(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),L(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var u=i?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==u&&r.fieldEntities.every(function(f){return!pf(f.getNamePath(),a)})){var d=r.store;r.updateStore(dr(d,a,u,!0)),r.notifyObservers(d,[a],{type:"remove"}),r.triggerDependenciesUpdate(d,a)}}r.notifyWatch([a])}}),L(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,o=n.value;r.updateValue(a,o);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),L(this,"notifyObservers",function(n,a,o){if(r.subscribable){var i=z(z({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,i)})}else r.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(n,a){var o=r.getDependencyChildrenFields(a);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ye(o))}),o}),L(this,"updateValue",function(n,a){var o=xt(n),i=r.store;r.updateStore(dr(r.store,o,a)),r.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(i,o),l=r.callbacks.onValuesChange;if(l){var u=Ic(r.store,[o]);l(u,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(ye(s)))}),L(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var o=wn(r.store,n);r.updateStore(o)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),L(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),L(this,"getDependencyChildrenFields",function(n){var a=new Set,o=[],i=new gn;r.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=xt(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(l),v})})});var s=function l(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),l(v))}})};return s(n),o}),L(this,"triggerOnFieldsChange",function(n,a){var o=r.callbacks.onFieldsChange;if(o){var i=r.getFields();if(a){var s=new gn;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=i.filter(function(u){var d=u.name;return Rn(n,d)});l.length&&o(l,i)}}),L(this,"validateFields",function(n,a){r.warningUnhooked();var o,i;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,i=a):i=n;var s=!!o,l=s?o.map(xt):[],u=[],d=String(Date.now()),f=new Set,v=i||{},b=v.recursive,h=v.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var y=m.getNamePath();if(f.add(y.join(d)),!s||Rn(l,y,b)){var E=m.validateRules(z({validateMessages:z(z({},mf),r.validateMessages)},i));u.push(E.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var x,R=[],w=[];return(x=C.forEach)===null||x===void 0||x.call(C,function($){var N=$.rule.warningOnly,F=$.errors;N?w.push.apply(w,ye(F)):R.push.apply(R,ye(F))}),R.length?Promise.reject({name:y,errors:R,warnings:w}):{name:y,errors:R,warnings:w}}))}}});var p=Mb(u);r.lastValidatePromise=p,p.catch(function(m){return m}).then(function(m){var y=m.map(function(E){var C=E.name;return C});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var y=m.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==p})});g.catch(function(m){return m});var S=l.filter(function(m){return f.has(m.join(d))});return r.triggerOnFieldsChange(S),g}),L(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(o){console.error(o)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function yf(e){var t=c.useRef(),r=c.useState({}),n=U(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new jb(o);t.current=i.getForm()}return[t.current]}var Ts=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Fb=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,o=t.children,i=c.useContext(Ts),s=c.useRef({});return c.createElement(Ts.Provider,{value:z(z({},i),{},{validateMessages:z(z({},i.validateMessages),r),triggerFormChange:function(u,d){n&&n(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=z(z({},s.current),{},L({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=z({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},Lb=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Db=function(t,r){var n=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,v=t.validateTrigger,b=v===void 0?"onChange":v,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,S=t.onFinishFailed,m=t.clearOnDestroy,y=Je(t,Lb),E=c.useRef(null),C=c.useContext(Ts),x=yf(i),R=U(x,1),w=R[0],$=w.getInternalHooks(nn),N=$.useSubscribe,F=$.setInitialValues,j=$.setCallbacks,A=$.setValidateMessages,M=$.setPreserve,H=$.destroyForm;c.useImperativeHandle(r,function(){return z(z({},w),{},{nativeElement:E.current})}),c.useEffect(function(){return C.registerForm(n,w),function(){C.unregisterForm(n)}},[C,w,n]),A(z(z({},C.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(q){if(C.triggerFormChange(n,q),p){for(var Y=arguments.length,Z=new Array(Y>1?Y-1:0),J=1;J<Y;J++)Z[J-1]=arguments[J];p.apply(void 0,[q].concat(Z))}},onFinish:function(q){C.triggerFormFinish(n,q),g&&g(q)},onFinishFailed:S}),M(s);var T=c.useRef(null);F(a,!T.current),T.current||(T.current=!0),c.useEffect(function(){return function(){return H(m)}},[]);var O,I=typeof l=="function";if(I){var D=w.getFieldsValue(!0);O=l(D,w)}else O=l;N(!I);var V=c.useRef();c.useEffect(function(){_b(V.current||[],o||[])||w.setFields(o||[]),V.current=o},[o,w]);var k=c.useMemo(function(){return z(z({},w),{},{validateTrigger:b})},[w,b]),K=c.createElement(Oo.Provider,{value:null},c.createElement(Dn.Provider,{value:k},O));return d===!1?K:c.createElement(d,Oe({},y,{ref:E,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),w.submit()},onReset:function(q){var Y;q.preventDefault(),w.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,q)}}),K)};function Ac(e){try{return JSON.stringify(e)}catch{return Math.random()}}var zb=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=P.useRef(t);at(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Vb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],o=a===void 0?{}:a,i=q0(o)?{form:o}:o,s=i.form,l=P.useState(),u=U(l,2),d=u[0],f=u[1],v=P.useMemo(function(){return Ac(d)},[d]),b=P.useRef(v);b.current=v;var h=P.useContext(Dn),p=s||h,g=p&&p._init;process.env.NODE_ENV!=="production"&&at(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var S=xt(n),m=P.useRef(S);return m.current=S,zb(S),P.useEffect(function(){if(g){var y=p.getFieldsValue,E=p.getInternalHooks,C=E(nn),x=C.registerWatch,R=function(F,j){var A=i.preserve?j:F;return typeof n=="function"?n(A):wr(A,m.current)},w=x(function(N,F){var j=R(N,F),A=Ac(j);b.current!==A&&(b.current=A,f(j))}),$=R(y(),y(!0));return d!==$&&f($),w}},[g]),d}var Bb=c.forwardRef(Db),Ma=Bb;Ma.FormProvider=Fb;Ma.Field=hf;Ma.List=Ib;Ma.useForm=yf;Ma.useWatch=Vb;const $a=c.createContext({});process.env.NODE_ENV!=="production"&&($a.displayName="FormItemInputContext");const kb=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext($a),o=P.useMemo(()=>{const i=Object.assign({},a);return n&&delete i.isFormItemInput,r&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[r,n,a]);return c.createElement($a.Provider,{value:o},t)},Hb=P.createContext(void 0),Ns=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=P.createElement(kb,{override:!0,status:!0},a)),t&&(a=P.createElement(a0,null,a)),a};var Sf=function(t){if(Kt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},Wb=function(t,r){if(!Sf(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function jc(e,t){return!Array.isArray(e)&&t!==void 0?Wb(e,t):Sf(e)}const Ho=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:o}=e,i=Q({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=Q({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=c.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return c.createElement("span",{className:Q(t,i,s,r),style:Object.assign(Object.assign({},l),n)})},Gb=new wt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Wo=e=>({height:e,lineHeight:ee(e)}),Pn=e=>Object.assign({width:e},Wo(e)),Ub=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Gb,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),xi=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Wo(e)),Kb=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},Pn(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Pn(a)),[`${t}${t}-sm`]:Object.assign({},Pn(o))}},qb=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:r},xi(t,s)),[`${n}-lg`]:Object.assign({},xi(a,s)),[`${n}-sm`]:Object.assign({},xi(o,s))}},Fc=e=>Object.assign({width:e},Wo(e)),Xb=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},Fc(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Fc(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},wi=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},$i=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Wo(e)),Yb=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},$i(n,s))},wi(e,n,r)),{[`${r}-lg`]:Object.assign({},$i(a,s))}),wi(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},$i(o,s))}),wi(e,o,`${r}-sm`))},Qb=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:v,marginSM:b,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:S,controlHeightXS:m,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Pn(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},Pn(u)),[`${r}-sm`]:Object.assign({},Pn(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:m}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Yb(e)),Kb(e)),qb(e)),Xb(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
157
128
|
${n},
|
|
158
129
|
${a} > li,
|
|
159
130
|
${r},
|
|
160
131
|
${o},
|
|
161
132
|
${i},
|
|
162
133
|
${s}
|
|
163
|
-
`]:Object.assign({},
|
|
134
|
+
`]:Object.assign({},Ub(e))}}},Zb=e=>{const{colorFillContent:t,colorFill:r}=e,n=t,a=r;return{color:n,colorGradientEnd:a,gradientFromColor:n,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Wn=br("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=Lt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(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[Qb(n)]},Zb,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Jb=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls","className"]),b=Q(l,`${l}-element`,{[`${l}-active`]:a},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Ho,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:i},v))))},ey=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls"]),b=Q(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Ho,Object.assign({prefixCls:`${l}-button`,size:i},v))))},ty="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",ry=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o}=e,{getPrefixCls:i}=c.useContext(ot),s=i("skeleton",t),[l,u,d]=Wn(s),f=Q(s,`${s}-element`,{[`${s}-active`]:o},r,n,u,d);return l(c.createElement("div",{className:f},c.createElement("div",{className:Q(`${s}-image`,r),style:a},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:ty,className:`${s}-image-path`})))))},ny=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=hr(e,["prefixCls"]),b=Q(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:o},r,n,d,f);return u(c.createElement("div",{className:b},c.createElement(Ho,Object.assign({prefixCls:`${l}-input`,size:i},v))))};var ay={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},oy=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:ay}))},Cf=c.forwardRef(oy);process.env.NODE_ENV!=="production"&&(Cf.displayName="DotChartOutlined");const iy=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:o,children:i}=e,{getPrefixCls:s}=c.useContext(ot),l=s("skeleton",t),[u,d,f]=Wn(l),v=Q(l,`${l}-element`,{[`${l}-active`]:o},d,r,n,f),b=i??c.createElement(Cf,null);return u(c.createElement("div",{className:v},c.createElement("div",{className:Q(`${l}-image`,r),style:a},b)))},sy=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},ly=e=>{const{prefixCls:t,className:r,style:n,rows:a}=e,o=ye(Array(a)).map((i,s)=>c.createElement("li",{key:s,style:{width:sy(s,e)}}));return c.createElement("ul",{className:Q(t,r),style:n},o)},cy=e=>{let{prefixCls:t,className:r,width:n,style:a}=e;return c.createElement("h3",{className:Q(t,r),style:Object.assign({width:n},a)})};function Oi(e){return e&&typeof e=="object"?e:{}}function uy(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function dy(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function fy(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const cn=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:a,style:o,children:i,avatar:s=!1,title:l=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:v,direction:b,skeleton:h}=c.useContext(ot),p=v("skeleton",t),[g,S,m]=Wn(p);if(r||!("loading"in e)){const y=!!s,E=!!l,C=!!u;let x;if(y){const $=Object.assign(Object.assign({prefixCls:`${p}-avatar`},uy(E,C)),Oi(s));x=c.createElement("div",{className:`${p}-header`},c.createElement(Ho,Object.assign({},$)))}let R;if(E||C){let $;if(E){const F=Object.assign(Object.assign({prefixCls:`${p}-title`},dy(y,C)),Oi(l));$=c.createElement(cy,Object.assign({},F))}let N;if(C){const F=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},fy(y,E)),Oi(u));N=c.createElement(ly,Object.assign({},F))}R=c.createElement("div",{className:`${p}-content`},$,N)}const w=Q(p,{[`${p}-with-avatar`]:y,[`${p}-active`]:d,[`${p}-rtl`]:b==="rtl",[`${p}-round`]:f},h==null?void 0:h.className,n,a,S,m);return g(c.createElement("div",{className:w,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},x,R))}return i??null};cn.Button=ey;cn.Avatar=Jb;cn.Input=ny;cn.Image=ry;cn.Node=iy;process.env.NODE_ENV!=="production"&&(cn.displayName="Skeleton");const vy=e=>({animationDuration:e,animationFillMode:"both"}),gy=e=>({animationDuration:e,animationFillMode:"both"}),Ef=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
164
135
|
${o}${e}-enter,
|
|
165
136
|
${o}${e}-appear
|
|
166
|
-
`]:Object.assign(Object.assign({},
|
|
137
|
+
`]:Object.assign(Object.assign({},vy(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},gy(n)),{animationPlayState:"paused"}),[`
|
|
167
138
|
${o}${e}-enter${e}-enter-active,
|
|
168
139
|
${o}${e}-appear${e}-appear-active
|
|
169
|
-
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},
|
|
140
|
+
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},my=new wt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),py=new wt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),hy=new wt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),by=new wt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),yy=new wt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Sy=new wt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Cy=new wt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ey=new wt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),xy={"slide-up":{inKeyframes:my,outKeyframes:py},"slide-down":{inKeyframes:hy,outKeyframes:by},"slide-left":{inKeyframes:yy,outKeyframes:Sy},"slide-right":{inKeyframes:Cy,outKeyframes:Ey}},Lc=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=xy[t];return[Ef(n,a,o,e.motionDurationMid),{[`
|
|
170
141
|
${n}-enter,
|
|
171
142
|
${n}-appear
|
|
172
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},
|
|
143
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},wy=new wt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$y=new wt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Dc=new wt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zc=new wt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Oy=new wt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ry=new wt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Py=new wt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),_y=new wt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ty=new wt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ny=new wt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Iy=new wt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),My=new wt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Ay={zoom:{inKeyframes:wy,outKeyframes:$y},"zoom-big":{inKeyframes:Dc,outKeyframes:zc},"zoom-big-fast":{inKeyframes:Dc,outKeyframes:zc},"zoom-left":{inKeyframes:Py,outKeyframes:_y},"zoom-right":{inKeyframes:Ty,outKeyframes:Ny},"zoom-up":{inKeyframes:Oy,outKeyframes:Ry},"zoom-down":{inKeyframes:Iy,outKeyframes:My}},jy=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:o}=Ay[t];return[Ef(n,a,o,e.motionDurationFast),{[`
|
|
173
144
|
${n}-enter,
|
|
174
145
|
${n}-appear
|
|
175
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xf=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Dy=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],mn=void 0;function zy(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,S=Je(e,Dy),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var E=o&&a!==mn?o(a):v,C;n||(C={opacity:m?0:1,height:m?0:mn,overflowY:m?"hidden":mn,order:i?h:mn,pointerEvents:m?"none":mn,position:m?"absolute":mn});var x={};m&&(x["aria-hidden"]=!0);var R=c.createElement(g,Oe({className:Q(!n&&r,d),style:z(z({},C),f)},x,S,{ref:t}),E);return i&&(R=c.createElement(vr,{onResize:function($){var N=$.offsetWidth;y(N)},disabled:s},R)),R}var fa=c.forwardRef(zy);fa.displayName="Item";function Vy(e){if(typeof MessageChannel>"u")_t(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function By(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],Vy(function(){_n.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function ta(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Bt(function(s){e(function(){o(s)})});return[a,i]}var Ro=P.createContext(null),ky=["component"],Hy=["className"],Wy=["className"],Gy=function(t,r){var n=c.useContext(Ro);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,ky);return c.createElement(o,Oe({},i,{ref:r}))}var s=n.className,l=Je(n,Hy),u=t.className,d=Je(t,Wy);return c.createElement(Ro.Provider,{value:null},c.createElement(fa,Oe({ref:r,className:Q(s,u)},l,d)))},wf=c.forwardRef(Gy);wf.displayName="RawItem";var Uy=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],$f="responsive",Of="invalidate";function Ky(e){return"+ ".concat(e.length," ...")}function qy(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,S=e.suffix,m=e.component,y=m===void 0?"div":m,E=e.itemComponent,C=e.onVisibleChange,x=Je(e,Uy),R=f==="full",w=By(),$=ta(w,null),N=U($,2),F=N[0],j=N[1],A=F||0,M=ta(w,new Map),H=U(M,2),T=H[0],O=H[1],I=ta(w,0),D=U(I,2),V=D[0],k=D[1],K=ta(w,0),W=U(K,2),q=W[0],Y=W[1],Z=ta(w,0),J=U(Z,2),te=J[0],ae=J[1],fe=P.useState(null),de=U(fe,2),ve=de[0],we=de[1],B=P.useState(null),ce=U(B,2),se=ce[0],Ce=ce[1],pe=c.useMemo(function(){return se===null&&R?Number.MAX_SAFE_INTEGER:se||0},[se,F]),ne=P.useState(!1),ge=U(ne,2),xe=ge[0],Me=ge[1],oe="".concat(n,"-item"),re=Math.max(V,q),me=h===$f,he=o.length&&me,tt=h===Of,qe=he||typeof h=="number"&&o.length>h,Ae=P.useMemo(function(){var Re=o;return he?F===null&&R?Re=o:Re=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(Re=o.slice(0,h)),Re},[o,d,F,h,he]),Ue=P.useMemo(function(){return he?o.slice(pe+1):o.slice(Ae.length)},[o,Ae,he,pe]),Xe=P.useCallback(function(Re,be){var Ge;return typeof l=="function"?l(Re):(Ge=l&&(Re==null?void 0:Re[l]))!==null&&Ge!==void 0?Ge:be},[l]),Ze=P.useCallback(i||function(Re){return Re},[i]);function Fe(Re,be,Ge){se===Re&&(be===void 0||be===ve)||(Ce(Re),Ge||(Me(Re<o.length-1),C==null||C(Re)),be!==void 0&&we(be))}function Te(Re,be){j(be.clientWidth)}function it(Re,be){O(function(Ge){var pt=new Map(Ge);return be===null?pt.delete(Re):pt.set(Re,be),pt})}function Ye(Re,be){Y(be),k(q)}function Le(Re,be){ae(be)}function ue(Re){return T.get(Xe(Ae[Re],Re))}yt(function(){if(A&&typeof re=="number"&&Ae){var Re=te,be=Ae.length,Ge=be-1;if(!be){Fe(0,null);return}for(var pt=0;pt<be;pt+=1){var ke=ue(pt);if(R&&(ke=ke||0),ke===void 0){Fe(pt-1,void 0,!0);break}if(Re+=ke,Ge===0&&Re<=A||pt===Ge-1&&Re+ue(Ge)<=A){Fe(Ge,null);break}else if(Re+re>A){Fe(pt-1,Re-ke-te+q);break}}S&&ue(0)+te>A&&we(null)}},[A,T,q,te,Xe,Ae]);var Ee=xe&&!!Ue.length,Ke={};ve!==null&&he&&(Ke={position:"absolute",left:ve,top:0});var rt={prefixCls:oe,responsive:he,component:E,invalidate:tt},bt=s?function(Re,be){var Ge=Xe(Re,be);return c.createElement(Ro.Provider,{key:Ge,value:z(z({},rt),{},{order:be,item:Re,itemKey:Ge,registerSize:it,display:be<=pe})},s(Re,be))}:function(Re,be){var Ge=Xe(Re,be);return c.createElement(fa,Oe({},rt,{order:be,key:Ge,item:Re,renderItem:Ze,itemKey:Ge,registerSize:it,display:be<=pe}))},ut,Be={order:Ee?pe:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ye,display:Ee};if(g)g&&(ut=c.createElement(Ro.Provider,{value:z(z({},rt),Be)},g(Ue)));else{var Ve=p||Ky;ut=c.createElement(fa,Oe({},rt,Be),typeof Ve=="function"?Ve(Ue):Ve)}var De=c.createElement(y,Oe({className:Q(!tt&&n,b),style:v,ref:t},x),Ae.map(bt),qe?ut:null,S&&c.createElement(fa,Oe({},rt,{responsive:me,responsiveDisabled:!he,order:pe,className:"".concat(oe,"-suffix"),registerSize:Le,display:!0,style:Ke}),S));return me&&(De=c.createElement(vr,{onResize:Te,disabled:!he},De)),De}var jr=c.forwardRef(qy);jr.displayName="Overflow";jr.Item=wf;jr.RESPONSIVE=$f;jr.INVALIDATE=Of;function Xy(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=c.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],p=r.points[1],g=h[0],S=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,S===y||!["l","r"].includes(S)?b.left=u:S==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Q("".concat(t,"-arrow"),i),style:b},s)}function Yy(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(sn,Oe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Q("".concat(t,"-mask"),s)})}):null}var Rf=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Rf.displayName="PopupContent");var Pf=c.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,S=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,E=e.autoDestroy,C=e.portal,x=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,N=e.ready,F=e.offsetX,j=e.offsetY,A=e.offsetR,M=e.offsetB,H=e.onAlign,T=e.onPrepare,O=e.stretch,I=e.targetWidth,D=e.targetHeight,V=typeof r=="function"?r():r,k=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],Z=q[1];if(yt(function(){!Y&&K&&i&&Z(!0)},[Y,K,i]),!Y)return null;var J="auto",te={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(N||!l){var ae,fe=p.points,de=p.dynamicInset||((ae=p._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ve=de&&fe[0][1]==="r",we=de&&fe[0][0]==="b";ve?(te.right=A,te.left=J):(te.left=F,te.right=J),we?(te.bottom=M,te.top=J):(te.top=j,te.bottom=J)}var B={};return O&&(O.includes("height")&&D?B.height=D:O.includes("minHeight")&&D&&(B.minHeight=D),O.includes("width")&&I?B.width=I:O.includes("minWidth")&&I&&(B.minWidth=I)),l||(B.pointerEvents="none"),c.createElement(C,{open:m||k,getContainer:y&&function(){return y(i)},autoDestroy:E},c.createElement(Yy,{prefixCls:a,open:l,zIndex:x,mask:v,motion:S}),c.createElement(vr,{onResize:H,disabled:!l},function(ce){return c.createElement(sn,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(Ce){var pe;g==null||(pe=g.onVisibleChanged)===null||pe===void 0||pe.call(g,Ce),s(Ce)}}),function(se,Ce){var pe=se.className,ne=se.style,ge=Q(a,pe,n);return c.createElement("div",{ref:Or(ce,t,Ce),className:ge,style:z(z(z(z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ne),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(Xy,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(Rf,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(Pf.displayName="Popup");var _f=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=on(r),o=c.useCallback(function(s){Us(t,n?n(s):s)},[n]),i=_a(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(_f.displayName="TriggerWrapper");var kc=c.createContext(null);function Hc(e){return e?Array.isArray(e)?e:[e]:[]}function Qy(e,t,r,n){return c.useMemo(function(){var a=Hc(r??t),o=Hc(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function Zy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Jy(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(Zy((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function Wc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Aa(e){return e.ownerDocument.defaultView}function Ms(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Aa(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ra(e){return Oa(parseFloat(e),0)}function Gc(e,t){var r=z({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Aa(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,p=n.clientWidth,g=ra(s),S=ra(l),m=ra(u),y=ra(d),E=Oa(Math.round(f.width/h*1e3)/1e3),C=Oa(Math.round(f.height/v*1e3)/1e3),x=(h-p-m-y)*E,R=(v-b-g-S)*C,w=g*C,$=S*C,N=m*E,F=y*E,j=0,A=0;if(o==="clip"){var M=ra(i);j=M*E,A=M*C}var H=f.x+N-j,T=f.y+w-A,O=H+f.width+2*j-N-F-x,I=T+f.height+2*A-w-$-R;r.left=Math.max(r.left,H),r.top=Math.max(r.top,T),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,I)}}),r}function Uc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Kc(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[Uc(e.width,a),Uc(e.height,o)]}function qc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function pn(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function kr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function eS(e,t,r,n,a,o,i){var s=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=U(s,2),u=l[0],d=l[1],f=c.useRef(0),v=c.useMemo(function(){return t?Ms(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Bt(function(){if(t&&r&&e){let Gt=function(Ut,cr){var Br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,dn=V.x+Ut,Yn=V.y+cr,Qn=dn+ae,Da=Yn+te,Zo=Math.max(dn,Br.left),Jo=Math.max(Yn,Br.top),ei=Math.min(Qn,Br.right),ti=Math.min(Da,Br.bottom);return Math.max(0,(ei-Zo)*(ti-Jo))},Zr=function(){_=V.y+Ve,G=_+te,X=V.x+Be,ie=X+ae};var m,y,E=t,C=E.ownerDocument,x=Aa(E),R=x.getComputedStyle(E),w=R.width,$=R.height,N=R.position,F=E.style.left,j=E.style.top,A=E.style.right,M=E.style.bottom,H=E.style.overflow,T=z(z({},a[n]),o),O=C.createElement("div");(m=E.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(E.offsetLeft,"px"),O.style.top="".concat(E.offsetTop,"px"),O.style.position=N,O.style.height="".concat(E.offsetHeight,"px"),O.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var I;if(Array.isArray(r))I={x:r[0],y:r[1],width:0,height:0};else{var D=r.getBoundingClientRect();I={x:D.x,y:D.y,width:D.width,height:D.height}}var V=E.getBoundingClientRect(),k=C.documentElement,K=k.clientWidth,W=k.clientHeight,q=k.scrollWidth,Y=k.scrollHeight,Z=k.scrollTop,J=k.scrollLeft,te=V.height,ae=V.width,fe=I.height,de=I.width,ve={left:0,top:0,right:K,bottom:W},we={left:-J,top:-Z,right:q-J,bottom:Y-Z},B=T.htmlRegion,ce="visible",se="visibleFirst";B!=="scroll"&&B!==se&&(B=ce);var Ce=B===se,pe=Gc(we,v),ne=Gc(ve,v),ge=B===ce?ne:pe,xe=Ce?ne:ge;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Me=E.getBoundingClientRect();E.style.left=F,E.style.top=j,E.style.right=A,E.style.bottom=M,E.style.overflow=H,(y=E.parentElement)===null||y===void 0||y.removeChild(O);var oe=Oa(Math.round(ae/parseFloat(w)*1e3)/1e3),re=Oa(Math.round(te/parseFloat($)*1e3)/1e3);if(oe===0||re===0||va(r)&&!cl(r))return;var me=T.offset,he=T.targetOffset,tt=Kc(V,me),qe=U(tt,2),Ae=qe[0],Ue=qe[1],Xe=Kc(I,he),Ze=U(Xe,2),Fe=Ze[0],Te=Ze[1];I.x-=Fe,I.y-=Te;var it=T.points||[],Ye=U(it,2),Le=Ye[0],ue=Ye[1],Ee=qc(ue),Ke=qc(Le),rt=pn(I,Ee),bt=pn(V,Ke),ut=z({},T),Be=rt.x-bt.x+Ae,Ve=rt.y-bt.y+Ue,De=Gt(Be,Ve),Re=Gt(Be,Ve,ne),be=pn(I,["t","l"]),Ge=pn(V,["t","l"]),pt=pn(I,["b","r"]),ke=pn(V,["b","r"]),He=T.overflow||{},st=He.adjustX,ht=He.adjustY,Rt=He.shiftX,Dt=He.shiftY,kt=function(cr){return typeof cr=="boolean"?cr:cr>=0},_,G,X,ie;Zr();var Pe=kt(ht),$e=Ke[0]===Ee[0];if(Pe&&Ke[0]==="t"&&(G>xe.bottom||b.current.bt)){var _e=Ve;$e?_e-=te-fe:_e=be.y-ke.y-Ue;var Ie=Gt(Be,_e),vt=Gt(Be,_e,ne);Ie>De||Ie===De&&(!Ce||vt>=Re)?(b.current.bt=!0,Ve=_e,Ue=-Ue,ut.points=[kr(Ke,0),kr(Ee,0)]):b.current.bt=!1}if(Pe&&Ke[0]==="b"&&(_<xe.top||b.current.tb)){var et=Ve;$e?et+=te-fe:et=pt.y-Ge.y-Ue;var ze=Gt(Be,et),Et=Gt(Be,et,ne);ze>De||ze===De&&(!Ce||Et>=Re)?(b.current.tb=!0,Ve=et,Ue=-Ue,ut.points=[kr(Ke,0),kr(Ee,0)]):b.current.tb=!1}var Ht=kt(st),zt=Ke[1]===Ee[1];if(Ht&&Ke[1]==="l"&&(ie>xe.right||b.current.rl)){var gt=Be;zt?gt-=ae-de:gt=be.x-ke.x-Ae;var yr=Gt(gt,Ve),Dr=Gt(gt,Ve,ne);yr>De||yr===De&&(!Ce||Dr>=Re)?(b.current.rl=!0,Be=gt,Ae=-Ae,ut.points=[kr(Ke,1),kr(Ee,1)]):b.current.rl=!1}if(Ht&&Ke[1]==="r"&&(X<xe.left||b.current.lr)){var Wt=Be;zt?Wt+=ae-de:Wt=pt.x-Ge.x-Ae;var zr=Gt(Wt,Ve),Gn=Gt(Wt,Ve,ne);zr>De||zr===De&&(!Ce||Gn>=Re)?(b.current.lr=!0,Be=Wt,Ae=-Ae,ut.points=[kr(Ke,1),kr(Ee,1)]):b.current.lr=!1}Zr();var tr=Rt===!0?0:Rt;typeof tr=="number"&&(X<ne.left&&(Be-=X-ne.left-Ae,I.x+de<ne.left+tr&&(Be+=I.x-ne.left+de-tr)),ie>ne.right&&(Be-=ie-ne.right-Ae,I.x>ne.right-tr&&(Be+=I.x-ne.right+tr)));var sr=Dt===!0?0:Dt;typeof sr=="number"&&(_<ne.top&&(Ve-=_-ne.top-Ue,I.y+fe<ne.top+sr&&(Ve+=I.y-ne.top+fe-sr)),G>ne.bottom&&(Ve-=G-ne.bottom-Ue,I.y>ne.bottom-sr&&(Ve+=I.y-ne.bottom+sr)));var Vr=V.x+Be,Rr=Vr+ae,Sr=V.y+Ve,Pr=Sr+te,Qr=I.x,_r=Qr+de,lr=I.y,Un=lr+fe,Kn=Math.max(Vr,Qr),qn=Math.min(Rr,_r),un=(Kn+qn)/2,mt=un-Vr,nt=Math.max(Sr,lr),dt=Math.min(Pr,Un),Nt=(nt+dt)/2,Mt=Nt-Sr;i==null||i(t,ut);var Cr=Me.right-V.x-(Be+V.width),Er=Me.bottom-V.y-(Ve+V.height);oe===1&&(Be=Math.round(Be),Cr=Math.round(Cr)),re===1&&(Ve=Math.round(Ve),Er=Math.round(Er));var Xn={ready:!0,offsetX:Be/oe,offsetY:Ve/re,offsetR:Cr/oe,offsetB:Er/re,arrowX:mt/oe,arrowY:Mt/re,scaleX:oe,scaleY:re,align:ut};d(Xn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},S=function(){d(function(y){return z(z({},y),{},{ready:!1})})};return yt(S,[n]),yt(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function tS(e,t,r,n,a){yt(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Ms(o),l=Ms(i),u=Aa(i),d=new Set([u].concat(ye(s),ye(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function rS(e,t,r,n,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&n&&(!a||o)){var u=function(S){var m;l.current&&!i(((m=S.composedPath)===null||m===void 0||(m=m.call(S))===null||m===void 0?void 0:m[0])||S.target)&&s(!1)},d=Aa(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=xo(r);if(f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var v,b,h=r==null||(v=r.getRootNode)===null||v===void 0?void 0:v.call(r),p=(b=n.getRootNode)===null||b===void 0?void 0:b.call(n);Tn(h===p,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,r,n,a,o])}var nS=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function aS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fl,t=c.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,p=r.mouseEnterDelay,g=r.mouseLeaveDelay,S=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,E=r.mask,C=r.maskClosable,x=C===void 0?!0:C,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,N=r.destroyPopupOnHide,F=r.popup,j=r.popupClassName,A=r.popupStyle,M=r.popupPlacement,H=r.builtinPlacements,T=H===void 0?{}:H,O=r.popupAlign,I=r.zIndex,D=r.stretch,V=r.getPopupClassNameFromAlign,k=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,Z=r.popupMotion,J=r.maskMotion,te=r.popupTransitionName,ae=r.popupAnimation,fe=r.maskTransitionName,de=r.maskAnimation,ve=r.className,we=r.getTriggerDOMNode,B=Je(r,nS),ce=$||N||!1,se=c.useState(!1),Ce=U(se,2),pe=Ce[0],ne=Ce[1];yt(function(){ne(xf())},[]);var ge=c.useRef({}),xe=c.useContext(kc),Me=c.useMemo(function(){return{registerSubPopup:function(je,St){ge.current[je]=St,xe==null||xe.registerSubPopup(je,St)}}},[xe]),oe=X0(),re=c.useState(null),me=U(re,2),he=me[0],tt=me[1],qe=c.useRef(null),Ae=Bt(function(Se){qe.current=Se,va(Se)&&he!==Se&&tt(Se),xe==null||xe.registerSubPopup(oe,Se)}),Ue=c.useState(null),Xe=U(Ue,2),Ze=Xe[0],Fe=Xe[1],Te=c.useRef(null),it=Bt(function(Se){va(Se)&&Ze!==Se&&(Fe(Se),Te.current=Se)}),Ye=c.Children.only(i),Le=(Ye==null?void 0:Ye.props)||{},ue={},Ee=Bt(function(Se){var je,St,Pt=Ze;return(Pt==null?void 0:Pt.contains(Se))||((je=xo(Pt))===null||je===void 0?void 0:je.host)===Se||Se===Pt||(he==null?void 0:he.contains(Se))||((St=xo(he))===null||St===void 0?void 0:St.host)===Se||Se===he||Object.values(ge.current).some(function(Ct){return(Ct==null?void 0:Ct.contains(Se))||Se===Ct})}),Ke=Wc(o,Z,ae,te),rt=Wc(o,J,de,fe),bt=c.useState(v||!1),ut=U(bt,2),Be=ut[0],Ve=ut[1],De=f??Be,Re=Bt(function(Se){f===void 0&&Ve(Se)});yt(function(){Ve(f||!1)},[f]);var be=c.useRef(De);be.current=De;var Ge=c.useRef([]);Ge.current=[];var pt=Bt(function(Se){var je;Re(Se),((je=Ge.current[Ge.current.length-1])!==null&&je!==void 0?je:De)!==Se&&(Ge.current.push(Se),b==null||b(Se))}),ke=c.useRef(),He=function(){clearTimeout(ke.current)},st=function(je){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;He(),St===0?pt(je):ke.current=setTimeout(function(){pt(je)},St*1e3)};c.useEffect(function(){return He},[]);var ht=c.useState(!1),Rt=U(ht,2),Dt=Rt[0],kt=Rt[1];yt(function(Se){(!Se||De)&&kt(!0)},[De]);var _=c.useState(null),G=U(_,2),X=G[0],ie=G[1],Pe=c.useState([0,0]),$e=U(Pe,2),_e=$e[0],Ie=$e[1],vt=function(je){Ie([je.clientX,je.clientY])},et=eS(De,he,K?_e:Ze,M,T,O,q),ze=U(et,11),Et=ze[0],Ht=ze[1],zt=ze[2],gt=ze[3],yr=ze[4],Dr=ze[5],Wt=ze[6],zr=ze[7],Gn=ze[8],tr=ze[9],sr=ze[10],Vr=Qy(pe,l,u,d),Rr=U(Vr,2),Sr=Rr[0],Pr=Rr[1],Qr=Sr.has("click"),_r=Pr.has("click")||Pr.has("contextMenu"),lr=Bt(function(){Dt||sr()}),Un=function(){be.current&&K&&_r&&st(!1)};tS(De,Ze,he,lr,Un),yt(function(){lr()},[_e,M]),yt(function(){De&&!(T!=null&&T[M])&&lr()},[JSON.stringify(O)]);var Kn=c.useMemo(function(){var Se=Jy(T,o,tr,K);return Q(Se,V==null?void 0:V(tr))},[tr,V,T,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Te.current,popupElement:qe.current,forceAlign:lr}});var qn=c.useState(0),un=U(qn,2),mt=un[0],nt=un[1],dt=c.useState(0),Nt=U(dt,2),Mt=Nt[0],Cr=Nt[1],Er=function(){if(D&&Ze){var je=Ze.getBoundingClientRect();nt(je.width),Cr(je.height)}},Xn=function(){Er(),lr()},Gt=function(je){kt(!1),sr(),h==null||h(je)},Zr=function(){return new Promise(function(je){Er(),ie(function(){return je})})};yt(function(){X&&(sr(),X(),ie(null))},[X]);function Ut(Se,je,St,Pt){ue[Se]=function(Ct){var za;Pt==null||Pt(Ct),st(je,St);for(var ri=arguments.length,$l=new Array(ri>1?ri-1:0),Va=1;Va<ri;Va++)$l[Va-1]=arguments[Va];(za=Le[Se])===null||za===void 0||za.call.apply(za,[Le,Ct].concat($l))}}(Qr||_r)&&(ue.onClick=function(Se){var je;be.current&&_r?st(!1):!be.current&&Qr&&(vt(Se),st(!0));for(var St=arguments.length,Pt=new Array(St>1?St-1:0),Ct=1;Ct<St;Ct++)Pt[Ct-1]=arguments[Ct];(je=Le.onClick)===null||je===void 0||je.call.apply(je,[Le,Se].concat(Pt))}),rS(De,_r,Ze,he,E,x,Ee,st);var cr=Sr.has("hover"),Br=Pr.has("hover"),dn,Yn;cr&&(Ut("onMouseEnter",!0,p,function(Se){vt(Se)}),Ut("onPointerEnter",!0,p,function(Se){vt(Se)}),dn=function(je){(De||Dt)&&he!==null&&he!==void 0&&he.contains(je.target)&&st(!0,p)},K&&(ue.onMouseMove=function(Se){var je;(je=Le.onMouseMove)===null||je===void 0||je.call(Le,Se)})),Br&&(Ut("onMouseLeave",!1,S),Ut("onPointerLeave",!1,S),Yn=function(){st(!1,S)}),Sr.has("focus")&&Ut("onFocus",!0,m),Pr.has("focus")&&Ut("onBlur",!1,y),Sr.has("contextMenu")&&(ue.onContextMenu=function(Se){var je;be.current&&Pr.has("contextMenu")?st(!1):(vt(Se),st(!0)),Se.preventDefault();for(var St=arguments.length,Pt=new Array(St>1?St-1:0),Ct=1;Ct<St;Ct++)Pt[Ct-1]=arguments[Ct];(je=Le.onContextMenu)===null||je===void 0||je.call.apply(je,[Le,Se].concat(Pt))}),ve&&(ue.className=Q(Le.className,ve));var Qn=z(z({},Le),ue),Da={},Zo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Zo.forEach(function(Se){B[Se]&&(Da[Se]=function(){for(var je,St=arguments.length,Pt=new Array(St),Ct=0;Ct<St;Ct++)Pt[Ct]=arguments[Ct];(je=Qn[Se])===null||je===void 0||je.call.apply(je,[Qn].concat(Pt)),B[Se].apply(B,Pt)})});var Jo=c.cloneElement(Ye,z(z({},Qn),Da)),ei={x:Dr,y:Wt},ti=Y?z({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(vr,{disabled:!De,ref:it,onResize:Xn},c.createElement(_f,{getTriggerDOMNode:we},Jo)),c.createElement(kc.Provider,{value:Me},c.createElement(Pf,{portal:e,ref:Ae,prefixCls:o,popup:F,className:Q(j,Kn),style:A,target:Ze,onMouseEnter:dn,onMouseLeave:Yn,onPointerEnter:dn,zIndex:I,open:De,keepDom:Dt,fresh:k,onClick:W,mask:E,motion:Ke,maskMotion:rt,onVisibleChanged:Gt,onPrepare:Zr,forceRender:w,autoDestroy:ce,getPopupContainer:R,align:tr,arrow:ti,arrowPos:ei,ready:Et,offsetX:Ht,offsetY:zt,offsetR:gt,offsetB:yr,onAlign:lr,stretch:D,targetWidth:mt/zr,targetHeight:Mt/Gn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gl=aS(fl);function As(e,t,r){return Q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Tf=(e,t)=>t||e,Nf=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=P.useContext(ot),s=P.useContext(Gb),l=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(a=(n=s??l)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const d=lp.includes(u);return[u,d]};var oS={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"},iS=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:oS}))},If=c.forwardRef(iS);process.env.NODE_ENV!=="production"&&(If.displayName="CheckOutlined");const Ra=["xxl","xl","lg","md","sm","xs"],sS=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)`}),lS=e=>{const t=e,r=[].concat(Ra).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function cS(){const[,e]=Lr(),t=sS(lS(e));return P.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,r.forEach(i=>i(a)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(a),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Mf(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:Q("".concat(r,"-content"),o),style:i},c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var hn={shiftX:64,adjustY:1},bn={adjustX:1,shiftY:!0},nr=[0,0],uS={left:{points:["cr","cl"],overflow:bn,offset:[-4,0],targetOffset:nr},right:{points:["cl","cr"],overflow:bn,offset:[4,0],targetOffset:nr},top:{points:["bc","tc"],overflow:hn,offset:[0,-4],targetOffset:nr},bottom:{points:["tc","bc"],overflow:hn,offset:[0,4],targetOffset:nr},topLeft:{points:["bl","tl"],overflow:hn,offset:[0,-4],targetOffset:nr},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0],targetOffset:nr},topRight:{points:["br","tr"],overflow:hn,offset:[0,-4],targetOffset:nr},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0],targetOffset:nr},bottomRight:{points:["tr","br"],overflow:hn,offset:[0,4],targetOffset:nr},rightBottom:{points:["bl","br"],overflow:bn,offset:[4,0],targetOffset:nr},bottomLeft:{points:["tl","bl"],overflow:hn,offset:[0,4],targetOffset:nr},leftBottom:{points:["br","bl"],overflow:bn,offset:[-4,0],targetOffset:nr}},dS=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],fS=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,S=t.animation,m=t.motion,y=t.placement,E=y===void 0?"right":y,C=t.align,x=C===void 0?{}:C,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,N=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,A=t.id,M=t.showArrow,H=M===void 0?!0:M,T=Je(t,dS),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var I=z({},T);"visible"in t&&(I.popupVisible=t.visible);var D=function(){return c.createElement(Mf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:F},j)};return c.createElement(gl,Oe({popupClassName:n,prefixCls:v,popup:D,action:o,builtinPlacements:uS,popupPlacement:E,ref:O,popupAlign:x,getPopupContainer:N,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:S,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:H},I),b)};const vS=P.forwardRef(fS);function gS(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,h=l,p=2*a-o,g=i,S=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,E=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:S,arrowPath:E,arrowPolygon:y}}const mS=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ee(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Af=8;function jf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Af:n}}function Ja(e,t){return e?t:{}}function pS(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},mS(e,t,a)),{"&:before":{background:t}})]},Ja(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Ja(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function hS(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Xc={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"]}},bS={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"]}},yS=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function SS(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Xc).forEach(u=>{const d=n&&bS[u]||Xc[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,yS.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=jf({contentRadius:o,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=hS(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const CS=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,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":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ee(e.calc(u).div(2).equal())} ${ee(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Af)}},[`${t}-content`]:{position:"relative"}}),Dp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},pS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ES=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},jf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),gS(Lt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ff=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return br("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=Lt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[CS(s),Ly(n,"zoom-big-fast")]},ES,{resetStyle:!1,injectStyle:t})(e)},xS=Eo.map(e=>`${e}-inverse`);function wS(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ye(xS),ye(Eo)).includes(e):Eo.includes(e)}function Lf(e,t){const r=wS(t),n=Q({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const $S=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(ot),l=s("tooltip",t),[u,d,f]=Ff(l),v=Lf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Q(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return u(c.createElement("div",{className:p,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement(Mf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var OS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const RS=c.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:p,overlay:g,builtinPlacements:S,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,E=!!h,[,C]=Lr(),{getPopupContainer:x,getPrefixCls:R,direction:w}=c.useContext(ot),$=It("Tooltip"),N=c.useRef(null),F=()=>{var oe;(oe=N.current)===null||oe===void 0||oe.forceAlign()};c.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=N.current)===null||oe===void 0?void 0:oe.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(oe=>{let[re,me]=oe;$.deprecated(!(re in e),re,me)}),process.env.NODE_ENV!=="production"&&$(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&$(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,A]=or(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),M=!p&&!g&&p!==0,H=oe=>{var re,me;A(M?!1:oe),M||((re=e.onOpenChange)===null||re===void 0||re.call(e,oe),(me=e.onVisibleChange)===null||me===void 0||me.call(e,oe))},T=c.useMemo(()=>{var oe,re;let me=m;return typeof h=="object"&&(me=(re=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&re!==void 0?re:m),S||SS({arrowPointAtCenter:me,autoAdjustOverflow:y,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[m,h,S,C]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),I=c.createElement(Is,{space:!0},typeof O=="function"?O():O),{getPopupContainer:D,placement:V="top",mouseEnterDelay:k=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=OS(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Z=R("tooltip",a),J=R(),te=e["data-popover-inject"];let ae=j;!("open"in e)&&!("visible"in e)&&M&&(ae=!1);const fe=c.isValidElement(d)&&!Yd(d)?d:c.createElement("span",null,d),de=fe.props,ve=!de.className||typeof de.className=="string"?Q(de.className,o||`${Z}-open`):de.className,[we,B,ce]=Ff(Z,!te),se=Lf(Z,l),Ce=se.arrowStyle,pe=Object.assign(Object.assign({},u),se.overlayStyle),ne=Q(s,{[`${Z}-rtl`]:w==="rtl"},se.className,q,B,ce),[ge,xe]=zh("Tooltip",Y.zIndex),Me=c.createElement(vS,Object.assign({},Y,{zIndex:ge,showArrow:E,placement:V,mouseEnterDelay:k,mouseLeaveDelay:K,prefixCls:Z,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},Ce),W),getTooltipContainer:D||i||x,ref:N,builtinPlacements:T,overlay:I,visible:ae,onVisibleChange:H,afterVisibleChange:f??v,overlayInnerStyle:pe,arrowContent:c.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:Zd(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ae?zo(fe,{className:ve}):fe);return we(c.createElement(ll.Provider,{value:xe},Me))}),ja=RS;process.env.NODE_ENV!=="production"&&(ja.displayName="Tooltip");ja._InternalPanelDoNotUseOrYouWillBeFired=$S;var PS=le.ESC,_S=le.TAB;function TS(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=c.useRef(!1),s=function(){if(t){var f,v;(f=r.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),n==null||n(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case PS:s();break;case _S:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&_t(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var NS=P.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=P.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=Or(t,o==null?void 0:o.ref);return P.createElement(P.Fragment,null,n&&P.createElement("div",{className:"".concat(a,"-arrow")}),P.cloneElement(o,{ref:on(o)?i:void 0}))}),yn={adjustX:1,adjustY:1},Sn=[0,0],IS={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-4],targetOffset:Sn},top:{points:["bc","tc"],overflow:yn,offset:[0,-4],targetOffset:Sn},topRight:{points:["br","tr"],overflow:yn,offset:[0,-4],targetOffset:Sn},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,4],targetOffset:Sn},bottom:{points:["tc","bc"],overflow:yn,offset:[0,4],targetOffset:Sn},bottomRight:{points:["tr","br"],overflow:yn,offset:[0,4],targetOffset:Sn}},MS=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function AS(e,t){var r,n=e.arrow,a=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,b=v===void 0?IS:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,S=e.overlayClassName,m=e.overlayStyle,y=e.visible,E=e.trigger,C=E===void 0?["hover"]:E,x=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,N=Je(e,MS),F=P.useState(),j=U(F,2),A=j[0],M=j[1],H="visible"in e?y:A,T=P.useRef(null),O=P.useRef(null),I=P.useRef(null);P.useImperativeHandle(t,function(){return T.current});var D=function(te){M(te),$==null||$(te)};TS({visible:H,triggerRef:I,onVisibleChange:D,autoFocus:x,overlayRef:O});var V=function(te){var ae=e.onOverlayClick;M(!1),ae&&ae(te)},k=function(){return P.createElement(NS,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?k:k()},W=function(){var te=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!ae},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=P.cloneElement(w,{className:Q((r=w.props)===null||r===void 0?void 0:r.className,H&&q()),ref:on(w)?Or(I,w.ref):void 0}),Z=g;return!Z&&C.indexOf("contextMenu")!==-1&&(Z=["click"]),P.createElement(gl,Oe({builtinPlacements:b},N,{prefixCls:i,ref:T,popupClassName:Q(S,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:C,showAction:p,hideAction:Z,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:H,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:D,onPopupClick:V,getPopupContainer:h}),Y)}const jS=P.forwardRef(AS);var Df=c.createContext(null);function zf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Vf(e){var t=c.useContext(Df);return zf(t,e)}var FS=["children","locked"],pr=c.createContext(null);function LS(e,t){var r=z({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function Pa(e){var t=e.children,r=e.locked,n=Je(e,FS),a=c.useContext(pr),o=No(function(){return LS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!ba(i[1],s[1],!0))});return c.createElement(pr.Provider,{value:o},t)}var DS=[],Bf=c.createContext(null);function Go(){return c.useContext(Bf)}var kf=c.createContext(DS);function Fa(e){var t=c.useContext(kf);return c.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var Hf=c.createContext(null),ml=c.createContext({});function Yc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cl(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:n&&i===null&&(i=0),n&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function zS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ye(e.querySelectorAll("*")).filter(function(n){return Yc(n,t)});return Yc(e,t)&&r.unshift(e),r}var js=le.LEFT,Fs=le.RIGHT,Ls=le.UP,vo=le.DOWN,go=le.ENTER,Wf=le.ESC,na=le.HOME,aa=le.END,Qc=[Ls,vo,js,Fs];function VS(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===go)return{inlineTrigger:!0};var v=(a={},L(a,Ls,l),L(a,vo,u),a),b=(o={},L(o,js,r?u:l),L(o,Fs,r?l:u),L(o,vo,d),L(o,go,d),o),h=(i={},L(i,Ls,l),L(i,vo,u),L(i,go,d),L(i,Wf,f),L(i,js,r?d:f),L(i,Fs,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function BS(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function kS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function pl(e,t){var r=zS(e,!0);return r.filter(function(n){return t.has(n)})}function Zc(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=pl(e,t),o=a.length,i=a.findIndex(function(s){return r===s});return n<0?i===-1?i=o-1:i-=1:n>0&&(i+=1),i=(i+o)%o,a[i]}var Ds=function(t,r){var n=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(zf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function HS(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){_t.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(Qc,[go,Wf,na,aa]).includes(h)){var p=o(),g=Ds(p,n),S=g,m=S.elements,y=S.key2element,E=S.element2key,C=y.get(t),x=kS(C,m),R=E.get(x),w=VS(e,i(R,!0).length===1,r,h);if(!w&&h!==na&&h!==aa)return;(Qc.includes(h)||[na,aa].includes(h))&&b.preventDefault();var $=function(O){if(O){var I=O,D=O.querySelector("a");D!=null&&D.getAttribute("href")&&(I=D);var V=E.get(O);s(V),v(),d.current=_t(function(){f.current===V&&I.focus()})}};if([na,aa].includes(h)||w.sibling||!x){var N;!x||e==="inline"?N=a.current:N=BS(x);var F,j=pl(N,m);h===na?F=j[0]:h===aa?F=j[j.length-1]:F=Zc(N,m,x,w.offset),$(F)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=_t(function(){g=Ds(p,n);var T=x.getAttribute("aria-controls"),O=document.getElementById(T),I=Zc(O,g.elements);$(I)},5);else if(w.offset<0){var A=i(R,!0),M=A[A.length-2],H=y.get(M);l(M,!1),$(H)}}u==null||u(b)}}function WS(e){Promise.resolve().then(e)}var hl="__RC_UTIL_PATH_SPLIT__",Jc=function(t){return t.join(hl)},GS=function(t){return t.split(hl)},zs="rc-menu-more";function US(){var e=c.useState({}),t=U(e,2),r=t[1],n=P.useRef(new Map),a=P.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=P.useRef(0),d=P.useRef(!1),f=function(){d.current||r({})},v=P.useCallback(function(y,E){process.env.NODE_ENV!=="production"&&at(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(E.join(" > "),"]"));var C=Jc(E);a.current.set(C,y),n.current.set(y,C),u.current+=1;var x=u.current;WS(function(){x===u.current&&f()})},[]),b=P.useCallback(function(y,E){var C=Jc(E);a.current.delete(C),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,E){var C=n.current.get(y)||"",x=GS(C);return E&&s.includes(x[0])&&x.unshift(zs),x},[s]),g=P.useCallback(function(y,E){return y.filter(function(C){return C!==void 0}).some(function(C){var x=p(C,!0);return x.includes(E)})},[p]),S=function(){var E=ye(n.current.keys());return s.length&&E.push(zs),E},m=P.useCallback(function(y){var E="".concat(n.current.get(y)).concat(hl),C=new Set;return ye(a.current.keys()).forEach(function(x){x.startsWith(E)&&C.add(a.current.get(x))}),C},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:S,getSubPathKeys:m}}function ia(e){var t=c.useRef(e);t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var KS=Math.random().toFixed(5).toString().slice(2),eu=0;function qS(e){var t=or(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){eu+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(KS,"-").concat(eu);a("rc-menu-uuid-".concat(o))},[]),n}function Gf(e,t,r,n){var a=c.useContext(pr),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){n==null||n({key:e,domEvent:u}),s(e)}),l}function Uf(e){var t=c.useContext(pr),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function Kf(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,z({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var XS=["item"];function Po(e){var t=e.item,r=Je(e,XS);return Object.defineProperty(r,"item",{get:function(){return at(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var YS=["title","attribute","elementRef"],QS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ZS=["active"],JS=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,YS),u=hr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return at(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(jr.Item,Oe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),eC=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,p=e.onFocus,g=Je(e,QS),S=Vf(o),m=c.useContext(pr),y=m.prefixCls,E=m.onItemClick,C=m.disabled,x=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,N=c.useContext(ml),F=N._internalRenderMenuItem,j="".concat(y,"-item"),A=c.useRef(),M=c.useRef(),H=C||s,T=_a(t,M),O=Fa(o);process.env.NODE_ENV!=="production"&&i&&at(!1,"MenuItem should not leave undefined `key`.");var I=function(de){return{key:o,keyPath:ye(O).reverse(),item:A.current,domEvent:de}},D=l||R,V=Gf(o,H,f,v),k=V.active,K=Je(V,ZS),W=w.includes(o),q=Uf(O.length),Y=function(de){if(!H){var ve=I(de);b==null||b(Po(ve)),E(ve)}},Z=function(de){if(h==null||h(de),de.which===le.ENTER){var ve=I(de);b==null||b(Po(ve)),E(ve)}},J=function(de){$(o),p==null||p(de)},te={};e.role==="option"&&(te["aria-selected"]=W);var ae=c.createElement(JS,Oe({ref:A,elementRef:T,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":x&&S?null:S},g,K,te,{component:"li","aria-disabled":s,style:z(z({},q),n),className:Q(j,(r={},L(r,"".concat(j,"-active"),k),L(r,"".concat(j,"-selected"),W),L(r,"".concat(j,"-disabled"),H),r),a),onClick:Y,onKeyDown:Z,onFocus:J}),u,c.createElement(Kf,{props:z(z({},e),{},{isSelected:W}),icon:D}));return F&&(ae=F(ae,e,{selected:W})),ae});function tC(e,t){var r=e.eventKey,n=Go(),a=Fa(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(eC,Oe({},e,{ref:t}))}const Uo=c.forwardRef(tC);var rC=["className","children"],nC=function(t,r){var n=t.className,a=t.children,o=Je(t,rC),i=c.useContext(pr),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",Oe({className:Q(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},bl=c.forwardRef(nC);bl.displayName="SubMenuList";function yl(e,t){return $r(e).map(function(r,n){if(c.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(ye(t),[n]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(r,u)}return r})}var Vt={adjustX:1,adjustY:1},aC={topLeft:{points:["bl","tl"],overflow:Vt},topRight:{points:["br","tr"],overflow:Vt},bottomLeft:{points:["tl","bl"],overflow:Vt},bottomRight:{points:["tr","br"],overflow:Vt},leftTop:{points:["tr","tl"],overflow:Vt},leftBottom:{points:["br","bl"],overflow:Vt},rightTop:{points:["tl","tr"],overflow:Vt},rightBottom:{points:["bl","br"],overflow:Vt}},oC={topLeft:{points:["bl","tl"],overflow:Vt},topRight:{points:["br","tr"],overflow:Vt},bottomLeft:{points:["tl","bl"],overflow:Vt},bottomRight:{points:["tr","br"],overflow:Vt},rightTop:{points:["tr","tl"],overflow:Vt},rightBottom:{points:["br","bl"],overflow:Vt},leftTop:{points:["tl","tr"],overflow:Vt},leftBottom:{points:["bl","br"],overflow:Vt}};function qf(e,t,r){if(t)return t;if(r)return r[e]||r.other}var iC={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function sC(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(pr),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,S=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,E=f.motion,C=f.defaultMotions,x=c.useState(!1),R=U(x,2),w=R[0],$=R[1],N=z(b?z({},oC):z({},aC),g),F=iC[u],j=qf(u,E,C),A=c.useRef(j);u!=="inline"&&(A.current=j);var M=z(z({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=c.useRef();return c.useEffect(function(){return H.current=_t(function(){$(r)}),function(){_t.cancel(H.current)}},[r]),c.createElement(gl,{prefixCls:t,popupClassName:Q("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:N,popupPlacement:F,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[S],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:M,fresh:!0},n)}function lC(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(pr),s=i.prefixCls,l=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===o;var b=c.useState(!v.current),h=U(b,2),p=h[0],g=h[1],S=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=z({},qf(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(E){return!v.current&&!E&&g(!0),y==null?void 0:y(E)},p?null:c.createElement(Pa,{mode:o,locked:!v.current},c.createElement(sn,Oe({visible:S},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,x=E.style;return c.createElement(bl,{id:t,className:C,style:x},a)}))}var cC=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],uC=["active"],dC=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,p=e.popupStyle,g=e.onClick,S=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,E=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=Je(e,cC),R=Vf(i),w=c.useContext(pr),$=w.prefixCls,N=w.mode,F=w.openKeys,j=w.disabled,A=w.overflowDisabled,M=w.activeKey,H=w.selectedKeys,T=w.itemIcon,O=w.expandIcon,I=w.onItemClick,D=w.onOpenChange,V=w.onActive,k=c.useContext(ml),K=k._internalRenderSubMenuItem,W=c.useContext(Hf),q=W.isSubPathKey,Y=Fa(),Z="".concat($,"-submenu"),J=j||l,te=c.useRef(),ae=c.useRef();process.env.NODE_ENV!=="production"&&s&&at(!1,"SubMenu should not leave undefined `key`.");var fe=f??T,de=v??O,ve=F.includes(i),we=!A&&ve,B=q(H,i),ce=Gf(i,J,E,C),se=ce.active,Ce=Je(ce,uC),pe=c.useState(!1),ne=U(pe,2),ge=ne[0],xe=ne[1],Me=function(Le){J||xe(Le)},oe=function(Le){Me(!0),S==null||S({key:i,domEvent:Le})},re=function(Le){Me(!1),m==null||m({key:i,domEvent:Le})},me=c.useMemo(function(){return se||(N!=="inline"?ge||q([M],i):!1)},[N,se,M,ge,i,q]),he=Uf(Y.length),tt=function(Le){J||(y==null||y({key:i,domEvent:Le}),N==="inline"&&D(i,!ve))},qe=ia(function(Ye){g==null||g(Po(Ye)),I(Ye)}),Ae=function(Le){N!=="inline"&&D(i,Le)},Ue=function(){V(i)},Xe=R&&"".concat(R,"-popup"),Ze=c.createElement("div",Oe({role:"menuitem",style:he,className:"".concat(Z,"-title"),tabIndex:J?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":A&&R?null:R,"aria-expanded":we,"aria-haspopup":!0,"aria-controls":Xe,"aria-disabled":J,onClick:tt,onFocus:Ue},Ce),o,c.createElement(Kf,{icon:N!=="horizontal"?de:void 0,props:z(z({},e),{},{isOpen:we,isSubMenu:!0})},c.createElement("i",{className:"".concat(Z,"-arrow")}))),Fe=c.useRef(N);if(N!=="inline"&&Y.length>1?Fe.current="vertical":Fe.current=N,!A){var Te=Fe.current;Ze=c.createElement(sC,{mode:Te,prefixCls:Z,visible:!u&&we&&N!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(Pa,{mode:Te==="horizontal"?"vertical":Te},c.createElement(bl,{id:Xe,ref:ae},d)),disabled:J,onVisibleChange:Ae},Ze)}var it=c.createElement(jr.Item,Oe({ref:t,role:"none"},x,{component:"li",style:n,className:Q(Z,"".concat(Z,"-").concat(N),a,(r={},L(r,"".concat(Z,"-open"),we),L(r,"".concat(Z,"-active"),me),L(r,"".concat(Z,"-selected"),B),L(r,"".concat(Z,"-disabled"),J),r)),onMouseEnter:oe,onMouseLeave:re}),Ze,!A&&c.createElement(lC,{id:Xe,open:we,keyPath:Y},d));return K&&(it=K(it,e,{selected:B,active:me,open:we,disabled:J})),c.createElement(Pa,{onItemClick:qe,mode:N==="horizontal"?"vertical":N,itemIcon:fe,expandIcon:de},it)}),Ko=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=yl(n,a),i=Go();c.useEffect(function(){if(i)return i.registerPath(r,a),function(){i.unregisterPath(r,a)}},[a]);var s;return i?s=o:s=c.createElement(dC,Oe({ref:t},e),o),c.createElement(kf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Ko.displayName="SubMenu");function Xf(e){var t=e.className,r=e.style,n=c.useContext(pr),a=n.prefixCls,o=Go();return o?null:c.createElement("li",{role:"separator",className:Q("".concat(a,"-item-divider"),t),style:r})}var fC=["className","title","eventKey","children"],vC=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,fC),i=c.useContext(pr),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",Oe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Q(l,r)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),Sl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=yl(n,a),i=Go();return i?o:c.createElement(vC,Oe({ref:t},hr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(Sl.displayName="MenuItemGroup");var gC=["label","children","key","type"];function Vs(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ne(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,gC),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,Oe({key:h},b,{title:u}),Vs(d,t)):c.createElement(a,Oe({key:h},b,{title:u}),Vs(d,t)):v==="divider"?c.createElement(o,Oe({key:h},b)):c.createElement(r,Oe({key:h},b),u)}return null}).filter(function(i){return i})}function tu(e,t,r,n){var a=e,o=z({divider:Xf,item:Uo,group:Sl,submenu:Ko},n);return t&&(a=Vs(t,o)),yl(a,r)}var mC=["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"],Jr=[],pC=c.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,p=a.id,g=a.mode,S=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,E=a.disabledOverflow,C=a.subMenuOpenDelay,x=C===void 0?.1:C,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,N=a.defaultOpenKeys,F=a.openKeys,j=a.activeKey,A=a.defaultActiveFirst,M=a.selectable,H=M===void 0?!0:M,T=a.multiple,O=T===void 0?!1:T,I=a.defaultSelectedKeys,D=a.selectedKeys,V=a.onSelect,k=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,Z=a.triggerSubMenuAction,J=Z===void 0?"hover":Z,te=a.builtinPlacements,ae=a.itemIcon,fe=a.expandIcon,de=a.overflowedIndicator,ve=de===void 0?"...":de,we=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ce=a.onClick,se=a.onOpenChange,Ce=a.onKeyDown,pe=a.openAnimation,ne=a.openTransitionName,ge=a._internalRenderMenuItem,xe=a._internalRenderSubMenuItem,Me=a._internalComponents,oe=Je(a,mC),re=c.useMemo(function(){return[tu(b,v,Jr,Me),tu(b,v,Jr,{})]},[b,v,Me]),me=U(re,2),he=me[0],tt=me[1],qe=c.useState(!1),Ae=U(qe,2),Ue=Ae[0],Xe=Ae[1],Ze=c.useRef(),Fe=qS(p),Te=h==="rtl";process.env.NODE_ENV!=="production"&&at(!pe&&!ne,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var it=or(N,{value:F,postState:function(nt){return nt||Jr}}),Ye=U(it,2),Le=Ye[0],ue=Ye[1],Ee=function(nt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Nt(){ue(nt),se==null||se(nt)}dt?_n.flushSync(Nt):Nt()},Ke=c.useState(Le),rt=U(Ke,2),bt=rt[0],ut=rt[1],Be=c.useRef(!1),Ve=c.useMemo(function(){return(S==="inline"||S==="vertical")&&m?["vertical",m]:[S,!1]},[S,m]),De=U(Ve,2),Re=De[0],be=De[1],Ge=Re==="inline",pt=c.useState(Re),ke=U(pt,2),He=ke[0],st=ke[1],ht=c.useState(be),Rt=U(ht,2),Dt=Rt[0],kt=Rt[1];c.useEffect(function(){st(Re),kt(be),Be.current&&(Ge?ue(bt):Ee(Jr))},[Re,be]);var _=c.useState(0),G=U(_,2),X=G[0],ie=G[1],Pe=X>=he.length-1||He!=="horizontal"||E;c.useEffect(function(){Ge&&ut(Le)},[Le]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var $e=US(),_e=$e.registerPath,Ie=$e.unregisterPath,vt=$e.refreshOverflowKeys,et=$e.isSubPathKey,ze=$e.getKeyPath,Et=$e.getKeys,Ht=$e.getSubPathKeys,zt=c.useMemo(function(){return{registerPath:_e,unregisterPath:Ie}},[_e,Ie]),gt=c.useMemo(function(){return{isSubPathKey:et}},[et]);c.useEffect(function(){vt(Pe?Jr:he.slice(X+1).map(function(mt){return mt.key}))},[X,Pe]);var yr=or(j||A&&((r=he[0])===null||r===void 0?void 0:r.key),{value:j}),Dr=U(yr,2),Wt=Dr[0],zr=Dr[1],Gn=ia(function(mt){zr(mt)}),tr=ia(function(){zr(void 0)});P.useImperativeHandle(t,function(){return{list:Ze.current,focus:function(nt){var dt,Nt=Et(),Mt=Ds(Nt,Fe),Cr=Mt.elements,Er=Mt.key2element,Xn=Mt.element2key,Gt=pl(Ze.current,Cr),Zr=Wt??(Gt[0]?Xn.get(Gt[0]):(dt=he.find(function(Br){return!Br.props.disabled}))===null||dt===void 0?void 0:dt.key),Ut=Er.get(Zr);if(Zr&&Ut){var cr;Ut==null||(cr=Ut.focus)===null||cr===void 0||cr.call(Ut,nt)}}}});var sr=or(I||[],{value:D,postState:function(nt){return Array.isArray(nt)?nt:nt==null?Jr:[nt]}}),Vr=U(sr,2),Rr=Vr[0],Sr=Vr[1],Pr=function(nt){if(H){var dt=nt.key,Nt=Rr.includes(dt),Mt;O?Nt?Mt=Rr.filter(function(Er){return Er!==dt}):Mt=[].concat(ye(Rr),[dt]):Mt=[dt],Sr(Mt);var Cr=z(z({},nt),{},{selectedKeys:Mt});Nt?k==null||k(Cr):V==null||V(Cr)}!O&&Le.length&&He!=="inline"&&Ee(Jr)},Qr=ia(function(mt){ce==null||ce(Po(mt)),Pr(mt)}),_r=ia(function(mt,nt){var dt=Le.filter(function(Mt){return Mt!==mt});if(nt)dt.push(mt);else if(He!=="inline"){var Nt=Ht(mt);dt=dt.filter(function(Mt){return!Nt.has(Mt)})}ba(Le,dt,!0)||Ee(dt,!0)}),lr=function(nt,dt){var Nt=dt??!Le.includes(nt);_r(nt,Nt)},Un=HS(He,Wt,Te,Fe,Ze,Et,ze,zr,lr,Ce);c.useEffect(function(){Xe(!0)},[]);var Kn=c.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:xe}},[ge,xe]),qn=He!=="horizontal"||E?he:he.map(function(mt,nt){return c.createElement(Pa,{key:mt.key,overflowDisabled:nt>X},mt)}),un=c.createElement(jr,Oe({id:p,ref:Ze,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Uo,className:Q(i,"".concat(i,"-root"),"".concat(i,"-").concat(He),u,(n={},L(n,"".concat(i,"-inline-collapsed"),Dt),L(n,"".concat(i,"-rtl"),Te),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:qn,renderRawItem:function(nt){return nt},renderRawRest:function(nt){var dt=nt.length,Nt=dt?he.slice(-dt):null;return c.createElement(Ko,{eventKey:zs,title:ve,disabled:Pe,internalPopupClose:dt===0,popupClassName:we},Nt)},maxCount:He!=="horizontal"||E?jr.INVALIDATE:jr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nt){ie(nt)},onKeyDown:Un},oe));return c.createElement(ml.Provider,{value:Kn},c.createElement(Df.Provider,{value:Fe},c.createElement(Pa,{prefixCls:i,rootClassName:s,mode:He,openKeys:Le,rtl:Te,disabled:y,motion:Ue?q:null,defaultMotions:Ue?Y:null,activeKey:Wt,onActive:Gn,onInactive:tr,selectedKeys:Rr,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:J,getPopupContainer:B,itemIcon:ae,expandIcon:fe,onItemClick:Qr,onOpenChange:_r},c.createElement(Hf.Provider,{value:gt},un),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Bf.Provider,{value:zt},tt)))))}),La=pC;La.Item=Uo;La.SubMenu=Ko;La.ItemGroup=Sl;La.Divider=Xf;var hC={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"},bC=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:hC}))},Yf=c.forwardRef(bC);process.env.NODE_ENV!=="production"&&(Yf.displayName="EllipsisOutlined");function yC(e){return Lt(e,{inputAffixPadding:e.paddingXXS})}const SC=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:S,colorWarningOutline:m,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${S}`,warningActiveShadow:`0 0 0 ${p}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},CC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Cl=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({},CC(Lt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Qf=(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}}),ru=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),EC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Cl(e))}),ru(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ru(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),xC=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nu(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),nu(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Cl(e))}})}),wC=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Zf=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),au=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Zf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),$C=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zf(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Cl(e))}),au(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),au(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ou=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),OC=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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},ou(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ou(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),RC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Jf=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${ee(t)} ${ee(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},ev=e=>({padding:`${ee(e.paddingBlockSM)} ${ee(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),tv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ee(e.paddingBlock)} ${ee(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},RC(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({},Jf(e)),"&-sm":Object.assign({},ev(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),PC=e=>{const{componentCls:t,antCls:r}=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({},Jf(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ev(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${ee(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ee(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${ee(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},Ta()),{[`${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},[`
|
|
146
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xf=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Fy=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],mn=void 0;function Ly(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,v=e.children,b=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,S=Je(e,Fy),m=i&&!b;function y(w){l(u,w)}c.useEffect(function(){return function(){y(null)}},[]);var E=o&&a!==mn?o(a):v,C;n||(C={opacity:m?0:1,height:m?0:mn,overflowY:m?"hidden":mn,order:i?h:mn,pointerEvents:m?"none":mn,position:m?"absolute":mn});var x={};m&&(x["aria-hidden"]=!0);var R=c.createElement(g,Oe({className:Q(!n&&r,d),style:z(z({},C),f)},x,S,{ref:t}),E);return i&&(R=c.createElement(vr,{onResize:function($){var N=$.offsetWidth;y(N)},disabled:s},R)),R}var fa=c.forwardRef(Ly);fa.displayName="Item";function Dy(e){if(typeof MessageChannel>"u")_t(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function zy(){var e=c.useRef(null),t=function(n){e.current||(e.current=[],Dy(function(){_n.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function Jn(e,t){var r=c.useState(t),n=U(r,2),a=n[0],o=n[1],i=Bt(function(s){e(function(){o(s)})});return[a,i]}var Ro=P.createContext(null),Vy=["component"],By=["className"],ky=["className"],Hy=function(t,r){var n=c.useContext(Ro);if(!n){var a=t.component,o=a===void 0?"div":a,i=Je(t,Vy);return c.createElement(o,Oe({},i,{ref:r}))}var s=n.className,l=Je(n,By),u=t.className,d=Je(t,ky);return c.createElement(Ro.Provider,{value:null},c.createElement(fa,Oe({ref:r,className:Q(s,u)},l,d)))},wf=c.forwardRef(Hy);wf.displayName="RawItem";var Wy=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],$f="responsive",Of="invalidate";function Gy(e){return"+ ".concat(e.length," ...")}function Uy(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,v=e.style,b=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,S=e.suffix,m=e.component,y=m===void 0?"div":m,E=e.itemComponent,C=e.onVisibleChange,x=Je(e,Wy),R=f==="full",w=zy(),$=Jn(w,null),N=U($,2),F=N[0],j=N[1],A=F||0,M=Jn(w,new Map),H=U(M,2),T=H[0],O=H[1],I=Jn(w,0),D=U(I,2),V=D[0],k=D[1],K=Jn(w,0),W=U(K,2),q=W[0],Y=W[1],Z=Jn(w,0),J=U(Z,2),te=J[0],ae=J[1],fe=P.useState(null),de=U(fe,2),ve=de[0],we=de[1],B=P.useState(null),ce=U(B,2),se=ce[0],Ce=ce[1],pe=c.useMemo(function(){return se===null&&R?Number.MAX_SAFE_INTEGER:se||0},[se,F]),ne=P.useState(!1),ge=U(ne,2),xe=ge[0],Me=ge[1],oe="".concat(n,"-item"),re=Math.max(V,q),me=h===$f,he=o.length&&me,tt=h===Of,qe=he||typeof h=="number"&&o.length>h,Ae=P.useMemo(function(){var Re=o;return he?F===null&&R?Re=o:Re=o.slice(0,Math.min(o.length,A/d)):typeof h=="number"&&(Re=o.slice(0,h)),Re},[o,d,F,h,he]),Ue=P.useMemo(function(){return he?o.slice(pe+1):o.slice(Ae.length)},[o,Ae,he,pe]),Xe=P.useCallback(function(Re,be){var Ge;return typeof l=="function"?l(Re):(Ge=l&&(Re==null?void 0:Re[l]))!==null&&Ge!==void 0?Ge:be},[l]),Ze=P.useCallback(i||function(Re){return Re},[i]);function Fe(Re,be,Ge){se===Re&&(be===void 0||be===ve)||(Ce(Re),Ge||(Me(Re<o.length-1),C==null||C(Re)),be!==void 0&&we(be))}function Te(Re,be){j(be.clientWidth)}function it(Re,be){O(function(Ge){var pt=new Map(Ge);return be===null?pt.delete(Re):pt.set(Re,be),pt})}function Ye(Re,be){Y(be),k(q)}function Le(Re,be){ae(be)}function ue(Re){return T.get(Xe(Ae[Re],Re))}yt(function(){if(A&&typeof re=="number"&&Ae){var Re=te,be=Ae.length,Ge=be-1;if(!be){Fe(0,null);return}for(var pt=0;pt<be;pt+=1){var ke=ue(pt);if(R&&(ke=ke||0),ke===void 0){Fe(pt-1,void 0,!0);break}if(Re+=ke,Ge===0&&Re<=A||pt===Ge-1&&Re+ue(Ge)<=A){Fe(Ge,null);break}else if(Re+re>A){Fe(pt-1,Re-ke-te+q);break}}S&&ue(0)+te>A&&we(null)}},[A,T,q,te,Xe,Ae]);var Ee=xe&&!!Ue.length,Ke={};ve!==null&&he&&(Ke={position:"absolute",left:ve,top:0});var rt={prefixCls:oe,responsive:he,component:E,invalidate:tt},bt=s?function(Re,be){var Ge=Xe(Re,be);return c.createElement(Ro.Provider,{key:Ge,value:z(z({},rt),{},{order:be,item:Re,itemKey:Ge,registerSize:it,display:be<=pe})},s(Re,be))}:function(Re,be){var Ge=Xe(Re,be);return c.createElement(fa,Oe({},rt,{order:be,key:Ge,item:Re,renderItem:Ze,itemKey:Ge,registerSize:it,display:be<=pe}))},ut,Be={order:Ee?pe:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ye,display:Ee};if(g)g&&(ut=c.createElement(Ro.Provider,{value:z(z({},rt),Be)},g(Ue)));else{var Ve=p||Gy;ut=c.createElement(fa,Oe({},rt,Be),typeof Ve=="function"?Ve(Ue):Ve)}var De=c.createElement(y,Oe({className:Q(!tt&&n,b),style:v,ref:t},x),Ae.map(bt),qe?ut:null,S&&c.createElement(fa,Oe({},rt,{responsive:me,responsiveDisabled:!he,order:pe,className:"".concat(oe,"-suffix"),registerSize:Le,display:!0,style:Ke}),S));return me&&(De=c.createElement(vr,{onResize:Te,disabled:!he},De)),De}var jr=c.forwardRef(Uy);jr.displayName="Overflow";jr.Item=wf;jr.RESPONSIVE=$f;jr.INVALIDATE=Of;function Ky(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,o=n||{},i=o.className,s=o.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,v=c.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],p=r.points[1],g=h[0],S=h[1],m=p[0],y=p[1];g===m||!["t","b"].includes(g)?b.top=f:g==="t"?b.top=0:b.bottom=0,S===y||!["l","r"].includes(S)?b.left=u:S==="l"?b.left=0:b.right=0}return c.createElement("div",{ref:v,className:Q("".concat(t,"-arrow"),i),style:b},s)}function qy(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,o=e.motion;return a?c.createElement(sn,Oe({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return c.createElement("div",{style:{zIndex:n},className:Q("".concat(t,"-mask"),s)})}):null}var Rf=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Rf.displayName="PopupContent");var Pf=c.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,b=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,S=e.maskMotion,m=e.forceRender,y=e.getPopupContainer,E=e.autoDestroy,C=e.portal,x=e.zIndex,R=e.onMouseEnter,w=e.onMouseLeave,$=e.onPointerEnter,N=e.ready,F=e.offsetX,j=e.offsetY,A=e.offsetR,M=e.offsetB,H=e.onAlign,T=e.onPrepare,O=e.stretch,I=e.targetWidth,D=e.targetHeight,V=typeof r=="function"?r():r,k=l||u,K=(y==null?void 0:y.length)>0,W=c.useState(!y||!K),q=U(W,2),Y=q[0],Z=q[1];if(yt(function(){!Y&&K&&i&&Z(!0)},[Y,K,i]),!Y)return null;var J="auto",te={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(N||!l){var ae,fe=p.points,de=p.dynamicInset||((ae=p._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ve=de&&fe[0][1]==="r",we=de&&fe[0][0]==="b";ve?(te.right=A,te.left=J):(te.left=F,te.right=J),we?(te.bottom=M,te.top=J):(te.top=j,te.bottom=J)}var B={};return O&&(O.includes("height")&&D?B.height=D:O.includes("minHeight")&&D&&(B.minHeight=D),O.includes("width")&&I?B.width=I:O.includes("minWidth")&&I&&(B.minWidth=I)),l||(B.pointerEvents="none"),c.createElement(C,{open:m||k,getContainer:y&&function(){return y(i)},autoDestroy:E},c.createElement(qy,{prefixCls:a,open:l,zIndex:x,mask:v,motion:S}),c.createElement(vr,{onResize:H,disabled:!l},function(ce){return c.createElement(sn,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(Ce){var pe;g==null||(pe=g.onVisibleChanged)===null||pe===void 0||pe.call(g,Ce),s(Ce)}}),function(se,Ce){var pe=se.className,ne=se.style,ge=Q(a,pe,n);return c.createElement("div",{ref:Or(ce,t,Ce),className:ge,style:z(z(z(z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),B),ne),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:R,onMouseLeave:w,onPointerEnter:$,onClick:f},b&&c.createElement(Ky,{prefixCls:a,arrow:b,arrowPos:h,align:p}),c.createElement(Rf,{cache:!l&&!d},V))})}))});process.env.NODE_ENV!=="production"&&(Pf.displayName="Popup");var _f=c.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=on(r),o=c.useCallback(function(s){Us(t,n?n(s):s)},[n]),i=_a(o,r.ref);return a?c.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(_f.displayName="TriggerWrapper");var Vc=c.createContext(null);function Bc(e){return e?Array.isArray(e)?e:[e]:[]}function Xy(e,t,r,n){return c.useMemo(function(){var a=Bc(r??t),o=Bc(n??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}function Yy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Qy(e,t,r,n){for(var a=r.points,o=Object.keys(e),i=0;i<o.length;i+=1){var s,l=o[i];if(Yy((s=e[l])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(l)}return""}function kc(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Aa(e){return e.ownerDocument.defaultView}function Is(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=Aa(r).getComputedStyle(r),o=a.overflowX,i=a.overflowY,s=a.overflow;[o,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ea(e){return Oa(parseFloat(e),0)}function Hc(e,t){var r=z({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=Aa(n).getComputedStyle(n),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=n.getBoundingClientRect(),v=n.offsetHeight,b=n.clientHeight,h=n.offsetWidth,p=n.clientWidth,g=ea(s),S=ea(l),m=ea(u),y=ea(d),E=Oa(Math.round(f.width/h*1e3)/1e3),C=Oa(Math.round(f.height/v*1e3)/1e3),x=(h-p-m-y)*E,R=(v-b-g-S)*C,w=g*C,$=S*C,N=m*E,F=y*E,j=0,A=0;if(o==="clip"){var M=ea(i);j=M*E,A=M*C}var H=f.x+N-j,T=f.y+w-A,O=H+f.width+2*j-N-F-x,I=T+f.height+2*A-w-$-R;r.left=Math.max(r.left,H),r.top=Math.max(r.top,T),r.right=Math.min(r.right,O),r.bottom=Math.min(r.bottom,I)}}),r}function Wc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Gc(e,t){var r=t||[],n=U(r,2),a=n[0],o=n[1];return[Wc(e.width,a),Wc(e.height,o)]}function Uc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function pn(e,t){var r=t[0],n=t[1],a,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function kr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function Zy(e,t,r,n,a,o,i){var s=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=U(s,2),u=l[0],d=l[1],f=c.useRef(0),v=c.useMemo(function(){return t?Is(t):[]},[t]),b=c.useRef({}),h=function(){b.current={}};e||h();var p=Bt(function(){if(t&&r&&e){let Gt=function(Ut,cr){var Br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,dn=V.x+Ut,Yn=V.y+cr,Qn=dn+ae,Da=Yn+te,Zo=Math.max(dn,Br.left),Jo=Math.max(Yn,Br.top),ei=Math.min(Qn,Br.right),ti=Math.min(Da,Br.bottom);return Math.max(0,(ei-Zo)*(ti-Jo))},Zr=function(){_=V.y+Ve,G=_+te,X=V.x+Be,ie=X+ae};var m,y,E=t,C=E.ownerDocument,x=Aa(E),R=x.getComputedStyle(E),w=R.width,$=R.height,N=R.position,F=E.style.left,j=E.style.top,A=E.style.right,M=E.style.bottom,H=E.style.overflow,T=z(z({},a[n]),o),O=C.createElement("div");(m=E.parentElement)===null||m===void 0||m.appendChild(O),O.style.left="".concat(E.offsetLeft,"px"),O.style.top="".concat(E.offsetTop,"px"),O.style.position=N,O.style.height="".concat(E.offsetHeight,"px"),O.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var I;if(Array.isArray(r))I={x:r[0],y:r[1],width:0,height:0};else{var D=r.getBoundingClientRect();I={x:D.x,y:D.y,width:D.width,height:D.height}}var V=E.getBoundingClientRect(),k=C.documentElement,K=k.clientWidth,W=k.clientHeight,q=k.scrollWidth,Y=k.scrollHeight,Z=k.scrollTop,J=k.scrollLeft,te=V.height,ae=V.width,fe=I.height,de=I.width,ve={left:0,top:0,right:K,bottom:W},we={left:-J,top:-Z,right:q-J,bottom:Y-Z},B=T.htmlRegion,ce="visible",se="visibleFirst";B!=="scroll"&&B!==se&&(B=ce);var Ce=B===se,pe=Hc(we,v),ne=Hc(ve,v),ge=B===ce?ne:pe,xe=Ce?ne:ge;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Me=E.getBoundingClientRect();E.style.left=F,E.style.top=j,E.style.right=A,E.style.bottom=M,E.style.overflow=H,(y=E.parentElement)===null||y===void 0||y.removeChild(O);var oe=Oa(Math.round(ae/parseFloat(w)*1e3)/1e3),re=Oa(Math.round(te/parseFloat($)*1e3)/1e3);if(oe===0||re===0||va(r)&&!cl(r))return;var me=T.offset,he=T.targetOffset,tt=Gc(V,me),qe=U(tt,2),Ae=qe[0],Ue=qe[1],Xe=Gc(I,he),Ze=U(Xe,2),Fe=Ze[0],Te=Ze[1];I.x-=Fe,I.y-=Te;var it=T.points||[],Ye=U(it,2),Le=Ye[0],ue=Ye[1],Ee=Uc(ue),Ke=Uc(Le),rt=pn(I,Ee),bt=pn(V,Ke),ut=z({},T),Be=rt.x-bt.x+Ae,Ve=rt.y-bt.y+Ue,De=Gt(Be,Ve),Re=Gt(Be,Ve,ne),be=pn(I,["t","l"]),Ge=pn(V,["t","l"]),pt=pn(I,["b","r"]),ke=pn(V,["b","r"]),He=T.overflow||{},st=He.adjustX,ht=He.adjustY,Ot=He.shiftX,Dt=He.shiftY,kt=function(cr){return typeof cr=="boolean"?cr:cr>=0},_,G,X,ie;Zr();var Pe=kt(ht),$e=Ke[0]===Ee[0];if(Pe&&Ke[0]==="t"&&(G>xe.bottom||b.current.bt)){var _e=Ve;$e?_e-=te-fe:_e=be.y-ke.y-Ue;var Ie=Gt(Be,_e),vt=Gt(Be,_e,ne);Ie>De||Ie===De&&(!Ce||vt>=Re)?(b.current.bt=!0,Ve=_e,Ue=-Ue,ut.points=[kr(Ke,0),kr(Ee,0)]):b.current.bt=!1}if(Pe&&Ke[0]==="b"&&(_<xe.top||b.current.tb)){var et=Ve;$e?et+=te-fe:et=pt.y-Ge.y-Ue;var ze=Gt(Be,et),Et=Gt(Be,et,ne);ze>De||ze===De&&(!Ce||Et>=Re)?(b.current.tb=!0,Ve=et,Ue=-Ue,ut.points=[kr(Ke,0),kr(Ee,0)]):b.current.tb=!1}var Ht=kt(st),zt=Ke[1]===Ee[1];if(Ht&&Ke[1]==="l"&&(ie>xe.right||b.current.rl)){var gt=Be;zt?gt-=ae-de:gt=be.x-ke.x-Ae;var yr=Gt(gt,Ve),Dr=Gt(gt,Ve,ne);yr>De||yr===De&&(!Ce||Dr>=Re)?(b.current.rl=!0,Be=gt,Ae=-Ae,ut.points=[kr(Ke,1),kr(Ee,1)]):b.current.rl=!1}if(Ht&&Ke[1]==="r"&&(X<xe.left||b.current.lr)){var Wt=Be;zt?Wt+=ae-de:Wt=pt.x-Ge.x-Ae;var zr=Gt(Wt,Ve),Gn=Gt(Wt,Ve,ne);zr>De||zr===De&&(!Ce||Gn>=Re)?(b.current.lr=!0,Be=Wt,Ae=-Ae,ut.points=[kr(Ke,1),kr(Ee,1)]):b.current.lr=!1}Zr();var tr=Ot===!0?0:Ot;typeof tr=="number"&&(X<ne.left&&(Be-=X-ne.left-Ae,I.x+de<ne.left+tr&&(Be+=I.x-ne.left+de-tr)),ie>ne.right&&(Be-=ie-ne.right-Ae,I.x>ne.right-tr&&(Be+=I.x-ne.right+tr)));var sr=Dt===!0?0:Dt;typeof sr=="number"&&(_<ne.top&&(Ve-=_-ne.top-Ue,I.y+fe<ne.top+sr&&(Ve+=I.y-ne.top+fe-sr)),G>ne.bottom&&(Ve-=G-ne.bottom-Ue,I.y>ne.bottom-sr&&(Ve+=I.y-ne.bottom+sr)));var Vr=V.x+Be,Rr=Vr+ae,Sr=V.y+Ve,Pr=Sr+te,Qr=I.x,_r=Qr+de,lr=I.y,Un=lr+fe,Kn=Math.max(Vr,Qr),qn=Math.min(Rr,_r),un=(Kn+qn)/2,mt=un-Vr,nt=Math.max(Sr,lr),dt=Math.min(Pr,Un),Nt=(nt+dt)/2,Mt=Nt-Sr;i==null||i(t,ut);var Cr=Me.right-V.x-(Be+V.width),Er=Me.bottom-V.y-(Ve+V.height);oe===1&&(Be=Math.round(Be),Cr=Math.round(Cr)),re===1&&(Ve=Math.round(Ve),Er=Math.round(Er));var Xn={ready:!0,offsetX:Be/oe,offsetY:Ve/re,offsetR:Cr/oe,offsetB:Er/re,arrowX:mt/oe,arrowY:Mt/re,scaleX:oe,scaleY:re,align:ut};d(Xn)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&p()})},S=function(){d(function(y){return z(z({},y),{},{ready:!1})})};return yt(S,[n]),yt(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function Jy(e,t,r,n,a){yt(function(){if(e&&t&&r){let f=function(){n(),a()};var o=t,i=r,s=Is(o),l=Is(i),u=Aa(i),d=new Set([u].concat(ye(s),ye(l)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,r])}function eS(e,t,r,n,a,o,i,s){var l=c.useRef(e);l.current=e,c.useEffect(function(){if(t&&n&&(!a||o)){var u=function(S){var m;l.current&&!i(((m=S.composedPath)===null||m===void 0||(m=m.call(S))===null||m===void 0?void 0:m[0])||S.target)&&s(!1)},d=Aa(n);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=xo(r);if(f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var v,b,h=r==null||(v=r.getRootNode)===null||v===void 0?void 0:v.call(r),p=(b=n.getRootNode)===null||b===void 0?void 0:b.call(n);Tn(h===p,"trigger element and popup element should in same shadow root.")}return function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,r,n,a,o])}var tS=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function rS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fl,t=c.forwardRef(function(r,n){var a=r.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=r.children,s=r.action,l=s===void 0?"hover":s,u=r.showAction,d=r.hideAction,f=r.popupVisible,v=r.defaultPopupVisible,b=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,p=r.mouseEnterDelay,g=r.mouseLeaveDelay,S=g===void 0?.1:g,m=r.focusDelay,y=r.blurDelay,E=r.mask,C=r.maskClosable,x=C===void 0?!0:C,R=r.getPopupContainer,w=r.forceRender,$=r.autoDestroy,N=r.destroyPopupOnHide,F=r.popup,j=r.popupClassName,A=r.popupStyle,M=r.popupPlacement,H=r.builtinPlacements,T=H===void 0?{}:H,O=r.popupAlign,I=r.zIndex,D=r.stretch,V=r.getPopupClassNameFromAlign,k=r.fresh,K=r.alignPoint,W=r.onPopupClick,q=r.onPopupAlign,Y=r.arrow,Z=r.popupMotion,J=r.maskMotion,te=r.popupTransitionName,ae=r.popupAnimation,fe=r.maskTransitionName,de=r.maskAnimation,ve=r.className,we=r.getTriggerDOMNode,B=Je(r,tS),ce=$||N||!1,se=c.useState(!1),Ce=U(se,2),pe=Ce[0],ne=Ce[1];yt(function(){ne(xf())},[]);var ge=c.useRef({}),xe=c.useContext(Vc),Me=c.useMemo(function(){return{registerSubPopup:function(je,St){ge.current[je]=St,xe==null||xe.registerSubPopup(je,St)}}},[xe]),oe=K0(),re=c.useState(null),me=U(re,2),he=me[0],tt=me[1],qe=c.useRef(null),Ae=Bt(function(Se){qe.current=Se,va(Se)&&he!==Se&&tt(Se),xe==null||xe.registerSubPopup(oe,Se)}),Ue=c.useState(null),Xe=U(Ue,2),Ze=Xe[0],Fe=Xe[1],Te=c.useRef(null),it=Bt(function(Se){va(Se)&&Ze!==Se&&(Fe(Se),Te.current=Se)}),Ye=c.Children.only(i),Le=(Ye==null?void 0:Ye.props)||{},ue={},Ee=Bt(function(Se){var je,St,Rt=Ze;return(Rt==null?void 0:Rt.contains(Se))||((je=xo(Rt))===null||je===void 0?void 0:je.host)===Se||Se===Rt||(he==null?void 0:he.contains(Se))||((St=xo(he))===null||St===void 0?void 0:St.host)===Se||Se===he||Object.values(ge.current).some(function(Ct){return(Ct==null?void 0:Ct.contains(Se))||Se===Ct})}),Ke=kc(o,Z,ae,te),rt=kc(o,J,de,fe),bt=c.useState(v||!1),ut=U(bt,2),Be=ut[0],Ve=ut[1],De=f??Be,Re=Bt(function(Se){f===void 0&&Ve(Se)});yt(function(){Ve(f||!1)},[f]);var be=c.useRef(De);be.current=De;var Ge=c.useRef([]);Ge.current=[];var pt=Bt(function(Se){var je;Re(Se),((je=Ge.current[Ge.current.length-1])!==null&&je!==void 0?je:De)!==Se&&(Ge.current.push(Se),b==null||b(Se))}),ke=c.useRef(),He=function(){clearTimeout(ke.current)},st=function(je){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;He(),St===0?pt(je):ke.current=setTimeout(function(){pt(je)},St*1e3)};c.useEffect(function(){return He},[]);var ht=c.useState(!1),Ot=U(ht,2),Dt=Ot[0],kt=Ot[1];yt(function(Se){(!Se||De)&&kt(!0)},[De]);var _=c.useState(null),G=U(_,2),X=G[0],ie=G[1],Pe=c.useState([0,0]),$e=U(Pe,2),_e=$e[0],Ie=$e[1],vt=function(je){Ie([je.clientX,je.clientY])},et=Zy(De,he,K?_e:Ze,M,T,O,q),ze=U(et,11),Et=ze[0],Ht=ze[1],zt=ze[2],gt=ze[3],yr=ze[4],Dr=ze[5],Wt=ze[6],zr=ze[7],Gn=ze[8],tr=ze[9],sr=ze[10],Vr=Xy(pe,l,u,d),Rr=U(Vr,2),Sr=Rr[0],Pr=Rr[1],Qr=Sr.has("click"),_r=Pr.has("click")||Pr.has("contextMenu"),lr=Bt(function(){Dt||sr()}),Un=function(){be.current&&K&&_r&&st(!1)};Jy(De,Ze,he,lr,Un),yt(function(){lr()},[_e,M]),yt(function(){De&&!(T!=null&&T[M])&&lr()},[JSON.stringify(O)]);var Kn=c.useMemo(function(){var Se=Qy(T,o,tr,K);return Q(Se,V==null?void 0:V(tr))},[tr,V,T,o,K]);c.useImperativeHandle(n,function(){return{nativeElement:Te.current,popupElement:qe.current,forceAlign:lr}});var qn=c.useState(0),un=U(qn,2),mt=un[0],nt=un[1],dt=c.useState(0),Nt=U(dt,2),Mt=Nt[0],Cr=Nt[1],Er=function(){if(D&&Ze){var je=Ze.getBoundingClientRect();nt(je.width),Cr(je.height)}},Xn=function(){Er(),lr()},Gt=function(je){kt(!1),sr(),h==null||h(je)},Zr=function(){return new Promise(function(je){Er(),ie(function(){return je})})};yt(function(){X&&(sr(),X(),ie(null))},[X]);function Ut(Se,je,St,Rt){ue[Se]=function(Ct){var za;Rt==null||Rt(Ct),st(je,St);for(var ri=arguments.length,$l=new Array(ri>1?ri-1:0),Va=1;Va<ri;Va++)$l[Va-1]=arguments[Va];(za=Le[Se])===null||za===void 0||za.call.apply(za,[Le,Ct].concat($l))}}(Qr||_r)&&(ue.onClick=function(Se){var je;be.current&&_r?st(!1):!be.current&&Qr&&(vt(Se),st(!0));for(var St=arguments.length,Rt=new Array(St>1?St-1:0),Ct=1;Ct<St;Ct++)Rt[Ct-1]=arguments[Ct];(je=Le.onClick)===null||je===void 0||je.call.apply(je,[Le,Se].concat(Rt))}),eS(De,_r,Ze,he,E,x,Ee,st);var cr=Sr.has("hover"),Br=Pr.has("hover"),dn,Yn;cr&&(Ut("onMouseEnter",!0,p,function(Se){vt(Se)}),Ut("onPointerEnter",!0,p,function(Se){vt(Se)}),dn=function(je){(De||Dt)&&he!==null&&he!==void 0&&he.contains(je.target)&&st(!0,p)},K&&(ue.onMouseMove=function(Se){var je;(je=Le.onMouseMove)===null||je===void 0||je.call(Le,Se)})),Br&&(Ut("onMouseLeave",!1,S),Ut("onPointerLeave",!1,S),Yn=function(){st(!1,S)}),Sr.has("focus")&&Ut("onFocus",!0,m),Pr.has("focus")&&Ut("onBlur",!1,y),Sr.has("contextMenu")&&(ue.onContextMenu=function(Se){var je;be.current&&Pr.has("contextMenu")?st(!1):(vt(Se),st(!0)),Se.preventDefault();for(var St=arguments.length,Rt=new Array(St>1?St-1:0),Ct=1;Ct<St;Ct++)Rt[Ct-1]=arguments[Ct];(je=Le.onContextMenu)===null||je===void 0||je.call.apply(je,[Le,Se].concat(Rt))}),ve&&(ue.className=Q(Le.className,ve));var Qn=z(z({},Le),ue),Da={},Zo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Zo.forEach(function(Se){B[Se]&&(Da[Se]=function(){for(var je,St=arguments.length,Rt=new Array(St),Ct=0;Ct<St;Ct++)Rt[Ct]=arguments[Ct];(je=Qn[Se])===null||je===void 0||je.call.apply(je,[Qn].concat(Rt)),B[Se].apply(B,Rt)})});var Jo=c.cloneElement(Ye,z(z({},Qn),Da)),ei={x:Dr,y:Wt},ti=Y?z({},Y!==!0?Y:{}):null;return c.createElement(c.Fragment,null,c.createElement(vr,{disabled:!De,ref:it,onResize:Xn},c.createElement(_f,{getTriggerDOMNode:we},Jo)),c.createElement(Vc.Provider,{value:Me},c.createElement(Pf,{portal:e,ref:Ae,prefixCls:o,popup:F,className:Q(j,Kn),style:A,target:Ze,onMouseEnter:dn,onMouseLeave:Yn,onPointerEnter:dn,zIndex:I,open:De,keepDom:Dt,fresh:k,onClick:W,mask:E,motion:Ke,maskMotion:rt,onVisibleChanged:Gt,onPrepare:Zr,forceRender:w,autoDestroy:ce,getPopupContainer:R,align:tr,arrow:ti,arrowPos:ei,ready:Et,offsetX:Ht,offsetY:zt,offsetR:gt,offsetB:yr,onAlign:lr,stretch:D,targetWidth:mt/zr,targetHeight:Mt/Gn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gl=rS(fl);function Ms(e,t,r){return Q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Tf=(e,t)=>t||e,Nf=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:o,[e]:i}=P.useContext(ot),s=P.useContext(Hb),l=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(a=(n=s??l)!==null&&n!==void 0?n:o)!==null&&a!==void 0?a:"outlined";const d=ip.includes(u);return[u,d]};var nS={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"},aS=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:nS}))},If=c.forwardRef(aS);process.env.NODE_ENV!=="production"&&(If.displayName="CheckOutlined");const Ra=["xxl","xl","lg","md","sm","xs"],oS=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)`}),iS=e=>{const t=e,r=[].concat(Ra).reverse();return r.forEach((n,a)=>{const o=n.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[a+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};function sS(){const[,e]=Lr(),t=oS(iS(e));return P.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,r.forEach(i=>i(a)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(a),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Mf(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return c.createElement("div",{className:Q("".concat(r,"-content"),o),style:i},c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var hn={shiftX:64,adjustY:1},bn={adjustX:1,shiftY:!0},nr=[0,0],lS={left:{points:["cr","cl"],overflow:bn,offset:[-4,0],targetOffset:nr},right:{points:["cl","cr"],overflow:bn,offset:[4,0],targetOffset:nr},top:{points:["bc","tc"],overflow:hn,offset:[0,-4],targetOffset:nr},bottom:{points:["tc","bc"],overflow:hn,offset:[0,4],targetOffset:nr},topLeft:{points:["bl","tl"],overflow:hn,offset:[0,-4],targetOffset:nr},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0],targetOffset:nr},topRight:{points:["br","tr"],overflow:hn,offset:[0,-4],targetOffset:nr},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0],targetOffset:nr},bottomRight:{points:["tr","br"],overflow:hn,offset:[0,4],targetOffset:nr},rightBottom:{points:["bl","br"],overflow:bn,offset:[4,0],targetOffset:nr},bottomLeft:{points:["tl","bl"],overflow:hn,offset:[0,4],targetOffset:nr},leftBottom:{points:["br","bl"],overflow:bn,offset:[-4,0],targetOffset:nr}},cS=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],uS=function(t,r){var n=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,b=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,S=t.animation,m=t.motion,y=t.placement,E=y===void 0?"right":y,C=t.align,x=C===void 0?{}:C,R=t.destroyTooltipOnHide,w=R===void 0?!1:R,$=t.defaultVisible,N=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,A=t.id,M=t.showArrow,H=M===void 0?!0:M,T=Je(t,cS),O=P.useRef(null);P.useImperativeHandle(r,function(){return O.current});var I=z({},T);"visible"in t&&(I.popupVisible=t.visible);var D=function(){return c.createElement(Mf,{key:"content",prefixCls:v,id:A,overlayInnerStyle:F},j)};return c.createElement(gl,Oe({popupClassName:n,prefixCls:v,popup:D,action:o,builtinPlacements:lS,popupPlacement:E,ref:O,popupAlign:x,getPopupContainer:N,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:S,popupMotion:m,defaultPopupVisible:$,autoDestroy:w,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:H},I),b)};const dS=P.forwardRef(uS);function fS(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,o=0,i=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-u,v=d,b=2*a-s,h=l,p=2*a-o,g=i,S=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),y=`polygon(${m}px 100%, 50% ${m}px, ${2*a-m}px 100%, ${m}px 100%)`,E=`path('M ${o} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${v} L ${b} ${h} A ${n} ${n} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:S,arrowPath:E,arrowPolygon:y}}const vS=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ee(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Af=8;function jf(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Af:n}}function Ja(e,t){return e?t:{}}function gS(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},vS(e,t,a)),{"&:before":{background:t}})]},Ja(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ee(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Ja(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Ja(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function mS(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Kc={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"]}},pS={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"]}},hS=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bS(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Kc).forEach(u=>{const d=n&&pS[u]||Kc[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,hS.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const v=jf({contentRadius:o,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal*2-s;break}f.overflow=mS(u,v,t,r),i&&(f.htmlRegion="visibleFirst")}),l}const yS=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:r,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":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ee(e.calc(u).div(2).equal())} ${ee(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Af)}},[`${t}-content`]:{position:"relative"}}),Fp(e,(f,v)=>{let{darkColor:b}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},gS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},SS=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},jf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),fS(Lt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ff=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return br("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=n,s=Lt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[yS(s),jy(n,"zoom-big-fast")]},SS,{resetStyle:!1,injectStyle:t})(e)},CS=Eo.map(e=>`${e}-inverse`);function ES(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ye(CS),ye(Eo)).includes(e):Eo.includes(e)}function Lf(e,t){const r=ES(t),n=Q({[`${e}-${t}`]:t&&r}),a={},o={};return t&&!r&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:o}}const xS=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=c.useContext(ot),l=s("tooltip",t),[u,d,f]=Ff(l),v=Lf(l,o),b=v.arrowStyle,h=Object.assign(Object.assign({},i),v.overlayStyle),p=Q(d,f,l,`${l}-pure`,`${l}-placement-${n}`,r,v.className);return u(c.createElement("div",{className:p,style:b},c.createElement("div",{className:`${l}-arrow`}),c.createElement(Mf,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:h}),a)))};var wS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $S=c.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:b,arrow:h=!0,title:p,overlay:g,builtinPlacements:S,arrowPointAtCenter:m=!1,autoAdjustOverflow:y=!0}=e,E=!!h,[,C]=Lr(),{getPopupContainer:x,getPrefixCls:R,direction:w}=c.useContext(ot),$=It("Tooltip"),N=c.useRef(null),F=()=>{var oe;(oe=N.current)===null||oe===void 0||oe.forceAlign()};c.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=N.current)===null||oe===void 0?void 0:oe.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(oe=>{let[re,me]=oe;$.deprecated(!(re in e),re,me)}),process.env.NODE_ENV!=="production"&&$(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&$(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,A]=or(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),M=!p&&!g&&p!==0,H=oe=>{var re,me;A(M?!1:oe),M||((re=e.onOpenChange)===null||re===void 0||re.call(e,oe),(me=e.onVisibleChange)===null||me===void 0||me.call(e,oe))},T=c.useMemo(()=>{var oe,re;let me=m;return typeof h=="object"&&(me=(re=(oe=h.pointAtCenter)!==null&&oe!==void 0?oe:h.arrowPointAtCenter)!==null&&re!==void 0?re:m),S||bS({arrowPointAtCenter:me,autoAdjustOverflow:y,arrowWidth:E?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[m,h,S,C]),O=c.useMemo(()=>p===0?p:g||p||"",[g,p]),I=c.createElement(Ns,{space:!0},typeof O=="function"?O():O),{getPopupContainer:D,placement:V="top",mouseEnterDelay:k=.1,mouseLeaveDelay:K=.1,overlayStyle:W,rootClassName:q}=e,Y=wS(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Z=R("tooltip",a),J=R(),te=e["data-popover-inject"];let ae=j;!("open"in e)&&!("visible"in e)&&M&&(ae=!1);const fe=c.isValidElement(d)&&!Yd(d)?d:c.createElement("span",null,d),de=fe.props,ve=!de.className||typeof de.className=="string"?Q(de.className,o||`${Z}-open`):de.className,[we,B,ce]=Ff(Z,!te),se=Lf(Z,l),Ce=se.arrowStyle,pe=Object.assign(Object.assign({},u),se.overlayStyle),ne=Q(s,{[`${Z}-rtl`]:w==="rtl"},se.className,q,B,ce),[ge,xe]=Lh("Tooltip",Y.zIndex),Me=c.createElement(dS,Object.assign({},Y,{zIndex:ge,showArrow:E,placement:V,mouseEnterDelay:k,mouseLeaveDelay:K,prefixCls:Z,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},Ce),W),getTooltipContainer:D||i||x,ref:N,builtinPlacements:T,overlay:I,visible:ae,onVisibleChange:H,afterVisibleChange:f??v,overlayInnerStyle:pe,arrowContent:c.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:Zd(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ae?zo(fe,{className:ve}):fe);return we(c.createElement(ll.Provider,{value:xe},Me))}),ja=$S;process.env.NODE_ENV!=="production"&&(ja.displayName="Tooltip");ja._InternalPanelDoNotUseOrYouWillBeFired=xS;var OS=le.ESC,RS=le.TAB;function PS(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=c.useRef(!1),s=function(){if(t){var f,v;(f=r.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),n==null||n(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case OS:s();break;case RS:{var v=!1;i.current||(v=l()),v?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&_t(l,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var _S=P.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,a=e.prefixCls,o=P.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),i=Or(t,o==null?void 0:o.ref);return P.createElement(P.Fragment,null,n&&P.createElement("div",{className:"".concat(a,"-arrow")}),P.cloneElement(o,{ref:on(o)?i:void 0}))}),yn={adjustX:1,adjustY:1},Sn=[0,0],TS={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-4],targetOffset:Sn},top:{points:["bc","tc"],overflow:yn,offset:[0,-4],targetOffset:Sn},topRight:{points:["br","tr"],overflow:yn,offset:[0,-4],targetOffset:Sn},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,4],targetOffset:Sn},bottom:{points:["tc","bc"],overflow:yn,offset:[0,4],targetOffset:Sn},bottomRight:{points:["tr","br"],overflow:yn,offset:[0,4],targetOffset:Sn}},NS=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function IS(e,t){var r,n=e.arrow,a=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,b=v===void 0?TS:v,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,S=e.overlayClassName,m=e.overlayStyle,y=e.visible,E=e.trigger,C=E===void 0?["hover"]:E,x=e.autoFocus,R=e.overlay,w=e.children,$=e.onVisibleChange,N=Je(e,NS),F=P.useState(),j=U(F,2),A=j[0],M=j[1],H="visible"in e?y:A,T=P.useRef(null),O=P.useRef(null),I=P.useRef(null);P.useImperativeHandle(t,function(){return T.current});var D=function(te){M(te),$==null||$(te)};PS({visible:H,triggerRef:I,onVisibleChange:D,autoFocus:x,overlayRef:O});var V=function(te){var ae=e.onOverlayClick;M(!1),ae&&ae(te)},k=function(){return P.createElement(_S,{ref:O,overlay:R,prefixCls:i,arrow:a})},K=function(){return typeof R=="function"?k:k()},W=function(){var te=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?te:!ae},q=function(){var te=e.openClassName;return te!==void 0?te:"".concat(i,"-open")},Y=P.cloneElement(w,{className:Q((r=w.props)===null||r===void 0?void 0:r.className,H&&q()),ref:on(w)?Or(I,w.ref):void 0}),Z=g;return!Z&&C.indexOf("contextMenu")!==-1&&(Z=["click"]),P.createElement(gl,Oe({builtinPlacements:b},N,{prefixCls:i,ref:T,popupClassName:Q(S,L({},"".concat(i,"-show-arrow"),a)),popupStyle:m,action:C,showAction:p,hideAction:Z,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:H,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:D,onPopupClick:V,getPopupContainer:h}),Y)}const MS=P.forwardRef(IS);var Df=c.createContext(null);function zf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Vf(e){var t=c.useContext(Df);return zf(t,e)}var AS=["children","locked"],pr=c.createContext(null);function jS(e,t){var r=z({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function Pa(e){var t=e.children,r=e.locked,n=Je(e,AS),a=c.useContext(pr),o=No(function(){return jS(a,n)},[a,n],function(i,s){return!r&&(i[0]!==s[0]||!ba(i[1],s[1],!0))});return c.createElement(pr.Provider,{value:o},t)}var FS=[],Bf=c.createContext(null);function Go(){return c.useContext(Bf)}var kf=c.createContext(FS);function Fa(e){var t=c.useContext(kf);return c.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var Hf=c.createContext(null),ml=c.createContext({});function qc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cl(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:n&&i===null&&(i=0),n&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function LS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ye(e.querySelectorAll("*")).filter(function(n){return qc(n,t)});return qc(e,t)&&r.unshift(e),r}var As=le.LEFT,js=le.RIGHT,Fs=le.UP,vo=le.DOWN,go=le.ENTER,Wf=le.ESC,ta=le.HOME,ra=le.END,Xc=[Fs,vo,As,js];function DS(e,t,r,n){var a,o,i,s,l="prev",u="next",d="children",f="parent";if(e==="inline"&&n===go)return{inlineTrigger:!0};var v=(a={},L(a,Fs,l),L(a,vo,u),a),b=(o={},L(o,As,r?u:l),L(o,js,r?l:u),L(o,vo,d),L(o,go,d),o),h=(i={},L(i,Fs,l),L(i,vo,u),L(i,go,d),L(i,Wf,f),L(i,As,r?d:f),L(i,js,r?f:d),i),p={inline:v,horizontal:b,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},g=(s=p["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){case l:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function zS(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function VS(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function pl(e,t){var r=LS(e,!0);return r.filter(function(n){return t.has(n)})}function Yc(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=pl(e,t),o=a.length,i=a.findIndex(function(s){return r===s});return n<0?i===-1?i=o-1:i-=1:n>0&&(i+=1),i=(i+o)%o,a[i]}var Ls=function(t,r){var n=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(zf(r,i),"']"));s&&(n.add(s),o.set(s,i),a.set(i,s))}),{elements:n,key2element:a,element2key:o}};function BS(e,t,r,n,a,o,i,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var v=function(){_t.cancel(d.current)};return c.useEffect(function(){return function(){v()}},[]),function(b){var h=b.which;if([].concat(Xc,[go,Wf,ta,ra]).includes(h)){var p=o(),g=Ls(p,n),S=g,m=S.elements,y=S.key2element,E=S.element2key,C=y.get(t),x=VS(C,m),R=E.get(x),w=DS(e,i(R,!0).length===1,r,h);if(!w&&h!==ta&&h!==ra)return;(Xc.includes(h)||[ta,ra].includes(h))&&b.preventDefault();var $=function(O){if(O){var I=O,D=O.querySelector("a");D!=null&&D.getAttribute("href")&&(I=D);var V=E.get(O);s(V),v(),d.current=_t(function(){f.current===V&&I.focus()})}};if([ta,ra].includes(h)||w.sibling||!x){var N;!x||e==="inline"?N=a.current:N=zS(x);var F,j=pl(N,m);h===ta?F=j[0]:h===ra?F=j[j.length-1]:F=Yc(N,m,x,w.offset),$(F)}else if(w.inlineTrigger)l(R);else if(w.offset>0)l(R,!0),v(),d.current=_t(function(){g=Ls(p,n);var T=x.getAttribute("aria-controls"),O=document.getElementById(T),I=Yc(O,g.elements);$(I)},5);else if(w.offset<0){var A=i(R,!0),M=A[A.length-2],H=y.get(M);l(M,!1),$(H)}}u==null||u(b)}}function kS(e){Promise.resolve().then(e)}var hl="__RC_UTIL_PATH_SPLIT__",Qc=function(t){return t.join(hl)},HS=function(t){return t.split(hl)},Ds="rc-menu-more";function WS(){var e=c.useState({}),t=U(e,2),r=t[1],n=P.useRef(new Map),a=P.useRef(new Map),o=c.useState([]),i=U(o,2),s=i[0],l=i[1],u=P.useRef(0),d=P.useRef(!1),f=function(){d.current||r({})},v=P.useCallback(function(y,E){process.env.NODE_ENV!=="production"&&at(!n.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(E.join(" > "),"]"));var C=Qc(E);a.current.set(C,y),n.current.set(y,C),u.current+=1;var x=u.current;kS(function(){x===u.current&&f()})},[]),b=P.useCallback(function(y,E){var C=Qc(E);a.current.delete(C),n.current.delete(y)},[]),h=P.useCallback(function(y){l(y)},[]),p=P.useCallback(function(y,E){var C=n.current.get(y)||"",x=HS(C);return E&&s.includes(x[0])&&x.unshift(Ds),x},[s]),g=P.useCallback(function(y,E){return y.filter(function(C){return C!==void 0}).some(function(C){var x=p(C,!0);return x.includes(E)})},[p]),S=function(){var E=ye(n.current.keys());return s.length&&E.push(Ds),E},m=P.useCallback(function(y){var E="".concat(n.current.get(y)).concat(hl),C=new Set;return ye(a.current.keys()).forEach(function(x){x.startsWith(E)&&C.add(a.current.get(x))}),C},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:S,getSubPathKeys:m}}function ia(e){var t=c.useRef(e);t.current=e;var r=c.useCallback(function(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var GS=Math.random().toFixed(5).toString().slice(2),Zc=0;function US(e){var t=or(e,{value:e}),r=U(t,2),n=r[0],a=r[1];return c.useEffect(function(){Zc+=1;var o=process.env.NODE_ENV==="test"?"test":"".concat(GS,"-").concat(Zc);a("rc-menu-uuid-".concat(o))},[]),n}function Gf(e,t,r,n){var a=c.useContext(pr),o=a.activeKey,i=a.onActive,s=a.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),i(e)},l.onMouseLeave=function(u){n==null||n({key:e,domEvent:u}),s(e)}),l}function Uf(e){var t=c.useContext(pr),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*a}:{paddingLeft:o*a}}function Kf(e){var t=e.icon,r=e.props,n=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=c.createElement(t,z({},r)):typeof t!="boolean"&&(a=t),a||n||null)}var KS=["item"];function Po(e){var t=e.item,r=Je(e,KS);return Object.defineProperty(r,"item",{get:function(){return at(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var qS=["title","attribute","elementRef"],XS=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],YS=["active"],QS=function(e){qr(r,e);var t=Xr(r);function r(){return jt(this,r),t.apply(this,arguments)}return Ft(r,[{key:"render",value:function(){var a=this.props,o=a.title,i=a.attribute,s=a.elementRef,l=Je(a,qS),u=hr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return at(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(jr.Item,Oe({},i,{title:typeof o=="string"?o:void 0},u,{ref:s}))}}]),r}(c.Component),ZS=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.eventKey,i=e.warnKey,s=e.disabled,l=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,b=e.onClick,h=e.onKeyDown,p=e.onFocus,g=Je(e,XS),S=Vf(o),m=c.useContext(pr),y=m.prefixCls,E=m.onItemClick,C=m.disabled,x=m.overflowDisabled,R=m.itemIcon,w=m.selectedKeys,$=m.onActive,N=c.useContext(ml),F=N._internalRenderMenuItem,j="".concat(y,"-item"),A=c.useRef(),M=c.useRef(),H=C||s,T=_a(t,M),O=Fa(o);process.env.NODE_ENV!=="production"&&i&&at(!1,"MenuItem should not leave undefined `key`.");var I=function(de){return{key:o,keyPath:ye(O).reverse(),item:A.current,domEvent:de}},D=l||R,V=Gf(o,H,f,v),k=V.active,K=Je(V,YS),W=w.includes(o),q=Uf(O.length),Y=function(de){if(!H){var ve=I(de);b==null||b(Po(ve)),E(ve)}},Z=function(de){if(h==null||h(de),de.which===le.ENTER){var ve=I(de);b==null||b(Po(ve)),E(ve)}},J=function(de){$(o),p==null||p(de)},te={};e.role==="option"&&(te["aria-selected"]=W);var ae=c.createElement(QS,Oe({ref:A,elementRef:T,role:d===null?"none":d||"menuitem",tabIndex:s?null:-1,"data-menu-id":x&&S?null:S},g,K,te,{component:"li","aria-disabled":s,style:z(z({},q),n),className:Q(j,(r={},L(r,"".concat(j,"-active"),k),L(r,"".concat(j,"-selected"),W),L(r,"".concat(j,"-disabled"),H),r),a),onClick:Y,onKeyDown:Z,onFocus:J}),u,c.createElement(Kf,{props:z(z({},e),{},{isSelected:W}),icon:D}));return F&&(ae=F(ae,e,{selected:W})),ae});function JS(e,t){var r=e.eventKey,n=Go(),a=Fa(r);return c.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:c.createElement(ZS,Oe({},e,{ref:t}))}const Uo=c.forwardRef(JS);var eC=["className","children"],tC=function(t,r){var n=t.className,a=t.children,o=Je(t,eC),i=c.useContext(pr),s=i.prefixCls,l=i.mode,u=i.rtl;return c.createElement("ul",Oe({className:Q(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),a)},bl=c.forwardRef(tC);bl.displayName="SubMenuList";function yl(e,t){return $r(e).map(function(r,n){if(c.isValidElement(r)){var a,o,i=r.key,s=(a=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:i,l=s==null;l&&(s="tmp_key-".concat([].concat(ye(t),[n]).join("-")));var u={key:s,eventKey:s};return process.env.NODE_ENV!=="production"&&l&&(u.warnKey=!0),c.cloneElement(r,u)}return r})}var Vt={adjustX:1,adjustY:1},rC={topLeft:{points:["bl","tl"],overflow:Vt},topRight:{points:["br","tr"],overflow:Vt},bottomLeft:{points:["tl","bl"],overflow:Vt},bottomRight:{points:["tr","br"],overflow:Vt},leftTop:{points:["tr","tl"],overflow:Vt},leftBottom:{points:["br","bl"],overflow:Vt},rightTop:{points:["tl","tr"],overflow:Vt},rightBottom:{points:["bl","br"],overflow:Vt}},nC={topLeft:{points:["bl","tl"],overflow:Vt},topRight:{points:["br","tr"],overflow:Vt},bottomLeft:{points:["tl","bl"],overflow:Vt},bottomRight:{points:["tr","br"],overflow:Vt},rightTop:{points:["tr","tl"],overflow:Vt},rightBottom:{points:["br","bl"],overflow:Vt},leftTop:{points:["tl","tr"],overflow:Vt},leftBottom:{points:["bl","br"],overflow:Vt}};function qf(e,t,r){if(t)return t;if(r)return r[e]||r.other}var aC={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function oC(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,o=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(pr),v=f.getPopupContainer,b=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,S=f.triggerSubMenuAction,m=f.forceSubMenuRender,y=f.rootClassName,E=f.motion,C=f.defaultMotions,x=c.useState(!1),R=U(x,2),w=R[0],$=R[1],N=z(b?z({},nC):z({},rC),g),F=aC[u],j=qf(u,E,C),A=c.useRef(j);u!=="inline"&&(A.current=j);var M=z(z({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=c.useRef();return c.useEffect(function(){return H.current=_t(function(){$(r)}),function(){_t.cancel(H.current)}},[r]),c.createElement(gl,{prefixCls:t,popupClassName:Q("".concat(t,"-popup"),L({},"".concat(t,"-rtl"),b),i,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:N,popupPlacement:F,popupVisible:w,popup:a,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[S],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:m,popupMotion:M,fresh:!0},n)}function iC(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,o="inline",i=c.useContext(pr),s=i.prefixCls,l=i.forceSubMenuRender,u=i.motion,d=i.defaultMotions,f=i.mode,v=c.useRef(!1);v.current=f===o;var b=c.useState(!v.current),h=U(b,2),p=h[0],g=h[1],S=v.current?r:!1;c.useEffect(function(){v.current&&g(!1)},[f]);var m=z({},qf(o,u,d));n.length>1&&(m.motionAppear=!1);var y=m.onVisibleChanged;return m.onVisibleChanged=function(E){return!v.current&&!E&&g(!0),y==null?void 0:y(E)},p?null:c.createElement(Pa,{mode:o,locked:!v.current},c.createElement(sn,Oe({visible:S},m,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var C=E.className,x=E.style;return c.createElement(bl,{id:t,className:C,style:x},a)}))}var sC=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],lC=["active"],cC=c.forwardRef(function(e,t){var r,n=e.style,a=e.className,o=e.title,i=e.eventKey,s=e.warnKey,l=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,b=e.popupClassName,h=e.popupOffset,p=e.popupStyle,g=e.onClick,S=e.onMouseEnter,m=e.onMouseLeave,y=e.onTitleClick,E=e.onTitleMouseEnter,C=e.onTitleMouseLeave,x=Je(e,sC),R=Vf(i),w=c.useContext(pr),$=w.prefixCls,N=w.mode,F=w.openKeys,j=w.disabled,A=w.overflowDisabled,M=w.activeKey,H=w.selectedKeys,T=w.itemIcon,O=w.expandIcon,I=w.onItemClick,D=w.onOpenChange,V=w.onActive,k=c.useContext(ml),K=k._internalRenderSubMenuItem,W=c.useContext(Hf),q=W.isSubPathKey,Y=Fa(),Z="".concat($,"-submenu"),J=j||l,te=c.useRef(),ae=c.useRef();process.env.NODE_ENV!=="production"&&s&&at(!1,"SubMenu should not leave undefined `key`.");var fe=f??T,de=v??O,ve=F.includes(i),we=!A&&ve,B=q(H,i),ce=Gf(i,J,E,C),se=ce.active,Ce=Je(ce,lC),pe=c.useState(!1),ne=U(pe,2),ge=ne[0],xe=ne[1],Me=function(Le){J||xe(Le)},oe=function(Le){Me(!0),S==null||S({key:i,domEvent:Le})},re=function(Le){Me(!1),m==null||m({key:i,domEvent:Le})},me=c.useMemo(function(){return se||(N!=="inline"?ge||q([M],i):!1)},[N,se,M,ge,i,q]),he=Uf(Y.length),tt=function(Le){J||(y==null||y({key:i,domEvent:Le}),N==="inline"&&D(i,!ve))},qe=ia(function(Ye){g==null||g(Po(Ye)),I(Ye)}),Ae=function(Le){N!=="inline"&&D(i,Le)},Ue=function(){V(i)},Xe=R&&"".concat(R,"-popup"),Ze=c.createElement("div",Oe({role:"menuitem",style:he,className:"".concat(Z,"-title"),tabIndex:J?null:-1,ref:te,title:typeof o=="string"?o:null,"data-menu-id":A&&R?null:R,"aria-expanded":we,"aria-haspopup":!0,"aria-controls":Xe,"aria-disabled":J,onClick:tt,onFocus:Ue},Ce),o,c.createElement(Kf,{icon:N!=="horizontal"?de:void 0,props:z(z({},e),{},{isOpen:we,isSubMenu:!0})},c.createElement("i",{className:"".concat(Z,"-arrow")}))),Fe=c.useRef(N);if(N!=="inline"&&Y.length>1?Fe.current="vertical":Fe.current=N,!A){var Te=Fe.current;Ze=c.createElement(oC,{mode:Te,prefixCls:Z,visible:!u&&we&&N!=="inline",popupClassName:b,popupOffset:h,popupStyle:p,popup:c.createElement(Pa,{mode:Te==="horizontal"?"vertical":Te},c.createElement(bl,{id:Xe,ref:ae},d)),disabled:J,onVisibleChange:Ae},Ze)}var it=c.createElement(jr.Item,Oe({ref:t,role:"none"},x,{component:"li",style:n,className:Q(Z,"".concat(Z,"-").concat(N),a,(r={},L(r,"".concat(Z,"-open"),we),L(r,"".concat(Z,"-active"),me),L(r,"".concat(Z,"-selected"),B),L(r,"".concat(Z,"-disabled"),J),r)),onMouseEnter:oe,onMouseLeave:re}),Ze,!A&&c.createElement(iC,{id:Xe,open:we,keyPath:Y},d));return K&&(it=K(it,e,{selected:B,active:me,open:we,disabled:J})),c.createElement(Pa,{onItemClick:qe,mode:N==="horizontal"?"vertical":N,itemIcon:fe,expandIcon:de},it)}),Ko=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=yl(n,a),i=Go();c.useEffect(function(){if(i)return i.registerPath(r,a),function(){i.unregisterPath(r,a)}},[a]);var s;return i?s=o:s=c.createElement(cC,Oe({ref:t},e),o),c.createElement(kf.Provider,{value:a},s)});process.env.NODE_ENV!=="production"&&(Ko.displayName="SubMenu");function Xf(e){var t=e.className,r=e.style,n=c.useContext(pr),a=n.prefixCls,o=Go();return o?null:c.createElement("li",{role:"separator",className:Q("".concat(a,"-item-divider"),t),style:r})}var uC=["className","title","eventKey","children"],dC=c.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,o=Je(e,uC),i=c.useContext(pr),s=i.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",Oe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:Q(l,r)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),Sl=c.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=Fa(r),o=yl(n,a),i=Go();return i?o:c.createElement(dC,Oe({ref:t},hr(e,["warnKey"])),o)});process.env.NODE_ENV!=="production"&&(Sl.displayName="MenuItemGroup");var fC=["label","children","key","type"];function zs(e,t){var r=t.item,n=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&Ne(i)==="object"){var l=i,u=l.label,d=l.children,f=l.key,v=l.type,b=Je(l,fC),h=f??"tmp-".concat(s);return d||v==="group"?v==="group"?c.createElement(n,Oe({key:h},b,{title:u}),zs(d,t)):c.createElement(a,Oe({key:h},b,{title:u}),zs(d,t)):v==="divider"?c.createElement(o,Oe({key:h},b)):c.createElement(r,Oe({key:h},b),u)}return null}).filter(function(i){return i})}function Jc(e,t,r,n){var a=e,o=z({divider:Xf,item:Uo,group:Sl,submenu:Ko},n);return t&&(a=zs(t,o)),yl(a,r)}var vC=["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"],Jr=[],gC=c.forwardRef(function(e,t){var r,n,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,l=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,v=a.items,b=a.children,h=a.direction,p=a.id,g=a.mode,S=g===void 0?"vertical":g,m=a.inlineCollapsed,y=a.disabled,E=a.disabledOverflow,C=a.subMenuOpenDelay,x=C===void 0?.1:C,R=a.subMenuCloseDelay,w=R===void 0?.1:R,$=a.forceSubMenuRender,N=a.defaultOpenKeys,F=a.openKeys,j=a.activeKey,A=a.defaultActiveFirst,M=a.selectable,H=M===void 0?!0:M,T=a.multiple,O=T===void 0?!1:T,I=a.defaultSelectedKeys,D=a.selectedKeys,V=a.onSelect,k=a.onDeselect,K=a.inlineIndent,W=K===void 0?24:K,q=a.motion,Y=a.defaultMotions,Z=a.triggerSubMenuAction,J=Z===void 0?"hover":Z,te=a.builtinPlacements,ae=a.itemIcon,fe=a.expandIcon,de=a.overflowedIndicator,ve=de===void 0?"...":de,we=a.overflowedIndicatorPopupClassName,B=a.getPopupContainer,ce=a.onClick,se=a.onOpenChange,Ce=a.onKeyDown,pe=a.openAnimation,ne=a.openTransitionName,ge=a._internalRenderMenuItem,xe=a._internalRenderSubMenuItem,Me=a._internalComponents,oe=Je(a,vC),re=c.useMemo(function(){return[Jc(b,v,Jr,Me),Jc(b,v,Jr,{})]},[b,v,Me]),me=U(re,2),he=me[0],tt=me[1],qe=c.useState(!1),Ae=U(qe,2),Ue=Ae[0],Xe=Ae[1],Ze=c.useRef(),Fe=US(p),Te=h==="rtl";process.env.NODE_ENV!=="production"&&at(!pe&&!ne,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var it=or(N,{value:F,postState:function(nt){return nt||Jr}}),Ye=U(it,2),Le=Ye[0],ue=Ye[1],Ee=function(nt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Nt(){ue(nt),se==null||se(nt)}dt?_n.flushSync(Nt):Nt()},Ke=c.useState(Le),rt=U(Ke,2),bt=rt[0],ut=rt[1],Be=c.useRef(!1),Ve=c.useMemo(function(){return(S==="inline"||S==="vertical")&&m?["vertical",m]:[S,!1]},[S,m]),De=U(Ve,2),Re=De[0],be=De[1],Ge=Re==="inline",pt=c.useState(Re),ke=U(pt,2),He=ke[0],st=ke[1],ht=c.useState(be),Ot=U(ht,2),Dt=Ot[0],kt=Ot[1];c.useEffect(function(){st(Re),kt(be),Be.current&&(Ge?ue(bt):Ee(Jr))},[Re,be]);var _=c.useState(0),G=U(_,2),X=G[0],ie=G[1],Pe=X>=he.length-1||He!=="horizontal"||E;c.useEffect(function(){Ge&&ut(Le)},[Le]),c.useEffect(function(){return Be.current=!0,function(){Be.current=!1}},[]);var $e=WS(),_e=$e.registerPath,Ie=$e.unregisterPath,vt=$e.refreshOverflowKeys,et=$e.isSubPathKey,ze=$e.getKeyPath,Et=$e.getKeys,Ht=$e.getSubPathKeys,zt=c.useMemo(function(){return{registerPath:_e,unregisterPath:Ie}},[_e,Ie]),gt=c.useMemo(function(){return{isSubPathKey:et}},[et]);c.useEffect(function(){vt(Pe?Jr:he.slice(X+1).map(function(mt){return mt.key}))},[X,Pe]);var yr=or(j||A&&((r=he[0])===null||r===void 0?void 0:r.key),{value:j}),Dr=U(yr,2),Wt=Dr[0],zr=Dr[1],Gn=ia(function(mt){zr(mt)}),tr=ia(function(){zr(void 0)});P.useImperativeHandle(t,function(){return{list:Ze.current,focus:function(nt){var dt,Nt=Et(),Mt=Ls(Nt,Fe),Cr=Mt.elements,Er=Mt.key2element,Xn=Mt.element2key,Gt=pl(Ze.current,Cr),Zr=Wt??(Gt[0]?Xn.get(Gt[0]):(dt=he.find(function(Br){return!Br.props.disabled}))===null||dt===void 0?void 0:dt.key),Ut=Er.get(Zr);if(Zr&&Ut){var cr;Ut==null||(cr=Ut.focus)===null||cr===void 0||cr.call(Ut,nt)}}}});var sr=or(I||[],{value:D,postState:function(nt){return Array.isArray(nt)?nt:nt==null?Jr:[nt]}}),Vr=U(sr,2),Rr=Vr[0],Sr=Vr[1],Pr=function(nt){if(H){var dt=nt.key,Nt=Rr.includes(dt),Mt;O?Nt?Mt=Rr.filter(function(Er){return Er!==dt}):Mt=[].concat(ye(Rr),[dt]):Mt=[dt],Sr(Mt);var Cr=z(z({},nt),{},{selectedKeys:Mt});Nt?k==null||k(Cr):V==null||V(Cr)}!O&&Le.length&&He!=="inline"&&Ee(Jr)},Qr=ia(function(mt){ce==null||ce(Po(mt)),Pr(mt)}),_r=ia(function(mt,nt){var dt=Le.filter(function(Mt){return Mt!==mt});if(nt)dt.push(mt);else if(He!=="inline"){var Nt=Ht(mt);dt=dt.filter(function(Mt){return!Nt.has(Mt)})}ba(Le,dt,!0)||Ee(dt,!0)}),lr=function(nt,dt){var Nt=dt??!Le.includes(nt);_r(nt,Nt)},Un=BS(He,Wt,Te,Fe,Ze,Et,ze,zr,lr,Ce);c.useEffect(function(){Xe(!0)},[]);var Kn=c.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:xe}},[ge,xe]),qn=He!=="horizontal"||E?he:he.map(function(mt,nt){return c.createElement(Pa,{key:mt.key,overflowDisabled:nt>X},mt)}),un=c.createElement(jr,Oe({id:p,ref:Ze,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Uo,className:Q(i,"".concat(i,"-root"),"".concat(i,"-").concat(He),u,(n={},L(n,"".concat(i,"-inline-collapsed"),Dt),L(n,"".concat(i,"-rtl"),Te),n),s),dir:h,style:l,role:"menu",tabIndex:f,data:qn,renderRawItem:function(nt){return nt},renderRawRest:function(nt){var dt=nt.length,Nt=dt?he.slice(-dt):null;return c.createElement(Ko,{eventKey:Ds,title:ve,disabled:Pe,internalPopupClose:dt===0,popupClassName:we},Nt)},maxCount:He!=="horizontal"||E?jr.INVALIDATE:jr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nt){ie(nt)},onKeyDown:Un},oe));return c.createElement(ml.Provider,{value:Kn},c.createElement(Df.Provider,{value:Fe},c.createElement(Pa,{prefixCls:i,rootClassName:s,mode:He,openKeys:Le,rtl:Te,disabled:y,motion:Ue?q:null,defaultMotions:Ue?Y:null,activeKey:Wt,onActive:Gn,onInactive:tr,selectedKeys:Rr,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:w,forceSubMenuRender:$,builtinPlacements:te,triggerSubMenuAction:J,getPopupContainer:B,itemIcon:ae,expandIcon:fe,onItemClick:Qr,onOpenChange:_r},c.createElement(Hf.Provider,{value:gt},un),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Bf.Provider,{value:zt},tt)))))}),La=gC;La.Item=Uo;La.SubMenu=Ko;La.ItemGroup=Sl;La.Divider=Xf;var mC={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"},pC=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:mC}))},Yf=c.forwardRef(pC);process.env.NODE_ENV!=="production"&&(Yf.displayName="EllipsisOutlined");function hC(e){return Lt(e,{inputAffixPadding:e.paddingXXS})}const bC=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:b,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:S,colorWarningOutline:m,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:v,activeBorderColor:h,hoverBorderColor:b,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${S}`,warningActiveShadow:`0 0 0 ${p}px ${m}`,hoverBg:y,activeBg:y,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},yC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Cl=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({},yC(Lt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Qf=(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}}),eu=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),SC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Cl(e))}),eu(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),eu(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),tu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),CC=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},tu(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),tu(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Cl(e))}})}),EC=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Zf=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),ru=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Zf(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),xC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zf(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Cl(e))}),ru(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ru(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),nu=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),wC=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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},nu(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),nu(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),$C=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Jf=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${ee(t)} ${ee(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},ev=e=>({padding:`${ee(e.paddingBlockSM)} ${ee(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),tv=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ee(e.paddingBlock)} ${ee(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},$C(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({},Jf(e)),"&-sm":Object.assign({},ev(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),OC=e=>{const{componentCls:t,antCls:r}=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({},Jf(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ev(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${ee(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ee(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${ee(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},Ta()),{[`${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},[`
|
|
176
147
|
& > ${t}-affix-wrapper,
|
|
177
148
|
& > ${t}-number-affix-wrapper,
|
|
178
149
|
& > ${r}-picker-range
|
|
@@ -185,23 +156,23 @@ html body {
|
|
|
185
156
|
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
186
157
|
& > ${r}-select:last-child > ${r}-select-selector,
|
|
187
158
|
& > ${r}-cascader-picker:last-child ${t},
|
|
188
|
-
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},
|
|
159
|
+
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},RC=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e)),tv(e)),SC(e)),xC(e)),EC(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},PC=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 ${ee(e.inputAffixPadding)}`}}}},_C=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},tv(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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),PC(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}})}},TC=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Vn(e)),OC(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},CC(e)),wC(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}}})})}},NC=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-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,
|
|
189
160
|
> ${t},
|
|
190
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},
|
|
161
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},IC=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{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"}},[`
|
|
191
162
|
&-allow-clear > ${t},
|
|
192
163
|
&-affix-wrapper${n}-has-feedback ${t}
|
|
193
|
-
`]:{paddingInlineEnd:r},[`&-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},[`${n}-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}}}}}},jC=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},rv=br("Input",e=>{const t=Lt(e,yC(e));return[_C(t),AC(t),NC(t),IC(t),MC(t),jC(t),df(t)]},SC,{resetFont:!1});var FC={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"},LC=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:FC}))},nv=c.forwardRef(LC);process.env.NODE_ENV!=="production"&&(nv.displayName="PlusOutlined");const qo=P.createContext(null);var DC=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=P.useState(),f=U(d,2),v=f[0],b=f[1],h=P.useRef(),p=P.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function g(){_t.cancel(h.current)}return P.useEffect(function(){var S={};if(r)if(n){S.width=p(r.width);var m=a?"right":"left";u==="start"&&(S[m]=r[m]),u==="center"&&(S[m]=r[m]+r.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[m]=r[m]+r.width,S.transform="translateX(-100%)")}else S.height=p(r.height),u==="start"&&(S.top=r.top),u==="center"&&(S.top=r.top+r.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=r.top+r.height,S.transform="translateY(-100%)");return g(),h.current=_t(function(){b(S)}),g},[r,n,a,u,p]),{style:v}},iu={width:0,height:0,left:0,top:0};function zC(e,t,r){return P.useMemo(function(){for(var n,a=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||iu,i=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,u=t.get(l);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||iu}var f=a.get(l)||z({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function su(e,t){var r=c.useRef(e),n=c.useState({}),a=U(n,2),o=a[1];function i(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({})}return[r.current,i]}var VC=.1,lu=.01,mo=20,cu=Math.pow(.995,mo);function BC(e,t){var r=P.useState(),n=U(r,2),a=n[0],o=n[1],i=P.useState(0),s=U(i,2),l=s[0],u=s[1],d=P.useState(0),f=U(d,2),v=f[0],b=f[1],h=P.useState(),p=U(h,2),g=p[0],S=p[1],m=P.useRef();function y($){var N=$.touches[0],F=N.screenX,j=N.screenY;o({x:F,y:j}),window.clearInterval(m.current)}function E($){if(a){$.preventDefault();var N=$.touches[0],F=N.screenX,j=N.screenY;o({x:F,y:j});var A=F-a.x,M=j-a.y;t(A,M);var H=Date.now();u(H),b(H-l),S({x:A,y:M})}}function C(){if(a&&(o(null),S(null),g)){var $=g.x/v,N=g.y/v,F=Math.abs($),j=Math.abs(N);if(Math.max(F,j)<VC)return;var A=$,M=N;m.current=window.setInterval(function(){if(Math.abs(A)<lu&&Math.abs(M)<lu){window.clearInterval(m.current);return}A*=cu,M*=cu,t(A*mo,M*mo)},mo)}}var x=P.useRef();function R($){var N=$.deltaX,F=$.deltaY,j=0,A=Math.abs(N),M=Math.abs(F);A===M?j=x.current==="x"?N:F:A>M?(j=N,x.current="x"):(j=F,x.current="y"),t(-j,-j)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:E,onTouchEnd:C,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function N(A){w.current.onTouchMove(A)}function F(A){w.current.onTouchEnd(A)}function j(A){w.current.onWheel(A)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",F,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",F)}},[])}function av(e){var t=P.useState(0),r=U(t,2),n=r[0],a=r[1],o=P.useRef(0),i=P.useRef();return i.current=e,Ui(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[n]),function(){o.current===n&&(o.current+=1,a(o.current))}}function kC(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=av(function(){var l=o.current;t.current.forEach(function(u){l=u(l)}),t.current=[],o.current=l,a({})});function s(l){t.current.push(l),i()}return[o.current,s]}var uu={width:0,height:0,left:0,top:0,right:0};function HC(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),P.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var g=e.get(s[p].key)||uu;if(g[f]+g[d]>v+t){h=p-1;break}}for(var S=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||uu;if(y[f]<v){S=m+1;break}}return S>=h?[0,0]:[S,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function du(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var WC="TABS_DQ";function ov(e){return String(e).replace(/"/g,WC)}function iv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var sv=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,o=e.style;return!n||n.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),Bs=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ne(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Bs.displayName="ExtraContent");var GC=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,g=e.getPopupContainer,S=e.popupClassName,m=P.useState(!1),y=U(m,2),E=y[0],C=y[1],x=P.useState(null),R=U(x,2),w=R[0],$=R[1],N=l.icon,F=N===void 0?"More":N,j="".concat(n,"-more-popup"),A="".concat(r,"-dropdown"),M=w!==null?"".concat(j,"-").concat(w):null,H=o==null?void 0:o.dropdownAriaLabel;function T(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(La,{onClick:function(q){var Y=q.key,Z=q.domEvent;p(Y,Z),C(!1)},prefixCls:"".concat(A,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[w],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,Z=W.closeIcon,J=W.key,te=W.label,ae=iv(q,Z,f,Y);return c.createElement(Uo,{key:J,id:"".concat(j,"-").concat(J),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(J),disabled:Y},c.createElement("span",null,te),ae&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),T(de,J)}},Z||f.removeIcon||"×"))}));function I(W){for(var q=a.filter(function(ae){return!ae.disabled}),Y=q.findIndex(function(ae){return ae.key===w})||0,Z=q.length,J=0;J<Z;J+=1){Y=(Y+W+Z)%Z;var te=q[Y];if(!te.disabled){$(te.key);return}}}function D(W){var q=W.which;if(!E){[le.DOWN,le.SPACE,le.ENTER].includes(q)&&(C(!0),W.preventDefault());return}switch(q){case le.UP:I(-1),W.preventDefault();break;case le.DOWN:I(1),W.preventDefault();break;case le.ESC:C(!1);break;case le.SPACE:case le.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(M);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){E||$(null)},[E]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var k=Q(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(jS,Oe({prefixCls:A,overlay:O,visible:a.length?E:!1,onVisibleChange:C,overlayClassName:Q(k,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(n,"-more"),"aria-expanded":E,onKeyDown:D},F));return c.createElement("div",{className:Q("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(sv,{prefixCls:r,locale:o,editable:f}))});const UC=c.memo(GC,function(e,t){return t.tabMoving});var KC=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,u=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,p=t.onClick,g=t.onFocus,S=t.style,m="".concat(r,"-tab"),y=iv(f,u,h,l);function E(w){l||p(w)}function C(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var x=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),R=c.createElement("div",{key:i,"data-node-key":ov(i),className:Q(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:S,onClick:E},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),E($)},onKeyDown:function($){[le.SPACE,le.ENTER].includes($.which)&&($.preventDefault(),E($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&x),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),C($)}},u||h.removeIcon||"×"));return v?v(R):R},qC=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,u,d-r.x,f-r.y]:[n,a,i,o]},Cn=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-a)<1)return[l,u]}return[a,i]},eo=function(t,r){return t[r?0:1]},fu=c.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,p=e.onTabScroll,g=e.indicator,S=c.useContext(qo),m=S.prefixCls,y=S.tabs,E=P.useRef(null),C=P.useRef(null),x=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),N=P.useRef(null),F=f==="top"||f==="bottom",j=su(0,function(G,X){F&&p&&p({direction:G>X?"left":"right"})}),A=U(j,2),M=A[0],H=A[1],T=su(0,function(G,X){!F&&p&&p({direction:G>X?"top":"bottom"})}),O=U(T,2),I=O[0],D=O[1],V=P.useState([0,0]),k=U(V,2),K=k[0],W=k[1],q=P.useState([0,0]),Y=U(q,2),Z=Y[0],J=Y[1],te=P.useState([0,0]),ae=U(te,2),fe=ae[0],de=ae[1],ve=P.useState([0,0]),we=U(ve,2),B=we[0],ce=we[1],se=kC(new Map),Ce=U(se,2),pe=Ce[0],ne=Ce[1],ge=zC(y,pe,Z[0]),xe=eo(K,F),Me=eo(Z,F),oe=eo(fe,F),re=eo(B,F),me=xe<Me+oe,he=me?xe-re:xe-oe,tt="".concat(m,"-nav-operations-hidden"),qe=0,Ae=0;F&&s?(qe=0,Ae=Math.max(0,Me-he)):(qe=Math.min(0,he-Me),Ae=0);function Ue(G){return G<qe?qe:G>Ae?Ae:G}var Xe=P.useRef(null),Ze=P.useState(),Fe=U(Ze,2),Te=Fe[0],it=Fe[1];function Ye(){it(Date.now())}function Le(){Xe.current&&clearTimeout(Xe.current)}BC(R,function(G,X){function ie(Pe,$e){Pe(function(_e){var Ie=Ue(_e+$e);return Ie})}return me?(F?ie(H,G):ie(D,X),Le(),Ye(),!0):!1}),P.useEffect(function(){return Le(),Te&&(Xe.current=setTimeout(function(){it(0)},100)),Le},[Te]);var ue=HC(ge,he,F?M:I,Me,oe,re,z(z({},e),{},{tabs:y})),Ee=U(ue,2),Ke=Ee[0],rt=Ee[1],bt=Bt(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=ge.get(G)||{width:0,height:0,left:0,right:0,top:0};if(F){var ie=M;s?X.right<M?ie=X.right:X.right+X.width>M+he&&(ie=X.right+X.width-he):X.left<-M?ie=-X.left:X.left+X.width>-M+he&&(ie=-(X.left+X.width-he)),D(0),H(Ue(ie))}else{var Pe=I;X.top<-I?Pe=-X.top:X.top+X.height>-I+he&&(Pe=-(X.top+X.height-he)),H(0),D(Ue(Pe))}}),ut={};f==="top"||f==="bottom"?ut[s?"marginRight":"marginLeft"]=v:ut.marginTop=v;var Be=y.map(function(G,X){var ie=G.key;return c.createElement(KC,{id:a,prefixCls:m,key:ie,tab:G,style:X===0?void 0:ut,closable:G.closable,editable:u,active:ie===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function($e){h(ie,$e)},onFocus:function(){bt(ie),Ye(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Ve=function(){return ne(function(){var X,ie=new Map,Pe=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function($e){var _e,Ie=$e.key,vt=(_e=w.current)===null||_e===void 0?void 0:_e.querySelector('[data-node-key="'.concat(ov(Ie),'"]'));if(vt){var et=qC(vt,Pe),ze=U(et,4),Et=ze[0],Ht=ze[1],zt=ze[2],gt=ze[3];ie.set(Ie,{width:Et,height:Ht,left:zt,top:gt})}}),ie})};P.useEffect(function(){Ve()},[y.map(function(G){return G.key}).join("_")]);var De=av(function(){var G=Cn(E),X=Cn(C),ie=Cn(x);W([G[0]-X[0]-ie[0],G[1]-X[1]-ie[1]]);var Pe=Cn(N);de(Pe);var $e=Cn($);ce($e);var _e=Cn(w);J([_e[0]-Pe[0],_e[1]-Pe[1]]),Ve()}),Re=y.slice(0,Ke),be=y.slice(rt+1),Ge=[].concat(ye(Re),ye(be)),pt=ge.get(i),ke=DC({activeTabOffset:pt,horizontal:F,indicator:g,rtl:s}),He=ke.style;P.useEffect(function(){bt()},[i,qe,Ae,du(pt),du(ge),F]),P.useEffect(function(){De()},[s]);var st=!!Ge.length,ht="".concat(m,"-nav-wrap"),Rt,Dt,kt,_;return F?s?(Dt=M>0,Rt=M!==Ae):(Rt=M<0,Dt=M!==qe):(kt=I<0,_=I!==qe),c.createElement(vr,{onResize:De},c.createElement("div",{ref:_a(t,E),role:"tablist",className:Q("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ye()}},c.createElement(Bs,{ref:C,position:"left",extra:l,prefixCls:m}),c.createElement(vr,{onResize:De},c.createElement("div",{className:Q(ht,L(L(L(L({},"".concat(ht,"-ping-left"),Rt),"".concat(ht,"-ping-right"),Dt),"".concat(ht,"-ping-top"),kt),"".concat(ht,"-ping-bottom"),_)),ref:R},c.createElement(vr,{onResize:De},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(I,"px)"),transition:Te?"none":void 0}},Be,c.createElement(sv,{ref:N,prefixCls:m,locale:d,editable:u,style:z(z({},Be.length===0?void 0:ut),{},{visibility:st?"hidden":null})}),c.createElement("div",{className:Q("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:He}))))),c.createElement(UC,Oe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ge,className:!st&&tt,tabMoving:!!Te})),c.createElement(Bs,{ref:x,position:"right",extra:l,prefixCls:m})))}),El=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Q(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(El.displayName="TabPane");var XC=["renderTabBar"],YC=["label","key"],lv=function(t){var r=t.renderTabBar,n=Je(t,XC),a=c.useContext(qo),o=a.tabs;if(r){var i=z(z({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,YC);return c.createElement(El,Oe({tab:l,key:u,tabKey:u},d))})});return r(i,fu)}return c.createElement(fu,n)};process.env.NODE_ENV!=="production"&&(lv.displayName="TabNavListWrapper");var QC=["key","forceRender","style","className","destroyInactiveTabPane"],ZC=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(qo),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Q("".concat(l,"-content-holder"))},c.createElement("div",{className:Q("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,h=v.forceRender,p=v.style,g=v.className,S=v.destroyInactiveTabPane,m=Je(v,QC),y=b===n;return c.createElement(sn,Oe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(E,C){var x=E.style,R=E.className;return c.createElement(El,Oe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:z(z({},p),x),className:Q(g,R),ref:C}))})})))};function JC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=z({inkBar:!0},Ne(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&at(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var eE=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],vu=0,cv=c.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,S=e.locale,m=e.more,y=e.destroyInactiveTabPane,E=e.renderTabBar,C=e.onChange,x=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,N=e.indicator,F=Je(e,eE),j=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ne(B)==="object"&&"key"in B})},[i]),A=s==="rtl",M=JC(f),H=P.useState(!1),T=U(H,2),O=T[0],I=T[1];P.useEffect(function(){I(xf())},[]);var D=or(function(){var B;return(B=j[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),V=U(D,2),k=V[0],K=V[1],W=P.useState(function(){return j.findIndex(function(B){return B.key===k})}),q=U(W,2),Y=q[0],Z=q[1];P.useEffect(function(){var B=j.findIndex(function(se){return se.key===k});if(B===-1){var ce;B=Math.max(0,Math.min(Y,j.length-1)),K((ce=j[B])===null||ce===void 0?void 0:ce.key)}Z(B)},[j.map(function(B){return B.key}).join("_"),k,Y]);var J=or(null,{value:r}),te=U(J,2),ae=te[0],fe=te[1];P.useEffect(function(){r||(fe("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":vu)),vu+=1)},[]);function de(B,ce){x==null||x(B,ce);var se=B!==k;K(B),se&&(C==null||C(B))}var ve={id:ae,activeKey:k,animated:M,tabPosition:b,rtl:A,mobile:O},we=z(z({},ve),{},{editable:d,locale:S,more:m,tabBarGutter:h,onTabClick:de,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:N});return c.createElement(qo.Provider,{value:{tabs:j,prefixCls:a}},c.createElement("div",Oe({ref:t,id:r,className:Q(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},F),c.createElement(lv,Oe({},we,{renderTabBar:E})),c.createElement(ZC,Oe({destroyInactiveTabPane:y},ve,{animated:M}))))});process.env.NODE_ENV!=="production"&&(cv.displayName="Tabs");const tE={motionAppear:!1,motionEnter:!0,motionLeave:!0};function rE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},tE),{motionName:Zd(e,"switch")})),r}var nE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function aE(e){return e.filter(t=>t)}function oE(e,t){if(process.env.NODE_ENV!=="production"&&It("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=$r(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=nE(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return aE(r)}const iE=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[zc(e,"slide-up"),zc(e,"slide-down")]]},sE=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${ee(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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:ee(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ee(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadiusLG)} 0 0 ${ee(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 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},lE=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Vn(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:`${ee(n)} 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({},nl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ee(e.paddingXXS)} ${ee(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},cE=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
164
|
+
`]:{paddingInlineEnd:r},[`&-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},[`${n}-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}}}}}},MC=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},rv=br("Input",e=>{const t=Lt(e,hC(e));return[RC(t),IC(t),_C(t),TC(t),NC(t),MC(t),df(t)]},bC,{resetFont:!1});var AC={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"},jC=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:AC}))},nv=c.forwardRef(jC);process.env.NODE_ENV!=="production"&&(nv.displayName="PlusOutlined");const qo=P.createContext(null);var FC=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,l=i.align,u=l===void 0?"center":l,d=P.useState(),f=U(d,2),v=f[0],b=f[1],h=P.useRef(),p=P.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function g(){_t.cancel(h.current)}return P.useEffect(function(){var S={};if(r)if(n){S.width=p(r.width);var m=a?"right":"left";u==="start"&&(S[m]=r[m]),u==="center"&&(S[m]=r[m]+r.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[m]=r[m]+r.width,S.transform="translateX(-100%)")}else S.height=p(r.height),u==="start"&&(S.top=r.top),u==="center"&&(S.top=r.top+r.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=r.top+r.height,S.transform="translateY(-100%)");return g(),h.current=_t(function(){b(S)}),g},[r,n,a,u,p]),{style:v}},au={width:0,height:0,left:0,top:0};function LC(e,t,r){return P.useMemo(function(){for(var n,a=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||au,i=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,u=t.get(l);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||au}var f=a.get(l)||z({},u);f.right=i-f.left-f.width,a.set(l,f)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function ou(e,t){var r=c.useRef(e),n=c.useState({}),a=U(n,2),o=a[1];function i(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({})}return[r.current,i]}var DC=.1,iu=.01,mo=20,su=Math.pow(.995,mo);function zC(e,t){var r=P.useState(),n=U(r,2),a=n[0],o=n[1],i=P.useState(0),s=U(i,2),l=s[0],u=s[1],d=P.useState(0),f=U(d,2),v=f[0],b=f[1],h=P.useState(),p=U(h,2),g=p[0],S=p[1],m=P.useRef();function y($){var N=$.touches[0],F=N.screenX,j=N.screenY;o({x:F,y:j}),window.clearInterval(m.current)}function E($){if(a){$.preventDefault();var N=$.touches[0],F=N.screenX,j=N.screenY;o({x:F,y:j});var A=F-a.x,M=j-a.y;t(A,M);var H=Date.now();u(H),b(H-l),S({x:A,y:M})}}function C(){if(a&&(o(null),S(null),g)){var $=g.x/v,N=g.y/v,F=Math.abs($),j=Math.abs(N);if(Math.max(F,j)<DC)return;var A=$,M=N;m.current=window.setInterval(function(){if(Math.abs(A)<iu&&Math.abs(M)<iu){window.clearInterval(m.current);return}A*=su,M*=su,t(A*mo,M*mo)},mo)}}var x=P.useRef();function R($){var N=$.deltaX,F=$.deltaY,j=0,A=Math.abs(N),M=Math.abs(F);A===M?j=x.current==="x"?N:F:A>M?(j=N,x.current="x"):(j=F,x.current="y"),t(-j,-j)&&$.preventDefault()}var w=P.useRef(null);w.current={onTouchStart:y,onTouchMove:E,onTouchEnd:C,onWheel:R},c.useEffect(function(){function $(A){w.current.onTouchStart(A)}function N(A){w.current.onTouchMove(A)}function F(A){w.current.onTouchEnd(A)}function j(A){w.current.onWheel(A)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",F,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",j,{passive:!1}),function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",F)}},[])}function av(e){var t=P.useState(0),r=U(t,2),n=r[0],a=r[1],o=P.useRef(0),i=P.useRef();return i.current=e,Gi(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[n]),function(){o.current===n&&(o.current+=1,a(o.current))}}function VC(e){var t=P.useRef([]),r=P.useState({}),n=U(r,2),a=n[1],o=P.useRef(typeof e=="function"?e():e),i=av(function(){var l=o.current;t.current.forEach(function(u){l=u(l)}),t.current=[],o.current=l,a({})});function s(l){t.current.push(l),i()}return[o.current,s]}var lu={width:0,height:0,left:0,top:0,right:0};function BC(e,t,r,n,a,o,i){var s=i.tabs,l=i.tabPosition,u=i.rtl,d,f,v;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",v=Math.abs(r)):(d="height",f="top",v=-r),P.useMemo(function(){if(!s.length)return[0,0];for(var b=s.length,h=b,p=0;p<b;p+=1){var g=e.get(s[p].key)||lu;if(g[f]+g[d]>v+t){h=p-1;break}}for(var S=0,m=b-1;m>=0;m-=1){var y=e.get(s[m].key)||lu;if(y[f]<v){S=m+1;break}}return S>=h?[0,0]:[S,h]},[e,t,n,a,o,v,l,s.map(function(b){return b.key}).join("_"),u])}function cu(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var kC="TABS_DQ";function ov(e){return String(e).replace(/"/g,kC)}function iv(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var sv=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,o=e.style;return!n||n.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),Vs=c.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return Ne(a)==="object"&&!c.isValidElement(a)?i=a:i.right=a,r==="right"&&(o=i.right),r==="left"&&(o=i.left),o?c.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});process.env.NODE_ENV!=="production"&&(Vs.displayName="ExtraContent");var HC=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,g=e.getPopupContainer,S=e.popupClassName,m=P.useState(!1),y=U(m,2),E=y[0],C=y[1],x=P.useState(null),R=U(x,2),w=R[0],$=R[1],N=l.icon,F=N===void 0?"More":N,j="".concat(n,"-more-popup"),A="".concat(r,"-dropdown"),M=w!==null?"".concat(j,"-").concat(w):null,H=o==null?void 0:o.dropdownAriaLabel;function T(W,q){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:q,event:W})}var O=c.createElement(La,{onClick:function(q){var Y=q.key,Z=q.domEvent;p(Y,Z),C(!1)},prefixCls:"".concat(A,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[w],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(W){var q=W.closable,Y=W.disabled,Z=W.closeIcon,J=W.key,te=W.label,ae=iv(q,Z,f,Y);return c.createElement(Uo,{key:J,id:"".concat(j,"-").concat(J),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(J),disabled:Y},c.createElement("span",null,te),ae&&c.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),T(de,J)}},Z||f.removeIcon||"×"))}));function I(W){for(var q=a.filter(function(ae){return!ae.disabled}),Y=q.findIndex(function(ae){return ae.key===w})||0,Z=q.length,J=0;J<Z;J+=1){Y=(Y+W+Z)%Z;var te=q[Y];if(!te.disabled){$(te.key);return}}}function D(W){var q=W.which;if(!E){[le.DOWN,le.SPACE,le.ENTER].includes(q)&&(C(!0),W.preventDefault());return}switch(q){case le.UP:I(-1),W.preventDefault();break;case le.DOWN:I(1),W.preventDefault();break;case le.ESC:C(!1);break;case le.SPACE:case le.ENTER:w!==null&&p(w,W);break}}P.useEffect(function(){var W=document.getElementById(M);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[w]),P.useEffect(function(){E||$(null)},[E]);var V=L({},b?"marginRight":"marginLeft",v);a.length||(V.visibility="hidden",V.order=1);var k=Q(L({},"".concat(A,"-rtl"),b)),K=i?null:c.createElement(MS,Oe({prefixCls:A,overlay:O,visible:a.length?E:!1,onVisibleChange:C,overlayClassName:Q(k,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),c.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:V,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(n,"-more"),"aria-expanded":E,onKeyDown:D},F));return c.createElement("div",{className:Q("".concat(r,"-nav-operations"),d),style:u,ref:t},K,c.createElement(sv,{prefixCls:r,locale:o,editable:f}))});const WC=c.memo(HC,function(e,t){return t.tabMoving});var GC=function(t){var r=t.prefixCls,n=t.id,a=t.active,o=t.tab,i=o.key,s=o.label,l=o.disabled,u=o.closeIcon,d=o.icon,f=t.closable,v=t.renderWrapper,b=t.removeAriaLabel,h=t.editable,p=t.onClick,g=t.onFocus,S=t.style,m="".concat(r,"-tab"),y=iv(f,u,h,l);function E(w){l||p(w)}function C(w){w.preventDefault(),w.stopPropagation(),h.onEdit("remove",{key:i,event:w})}var x=c.useMemo(function(){return d&&typeof s=="string"?c.createElement("span",null,s):s},[s,d]),R=c.createElement("div",{key:i,"data-node-key":ov(i),className:Q(m,L(L(L({},"".concat(m,"-with-remove"),y),"".concat(m,"-active"),a),"".concat(m,"-disabled"),l)),style:S,onClick:E},c.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function($){$.stopPropagation(),E($)},onKeyDown:function($){[le.SPACE,le.ENTER].includes($.which)&&($.preventDefault(),E($))},onFocus:g},d&&c.createElement("span",{className:"".concat(m,"-icon")},d),s&&x),y&&c.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function($){$.stopPropagation(),C($)}},u||h.removeIcon||"×"));return v?v(R):R},UC=function(t,r){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.x,f=s.y;return Math.abs(l-n)<1?[l,u,d-r.x,f-r.y]:[n,a,i,o]},Cn=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,o=r.offsetHeight,i=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-a)<1)return[l,u]}return[a,i]},eo=function(t,r){return t[r?0:1]},uu=c.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.id,o=e.animated,i=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,v=e.tabBarGutter,b=e.children,h=e.onTabClick,p=e.onTabScroll,g=e.indicator,S=c.useContext(qo),m=S.prefixCls,y=S.tabs,E=P.useRef(null),C=P.useRef(null),x=P.useRef(null),R=P.useRef(null),w=P.useRef(null),$=P.useRef(null),N=P.useRef(null),F=f==="top"||f==="bottom",j=ou(0,function(G,X){F&&p&&p({direction:G>X?"left":"right"})}),A=U(j,2),M=A[0],H=A[1],T=ou(0,function(G,X){!F&&p&&p({direction:G>X?"top":"bottom"})}),O=U(T,2),I=O[0],D=O[1],V=P.useState([0,0]),k=U(V,2),K=k[0],W=k[1],q=P.useState([0,0]),Y=U(q,2),Z=Y[0],J=Y[1],te=P.useState([0,0]),ae=U(te,2),fe=ae[0],de=ae[1],ve=P.useState([0,0]),we=U(ve,2),B=we[0],ce=we[1],se=VC(new Map),Ce=U(se,2),pe=Ce[0],ne=Ce[1],ge=LC(y,pe,Z[0]),xe=eo(K,F),Me=eo(Z,F),oe=eo(fe,F),re=eo(B,F),me=xe<Me+oe,he=me?xe-re:xe-oe,tt="".concat(m,"-nav-operations-hidden"),qe=0,Ae=0;F&&s?(qe=0,Ae=Math.max(0,Me-he)):(qe=Math.min(0,he-Me),Ae=0);function Ue(G){return G<qe?qe:G>Ae?Ae:G}var Xe=P.useRef(null),Ze=P.useState(),Fe=U(Ze,2),Te=Fe[0],it=Fe[1];function Ye(){it(Date.now())}function Le(){Xe.current&&clearTimeout(Xe.current)}zC(R,function(G,X){function ie(Pe,$e){Pe(function(_e){var Ie=Ue(_e+$e);return Ie})}return me?(F?ie(H,G):ie(D,X),Le(),Ye(),!0):!1}),P.useEffect(function(){return Le(),Te&&(Xe.current=setTimeout(function(){it(0)},100)),Le},[Te]);var ue=BC(ge,he,F?M:I,Me,oe,re,z(z({},e),{},{tabs:y})),Ee=U(ue,2),Ke=Ee[0],rt=Ee[1],bt=Bt(function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,X=ge.get(G)||{width:0,height:0,left:0,right:0,top:0};if(F){var ie=M;s?X.right<M?ie=X.right:X.right+X.width>M+he&&(ie=X.right+X.width-he):X.left<-M?ie=-X.left:X.left+X.width>-M+he&&(ie=-(X.left+X.width-he)),D(0),H(Ue(ie))}else{var Pe=I;X.top<-I?Pe=-X.top:X.top+X.height>-I+he&&(Pe=-(X.top+X.height-he)),H(0),D(Ue(Pe))}}),ut={};f==="top"||f==="bottom"?ut[s?"marginRight":"marginLeft"]=v:ut.marginTop=v;var Be=y.map(function(G,X){var ie=G.key;return c.createElement(GC,{id:a,prefixCls:m,key:ie,tab:G,style:X===0?void 0:ut,closable:G.closable,editable:u,active:ie===i,renderWrapper:b,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function($e){h(ie,$e)},onFocus:function(){bt(ie),Ye(),R.current&&(s||(R.current.scrollLeft=0),R.current.scrollTop=0)}})}),Ve=function(){return ne(function(){var X,ie=new Map,Pe=(X=w.current)===null||X===void 0?void 0:X.getBoundingClientRect();return y.forEach(function($e){var _e,Ie=$e.key,vt=(_e=w.current)===null||_e===void 0?void 0:_e.querySelector('[data-node-key="'.concat(ov(Ie),'"]'));if(vt){var et=UC(vt,Pe),ze=U(et,4),Et=ze[0],Ht=ze[1],zt=ze[2],gt=ze[3];ie.set(Ie,{width:Et,height:Ht,left:zt,top:gt})}}),ie})};P.useEffect(function(){Ve()},[y.map(function(G){return G.key}).join("_")]);var De=av(function(){var G=Cn(E),X=Cn(C),ie=Cn(x);W([G[0]-X[0]-ie[0],G[1]-X[1]-ie[1]]);var Pe=Cn(N);de(Pe);var $e=Cn($);ce($e);var _e=Cn(w);J([_e[0]-Pe[0],_e[1]-Pe[1]]),Ve()}),Re=y.slice(0,Ke),be=y.slice(rt+1),Ge=[].concat(ye(Re),ye(be)),pt=ge.get(i),ke=FC({activeTabOffset:pt,horizontal:F,indicator:g,rtl:s}),He=ke.style;P.useEffect(function(){bt()},[i,qe,Ae,cu(pt),cu(ge),F]),P.useEffect(function(){De()},[s]);var st=!!Ge.length,ht="".concat(m,"-nav-wrap"),Ot,Dt,kt,_;return F?s?(Dt=M>0,Ot=M!==Ae):(Ot=M<0,Dt=M!==qe):(kt=I<0,_=I!==qe),c.createElement(vr,{onResize:De},c.createElement("div",{ref:_a(t,E),role:"tablist",className:Q("".concat(m,"-nav"),r),style:n,onKeyDown:function(){Ye()}},c.createElement(Vs,{ref:C,position:"left",extra:l,prefixCls:m}),c.createElement(vr,{onResize:De},c.createElement("div",{className:Q(ht,L(L(L(L({},"".concat(ht,"-ping-left"),Ot),"".concat(ht,"-ping-right"),Dt),"".concat(ht,"-ping-top"),kt),"".concat(ht,"-ping-bottom"),_)),ref:R},c.createElement(vr,{onResize:De},c.createElement("div",{ref:w,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(I,"px)"),transition:Te?"none":void 0}},Be,c.createElement(sv,{ref:N,prefixCls:m,locale:d,editable:u,style:z(z({},Be.length===0?void 0:ut),{},{visibility:st?"hidden":null})}),c.createElement("div",{className:Q("".concat(m,"-ink-bar"),L({},"".concat(m,"-ink-bar-animated"),o.inkBar)),style:He}))))),c.createElement(WC,Oe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:m,tabs:Ge,className:!st&&tt,tabMoving:!!Te})),c.createElement(Vs,{ref:x,position:"right",extra:l,prefixCls:m})))}),El=c.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:Q(r,i&&"".concat(r,"-active"),n),ref:t},l)});process.env.NODE_ENV!=="production"&&(El.displayName="TabPane");var KC=["renderTabBar"],qC=["label","key"],lv=function(t){var r=t.renderTabBar,n=Je(t,KC),a=c.useContext(qo),o=a.tabs;if(r){var i=z(z({},n),{},{panes:o.map(function(s){var l=s.label,u=s.key,d=Je(s,qC);return c.createElement(El,Oe({tab:l,key:u,tabKey:u},d))})});return r(i,uu)}return c.createElement(uu,n)};process.env.NODE_ENV!=="production"&&(lv.displayName="TabNavListWrapper");var XC=["key","forceRender","style","className","destroyInactiveTabPane"],YC=function(t){var r=t.id,n=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=c.useContext(qo),l=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Q("".concat(l,"-content-holder"))},c.createElement("div",{className:Q("".concat(l,"-content"),"".concat(l,"-content-").concat(o),L({},"".concat(l,"-content-animated"),d))},u.map(function(v){var b=v.key,h=v.forceRender,p=v.style,g=v.className,S=v.destroyInactiveTabPane,m=Je(v,XC),y=b===n;return c.createElement(sn,Oe({key:b,visible:y,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(E,C){var x=E.style,R=E.className;return c.createElement(El,Oe({},m,{prefixCls:f,id:r,tabKey:b,animated:d,active:y,style:z(z({},p),x),className:Q(g,R),ref:C}))})})))};function QC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=z({inkBar:!0},Ne(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&at(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var ZC=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],du=0,cv=c.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,o=e.className,i=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,b=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,S=e.locale,m=e.more,y=e.destroyInactiveTabPane,E=e.renderTabBar,C=e.onChange,x=e.onTabClick,R=e.onTabScroll,w=e.getPopupContainer,$=e.popupClassName,N=e.indicator,F=Je(e,ZC),j=c.useMemo(function(){return(i||[]).filter(function(B){return B&&Ne(B)==="object"&&"key"in B})},[i]),A=s==="rtl",M=QC(f),H=P.useState(!1),T=U(H,2),O=T[0],I=T[1];P.useEffect(function(){I(xf())},[]);var D=or(function(){var B;return(B=j[0])===null||B===void 0?void 0:B.key},{value:l,defaultValue:u}),V=U(D,2),k=V[0],K=V[1],W=P.useState(function(){return j.findIndex(function(B){return B.key===k})}),q=U(W,2),Y=q[0],Z=q[1];P.useEffect(function(){var B=j.findIndex(function(se){return se.key===k});if(B===-1){var ce;B=Math.max(0,Math.min(Y,j.length-1)),K((ce=j[B])===null||ce===void 0?void 0:ce.key)}Z(B)},[j.map(function(B){return B.key}).join("_"),k,Y]);var J=or(null,{value:r}),te=U(J,2),ae=te[0],fe=te[1];P.useEffect(function(){r||(fe("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":du)),du+=1)},[]);function de(B,ce){x==null||x(B,ce);var se=B!==k;K(B),se&&(C==null||C(B))}var ve={id:ae,activeKey:k,animated:M,tabPosition:b,rtl:A,mobile:O},we=z(z({},ve),{},{editable:d,locale:S,more:m,tabBarGutter:h,onTabClick:de,onTabScroll:R,extra:g,style:p,panes:null,getPopupContainer:w,popupClassName:$,indicator:N});return c.createElement(qo.Provider,{value:{tabs:j,prefixCls:a}},c.createElement("div",Oe({ref:t,id:r,className:Q(a,"".concat(a,"-").concat(b),L(L(L({},"".concat(a,"-mobile"),O),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},F),c.createElement(lv,Oe({},we,{renderTabBar:E})),c.createElement(YC,Oe({destroyInactiveTabPane:y},ve,{animated:M}))))});process.env.NODE_ENV!=="production"&&(cv.displayName="Tabs");const JC={motionAppear:!1,motionEnter:!0,motionLeave:!0};function eE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},JC),{motionName:Zd(e,"switch")})),r}var tE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function rE(e){return e.filter(t=>t)}function nE(e,t){if(process.env.NODE_ENV!=="production"&&It("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const r=$r(t).map(n=>{if(c.isValidElement(n)){const{key:a,props:o}=n,i=o||{},{tab:s}=i,l=tE(i,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return rE(r)}const aE=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Lc(e,"slide-up"),Lc(e,"slide-down")]]},oE=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${ee(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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:ee(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ee(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadiusLG)} 0 0 ${ee(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 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},iE=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Vn(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:`${ee(n)} 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({},nl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ee(e.paddingXXS)} ${ee(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},sE=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
194
165
|
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,
|
|
195
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,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:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:ee(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ee(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},uE=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadius)} ${ee(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ee(e.borderRadius)} ${ee(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ee(e.borderRadius)} ${ee(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadius)} 0 0 ${ee(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},dE=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},al(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},fE=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ee(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ee(e.marginXS)},marginLeft:{_skip_check_:!0,value:ee(o(e.marginXXS).mul(-1).equal())},[n]:{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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},vE=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(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:r,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:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${ee(e.paddingXS)}`,background:"transparent",border:`${ee(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},al(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),dE(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"}}}}}},gE=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},mE=br("Tabs",e=>{const t=Lt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ee(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ee(e.horizontalItemGutter)}`});return[uE(t),fE(t),cE(t),lE(t),sE(t),vE(t),iE(t)]},gE),uv=()=>null;process.env.NODE_ENV!=="production"&&(uv.displayName="DeprecatedTabPane");var pE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const xl=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:g,hideAdd:S,centered:m,addIcon:y,removeIcon:E,moreIcon:C,more:x,popupClassName:R,children:w,items:$,animated:N,style:F,indicatorSize:j,indicator:A}=e,M=pE(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=M,{direction:T,tabs:O,getPrefixCls:I,getPopupContainer:D}=c.useContext(ot),V=I("tabs",H),k=il(V),[K,W,q]=mE(V,k);let Y;v==="editable-card"&&(Y={onEdit:(ve,we)=>{let{key:B,event:ce}=we;g==null||g(ve==="add"?ce:B,ve)},removeIcon:(t=E??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(Xd,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(nv,null),showAdd:S!==!0});const Z=I();if(process.env.NODE_ENV!=="production"){const ve=It("Tabs");process.env.NODE_ENV!=="production"&&ve(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ve(!(j||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const J=Hn(p),te=oE($,w),ae=rE(V,N),fe=Object.assign(Object.assign({},O==null?void 0:O.style),F),de={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(n=O==null?void 0:O.indicator)===null||n===void 0?void 0:n.align,size:(s=(o=(a=A==null?void 0:A.size)!==null&&a!==void 0?a:j)!==null&&o!==void 0?o:(i=O==null?void 0:O.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:O==null?void 0:O.indicatorSize};return K(c.createElement(cv,Object.assign({direction:T,getPopupContainer:D},M,{items:te,className:Q({[`${V}-${J}`]:J,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:m},O==null?void 0:O.className,b,h,W,q,k),popupClassName:Q(R,W,q,k),style:fe,editable:Y,more:Object.assign({icon:(f=(d=(u=(l=O==null?void 0:O.more)===null||l===void 0?void 0:l.icon)!==null&&u!==void 0?u:O==null?void 0:O.moreIcon)!==null&&d!==void 0?d:C)!==null&&f!==void 0?f:c.createElement(Yf,null),transitionName:`${Z}-slide-up`},x),prefixCls:V,animated:ae,indicator:de})))};xl.TabPane=uv;process.env.NODE_ENV!=="production"&&(xl.displayName="Tabs");var hE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const dv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=hE(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(ot),i=o("card",t),s=Q(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},bE=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${ee(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},Ta()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},nl),{[`
|
|
166
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,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:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:ee(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ee(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:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},lE=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadius)} ${ee(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ee(e.borderRadius)} ${ee(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ee(e.borderRadius)} ${ee(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadius)} 0 0 ${ee(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},cE=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},al(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},uE=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ee(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ee(e.marginXS)},marginLeft:{_skip_check_:!0,value:ee(o(e.marginXXS).mul(-1).equal())},[n]:{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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},dE=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vn(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:r,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:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${ee(e.paddingXS)}`,background:"transparent",border:`${ee(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},al(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),cE(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"}}}}}},fE=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},vE=br("Tabs",e=>{const t=Lt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ee(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ee(e.horizontalItemGutter)}`});return[lE(t),uE(t),sE(t),iE(t),oE(t),dE(t),aE(t)]},fE),uv=()=>null;process.env.NODE_ENV!=="production"&&(uv.displayName="DeprecatedTabPane");var gE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const xl=e=>{var t,r,n,a,o,i,s,l,u,d,f;const{type:v,className:b,rootClassName:h,size:p,onEdit:g,hideAdd:S,centered:m,addIcon:y,removeIcon:E,moreIcon:C,more:x,popupClassName:R,children:w,items:$,animated:N,style:F,indicatorSize:j,indicator:A}=e,M=gE(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=M,{direction:T,tabs:O,getPrefixCls:I,getPopupContainer:D}=c.useContext(ot),V=I("tabs",H),k=il(V),[K,W,q]=vE(V,k);let Y;v==="editable-card"&&(Y={onEdit:(ve,we)=>{let{key:B,event:ce}=we;g==null||g(ve==="add"?ce:B,ve)},removeIcon:(t=E??(O==null?void 0:O.removeIcon))!==null&&t!==void 0?t:c.createElement(Xd,null),addIcon:(y??(O==null?void 0:O.addIcon))||c.createElement(nv,null),showAdd:S!==!0});const Z=I();if(process.env.NODE_ENV!=="production"){const ve=It("Tabs");process.env.NODE_ENV!=="production"&&ve(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&ve(!(j||O!=null&&O.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const J=Hn(p),te=nE($,w),ae=eE(V,N),fe=Object.assign(Object.assign({},O==null?void 0:O.style),F),de={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(n=O==null?void 0:O.indicator)===null||n===void 0?void 0:n.align,size:(s=(o=(a=A==null?void 0:A.size)!==null&&a!==void 0?a:j)!==null&&o!==void 0?o:(i=O==null?void 0:O.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:O==null?void 0:O.indicatorSize};return K(c.createElement(cv,Object.assign({direction:T,getPopupContainer:D},M,{items:te,className:Q({[`${V}-${J}`]:J,[`${V}-card`]:["card","editable-card"].includes(v),[`${V}-editable-card`]:v==="editable-card",[`${V}-centered`]:m},O==null?void 0:O.className,b,h,W,q,k),popupClassName:Q(R,W,q,k),style:fe,editable:Y,more:Object.assign({icon:(f=(d=(u=(l=O==null?void 0:O.more)===null||l===void 0?void 0:l.icon)!==null&&u!==void 0?u:O==null?void 0:O.moreIcon)!==null&&d!==void 0?d:C)!==null&&f!==void 0?f:c.createElement(Yf,null),transitionName:`${Z}-slide-up`},x),prefixCls:V,animated:ae,indicator:de})))};xl.TabPane=uv;process.env.NODE_ENV!=="production"&&(xl.displayName="Tabs");var mE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const dv=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=mE(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(ot),i=o("card",t),s=Q(`${i}-grid`,r,{[`${i}-grid-hoverable`]:n});return c.createElement("div",Object.assign({},a,{className:s}))},pE=e=>{const{antCls:t,componentCls:r,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${ee(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},Ta()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},nl),{[`
|
|
196
167
|
> ${r}-typography,
|
|
197
168
|
> ${r}-typography-edit-content
|
|
198
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},
|
|
169
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},hE=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
199
170
|
${ee(a)} 0 0 0 ${r},
|
|
200
171
|
0 ${ee(a)} 0 0 ${r},
|
|
201
172
|
${ee(a)} ${ee(a)} 0 0 ${r},
|
|
202
173
|
${ee(a)} 0 0 0 ${r} inset,
|
|
203
174
|
0 ${ee(a)} 0 0 ${r} inset;
|
|
204
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},SE=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Ta()),{"& > li":{margin:n,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), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ee(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:ee(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${o}`}}})},CE=e=>Object.assign(Object.assign({margin:`${ee(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ta()),{"&-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},nl),"&-description":{color:e.colorTextDescription}}),EE=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${ee(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ee(e.padding)} ${ee(r)}`}}},xE=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},wE=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Vn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:bE(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Ta()),[`${t}-grid`]:yE(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:SE(e),[`${t}-meta`]:CE(e)}),[`${t}-bordered`]:{border:`${ee(e.lineWidth)} ${e.lineType} ${a}`,[`${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:r}},[`${t}-contain-grid`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(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:n}}},[`${t}-type-inner`]:EE(e),[`${t}-loading`]:xE(e),[`${t}-rtl`]:{direction:"rtl"}}},$E=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${ee(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},OE=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),RE=br("Card",e=>{const t=Lt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[wE(t),$E(t)]},OE);var gu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const PE=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return c.createElement("ul",{className:t,style:n},r.map((a,o)=>{const i=`action-${o}`;return c.createElement("li",{style:{width:`${100/r.length}%`},key:i},c.createElement("span",null,a))}))},_E=c.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f=!0,size:v,type:b,cover:h,actions:p,tabList:g,children:S,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:E,hoverable:C,tabProps:x={},classNames:R,styles:w}=e,$=gu(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:N,direction:F,card:j}=c.useContext(ot);if(process.env.NODE_ENV!=="production"){const pe=It("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ne=>{let[ge,xe]=ne;pe.deprecated(!(ge in e),ge,xe)})}const A=pe=>{var ne;(ne=e.onTabChange)===null||ne===void 0||ne.call(e,pe)},M=pe=>{var ne;return Q((ne=j==null?void 0:j.classNames)===null||ne===void 0?void 0:ne[pe],R==null?void 0:R[pe])},H=pe=>{var ne;return Object.assign(Object.assign({},(ne=j==null?void 0:j.styles)===null||ne===void 0?void 0:ne[pe]),w==null?void 0:w[pe])},T=c.useMemo(()=>{let pe=!1;return c.Children.forEach(S,ne=>{(ne==null?void 0:ne.type)===dv&&(pe=!0)}),pe},[S]),O=N("card",r),[I,D,V]=RE(O),k=c.createElement(cn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),K=m!==void 0,W=Object.assign(Object.assign({},x),{[K?"activeKey":"defaultActiveKey"]:K?m:y,tabBarExtraContent:E});let q;const Y=Hn(v),Z=!Y||Y==="default"?"large":Y,J=g?c.createElement(xl,Object.assign({size:Z},W,{className:`${O}-head-tabs`,onChange:A,items:g.map(pe=>{var{tab:ne}=pe,ge=gu(pe,["tab"]);return Object.assign({label:ne},ge)})})):null;if(u||i||J){const pe=Q(`${O}-head`,M("header")),ne=Q(`${O}-head-title`,M("title")),ge=Q(`${O}-extra`,M("extra")),xe=Object.assign(Object.assign({},s),H("header"));q=c.createElement("div",{className:pe,style:xe},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ne,style:H("title")},u),i&&c.createElement("div",{className:ge,style:H("extra")},i)),J)}const te=Q(`${O}-cover`,M("cover")),ae=h?c.createElement("div",{className:te,style:H("cover")},h):null,fe=Q(`${O}-body`,M("body")),de=Object.assign(Object.assign({},l),H("body")),ve=c.createElement("div",{className:fe,style:de},d?k:S),we=Q(`${O}-actions`,M("actions")),B=p!=null&&p.length?c.createElement(PE,{actionClasses:we,actionStyle:H("actions"),actions:p}):null,ce=hr($,["onTabChange"]),se=Q(O,j==null?void 0:j.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:C,[`${O}-contain-grid`]:T,[`${O}-contain-tabs`]:g==null?void 0:g.length,[`${O}-${Y}`]:Y,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:F==="rtl"},n,a,D,V),Ce=Object.assign(Object.assign({},j==null?void 0:j.style),o);return I(c.createElement("div",Object.assign({ref:t},ce,{className:se,style:Ce}),q,ae,ve,B))});var TE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const NE=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=TE(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(ot),l=s("card",t),u=Q(`${l}-meta`,r),d=n?c.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?c.createElement("div",{className:`${l}-meta-title`},a):null,v=o?c.createElement("div",{className:`${l}-meta-description`},o):null,b=f||v?c.createElement("div",{className:`${l}-meta-detail`},f,v):null;return c.createElement("div",Object.assign({},i,{className:u}),d,b)},Xo=_E;Xo.Grid=dv;Xo.Meta=NE;process.env.NODE_ENV!=="production"&&(Xo.displayName="Card");const fv=P.createContext({}),IE=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"}}}},ME=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},AE=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},ks=(e,t)=>AE(e,t),jE=(e,t,r)=>({[`@media (min-width: ${ee(t)})`]:Object.assign({},ks(e,r))}),FE=()=>({}),LE=()=>({}),DE=br("Grid",IE,FE),zE=br("Grid",e=>{const t=Lt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[ME(t),ks(t,""),ks(t,"-xs"),Object.keys(r).map(n=>jE(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},LE);var VE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function mu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const BE=["xs","sm","md","lg","xl","xxl"],sa=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(ot),{gutter:a,wrap:o}=c.useContext(fv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,g=VE(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=r("col",i),[m,y,E]=zE(S),C={};let x={};BE.forEach($=>{let N={};const F=e[$];typeof F=="number"?N.span=F:typeof F=="object"&&(N=F||{}),delete g[$],x=Object.assign(Object.assign({},x),{[`${S}-${$}-${N.span}`]:N.span!==void 0,[`${S}-${$}-order-${N.order}`]:N.order||N.order===0,[`${S}-${$}-offset-${N.offset}`]:N.offset||N.offset===0,[`${S}-${$}-push-${N.push}`]:N.push||N.push===0,[`${S}-${$}-pull-${N.pull}`]:N.pull||N.pull===0,[`${S}-rtl`]:n==="rtl"}),N.flex&&(x[`${S}-${$}-flex`]=!0,C[`--${S}-${$}-flex`]=mu(N.flex))});const R=Q(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${l}`]:l,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},v,x,y,E),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=mu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),m(c.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),p),C),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(sa.displayName="Col");var kE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function pu(e,t){const[r,n]=c.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o<Ra.length;o++){const i=Ra[o];if(!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return c.useEffect(()=>{a()},[JSON.stringify(e),t]),r}const Hs=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=kE(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(ot),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,g]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=pu(a,p),m=pu(n,p),y=c.useRef(l),E=cS();c.useEffect(()=>{const O=E.subscribe(I=>{g(I);const D=y.current||0;(!Array.isArray(D)&&typeof D=="object"||Array.isArray(D)&&(typeof D[0]=="object"||typeof D[1]=="object"))&&h(I)});return()=>E.unsubscribe(O)},[]);const C=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((D,V)=>{if(typeof D=="object")for(let k=0;k<Ra.length;k++){const K=Ra[k];if(b[K]&&D[K]!==void 0){O[V]=D[K];break}}else O[V]=D}),O},x=f("row",r),[R,w,$]=DE(x),N=C(),F=Q(x,{[`${x}-no-wrap`]:u===!1,[`${x}-${m}`]:m,[`${x}-${S}`]:S,[`${x}-rtl`]:v==="rtl"},o,w,$),j={},A=N[0]!=null&&N[0]>0?N[0]/-2:void 0;A&&(j.marginLeft=A,j.marginRight=A);const[M,H]=N;j.rowGap=H;const T=c.useMemo(()=>({gutter:[M,H],wrap:u}),[M,H,u]);return R(c.createElement(fv.Provider,{value:T},c.createElement("div",Object.assign({},d,{className:F,style:Object.assign(Object.assign({},j),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Hs.displayName="Row");function HE(e){return!!(e.addonBefore||e.addonAfter)}function WE(e){return!!(e.prefix||e.suffix||e.allowClear)}function hu(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function _o(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=hu(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=hu(t,e,n),r(a);return}r(a)}}function GE(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var vv=P.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,b=e.disabled,h=e.readOnly,p=e.focused,g=e.triggerFocus,S=e.allowClear,m=e.value,y=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,N=e.onClear,F=o??a,j=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",M=($==null?void 0:$.wrapper)||"span",H=($==null?void 0:$.groupAddon)||"span",T=P.useRef(null),O=function(B){var ce;(ce=T.current)!==null&&ce!==void 0&&ce.contains(B.target)&&(g==null||g())},I=WE(e),D=P.cloneElement(F,{value:m,className:Q(F.props.className,!I&&(x==null?void 0:x.variant))||null}),V=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:V.current||T.current}}),I){var k=null;if(S){var K=!b&&!h&&m,W="".concat(i,"-clear-icon"),q=Ne(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";k=P.createElement("span",{onClick:function(B){y==null||y(B),N==null||N()},onMouseDown:function(B){return B.preventDefault()},className:Q(W,L(L({},"".concat(W,"-hidden"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Y="".concat(i,"-affix-wrapper"),Z=Q(Y,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),p),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),l&&S&&m),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),J=(l||S)&&P.createElement("span",{className:Q("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:w==null?void 0:w.suffix},k,l);D=P.createElement(j,Oe({className:Z,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:T}),s&&P.createElement("span",{className:Q("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:w==null?void 0:w.prefix},s),D,J)}if(HE(e)){var te="".concat(i,"-group"),ae="".concat(te,"-addon"),fe="".concat(te,"-wrapper"),de=Q("".concat(i,"-wrapper"),te,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),ve=Q(fe,L({},"".concat(fe,"-disabled"),b),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);D=P.createElement(A,{className:ve,ref:V},P.createElement(M,{className:de},u&&P.createElement(H,{className:ae},u),D,d&&P.createElement(H,{className:ae},d)))}return P.cloneElement(D,{className:Q((r=D.props)===null||r===void 0?void 0:r.className,f)||null,style:z(z({},(n=D.props)===null||n===void 0?void 0:n.style),v),hidden:E})}),UE=["show"];function gv(e,t){return c.useMemo(function(){var r={};t&&(r.show=Ne(t)==="object"&&t.formatter?t.formatter:!!t),r=z(z({},r),e);var n=r,a=n.show,o=Je(n,UE);return z(z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var KE=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],qE=P.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,v=e.htmlSize,b=e.className,h=e.maxLength,p=e.suffix,g=e.showCount,S=e.count,m=e.type,y=m===void 0?"text":m,E=e.classes,C=e.classNames,x=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=Je(e,KE),N=P.useState(!1),F=U(N,2),j=F[0],A=F[1],M=P.useRef(!1),H=P.useRef(!1),T=P.useRef(null),O=P.useRef(null),I=function(re){T.current&&GE(T.current,re)},D=or(e.defaultValue,{value:e.value}),V=U(D,2),k=V[0],K=V[1],W=k==null?"":String(k),q=P.useState(null),Y=U(q,2),Z=Y[0],J=Y[1],te=gv(S,g),ae=te.max||h,fe=te.strategy(W),de=!!ae&&fe>ae;P.useImperativeHandle(t,function(){var oe;return{focus:I,blur:function(){var me;(me=T.current)===null||me===void 0||me.blur()},setSelectionRange:function(me,he,tt){var qe;(qe=T.current)===null||qe===void 0||qe.setSelectionRange(me,he,tt)},select:function(){var me;(me=T.current)===null||me===void 0||me.select()},input:T.current,nativeElement:((oe=O.current)===null||oe===void 0?void 0:oe.nativeElement)||T.current}}),P.useEffect(function(){A(function(oe){return oe&&f?!1:oe})},[f]);var ve=function(re,me,he){var tt=me;if(!M.current&&te.exceedFormatter&&te.max&&te.strategy(me)>te.max){if(tt=te.exceedFormatter(me,{max:te.max}),me!==tt){var qe,Ae;J([((qe=T.current)===null||qe===void 0?void 0:qe.selectionStart)||0,((Ae=T.current)===null||Ae===void 0?void 0:Ae.selectionEnd)||0])}}else if(he.source==="compositionEnd")return;K(tt),T.current&&_o(T.current,re,n,tt)};P.useEffect(function(){if(Z){var oe;(oe=T.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,ye(Z))}},[Z]);var we=function(re){ve(re,re.target.value,{source:"change"})},B=function(re){M.current=!1,ve(re,re.currentTarget.value,{source:"compositionEnd"}),w==null||w(re)},ce=function(re){i&&re.key==="Enter"&&!H.current&&(H.current=!0,i(re)),s==null||s(re)},se=function(re){re.key==="Enter"&&(H.current=!1),l==null||l(re)},Ce=function(re){A(!0),a==null||a(re)},pe=function(re){A(!1),o==null||o(re)},ne=function(re){K(""),I(),T.current&&_o(T.current,re,n)},ge=de&&"".concat(d,"-out-of-range"),xe=function(){var re=hr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",Oe({autoComplete:r},re,{onChange:we,onFocus:Ce,onBlur:pe,onKeyDown:ce,onKeyUp:se,className:Q(d,L({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:x==null?void 0:x.input,ref:T,size:v,type:y,onCompositionStart:function(he){M.current=!0,R==null||R(he)},onCompositionEnd:B}))},Me=function(){var re=Number(ae)>0;if(p||te.show){var me=te.showFormatter?te.showFormatter({value:W,count:fe,maxLength:ae}):"".concat(fe).concat(re?" / ".concat(ae):"");return P.createElement(P.Fragment,null,te.show&&P.createElement("span",{className:Q("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),C==null?void 0:C.count),style:z({},x==null?void 0:x.count)},me),p)}return null};return P.createElement(vv,Oe({},$,{prefixCls:d,className:Q(b,ge),handleReset:ne,value:W,focused:j,triggerFocus:I,suffix:Me(),disabled:f,classes:E,classNames:C,styles:x}),xe())});const mv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:P.createElement(qd,null)}),t};function XE(e,t){const r=P.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return P.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function YE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var QE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function ZE(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const JE=P.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:h,style:p,styles:g,rootClassName:S,onChange:m,classNames:y,variant:E}=e,C=QE(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:B}=It("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:R,input:w}=P.useContext(ot),$=x("input",n),N=P.useRef(null),F=il($),[j,A,M]=rv($,F),{compactSize:H,compactItemClassnames:T}=nf($,R),O=Hn(B=>{var ce;return(ce=i??H)!==null&&ce!==void 0?ce:B}),I=P.useContext(Fn),D=s??I,{status:V,hasFeedback:k,feedbackIcon:K}=P.useContext($a),W=Tf(V,o),q=YE(e)||!!k,Y=P.useRef(q);if(process.env.NODE_ENV!=="production"){const B=It("Input");P.useEffect(()=>{var ce;q&&!Y.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ce=N.current)===null||ce===void 0?void 0:ce.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"),Y.current=q},[q])}const Z=XE(N),J=B=>{Z(),l==null||l(B)},te=B=>{Z(),u==null||u(B)},ae=B=>{Z(),m==null||m(B)},fe=(k||d)&&P.createElement(P.Fragment,null,d,k&&K),de=mv(f??(w==null?void 0:w.allowClear)),[ve,we]=Nf("input",E,a);return j(P.createElement(qE,Object.assign({ref:Or(t,N),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},C,{disabled:D,onBlur:J,onFocus:te,style:Object.assign(Object.assign({},w==null?void 0:w.style),p),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),g),suffix:fe,allowClear:de,className:Q(h,S,M,F,T,w==null?void 0:w.className),onChange:ae,addonBefore:b&&P.createElement(Is,{form:!0,space:!0},b),addonAfter:v&&P.createElement(Is,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Q({[`${$}-sm`]:O==="small",[`${$}-lg`]:O==="large",[`${$}-rtl`]:R==="rtl"},y==null?void 0:y.input,(r=w==null?void 0:w.classNames)===null||r===void 0?void 0:r.input,A),variant:Q({[`${$}-${ve}`]:we},As($,W)),affixWrapper:Q({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Q({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Q({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ve}`]:we},As(`${$}-group-wrapper`,W,k),A)})})))});process.env.NODE_ENV!=="production"&&(JE.displayName="Input");var ex=`
|
|
175
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},bE=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Ta()),{"& > li":{margin:n,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), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ee(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:ee(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${o}`}}})},yE=e=>Object.assign(Object.assign({margin:`${ee(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ta()),{"&-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},nl),"&-description":{color:e.colorTextDescription}}),SE=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:n}=e;return{[`${t}-head`]:{padding:`0 ${ee(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ee(e.padding)} ${ee(r)}`}}},CE=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},EE=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Vn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:pE(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},Ta()),[`${t}-grid`]:hE(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:bE(e),[`${t}-meta`]:yE(e)}),[`${t}-bordered`]:{border:`${ee(e.lineWidth)} ${e.lineType} ${a}`,[`${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:r}},[`${t}-contain-grid`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(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:n}}},[`${t}-type-inner`]:SE(e),[`${t}-loading`]:CE(e),[`${t}-rtl`]:{direction:"rtl"}}},xE=e=>{const{componentCls:t,cardPaddingSM:r,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:n,padding:`0 ${ee(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},wE=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),$E=br("Card",e=>{const t=Lt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[EE(t),xE(t)]},wE);var fu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const OE=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return c.createElement("ul",{className:t,style:n},r.map((a,o)=>{const i=`action-${o}`;return c.createElement("li",{style:{width:`${100/r.length}%`},key:i},c.createElement("span",null,a))}))},RE=c.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f=!0,size:v,type:b,cover:h,actions:p,tabList:g,children:S,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:E,hoverable:C,tabProps:x={},classNames:R,styles:w}=e,$=fu(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:N,direction:F,card:j}=c.useContext(ot);if(process.env.NODE_ENV!=="production"){const pe=It("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(ne=>{let[ge,xe]=ne;pe.deprecated(!(ge in e),ge,xe)})}const A=pe=>{var ne;(ne=e.onTabChange)===null||ne===void 0||ne.call(e,pe)},M=pe=>{var ne;return Q((ne=j==null?void 0:j.classNames)===null||ne===void 0?void 0:ne[pe],R==null?void 0:R[pe])},H=pe=>{var ne;return Object.assign(Object.assign({},(ne=j==null?void 0:j.styles)===null||ne===void 0?void 0:ne[pe]),w==null?void 0:w[pe])},T=c.useMemo(()=>{let pe=!1;return c.Children.forEach(S,ne=>{(ne==null?void 0:ne.type)===dv&&(pe=!0)}),pe},[S]),O=N("card",r),[I,D,V]=$E(O),k=c.createElement(cn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),K=m!==void 0,W=Object.assign(Object.assign({},x),{[K?"activeKey":"defaultActiveKey"]:K?m:y,tabBarExtraContent:E});let q;const Y=Hn(v),Z=!Y||Y==="default"?"large":Y,J=g?c.createElement(xl,Object.assign({size:Z},W,{className:`${O}-head-tabs`,onChange:A,items:g.map(pe=>{var{tab:ne}=pe,ge=fu(pe,["tab"]);return Object.assign({label:ne},ge)})})):null;if(u||i||J){const pe=Q(`${O}-head`,M("header")),ne=Q(`${O}-head-title`,M("title")),ge=Q(`${O}-extra`,M("extra")),xe=Object.assign(Object.assign({},s),H("header"));q=c.createElement("div",{className:pe,style:xe},c.createElement("div",{className:`${O}-head-wrapper`},u&&c.createElement("div",{className:ne,style:H("title")},u),i&&c.createElement("div",{className:ge,style:H("extra")},i)),J)}const te=Q(`${O}-cover`,M("cover")),ae=h?c.createElement("div",{className:te,style:H("cover")},h):null,fe=Q(`${O}-body`,M("body")),de=Object.assign(Object.assign({},l),H("body")),ve=c.createElement("div",{className:fe,style:de},d?k:S),we=Q(`${O}-actions`,M("actions")),B=p!=null&&p.length?c.createElement(OE,{actionClasses:we,actionStyle:H("actions"),actions:p}):null,ce=hr($,["onTabChange"]),se=Q(O,j==null?void 0:j.className,{[`${O}-loading`]:d,[`${O}-bordered`]:f,[`${O}-hoverable`]:C,[`${O}-contain-grid`]:T,[`${O}-contain-tabs`]:g==null?void 0:g.length,[`${O}-${Y}`]:Y,[`${O}-type-${b}`]:!!b,[`${O}-rtl`]:F==="rtl"},n,a,D,V),Ce=Object.assign(Object.assign({},j==null?void 0:j.style),o);return I(c.createElement("div",Object.assign({ref:t},ce,{className:se,style:Ce}),q,ae,ve,B))});var PE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const _E=e=>{const{prefixCls:t,className:r,avatar:n,title:a,description:o}=e,i=PE(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(ot),l=s("card",t),u=Q(`${l}-meta`,r),d=n?c.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?c.createElement("div",{className:`${l}-meta-title`},a):null,v=o?c.createElement("div",{className:`${l}-meta-description`},o):null,b=f||v?c.createElement("div",{className:`${l}-meta-detail`},f,v):null;return c.createElement("div",Object.assign({},i,{className:u}),d,b)},Xo=RE;Xo.Grid=dv;Xo.Meta=_E;process.env.NODE_ENV!=="production"&&(Xo.displayName="Card");const fv=P.createContext({}),TE=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"}}}},NE=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},IE=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},Bs=(e,t)=>IE(e,t),ME=(e,t,r)=>({[`@media (min-width: ${ee(t)})`]:Object.assign({},Bs(e,r))}),AE=()=>({}),jE=()=>({}),FE=br("Grid",TE,AE),LE=br("Grid",e=>{const t=Lt(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[NE(t),Bs(t,""),Bs(t,"-xs"),Object.keys(r).map(n=>ME(t,r[n],n)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},jE);var DE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function vu(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const zE=["xs","sm","md","lg","xl","xxl"],sa=c.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=c.useContext(ot),{gutter:a,wrap:o}=c.useContext(fv),{prefixCls:i,span:s,order:l,offset:u,push:d,pull:f,className:v,children:b,flex:h,style:p}=e,g=DE(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=r("col",i),[m,y,E]=LE(S),C={};let x={};zE.forEach($=>{let N={};const F=e[$];typeof F=="number"?N.span=F:typeof F=="object"&&(N=F||{}),delete g[$],x=Object.assign(Object.assign({},x),{[`${S}-${$}-${N.span}`]:N.span!==void 0,[`${S}-${$}-order-${N.order}`]:N.order||N.order===0,[`${S}-${$}-offset-${N.offset}`]:N.offset||N.offset===0,[`${S}-${$}-push-${N.push}`]:N.push||N.push===0,[`${S}-${$}-pull-${N.pull}`]:N.pull||N.pull===0,[`${S}-rtl`]:n==="rtl"}),N.flex&&(x[`${S}-${$}-flex`]=!0,C[`--${S}-${$}-flex`]=vu(N.flex))});const R=Q(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${l}`]:l,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},v,x,y,E),w={};if(a&&a[0]>0){const $=a[0]/2;w.paddingLeft=$,w.paddingRight=$}return h&&(w.flex=vu(h),o===!1&&!w.minWidth&&(w.minWidth=0)),m(c.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),p),C),className:R,ref:t}),b))});process.env.NODE_ENV!=="production"&&(sa.displayName="Col");var VE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function gu(e,t){const[r,n]=c.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o<Ra.length;o++){const i=Ra[o];if(!t[i])continue;const s=e[i];if(s!==void 0){n(s);return}}};return c.useEffect(()=>{a()},[JSON.stringify(e),t]),r}const ks=c.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:o,style:i,children:s,gutter:l=0,wrap:u}=e,d=VE(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=c.useContext(ot),[b,h]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[p,g]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=gu(a,p),m=gu(n,p),y=c.useRef(l),E=sS();c.useEffect(()=>{const O=E.subscribe(I=>{g(I);const D=y.current||0;(!Array.isArray(D)&&typeof D=="object"||Array.isArray(D)&&(typeof D[0]=="object"||typeof D[1]=="object"))&&h(I)});return()=>E.unsubscribe(O)},[]);const C=()=>{const O=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((D,V)=>{if(typeof D=="object")for(let k=0;k<Ra.length;k++){const K=Ra[k];if(b[K]&&D[K]!==void 0){O[V]=D[K];break}}else O[V]=D}),O},x=f("row",r),[R,w,$]=FE(x),N=C(),F=Q(x,{[`${x}-no-wrap`]:u===!1,[`${x}-${m}`]:m,[`${x}-${S}`]:S,[`${x}-rtl`]:v==="rtl"},o,w,$),j={},A=N[0]!=null&&N[0]>0?N[0]/-2:void 0;A&&(j.marginLeft=A,j.marginRight=A);const[M,H]=N;j.rowGap=H;const T=c.useMemo(()=>({gutter:[M,H],wrap:u}),[M,H,u]);return R(c.createElement(fv.Provider,{value:T},c.createElement("div",Object.assign({},d,{className:F,style:Object.assign(Object.assign({},j),i),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(ks.displayName="Row");function BE(e){return!!(e.addonBefore||e.addonAfter)}function kE(e){return!!(e.prefix||e.suffix||e.allowClear)}function mu(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function _o(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=mu(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=mu(t,e,n),r(a);return}r(a)}}function HE(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var vv=P.forwardRef(function(e,t){var r,n,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,b=e.disabled,h=e.readOnly,p=e.focused,g=e.triggerFocus,S=e.allowClear,m=e.value,y=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,R=e.dataAttrs,w=e.styles,$=e.components,N=e.onClear,F=o??a,j=($==null?void 0:$.affixWrapper)||"span",A=($==null?void 0:$.groupWrapper)||"span",M=($==null?void 0:$.wrapper)||"span",H=($==null?void 0:$.groupAddon)||"span",T=P.useRef(null),O=function(B){var ce;(ce=T.current)!==null&&ce!==void 0&&ce.contains(B.target)&&(g==null||g())},I=kE(e),D=P.cloneElement(F,{value:m,className:Q(F.props.className,!I&&(x==null?void 0:x.variant))||null}),V=P.useRef(null);if(P.useImperativeHandle(t,function(){return{nativeElement:V.current||T.current}}),I){var k=null;if(S){var K=!b&&!h&&m,W="".concat(i,"-clear-icon"),q=Ne(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";k=P.createElement("span",{onClick:function(B){y==null||y(B),N==null||N()},onMouseDown:function(B){return B.preventDefault()},className:Q(W,L(L({},"".concat(W,"-hidden"),!K),"".concat(W,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var Y="".concat(i,"-affix-wrapper"),Z=Q(Y,L(L(L(L(L({},"".concat(i,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),p),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),l&&S&&m),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),J=(l||S)&&P.createElement("span",{className:Q("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:w==null?void 0:w.suffix},k,l);D=P.createElement(j,Oe({className:Z,style:w==null?void 0:w.affixWrapper,onClick:O},R==null?void 0:R.affixWrapper,{ref:T}),s&&P.createElement("span",{className:Q("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:w==null?void 0:w.prefix},s),D,J)}if(BE(e)){var te="".concat(i,"-group"),ae="".concat(te,"-addon"),fe="".concat(te,"-wrapper"),de=Q("".concat(i,"-wrapper"),te,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),ve=Q(fe,L({},"".concat(fe,"-disabled"),b),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);D=P.createElement(A,{className:ve,ref:V},P.createElement(M,{className:de},u&&P.createElement(H,{className:ae},u),D,d&&P.createElement(H,{className:ae},d)))}return P.cloneElement(D,{className:Q((r=D.props)===null||r===void 0?void 0:r.className,f)||null,style:z(z({},(n=D.props)===null||n===void 0?void 0:n.style),v),hidden:E})}),WE=["show"];function gv(e,t){return c.useMemo(function(){var r={};t&&(r.show=Ne(t)==="object"&&t.formatter?t.formatter:!!t),r=z(z({},r),e);var n=r,a=n.show,o=Je(n,WE);return z(z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var GE=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],UE=P.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,v=e.htmlSize,b=e.className,h=e.maxLength,p=e.suffix,g=e.showCount,S=e.count,m=e.type,y=m===void 0?"text":m,E=e.classes,C=e.classNames,x=e.styles,R=e.onCompositionStart,w=e.onCompositionEnd,$=Je(e,GE),N=P.useState(!1),F=U(N,2),j=F[0],A=F[1],M=P.useRef(!1),H=P.useRef(!1),T=P.useRef(null),O=P.useRef(null),I=function(re){T.current&&HE(T.current,re)},D=or(e.defaultValue,{value:e.value}),V=U(D,2),k=V[0],K=V[1],W=k==null?"":String(k),q=P.useState(null),Y=U(q,2),Z=Y[0],J=Y[1],te=gv(S,g),ae=te.max||h,fe=te.strategy(W),de=!!ae&&fe>ae;P.useImperativeHandle(t,function(){var oe;return{focus:I,blur:function(){var me;(me=T.current)===null||me===void 0||me.blur()},setSelectionRange:function(me,he,tt){var qe;(qe=T.current)===null||qe===void 0||qe.setSelectionRange(me,he,tt)},select:function(){var me;(me=T.current)===null||me===void 0||me.select()},input:T.current,nativeElement:((oe=O.current)===null||oe===void 0?void 0:oe.nativeElement)||T.current}}),P.useEffect(function(){A(function(oe){return oe&&f?!1:oe})},[f]);var ve=function(re,me,he){var tt=me;if(!M.current&&te.exceedFormatter&&te.max&&te.strategy(me)>te.max){if(tt=te.exceedFormatter(me,{max:te.max}),me!==tt){var qe,Ae;J([((qe=T.current)===null||qe===void 0?void 0:qe.selectionStart)||0,((Ae=T.current)===null||Ae===void 0?void 0:Ae.selectionEnd)||0])}}else if(he.source==="compositionEnd")return;K(tt),T.current&&_o(T.current,re,n,tt)};P.useEffect(function(){if(Z){var oe;(oe=T.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,ye(Z))}},[Z]);var we=function(re){ve(re,re.target.value,{source:"change"})},B=function(re){M.current=!1,ve(re,re.currentTarget.value,{source:"compositionEnd"}),w==null||w(re)},ce=function(re){i&&re.key==="Enter"&&!H.current&&(H.current=!0,i(re)),s==null||s(re)},se=function(re){re.key==="Enter"&&(H.current=!1),l==null||l(re)},Ce=function(re){A(!0),a==null||a(re)},pe=function(re){A(!1),o==null||o(re)},ne=function(re){K(""),I(),T.current&&_o(T.current,re,n)},ge=de&&"".concat(d,"-out-of-range"),xe=function(){var re=hr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return P.createElement("input",Oe({autoComplete:r},re,{onChange:we,onFocus:Ce,onBlur:pe,onKeyDown:ce,onKeyUp:se,className:Q(d,L({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:x==null?void 0:x.input,ref:T,size:v,type:y,onCompositionStart:function(he){M.current=!0,R==null||R(he)},onCompositionEnd:B}))},Me=function(){var re=Number(ae)>0;if(p||te.show){var me=te.showFormatter?te.showFormatter({value:W,count:fe,maxLength:ae}):"".concat(fe).concat(re?" / ".concat(ae):"");return P.createElement(P.Fragment,null,te.show&&P.createElement("span",{className:Q("".concat(d,"-show-count-suffix"),L({},"".concat(d,"-show-count-has-suffix"),!!p),C==null?void 0:C.count),style:z({},x==null?void 0:x.count)},me),p)}return null};return P.createElement(vv,Oe({},$,{prefixCls:d,className:Q(b,ge),handleReset:ne,value:W,focused:j,triggerFocus:I,suffix:Me(),disabled:f,classes:E,classNames:C,styles:x}),xe())});const mv=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:P.createElement(qd,null)}),t};function KE(e,t){const r=P.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return P.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function qE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var XE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function YE(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const QE=P.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,status:o,size:i,disabled:s,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:v,addonBefore:b,className:h,style:p,styles:g,rootClassName:S,onChange:m,classNames:y,variant:E}=e,C=XE(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:B}=It("Input");B(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:R,input:w}=P.useContext(ot),$=x("input",n),N=P.useRef(null),F=il($),[j,A,M]=rv($,F),{compactSize:H,compactItemClassnames:T}=nf($,R),O=Hn(B=>{var ce;return(ce=i??H)!==null&&ce!==void 0?ce:B}),I=P.useContext(Fn),D=s??I,{status:V,hasFeedback:k,feedbackIcon:K}=P.useContext($a),W=Tf(V,o),q=qE(e)||!!k,Y=P.useRef(q);if(process.env.NODE_ENV!=="production"){const B=It("Input");P.useEffect(()=>{var ce;q&&!Y.current&&process.env.NODE_ENV!=="production"&&B(document.activeElement===((ce=N.current)===null||ce===void 0?void 0:ce.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"),Y.current=q},[q])}const Z=KE(N),J=B=>{Z(),l==null||l(B)},te=B=>{Z(),u==null||u(B)},ae=B=>{Z(),m==null||m(B)},fe=(k||d)&&P.createElement(P.Fragment,null,d,k&&K),de=mv(f??(w==null?void 0:w.allowClear)),[ve,we]=Nf("input",E,a);return j(P.createElement(UE,Object.assign({ref:Or(t,N),prefixCls:$,autoComplete:w==null?void 0:w.autoComplete},C,{disabled:D,onBlur:J,onFocus:te,style:Object.assign(Object.assign({},w==null?void 0:w.style),p),styles:Object.assign(Object.assign({},w==null?void 0:w.styles),g),suffix:fe,allowClear:de,className:Q(h,S,M,F,T,w==null?void 0:w.className),onChange:ae,addonBefore:b&&P.createElement(Ns,{form:!0,space:!0},b),addonAfter:v&&P.createElement(Ns,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},y),w==null?void 0:w.classNames),{input:Q({[`${$}-sm`]:O==="small",[`${$}-lg`]:O==="large",[`${$}-rtl`]:R==="rtl"},y==null?void 0:y.input,(r=w==null?void 0:w.classNames)===null||r===void 0?void 0:r.input,A),variant:Q({[`${$}-${ve}`]:we},Ms($,W)),affixWrapper:Q({[`${$}-affix-wrapper-sm`]:O==="small",[`${$}-affix-wrapper-lg`]:O==="large",[`${$}-affix-wrapper-rtl`]:R==="rtl"},A),wrapper:Q({[`${$}-group-rtl`]:R==="rtl"},A),groupWrapper:Q({[`${$}-group-wrapper-sm`]:O==="small",[`${$}-group-wrapper-lg`]:O==="large",[`${$}-group-wrapper-rtl`]:R==="rtl",[`${$}-group-wrapper-${ve}`]:we},Ms(`${$}-group-wrapper`,W,k),A)})})))});process.env.NODE_ENV!=="production"&&(QE.displayName="Input");var ZE=`
|
|
205
176
|
min-height:0 !important;
|
|
206
177
|
max-height:none !important;
|
|
207
178
|
height:0 !important;
|
|
@@ -212,29 +183,29 @@ html body {
|
|
|
212
183
|
top:0 !important;
|
|
213
184
|
right:0 !important;
|
|
214
185
|
pointer-events: none !important;
|
|
215
|
-
`,tx=["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"],Ri={},ar;function rx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ri[r])return Ri[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=tx.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Ri[r]=l),l}function nx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ar||(ar=document.createElement("textarea"),ar.setAttribute("tab-index","-1"),ar.setAttribute("aria-hidden","true"),document.body.appendChild(ar)),e.getAttribute("wrap")?ar.setAttribute("wrap",e.getAttribute("wrap")):ar.removeAttribute("wrap");var a=rx(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;ar.setAttribute("style","".concat(l,";").concat(ex)),ar.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=ar.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){ar.value=" ";var b=ar.scrollHeight-o;r!==null&&(u=b*r,s==="border-box"&&(u=u+o+i),v=Math.max(u,v)),n!==null&&(d=b*n,s==="border-box"&&(d=d+o+i),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var ax=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Pi=0,_i=1,Ti=2,ox=c.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,u=r.style,d=r.disabled,f=r.onChange,v=r.onInternalAutoSize,b=Je(r,ax),h=or(a,{value:o,postState:function(Y){return Y??""}}),p=U(h,2),g=p[0],S=p[1],m=function(Y){S(Y.target.value),f==null||f(Y)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var E=c.useMemo(function(){return i&&Ne(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=U(E,2),x=C[0],R=C[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Y=y.current,Z=Y.selectionStart,J=Y.selectionEnd,te=Y.scrollTop;y.current.setSelectionRange(Z,J),y.current.scrollTop=te}}catch{}},N=c.useState(Ti),F=U(N,2),j=F[0],A=F[1],M=c.useState(),H=U(M,2),T=H[0],O=H[1],I=function(){A(Pi),process.env.NODE_ENV==="test"&&(v==null||v())};yt(function(){w&&I()},[o,x,R,w]),yt(function(){if(j===Pi)A(_i);else if(j===_i){var q=nx(y.current,!1,x,R);A(Ti),O(q)}else $()},[j]);var D=c.useRef(),V=function(){_t.cancel(D.current)},k=function(Y){j===Ti&&(s==null||s(Y),i&&(V(),D.current=_t(function(){I()})))};c.useEffect(function(){return V},[]);var K=w?T:null,W=z(z({},u),K);return(j===Pi||j===_i)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(vr,{onResize:k,disabled:!(i||s)},c.createElement("textarea",Oe({},b,{ref:y,style:W,className:Q(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:g,onChange:m})))}),ix=["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"],sx=P.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,h=b===void 0?"rc-textarea":b,p=e.showCount,g=e.count,S=e.className,m=e.style,y=e.disabled,E=e.hidden,C=e.classNames,x=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,N=e.readOnly,F=e.autoSize,j=e.onKeyDown,A=Je(e,ix),M=or(n,{value:a,defaultValue:n}),H=U(M,2),T=H[0],O=H[1],I=T==null?"":String(T),D=P.useState(!1),V=U(D,2),k=V[0],K=V[1],W=P.useRef(!1),q=P.useState(null),Y=U(q,2),Z=Y[0],J=Y[1],te=P.useRef(null),ae=P.useRef(null),fe=function(){var Te;return(Te=ae.current)===null||Te===void 0?void 0:Te.textArea},de=function(){fe().focus()};P.useImperativeHandle(t,function(){var Fe;return{resizableTextArea:ae.current,focus:de,blur:function(){fe().blur()},nativeElement:((Fe=te.current)===null||Fe===void 0?void 0:Fe.nativeElement)||fe()}}),P.useEffect(function(){K(function(Fe){return!y&&Fe})},[y]);var ve=P.useState(null),we=U(ve,2),B=we[0],ce=we[1];P.useEffect(function(){if(B){var Fe;(Fe=fe()).setSelectionRange.apply(Fe,ye(B))}},[B]);var se=gv(g,p),Ce=(r=se.max)!==null&&r!==void 0?r:u,pe=Number(Ce)>0,ne=se.strategy(I),ge=!!Ce&&ne>Ce,xe=function(Te,it){var Ye=it;!W.current&&se.exceedFormatter&&se.max&&se.strategy(it)>se.max&&(Ye=se.exceedFormatter(it,{max:se.max}),it!==Ye&&ce([fe().selectionStart||0,fe().selectionEnd||0])),O(Ye),_o(Te.currentTarget,Te,s,Ye)},Me=function(Te){W.current=!0,d==null||d(Te)},oe=function(Te){W.current=!1,xe(Te,Te.currentTarget.value),f==null||f(Te)},re=function(Te){xe(Te,Te.target.value)},me=function(Te){Te.key==="Enter"&&$&&$(Te),j==null||j(Te)},he=function(Te){K(!0),o==null||o(Te)},tt=function(Te){K(!1),i==null||i(Te)},qe=function(Te){O(""),de(),_o(fe(),Te,s)},Ae=v,Ue;se.show&&(se.showFormatter?Ue=se.showFormatter({value:I,count:ne,maxLength:Ce}):Ue="".concat(ne).concat(pe?" / ".concat(Ce):""),Ae=P.createElement(P.Fragment,null,Ae,P.createElement("span",{className:Q("".concat(h,"-data-count"),C==null?void 0:C.count),style:x==null?void 0:x.count},Ue)));var Xe=function(Te){var it;R==null||R(Te),(it=fe())!==null&&it!==void 0&&it.style.height&&J(!0)},Ze=!F&&!p&&!l;return P.createElement(vv,{ref:te,value:I,allowClear:l,handleReset:qe,suffix:Ae,prefixCls:h,classNames:z(z({},C),{},{affixWrapper:Q(C==null?void 0:C.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:k,className:Q(S,ge&&"".concat(h,"-out-of-range")),style:z(z({},m),Z&&!Ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ue=="string"?Ue:void 0}},hidden:E,readOnly:N,onClear:w},P.createElement(ox,Oe({},A,{autoSize:F,maxLength:u,onKeyDown:me,onChange:re,onFocus:he,onBlur:tt,onCompositionStart:Me,onCompositionEnd:oe,className:Q(C==null?void 0:C.textarea),style:z(z({},x==null?void 0:x.textarea),{},{resize:m==null?void 0:m.resize}),disabled:y,prefixCls:h,onResize:Xe,ref:ae,readOnly:N})))}),lx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const cx=P.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:v,style:b,styles:h,variant:p}=e,g=lx(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=It("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:m,textArea:y}=c.useContext(ot),E=Hn(i),C=c.useContext(Fn),x=s??C,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext($a),N=Tf(R,l),F=c.useRef(null);c.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=F.current)===null||V===void 0?void 0:V.resizableTextArea,focus:k=>{var K,W;ZE((W=(K=F.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,k)},blur:()=>{var k;return(k=F.current)===null||k===void 0?void 0:k.blur()}}});const j=S("input",a),A=il(j),[M,H,T]=rv(j,A),[O,I]=Nf("textArea",p,o),D=mv(u??(y==null?void 0:y.allowClear));return M(c.createElement(sx,Object.assign({autoComplete:y==null?void 0:y.autoComplete},g,{style:Object.assign(Object.assign({},y==null?void 0:y.style),b),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:x,allowClear:D,className:Q(T,A,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Q({[`${j}-sm`]:E==="small",[`${j}-lg`]:E==="large"},H,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Q({[`${j}-${O}`]:I},As(j,N)),affixWrapper:Q(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:m==="rtl",[`${j}-affix-wrapper-sm`]:E==="small",[`${j}-affix-wrapper-lg`]:E==="large",[`${j}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:j,suffix:w&&c.createElement("span",{className:`${j}-textarea-suffix`},$),ref:F})))});function To(e){return["small","middle","large"].includes(e)}function bu(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const pv=P.createContext({latestIndex:0}),ux=pv.Provider,dx=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(pv);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},n),r<i&&a&&c.createElement("span",{className:`${t}-split`},a))};var fx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const vx=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(ot),{size:l=(r=i==null?void 0:i.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:v,direction:b="horizontal",prefixCls:h,split:p,style:g,wrap:S=!1,classNames:m,styles:y}=e,E=fx(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,x]=Array.isArray(l)?l:[l,l],R=To(x),w=To(C),$=bu(x),N=bu(C),F=$r(v,{keepEmpty:!0}),j=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[M,H,T]=tf(A),O=Q(A,i==null?void 0:i.className,H,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${j}`]:j,[`${A}-gap-row-${x}`]:R,[`${A}-gap-col-${C}`]:w},d,f,T),I=Q(`${A}-item`,(n=m==null?void 0:m.item)!==null&&n!==void 0?n:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let D=0;const V=F.map((W,q)=>{var Y,Z;W!=null&&(D=q);const J=(W==null?void 0:W.key)||`${I}-${q}`;return c.createElement(dx,{className:I,key:J,index:q,split:p,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(Z=i==null?void 0:i.styles)===null||Z===void 0?void 0:Z.item},W)}),k=c.useMemo(()=>({latestIndex:D}),[D]);if(F.length===0)return null;const K={};return S&&(K.flexWrap="wrap"),!w&&N&&(K.columnGap=C),!R&&$&&(K.rowGap=x),M(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),g)},E),c.createElement(ux,{value:k},V)))}),Yo=vx;Yo.Compact=c0;process.env.NODE_ENV!=="production"&&(Yo.displayName="Space");const hv=["wrap","nowrap","wrap-reverse"],bv=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],yv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],gx=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&hv.includes(r)}},mx=(e,t)=>{const r={};return yv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},px=(e,t)=>{const r={};return bv.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function hx(e,t){return Q(Object.assign(Object.assign(Object.assign({},gx(e,t)),mx(e,t)),px(e,t)))}const bx=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},yx=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Sx=e=>{const{componentCls:t}=e,r={};return hv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},Cx=e=>{const{componentCls:t}=e,r={};return yv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},Ex=e=>{const{componentCls:t}=e,r={};return bv.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},xx=()=>({}),wx=br("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=Lt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[bx(a),yx(a),Sx(a),Cx(a),Ex(a)]},xx,{resetStyle:!1});var $x=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Sv=P.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:a,style:o,flex:i,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=$x(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=P.useContext(ot),p=h("flex",r),[g,S,m]=wx(p),y=u??(v==null?void 0:v.vertical),E=Q(a,n,v==null?void 0:v.className,p,S,m,hx(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:To(s),[`${p}-vertical`]:y}),C=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(C.flex=i),s&&!To(s)&&(C.gap=s),g(P.createElement(d,Object.assign({ref:t,className:E,style:C},hr(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(Sv.displayName="Flex");var Ox={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"},Rx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Ox}))},Cv=c.forwardRef(Rx);process.env.NODE_ENV!=="production"&&(Cv.displayName="CopyOutlined");var Px={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"},_x=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Px}))},Ev=c.forwardRef(_x);process.env.NODE_ENV!=="production"&&(Ev.displayName="EditOutlined");var Tx={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"},Nx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Tx}))},xv=c.forwardRef(Nx);process.env.NODE_ENV!=="production"&&(xv.displayName="EnterOutlined");var Ix={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Mx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Ix}))},wv=c.forwardRef(Mx);process.env.NODE_ENV!=="production"&&(wv.displayName="InfoCircleOutlined");var Ax=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const jx={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Ws=c.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===le.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===le.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=Ax(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},jx)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),c.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:r,onKeyUp:n,style:u}))}),Fx=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},Lx=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
186
|
+
`,JE=["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"],Ri={},ar;function ex(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ri[r])return Ri[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=JE.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&r&&(Ri[r]=l),l}function tx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ar||(ar=document.createElement("textarea"),ar.setAttribute("tab-index","-1"),ar.setAttribute("aria-hidden","true"),document.body.appendChild(ar)),e.getAttribute("wrap")?ar.setAttribute("wrap",e.getAttribute("wrap")):ar.removeAttribute("wrap");var a=ex(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,l=a.sizingStyle;ar.setAttribute("style","".concat(l,";").concat(ZE)),ar.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,v=ar.scrollHeight;if(s==="border-box"?v+=i:s==="content-box"&&(v-=o),r!==null||n!==null){ar.value=" ";var b=ar.scrollHeight-o;r!==null&&(u=b*r,s==="border-box"&&(u=u+o+i),v=Math.max(u,v)),n!==null&&(d=b*n,s==="border-box"&&(d=d+o+i),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var rx=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Pi=0,_i=1,Ti=2,nx=c.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,o=r.value,i=r.autoSize,s=r.onResize,l=r.className,u=r.style,d=r.disabled,f=r.onChange,v=r.onInternalAutoSize,b=Je(r,rx),h=or(a,{value:o,postState:function(Y){return Y??""}}),p=U(h,2),g=p[0],S=p[1],m=function(Y){S(Y.target.value),f==null||f(Y)},y=c.useRef();c.useImperativeHandle(t,function(){return{textArea:y.current}});var E=c.useMemo(function(){return i&&Ne(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=U(E,2),x=C[0],R=C[1],w=!!i,$=function(){try{if(document.activeElement===y.current){var Y=y.current,Z=Y.selectionStart,J=Y.selectionEnd,te=Y.scrollTop;y.current.setSelectionRange(Z,J),y.current.scrollTop=te}}catch{}},N=c.useState(Ti),F=U(N,2),j=F[0],A=F[1],M=c.useState(),H=U(M,2),T=H[0],O=H[1],I=function(){A(Pi),process.env.NODE_ENV==="test"&&(v==null||v())};yt(function(){w&&I()},[o,x,R,w]),yt(function(){if(j===Pi)A(_i);else if(j===_i){var q=tx(y.current,!1,x,R);A(Ti),O(q)}else $()},[j]);var D=c.useRef(),V=function(){_t.cancel(D.current)},k=function(Y){j===Ti&&(s==null||s(Y),i&&(V(),D.current=_t(function(){I()})))};c.useEffect(function(){return V},[]);var K=w?T:null,W=z(z({},u),K);return(j===Pi||j===_i)&&(W.overflowY="hidden",W.overflowX="hidden"),c.createElement(vr,{onResize:k,disabled:!(i||s)},c.createElement("textarea",Oe({},b,{ref:y,style:W,className:Q(n,l,L({},"".concat(n,"-disabled"),d)),disabled:d,value:g,onChange:m})))}),ax=["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"],ox=P.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,b=e.prefixCls,h=b===void 0?"rc-textarea":b,p=e.showCount,g=e.count,S=e.className,m=e.style,y=e.disabled,E=e.hidden,C=e.classNames,x=e.styles,R=e.onResize,w=e.onClear,$=e.onPressEnter,N=e.readOnly,F=e.autoSize,j=e.onKeyDown,A=Je(e,ax),M=or(n,{value:a,defaultValue:n}),H=U(M,2),T=H[0],O=H[1],I=T==null?"":String(T),D=P.useState(!1),V=U(D,2),k=V[0],K=V[1],W=P.useRef(!1),q=P.useState(null),Y=U(q,2),Z=Y[0],J=Y[1],te=P.useRef(null),ae=P.useRef(null),fe=function(){var Te;return(Te=ae.current)===null||Te===void 0?void 0:Te.textArea},de=function(){fe().focus()};P.useImperativeHandle(t,function(){var Fe;return{resizableTextArea:ae.current,focus:de,blur:function(){fe().blur()},nativeElement:((Fe=te.current)===null||Fe===void 0?void 0:Fe.nativeElement)||fe()}}),P.useEffect(function(){K(function(Fe){return!y&&Fe})},[y]);var ve=P.useState(null),we=U(ve,2),B=we[0],ce=we[1];P.useEffect(function(){if(B){var Fe;(Fe=fe()).setSelectionRange.apply(Fe,ye(B))}},[B]);var se=gv(g,p),Ce=(r=se.max)!==null&&r!==void 0?r:u,pe=Number(Ce)>0,ne=se.strategy(I),ge=!!Ce&&ne>Ce,xe=function(Te,it){var Ye=it;!W.current&&se.exceedFormatter&&se.max&&se.strategy(it)>se.max&&(Ye=se.exceedFormatter(it,{max:se.max}),it!==Ye&&ce([fe().selectionStart||0,fe().selectionEnd||0])),O(Ye),_o(Te.currentTarget,Te,s,Ye)},Me=function(Te){W.current=!0,d==null||d(Te)},oe=function(Te){W.current=!1,xe(Te,Te.currentTarget.value),f==null||f(Te)},re=function(Te){xe(Te,Te.target.value)},me=function(Te){Te.key==="Enter"&&$&&$(Te),j==null||j(Te)},he=function(Te){K(!0),o==null||o(Te)},tt=function(Te){K(!1),i==null||i(Te)},qe=function(Te){O(""),de(),_o(fe(),Te,s)},Ae=v,Ue;se.show&&(se.showFormatter?Ue=se.showFormatter({value:I,count:ne,maxLength:Ce}):Ue="".concat(ne).concat(pe?" / ".concat(Ce):""),Ae=P.createElement(P.Fragment,null,Ae,P.createElement("span",{className:Q("".concat(h,"-data-count"),C==null?void 0:C.count),style:x==null?void 0:x.count},Ue)));var Xe=function(Te){var it;R==null||R(Te),(it=fe())!==null&&it!==void 0&&it.style.height&&J(!0)},Ze=!F&&!p&&!l;return P.createElement(vv,{ref:te,value:I,allowClear:l,handleReset:qe,suffix:Ae,prefixCls:h,classNames:z(z({},C),{},{affixWrapper:Q(C==null?void 0:C.affixWrapper,L(L({},"".concat(h,"-show-count"),p),"".concat(h,"-textarea-allow-clear"),l))}),disabled:y,focused:k,className:Q(S,ge&&"".concat(h,"-out-of-range")),style:z(z({},m),Z&&!Ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ue=="string"?Ue:void 0}},hidden:E,readOnly:N,onClear:w},P.createElement(nx,Oe({},A,{autoSize:F,maxLength:u,onKeyDown:me,onChange:re,onFocus:he,onBlur:tt,onCompositionStart:Me,onCompositionEnd:oe,className:Q(C==null?void 0:C.textarea),style:z(z({},x==null?void 0:x.textarea),{},{resize:m==null?void 0:m.resize}),disabled:y,prefixCls:h,onResize:Xe,ref:ae,readOnly:N})))}),ix=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const sx=P.forwardRef((e,t)=>{var r,n;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:l,allowClear:u,classNames:d,rootClassName:f,className:v,style:b,styles:h,variant:p}=e,g=ix(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:V}=It("TextArea");V(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:m,textArea:y}=c.useContext(ot),E=Hn(i),C=c.useContext(Fn),x=s??C,{status:R,hasFeedback:w,feedbackIcon:$}=c.useContext($a),N=Tf(R,l),F=c.useRef(null);c.useImperativeHandle(t,()=>{var V;return{resizableTextArea:(V=F.current)===null||V===void 0?void 0:V.resizableTextArea,focus:k=>{var K,W;YE((W=(K=F.current)===null||K===void 0?void 0:K.resizableTextArea)===null||W===void 0?void 0:W.textArea,k)},blur:()=>{var k;return(k=F.current)===null||k===void 0?void 0:k.blur()}}});const j=S("input",a),A=il(j),[M,H,T]=rv(j,A),[O,I]=Nf("textArea",p,o),D=mv(u??(y==null?void 0:y.allowClear));return M(c.createElement(ox,Object.assign({autoComplete:y==null?void 0:y.autoComplete},g,{style:Object.assign(Object.assign({},y==null?void 0:y.style),b),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:x,allowClear:D,className:Q(T,A,v,f,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:Q({[`${j}-sm`]:E==="small",[`${j}-lg`]:E==="large"},H,d==null?void 0:d.textarea,(r=y==null?void 0:y.classNames)===null||r===void 0?void 0:r.textarea),variant:Q({[`${j}-${O}`]:I},Ms(j,N)),affixWrapper:Q(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:m==="rtl",[`${j}-affix-wrapper-sm`]:E==="small",[`${j}-affix-wrapper-lg`]:E==="large",[`${j}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:j,suffix:w&&c.createElement("span",{className:`${j}-textarea-suffix`},$),ref:F})))});function To(e){return["small","middle","large"].includes(e)}function pu(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const pv=P.createContext({latestIndex:0}),lx=pv.Provider,cx=e=>{let{className:t,index:r,children:n,split:a,style:o}=e;const{latestIndex:i}=c.useContext(pv);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},n),r<i&&a&&c.createElement("span",{className:`${t}-split`},a))};var ux=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const dx=c.forwardRef((e,t)=>{var r,n,a;const{getPrefixCls:o,space:i,direction:s}=c.useContext(ot),{size:l=(r=i==null?void 0:i.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:v,direction:b="horizontal",prefixCls:h,split:p,style:g,wrap:S=!1,classNames:m,styles:y}=e,E=ux(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,x]=Array.isArray(l)?l:[l,l],R=To(x),w=To(C),$=pu(x),N=pu(C),F=$r(v,{keepEmpty:!0}),j=u===void 0&&b==="horizontal"?"center":u,A=o("space",h),[M,H,T]=tf(A),O=Q(A,i==null?void 0:i.className,H,`${A}-${b}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${j}`]:j,[`${A}-gap-row-${x}`]:R,[`${A}-gap-col-${C}`]:w},d,f,T),I=Q(`${A}-item`,(n=m==null?void 0:m.item)!==null&&n!==void 0?n:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let D=0;const V=F.map((W,q)=>{var Y,Z;W!=null&&(D=q);const J=(W==null?void 0:W.key)||`${I}-${q}`;return c.createElement(cx,{className:I,key:J,index:q,split:p,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(Z=i==null?void 0:i.styles)===null||Z===void 0?void 0:Z.item},W)}),k=c.useMemo(()=>({latestIndex:D}),[D]);if(F.length===0)return null;const K={};return S&&(K.flexWrap="wrap"),!w&&N&&(K.columnGap=C),!R&&$&&(K.rowGap=x),M(c.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},K),i==null?void 0:i.style),g)},E),c.createElement(lx,{value:k},V)))}),Yo=dx;Yo.Compact=s0;process.env.NODE_ENV!=="production"&&(Yo.displayName="Space");const hv=["wrap","nowrap","wrap-reverse"],bv=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],yv=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],fx=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&hv.includes(r)}},vx=(e,t)=>{const r={};return yv.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},gx=(e,t)=>{const r={};return bv.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function mx(e,t){return Q(Object.assign(Object.assign(Object.assign({},fx(e,t)),vx(e,t)),gx(e,t)))}const px=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},hx=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},bx=e=>{const{componentCls:t}=e,r={};return hv.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},yx=e=>{const{componentCls:t}=e,r={};return yv.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},Sx=e=>{const{componentCls:t}=e,r={};return bv.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},Cx=()=>({}),Ex=br("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,a=Lt(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[px(a),hx(a),bx(a),yx(a),Sx(a)]},Cx,{resetStyle:!1});var xx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Sv=P.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:a,style:o,flex:i,gap:s,children:l,vertical:u=!1,component:d="div"}=e,f=xx(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:b,getPrefixCls:h}=P.useContext(ot),p=h("flex",r),[g,S,m]=Ex(p),y=u??(v==null?void 0:v.vertical),E=Q(a,n,v==null?void 0:v.className,p,S,m,mx(p,e),{[`${p}-rtl`]:b==="rtl",[`${p}-gap-${s}`]:To(s),[`${p}-vertical`]:y}),C=Object.assign(Object.assign({},v==null?void 0:v.style),o);return i&&(C.flex=i),s&&!To(s)&&(C.gap=s),g(P.createElement(d,Object.assign({ref:t,className:E,style:C},hr(f,["justify","wrap","align"])),l))});process.env.NODE_ENV!=="production"&&(Sv.displayName="Flex");var wx={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"},$x=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:wx}))},Cv=c.forwardRef($x);process.env.NODE_ENV!=="production"&&(Cv.displayName="CopyOutlined");var Ox={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"},Rx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Ox}))},Ev=c.forwardRef(Rx);process.env.NODE_ENV!=="production"&&(Ev.displayName="EditOutlined");var Px={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"},_x=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Px}))},xv=c.forwardRef(_x);process.env.NODE_ENV!=="production"&&(xv.displayName="EnterOutlined");var Tx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Nx=function(t,r){return c.createElement(Xt,Oe({},t,{ref:r,icon:Tx}))},wv=c.forwardRef(Nx);process.env.NODE_ENV!=="production"&&(wv.displayName="InfoCircleOutlined");var Ix=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Mx={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Hs=c.forwardRef((e,t)=>{const r=d=>{const{keyCode:f}=d;f===le.ENTER&&d.preventDefault()},n=d=>{const{keyCode:f}=d,{onClick:v}=e;f===le.ENTER&&v&&v()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,l=Ix(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},Mx)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),c.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},l,{onKeyDown:r,onKeyUp:n,style:u}))}),Ax=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:o}=n;return{marginBottom:a,color:r,fontWeight:o,fontSize:e,lineHeight:t}},jx=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
216
187
|
h${n}&,
|
|
217
188
|
div&-h${n},
|
|
218
189
|
div&-h${n} > textarea,
|
|
219
190
|
h${n}
|
|
220
|
-
`]=
|
|
191
|
+
`]=Ax(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},Fx=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Td(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Lx=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:yo[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}}),Dx=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${ee(n)})`},[`${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"}}}},zx=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Vx=()=>({"\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"}}),Bx=e=>{const{componentCls:t,titleMarginTop:r}=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"}},jx(e)),{[`
|
|
221
192
|
& + h1${t},
|
|
222
193
|
& + h2${t},
|
|
223
194
|
& + h3${t},
|
|
224
195
|
& + h4${t},
|
|
225
196
|
& + h5${t}
|
|
226
|
-
`]:{marginTop:r},"\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:r}}}),
|
|
197
|
+
`]:{marginTop:r},"\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:r}}}),Lx(e)),Fx(e)),{[`
|
|
227
198
|
${t}-expand,
|
|
228
199
|
${t}-collapse,
|
|
229
200
|
${t}-edit,
|
|
230
201
|
${t}-copy
|
|
231
|
-
`]:Object.assign(Object.assign({},Td(e)),{marginInlineStart:e.marginXXS})}),Vx(e)),Bx(e)),kx()),{"&-rtl":{direction:"rtl"}})}},Wx=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),$v=br("Typography",e=>[Hx(e)],Wx),Gx=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:v,enterIcon:b=c.createElement(xv,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[S,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var H;if(!((H=h.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:T}=h.current.resizableTextArea;T.focus();const{length:O}=T.value;T.setSelectionRange(O,O)}},[]);const y=H=>{let{target:T}=H;m(T.value.replace(/[\n\r]/g,""))},E=()=>{p.current=!0},C=()=>{p.current=!1},x=H=>{let{keyCode:T}=H;p.current||(g.current=T)},R=()=>{u(S.trim())},w=H=>{let{keyCode:T,ctrlKey:O,altKey:I,metaKey:D,shiftKey:V}=H;g.current===T&&!p.current&&!O&&!I&&!D&&!V&&(T===le.ENTER?(R(),f==null||f()):T===le.ESC&&d())},$=()=>{R()},N=v?`${t}-${v}`:"",[F,j,A]=$v(t),M=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,N,j,A);return F(c.createElement("div",{className:M,style:a},c.createElement(cx,{ref:h,maxLength:i,value:S,onChange:y,onKeyDown:x,onKeyUp:w,onCompositionStart:E,onCompositionEnd:C,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?zo(b,{className:`${t}-edit-content-confirm`}):null))};var Ux=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},Kx=Ux,yu={"text/plain":"Text","text/html":"Url",default:"Text"},qx="Copy to clipboard: #{key}, Enter";function Xx(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Yx(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=Kx(),o=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=yu[t.format]||yu.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=Xx("message"in t?t.message:qx),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var Qx=Yx;const Zx=Ou(Qx);var Jx=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{u(n.next(d))}catch(f){i(f)}}function l(d){try{u(n.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const ew=e=>{let{copyConfig:t,children:r}=e;const[n,a]=c.useState(!1),[o,i]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=Bt(f=>Jx(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;Zx(b||String(r)||"",u),i(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(b){throw i(!1),b}}));return{copied:n,copyLoading:o,onClick:d}};function Ni(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const tw=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},rw=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var nw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const wl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=nw(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(ot),h=l??v;let p=t;i&&(p=Or(t,i)),process.env.NODE_ENV!=="production"&&It("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[S,m,y]=$v(g),E=Q(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),C=Object.assign(Object.assign({},b==null?void 0:b.style),u);return S(c.createElement(n,Object.assign({className:E,style:C,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(wl.displayName="Typography");function Su(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function to(e,t,r){return e===!0||e===void 0?t:e||r&&t}function aw(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),!(r.left<=n.left&&n.right<=r.right&&r.top<=n.top&&n.bottom<=r.bottom)}const ow=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=Su(o),f=Su(i),{copied:v,copy:b}=n??{},h=r?to(d[1],v):to(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(ja,{key:"copy",title:h},c.createElement(Ws,{className:Q(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?to(f[1],c.createElement(If,null),!0):to(f[0],s?c.createElement(sl,null):c.createElement(Cv,null),!0)))},ro=c.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=c.useRef(null);return c.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function Ov(e){const t=typeof e;return t==="string"||t==="number"}function iw(e){let t=0;return e.forEach(r=>{Ov(r)?t+=String(r).length:t+=1}),t}function Cu(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=Ov(o)?String(o).length:1,l=r+s;if(l>t){const u=t-r;return n.push(String(o).slice(0,u)),n}n.push(o),r=l}return e}const Ii=0,Mi=1,Ai=2,ji=3,Eu=4,no={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function sw(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>$r(n),[n]),d=c.useMemo(()=>iw(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),S=c.useRef(null),m=c.useRef(null),[y,E]=c.useState(!1),[C,x]=c.useState(Ii),[R,w]=c.useState(0),[$,N]=c.useState(null);yt(()=>{x(t&&r&&d?Mi:Ii)},[r,n,o,t,u]),yt(()=>{var M,H,T,O;if(C===Mi){x(Ai);const I=p.current&&getComputedStyle(p.current).whiteSpace;N(I)}else if(C===Ai){const I=!!(!((M=g.current)===null||M===void 0)&&M.isExceed());x(I?ji:Eu),b(I?[0,d]:null),E(I);const D=((H=g.current)===null||H===void 0?void 0:H.getHeight())||0,V=o===1?0:((T=S.current)===null||T===void 0?void 0:T.getHeight())||0,k=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+k,W=Math.max(D,K);w(W+1),l(I)}},[C]);const F=v?Math.ceil((v[0]+v[1])/2):0;yt(()=>{var M;const[H,T]=v||[0,0];if(H!==T){const I=(((M=h.current)===null||M===void 0?void 0:M.getHeight())||0)>R;let D=F;T-H===1&&(D=I?H:T),b(I?[H,D]:[D,T])}},[v,F]);const j=c.useMemo(()=>{if(!t)return a(u,!1);if(C!==ji||!v||v[0]!==v[1]){const M=a(u,!1);return C!==Eu&&C!==Ii?c.createElement("span",{style:Object.assign(Object.assign({},no),{WebkitLineClamp:o})},M):M}return a(i?u:Cu(u,v[0]),y)},[i,C,v,u].concat(ye(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,j,C===Ai&&c.createElement(c.Fragment,null,c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:o}),ref:g},f),c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:o-1}),ref:S},f),c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:1}),ref:m},a([],!0))),C===ji&&v&&v[0]!==v[1]&&c.createElement(ro,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(Cu(u,F),!0)),C===Mi&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Rv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(ja,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Rv.displayName="EllipsisTooltip");var lw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function cw(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:l}=e,u=t;function d(f,v){v&&(u=c.createElement(f,{},u))}return d("strong",i),d("u",a),d("del",o),d("code",n),d("mark",r),d("kbd",s),d("i",l),u}const uw="...",Qo=c.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:p}=e,g=lw(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:m}=c.useContext(ot),[y]=jm("Text"),E=c.useRef(null),C=c.useRef(null),x=S("typography",o),R=hr(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Ni(v),[N,F]=or(!1,{value:$.editing}),{triggerType:j=["icon"]}=$,A=ue=>{var Ee;ue&&((Ee=$.onStart)===null||Ee===void 0||Ee.call($)),F(ue)},M=tw(N);rw(()=>{var ue;!N&&M&&((ue=C.current)===null||ue===void 0||ue.focus())},[N]);const H=ue=>{ue==null||ue.preventDefault(),A(!0)},T=ue=>{var Ee;(Ee=$.onChange)===null||Ee===void 0||Ee.call($,ue),A(!1)},O=()=>{var ue;(ue=$.onCancel)===null||ue===void 0||ue.call($),A(!1)},[I,D]=Ni(b),{copied:V,copyLoading:k,onClick:K}=ew({copyConfig:D,children:d}),[W,q]=c.useState(!1),[Y,Z]=c.useState(!1),[J,te]=c.useState(!1),[ae,fe]=c.useState(!1),[de,ve]=c.useState(!0),[we,B]=Ni(f,{expandable:!1,symbol:ue=>ue?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ce,se]=or(B.defaultExpanded||!1,{value:B.expanded}),Ce=we&&(!ce||B.expandable==="collapsible"),{rows:pe=1}=B,ne=c.useMemo(()=>Ce&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||I),[Ce,B,w,I]);yt(()=>{we&&!ne&&(q(Lc("webkitLineClamp")),Z(Lc("textOverflow")))},[ne,we]);const[ge,xe]=c.useState(Ce),Me=c.useMemo(()=>ne?!1:pe===1?Y:W,[ne,Y,W]);yt(()=>{xe(Me&&Ce)},[Me,Ce]);const oe=Ce&&(ge?ae:J),re=Ce&&pe===1&&ge,me=Ce&&pe>1&&ge,he=(ue,Ee)=>{var Ke;se(Ee.expanded),(Ke=B.onExpand)===null||Ke===void 0||Ke.call(B,ue,Ee)},[tt,qe]=c.useState(0),Ae=ue=>{let{offsetWidth:Ee}=ue;qe(Ee)},Ue=ue=>{var Ee;te(ue),J!==ue&&((Ee=B.onEllipsis)===null||Ee===void 0||Ee.call(B,ue))};c.useEffect(()=>{const ue=E.current;if(we&&ge&&ue){const Ee=aw(ue);ae!==Ee&&fe(Ee)}},[we,ge,d,me,de,tt]),c.useEffect(()=>{const ue=E.current;if(typeof IntersectionObserver>"u"||!ue||!ge||!Ce)return;const Ee=new IntersectionObserver(()=>{ve(!!ue.offsetParent)});return Ee.observe(ue),()=>{Ee.disconnect()}},[ge,Ce]);let Xe={};B.tooltip===!0?Xe={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Xe={title:B.tooltip}:typeof B.tooltip=="object"?Xe=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Xe={title:B.tooltip};const Ze=c.useMemo(()=>{const ue=Ee=>["string","number"].includes(typeof Ee);if(!(!we||ge)){if(ue($.text))return $.text;if(ue(d))return d;if(ue(p))return p;if(ue(Xe.title))return Xe.title}},[we,ge,p,Xe.title,oe]);if(N)return c.createElement(Gx,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:T,onCancel:O,onEnd:$.onEnd,prefixCls:x,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Fe=()=>{const{expandable:ue,symbol:Ee}=B;return ue?c.createElement(Ws,{key:"expand",className:`${x}-${ce?"collapse":"expand"}`,onClick:Ke=>he(Ke,{expanded:!ce}),"aria-label":ce?y.collapse:y==null?void 0:y.expand},typeof Ee=="function"?Ee(ce):Ee):null},Te=()=>{if(!w)return;const{icon:ue,tooltip:Ee,tabIndex:Ke}=$,rt=$r(Ee)[0]||(y==null?void 0:y.edit),bt=typeof rt=="string"?rt:"";return j.includes("icon")?c.createElement(ja,{key:"edit",title:Ee===!1?"":rt},c.createElement(Ws,{ref:C,className:`${x}-edit`,onClick:H,"aria-label":bt,tabIndex:Ke},ue||c.createElement(Ev,{role:"button"}))):null},it=()=>I?c.createElement(ow,Object.assign({key:"copy"},D,{prefixCls:x,copied:V,locale:y,onCopy:K,loading:k,iconOnly:d==null})):null,Ye=ue=>[ue&&Fe(),Te(),it()],Le=ue=>[ue&&!ce&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},uw),B.suffix,Ye(ue)];return c.createElement(vr,{onResize:Ae,disabled:!Ce},ue=>c.createElement(Rv,{tooltipProps:Xe,enableEllipsis:Ce,isEllipsis:oe},c.createElement(wl,Object.assign({className:Q({[`${x}-${l}`]:l,[`${x}-disabled`]:u,[`${x}-ellipsis`]:we,[`${x}-ellipsis-single-line`]:re,[`${x}-ellipsis-multiple-line`]:me},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:me?pe:void 0}),component:h,ref:Or(ue,E,t),direction:m,onClick:j.includes("text")?H:void 0,"aria-label":Ze==null?void 0:Ze.toString(),title:p},R),c.createElement(sw,{enableMeasure:Ce&&!ge,text:d,rows:pe,width:tt,onEllipsis:Ue,expanded:ce,miscDeps:[V,ce,k,w,I]},(Ee,Ke)=>cw(e,c.createElement(c.Fragment,null,Ee.length>0&&Ke&&!ce&&Ze?c.createElement("span",{key:"show-content","aria-hidden":!0},Ee):Ee,Le(Ke)))))))});var dw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const fw=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=dw(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=It("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,c.createElement(Qo,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),vw=c.forwardRef((e,t)=>c.createElement(Qo,Object.assign({ref:t},e,{component:"div"})));var gw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const mw=(e,t)=>{var{ellipsis:r}=e,n=gw(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?hr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=It("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(Qo,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},pw=c.forwardRef(mw);var hw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const xu=[1,2,3,4,5],bw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=hw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=It("Typography.Title");process.env.NODE_ENV!=="production"&&o(xu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return xu.includes(r)?a=`h${r}`:a="h1",c.createElement(Qo,Object.assign({ref:t},n,{component:a}))}),Yr=wl;Yr.Text=pw;Yr.Link=fw;Yr.Title=bw;Yr.Paragraph=vw;const yw=xn(ko)`
|
|
202
|
+
`]:Object.assign(Object.assign({},Td(e)),{marginInlineStart:e.marginXXS})}),Dx(e)),zx(e)),Vx()),{"&-rtl":{direction:"rtl"}})}},kx=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),$v=br("Typography",e=>[Bx(e)],kx),Hx=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:o,maxLength:i,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:v,enterIcon:b=c.createElement(xv,null)}=e,h=c.useRef(null),p=c.useRef(!1),g=c.useRef(),[S,m]=c.useState(l);c.useEffect(()=>{m(l)},[l]),c.useEffect(()=>{var H;if(!((H=h.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:T}=h.current.resizableTextArea;T.focus();const{length:O}=T.value;T.setSelectionRange(O,O)}},[]);const y=H=>{let{target:T}=H;m(T.value.replace(/[\n\r]/g,""))},E=()=>{p.current=!0},C=()=>{p.current=!1},x=H=>{let{keyCode:T}=H;p.current||(g.current=T)},R=()=>{u(S.trim())},w=H=>{let{keyCode:T,ctrlKey:O,altKey:I,metaKey:D,shiftKey:V}=H;g.current===T&&!p.current&&!O&&!I&&!D&&!V&&(T===le.ENTER?(R(),f==null||f()):T===le.ESC&&d())},$=()=>{R()},N=v?`${t}-${v}`:"",[F,j,A]=$v(t),M=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},n,N,j,A);return F(c.createElement("div",{className:M,style:a},c.createElement(sx,{ref:h,maxLength:i,value:S,onChange:y,onKeyDown:x,onKeyUp:w,onCompositionStart:E,onCompositionEnd:C,onBlur:$,"aria-label":r,rows:1,autoSize:s}),b!==null?zo(b,{className:`${t}-edit-content-confirm`}):null))};var Wx=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}},Gx=Wx,hu={"text/plain":"Text","text/html":"Url",default:"Text"},Ux="Copy to clipboard: #{key}, Enter";function Kx(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function qx(e,t){var r,n,a,o,i,s,l=!1;t||(t={}),r=t.debug||!1;try{a=Gx(),o=document.createRange(),i=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=hu[t.format]||hu.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=Kx("message"in t?t.message:Ux),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var Xx=qx;const Yx=Ou(Xx);var Qx=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(d){try{u(n.next(d))}catch(f){i(f)}}function l(d){try{u(n.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const Zx=e=>{let{copyConfig:t,children:r}=e;const[n,a]=c.useState(!1),[o,i]=c.useState(!1),s=c.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),c.useEffect(()=>l,[]);const d=Bt(f=>Qx(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;Yx(b||String(r)||"",u),i(!1),a(!0),l(),s.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(b){throw i(!1),b}}));return{copied:n,copyLoading:o,onClick:d}};function Ni(e,t){return c.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const Jx=e=>{const t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current},ew=(e,t)=>{const r=c.useRef(!1);c.useEffect(()=>{r.current?e():r.current=!0},t)};var tw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const wl=c.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:l,style:u}=e,d=tw(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:b}=c.useContext(ot),h=l??v;let p=t;i&&(p=Or(t,i)),process.env.NODE_ENV!=="production"&&It("Typography").deprecated(!i,"setContentRef","ref");const g=f("typography",r),[S,m,y]=$v(g),E=Q(g,b==null?void 0:b.className,{[`${g}-rtl`]:h==="rtl"},a,o,m,y),C=Object.assign(Object.assign({},b==null?void 0:b.style),u);return S(c.createElement(n,Object.assign({className:E,style:C,ref:p},d),s))});process.env.NODE_ENV!=="production"&&(wl.displayName="Typography");function bu(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function to(e,t,r){return e===!0||e===void 0?t:e||r&&t}function rw(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),!(r.left<=n.left&&n.right<=r.right&&r.top<=n.top&&n.bottom<=r.bottom)}const nw=e=>{const{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:o,icon:i,loading:s,tabIndex:l,onCopy:u}=e,d=bu(o),f=bu(i),{copied:v,copy:b}=n??{},h=r?to(d[1],v):to(d[0],b),g=typeof h=="string"?h:r?v:b;return c.createElement(ja,{key:"copy",title:h},c.createElement(Hs,{className:Q(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":g,tabIndex:l},r?to(f[1],c.createElement(If,null),!0):to(f[0],s?c.createElement(sl,null):c.createElement(Cv,null),!0)))},ro=c.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=c.useRef(null);return c.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),c.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)});function Ov(e){const t=typeof e;return t==="string"||t==="number"}function aw(e){let t=0;return e.forEach(r=>{Ov(r)?t+=String(r).length:t+=1}),t}function yu(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const o=e[a],s=Ov(o)?String(o).length:1,l=r+s;if(l>t){const u=t-r;return n.push(String(o).slice(0,u)),n}n.push(o),r=l}return e}const Ii=0,Mi=1,Ai=2,ji=3,Su=4,no={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ow(e){const{enableMeasure:t,width:r,text:n,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>$r(n),[n]),d=c.useMemo(()=>aw(u),[n]),f=c.useMemo(()=>a(u,!1),[n]),[v,b]=c.useState(null),h=c.useRef(null),p=c.useRef(null),g=c.useRef(null),S=c.useRef(null),m=c.useRef(null),[y,E]=c.useState(!1),[C,x]=c.useState(Ii),[R,w]=c.useState(0),[$,N]=c.useState(null);yt(()=>{x(t&&r&&d?Mi:Ii)},[r,n,o,t,u]),yt(()=>{var M,H,T,O;if(C===Mi){x(Ai);const I=p.current&&getComputedStyle(p.current).whiteSpace;N(I)}else if(C===Ai){const I=!!(!((M=g.current)===null||M===void 0)&&M.isExceed());x(I?ji:Su),b(I?[0,d]:null),E(I);const D=((H=g.current)===null||H===void 0?void 0:H.getHeight())||0,V=o===1?0:((T=S.current)===null||T===void 0?void 0:T.getHeight())||0,k=((O=m.current)===null||O===void 0?void 0:O.getHeight())||0,K=V+k,W=Math.max(D,K);w(W+1),l(I)}},[C]);const F=v?Math.ceil((v[0]+v[1])/2):0;yt(()=>{var M;const[H,T]=v||[0,0];if(H!==T){const I=(((M=h.current)===null||M===void 0?void 0:M.getHeight())||0)>R;let D=F;T-H===1&&(D=I?H:T),b(I?[H,D]:[D,T])}},[v,F]);const j=c.useMemo(()=>{if(!t)return a(u,!1);if(C!==ji||!v||v[0]!==v[1]){const M=a(u,!1);return C!==Su&&C!==Ii?c.createElement("span",{style:Object.assign(Object.assign({},no),{WebkitLineClamp:o})},M):M}return a(i?u:yu(u,v[0]),y)},[i,C,v,u].concat(ye(s))),A={width:r,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,j,C===Ai&&c.createElement(c.Fragment,null,c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:o}),ref:g},f),c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:o-1}),ref:S},f),c.createElement(ro,{style:Object.assign(Object.assign(Object.assign({},A),no),{WebkitLineClamp:1}),ref:m},a([],!0))),C===ji&&v&&v[0]!==v[1]&&c.createElement(ro,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(yu(u,F),!0)),C===Mi&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const Rv=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:c.createElement(ja,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(Rv.displayName="EllipsisTooltip");var iw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function sw(e,t){let{mark:r,code:n,underline:a,delete:o,strong:i,keyboard:s,italic:l}=e,u=t;function d(f,v){v&&(u=c.createElement(f,{},u))}return d("strong",i),d("u",a),d("del",o),d("code",n),d("mark",r),d("kbd",s),d("i",l),u}const lw="...",Qo=c.forwardRef((e,t)=>{var r,n,a;const{prefixCls:o,className:i,style:s,type:l,disabled:u,children:d,ellipsis:f,editable:v,copyable:b,component:h,title:p}=e,g=iw(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:m}=c.useContext(ot),[y]=Mm("Text"),E=c.useRef(null),C=c.useRef(null),x=S("typography",o),R=hr(g,["mark","code","delete","underline","strong","keyboard","italic"]),[w,$]=Ni(v),[N,F]=or(!1,{value:$.editing}),{triggerType:j=["icon"]}=$,A=ue=>{var Ee;ue&&((Ee=$.onStart)===null||Ee===void 0||Ee.call($)),F(ue)},M=Jx(N);ew(()=>{var ue;!N&&M&&((ue=C.current)===null||ue===void 0||ue.focus())},[N]);const H=ue=>{ue==null||ue.preventDefault(),A(!0)},T=ue=>{var Ee;(Ee=$.onChange)===null||Ee===void 0||Ee.call($,ue),A(!1)},O=()=>{var ue;(ue=$.onCancel)===null||ue===void 0||ue.call($),A(!1)},[I,D]=Ni(b),{copied:V,copyLoading:k,onClick:K}=Zx({copyConfig:D,children:d}),[W,q]=c.useState(!1),[Y,Z]=c.useState(!1),[J,te]=c.useState(!1),[ae,fe]=c.useState(!1),[de,ve]=c.useState(!0),[we,B]=Ni(f,{expandable:!1,symbol:ue=>ue?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ce,se]=or(B.defaultExpanded||!1,{value:B.expanded}),Ce=we&&(!ce||B.expandable==="collapsible"),{rows:pe=1}=B,ne=c.useMemo(()=>Ce&&(B.suffix!==void 0||B.onEllipsis||B.expandable||w||I),[Ce,B,w,I]);yt(()=>{we&&!ne&&(q(jc("webkitLineClamp")),Z(jc("textOverflow")))},[ne,we]);const[ge,xe]=c.useState(Ce),Me=c.useMemo(()=>ne?!1:pe===1?Y:W,[ne,Y,W]);yt(()=>{xe(Me&&Ce)},[Me,Ce]);const oe=Ce&&(ge?ae:J),re=Ce&&pe===1&&ge,me=Ce&&pe>1&&ge,he=(ue,Ee)=>{var Ke;se(Ee.expanded),(Ke=B.onExpand)===null||Ke===void 0||Ke.call(B,ue,Ee)},[tt,qe]=c.useState(0),Ae=ue=>{let{offsetWidth:Ee}=ue;qe(Ee)},Ue=ue=>{var Ee;te(ue),J!==ue&&((Ee=B.onEllipsis)===null||Ee===void 0||Ee.call(B,ue))};c.useEffect(()=>{const ue=E.current;if(we&&ge&&ue){const Ee=rw(ue);ae!==Ee&&fe(Ee)}},[we,ge,d,me,de,tt]),c.useEffect(()=>{const ue=E.current;if(typeof IntersectionObserver>"u"||!ue||!ge||!Ce)return;const Ee=new IntersectionObserver(()=>{ve(!!ue.offsetParent)});return Ee.observe(ue),()=>{Ee.disconnect()}},[ge,Ce]);let Xe={};B.tooltip===!0?Xe={title:(r=$.text)!==null&&r!==void 0?r:d}:c.isValidElement(B.tooltip)?Xe={title:B.tooltip}:typeof B.tooltip=="object"?Xe=Object.assign({title:(n=$.text)!==null&&n!==void 0?n:d},B.tooltip):Xe={title:B.tooltip};const Ze=c.useMemo(()=>{const ue=Ee=>["string","number"].includes(typeof Ee);if(!(!we||ge)){if(ue($.text))return $.text;if(ue(d))return d;if(ue(p))return p;if(ue(Xe.title))return Xe.title}},[we,ge,p,Xe.title,oe]);if(N)return c.createElement(Hx,{value:(a=$.text)!==null&&a!==void 0?a:typeof d=="string"?d:"",onSave:T,onCancel:O,onEnd:$.onEnd,prefixCls:x,className:i,style:s,direction:m,component:h,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const Fe=()=>{const{expandable:ue,symbol:Ee}=B;return ue?c.createElement(Hs,{key:"expand",className:`${x}-${ce?"collapse":"expand"}`,onClick:Ke=>he(Ke,{expanded:!ce}),"aria-label":ce?y.collapse:y==null?void 0:y.expand},typeof Ee=="function"?Ee(ce):Ee):null},Te=()=>{if(!w)return;const{icon:ue,tooltip:Ee,tabIndex:Ke}=$,rt=$r(Ee)[0]||(y==null?void 0:y.edit),bt=typeof rt=="string"?rt:"";return j.includes("icon")?c.createElement(ja,{key:"edit",title:Ee===!1?"":rt},c.createElement(Hs,{ref:C,className:`${x}-edit`,onClick:H,"aria-label":bt,tabIndex:Ke},ue||c.createElement(Ev,{role:"button"}))):null},it=()=>I?c.createElement(nw,Object.assign({key:"copy"},D,{prefixCls:x,copied:V,locale:y,onCopy:K,loading:k,iconOnly:d==null})):null,Ye=ue=>[ue&&Fe(),Te(),it()],Le=ue=>[ue&&!ce&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},lw),B.suffix,Ye(ue)];return c.createElement(vr,{onResize:Ae,disabled:!Ce},ue=>c.createElement(Rv,{tooltipProps:Xe,enableEllipsis:Ce,isEllipsis:oe},c.createElement(wl,Object.assign({className:Q({[`${x}-${l}`]:l,[`${x}-disabled`]:u,[`${x}-ellipsis`]:we,[`${x}-ellipsis-single-line`]:re,[`${x}-ellipsis-multiple-line`]:me},i),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:me?pe:void 0}),component:h,ref:Or(ue,E,t),direction:m,onClick:j.includes("text")?H:void 0,"aria-label":Ze==null?void 0:Ze.toString(),title:p},R),c.createElement(ow,{enableMeasure:Ce&&!ge,text:d,rows:pe,width:tt,onEllipsis:Ue,expanded:ce,miscDeps:[V,ce,k,w,I]},(Ee,Ke)=>sw(e,c.createElement(c.Fragment,null,Ee.length>0&&Ke&&!ce&&Ze?c.createElement("span",{key:"show-content","aria-hidden":!0},Ee):Ee,Le(Ke)))))))});var cw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const uw=c.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,a=cw(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const i=It("Typography.Link");process.env.NODE_ENV!=="production"&&i(typeof r!="object","usage","`ellipsis` only supports boolean value.")}const o=Object.assign(Object.assign({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,c.createElement(Qo,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),dw=c.forwardRef((e,t)=>c.createElement(Qo,Object.assign({ref:t},e,{component:"div"})));var fw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const vw=(e,t)=>{var{ellipsis:r}=e,n=fw(e,["ellipsis"]);const a=c.useMemo(()=>r&&typeof r=="object"?hr(r,["expandable","rows"]):r,[r]);if(process.env.NODE_ENV!=="production"){const o=It("Typography.Text");process.env.NODE_ENV!=="production"&&o(typeof r!="object"||!r||!("expandable"in r)&&!("rows"in r),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return c.createElement(Qo,Object.assign({ref:t},n,{ellipsis:a,component:"span"}))},gw=c.forwardRef(vw);var mw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Cu=[1,2,3,4,5],pw=c.forwardRef((e,t)=>{const{level:r=1}=e,n=mw(e,["level"]);let a;if(process.env.NODE_ENV!=="production"){const o=It("Typography.Title");process.env.NODE_ENV!=="production"&&o(Cu.includes(r),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}return Cu.includes(r)?a=`h${r}`:a="h1",c.createElement(Qo,Object.assign({ref:t},n,{component:a}))}),Yr=wl;Yr.Text=gw;Yr.Link=uw;Yr.Title=pw;Yr.Paragraph=dw;const hw=xn(ko)`
|
|
232
203
|
border-radius: var(--gf-radius-sm);
|
|
233
204
|
// background: ${e=>e.type==="primary"?"var(--gf-color-button-primary)":""};
|
|
234
205
|
${e=>e.type==="primary"&&xn.css`
|
|
235
206
|
background: var(--gf-color-button-primary);
|
|
236
207
|
`}
|
|
237
|
-
`,
|
|
208
|
+
`,Pv=xn(Xo)`
|
|
238
209
|
border-radius: var(--gf-radius-sm);
|
|
239
210
|
border-color: var(--gf-color-border-base);
|
|
240
211
|
${e=>e.cardType==="default"&&xn.css`
|
|
@@ -246,5 +217,34 @@ html body {
|
|
|
246
217
|
${e=>e.cardType==="debug"&&xn.css`
|
|
247
218
|
background: var(--gf-color-bg-debug);
|
|
248
219
|
`}
|
|
249
|
-
|
|
220
|
+
`;var Ws={exports:{}},na={};/**
|
|
221
|
+
* @license React
|
|
222
|
+
* react-jsx-runtime.production.min.js
|
|
223
|
+
*
|
|
224
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the MIT license found in the
|
|
227
|
+
* LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/var Eu;function bw(){if(Eu)return na;Eu=1;var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,u){var d,f={},v=null,b=null;u!==void 0&&(v=""+u),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(b=l.ref);for(d in l)n.call(l,d)&&!o.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:s,key:v,ref:b,props:f,_owner:a.current}}return na.Fragment=r,na.jsx=i,na.jsxs=i,na}var aa={};/**
|
|
229
|
+
* @license React
|
|
230
|
+
* react-jsx-runtime.development.js
|
|
231
|
+
*
|
|
232
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the MIT license found in the
|
|
235
|
+
* LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/var xu;function yw(){return xu||(xu=1,process.env.NODE_ENV!=="production"&&function(){var e=P,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),h=Symbol.iterator,p="@@iterator";function g(_){if(_===null||typeof _!="object")return null;var G=h&&_[h]||_[p];return typeof G=="function"?G:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(_){{for(var G=arguments.length,X=new Array(G>1?G-1:0),ie=1;ie<G;ie++)X[ie-1]=arguments[ie];y("error",_,X)}}function y(_,G,X){{var ie=S.ReactDebugCurrentFrame,Pe=ie.getStackAddendum();Pe!==""&&(G+="%s",X=X.concat([Pe]));var $e=X.map(function(_e){return String(_e)});$e.unshift("Warning: "+G),Function.prototype.apply.call(console[_],console,$e)}}var E=!1,C=!1,x=!1,R=!1,w=!1,$;$=Symbol.for("react.module.reference");function N(_){return!!(typeof _=="string"||typeof _=="function"||_===n||_===o||w||_===a||_===u||_===d||R||_===b||E||C||x||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===f||_.$$typeof===i||_.$$typeof===s||_.$$typeof===l||_.$$typeof===$||_.getModuleId!==void 0))}function F(_,G,X){var ie=_.displayName;if(ie)return ie;var Pe=G.displayName||G.name||"";return Pe!==""?X+"("+Pe+")":X}function j(_){return _.displayName||"Context"}function A(_){if(_==null)return null;if(typeof _.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var G=_;return j(G)+".Consumer";case i:var X=_;return j(X._context)+".Provider";case l:return F(_,_.render,"ForwardRef");case f:var ie=_.displayName||null;return ie!==null?ie:A(_.type)||"Memo";case v:{var Pe=_,$e=Pe._payload,_e=Pe._init;try{return A(_e($e))}catch{return null}}}return null}var M=Object.assign,H=0,T,O,I,D,V,k,K;function W(){}W.__reactDisabledLog=!0;function q(){{if(H===0){T=console.log,O=console.info,I=console.warn,D=console.error,V=console.group,k=console.groupCollapsed,K=console.groupEnd;var _={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}H++}}function Y(){{if(H--,H===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},_,{value:T}),info:M({},_,{value:O}),warn:M({},_,{value:I}),error:M({},_,{value:D}),group:M({},_,{value:V}),groupCollapsed:M({},_,{value:k}),groupEnd:M({},_,{value:K})})}H<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=S.ReactCurrentDispatcher,J;function te(_,G,X){{if(J===void 0)try{throw Error()}catch(Pe){var ie=Pe.stack.trim().match(/\n( *(at )?)/);J=ie&&ie[1]||""}return`
|
|
237
|
+
`+J+_}}var ae=!1,fe;{var de=typeof WeakMap=="function"?WeakMap:Map;fe=new de}function ve(_,G){if(!_||ae)return"";{var X=fe.get(_);if(X!==void 0)return X}var ie;ae=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Z.current,Z.current=null,q();try{if(G){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(gt){ie=gt}Reflect.construct(_,[],_e)}else{try{_e.call()}catch(gt){ie=gt}_.call(_e.prototype)}}else{try{throw Error()}catch(gt){ie=gt}_()}}catch(gt){if(gt&&ie&&typeof gt.stack=="string"){for(var Ie=gt.stack.split(`
|
|
238
|
+
`),vt=ie.stack.split(`
|
|
239
|
+
`),et=Ie.length-1,ze=vt.length-1;et>=1&&ze>=0&&Ie[et]!==vt[ze];)ze--;for(;et>=1&&ze>=0;et--,ze--)if(Ie[et]!==vt[ze]){if(et!==1||ze!==1)do if(et--,ze--,ze<0||Ie[et]!==vt[ze]){var Et=`
|
|
240
|
+
`+Ie[et].replace(" at new "," at ");return _.displayName&&Et.includes("<anonymous>")&&(Et=Et.replace("<anonymous>",_.displayName)),typeof _=="function"&&fe.set(_,Et),Et}while(et>=1&&ze>=0);break}}}finally{ae=!1,Z.current=$e,Y(),Error.prepareStackTrace=Pe}var Ht=_?_.displayName||_.name:"",zt=Ht?te(Ht):"";return typeof _=="function"&&fe.set(_,zt),zt}function we(_,G,X){return ve(_,!1)}function B(_){var G=_.prototype;return!!(G&&G.isReactComponent)}function ce(_,G,X){if(_==null)return"";if(typeof _=="function")return ve(_,B(_));if(typeof _=="string")return te(_);switch(_){case u:return te("Suspense");case d:return te("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case l:return we(_.render);case f:return ce(_.type,G,X);case v:{var ie=_,Pe=ie._payload,$e=ie._init;try{return ce($e(Pe),G,X)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,Ce={},pe=S.ReactDebugCurrentFrame;function ne(_){if(_){var G=_._owner,X=ce(_.type,_._source,G?G.type:null);pe.setExtraStackFrame(X)}else pe.setExtraStackFrame(null)}function ge(_,G,X,ie,Pe){{var $e=Function.call.bind(se);for(var _e in _)if($e(_,_e)){var Ie=void 0;try{if(typeof _[_e]!="function"){var vt=Error((ie||"React class")+": "+X+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Ie=_[_e](G,_e,ie,X,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(et){Ie=et}Ie&&!(Ie instanceof Error)&&(ne(Pe),m("%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).",ie||"React class",X,_e,typeof Ie),ne(null)),Ie instanceof Error&&!(Ie.message in Ce)&&(Ce[Ie.message]=!0,ne(Pe),m("Failed %s type: %s",X,Ie.message),ne(null))}}}var xe=Array.isArray;function Me(_){return xe(_)}function oe(_){{var G=typeof Symbol=="function"&&Symbol.toStringTag,X=G&&_[Symbol.toStringTag]||_.constructor.name||"Object";return X}}function re(_){try{return me(_),!1}catch{return!0}}function me(_){return""+_}function he(_){if(re(_))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(_)),me(_)}var tt=S.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ue,Xe;Xe={};function Ze(_){if(se.call(_,"ref")){var G=Object.getOwnPropertyDescriptor(_,"ref").get;if(G&&G.isReactWarning)return!1}return _.ref!==void 0}function Fe(_){if(se.call(_,"key")){var G=Object.getOwnPropertyDescriptor(_,"key").get;if(G&&G.isReactWarning)return!1}return _.key!==void 0}function Te(_,G){if(typeof _.ref=="string"&&tt.current&&G&&tt.current.stateNode!==G){var X=A(tt.current.type);Xe[X]||(m('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',A(tt.current.type),_.ref),Xe[X]=!0)}}function it(_,G){{var X=function(){Ae||(Ae=!0,m("%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)",G))};X.isReactWarning=!0,Object.defineProperty(_,"key",{get:X,configurable:!0})}}function Ye(_,G){{var X=function(){Ue||(Ue=!0,m("%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)",G))};X.isReactWarning=!0,Object.defineProperty(_,"ref",{get:X,configurable:!0})}}var Le=function(_,G,X,ie,Pe,$e,_e){var Ie={$$typeof:t,type:_,key:G,ref:X,props:_e,_owner:$e};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function ue(_,G,X,ie,Pe){{var $e,_e={},Ie=null,vt=null;X!==void 0&&(he(X),Ie=""+X),Fe(G)&&(he(G.key),Ie=""+G.key),Ze(G)&&(vt=G.ref,Te(G,Pe));for($e in G)se.call(G,$e)&&!qe.hasOwnProperty($e)&&(_e[$e]=G[$e]);if(_&&_.defaultProps){var et=_.defaultProps;for($e in et)_e[$e]===void 0&&(_e[$e]=et[$e])}if(Ie||vt){var ze=typeof _=="function"?_.displayName||_.name||"Unknown":_;Ie&&it(_e,ze),vt&&Ye(_e,ze)}return Le(_,Ie,vt,Pe,ie,tt.current,_e)}}var Ee=S.ReactCurrentOwner,Ke=S.ReactDebugCurrentFrame;function rt(_){if(_){var G=_._owner,X=ce(_.type,_._source,G?G.type:null);Ke.setExtraStackFrame(X)}else Ke.setExtraStackFrame(null)}var bt;bt=!1;function ut(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function Be(){{if(Ee.current){var _=A(Ee.current.type);if(_)return`
|
|
241
|
+
|
|
242
|
+
Check the render method of \``+_+"`."}return""}}function Ve(_){return""}var De={};function Re(_){{var G=Be();if(!G){var X=typeof _=="string"?_:_.displayName||_.name;X&&(G=`
|
|
243
|
+
|
|
244
|
+
Check the top-level render call using <`+X+">.")}return G}}function be(_,G){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var X=Re(G);if(De[X])return;De[X]=!0;var ie="";_&&_._owner&&_._owner!==Ee.current&&(ie=" It was passed a child from "+A(_._owner.type)+"."),rt(_),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',X,ie),rt(null)}}function Ge(_,G){{if(typeof _!="object")return;if(Me(_))for(var X=0;X<_.length;X++){var ie=_[X];ut(ie)&&be(ie,G)}else if(ut(_))_._store&&(_._store.validated=!0);else if(_){var Pe=g(_);if(typeof Pe=="function"&&Pe!==_.entries)for(var $e=Pe.call(_),_e;!(_e=$e.next()).done;)ut(_e.value)&&be(_e.value,G)}}}function pt(_){{var G=_.type;if(G==null||typeof G=="string")return;var X;if(typeof G=="function")X=G.propTypes;else if(typeof G=="object"&&(G.$$typeof===l||G.$$typeof===f))X=G.propTypes;else return;if(X){var ie=A(G);ge(X,_.props,"prop",ie,_)}else if(G.PropTypes!==void 0&&!bt){bt=!0;var Pe=A(G);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ke(_){{for(var G=Object.keys(_.props),X=0;X<G.length;X++){var ie=G[X];if(ie!=="children"&&ie!=="key"){rt(_),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),rt(null);break}}_.ref!==null&&(rt(_),m("Invalid attribute `ref` supplied to `React.Fragment`."),rt(null))}}var He={};function st(_,G,X,ie,Pe,$e){{var _e=N(_);if(!_e){var Ie="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(Ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var vt=Ve();vt?Ie+=vt:Ie+=Be();var et;_===null?et="null":Me(_)?et="array":_!==void 0&&_.$$typeof===t?(et="<"+(A(_.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):et=typeof _,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,Ie)}var ze=ue(_,G,X,Pe,$e);if(ze==null)return ze;if(_e){var Et=G.children;if(Et!==void 0)if(ie)if(Me(Et)){for(var Ht=0;Ht<Et.length;Ht++)Ge(Et[Ht],_);Object.freeze&&Object.freeze(Et)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(Et,_)}if(se.call(G,"key")){var zt=A(_),gt=Object.keys(G).filter(function(Wt){return Wt!=="key"}),yr=gt.length>0?"{key: someKey, "+gt.join(": ..., ")+": ...}":"{key: someKey}";if(!He[zt+yr]){var Dr=gt.length>0?"{"+gt.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
|
|
245
|
+
let props = %s;
|
|
246
|
+
<%s {...props} />
|
|
247
|
+
React keys must be passed directly to JSX without using spread:
|
|
248
|
+
let props = %s;
|
|
249
|
+
<%s key={someKey} {...props} />`,yr,zt,Dr,zt),He[zt+yr]=!0}}return _===n?ke(ze):pt(ze),ze}}function ht(_,G,X){return st(_,G,X,!0)}function Ot(_,G,X){return st(_,G,X,!1)}var Dt=Ot,kt=ht;aa.Fragment=n,aa.jsx=Dt,aa.jsxs=kt}()),aa}process.env.NODE_ENV==="production"?Ws.exports=bw():Ws.exports=yw();var Pt=Ws.exports;const Wr={style:{colorBgBase:"#FFFFFF",colorPrimaryHover:"#3858F2",colorBgDebug:"orange",colorBorder:"#EAECF0",colorTextSecondary:"#475467",colorTextHeading:"#1D2939",radiusSm:2,paddingMd:16}},{Text:Sw}=Yr,Cw=({disabled:e=!1,icon:t=wv,title:r="Title",description:n,onClick:a,...o})=>{const[i,s]=P.useState(!1),l={backgroundColor:Wr.style.colorBgBase,border:`1px solid ${i?Wr.style.colorPrimaryHover:Wr.style.colorBorder}`,borderRadius:Wr.style.radiusSm,padding:Wr.style.paddingMd},u={color:i?Wr.style.colorPrimaryHover:Wr.style.colorTextHeading,fontWeight:700};return Pt.jsxs("div",{style:l,onClick:()=>a,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),...o,children:[Pt.jsxs(ks,{gutter:16,children:[Pt.jsx(sa,{span:1,children:t}),Pt.jsx(sa,{span:23,children:Pt.jsx(Sw,{style:u,children:r})})]}),Pt.jsxs(ks,{gutter:16,children:[Pt.jsx(sa,{span:1}),Pt.jsx(sa,{span:23,children:n})]})]})},{Paragraph:Ew}=Yr,xw=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return Pt.jsx(Pv,{className:"gf-metrics",cardType:"grey",...a,children:Pt.jsxs(Sv,{vertical:!0,gap:8,children:[Pt.jsxs(Yo,{direction:"horizontal",size:16,align:"end",children:[Pt.jsx("text",{className:"gf-value-bold",children:`${e}%`}),Pt.jsx("text",{className:"gf-cost-italic",children:`€${t} md`})]}),Pt.jsx(Ew,{className:"gf-metrics-description",editable:s,children:o})]})})},{Text:wu}=Yr,ww=({title:e,subtitle:t,type:r="primary"})=>{const n=Q({"gf-title-primary":r==="primary","gf-title-secondary":r==="secondary"}),a=Q({"gf-subtitle-primary":r==="primary","gf-subtitle-secondary":r==="secondary"});return Pt.jsxs(Yo,{className:"gf-full-width",direction:"vertical",size:8,align:"start",children:[Pt.jsx(wu,{className:n,children:e}),Pt.jsx(wu,{className:a,children:t})]})},{Text:$w}=Yr,Ow=({text:e,columns:t=2,editable:r=!1,style:n,className:a})=>{const[o,i]=P.useState(e),s=r?{onChange:i}:!1,l=Q(`gf-description-${t}`,a);return Pt.jsx("div",{className:l,style:n||{},children:Pt.jsx($w,{className:"gf-description-body",editable:s,children:o})})};exports.Description=Ow;exports.GFButton=hw;exports.GFCard=Pv;exports.Metrics=xw;exports.NavCard=Cw;exports.Title=ww;exports.globals=Wr;
|
|
250
250
|
//# sourceMappingURL=index.cjs.js.map
|