@scalant/components 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.es.js +81 -81
- package/dist/components.umd.js +1 -1
- package/package.json +2 -2
package/dist/components.es.js
CHANGED
|
@@ -26,7 +26,7 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
-
import * as React
|
|
29
|
+
import * as React from "react";
|
|
30
30
|
import React__default, { isValidElement, version as version$2, useContext, createContext, useRef, useLayoutEffect as useLayoutEffect$1, useEffect, forwardRef, useState, useMemo as useMemo$1, Children } from "react";
|
|
31
31
|
import * as ReactDOM from "react-dom";
|
|
32
32
|
import ReactDOM__default from "react-dom";
|
|
@@ -545,7 +545,7 @@ function requireReactIs() {
|
|
|
545
545
|
}
|
|
546
546
|
var reactIsExports = requireReactIs();
|
|
547
547
|
function useMemo(getValue2, condition, shouldUpdate) {
|
|
548
|
-
var cacheRef = React
|
|
548
|
+
var cacheRef = React.useRef({});
|
|
549
549
|
if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
550
550
|
cacheRef.current.value = getValue2();
|
|
551
551
|
cacheRef.current.condition = condition;
|
|
@@ -1033,7 +1033,7 @@ function createCache() {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
return new Entity(cssinjsInstanceId);
|
|
1035
1035
|
}
|
|
1036
|
-
var StyleContext = /* @__PURE__ */ React
|
|
1036
|
+
var StyleContext = /* @__PURE__ */ React.createContext({
|
|
1037
1037
|
hashPriority: "low",
|
|
1038
1038
|
cache: createCache(),
|
|
1039
1039
|
defaultCache: true
|
|
@@ -1294,9 +1294,9 @@ var transformToken = function transformToken2(token2, themeKey, config) {
|
|
|
1294
1294
|
scope: config === null || config === void 0 ? void 0 : config.scope
|
|
1295
1295
|
})];
|
|
1296
1296
|
};
|
|
1297
|
-
var useInternalLayoutEffect = process.env.NODE_ENV !== "test" && canUseDom() ? React
|
|
1297
|
+
var useInternalLayoutEffect = process.env.NODE_ENV !== "test" && canUseDom() ? React.useLayoutEffect : React.useEffect;
|
|
1298
1298
|
var useLayoutEffect = function useLayoutEffect2(callback, deps) {
|
|
1299
|
-
var firstMountRef = React
|
|
1299
|
+
var firstMountRef = React.useRef(true);
|
|
1300
1300
|
useInternalLayoutEffect(function() {
|
|
1301
1301
|
return callback(firstMountRef.current);
|
|
1302
1302
|
}, deps);
|
|
@@ -1314,10 +1314,10 @@ var useLayoutUpdateEffect = function useLayoutUpdateEffect2(callback, deps) {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
}, deps);
|
|
1316
1316
|
};
|
|
1317
|
-
var fullClone$2 = _objectSpread2({}, React
|
|
1317
|
+
var fullClone$2 = _objectSpread2({}, React);
|
|
1318
1318
|
var useInsertionEffect$1 = fullClone$2.useInsertionEffect;
|
|
1319
1319
|
var useInsertionEffectPolyfill = function useInsertionEffectPolyfill2(renderEffect, effect, deps) {
|
|
1320
|
-
React
|
|
1320
|
+
React.useMemo(renderEffect, deps);
|
|
1321
1321
|
useLayoutEffect(function() {
|
|
1322
1322
|
return effect(true);
|
|
1323
1323
|
}, deps);
|
|
@@ -1328,7 +1328,7 @@ var useCompatibleInsertionEffect = useInsertionEffect$1 ? function(renderEffect,
|
|
|
1328
1328
|
return effect();
|
|
1329
1329
|
}, deps);
|
|
1330
1330
|
} : useInsertionEffectPolyfill;
|
|
1331
|
-
var fullClone$1 = _objectSpread2({}, React
|
|
1331
|
+
var fullClone$1 = _objectSpread2({}, React);
|
|
1332
1332
|
var useInsertionEffect = fullClone$1.useInsertionEffect;
|
|
1333
1333
|
var useCleanupRegister = function useCleanupRegister2(deps) {
|
|
1334
1334
|
var effectCleanups = [];
|
|
@@ -1342,7 +1342,7 @@ var useCleanupRegister = function useCleanupRegister2(deps) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
effectCleanups.push(fn);
|
|
1344
1344
|
}
|
|
1345
|
-
React
|
|
1345
|
+
React.useEffect(function() {
|
|
1346
1346
|
cleanupFlag = false;
|
|
1347
1347
|
return function() {
|
|
1348
1348
|
cleanupFlag = true;
|
|
@@ -1383,7 +1383,7 @@ if (process.env.NODE_ENV !== "production" && typeof module !== "undefined" && mo
|
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
1385
|
function useGlobalCache(prefix, keyPath, cacheFn, onCacheRemove, onCacheEffect) {
|
|
1386
|
-
var _React$useContext = React
|
|
1386
|
+
var _React$useContext = React.useContext(StyleContext), globalCache = _React$useContext.cache;
|
|
1387
1387
|
var fullPath = [prefix].concat(_toConsumableArray(keyPath));
|
|
1388
1388
|
var fullPathStr = pathKey(fullPath);
|
|
1389
1389
|
var register = useEffectCleanupRegister([fullPathStr]);
|
|
@@ -1401,7 +1401,7 @@ function useGlobalCache(prefix, keyPath, cacheFn, onCacheRemove, onCacheEffect)
|
|
|
1401
1401
|
return updater ? updater(data) : data;
|
|
1402
1402
|
});
|
|
1403
1403
|
};
|
|
1404
|
-
React
|
|
1404
|
+
React.useMemo(
|
|
1405
1405
|
function() {
|
|
1406
1406
|
buildCache();
|
|
1407
1407
|
},
|
|
@@ -2163,7 +2163,7 @@ function Empty() {
|
|
|
2163
2163
|
var STYLE_PREFIX = "style";
|
|
2164
2164
|
function useStyleRegister(info, styleFn) {
|
|
2165
2165
|
var token2 = info.token, path = info.path, hashId = info.hashId, layer = info.layer, nonce = info.nonce, clientOnly = info.clientOnly, _info$order = info.order, order = _info$order === void 0 ? 0 : _info$order;
|
|
2166
|
-
var _React$useContext = React
|
|
2166
|
+
var _React$useContext = React.useContext(StyleContext), autoClear = _React$useContext.autoClear, mock = _React$useContext.mock, defaultCache = _React$useContext.defaultCache, hashPriority = _React$useContext.hashPriority, container = _React$useContext.container, ssrInline = _React$useContext.ssrInline, transformers = _React$useContext.transformers, linters = _React$useContext.linters, cache = _React$useContext.cache, enableLayer = _React$useContext.layer;
|
|
2167
2167
|
var tokenKey = token2._tokenKey;
|
|
2168
2168
|
var fullPath = [tokenKey];
|
|
2169
2169
|
if (enableLayer) {
|
|
@@ -2255,16 +2255,16 @@ function useStyleRegister(info, styleFn) {
|
|
|
2255
2255
|
return function(node2) {
|
|
2256
2256
|
var styleNode;
|
|
2257
2257
|
if (!ssrInline || isMergedClientSide || !defaultCache) {
|
|
2258
|
-
styleNode = /* @__PURE__ */ React
|
|
2258
|
+
styleNode = /* @__PURE__ */ React.createElement(Empty, null);
|
|
2259
2259
|
} else {
|
|
2260
2260
|
var _ref6;
|
|
2261
|
-
styleNode = /* @__PURE__ */ React
|
|
2261
|
+
styleNode = /* @__PURE__ */ React.createElement("style", _extends({}, (_ref6 = {}, _defineProperty(_ref6, ATTR_TOKEN, cachedTokenKey), _defineProperty(_ref6, ATTR_MARK, cachedStyleId), _ref6), {
|
|
2262
2262
|
dangerouslySetInnerHTML: {
|
|
2263
2263
|
__html: cachedStyleStr
|
|
2264
2264
|
}
|
|
2265
2265
|
}));
|
|
2266
2266
|
}
|
|
2267
|
-
return /* @__PURE__ */ React
|
|
2267
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, styleNode, node2);
|
|
2268
2268
|
};
|
|
2269
2269
|
}
|
|
2270
2270
|
var extract$1 = function extract2(cache, effectStyles, options) {
|
|
@@ -2380,11 +2380,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
};
|
|
2382
2382
|
}
|
|
2383
|
-
const WarningContext = /* @__PURE__ */ React
|
|
2383
|
+
const WarningContext = /* @__PURE__ */ React.createContext({});
|
|
2384
2384
|
const devUseWarning = process.env.NODE_ENV !== "production" ? (component) => {
|
|
2385
2385
|
const {
|
|
2386
2386
|
strict
|
|
2387
|
-
} = React
|
|
2387
|
+
} = React.useContext(WarningContext);
|
|
2388
2388
|
const typeWarning = (valid, type, message) => {
|
|
2389
2389
|
if (!valid) {
|
|
2390
2390
|
if (strict === false && type === "deprecated") {
|
|
@@ -3438,7 +3438,7 @@ const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
|
|
|
3438
3438
|
}
|
|
3439
3439
|
return suffixCls ? `${defaultPrefixCls}-${suffixCls}` : defaultPrefixCls;
|
|
3440
3440
|
};
|
|
3441
|
-
const ConfigContext = /* @__PURE__ */ React
|
|
3441
|
+
const ConfigContext = /* @__PURE__ */ React.createContext({
|
|
3442
3442
|
// We provide a default function for Context without provider
|
|
3443
3443
|
getPrefixCls: defaultGetPrefixCls,
|
|
3444
3444
|
iconPrefixCls: defaultIconPrefixCls
|
|
@@ -3448,7 +3448,7 @@ const {
|
|
|
3448
3448
|
} = ConfigContext;
|
|
3449
3449
|
const EMPTY_OBJECT = {};
|
|
3450
3450
|
function useComponentConfig(propName) {
|
|
3451
|
-
const context = React
|
|
3451
|
+
const context = React.useContext(ConfigContext);
|
|
3452
3452
|
const {
|
|
3453
3453
|
getPrefixCls,
|
|
3454
3454
|
direction,
|
|
@@ -3464,8 +3464,8 @@ function useComponentConfig(propName) {
|
|
|
3464
3464
|
getPopupContainer
|
|
3465
3465
|
});
|
|
3466
3466
|
}
|
|
3467
|
-
const DisabledContext = /* @__PURE__ */ React
|
|
3468
|
-
const SizeContext = /* @__PURE__ */ React
|
|
3467
|
+
const DisabledContext = /* @__PURE__ */ React.createContext(false);
|
|
3468
|
+
const SizeContext = /* @__PURE__ */ React.createContext(void 0);
|
|
3469
3469
|
var AbstractCalculator = /* @__PURE__ */ _createClass(function AbstractCalculator2() {
|
|
3470
3470
|
_classCallCheck(this, AbstractCalculator2);
|
|
3471
3471
|
});
|
|
@@ -3648,9 +3648,9 @@ var getCompVarPrefix = function getCompVarPrefix2(component, prefix) {
|
|
|
3648
3648
|
return "".concat([prefix, component.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")].filter(Boolean).join("-"));
|
|
3649
3649
|
};
|
|
3650
3650
|
function useEvent(callback) {
|
|
3651
|
-
var fnRef = React
|
|
3651
|
+
var fnRef = React.useRef();
|
|
3652
3652
|
fnRef.current = callback;
|
|
3653
|
-
var memoFn = React
|
|
3653
|
+
var memoFn = React.useCallback(function() {
|
|
3654
3654
|
var _fnRef$current;
|
|
3655
3655
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3656
3656
|
args[_key] = arguments[_key];
|
|
@@ -3660,9 +3660,9 @@ function useEvent(callback) {
|
|
|
3660
3660
|
return memoFn;
|
|
3661
3661
|
}
|
|
3662
3662
|
function useSafeState(defaultValue) {
|
|
3663
|
-
var destroyRef = React
|
|
3664
|
-
var _React$useState = React
|
|
3665
|
-
React
|
|
3663
|
+
var destroyRef = React.useRef(false);
|
|
3664
|
+
var _React$useState = React.useState(defaultValue), _React$useState2 = _slicedToArray(_React$useState, 2), value = _React$useState2[0], setValue = _React$useState2[1];
|
|
3665
|
+
React.useEffect(function() {
|
|
3666
3666
|
destroyRef.current = false;
|
|
3667
3667
|
return function() {
|
|
3668
3668
|
destroyRef.current = true;
|
|
@@ -4536,7 +4536,7 @@ const {
|
|
|
4536
4536
|
getCommonStyle: genCommonStyle,
|
|
4537
4537
|
getCompUnitless: () => unitless
|
|
4538
4538
|
});
|
|
4539
|
-
var Context = /* @__PURE__ */ React
|
|
4539
|
+
var Context = /* @__PURE__ */ React.createContext({});
|
|
4540
4540
|
var DomWrapper = /* @__PURE__ */ function(_React$Component) {
|
|
4541
4541
|
_inherits(DomWrapper2, _React$Component);
|
|
4542
4542
|
var _super = _createSuper(DomWrapper2);
|
|
@@ -4551,12 +4551,12 @@ var DomWrapper = /* @__PURE__ */ function(_React$Component) {
|
|
|
4551
4551
|
}
|
|
4552
4552
|
}]);
|
|
4553
4553
|
return DomWrapper2;
|
|
4554
|
-
}(React
|
|
4554
|
+
}(React.Component);
|
|
4555
4555
|
function useSyncState(defaultValue) {
|
|
4556
|
-
var _React$useReducer = React
|
|
4556
|
+
var _React$useReducer = React.useReducer(function(x) {
|
|
4557
4557
|
return x + 1;
|
|
4558
4558
|
}, 0), _React$useReducer2 = _slicedToArray(_React$useReducer, 2), forceUpdate = _React$useReducer2[1];
|
|
4559
|
-
var currentValueRef = React
|
|
4559
|
+
var currentValueRef = React.useRef(defaultValue);
|
|
4560
4560
|
var getValue2 = useEvent(function() {
|
|
4561
4561
|
return currentValueRef.current;
|
|
4562
4562
|
});
|
|
@@ -4658,7 +4658,7 @@ const useDomMotionEvents = function(onInternalMotionEnd) {
|
|
|
4658
4658
|
cacheElementRef.current = element;
|
|
4659
4659
|
}
|
|
4660
4660
|
}
|
|
4661
|
-
React
|
|
4661
|
+
React.useEffect(function() {
|
|
4662
4662
|
return function() {
|
|
4663
4663
|
removeMotionEvents(cacheElementRef.current);
|
|
4664
4664
|
};
|
|
@@ -4667,7 +4667,7 @@ const useDomMotionEvents = function(onInternalMotionEnd) {
|
|
|
4667
4667
|
};
|
|
4668
4668
|
var useIsomorphicLayoutEffect = canUseDom() ? useLayoutEffect$1 : useEffect;
|
|
4669
4669
|
const useNextFrame = function() {
|
|
4670
|
-
var nextFrameRef = React
|
|
4670
|
+
var nextFrameRef = React.useRef(null);
|
|
4671
4671
|
function cancelNextFrame() {
|
|
4672
4672
|
wrapperRaf.cancel(nextFrameRef.current);
|
|
4673
4673
|
}
|
|
@@ -4687,7 +4687,7 @@ const useNextFrame = function() {
|
|
|
4687
4687
|
});
|
|
4688
4688
|
nextFrameRef.current = nextFrameId;
|
|
4689
4689
|
}
|
|
4690
|
-
React
|
|
4690
|
+
React.useEffect(function() {
|
|
4691
4691
|
return function() {
|
|
4692
4692
|
cancelNextFrame();
|
|
4693
4693
|
};
|
|
@@ -4730,7 +4730,7 @@ const useStepQueue = function(status, prepareOnly, callback) {
|
|
|
4730
4730
|
}
|
|
4731
4731
|
}
|
|
4732
4732
|
}, [status, step]);
|
|
4733
|
-
React
|
|
4733
|
+
React.useEffect(function() {
|
|
4734
4734
|
return function() {
|
|
4735
4735
|
cancelNextFrame();
|
|
4736
4736
|
};
|
|
@@ -4788,7 +4788,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
4788
4788
|
return {};
|
|
4789
4789
|
}
|
|
4790
4790
|
};
|
|
4791
|
-
var eventHandlers = React
|
|
4791
|
+
var eventHandlers = React.useMemo(function() {
|
|
4792
4792
|
return getEventHandlers(currentStatus);
|
|
4793
4793
|
}, [currentStatus]);
|
|
4794
4794
|
var _useStepQueue = useStepQueue(currentStatus, !supportMotion, function(newStep) {
|
|
@@ -4864,7 +4864,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
4864
4864
|
clearTimeout(deadlineRef.current);
|
|
4865
4865
|
};
|
|
4866
4866
|
}, []);
|
|
4867
|
-
var firstMountChangeRef = React
|
|
4867
|
+
var firstMountChangeRef = React.useRef(false);
|
|
4868
4868
|
useEffect(function() {
|
|
4869
4869
|
if (asyncVisible) {
|
|
4870
4870
|
firstMountChangeRef.current = true;
|
|
@@ -4892,9 +4892,9 @@ function genCSSMotion(config) {
|
|
|
4892
4892
|
function isSupportTransition(props, contextMotion) {
|
|
4893
4893
|
return !!(props.motionName && transitionSupport && contextMotion !== false);
|
|
4894
4894
|
}
|
|
4895
|
-
var CSSMotion2 = /* @__PURE__ */ React
|
|
4895
|
+
var CSSMotion2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
4896
4896
|
var _props$visible = props.visible, visible = _props$visible === void 0 ? true : _props$visible, _props$removeOnLeave = props.removeOnLeave, removeOnLeave = _props$removeOnLeave === void 0 ? true : _props$removeOnLeave, forceRender = props.forceRender, children = props.children, motionName = props.motionName, leavedClassName = props.leavedClassName, eventProps = props.eventProps;
|
|
4897
|
-
var _React$useContext = React
|
|
4897
|
+
var _React$useContext = React.useContext(Context), contextMotion = _React$useContext.motion;
|
|
4898
4898
|
var supportMotion = isSupportTransition(props, contextMotion);
|
|
4899
4899
|
var nodeRef = useRef();
|
|
4900
4900
|
var wrapperNodeRef = useRef();
|
|
@@ -4906,11 +4906,11 @@ function genCSSMotion(config) {
|
|
|
4906
4906
|
}
|
|
4907
4907
|
}
|
|
4908
4908
|
var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3];
|
|
4909
|
-
var renderedRef = React
|
|
4909
|
+
var renderedRef = React.useRef(mergedVisible);
|
|
4910
4910
|
if (mergedVisible) {
|
|
4911
4911
|
renderedRef.current = true;
|
|
4912
4912
|
}
|
|
4913
|
-
var setNodeRef = React
|
|
4913
|
+
var setNodeRef = React.useCallback(function(node2) {
|
|
4914
4914
|
nodeRef.current = node2;
|
|
4915
4915
|
fillRef(ref, node2);
|
|
4916
4916
|
}, [ref]);
|
|
@@ -4951,15 +4951,15 @@ function genCSSMotion(config) {
|
|
|
4951
4951
|
style: statusStyle
|
|
4952
4952
|
}), setNodeRef);
|
|
4953
4953
|
}
|
|
4954
|
-
if (/* @__PURE__ */ React
|
|
4954
|
+
if (/* @__PURE__ */ React.isValidElement(motionChildren) && supportRef(motionChildren)) {
|
|
4955
4955
|
var originNodeRef = getNodeRef(motionChildren);
|
|
4956
4956
|
if (!originNodeRef) {
|
|
4957
|
-
motionChildren = /* @__PURE__ */ React
|
|
4957
|
+
motionChildren = /* @__PURE__ */ React.cloneElement(motionChildren, {
|
|
4958
4958
|
ref: setNodeRef
|
|
4959
4959
|
});
|
|
4960
4960
|
}
|
|
4961
4961
|
}
|
|
4962
|
-
return /* @__PURE__ */ React
|
|
4962
|
+
return /* @__PURE__ */ React.createElement(DomWrapper, {
|
|
4963
4963
|
ref: wrapperNodeRef
|
|
4964
4964
|
}, motionChildren);
|
|
4965
4965
|
});
|
|
@@ -5100,17 +5100,17 @@ function genCSSMotionList(transitionSupport) {
|
|
|
5100
5100
|
var _this$props = this.props, component = _this$props.component, children = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged;
|
|
5101
5101
|
_this$props.onAllRemoved;
|
|
5102
5102
|
var restProps = _objectWithoutProperties(_this$props, _excluded$3);
|
|
5103
|
-
var Component = component || React
|
|
5103
|
+
var Component = component || React.Fragment;
|
|
5104
5104
|
var motionProps = {};
|
|
5105
5105
|
MOTION_PROP_NAMES.forEach(function(prop) {
|
|
5106
5106
|
motionProps[prop] = restProps[prop];
|
|
5107
5107
|
delete restProps[prop];
|
|
5108
5108
|
});
|
|
5109
5109
|
delete restProps.keys;
|
|
5110
|
-
return /* @__PURE__ */ React
|
|
5110
|
+
return /* @__PURE__ */ React.createElement(Component, restProps, keyEntities.map(function(_ref2, index) {
|
|
5111
5111
|
var status = _ref2.status, eventProps = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
5112
5112
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
5113
|
-
return /* @__PURE__ */ React
|
|
5113
|
+
return /* @__PURE__ */ React.createElement(CSSMotion$1, _extends({}, motionProps, {
|
|
5114
5114
|
key: eventProps.key,
|
|
5115
5115
|
visible,
|
|
5116
5116
|
eventProps,
|
|
@@ -5151,7 +5151,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
5151
5151
|
}
|
|
5152
5152
|
}]);
|
|
5153
5153
|
return CSSMotionList2;
|
|
5154
|
-
}(React
|
|
5154
|
+
}(React.Component);
|
|
5155
5155
|
_defineProperty(CSSMotionList, "defaultProps", {
|
|
5156
5156
|
component: "div"
|
|
5157
5157
|
});
|
|
@@ -5255,7 +5255,7 @@ function getTwoToneColors() {
|
|
|
5255
5255
|
}
|
|
5256
5256
|
var IconBase = function IconBase2(props) {
|
|
5257
5257
|
var icon = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties(props, _excluded$2);
|
|
5258
|
-
var svgRef = React
|
|
5258
|
+
var svgRef = React.useRef();
|
|
5259
5259
|
var colors = twoToneColorPalette;
|
|
5260
5260
|
if (primaryColor) {
|
|
5261
5261
|
colors = {
|
|
@@ -5306,9 +5306,9 @@ function getTwoToneColor() {
|
|
|
5306
5306
|
}
|
|
5307
5307
|
var _excluded$1 = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
5308
5308
|
setTwoToneColor(blue.primary);
|
|
5309
|
-
var Icon = /* @__PURE__ */ React
|
|
5309
|
+
var Icon = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
5310
5310
|
var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties(props, _excluded$1);
|
|
5311
|
-
var _React$useContext = React
|
|
5311
|
+
var _React$useContext = React.useContext(IconContext), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? "anticon" : _React$useContext$pre, rootClassName = _React$useContext.rootClassName;
|
|
5312
5312
|
var classString = classNames(rootClassName, prefixCls, _defineProperty(_defineProperty({}, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), "".concat(prefixCls, "-spin"), !!spin || icon.name === "loading"), className);
|
|
5313
5313
|
var iconTabIndex = tabIndex;
|
|
5314
5314
|
if (iconTabIndex === void 0 && onClick) {
|
|
@@ -5319,7 +5319,7 @@ var Icon = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
|
|
|
5319
5319
|
transform: "rotate(".concat(rotate, "deg)")
|
|
5320
5320
|
} : void 0;
|
|
5321
5321
|
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
|
5322
|
-
return /* @__PURE__ */ React
|
|
5322
|
+
return /* @__PURE__ */ React.createElement("span", _extends({
|
|
5323
5323
|
role: "img",
|
|
5324
5324
|
"aria-label": icon.name
|
|
5325
5325
|
}, restProps, {
|
|
@@ -5327,7 +5327,7 @@ var Icon = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
|
|
|
5327
5327
|
tabIndex: iconTabIndex,
|
|
5328
5328
|
onClick,
|
|
5329
5329
|
className: classString
|
|
5330
|
-
}), /* @__PURE__ */ React
|
|
5330
|
+
}), /* @__PURE__ */ React.createElement(IconBase, {
|
|
5331
5331
|
icon,
|
|
5332
5332
|
primaryColor,
|
|
5333
5333
|
secondaryColor,
|
|
@@ -5351,12 +5351,12 @@ function cloneElement(element, props) {
|
|
|
5351
5351
|
}
|
|
5352
5352
|
var LoadingOutlined$1 = { "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" };
|
|
5353
5353
|
var LoadingOutlined = function LoadingOutlined2(props, ref) {
|
|
5354
|
-
return /* @__PURE__ */ React
|
|
5354
|
+
return /* @__PURE__ */ React.createElement(Icon, _extends({}, props, {
|
|
5355
5355
|
ref,
|
|
5356
5356
|
icon: LoadingOutlined$1
|
|
5357
5357
|
}));
|
|
5358
5358
|
};
|
|
5359
|
-
var RefIcon = /* @__PURE__ */ React
|
|
5359
|
+
var RefIcon = /* @__PURE__ */ React.forwardRef(LoadingOutlined);
|
|
5360
5360
|
if (process.env.NODE_ENV !== "production") {
|
|
5361
5361
|
RefIcon.displayName = "LoadingOutlined";
|
|
5362
5362
|
}
|
|
@@ -5722,7 +5722,7 @@ function _unmount() {
|
|
|
5722
5722
|
}
|
|
5723
5723
|
const defaultReactRender = (node2, container) => {
|
|
5724
5724
|
if (process.env.NODE_ENV !== "production") {
|
|
5725
|
-
const majorVersion = parseInt(React
|
|
5725
|
+
const majorVersion = parseInt(React.version.split(".")[0], 10);
|
|
5726
5726
|
const fullKeys = Object.keys(ReactDOM);
|
|
5727
5727
|
process.env.NODE_ENV !== "production" ? warning$2(majorVersion < 19 || fullKeys.includes("createRoot"), "compatible", "antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.") : void 0;
|
|
5728
5728
|
}
|
|
@@ -5828,18 +5828,18 @@ const WaveEffect = (props) => {
|
|
|
5828
5828
|
component,
|
|
5829
5829
|
registerUnmount
|
|
5830
5830
|
} = props;
|
|
5831
|
-
const divRef = React
|
|
5832
|
-
const unmountRef = React
|
|
5833
|
-
React
|
|
5831
|
+
const divRef = React.useRef(null);
|
|
5832
|
+
const unmountRef = React.useRef(null);
|
|
5833
|
+
React.useEffect(() => {
|
|
5834
5834
|
unmountRef.current = registerUnmount();
|
|
5835
5835
|
}, []);
|
|
5836
|
-
const [color, setWaveColor] = React
|
|
5837
|
-
const [borderRadius, setBorderRadius] = React
|
|
5838
|
-
const [left, setLeft] = React
|
|
5839
|
-
const [top, setTop] = React
|
|
5840
|
-
const [width, setWidth] = React
|
|
5841
|
-
const [height, setHeight] = React
|
|
5842
|
-
const [enabled, setEnabled] = React
|
|
5836
|
+
const [color, setWaveColor] = React.useState(null);
|
|
5837
|
+
const [borderRadius, setBorderRadius] = React.useState([]);
|
|
5838
|
+
const [left, setLeft] = React.useState(0);
|
|
5839
|
+
const [top, setTop] = React.useState(0);
|
|
5840
|
+
const [width, setWidth] = React.useState(0);
|
|
5841
|
+
const [height, setHeight] = React.useState(0);
|
|
5842
|
+
const [enabled, setEnabled] = React.useState(false);
|
|
5843
5843
|
const waveStyle = {
|
|
5844
5844
|
left,
|
|
5845
5845
|
top,
|
|
@@ -5870,7 +5870,7 @@ const WaveEffect = (props) => {
|
|
|
5870
5870
|
} = nodeStyle;
|
|
5871
5871
|
setBorderRadius([borderTopLeftRadius, borderTopRightRadius, borderBottomRightRadius, borderBottomLeftRadius].map((radius) => validateNum(parseFloat(radius))));
|
|
5872
5872
|
}
|
|
5873
|
-
React
|
|
5873
|
+
React.useEffect(() => {
|
|
5874
5874
|
if (target) {
|
|
5875
5875
|
const id = wrapperRaf(() => {
|
|
5876
5876
|
syncPos();
|
|
@@ -5891,7 +5891,7 @@ const WaveEffect = (props) => {
|
|
|
5891
5891
|
return null;
|
|
5892
5892
|
}
|
|
5893
5893
|
const isSmallComponent = (component === "Checkbox" || component === "Radio") && (target === null || target === void 0 ? void 0 : target.classList.contains(TARGET_CLS));
|
|
5894
|
-
return /* @__PURE__ */ React
|
|
5894
|
+
return /* @__PURE__ */ React.createElement(CSSMotion, {
|
|
5895
5895
|
visible: true,
|
|
5896
5896
|
motionAppear: true,
|
|
5897
5897
|
motionName: "wave-motion",
|
|
@@ -5910,7 +5910,7 @@ const WaveEffect = (props) => {
|
|
|
5910
5910
|
let {
|
|
5911
5911
|
className: motionClassName
|
|
5912
5912
|
} = _ref;
|
|
5913
|
-
return /* @__PURE__ */ React
|
|
5913
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
5914
5914
|
ref: composeRef(divRef, ref),
|
|
5915
5915
|
className: classNames(className, motionClassName, {
|
|
5916
5916
|
"wave-quick": isSmallComponent
|
|
@@ -5937,7 +5937,7 @@ const showWaveEffect = (target, info) => {
|
|
|
5937
5937
|
function registerUnmount() {
|
|
5938
5938
|
return unmountCallback;
|
|
5939
5939
|
}
|
|
5940
|
-
unmountCallback = reactRender2(/* @__PURE__ */ React
|
|
5940
|
+
unmountCallback = reactRender2(/* @__PURE__ */ React.createElement(WaveEffect, Object.assign({}, info, {
|
|
5941
5941
|
target,
|
|
5942
5942
|
registerUnmount
|
|
5943
5943
|
})), holder);
|
|
@@ -5945,7 +5945,7 @@ const showWaveEffect = (target, info) => {
|
|
|
5945
5945
|
const useWave = (nodeRef, className, component) => {
|
|
5946
5946
|
const {
|
|
5947
5947
|
wave
|
|
5948
|
-
} = React
|
|
5948
|
+
} = React.useContext(ConfigContext);
|
|
5949
5949
|
const [, token2, hashId] = useToken();
|
|
5950
5950
|
const showWave = useEvent((event) => {
|
|
5951
5951
|
const node2 = nodeRef.current;
|
|
@@ -5964,7 +5964,7 @@ const useWave = (nodeRef, className, component) => {
|
|
|
5964
5964
|
hashId
|
|
5965
5965
|
});
|
|
5966
5966
|
});
|
|
5967
|
-
const rafId = React
|
|
5967
|
+
const rafId = React.useRef(null);
|
|
5968
5968
|
const showDebounceWave = (event) => {
|
|
5969
5969
|
wrapperRaf.cancel(rafId.current);
|
|
5970
5970
|
rafId.current = wrapperRaf(() => {
|
|
@@ -6038,10 +6038,10 @@ const useSize = (customSize) => {
|
|
|
6038
6038
|
}
|
|
6039
6039
|
return t;
|
|
6040
6040
|
});
|
|
6041
|
-
const SpaceCompactItemContext = /* @__PURE__ */ React
|
|
6041
|
+
const SpaceCompactItemContext = /* @__PURE__ */ React.createContext(null);
|
|
6042
6042
|
const useCompactItemContext = (prefixCls, direction) => {
|
|
6043
|
-
const compactItemContext = React
|
|
6044
|
-
const compactItemClassnames = React
|
|
6043
|
+
const compactItemContext = React.useContext(SpaceCompactItemContext);
|
|
6044
|
+
const compactItemClassnames = React.useMemo(() => {
|
|
6045
6045
|
if (!compactItemContext) {
|
|
6046
6046
|
return "";
|
|
6047
6047
|
}
|
|
@@ -6071,12 +6071,12 @@ var __rest$1 = function(s, e) {
|
|
|
6071
6071
|
}
|
|
6072
6072
|
return t;
|
|
6073
6073
|
};
|
|
6074
|
-
const GroupSizeContext = /* @__PURE__ */ React
|
|
6074
|
+
const GroupSizeContext = /* @__PURE__ */ React.createContext(void 0);
|
|
6075
6075
|
const ButtonGroup = (props) => {
|
|
6076
6076
|
const {
|
|
6077
6077
|
getPrefixCls,
|
|
6078
6078
|
direction
|
|
6079
|
-
} = React
|
|
6079
|
+
} = React.useContext(ConfigContext);
|
|
6080
6080
|
const {
|
|
6081
6081
|
prefixCls: customizePrefixCls,
|
|
6082
6082
|
size,
|
|
@@ -6084,7 +6084,7 @@ const ButtonGroup = (props) => {
|
|
|
6084
6084
|
} = props, others = __rest$1(props, ["prefixCls", "size", "className"]);
|
|
6085
6085
|
const prefixCls = getPrefixCls("btn-group", customizePrefixCls);
|
|
6086
6086
|
const [, , hashId] = useToken();
|
|
6087
|
-
const sizeCls = React
|
|
6087
|
+
const sizeCls = React.useMemo(() => {
|
|
6088
6088
|
switch (size) {
|
|
6089
6089
|
case "large":
|
|
6090
6090
|
return "lg";
|
|
@@ -6103,9 +6103,9 @@ const ButtonGroup = (props) => {
|
|
|
6103
6103
|
[`${prefixCls}-${sizeCls}`]: sizeCls,
|
|
6104
6104
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
6105
6105
|
}, className, hashId);
|
|
6106
|
-
return /* @__PURE__ */ React
|
|
6106
|
+
return /* @__PURE__ */ React.createElement(GroupSizeContext.Provider, {
|
|
6107
6107
|
value: size
|
|
6108
|
-
}, /* @__PURE__ */ React
|
|
6108
|
+
}, /* @__PURE__ */ React.createElement("div", Object.assign({}, others, {
|
|
6109
6109
|
className: classes
|
|
6110
6110
|
})));
|
|
6111
6111
|
};
|
|
@@ -6688,7 +6688,7 @@ var Slider = function Slider2(props) {
|
|
|
6688
6688
|
})));
|
|
6689
6689
|
};
|
|
6690
6690
|
function useComponent(components) {
|
|
6691
|
-
return React
|
|
6691
|
+
return React.useMemo(function() {
|
|
6692
6692
|
var _ref = components || {}, slider = _ref.slider;
|
|
6693
6693
|
return [slider || Slider];
|
|
6694
6694
|
}, [components]);
|
|
@@ -7843,7 +7843,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
7843
7843
|
}
|
|
7844
7844
|
const Button = (_a) => {
|
|
7845
7845
|
var _b = _a, { children, onClick } = _b, props = __objRest(_b, ["children", "onClick"]);
|
|
7846
|
-
return /* @__PURE__ */
|
|
7846
|
+
return /* @__PURE__ */ React__default.createElement(Button$1, __spreadValues({ type: "primary", onClick }, props), children);
|
|
7847
7847
|
};
|
|
7848
7848
|
export {
|
|
7849
7849
|
Button
|
package/dist/components.umd.js
CHANGED
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var D=(I||(I=1,"production"===process.env.NODE_ENV?N.exports=function(){if(_)return R;_=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),R.ContextConsumer=c,R.ContextProvider=a,R.Element=t,R.ForwardRef=l,R.Fragment=r,R.Lazy=p,R.Memo=d,R.Portal=n,R.Profiler=i,R.StrictMode=o,R.Suspense=u,R.SuspenseList=f,R.isAsyncMode=function(){return!1},R.isConcurrentMode=function(){return!1},R.isContextConsumer=function(e){return g(e)===c},R.isContextProvider=function(e){return g(e)===a},R.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},R.isForwardRef=function(e){return g(e)===l},R.isFragment=function(e){return g(e)===r},R.isLazy=function(e){return g(e)===p},R.isMemo=function(e){return g(e)===d},R.isPortal=function(e){return g(e)===n},R.isProfiler=function(e){return g(e)===i},R.isStrictMode=function(e){return g(e)===o},R.isSuspense=function(e){return g(e)===u},R.isSuspenseList=function(e){return g(e)===f},R.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},R.typeOf=g,R}():N.exports=(L||(L=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case f:return g;default:var v=g&&g.$$typeof;switch(v){case s:case c:case l:case p:case d:case a:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=c,m=a,b=t,y=l,x=r,S=p,C=d,E=n,w=i,k=o,O=u,j=f,$=!1,A=!1;z.ContextConsumer=v,z.ContextProvider=m,z.Element=b,z.ForwardRef=y,z.Fragment=x,z.Lazy=S,z.Memo=C,z.Portal=E,z.Profiler=w,z.StrictMode=k,z.Suspense=O,z.SuspenseList=j,z.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},z.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},z.isContextConsumer=function(e){return g(e)===c},z.isContextProvider=function(e){return g(e)===a},z.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},z.isForwardRef=function(e){return g(e)===l},z.isFragment=function(e){return g(e)===r},z.isLazy=function(e){return g(e)===p},z.isMemo=function(e){return g(e)===d},z.isPortal=function(e){return g(e)===n},z.isProfiler=function(e){return g(e)===i},z.isStrictMode=function(e){return g(e)===o},z.isSuspense=function(e){return g(e)===u},z.isSuspenseList=function(e){return g(e)===f},z.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},z.typeOf=g}()),z)),N.exports);var F=Number(t.version.split(".")[0]),G=function(e,t){"function"==typeof e?e(t):"object"===b(e)&&e&&"current"in e&&(e.current=t)},W=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){G(t,e)}))}},V=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=function(){return W.apply(void 0,t)},o=t,i=function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))},"value"in(a=l.useRef({})).current&&!i(a.current.condition,o)||(a.current.value=r(),a.current.condition=o),a.current.value;var r,o,i,a},X=function(e){var t,n;if(!e)return!1;if(q(e)&&F>=19)return!0;var r=D.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===D.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===D.ForwardRef)};function q(e){return t.isValidElement(e)&&!((n=e)&&"object"===b(n)&&(n.$$typeof===y||n.$$typeof===x)&&n.type===S);var n}var U=function(e){if(e&&q(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A(r.key),r)}}function Y(e,t,n){return t&&Q(e.prototype,t),n&&Q(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z(e,t){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(te=function(){return!!e})()}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){var t=te();return function(){var n,r=ee(e);if(t){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}(this,n)}}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ie(e,t){if(e){if("string"==typeof e)return oe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}function ae(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ce=function(e){return+setTimeout(e,16)},se=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ce=function(e){return window.requestAnimationFrame(e)},se=function(e){return window.cancelAnimationFrame(e)});var le=0,ue=new Map;function fe(e){ue.delete(e)}var de=function(e){var t=le+=1;return function n(r){if(0===r)fe(t),e();else{var o=ce((function(){n(r-1)}));ue.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(u){l=!0,o=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||ie(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function ge(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}de.cancel=function(e){var t=ue.get(e);return fe(e),se(t)},"production"!==process.env.NODE_ENV&&(de.ids=function(){return ue});var ve="data-rc-order",me="data-rc-priority",be=new Map;function ye(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function xe(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Se(e){return Array.from((be.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ge())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),c="prependQueue"===a,s=document.createElement("style");s.setAttribute(ve,a),c&&i&&s.setAttribute(me,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var l=xe(t),u=l.firstChild;if(r){if(c){var f=(t.styles||Se(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ve)))return!1;var t=Number(e.getAttribute(me)||0);return i>=t}));if(f.length)return l.insertBefore(s,f[f.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=xe(t);return(t.styles||Se(n)).find((function(n){return n.getAttribute(ye(t))===e}))}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ee(e,t);n&&xe(t).removeChild(n)}function ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=xe(n),o=Se(r),i=T(T({},n),{},{styles:o});!function(e,t){var n=be.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=Ce("",t),o=r.parentNode;be.set(e,o),e.removeChild(r)}}(r,i);var a=Ee(t,i);if(a){var c,s,l;if(null!==(c=i.csp)&&void 0!==c&&c.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ce(e,i);return u.setAttribute(ye(i),t),u}function Oe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function je(e){return e.join("%")}var $e=function(){function e(t){K(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),this.instanceId=t}return Y(e,[{key:"get",value:function(e){return this.opGet(je(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(je(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Ae="data-token-hash",He="data-css-hash",Me="__cssinjs_instance__";var Te=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(He,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Me]=t[Me]||e,t[Me]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(He,"]"))).forEach((function(t){var n,o=t.getAttribute(He);r[o]?t[Me]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new $e(e)}(),defaultCache:!0});var Be=function(){function e(){K(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Y(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=pe(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=pe(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();H(Be,"MAX_CACHE_SIZE",20),H(Be,"MAX_CACHE_OFFSET",5);var Pe=0,_e=function(){function e(t){K(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Pe,0===t.length&&w(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Pe+=1}return Y(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Ne=new Be;var Re=new WeakMap,Le={};var Ie=new WeakMap;function ze(e){var t=Ie.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof _e?t+=r.id:r&&"object"===b(r)?t+=ze(r):t+=r})),t=he(t),Ie.set(e,t)),t}function De(e,t){return he("".concat(t,"_").concat(ze(e)))}var Fe=ge();function Ge(e){return"number"==typeof e?"".concat(e,"px"):e}function We(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=T(T({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(H(r={},Ae,t),H(r,He,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Xe=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=pe(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},qe=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=pe(e,2),c=a[0],s=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[c])){var l,u=Ve(c,null==n?void 0:n.prefix);r[u]="number"!=typeof s||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[c]?String(s):"".concat(s,"px"),o[c]="var(".concat(u,")")}})),[o,Xe(r,t,{scope:null==n?void 0:n.scope})]},Ue="test"!==process.env.NODE_ENV&&ge()?l.useLayoutEffect:l.useEffect,Ke=function(e,t){var n=l.useRef(!0);Ue((function(){return e(n.current)}),t),Ue((function(){return n.current=!1,function(){n.current=!0}}),[])},Qe=function(e,t){Ke((function(t){if(!t)return e()}),t)},Ye=T({},l).useInsertionEffect,Ze=Ye?function(e,t,n){return Ye((function(){return e(),t()}),n)}:function(e,t,n){l.useMemo(e,n),Ke((function(){return t(!0)}),n)},Je=void 0!==T({},l).useInsertionEffect?function(e){var t=[],n=!1;return l.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&w(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var et=!1;const tt="production"===process.env.NODE_ENV?function(){return!1}:function(){return et};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var nt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(nt&&"function"==typeof nt.webpackHotUpdate){var rt=nt.webpackHotUpdate;nt.webpackHotUpdate=function(){return et=!0,setTimeout((function(){et=!1}),0),rt.apply(void 0,arguments)}}}function ot(e,t,n,r,o){var i=l.useContext(Te).cache,a=je([e].concat(ae(t))),c=Je([a]),s=tt(),u=function(e){i.opUpdate(a,(function(t){var o=pe(t||[void 0,void 0],2),i=o[0],a=void 0===i?0:i,c=o[1],l=c;"production"!==process.env.NODE_ENV&&c&&s&&(null==r||r(l,s),l=null);var u=[a,l||n()];return e?e(u):u}))};l.useMemo((function(){u()}),[a]);var f=i.opGet(a);"production"===process.env.NODE_ENV||f||(u(),f=i.opGet(a));var d=f[1];return Ze((function(){null==o||o(d)}),(function(e){return u((function(t){var n=pe(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(d)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=pe(t||[],2),o=n[0],s=void 0===o?0:o,l=n[1];return 0===s-1?(c((function(){!e&&i.opGet(a)||null==r||r(l,!1)})),null):[s-1,l]}))}}),[a]),d}var it={},at="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",ct=new Map;function st(e,t){ct.set(e,(ct.get(e)||0)-1);var n=Array.from(ct.keys()),r=n.filter((function(e){return(ct.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ae,'="').concat(e,'"]')).forEach((function(e){var n;e[Me]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ct.delete(e)}))}var lt="token";function ut(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.useContext(Te),i=o.cache.instanceId,a=o.container,c=r.salt,s=void 0===c?"":c,l=r.override,u=void 0===l?it:l,f=r.formatToken,d=r.getComputedToken,p=r.cssVar,h=function(e,t){for(var n=Re,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Le)||n.set(Le,e()),n.get(Le)}((function(){return Object.assign.apply(Object,[{}].concat(ae(n)))}),n),g=ze(h),v=ze(u),m=p?ze(p):"",b=ot(lt,[s,e.id,g,v,m],(function(){var t,n=d?d(h,u,e):function(e,t,n,r){var o=T(T({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(h,u,e,f),r=T({},n),o="";if(p){var i=pe(qe(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=De(n,s);n._tokenKey=a,r._tokenKey=De(r,s);var c=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=c,function(e){ct.set(e,(ct.get(e)||0)+1)}(c);var l="".concat(at,"-").concat(he(a));return n._hashId=l,[n,l,r,o,(null==p?void 0:p.key)||""]}),(function(e){st(e[0]._themeKey,i)}),(function(e){var t=pe(e,4),n=t[0],r=t[3];if(p&&r){var o=ke(r,he("css-variables-".concat(n._themeKey)),{mark:He,prepend:"queue",attachTo:a,priority:-999});o[Me]=i,o.setAttribute(Ae,n._themeKey)}}));return b}var ft={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},dt="comm",pt="rule",ht="decl",gt=Math.abs,vt=String.fromCharCode;function mt(e){return e.trim()}function bt(e,t,n){return e.replace(t,n)}function yt(e,t,n){return e.indexOf(t,n)}function xt(e,t){return 0|e.charCodeAt(t)}function St(e,t,n){return e.slice(t,n)}function Ct(e){return e.length}function Et(e,t){return t.push(e),e}var wt=1,kt=1,Ot=0,jt=0,$t=0,At="";function Ht(e,t,n,r,o,i,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:wt,column:kt,length:a,return:"",siblings:c}}function Mt(){return $t=jt<Ot?xt(At,jt++):0,kt++,10===$t&&(kt=1,wt++),$t}function Tt(){return xt(At,jt)}function Bt(){return jt}function Pt(e,t){return St(At,e,t)}function _t(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 Nt(e){return mt(Pt(jt-1,It(91===e?e+2:40===e?e+1:e)))}function Rt(e){for(;($t=Tt())&&$t<33;)Mt();return _t(e)>2||_t($t)>3?"":" "}function Lt(e,t){for(;--t&&Mt()&&!($t<48||$t>102||$t>57&&$t<65||$t>70&&$t<97););return Pt(e,Bt()+(t<6&&32==Tt()&&32==Mt()))}function It(e){for(;Mt();)switch($t){case e:return jt;case 34:case 39:34!==e&&39!==e&&It($t);break;case 40:41===e&&It(e);break;case 92:Mt()}return jt}function zt(e,t){for(;Mt()&&e+$t!==57&&(e+$t!==84||47!==Tt()););return"/*"+Pt(t,jt-1)+"*"+vt(47===e?e:Mt())}function Dt(e){for(;!_t(Tt());)Mt();return Pt(e,jt)}function Ft(e){return function(e){return At="",e}(Gt("",null,null,null,[""],e=function(e){return wt=kt=1,Ot=Ct(At=e),jt=0,[]}(e),0,[0],e))}function Gt(e,t,n,r,o,i,a,c,s){for(var l=0,u=0,f=a,d=0,p=0,h=0,g=1,v=1,m=1,b=0,y="",x=o,S=i,C=r,E=y;v;)switch(h=b,b=Mt()){case 40:if(108!=h&&58==xt(E,f-1)){-1!=yt(E+=bt(Nt(b),"&","&\f"),"&\f",gt(l?c[l-1]:0))&&(m=-1);break}case 34:case 39:case 91:E+=Nt(b);break;case 9:case 10:case 13:case 32:E+=Rt(h);break;case 92:E+=Lt(Bt()-1,7);continue;case 47:switch(Tt()){case 42:case 47:Et(Vt(zt(Mt(),Bt()),t,n,s),s),5!=_t(h||1)&&5!=_t(Tt()||1)||!Ct(E)||" "===St(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:c[l++]=Ct(E)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==m&&(E=bt(E,/\f/g,"")),p>0&&(Ct(E)-f||0===g&&47===h)&&Et(p>32?Xt(E+";",r,n,f-1,s):Xt(bt(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(Et(C=Wt(E,t,n,l,u,o,c,y,x=[],S=[],f,i),i),123===b)if(0===u)Gt(E,t,C,C,x,i,f,c,S);else{switch(d){case 99:if(110===xt(E,3))break;case 108:if(97===xt(E,2))break;default:u=0;case 100:case 109:case 115:}u?Gt(e,C,C,r&&Et(Wt(e,C,C,0,0,o,c,y,o,x=[],f,S),S),o,S,f,c,r?x:S):Gt(E,C,C,C,[""],S,0,c,S)}}l=u=p=0,g=m=1,y=E="",f=a;break;case 58:f=1+Ct(E),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==($t=jt>0?xt(At,--jt):0,kt--,10===$t&&(kt=1,wt--),$t))continue;switch(E+=vt(b),b*g){case 38:m=u>0?1:(E+="\f",-1);break;case 44:c[l++]=(Ct(E)-1)*m,m=1;break;case 64:45===Tt()&&(E+=Nt(Mt())),d=Tt(),u=f=Ct(y=E+=Dt(Bt())),b++;break;case 45:45===h&&2==Ct(E)&&(g=0)}}return i}function Wt(e,t,n,r,o,i,a,c,s,l,u,f){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,v=0,m=0;g<r;++g)for(var b=0,y=St(e,d+1,d=gt(v=a[g])),x=e;b<h;++b)(x=mt(v>0?p[b]+" "+y:bt(y,/&\f/g,p[b])))&&(s[m++]=x);return Ht(e,t,n,0===o?pt:c,s,l,u,f)}function Vt(e,t,n,r){return Ht(e,t,n,dt,vt($t),St(e,2,-2),0,r)}function Xt(e,t,n,r,o){return Ht(e,t,n,ht,St(e,0,r),St(e,r+1,-1),r,o)}function qt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ut(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case ht:return e.return=e.return||e.value;case dt:return"";case"@keyframes":return e.return=e.value+"{"+qt(e.children,r)+"}";case pt:if(!Ct(e.value=e.props.join(",")))return""}return Ct(n=qt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kt(e,t){var n=t.path,r=t.parentSelectors;$(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Qt,Yt=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&Kt("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Zt=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Kt("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Jt="data-ant-cssinjs-cache-path",en="_FILE_STYLE__",tn=!0;function nn(e){return function(){if(!Qt&&(Qt={},ge())){var e=document.createElement("div");e.className=Jt,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=pe(e.split(":"),2),n=t[0],r=t[1];Qt[n]=r}));var n,r=document.querySelector("style[".concat(Jt,"]"));r&&(tn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Qt[e]}var rn="_skip_check_",on="_multi_value_";function an(e){return qt(Ft(e),Ut).replace(/\{%%%\:[^;];}/g,";")}function cn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(ae(n.slice(1))).join(" ")})).join(",")}var sn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,c=n.hashId,s=n.layer,l=n.path,u=n.hashPriority,f=n.transformers,d=void 0===f?[]:f,p=n.linters,h=void 0===p?[]:p,g="",v={};function m(t){var r=t.getName(c);if(!v[r]){var o=pe(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];v[r]="@keyframes ".concat(t.getName(c)).concat(o)}}var y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return y.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)g+="".concat(r,"\n");else if(r._keyframe)m(r);else{var s=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==b(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===b(e)&&e&&(rn in e||on in e)}(r)){let e=function(e,t){"production"===process.env.NODE_ENV||"object"===b(r)&&null!=r&&r[rn]||[Yt,Zt].concat(ae(h)).forEach((function(n){return n(e,t,{path:l,hashId:c,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;ft[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),o=t.getName(c)),g+="".concat(n,":").concat(o,";")};var f,d=null!==(f=null==r?void 0:r.value)&&void 0!==f?f:r;"object"===b(r)&&null!=r&&r[on]&&Array.isArray(d)?d.forEach((function(n){e(t,n)})):e(t,d)}else{var p=!1,y=t.trim(),x=!1;(o||i)&&c?y.startsWith("@")?p=!0:y=cn("&"===y?"":t,c,u):!o||c||"&"!==y&&""!==y||(y="",x=!0);var S=pe(e(r,n,{root:x,injectHash:p,parentSelectors:[].concat(ae(a),[y])}),2),C=S[0],E=S[1];v=T(T({},v),E),g+="".concat(y).concat(C)}}))}})),o?s&&(g&&(g="@layer ".concat(s.name," {").concat(g,"}")),s.dependencies&&(v["@layer ".concat(s.name)]=s.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(s.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,v]};function ln(e,t){return he("".concat(e.join("%")).concat(t))}function un(){return null}var fn="style";function dn(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,f=l.useContext(Te),d=f.autoClear,p=f.mock,h=f.defaultCache,g=f.hashPriority,v=f.container,b=f.ssrInline,y=f.transformers,x=f.linters,S=f.cache,C=f.layer,E=n._tokenKey,w=[E];C&&w.push("layer"),w.push.apply(w,ae(r));var k=Fe;"production"!==process.env.NODE_ENV&&void 0!==p&&(k="client"===p);var O=ot(fn,w,(function(){var e=w.join("|");if(nn(e)){var n=function(e){var t=Qt[e],n=null;if(t&&ge())if(tn)n=en;else{var r=document.querySelector("style[".concat(He,'="').concat(Qt[e],'"]'));r?n=r.innerHTML:delete Qt[e]}return[n,t]}(e),a=pe(n,2),s=a[0],l=a[1];if(s)return[s,E,l,{},c,u]}var f=t(),d=pe(sn(f,{hashId:o,hashPriority:g,layer:C?i:void 0,path:r.join("-"),transformers:y,linters:x}),2),p=d[0],h=d[1],v=an(p),m=ln(w,v);return[v,E,m,h,c,u]}),(function(e,t){var n=pe(e,3)[2];(t||d)&&Fe&&we(n,{mark:He})}),(function(e){var t=pe(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(k&&n!==en){var i={mark:He,prepend:!C&&"queue",attachTo:v,priority:u},c="function"==typeof a?a():a;c&&(i.csp={nonce:c});var s=[],l=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?s.push(e):l.push(e)})),s.forEach((function(e){ke(an(o[e]),"_layer-".concat(e),T(T({},i),{},{prepend:!0}))}));var f=ke(n,r,i);f[Me]=S.instanceId,f.setAttribute(Ae,E),"production"!==process.env.NODE_ENV&&f.setAttribute("data-cache-path",w.join("|")),l.forEach((function(e){ke(an(o[e]),"_effect-".concat(e),i)}))}})),j=pe(O,3),$=j[0],A=j[1],M=j[2];return function(e){var t,n;b&&!k&&h?t=l.createElement("style",m({},(H(n={},Ae,A),H(n,He,M),n),{dangerouslySetInnerHTML:{__html:$}})):t=l.createElement(un,null);return l.createElement(l.Fragment,null,t,e)}}var pn,hn="cssVar";function gn(e){return e.notSplit=!0,e}H(pn={},fn,(function(e,t,n){var r=pe(e,6),o=r[0],i=r[1],a=r[2],c=r[3],s=r[4],l=r[5],u=(n||{}).plain;if(s)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return f=We(o,i,a,d,u),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=We(an(c[e]),i,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=n+f:f+=n}})),[l,a,f]})),H(pn,lt,(function(e,t,n){var r=pe(e,5),o=r[2],i=r[3],a=r[4],c=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,We(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),H(pn,hn,(function(e,t,n){var r=pe(e,4),o=r[1],i=r[2],a=r[3],c=(n||{}).plain;if(!o)return null;return[-999,i,We(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),gn(["borderTop","borderBottom"]),gn(["borderTop"]),gn(["borderBottom"]),gn(["borderLeft","borderRight"]),gn(["borderLeft"]),gn(["borderRight"]);var vn=t.createContext({});function mn(){}let bn=null;let yn=mn;"production"!==process.env.NODE_ENV&&(yn=(e,t,n)=>{$(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(bn=null,O())});const xn=l.createContext({}),Sn="production"!==process.env.NODE_ENV?e=>{const{strict:t}=l.useContext(xn),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=bn;bn||(bn={}),bn[e]=bn[e]||[],bn[e].includes(o||"")||bn[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",bn)}else"production"!==process.env.NODE_ENV&&yn(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=mn,e},Cn=yn,En={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"},wn=Object.assign(Object.assign({},En),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),kn=Math.round;function On(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const jn=(e,t,n)=>0===n?e:e/100;function $n(e,t){const n=t||255;return e>n?n:e<0?0:e}class An{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(this,"_brightness",void 0),e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):t("rgb")?this.fromRgbString(n):t("hsl")?this.fromHslString(n):(t("hsv")||t("hsb"))&&this.fromHsvString(n)}else if(e instanceof An)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=$n(e.r),this.g=$n(e.g),this.b=$n(e.b),this.a="number"==typeof e.a?$n(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:kn(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:kn(o("r")),g:kn(o("g")),b:kn(o("b")),a:kn(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>kn((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=kn(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=kn(100*this.getSaturation()),n=kn(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=$n(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=kn(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const c=e/60,s=(1-Math.abs(2*n-1))*t,l=s*(1-Math.abs(c%2-1));c>=0&&c<1?(o=s,i=l):c>=1&&c<2?(o=l,i=s):c>=2&&c<3?(i=s,a=l):c>=3&&c<4?(i=l,a=s):c>=4&&c<5?(o=l,a=s):c>=5&&c<6&&(o=s,a=l);const u=n-s/2;this.r=kn(255*(o+u)),this.g=kn(255*(i+u)),this.b=kn(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=kn(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),c=i-a,s=kn(n*(1-t)*255),l=kn(n*(1-t*c)*255),u=kn(n*(1-t*(1-c))*255);switch(a){case 0:this.g=u,this.b=s;break;case 1:this.r=l,this.b=s;break;case 2:this.r=s,this.b=u;break;case 3:this.r=s,this.g=l;break;case 4:this.r=u,this.g=s;break;default:this.g=s,this.b=l}}fromHsvString(e){const t=On(e,jn);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=On(e,jn);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=On(e,((e,t)=>t.includes("%")?kn(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Hn=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Mn(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function Tn(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Bn(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Pn(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new An(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new An({h:Mn(o,i,!0),s:Tn(o,i,!0),v:Bn(o,i,!0)});n.push(a)}n.push(r);for(var c=1;c<=4;c+=1){var s=new An({h:Mn(o,c),s:Tn(o,c),v:Bn(o,c)});n.push(s)}return"dark"===t.theme?Hn.map((function(e){var r=e.index,o=e.amount;return new An(t.backgroundColor||"#141414").mix(n[r],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var _n={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"},Nn=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Nn.primary=Nn[5];var Rn=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Rn.primary=Rn[5];var Ln=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ln.primary=Ln[5];var In=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];In.primary=In[5];var zn=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];zn.primary=zn[5];var Dn=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Dn.primary=Dn[5];var Fn=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Fn.primary=Fn[5];var Gn=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Gn.primary=Gn[5];var Wn=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Wn.primary=Wn[5];var Vn=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vn.primary=Vn[5];var Xn=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Xn.primary=Xn[5];var qn=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];qn.primary=qn[5];var Un=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Un.primary=Un[5];var Kn={red:Nn,volcano:Rn,orange:Ln,gold:In,yellow:zn,lime:Dn,green:Fn,cyan:Gn,blue:Wn,geekblue:Vn,purple:Xn,magenta:qn,grey:Un};function Qn(e){return(e+8)/e}const Yn=e=>{const t=function(e){const t=Array.from({length:10}).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Qn(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],c=r[1],s=r[0],l=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(c*o),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Zn=(e,t)=>new An(e).setA(t).toRgbString(),Jn=(e,t)=>new An(e).darken(t).toHexString(),er=e=>{const t=Pn(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]}},tr=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zn(r,.88),colorTextSecondary:Zn(r,.65),colorTextTertiary:Zn(r,.45),colorTextQuaternary:Zn(r,.25),colorFill:Zn(r,.15),colorFillSecondary:Zn(r,.06),colorFillTertiary:Zn(r,.04),colorFillQuaternary:Zn(r,.02),colorBgSolid:Zn(r,1),colorBgSolidHover:Zn(r,.75),colorBgSolidActive:Zn(r,.95),colorBgLayout:Jn(n,4),colorBgContainer:Jn(n,0),colorBgElevated:Jn(n,0),colorBgSpotlight:Zn(r,.85),colorBgBlur:"transparent",colorBorder:Jn(n,15),colorBorderSecondary:Jn(n,6)}};const nr=(rr=function(e){_n.pink=_n.magenta,Kn.pink=Kn.magenta;const t=Object.keys(En).map((t=>{const n=e[t]===_n[t]?Kn[t]:Pn(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:c,colorPrimary:s,colorBgBase:l,colorTextBase:u}=e,f=n(s),d=n(o),p=n(i),h=n(a),g=n(c),v=r(l,u),m=n(e.colorLink||e.colorInfo),b=new An(h[1]).mix(new An(h[3]),50).toHexString();return Object.assign(Object.assign({},v),{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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new An("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:er,generateNeutralColorPalettes:tr})),Yn(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))},or=Array.isArray(rr)?rr:[rr],Ne.has(or)||Ne.set(or,new _e(or)),Ne.get(or));var rr,or;const ir={token:wn,override:{override:wn},hashed:!0},ar=t.createContext(ir),cr="ant",sr="anticon",lr=l.createContext({getPrefixCls:(e,t)=>t||(e?`${cr}-${e}`:cr),iconPrefixCls:sr}),{Consumer:ur}=lr,fr={};const dr=l.createContext(!1),pr=l.createContext(void 0);var hr=Y((function e(){K(this,e)})),gr="CALC_UNIT",vr=new RegExp(gr,"g");function mr(e){return"number"==typeof e?"".concat(e).concat(gr):e}var br=function(e){J(n,e);var t=re(n);function n(e,r){var o;K(this,n),H(ne(o=t.call(this)),"result",""),H(ne(o),"unitlessCssVar",void 0),H(ne(o),"lowPriority",void 0);var i=b(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=mr(e):"string"===i&&(o.result=e),o}return Y(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(mr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(mr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(vr,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(hr),yr=function(e){J(n,e);var t=re(n);function n(e){var r;return K(this,n),H(ne(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return Y(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(hr),xr=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Sr(e){var t=l.useRef();t.current=e;var n=l.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Cr(e){var t=l.useRef(!1),n=pe(l.useState(e),2),r=n[0],o=n[1];return l.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Er(e){return void 0!==e}function wr(e,t,n,r){var o=T({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=pe(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&$(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=T(T({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var kr="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Or=!0;function jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!kr)return Object.assign.apply(Object,[{}].concat(t));Or=!1;var r={};return t.forEach((function(e){"object"===b(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Or=!0,r}var $r={};function Ar(){}function Hr(e,t,n){var r;return"function"==typeof n?n(jr(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Mr=new(function(){function e(){K(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return Y(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===b(e)?"obj_".concat(t.getObjectID(e)):"".concat(b(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var Tr=function(){return{}};const Br=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Pr(e){return e>=0&&e<=255}function _r(e,t){const{r:n,g:r,b:o,a:i}=new An(e).toRgb();if(i<1)return e;const{r:a,g:c,b:s}=new An(t).toRgb();for(let l=.01;l<=1;l+=.01){const e=Math.round((n-a*(1-l))/l),t=Math.round((r-c*(1-l))/l),i=Math.round((o-s*(1-l))/l);if(Pr(e)&&Pr(t)&&Pr(i))return new An({r:e,g:t,b:i,a:Math.round(100*l)/100}).toRgbString()}return new An({r:n,g:r,b:o,a:1}).toRgbString()}function Nr(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(wn).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:_r(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:_r(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_r(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:_r(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new An("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new An("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new An("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Rr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Lr={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},Ir={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},zr={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},Dr=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Rr(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Nr(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Rr(n,["theme"]);let i=o;r&&(i=Dr(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Fr(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(ar),a=`5.25.1-${n||""}`,c=r||nr,[s,l,u]=ut(c,[wn,e],{salt:a,override:o,getComputedToken:Dr,formatToken:Nr,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Lr,ignore:Ir,preserve:zr}});return[c,u,n?l:"",s,i]}const Gr=(e,t)=>({outline:`${Ge(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),Wr=(e,t)=>({"&:focus-visible":Object.assign({},Gr(e,t))}),{genStyleHooks:Vr,genComponentStyleHook:Xr,genSubStyleComponent:qr}=function(e){var n=e.useCSP,r=void 0===n?Tr:n,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,c=e.getCommonStyle,s=e.getCompUnitless;function l(n,s,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=Array.isArray(n)?n:[n,n],d=pe(f,1)[0],p=f.join("-"),h=e.layer||{name:"antd"};return function(e){var n,f,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,v=o(),m=v.theme,y=v.realToken,x=v.hashId,S=v.token,C=v.cssVar,E=i(),w=E.rootPrefixCls,k=E.iconPrefixCls,O=r(),j=C?"css":"js",$=(n=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Ve(t,C.prefix)),e.add(Ve(t,xr(d,C.prefix)))})),function(e,t){var n="css"===e?br:yr;return function(e){return new n(e,t)}}(j,e)},f=[j,d,null==C?void 0:C.prefix],t.useMemo((function(){var e=Mr.get(f);if(e)return e;var t=n();return Mr.set(f,t),t}),f)),A=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return Ge(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return Ge(e)})).join(","),")")}}}(j),H=A.max,M=A.min,B={theme:m,token:S,hashId:x,nonce:function(){return O.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};"function"==typeof a&&dn(T(T({},B),{},{clientOnly:!1,path:["Shared",w]}),(function(){return a(S,{prefix:{rootPrefixCls:w,iconPrefixCls:k},csp:O})}));var P=dn(T(T({},B),{},{path:[p,e,k]}),(function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,r=Ar;return kr&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return Or&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;$r[e]={global:Array.from(t),component:T(T({},null===(r=$r[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(S),n=t.token,r=t.flush,o=Hr(d,y,l),i=".".concat(e),a=wr(d,y,o,{deprecatedTokens:u.deprecatedTokens});C&&o&&"object"===b(o)&&Object.keys(o).forEach((function(e){o[e]="var(".concat(Ve(e,xr(d,C.prefix)),")")}));var f=jr(n,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(w),calc:$,max:H,min:M},C?o:a),p=s(f,{hashId:x,prefixCls:e,rootPrefixCls:w,iconPrefixCls:k});r(d,a);var h="function"==typeof c?c(f,e,g,u.resetFont):null;return[!1===u.resetStyle?null:h,p]}));return[P,x]}}return{genStyleHooks:function(e,n,r,i){var a=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},f=T(T({},"function"==typeof s?s(e):{}),{},H({},c("zIndexPopup"),!0));Object.keys(u).forEach((function(e){f[c(e)]=u[e]}));var d=T(T({},i),{},{unitless:f,prefixToken:c}),p=l(e,n,r,d),h=function(e,n,r){var i=r.unitless,a=r.injectStyle,c=void 0===a||a,s=r.prefixToken,l=r.ignore,u=function(a){var c=a.rootCls,u=a.cssVar,f=void 0===u?{}:u,d=o().realToken;return function(e,n){var r=e.key,o=e.prefix,i=e.unitless,a=e.ignore,c=e.token,s=e.scope,l=void 0===s?"":s,u=t.useContext(Te),f=u.cache.instanceId,d=u.container,p=c._tokenKey,h=[].concat(ae(e.path),[r,l,p]);ot(hn,h,(function(){var e=n(),t=pe(qe(e,r,{prefix:o,unitless:i,ignore:a,scope:l}),2),c=t[0],s=t[1];return[c,s,ln(h,s),r]}),(function(e){var t=pe(e,3)[2];Fe&&we(t,{mark:He})}),(function(e){var t=pe(e,3),n=t[1],o=t[2];if(n){var i=ke(n,o,{mark:He,prepend:"queue",attachTo:d,priority:-999});i[Me]=f,i.setAttribute(Ae,r)}}))}({path:[e],prefix:f.prefix,key:f.key,unitless:i,ignore:l,token:d,scope:c},(function(){var t=Hr(e,d,n),o=wr(e,d,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).forEach((function(e){o[s(e)]=o[e],delete o[e]})),o})),null},f=function(n){var r=o().cssVar;return[function(o){return c&&r?t.createElement(t.Fragment,null,t.createElement(u,{rootCls:n,cssVar:r,component:e}),o):o},null==r?void 0:r.key]};return f}(a,r,d);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=pe(p(e,t),2)[1],r=pe(h(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=l(e,t,n,T({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:l}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=t.useContext(lr);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=Fr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=t.useContext(lr);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(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"}}}))(e);return[r,{"&":r},(o=null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:sr,{[`.${o}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${o} .${o}-icon`]:{display:"block"}})})];var o},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return!1!==r&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},c),a),{[o]:a})}},getCompUnitless:()=>Lr});var Ur=l.createContext({}),Kr=function(e){J(n,e);var t=re(n);function n(){return K(this,n),t.apply(this,arguments)}return Y(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);var Qr="none",Yr="appear",Zr="enter",Jr="leave",eo="none",to="prepare",no="start",ro="active",oo="end",io="prepared";function ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var co,so,lo,uo=(co=ge(),so="undefined"!=typeof window?window:{},lo={animationend:ao("Animation","AnimationEnd"),transitionend:ao("Transition","TransitionEnd")},co&&("AnimationEvent"in so||delete lo.animationend.animation,"TransitionEvent"in so||delete lo.transitionend.transition),lo),fo={};if(ge()){var po=document.createElement("div");fo=po.style}var ho={};function go(e){if(ho[e])return ho[e];var t=uo[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in fo)return ho[e]=t[i],ho[e]}return""}var vo=go("animationend"),mo=go("transitionend"),bo=!(!vo||!mo),yo=vo||"animationend",xo=mo||"transitionend";function So(e,t){return e?"object"===b(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var Co=ge()?t.useLayoutEffect:t.useEffect;var Eo=[to,no,ro,oo],wo=[to,io],ko=!1;function Oo(e){return e===ro||e===oo}const jo=function(e,t,n){var r=pe(Cr(eo),2),o=r[0],i=r[1],a=function(){var e=l.useRef(null);function t(){de.cancel(e.current)}return l.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=de((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=pe(a,2),s=c[0],u=c[1];var f=t?wo:Eo;return Co((function(){if(o!==eo&&o!==oo){var e=f.indexOf(o),t=f[e+1],r=n(o);r===ko?i(t,!0):t&&s((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),l.useEffect((function(){return function(){u()}}),[]),[function(){i(to,!0)},o]};function $o(e,n,r,o){var i,a,c,s=o.motionEnter,u=void 0===s||s,f=o.motionAppear,d=void 0===f||f,p=o.motionLeave,h=void 0===p||p,g=o.motionDeadline,v=o.motionLeaveImmediately,m=o.onAppearPrepare,b=o.onEnterPrepare,y=o.onLeavePrepare,x=o.onAppearStart,S=o.onEnterStart,C=o.onLeaveStart,E=o.onAppearActive,w=o.onEnterActive,k=o.onLeaveActive,O=o.onAppearEnd,j=o.onEnterEnd,$=o.onLeaveEnd,A=o.onVisibleChanged,M=pe(Cr(),2),B=M[0],P=M[1],_=(i=Qr,a=pe(l.useReducer((function(e){return e+1}),0),2)[1],c=l.useRef(i),[Sr((function(){return c.current})),Sr((function(e){c.current="function"==typeof e?e(c.current):e,a()}))]),N=pe(_,2),R=N[0],L=N[1],I=pe(Cr(null),2),z=I[0],D=I[1],F=R(),G=t.useRef(!1),W=t.useRef(null);function V(){return r()}var X=t.useRef(!1);function q(){L(Qr),D(null,!0)}var U=Sr((function(e){var t=R();if(t!==Qr){var n=V();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Yr&&o?r=null==O?void 0:O(n,e):t===Zr&&o?r=null==j?void 0:j(n,e):t===Jr&&o&&(r=null==$?void 0:$(n,e)),o&&!1!==r&&q()}}})),K=function(e){var n=t.useRef();function r(t){t&&(t.removeEventListener(xo,e),t.removeEventListener(yo,e))}return l.useEffect((function(){return function(){r(n.current)}}),[]),[function(t){n.current&&n.current!==t&&r(n.current),t&&t!==n.current&&(t.addEventListener(xo,e),t.addEventListener(yo,e),n.current=t)},r]}(U),Q=pe(K,1)[0],Y=function(e){switch(e){case Yr:return H(H(H({},to,m),no,x),ro,E);case Zr:return H(H(H({},to,b),no,S),ro,w);case Jr:return H(H(H({},to,y),no,C),ro,k);default:return{}}},Z=l.useMemo((function(){return Y(F)}),[F]),J=pe(jo(F,!e,(function(e){if(e===to){var t=Z[to];return t?t(V()):ko}var n;te in Z&&D((null===(n=Z[te])||void 0===n?void 0:n.call(Z,V(),null))||null);return te===ro&&F!==Qr&&(Q(V()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){U({deadline:!0})}),g))),te===io&&q(),true})),2),ee=J[0],te=J[1],ne=Oo(te);X.current=ne;var re=t.useRef(null);Co((function(){if(!G.current||re.current!==n){P(n);var t,r=G.current;G.current=!0,!r&&n&&d&&(t=Yr),r&&n&&u&&(t=Zr),(r&&!n&&h||!r&&v&&!n&&h)&&(t=Jr);var o=Y(t);t&&(e||o[to])?(L(t),ee()):L(Qr),re.current=n}}),[n]),t.useEffect((function(){(F===Yr&&!d||F===Zr&&!u||F===Jr&&!h)&&L(Qr)}),[d,u,h]),t.useEffect((function(){return function(){G.current=!1,clearTimeout(W.current)}}),[]);var oe=l.useRef(!1);t.useEffect((function(){B&&(oe.current=!0),void 0!==B&&F===Qr&&((oe.current||B)&&(null==A||A(B)),oe.current=!0)}),[B,F]);var ie=z;return Z[to]&&te===no&&(ie=T({transition:"none"},ie)),[F,te,ie,null!=B?B:n]}const Ao=function(e){var n=e;"object"===b(e)&&(n=e.transitionSupport);var r=l.forwardRef((function(e,r){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,c=void 0===a||a,s=e.forceRender,u=e.children,f=e.motionName,d=e.leavedClassName,p=e.eventProps,h=function(e,t){return!(!e.motionName||!n||!1===t)}(e,l.useContext(Ur).motion),g=t.useRef(),m=t.useRef();var b=pe($o(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:P(m.current)}catch(e){return null}}),e),4),y=b[0],x=b[1],S=b[2],C=b[3],E=l.useRef(C);C&&(E.current=!0);var w,k=l.useCallback((function(e){g.current=e,G(r,e)}),[r]),O=T(T({},p),{},{visible:i});if(u)if(y===Qr)w=C?u(T({},O),k):!c&&E.current&&d?u(T(T({},O),{},{className:d}),k):s||!c&&!d?u(T(T({},O),{},{style:{display:"none"}}),k):null;else{var j;x===to?j="prepare":Oo(x)?j="active":x===no&&(j="start");var $=So(f,"".concat(y,"-").concat(j));w=u(T(T({},O),{},{className:v(So(f,y),H(H({},$,$&&j),f,"string"==typeof f)),style:S}),k)}else w=null;l.isValidElement(w)&&X(w)&&(U(w)||(w=l.cloneElement(w,{ref:k})));return l.createElement(Kr,{ref:m},w)}));return r.displayName="CSSMotion",r}(bo);var Ho="add",Mo="keep",To="remove",Bo="removed";function Po(e){var t;return T(T({},t=e&&"object"===b(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function _o(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Po)}var No=["component","children","onVisibleChanged","onAllRemoved"],Ro=["status"],Lo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Io(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function zo(e){return function(e){return Io(e)instanceof ShadowRoot}(e)?Io(e):null}function Do(e){return"object"===b(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===b(e.icon)||"function"==typeof e.icon)}function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function Go(e,n,r){return r?t.createElement(e.tag,T(T({key:n},Fo(e.attrs)),r),(e.children||[]).map((function(t,r){return Go(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,T({key:n},Fo(e.attrs)),(e.children||[]).map((function(t,r){return Go(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Wo(e){return Pn(e)[0]}function Vo(e){return e?Array.isArray(e)?e:[e]:[]}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ao,t=function(t){J(r,t);var n=re(r);function r(){var e;K(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return H(ne(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),H(ne(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:T(T({},e),{},{status:Bo})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Bo})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Y(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged;r.onAllRemoved;var c=Oe(r,No),s=o||l.Fragment,u={};return Lo.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,l.createElement(s,c,n.map((function(n,r){var o=n.status,c=Oe(n,Ro),s=o===Ho||o===Mo;return l.createElement(e,m({},u,{key:c.key,visible:s,eventProps:c,onVisibleChanged:function(e){null==a||a(e,{key:c.key}),e||t.removeKey(c.key)}}),(function(e,t){return i(T(T({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=_o(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=_o(e),a=_o(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var c=a[i];if(c.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return T(T({},e),{},{status:Ho})}))),r=i),n.push(T(T({},c),{},{status:Mo})),r+=1,t=!0;break}}t||n.push(T(T({},e),{},{status:To}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return T(T({},e),{},{status:Ho})}))));var c={};return n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1})),Object.keys(c).filter((function(e){return c[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==To}))).forEach((function(t){t.key===e&&(t.status=Mo)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Bo||e.status!==To}))}}}]),r}(l.Component);H(t,"defaultProps",{component:"div"})}(bo);var Xo=["icon","className","onClick","style","primaryColor","secondaryColor"],qo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Uo=function(e){var n,r,o,i,a,c,s,u,f=e.icon,d=e.className,p=e.onClick,h=e.style,g=e.primaryColor,v=e.secondaryColor,m=Oe(e,Xo),b=l.useRef(),y=qo;if(g&&(y={primaryColor:g,secondaryColor:v||Wo(g)}),n=b,r=t.useContext(vn),o=r.csp,i=r.prefixCls,a=r.layer,c="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(c=c.replace(/anticon/g,i)),a&&(c="@layer ".concat(a," {\n").concat(c,"\n}")),t.useEffect((function(){var e=zo(n.current);ke(c,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})}),[]),s=Do(f),u="icon should be icon definiton, but got ".concat(f),$(s,"[@ant-design/icons] ".concat(u)),!Do(f))return null;var x=f;return x&&"function"==typeof x.icon&&(x=T(T({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),Go(x.icon,"svg-".concat(x.name),T(T({className:d,onClick:p,style:h,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:b}))};function Ko(e){var t=pe(Vo(e),2),n=t[0],r=t[1];return Uo.setTwoToneColors({primaryColor:n,secondaryColor:r})}Uo.displayName="IconReact",Uo.getTwoToneColors=function(){return T({},qo)},Uo.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;qo.primaryColor=t,qo.secondaryColor=n||Wo(t),qo.calculated=!!n};var Qo=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ko(Wn.primary);var Yo=l.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=Oe(e,Qo),f=l.useContext(vn),d=f.prefixCls,p=void 0===d?"anticon":d,h=f.rootClassName,g=v(h,p,H(H({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||"loading"===r.name),n),b=a;void 0===b&&c&&(b=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,x=pe(Vo(s),2),S=x[0],C=x[1];return l.createElement("span",m({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:c,className:g}),l.createElement(Uo,{icon:r,primaryColor:S,secondaryColor:C,style:y}))}));Yo.displayName="AntdIcon",Yo.getTwoToneColor=function(){var e=Uo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Yo.setTwoToneColor=Ko;function Zo(e,n){return((e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n)(e,e,n)}var Jo={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"},ei=function(e,t){return l.createElement(Yo,m({},e,{ref:t,icon:Jo}))},ti=l.forwardRef(ei);function ni(){ni=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{s({},"")}catch(j){s=function(e,t,n){return e[t]=n}}function l(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return s(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var l=u(t,n,r);if("normal"===l.type){if(o=r.done?4:2,l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=4,r.method="throw",r.arg=l.arg)}}}(t,r,new k(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=l;var f={};function d(){}function p(){}function h(){}var g={};s(g,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(O([])));m&&m!==n&&r.call(m,i)&&(g=m);var y=h.prototype=d.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,c){var s=u(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==b(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var o;s(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function C(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function E(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function k(e){this.tryEntries=[[-1]],e.forEach(E,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(b(t)+" is not iterable")}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(y),s(y,c,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],c=this.prev,s=i[1],l=i[2];if(-1===i[0])return r("end"),!1;if(!s&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=c){if(c<s)return this.method="next",this.arg=e,r(s),!0;if(c<l)return r(l),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function ri(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(r,o)}function oi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ri(i,r,o,a,c,"next",e)}function c(e){ri(i,r,o,a,c,"throw",e)}a(void 0)}))}}"production"!==process.env.NODE_ENV&&(ti.displayName="LoadingOutlined");var ii,ai=T({},u),ci=ai.version,si=ai.render,li=ai.unmountComponentAtNode;try{Number((ci||"").split(".")[0])>=18&&(ii=ai.createRoot)}catch(Ga){}function ui(e){var t=ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===b(t)&&(t.usingClientEntryPoint=e)}var fi="__rc_react_root__";function di(e,t){ii?function(e,t){ui(!0);var n=t[fi]||ii(t);ui(!1),n.render(e),t[fi]=n}(e,t):function(e,t){null==si||si(e,t)}(e,t)}function pi(e){return hi.apply(this,arguments)}function hi(){return(hi=oi(ni().mark((function e(t){return ni().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[fi])||void 0===e||e.unmount(),delete t[fi]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gi(e){li(e)}function vi(){return(vi=oi(ni().mark((function e(t){return ni().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ii){e.next=2;break}return e.abrupt("return",pi(t));case 2:gi(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let mi=(e,t)=>{if("production"!==process.env.NODE_ENV){const e=parseInt(l.version.split(".")[0],10),t=Object.keys(u);"production"!==process.env.NODE_ENV&&Cn(e<19||t.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return di(e,t),()=>function(e){return vi.apply(this,arguments)}(t)};const bi=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},yi=Xr("Wave",(e=>[bi(e)])),xi=`${cr}-wave-target`;function Si(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Ci(e){return Number.isNaN(e)?0:e}const Ei=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=l.useRef(null),a=l.useRef(null);l.useEffect((()=>{a.current=o()}),[]);const[c,s]=l.useState(null),[u,f]=l.useState([]),[d,p]=l.useState(0),[h,g]=l.useState(0),[m,b]=l.useState(0),[y,x]=l.useState(0),[S,C]=l.useState(!1),E={left:d,top:h,width:m,height:y,borderRadius:u.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Si(t)?t:Si(n)?n:Si(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:Ci(-parseFloat(r))),g(t?n.offsetTop:Ci(-parseFloat(o))),b(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:l}=e;f([i,a,l,c].map((e=>Ci(parseFloat(e)))))}if(c&&(E["--wave-color"]=c),l.useEffect((()=>{if(n){const e=de((()=>{w(),C(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{de.cancel(e),null==t||t.disconnect()}}}),[]),!S)return null;const k=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(xi));return l.createElement(Ao,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;null===(r=a.current)||void 0===r||r.call(a).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return l.createElement("div",{ref:W(i,n),className:v(t,r,{"wave-quick":k}),style:E})}))},wi=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);let i=null;i=mi(l.createElement(Ei,Object.assign({},t,{target:e,registerUnmount:function(){return i}})),o)},ki=e=>{const{children:n,disabled:r,component:o}=e,{getPrefixCls:i}=t.useContext(lr),a=t.useRef(null),c=i("wave"),[,s]=yi(c),u=((e,t,n)=>{const{wave:r}=l.useContext(lr),[,o,i]=Fr(),a=Sr((a=>{const c=e.current;if((null==r?void 0:r.disabled)||!c)return;const s=c.querySelector(`.${xi}`)||c,{showEffect:l}=r||{};(l||wi)(s,{className:t,token:o,component:n,event:a,hashId:i})})),c=l.useRef(null);return e=>{de.cancel(c.current),c.current=de((()=>{a(e)}))}})(a,v(c,s),o);if(t.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return Zo(n,{ref:X(n)?W(U(n),a):a})};"production"!==process.env.NODE_ENV&&(ki.displayName="Wave");const Oi=l.createContext(null);const ji=l.createContext(void 0),$i=/^[\u4E00-\u9FA5]{2}$/,Ai=$i.test.bind($i);function Hi(e){return"string"==typeof e}function Mi(e){return"text"===e||"link"===e}function Ti(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Hi(e.type)&&Ai(e.props.children)?Zo(e,{children:e.props.children.split("").join(r)}):Hi(e)?Ai(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):function(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}(e)?t.createElement("span",null,e):e}["default","primary","danger"].concat(ae(Br));const Bi=t.forwardRef(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,c=v(`${a}-icon`,r);return t.createElement("span",{ref:n,className:c,style:o},i)})),Pi=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,c=v(`${r}-loading-icon`,o);return t.createElement(Bi,{prefixCls:r,className:c,style:i,ref:n},t.createElement(ti,{className:a}))})),_i=()=>({width:0,opacity:0,transform:"scale(0)"}),Ni=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ri=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a,mount:c}=e,s=!!r;return o?t.createElement(Pi,{prefixCls:n,className:i,style:a}):t.createElement(Ao,{visible:s,motionName:`${n}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:_i,onAppearActive:Ni,onEnterStart:_i,onEnterActive:Ni,onLeaveStart:Ni,onLeaveActive:_i},((e,r)=>{let{className:o,style:c}=e;const s=Object.assign(Object.assign({},a),c);return t.createElement(Pi,{prefixCls:n,className:v(i,o),style:s,ref:r})}))},Li=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ii=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Li(`${t}-primary`,o),Li(`${t}-danger`,i)]}};var zi=["b"],Di=["v"],Fi=function(e){return Math.round(Number(e||0))},Gi=function(e){J(n,e);var t=re(n);function n(e){return K(this,n),t.call(this,function(e){if(e instanceof An)return e;if(e&&"object"===b(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return T(T({},Oe(t,zi)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Y(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Fi(100*e.s),n=Fi(100*e.b),r=Fi(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return T(T({},Oe(e,Di)),{},{b:t,a:this.a})}}]),n}(An),Wi=function(e){return e instanceof Gi?e:new Gi(e)},Vi=Wi("#1677ff"),Xi=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),c=a.width,s=a.height,l=n.current.getBoundingClientRect(),u=l.width/2,f=l.height/2,d=(t.x+u)/c,p=1-(t.y+f)/s,h=o.toHsb(),g=d,v=(t.x+u)/c*360;if(i)switch(i){case"hue":return Wi(T(T({},h),{},{h:v<=0?0:v}));case"alpha":return Wi(T(T({},h),{},{a:g<=0?0:g}))}return Wi({h:h.h,s:d<=0?0:d,b:p>=1?1:p,a:h.a})},qi=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},Ui=function(e){var n=e.color,r=e.prefixCls,o=e.className,i=e.style,a=e.onClick,c="".concat(r,"-color-block");return t.createElement("div",{className:v(c,o),style:i,onClick:a},t.createElement("div",{className:"".concat(c,"-inner"),style:{background:n}}))};function Ki(e){var n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,c=e.calculate,s=e.color,l=e.disabledDrag,u=pe(t.useState({x:0,y:0}),2),f=u[0],d=u[1],p=t.useRef(null),h=t.useRef(null);t.useEffect((function(){d(c())}),[s]),t.useEffect((function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}}),[]);var g=function(e){var t=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=t.pageX,c=t.pageY,s=r.current.getBoundingClientRect(),l=s.x,u=s.y,d=s.width,p=s.height,h=n.current.getBoundingClientRect(),g=h.width,v=h.height,m=g/2,b=v/2,y=Math.max(0,Math.min(a-l,d))-m,x=Math.max(0,Math.min(c-u,p))-b,S={x:y,y:"x"===o?f.y:x};if(0===g&&0===v||g!==v)return!1;null==i||i(S)},v=function(e){e.preventDefault(),g(e)},m=function(e){e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,null==a||a()};return[f,function(e){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),l||(g(e),document.addEventListener("mousemove",v),document.addEventListener("mouseup",m),document.addEventListener("touchmove",v),document.addEventListener("touchend",m),p.current=v,h.current=m)}]}var Qi=function(e){var n=e.size,r=void 0===n?"default":n,o=e.color,i=e.prefixCls;return t.createElement("div",{className:v("".concat(i,"-handler"),H({},"".concat(i,"-handler-sm"),"small"===r)),style:{backgroundColor:o}})},Yi=function(e){var n=e.children,r=e.style,o=e.prefixCls;return t.createElement("div",{className:"".concat(o,"-palette"),style:T({position:"relative"},r)},n)},Zi=t.forwardRef((function(e,n){var r=e.children,o=e.x,i=e.y;return t.createElement("div",{ref:n,style:{position:"absolute",left:"".concat(o,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)})),Ji=function(e){var n=e.color,r=e.onChange,o=e.prefixCls,i=e.onChangeComplete,a=e.disabled,c=t.useRef(),s=t.useRef(),l=t.useRef(n),u=Sr((function(e){var t=Xi({offset:e,targetRef:s,containerRef:c,color:n});l.current=t,r(t)})),f=pe(Ki({color:n,containerRef:c,targetRef:s,calculate:function(){return qi(n)},onDragChange:u,onDragChangeComplete:function(){return null==i?void 0:i(l.current)},disabledDrag:a}),2),d=f[0],p=f[1];return t.createElement("div",{ref:c,className:"".concat(o,"-select"),onMouseDown:p,onTouchStart:p},t.createElement(Yi,{prefixCls:o},t.createElement(Zi,{x:d.x,y:d.y,ref:s},t.createElement(Qi,{color:n.toRgbString(),prefixCls:o})),t.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},ea=function(e,n){var r=function(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,c=pe(Cr((function(){return Er(o)?o:Er(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=c[0],l=c[1],u=void 0!==o?o:s,f=a?a(u):u,d=Sr(i),p=pe(Cr([u]),2),h=p[0],g=p[1];return Qe((function(){var e=h[0];s!==e&&d(s,e)}),[h]),Qe((function(){Er(o)||l(o)}),[o]),[f,Sr((function(e,t){l(e,t),g([u],t)}))]}(e,{value:n}),o=pe(r,2),i=o[0],a=o[1];return[t.useMemo((function(){return Wi(i)}),[i]),a]},ta=function(e){var n=e.colors,r=e.children,o=e.direction,i=void 0===o?"to right":o,a=e.type,c=e.prefixCls,s=t.useMemo((function(){return n.map((function(e,t){var r=Wi(e);return"alpha"===a&&t===n.length-1&&(r=new Gi(r.setA(1))),r.toRgbString()})).join(",")}),[n,a]);return t.createElement("div",{className:"".concat(c,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(s,")")}},r)},na=function(e){var n=e.prefixCls,r=e.colors,o=e.disabled,i=e.onChange,a=e.onChangeComplete,c=e.color,s=e.type,l=t.useRef(),u=t.useRef(),f=t.useRef(c),d=function(e){return"hue"===s?e.getHue():100*e.a},p=Sr((function(e){var t=Xi({offset:e,targetRef:u,containerRef:l,color:c,type:s});f.current=t,i(d(t))})),h=pe(Ki({color:c,targetRef:u,containerRef:l,calculate:function(){return qi(c,s)},onDragChange:p,onDragChangeComplete:function(){a(d(f.current))},direction:"x",disabledDrag:o}),2),g=h[0],m=h[1],b=t.useMemo((function(){if("hue"===s){var e=c.toHsb();return e.s=1,e.b=1,e.a=1,new Gi(e)}return c}),[c,s]),y=t.useMemo((function(){return r.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[r]);return t.createElement("div",{ref:l,className:v("".concat(n,"-slider"),"".concat(n,"-slider-").concat(s)),onMouseDown:m,onTouchStart:m},t.createElement(Yi,{prefixCls:n},t.createElement(Zi,{x:g.x,y:g.y,ref:u},t.createElement(Qi,{size:"small",color:b.toHexString(),prefixCls:n})),t.createElement(ta,{colors:y,type:s,prefixCls:n})))};var ra=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],oa=t.forwardRef((function(e,n){var r=e.value,o=e.defaultValue,i=e.prefixCls,a=void 0===i?"rc-color-picker":i,c=e.onChange,s=e.onChangeComplete,u=e.className,f=e.style,d=e.panelRender,p=e.disabledAlpha,h=void 0!==p&&p,g=e.disabled,b=void 0!==g&&g,y=function(e){return l.useMemo((function(){return[(e||{}).slider||na]}),[e])}(e.components),x=pe(y,1)[0],S=pe(ea(o||Vi,r),2),C=S[0],E=S[1],w=t.useMemo((function(){return C.setA(1).toRgbString()}),[C]),k=function(e,t){r||E(e),null==c||c(e,t)},O=function(e){return new Gi(C.setHue(e))},j=function(e){return new Gi(C.setA(e/100))},$=v("".concat(a,"-panel"),u,H({},"".concat(a,"-panel-disabled"),b)),A={prefixCls:a,disabled:b,color:C},M=t.createElement(t.Fragment,null,t.createElement(Ji,m({onChange:k},A,{onChangeComplete:s})),t.createElement("div",{className:"".concat(a,"-slider-container")},t.createElement("div",{className:v("".concat(a,"-slider-group"),H({},"".concat(a,"-slider-group-disabled-alpha"),h))},t.createElement(x,m({},A,{type:"hue",colors:ra,min:0,max:359,value:C.getHue(),onChange:function(e){k(O(e),{type:"hue",value:e})},onChangeComplete:function(e){s&&s(O(e))}})),!h&&t.createElement(x,m({},A,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:100*C.a,onChange:function(e){k(j(e),{type:"alpha",value:e})},onChangeComplete:function(e){s&&s(j(e))}}))),t.createElement(Ui,{color:C.toRgbString(),prefixCls:a})));return t.createElement("div",{className:$,style:f,ref:n},"function"==typeof d?d(M):M)}));"production"!==process.env.NODE_ENV&&(oa.displayName="ColorPicker");let ia=function(){return Y((function e(t){var n;if(K(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new Gi(this.colors[0].color.metaColor)):this.metaColor=new Gi(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const aa=e=>{const{paddingInline:t,onlyIconSize:n}=e;return jr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},ca=e=>{var t,n,r,o,i,a;const c=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,l=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Qn(c),f=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Qn(s),d=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Qn(l),p=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Gi(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new ia(e.colorBgSolid),"#fff")?"#000":"#fff",h=Br.reduce(((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${Ge(e.controlOutlineWidth)} 0 ${_r(e[`${n}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},h),{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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:c,contentFontSizeSM:s,contentFontSizeLG:l,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-c*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*d)/2-e.lineWidth,0)})},sa=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:c,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ge(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{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"}},"> a":{color:"currentColor"},"&:not(:disabled)":Wr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${i} ${a}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(c).mul(-1).equal()}}}}}},la=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ua=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),fa=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),da=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),pa=(e,t,n,r,o,i,a,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},la(e,Object.assign({background:t},a),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),ha=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},da(e))}),ga=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),va=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?ga:ha;return Object.assign(Object.assign({},o(e)),la(e.componentCls,t,n))},ma=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},va(e,r,o))}),ba=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},va(e,r,o))}),ya=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),xa=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},va(e,n,r))}),Sa=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},va(e,r,o,n))}),Ca=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ma(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ya(e)),xa(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),pa(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Sa(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ea=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ba(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ya(e)),xa(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Sa(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Sa(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),pa(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),wa=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ma(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ba(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ya(e)),xa(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Sa(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Sa(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),pa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ka=e=>Object.assign(Object.assign({},Sa(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),pa(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Oa=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Ca(e),[`${t}-color-primary`]:Ea(e),[`${t}-color-dangerous`]:wa(e),[`${t}-color-link`]:ka(e)},(e=>{const{componentCls:t}=e;return Br.reduce(((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],c=e[`${r}2`],s=e[`${r}3`],l=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},ma(e,e.colorTextLightSolid,o,{background:a},{background:l})),ba(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:l,borderColor:l,background:e.colorBgContainer})),ya(e)),xa(e,i,{background:c},{background:s})),Sa(e,o,"link",{color:a},{color:l})),Sa(e,o,"text",{color:a,background:i},{color:l,background:s}))})}),{})})(e))},ja=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ba(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Sa(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ma(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Sa(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:c,buttonPaddingVertical:s,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:o,height:r,padding:`${Ge(s)} ${Ge(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[c]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:ua(e)},{[`${n}${n}-round${t}`]:fa(e)}]},Aa=e=>{const t=jr(e,{fontSize:e.contentFontSize});return $a(t,e.componentCls)},Ha=e=>{const t=jr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return $a(t,`${e.componentCls}-sm`)},Ma=e=>{const t=jr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $a(t,`${e.componentCls}-lg`)},Ta=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Ba=Vr("Button",(e=>{const t=aa(e);return[sa(t),Aa(t),Ha(t),Ma(t),Ta(t),Oa(t),ja(t),Ii(t)]}),ca,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Pa(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[c]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function _a(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Na(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Pa(e,r,t)),_a(n,r,t))}}function Ra(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 La(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ra(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Ia=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},za=qr(["Button","compact"],(e=>{const t=aa(e);return[Na(t),La(t),Ia(t)]}),ca);const Da={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Fa=t.forwardRef(((e,n)=>{var r,o;const{loading:i=!1,prefixCls:a,color:c,variant:s,type:u,danger:f=!1,shape:d="default",size:p,styles:h,disabled:g,className:m,rootClassName:b,children:y,icon:x,iconPosition:S="start",ghost:C=!1,block:E=!1,htmlType:w="button",classNames:k,style:O={},autoInsertSpace:j,autoFocus:$}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),H=u||"default",{button:M}=t.useContext(lr),[T,B]=t.useMemo((()=>{if(c&&s)return[c,s];if(u||f){const e=Da[H]||[];return f?["danger",e[1]]:e}return(null==M?void 0:M.color)&&(null==M?void 0:M.variant)?[M.color,M.variant]:["default","outlined"]}),[u,c,s,f,null==M?void 0:M.variant,null==M?void 0:M.color]),P="danger"===T?"dangerous":T,{getPrefixCls:_,direction:N,autoInsertSpace:R,className:L,style:I,classNames:z,styles:D}=function(e){const t=l.useContext(lr),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:fr,styles:fr},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}("button"),F=null===(r=null!=j?j:R)||void 0===r||r,G=_("btn",a),[W,X,q]=Ba(G),U=t.useContext(dr),K=null!=g?g:U,Q=t.useContext(ji),Y=t.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(i)),[i]),[Z,J]=t.useState(Y.loading),[ee,te]=t.useState(!1),ne=t.useRef(null),re=V(n,ne),oe=1===t.Children.count(y)&&!x&&!Mi(B),ie=t.useRef(!0);t.useEffect((()=>(ie.current=!1,()=>{ie.current=!0})),[]),t.useEffect((()=>{let e=null;return Y.delay>0?e=setTimeout((()=>{e=null,J(!0)}),Y.delay):J(Y.loading),function(){e&&(clearTimeout(e),e=null)}}),[Y]),t.useEffect((()=>{if(!ne.current||!F)return;const e=ne.current.textContent||"";oe&&Ai(e)?ee||te(!0):ee&&te(!1)})),t.useEffect((()=>{$&&ne.current&&ne.current.focus()}),[]);const ae=t.useCallback((t=>{var n;Z||K?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,Z,K]);if("production"!==process.env.NODE_ENV){const e=Sn("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof x&&x.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${x}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(C&&Mi(B)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ce,compactItemClassnames:se}=((e,t)=>{const n=l.useContext(Oi),r=l.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return v(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}})(G,N),le=(e=>{const n=t.useContext(pr);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:"function"==typeof e?e(n):n:n),[e,n])})((e=>{var t,n;return null!==(n=null!==(t=null!=p?p:ce)&&void 0!==t?t:Q)&&void 0!==n?n:e})),ue=le&&null!==(o={large:"lg",small:"sm",middle:void 0}[le])&&void 0!==o?o:"",fe=Z?"loading":x,de=(pe=A,he=["navigate"],ge=Object.assign({},pe),Array.isArray(he)&&he.forEach((function(e){delete ge[e]})),ge);var pe,he,ge;const ve=v(G,X,q,{[`${G}-${d}`]:"default"!==d&&d,[`${G}-${H}`]:H,[`${G}-dangerous`]:f,[`${G}-color-${P}`]:P,[`${G}-variant-${B}`]:B,[`${G}-${ue}`]:ue,[`${G}-icon-only`]:!y&&0!==y&&!!fe,[`${G}-background-ghost`]:C&&!Mi(B),[`${G}-loading`]:Z,[`${G}-two-chinese-chars`]:ee&&F&&!Z,[`${G}-block`]:E,[`${G}-rtl`]:"rtl"===N,[`${G}-icon-end`]:"end"===S},se,m,b,L),me=Object.assign(Object.assign({},I),O),be=v(null==k?void 0:k.icon,z.icon),ye=Object.assign(Object.assign({},(null==h?void 0:h.icon)||{}),D.icon||{}),xe=x&&!Z?t.createElement(Bi,{prefixCls:G,className:be,style:ye},x):i&&"object"==typeof i&&i.icon?t.createElement(Bi,{prefixCls:G,className:be,style:ye},i.icon):t.createElement(Ri,{existIcon:!!x,prefixCls:G,loading:Z,mount:ie.current}),Se=y||0===y?function(e,n){let r=!1;const o=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t.Children.map(o,(e=>Ti(e,n)))}(y,oe&&F):null;if(void 0!==de.href)return W(t.createElement("a",Object.assign({},de,{className:v(ve,{[`${G}-disabled`]:K}),href:K?void 0:de.href,style:me,onClick:ae,ref:re,tabIndex:K?-1:0}),xe,Se));let Ce=t.createElement("button",Object.assign({},A,{type:w,className:ve,style:me,onClick:ae,disabled:K,ref:re}),xe,Se,se&&t.createElement(za,{prefixCls:G}));return Mi(B)||(Ce=t.createElement(ki,{component:"Button",disabled:Z},Ce)),W(Ce)}));Fa.Group=e=>{const{getPrefixCls:t,direction:n}=l.useContext(lr),{prefixCls:r,size:o,className:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,s]=Fr(),u=l.useMemo((()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}}),[o]);if("production"!==process.env.NODE_ENV){const e=Sn("Button.Group");e.deprecated(!1,"Button.Group","Space.Compact"),"production"!==process.env.NODE_ENV&&e(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const f=v(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},i,s);return l.createElement(ji.Provider,{value:o},l.createElement("div",Object.assign({},a,{className:f})))},Fa.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Fa.displayName="Button");e.Button=e=>{var t=e,{children:n,onClick:r}=t,s=((e,t)=>{var n={};for(var r in e)i.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&o)for(var r of o(e))t.indexOf(r)<0&&a.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onClick"]);return React.createElement(Fa,((e,t)=>{for(var n in t||(t={}))i.call(t,n)&&c(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&c(e,n,t[n]);return e})({type:"primary",onClick:r},s),n)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
15
|
+
*/var D=(I||(I=1,"production"===process.env.NODE_ENV?N.exports=function(){if(_)return R;_=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),R.ContextConsumer=c,R.ContextProvider=a,R.Element=t,R.ForwardRef=l,R.Fragment=r,R.Lazy=p,R.Memo=d,R.Portal=n,R.Profiler=i,R.StrictMode=o,R.Suspense=u,R.SuspenseList=f,R.isAsyncMode=function(){return!1},R.isConcurrentMode=function(){return!1},R.isContextConsumer=function(e){return g(e)===c},R.isContextProvider=function(e){return g(e)===a},R.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},R.isForwardRef=function(e){return g(e)===l},R.isFragment=function(e){return g(e)===r},R.isLazy=function(e){return g(e)===p},R.isMemo=function(e){return g(e)===d},R.isPortal=function(e){return g(e)===n},R.isProfiler=function(e){return g(e)===i},R.isStrictMode=function(e){return g(e)===o},R.isSuspense=function(e){return g(e)===u},R.isSuspenseList=function(e){return g(e)===f},R.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},R.typeOf=g,R}():N.exports=(L||(L=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case f:return g;default:var v=g&&g.$$typeof;switch(v){case s:case c:case l:case p:case d:case a:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=c,m=a,b=t,y=l,x=r,S=p,C=d,E=n,w=i,k=o,O=u,j=f,$=!1,A=!1;z.ContextConsumer=v,z.ContextProvider=m,z.Element=b,z.ForwardRef=y,z.Fragment=x,z.Lazy=S,z.Memo=C,z.Portal=E,z.Profiler=w,z.StrictMode=k,z.Suspense=O,z.SuspenseList=j,z.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},z.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},z.isContextConsumer=function(e){return g(e)===c},z.isContextProvider=function(e){return g(e)===a},z.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},z.isForwardRef=function(e){return g(e)===l},z.isFragment=function(e){return g(e)===r},z.isLazy=function(e){return g(e)===p},z.isMemo=function(e){return g(e)===d},z.isPortal=function(e){return g(e)===n},z.isProfiler=function(e){return g(e)===i},z.isStrictMode=function(e){return g(e)===o},z.isSuspense=function(e){return g(e)===u},z.isSuspenseList=function(e){return g(e)===f},z.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},z.typeOf=g}()),z)),N.exports);var F=Number(t.version.split(".")[0]),G=function(e,t){"function"==typeof e?e(t):"object"===b(e)&&e&&"current"in e&&(e.current=t)},W=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){G(t,e)}))}},V=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r=function(){return W.apply(void 0,t)},o=t,i=function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))},"value"in(a=l.useRef({})).current&&!i(a.current.condition,o)||(a.current.value=r(),a.current.condition=o),a.current.value;var r,o,i,a},X=function(e){var t,n;if(!e)return!1;if(q(e)&&F>=19)return!0;var r=D.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===D.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===D.ForwardRef)};function q(e){return t.isValidElement(e)&&!((n=e)&&"object"===b(n)&&(n.$$typeof===y||n.$$typeof===x)&&n.type===S);var n}var U=function(e){if(e&&q(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A(r.key),r)}}function Y(e,t,n){return t&&Q(e.prototype,t),n&&Q(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z(e,t){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(te=function(){return!!e})()}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){var t=te();return function(){var n,r=ee(e);if(t){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}(this,n)}}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ie(e,t){if(e){if("string"==typeof e)return oe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}function ae(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ce=function(e){return+setTimeout(e,16)},se=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ce=function(e){return window.requestAnimationFrame(e)},se=function(e){return window.cancelAnimationFrame(e)});var le=0,ue=new Map;function fe(e){ue.delete(e)}var de=function(e){var t=le+=1;return function n(r){if(0===r)fe(t),e();else{var o=ce((function(){n(r-1)}));ue.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(u){l=!0,o=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||ie(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function ge(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}de.cancel=function(e){var t=ue.get(e);return fe(e),se(t)},"production"!==process.env.NODE_ENV&&(de.ids=function(){return ue});var ve="data-rc-order",me="data-rc-priority",be=new Map;function ye(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function xe(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Se(e){return Array.from((be.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ge())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),c="prependQueue"===a,s=document.createElement("style");s.setAttribute(ve,a),c&&i&&s.setAttribute(me,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var l=xe(t),u=l.firstChild;if(r){if(c){var f=(t.styles||Se(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ve)))return!1;var t=Number(e.getAttribute(me)||0);return i>=t}));if(f.length)return l.insertBefore(s,f[f.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=xe(t);return(t.styles||Se(n)).find((function(n){return n.getAttribute(ye(t))===e}))}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ee(e,t);n&&xe(t).removeChild(n)}function ke(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=xe(n),o=Se(r),i=T(T({},n),{},{styles:o});!function(e,t){var n=be.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=Ce("",t),o=r.parentNode;be.set(e,o),e.removeChild(r)}}(r,i);var a=Ee(t,i);if(a){var c,s,l;if(null!==(c=i.csp)&&void 0!==c&&c.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ce(e,i);return u.setAttribute(ye(i),t),u}function Oe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function je(e){return e.join("%")}var $e=function(){function e(t){K(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),this.instanceId=t}return Y(e,[{key:"get",value:function(e){return this.opGet(je(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(je(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Ae="data-token-hash",He="data-css-hash",Me="__cssinjs_instance__";var Te=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(He,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Me]=t[Me]||e,t[Me]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(He,"]"))).forEach((function(t){var n,o=t.getAttribute(He);r[o]?t[Me]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new $e(e)}(),defaultCache:!0});var Be=function(){function e(){K(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Y(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=pe(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=pe(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();H(Be,"MAX_CACHE_SIZE",20),H(Be,"MAX_CACHE_OFFSET",5);var Pe=0,_e=function(){function e(t){K(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Pe,0===t.length&&w(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Pe+=1}return Y(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Ne=new Be;var Re=new WeakMap,Le={};var Ie=new WeakMap;function ze(e){var t=Ie.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof _e?t+=r.id:r&&"object"===b(r)?t+=ze(r):t+=r})),t=he(t),Ie.set(e,t)),t}function De(e,t){return he("".concat(t,"_").concat(ze(e)))}var Fe=ge();function Ge(e){return"number"==typeof e?"".concat(e,"px"):e}function We(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=T(T({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(H(r={},Ae,t),H(r,He,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Xe=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=pe(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},qe=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=pe(e,2),c=a[0],s=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])o[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[c])){var l,u=Ve(c,null==n?void 0:n.prefix);r[u]="number"!=typeof s||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[c]?String(s):"".concat(s,"px"),o[c]="var(".concat(u,")")}})),[o,Xe(r,t,{scope:null==n?void 0:n.scope})]},Ue="test"!==process.env.NODE_ENV&&ge()?l.useLayoutEffect:l.useEffect,Ke=function(e,t){var n=l.useRef(!0);Ue((function(){return e(n.current)}),t),Ue((function(){return n.current=!1,function(){n.current=!0}}),[])},Qe=function(e,t){Ke((function(t){if(!t)return e()}),t)},Ye=T({},l).useInsertionEffect,Ze=Ye?function(e,t,n){return Ye((function(){return e(),t()}),n)}:function(e,t,n){l.useMemo(e,n),Ke((function(){return t(!0)}),n)},Je=void 0!==T({},l).useInsertionEffect?function(e){var t=[],n=!1;return l.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n?"production"!==process.env.NODE_ENV&&w(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):t.push(e)}}:function(){return function(e){e()}};var et=!1;const tt="production"===process.env.NODE_ENV?function(){return!1}:function(){return et};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var nt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(nt&&"function"==typeof nt.webpackHotUpdate){var rt=nt.webpackHotUpdate;nt.webpackHotUpdate=function(){return et=!0,setTimeout((function(){et=!1}),0),rt.apply(void 0,arguments)}}}function ot(e,t,n,r,o){var i=l.useContext(Te).cache,a=je([e].concat(ae(t))),c=Je([a]),s=tt(),u=function(e){i.opUpdate(a,(function(t){var o=pe(t||[void 0,void 0],2),i=o[0],a=void 0===i?0:i,c=o[1],l=c;"production"!==process.env.NODE_ENV&&c&&s&&(null==r||r(l,s),l=null);var u=[a,l||n()];return e?e(u):u}))};l.useMemo((function(){u()}),[a]);var f=i.opGet(a);"production"===process.env.NODE_ENV||f||(u(),f=i.opGet(a));var d=f[1];return Ze((function(){null==o||o(d)}),(function(e){return u((function(t){var n=pe(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(d)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=pe(t||[],2),o=n[0],s=void 0===o?0:o,l=n[1];return 0===s-1?(c((function(){!e&&i.opGet(a)||null==r||r(l,!1)})),null):[s-1,l]}))}}),[a]),d}var it={},at="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",ct=new Map;function st(e,t){ct.set(e,(ct.get(e)||0)-1);var n=Array.from(ct.keys()),r=n.filter((function(e){return(ct.get(e)||0)<=0}));n.length-r.length>0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ae,'="').concat(e,'"]')).forEach((function(e){var n;e[Me]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ct.delete(e)}))}var lt="token";function ut(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.useContext(Te),i=o.cache.instanceId,a=o.container,c=r.salt,s=void 0===c?"":c,l=r.override,u=void 0===l?it:l,f=r.formatToken,d=r.getComputedToken,p=r.cssVar,h=function(e,t){for(var n=Re,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Le)||n.set(Le,e()),n.get(Le)}((function(){return Object.assign.apply(Object,[{}].concat(ae(n)))}),n),g=ze(h),v=ze(u),m=p?ze(p):"",b=ot(lt,[s,e.id,g,v,m],(function(){var t,n=d?d(h,u,e):function(e,t,n,r){var o=T(T({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(h,u,e,f),r=T({},n),o="";if(p){var i=pe(qe(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=De(n,s);n._tokenKey=a,r._tokenKey=De(r,s);var c=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=c,function(e){ct.set(e,(ct.get(e)||0)+1)}(c);var l="".concat(at,"-").concat(he(a));return n._hashId=l,[n,l,r,o,(null==p?void 0:p.key)||""]}),(function(e){st(e[0]._themeKey,i)}),(function(e){var t=pe(e,4),n=t[0],r=t[3];if(p&&r){var o=ke(r,he("css-variables-".concat(n._themeKey)),{mark:He,prepend:"queue",attachTo:a,priority:-999});o[Me]=i,o.setAttribute(Ae,n._themeKey)}}));return b}var ft={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},dt="comm",pt="rule",ht="decl",gt=Math.abs,vt=String.fromCharCode;function mt(e){return e.trim()}function bt(e,t,n){return e.replace(t,n)}function yt(e,t,n){return e.indexOf(t,n)}function xt(e,t){return 0|e.charCodeAt(t)}function St(e,t,n){return e.slice(t,n)}function Ct(e){return e.length}function Et(e,t){return t.push(e),e}var wt=1,kt=1,Ot=0,jt=0,$t=0,At="";function Ht(e,t,n,r,o,i,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:wt,column:kt,length:a,return:"",siblings:c}}function Mt(){return $t=jt<Ot?xt(At,jt++):0,kt++,10===$t&&(kt=1,wt++),$t}function Tt(){return xt(At,jt)}function Bt(){return jt}function Pt(e,t){return St(At,e,t)}function _t(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 Nt(e){return mt(Pt(jt-1,It(91===e?e+2:40===e?e+1:e)))}function Rt(e){for(;($t=Tt())&&$t<33;)Mt();return _t(e)>2||_t($t)>3?"":" "}function Lt(e,t){for(;--t&&Mt()&&!($t<48||$t>102||$t>57&&$t<65||$t>70&&$t<97););return Pt(e,Bt()+(t<6&&32==Tt()&&32==Mt()))}function It(e){for(;Mt();)switch($t){case e:return jt;case 34:case 39:34!==e&&39!==e&&It($t);break;case 40:41===e&&It(e);break;case 92:Mt()}return jt}function zt(e,t){for(;Mt()&&e+$t!==57&&(e+$t!==84||47!==Tt()););return"/*"+Pt(t,jt-1)+"*"+vt(47===e?e:Mt())}function Dt(e){for(;!_t(Tt());)Mt();return Pt(e,jt)}function Ft(e){return function(e){return At="",e}(Gt("",null,null,null,[""],e=function(e){return wt=kt=1,Ot=Ct(At=e),jt=0,[]}(e),0,[0],e))}function Gt(e,t,n,r,o,i,a,c,s){for(var l=0,u=0,f=a,d=0,p=0,h=0,g=1,v=1,m=1,b=0,y="",x=o,S=i,C=r,E=y;v;)switch(h=b,b=Mt()){case 40:if(108!=h&&58==xt(E,f-1)){-1!=yt(E+=bt(Nt(b),"&","&\f"),"&\f",gt(l?c[l-1]:0))&&(m=-1);break}case 34:case 39:case 91:E+=Nt(b);break;case 9:case 10:case 13:case 32:E+=Rt(h);break;case 92:E+=Lt(Bt()-1,7);continue;case 47:switch(Tt()){case 42:case 47:Et(Vt(zt(Mt(),Bt()),t,n,s),s),5!=_t(h||1)&&5!=_t(Tt()||1)||!Ct(E)||" "===St(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*g:c[l++]=Ct(E)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==m&&(E=bt(E,/\f/g,"")),p>0&&(Ct(E)-f||0===g&&47===h)&&Et(p>32?Xt(E+";",r,n,f-1,s):Xt(bt(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(Et(C=Wt(E,t,n,l,u,o,c,y,x=[],S=[],f,i),i),123===b)if(0===u)Gt(E,t,C,C,x,i,f,c,S);else{switch(d){case 99:if(110===xt(E,3))break;case 108:if(97===xt(E,2))break;default:u=0;case 100:case 109:case 115:}u?Gt(e,C,C,r&&Et(Wt(e,C,C,0,0,o,c,y,o,x=[],f,S),S),o,S,f,c,r?x:S):Gt(E,C,C,C,[""],S,0,c,S)}}l=u=p=0,g=m=1,y=E="",f=a;break;case 58:f=1+Ct(E),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==($t=jt>0?xt(At,--jt):0,kt--,10===$t&&(kt=1,wt--),$t))continue;switch(E+=vt(b),b*g){case 38:m=u>0?1:(E+="\f",-1);break;case 44:c[l++]=(Ct(E)-1)*m,m=1;break;case 64:45===Tt()&&(E+=Nt(Mt())),d=Tt(),u=f=Ct(y=E+=Dt(Bt())),b++;break;case 45:45===h&&2==Ct(E)&&(g=0)}}return i}function Wt(e,t,n,r,o,i,a,c,s,l,u,f){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,v=0,m=0;g<r;++g)for(var b=0,y=St(e,d+1,d=gt(v=a[g])),x=e;b<h;++b)(x=mt(v>0?p[b]+" "+y:bt(y,/&\f/g,p[b])))&&(s[m++]=x);return Ht(e,t,n,0===o?pt:c,s,l,u,f)}function Vt(e,t,n,r){return Ht(e,t,n,dt,vt($t),St(e,2,-2),0,r)}function Xt(e,t,n,r,o){return Ht(e,t,n,ht,St(e,0,r),St(e,r+1,-1),r,o)}function qt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ut(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case ht:return e.return=e.return||e.value;case dt:return"";case"@keyframes":return e.return=e.value+"{"+qt(e.children,r)+"}";case pt:if(!Ct(e.value=e.props.join(",")))return""}return Ct(n=qt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kt(e,t){var n=t.path,r=t.parentSelectors;$(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Qt,Yt=function(e,t,n){if("content"===e){("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&Kt("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},Zt=function(e,t,n){"animation"===e&&n.hashId&&"none"!==t&&Kt("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Jt="data-ant-cssinjs-cache-path",en="_FILE_STYLE__",tn=!0;function nn(e){return function(){if(!Qt&&(Qt={},ge())){var e=document.createElement("div");e.className=Jt,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=pe(e.split(":"),2),n=t[0],r=t[1];Qt[n]=r}));var n,r=document.querySelector("style[".concat(Jt,"]"));r&&(tn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Qt[e]}var rn="_skip_check_",on="_multi_value_";function an(e){return qt(Ft(e),Ut).replace(/\{%%%\:[^;];}/g,";")}function cn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(ae(n.slice(1))).join(" ")})).join(",")}var sn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,c=n.hashId,s=n.layer,l=n.path,u=n.hashPriority,f=n.transformers,d=void 0===f?[]:f,p=n.linters,h=void 0===p?[]:p,g="",v={};function m(t){var r=t.getName(c);if(!v[r]){var o=pe(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];v[r]="@keyframes ".concat(t.getName(c)).concat(o)}}var y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return y.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)g+="".concat(r,"\n");else if(r._keyframe)m(r);else{var s=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==b(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===b(e)&&e&&(rn in e||on in e)}(r)){let e=function(e,t){"production"===process.env.NODE_ENV||"object"===b(r)&&null!=r&&r[rn]||[Yt,Zt].concat(ae(h)).forEach((function(n){return n(e,t,{path:l,hashId:c,parentSelectors:a})}));var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;ft[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),o=t.getName(c)),g+="".concat(n,":").concat(o,";")};var f,d=null!==(f=null==r?void 0:r.value)&&void 0!==f?f:r;"object"===b(r)&&null!=r&&r[on]&&Array.isArray(d)?d.forEach((function(n){e(t,n)})):e(t,d)}else{var p=!1,y=t.trim(),x=!1;(o||i)&&c?y.startsWith("@")?p=!0:y=cn("&"===y?"":t,c,u):!o||c||"&"!==y&&""!==y||(y="",x=!0);var S=pe(e(r,n,{root:x,injectHash:p,parentSelectors:[].concat(ae(a),[y])}),2),C=S[0],E=S[1];v=T(T({},v),E),g+="".concat(y).concat(C)}}))}})),o?s&&(g&&(g="@layer ".concat(s.name," {").concat(g,"}")),s.dependencies&&(v["@layer ".concat(s.name)]=s.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(s.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,v]};function ln(e,t){return he("".concat(e.join("%")).concat(t))}function un(){return null}var fn="style";function dn(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,f=l.useContext(Te),d=f.autoClear,p=f.mock,h=f.defaultCache,g=f.hashPriority,v=f.container,b=f.ssrInline,y=f.transformers,x=f.linters,S=f.cache,C=f.layer,E=n._tokenKey,w=[E];C&&w.push("layer"),w.push.apply(w,ae(r));var k=Fe;"production"!==process.env.NODE_ENV&&void 0!==p&&(k="client"===p);var O=ot(fn,w,(function(){var e=w.join("|");if(nn(e)){var n=function(e){var t=Qt[e],n=null;if(t&&ge())if(tn)n=en;else{var r=document.querySelector("style[".concat(He,'="').concat(Qt[e],'"]'));r?n=r.innerHTML:delete Qt[e]}return[n,t]}(e),a=pe(n,2),s=a[0],l=a[1];if(s)return[s,E,l,{},c,u]}var f=t(),d=pe(sn(f,{hashId:o,hashPriority:g,layer:C?i:void 0,path:r.join("-"),transformers:y,linters:x}),2),p=d[0],h=d[1],v=an(p),m=ln(w,v);return[v,E,m,h,c,u]}),(function(e,t){var n=pe(e,3)[2];(t||d)&&Fe&&we(n,{mark:He})}),(function(e){var t=pe(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(k&&n!==en){var i={mark:He,prepend:!C&&"queue",attachTo:v,priority:u},c="function"==typeof a?a():a;c&&(i.csp={nonce:c});var s=[],l=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?s.push(e):l.push(e)})),s.forEach((function(e){ke(an(o[e]),"_layer-".concat(e),T(T({},i),{},{prepend:!0}))}));var f=ke(n,r,i);f[Me]=S.instanceId,f.setAttribute(Ae,E),"production"!==process.env.NODE_ENV&&f.setAttribute("data-cache-path",w.join("|")),l.forEach((function(e){ke(an(o[e]),"_effect-".concat(e),i)}))}})),j=pe(O,3),$=j[0],A=j[1],M=j[2];return function(e){var t,n;b&&!k&&h?t=l.createElement("style",m({},(H(n={},Ae,A),H(n,He,M),n),{dangerouslySetInnerHTML:{__html:$}})):t=l.createElement(un,null);return l.createElement(l.Fragment,null,t,e)}}var pn,hn="cssVar";function gn(e){return e.notSplit=!0,e}H(pn={},fn,(function(e,t,n){var r=pe(e,6),o=r[0],i=r[1],a=r[2],c=r[3],s=r[4],l=r[5],u=(n||{}).plain;if(s)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return f=We(o,i,a,d,u),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=We(an(c[e]),i,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=n+f:f+=n}})),[l,a,f]})),H(pn,lt,(function(e,t,n){var r=pe(e,5),o=r[2],i=r[3],a=r[4],c=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,We(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),H(pn,hn,(function(e,t,n){var r=pe(e,4),o=r[1],i=r[2],a=r[3],c=(n||{}).plain;if(!o)return null;return[-999,i,We(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),gn(["borderTop","borderBottom"]),gn(["borderTop"]),gn(["borderBottom"]),gn(["borderLeft","borderRight"]),gn(["borderLeft"]),gn(["borderRight"]);var vn=t.createContext({});function mn(){}let bn=null;let yn=mn;"production"!==process.env.NODE_ENV&&(yn=(e,t,n)=>{$(e,`[antd: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(bn=null,O())});const xn=l.createContext({}),Sn="production"!==process.env.NODE_ENV?e=>{const{strict:t}=l.useContext(xn),n=(n,r,o)=>{if(!n)if(!1===t&&"deprecated"===r){const t=bn;bn||(bn={}),bn[e]=bn[e]||[],bn[e].includes(o||"")||bn[e].push(o||""),t||console.warn("[antd] There exists deprecated usage in your code:",bn)}else"production"!==process.env.NODE_ENV&&yn(n,e,o)};return n.deprecated=(e,t,r,o)=>{n(e,"deprecated",`\`${t}\` is deprecated. Please use \`${r}\` instead.${o?` ${o}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=mn,e},Cn=yn,En={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"},wn=Object.assign(Object.assign({},En),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),kn=Math.round;function On(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const jn=(e,t,n)=>0===n?e:e/100;function $n(e,t){const n=t||255;return e>n?n:e<0?0:e}class An{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(this,"_brightness",void 0),e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):t("rgb")?this.fromRgbString(n):t("hsl")?this.fromHslString(n):(t("hsv")||t("hsb"))&&this.fromHsvString(n)}else if(e instanceof An)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=$n(e.r),this.g=$n(e.g),this.b=$n(e.b),this.a="number"==typeof e.a?$n(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:kn(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:kn(o("r")),g:kn(o("g")),b:kn(o("b")),a:kn(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>kn((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=kn(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=kn(100*this.getSaturation()),n=kn(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=$n(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=kn(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const c=e/60,s=(1-Math.abs(2*n-1))*t,l=s*(1-Math.abs(c%2-1));c>=0&&c<1?(o=s,i=l):c>=1&&c<2?(o=l,i=s):c>=2&&c<3?(i=s,a=l):c>=3&&c<4?(i=l,a=s):c>=4&&c<5?(o=l,a=s):c>=5&&c<6&&(o=s,a=l);const u=n-s/2;this.r=kn(255*(o+u)),this.g=kn(255*(i+u)),this.b=kn(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=kn(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),c=i-a,s=kn(n*(1-t)*255),l=kn(n*(1-t*c)*255),u=kn(n*(1-t*(1-c))*255);switch(a){case 0:this.g=u,this.b=s;break;case 1:this.r=l,this.b=s;break;case 2:this.r=s,this.b=u;break;case 3:this.r=s,this.g=l;break;case 4:this.r=u,this.g=s;break;default:this.g=s,this.b=l}}fromHsvString(e){const t=On(e,jn);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=On(e,jn);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=On(e,((e,t)=>t.includes("%")?kn(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Hn=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Mn(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function Tn(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Bn(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Pn(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new An(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new An({h:Mn(o,i,!0),s:Tn(o,i,!0),v:Bn(o,i,!0)});n.push(a)}n.push(r);for(var c=1;c<=4;c+=1){var s=new An({h:Mn(o,c),s:Tn(o,c),v:Bn(o,c)});n.push(s)}return"dark"===t.theme?Hn.map((function(e){var r=e.index,o=e.amount;return new An(t.backgroundColor||"#141414").mix(n[r],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var _n={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"},Nn=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Nn.primary=Nn[5];var Rn=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Rn.primary=Rn[5];var Ln=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ln.primary=Ln[5];var In=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];In.primary=In[5];var zn=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];zn.primary=zn[5];var Dn=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Dn.primary=Dn[5];var Fn=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Fn.primary=Fn[5];var Gn=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Gn.primary=Gn[5];var Wn=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Wn.primary=Wn[5];var Vn=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vn.primary=Vn[5];var Xn=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Xn.primary=Xn[5];var qn=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];qn.primary=qn[5];var Un=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Un.primary=Un[5];var Kn={red:Nn,volcano:Rn,orange:Ln,gold:In,yellow:zn,lime:Dn,green:Fn,cyan:Gn,blue:Wn,geekblue:Vn,purple:Xn,magenta:qn,grey:Un};function Qn(e){return(e+8)/e}const Yn=e=>{const t=function(e){const t=Array.from({length:10}).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Qn(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],c=r[1],s=r[0],l=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(c*o),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Zn=(e,t)=>new An(e).setA(t).toRgbString(),Jn=(e,t)=>new An(e).darken(t).toHexString(),er=e=>{const t=Pn(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]}},tr=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zn(r,.88),colorTextSecondary:Zn(r,.65),colorTextTertiary:Zn(r,.45),colorTextQuaternary:Zn(r,.25),colorFill:Zn(r,.15),colorFillSecondary:Zn(r,.06),colorFillTertiary:Zn(r,.04),colorFillQuaternary:Zn(r,.02),colorBgSolid:Zn(r,1),colorBgSolidHover:Zn(r,.75),colorBgSolidActive:Zn(r,.95),colorBgLayout:Jn(n,4),colorBgContainer:Jn(n,0),colorBgElevated:Jn(n,0),colorBgSpotlight:Zn(r,.85),colorBgBlur:"transparent",colorBorder:Jn(n,15),colorBorderSecondary:Jn(n,6)}};const nr=(rr=function(e){_n.pink=_n.magenta,Kn.pink=Kn.magenta;const t=Object.keys(En).map((t=>{const n=e[t]===_n[t]?Kn[t]:Pn(e[t]);return Array.from({length:10},(()=>1)).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:c,colorPrimary:s,colorBgBase:l,colorTextBase:u}=e,f=n(s),d=n(o),p=n(i),h=n(a),g=n(c),v=r(l,u),m=n(e.colorLink||e.colorInfo),b=new An(h[1]).mix(new An(h[3]),50).toHexString();return Object.assign(Object.assign({},v),{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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:b,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new An("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:er,generateNeutralColorPalettes:tr})),Yn(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))},or=Array.isArray(rr)?rr:[rr],Ne.has(or)||Ne.set(or,new _e(or)),Ne.get(or));var rr,or;const ir={token:wn,override:{override:wn},hashed:!0},ar=t.createContext(ir),cr="ant",sr="anticon",lr=l.createContext({getPrefixCls:(e,t)=>t||(e?`${cr}-${e}`:cr),iconPrefixCls:sr}),{Consumer:ur}=lr,fr={};const dr=l.createContext(!1),pr=l.createContext(void 0);var hr=Y((function e(){K(this,e)})),gr="CALC_UNIT",vr=new RegExp(gr,"g");function mr(e){return"number"==typeof e?"".concat(e).concat(gr):e}var br=function(e){J(n,e);var t=re(n);function n(e,r){var o;K(this,n),H(ne(o=t.call(this)),"result",""),H(ne(o),"unitlessCssVar",void 0),H(ne(o),"lowPriority",void 0);var i=b(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=mr(e):"string"===i&&(o.result=e),o}return Y(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(mr(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(mr(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(vr,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(hr),yr=function(e){J(n,e);var t=re(n);function n(e){var r;return K(this,n),H(ne(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return Y(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(hr),xr=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Sr(e){var t=l.useRef();t.current=e;var n=l.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Cr(e){var t=l.useRef(!1),n=pe(l.useState(e),2),r=n[0],o=n[1];return l.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Er(e){return void 0!==e}function wr(e,t,n,r){var o=T({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(t){var n,r=pe(t,2),i=r[0],a=r[1];("production"!==process.env.NODE_ENV&&$(!(null!=o&&o[i]),"Component Token `".concat(String(i),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=o&&o[i]||null!=o&&o[a])&&(null!==(n=o[a])&&void 0!==n||(o[a]=null==o?void 0:o[i]))}));var i=T(T({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var kr="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Or=!0;function jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!kr)return Object.assign.apply(Object,[{}].concat(t));Or=!1;var r={};return t.forEach((function(e){"object"===b(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Or=!0,r}var $r={};function Ar(){}function Hr(e,t,n){var r;return"function"==typeof n?n(jr(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Mr=new(function(){function e(){K(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return Y(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map((function(e){return e&&"object"===b(e)?"obj_".concat(t.getObjectID(e)):"".concat(b(e),"_").concat(e)})).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}());var Tr=function(){return{}};const Br=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Pr(e){return e>=0&&e<=255}function _r(e,t){const{r:n,g:r,b:o,a:i}=new An(e).toRgb();if(i<1)return e;const{r:a,g:c,b:s}=new An(t).toRgb();for(let l=.01;l<=1;l+=.01){const e=Math.round((n-a*(1-l))/l),t=Math.round((r-c*(1-l))/l),i=Math.round((o-s*(1-l))/l);if(Pr(e)&&Pr(t)&&Pr(i))return new An({r:e,g:t,b:i,a:Math.round(100*l)/100}).toRgbString()}return new An({r:n,g:r,b:o,a:1}).toRgbString()}function Nr(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(wn).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:_r(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:_r(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_r(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:_r(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new An("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new An("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new An("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Rr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Lr={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},Ir={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},zr={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},Dr=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Rr(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Nr(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Rr(n,["theme"]);let i=o;r&&(i=Dr(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Fr(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(ar),a=`5.25.1-${n||""}`,c=r||nr,[s,l,u]=ut(c,[wn,e],{salt:a,override:o,getComputedToken:Dr,formatToken:Nr,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Lr,ignore:Ir,preserve:zr}});return[c,u,n?l:"",s,i]}const Gr=(e,t)=>({outline:`${Ge(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),Wr=(e,t)=>({"&:focus-visible":Object.assign({},Gr(e,t))}),{genStyleHooks:Vr,genComponentStyleHook:Xr,genSubStyleComponent:qr}=function(e){var n=e.useCSP,r=void 0===n?Tr:n,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,c=e.getCommonStyle,s=e.getCompUnitless;function l(n,s,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=Array.isArray(n)?n:[n,n],d=pe(f,1)[0],p=f.join("-"),h=e.layer||{name:"antd"};return function(e){var n,f,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,v=o(),m=v.theme,y=v.realToken,x=v.hashId,S=v.token,C=v.cssVar,E=i(),w=E.rootPrefixCls,k=E.iconPrefixCls,O=r(),j=C?"css":"js",$=(n=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Ve(t,C.prefix)),e.add(Ve(t,xr(d,C.prefix)))})),function(e,t){var n="css"===e?br:yr;return function(e){return new n(e,t)}}(j,e)},f=[j,d,null==C?void 0:C.prefix],t.useMemo((function(){var e=Mr.get(f);if(e)return e;var t=n();return Mr.set(f,t),t}),f)),A=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return Ge(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return Ge(e)})).join(","),")")}}}(j),H=A.max,M=A.min,B={theme:m,token:S,hashId:x,nonce:function(){return O.nonce},clientOnly:u.clientOnly,layer:h,order:u.order||-999};"function"==typeof a&&dn(T(T({},B),{},{clientOnly:!1,path:["Shared",w]}),(function(){return a(S,{prefix:{rootPrefixCls:w,iconPrefixCls:k},csp:O})}));var P=dn(T(T({},B),{},{path:[p,e,k]}),(function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,r=Ar;return kr&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return Or&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;$r[e]={global:Array.from(t),component:T(T({},null===(r=$r[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(S),n=t.token,r=t.flush,o=Hr(d,y,l),i=".".concat(e),a=wr(d,y,o,{deprecatedTokens:u.deprecatedTokens});C&&o&&"object"===b(o)&&Object.keys(o).forEach((function(e){o[e]="var(".concat(Ve(e,xr(d,C.prefix)),")")}));var f=jr(n,{componentCls:i,prefixCls:e,iconCls:".".concat(k),antCls:".".concat(w),calc:$,max:H,min:M},C?o:a),p=s(f,{hashId:x,prefixCls:e,rootPrefixCls:w,iconPrefixCls:k});r(d,a);var h="function"==typeof c?c(f,e,g,u.resetFont):null;return[!1===u.resetStyle?null:h,p]}));return[P,x]}}return{genStyleHooks:function(e,n,r,i){var a=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},f=T(T({},"function"==typeof s?s(e):{}),{},H({},c("zIndexPopup"),!0));Object.keys(u).forEach((function(e){f[c(e)]=u[e]}));var d=T(T({},i),{},{unitless:f,prefixToken:c}),p=l(e,n,r,d),h=function(e,n,r){var i=r.unitless,a=r.injectStyle,c=void 0===a||a,s=r.prefixToken,l=r.ignore,u=function(a){var c=a.rootCls,u=a.cssVar,f=void 0===u?{}:u,d=o().realToken;return function(e,n){var r=e.key,o=e.prefix,i=e.unitless,a=e.ignore,c=e.token,s=e.scope,l=void 0===s?"":s,u=t.useContext(Te),f=u.cache.instanceId,d=u.container,p=c._tokenKey,h=[].concat(ae(e.path),[r,l,p]);ot(hn,h,(function(){var e=n(),t=pe(qe(e,r,{prefix:o,unitless:i,ignore:a,scope:l}),2),c=t[0],s=t[1];return[c,s,ln(h,s),r]}),(function(e){var t=pe(e,3)[2];Fe&&we(t,{mark:He})}),(function(e){var t=pe(e,3),n=t[1],o=t[2];if(n){var i=ke(n,o,{mark:He,prepend:"queue",attachTo:d,priority:-999});i[Me]=f,i.setAttribute(Ae,r)}}))}({path:[e],prefix:f.prefix,key:f.key,unitless:i,ignore:l,token:d,scope:c},(function(){var t=Hr(e,d,n),o=wr(e,d,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).forEach((function(e){o[s(e)]=o[e],delete o[e]})),o})),null},f=function(n){var r=o().cssVar;return[function(o){return c&&r?t.createElement(t.Fragment,null,t.createElement(u,{rootCls:n,cssVar:r,component:e}),o):o},null==r?void 0:r.key]};return f}(a,r,d);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=pe(p(e,t),2)[1],r=pe(h(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=l(e,t,n,T({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),o=function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null};return"production"!==process.env.NODE_ENV&&(o.displayName="SubStyle_".concat(String(Array.isArray(e)?e.join("."):e))),o},genComponentStyleHook:l}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=t.useContext(lr);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=Fr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=t.useContext(lr);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(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"}}}))(e);return[r,{"&":r},(o=null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:sr,{[`.${o}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${o} .${o}-icon`]:{display:"block"}})})];var o},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return!1!==r&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},c),a),{[o]:a})}},getCompUnitless:()=>Lr});var Ur=l.createContext({}),Kr=function(e){J(n,e);var t=re(n);function n(){return K(this,n),t.apply(this,arguments)}return Y(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);var Qr="none",Yr="appear",Zr="enter",Jr="leave",eo="none",to="prepare",no="start",ro="active",oo="end",io="prepared";function ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var co,so,lo,uo=(co=ge(),so="undefined"!=typeof window?window:{},lo={animationend:ao("Animation","AnimationEnd"),transitionend:ao("Transition","TransitionEnd")},co&&("AnimationEvent"in so||delete lo.animationend.animation,"TransitionEvent"in so||delete lo.transitionend.transition),lo),fo={};if(ge()){var po=document.createElement("div");fo=po.style}var ho={};function go(e){if(ho[e])return ho[e];var t=uo[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in fo)return ho[e]=t[i],ho[e]}return""}var vo=go("animationend"),mo=go("transitionend"),bo=!(!vo||!mo),yo=vo||"animationend",xo=mo||"transitionend";function So(e,t){return e?"object"===b(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var Co=ge()?t.useLayoutEffect:t.useEffect;var Eo=[to,no,ro,oo],wo=[to,io],ko=!1;function Oo(e){return e===ro||e===oo}const jo=function(e,t,n){var r=pe(Cr(eo),2),o=r[0],i=r[1],a=function(){var e=l.useRef(null);function t(){de.cancel(e.current)}return l.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=de((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=pe(a,2),s=c[0],u=c[1];var f=t?wo:Eo;return Co((function(){if(o!==eo&&o!==oo){var e=f.indexOf(o),t=f[e+1],r=n(o);r===ko?i(t,!0):t&&s((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),l.useEffect((function(){return function(){u()}}),[]),[function(){i(to,!0)},o]};function $o(e,n,r,o){var i,a,c,s=o.motionEnter,u=void 0===s||s,f=o.motionAppear,d=void 0===f||f,p=o.motionLeave,h=void 0===p||p,g=o.motionDeadline,v=o.motionLeaveImmediately,m=o.onAppearPrepare,b=o.onEnterPrepare,y=o.onLeavePrepare,x=o.onAppearStart,S=o.onEnterStart,C=o.onLeaveStart,E=o.onAppearActive,w=o.onEnterActive,k=o.onLeaveActive,O=o.onAppearEnd,j=o.onEnterEnd,$=o.onLeaveEnd,A=o.onVisibleChanged,M=pe(Cr(),2),B=M[0],P=M[1],_=(i=Qr,a=pe(l.useReducer((function(e){return e+1}),0),2)[1],c=l.useRef(i),[Sr((function(){return c.current})),Sr((function(e){c.current="function"==typeof e?e(c.current):e,a()}))]),N=pe(_,2),R=N[0],L=N[1],I=pe(Cr(null),2),z=I[0],D=I[1],F=R(),G=t.useRef(!1),W=t.useRef(null);function V(){return r()}var X=t.useRef(!1);function q(){L(Qr),D(null,!0)}var U=Sr((function(e){var t=R();if(t!==Qr){var n=V();if(!e||e.deadline||e.target===n){var r,o=X.current;t===Yr&&o?r=null==O?void 0:O(n,e):t===Zr&&o?r=null==j?void 0:j(n,e):t===Jr&&o&&(r=null==$?void 0:$(n,e)),o&&!1!==r&&q()}}})),K=function(e){var n=t.useRef();function r(t){t&&(t.removeEventListener(xo,e),t.removeEventListener(yo,e))}return l.useEffect((function(){return function(){r(n.current)}}),[]),[function(t){n.current&&n.current!==t&&r(n.current),t&&t!==n.current&&(t.addEventListener(xo,e),t.addEventListener(yo,e),n.current=t)},r]}(U),Q=pe(K,1)[0],Y=function(e){switch(e){case Yr:return H(H(H({},to,m),no,x),ro,E);case Zr:return H(H(H({},to,b),no,S),ro,w);case Jr:return H(H(H({},to,y),no,C),ro,k);default:return{}}},Z=l.useMemo((function(){return Y(F)}),[F]),J=pe(jo(F,!e,(function(e){if(e===to){var t=Z[to];return t?t(V()):ko}var n;te in Z&&D((null===(n=Z[te])||void 0===n?void 0:n.call(Z,V(),null))||null);return te===ro&&F!==Qr&&(Q(V()),g>0&&(clearTimeout(W.current),W.current=setTimeout((function(){U({deadline:!0})}),g))),te===io&&q(),true})),2),ee=J[0],te=J[1],ne=Oo(te);X.current=ne;var re=t.useRef(null);Co((function(){if(!G.current||re.current!==n){P(n);var t,r=G.current;G.current=!0,!r&&n&&d&&(t=Yr),r&&n&&u&&(t=Zr),(r&&!n&&h||!r&&v&&!n&&h)&&(t=Jr);var o=Y(t);t&&(e||o[to])?(L(t),ee()):L(Qr),re.current=n}}),[n]),t.useEffect((function(){(F===Yr&&!d||F===Zr&&!u||F===Jr&&!h)&&L(Qr)}),[d,u,h]),t.useEffect((function(){return function(){G.current=!1,clearTimeout(W.current)}}),[]);var oe=l.useRef(!1);t.useEffect((function(){B&&(oe.current=!0),void 0!==B&&F===Qr&&((oe.current||B)&&(null==A||A(B)),oe.current=!0)}),[B,F]);var ie=z;return Z[to]&&te===no&&(ie=T({transition:"none"},ie)),[F,te,ie,null!=B?B:n]}const Ao=function(e){var n=e;"object"===b(e)&&(n=e.transitionSupport);var r=l.forwardRef((function(e,r){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,c=void 0===a||a,s=e.forceRender,u=e.children,f=e.motionName,d=e.leavedClassName,p=e.eventProps,h=function(e,t){return!(!e.motionName||!n||!1===t)}(e,l.useContext(Ur).motion),g=t.useRef(),m=t.useRef();var b=pe($o(h,i,(function(){try{return g.current instanceof HTMLElement?g.current:P(m.current)}catch(e){return null}}),e),4),y=b[0],x=b[1],S=b[2],C=b[3],E=l.useRef(C);C&&(E.current=!0);var w,k=l.useCallback((function(e){g.current=e,G(r,e)}),[r]),O=T(T({},p),{},{visible:i});if(u)if(y===Qr)w=C?u(T({},O),k):!c&&E.current&&d?u(T(T({},O),{},{className:d}),k):s||!c&&!d?u(T(T({},O),{},{style:{display:"none"}}),k):null;else{var j;x===to?j="prepare":Oo(x)?j="active":x===no&&(j="start");var $=So(f,"".concat(y,"-").concat(j));w=u(T(T({},O),{},{className:v(So(f,y),H(H({},$,$&&j),f,"string"==typeof f)),style:S}),k)}else w=null;l.isValidElement(w)&&X(w)&&(U(w)||(w=l.cloneElement(w,{ref:k})));return l.createElement(Kr,{ref:m},w)}));return r.displayName="CSSMotion",r}(bo);var Ho="add",Mo="keep",To="remove",Bo="removed";function Po(e){var t;return T(T({},t=e&&"object"===b(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function _o(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Po)}var No=["component","children","onVisibleChanged","onAllRemoved"],Ro=["status"],Lo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Io(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function zo(e){return function(e){return Io(e)instanceof ShadowRoot}(e)?Io(e):null}function Do(e){return"object"===b(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===b(e.icon)||"function"==typeof e.icon)}function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function Go(e,n,r){return r?t.createElement(e.tag,T(T({key:n},Fo(e.attrs)),r),(e.children||[]).map((function(t,r){return Go(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,T({key:n},Fo(e.attrs)),(e.children||[]).map((function(t,r){return Go(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Wo(e){return Pn(e)[0]}function Vo(e){return e?Array.isArray(e)?e:[e]:[]}!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ao,t=function(t){J(r,t);var n=re(r);function r(){var e;K(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return H(ne(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),H(ne(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:T(T({},e),{},{status:Bo})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==Bo})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Y(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged;r.onAllRemoved;var c=Oe(r,No),s=o||l.Fragment,u={};return Lo.forEach((function(e){u[e]=c[e],delete c[e]})),delete c.keys,l.createElement(s,c,n.map((function(n,r){var o=n.status,c=Oe(n,Ro),s=o===Ho||o===Mo;return l.createElement(e,m({},u,{key:c.key,visible:s,eventProps:c,onVisibleChanged:function(e){null==a||a(e,{key:c.key}),e||t.removeKey(c.key)}}),(function(e,t){return i(T(T({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=_o(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=_o(e),a=_o(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var c=a[i];if(c.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return T(T({},e),{},{status:Ho})}))),r=i),n.push(T(T({},c),{},{status:Mo})),r+=1,t=!0;break}}t||n.push(T(T({},e),{},{status:To}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return T(T({},e),{},{status:Ho})}))));var c={};return n.forEach((function(e){var t=e.key;c[t]=(c[t]||0)+1})),Object.keys(c).filter((function(e){return c[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==To}))).forEach((function(t){t.key===e&&(t.status=Mo)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Bo||e.status!==To}))}}}]),r}(l.Component);H(t,"defaultProps",{component:"div"})}(bo);var Xo=["icon","className","onClick","style","primaryColor","secondaryColor"],qo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Uo=function(e){var n,r,o,i,a,c,s,u,f=e.icon,d=e.className,p=e.onClick,h=e.style,g=e.primaryColor,v=e.secondaryColor,m=Oe(e,Xo),b=l.useRef(),y=qo;if(g&&(y={primaryColor:g,secondaryColor:v||Wo(g)}),n=b,r=t.useContext(vn),o=r.csp,i=r.prefixCls,a=r.layer,c="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(c=c.replace(/anticon/g,i)),a&&(c="@layer ".concat(a," {\n").concat(c,"\n}")),t.useEffect((function(){var e=zo(n.current);ke(c,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})}),[]),s=Do(f),u="icon should be icon definiton, but got ".concat(f),$(s,"[@ant-design/icons] ".concat(u)),!Do(f))return null;var x=f;return x&&"function"==typeof x.icon&&(x=T(T({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),Go(x.icon,"svg-".concat(x.name),T(T({className:d,onClick:p,style:h,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:b}))};function Ko(e){var t=pe(Vo(e),2),n=t[0],r=t[1];return Uo.setTwoToneColors({primaryColor:n,secondaryColor:r})}Uo.displayName="IconReact",Uo.getTwoToneColors=function(){return T({},qo)},Uo.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;qo.primaryColor=t,qo.secondaryColor=n||Wo(t),qo.calculated=!!n};var Qo=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ko(Wn.primary);var Yo=l.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=Oe(e,Qo),f=l.useContext(vn),d=f.prefixCls,p=void 0===d?"anticon":d,h=f.rootClassName,g=v(h,p,H(H({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||"loading"===r.name),n),b=a;void 0===b&&c&&(b=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,x=pe(Vo(s),2),S=x[0],C=x[1];return l.createElement("span",m({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:c,className:g}),l.createElement(Uo,{icon:r,primaryColor:S,secondaryColor:C,style:y}))}));Yo.displayName="AntdIcon",Yo.getTwoToneColor=function(){var e=Uo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Yo.setTwoToneColor=Ko;function Zo(e,n){return((e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n)(e,e,n)}var Jo={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"},ei=function(e,t){return l.createElement(Yo,m({},e,{ref:t,icon:Jo}))},ti=l.forwardRef(ei);function ni(){ni=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{s({},"")}catch(j){s=function(e,t,n){return e[t]=n}}function l(t,n,r,o){var i=n&&n.prototype instanceof d?n:d,a=Object.create(i.prototype);return s(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var l=u(t,n,r);if("normal"===l.type){if(o=r.done?4:2,l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=4,r.method="throw",r.arg=l.arg)}}}(t,r,new k(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=l;var f={};function d(){}function p(){}function h(){}var g={};s(g,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(O([])));m&&m!==n&&r.call(m,i)&&(g=m);var y=h.prototype=d.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,c){var s=u(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==b(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var o;s(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function C(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function E(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function k(e){this.tryEntries=[[-1]],e.forEach(E,this),this.reset(!0)}function O(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(b(t)+" is not iterable")}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,a,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(y),s(y,c,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=O,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],c=this.prev,s=i[1],l=i[2];if(-1===i[0])return r("end"),!1;if(!s&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=c){if(c<s)return this.method="next",this.arg=e,r(s),!0;if(c<l)return r(l),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:O(t),r:n,n:r},"next"===this.method&&(this.arg=e),f}},t}function ri(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(r,o)}function oi(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ri(i,r,o,a,c,"next",e)}function c(e){ri(i,r,o,a,c,"throw",e)}a(void 0)}))}}"production"!==process.env.NODE_ENV&&(ti.displayName="LoadingOutlined");var ii,ai=T({},u),ci=ai.version,si=ai.render,li=ai.unmountComponentAtNode;try{Number((ci||"").split(".")[0])>=18&&(ii=ai.createRoot)}catch(Ga){}function ui(e){var t=ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===b(t)&&(t.usingClientEntryPoint=e)}var fi="__rc_react_root__";function di(e,t){ii?function(e,t){ui(!0);var n=t[fi]||ii(t);ui(!1),n.render(e),t[fi]=n}(e,t):function(e,t){null==si||si(e,t)}(e,t)}function pi(e){return hi.apply(this,arguments)}function hi(){return(hi=oi(ni().mark((function e(t){return ni().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[fi])||void 0===e||e.unmount(),delete t[fi]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gi(e){li(e)}function vi(){return(vi=oi(ni().mark((function e(t){return ni().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ii){e.next=2;break}return e.abrupt("return",pi(t));case 2:gi(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}let mi=(e,t)=>{if("production"!==process.env.NODE_ENV){const e=parseInt(l.version.split(".")[0],10),t=Object.keys(u);"production"!==process.env.NODE_ENV&&Cn(e<19||t.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return di(e,t),()=>function(e){return vi.apply(this,arguments)}(t)};const bi=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},yi=Xr("Wave",(e=>[bi(e)])),xi=`${cr}-wave-target`;function Si(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Ci(e){return Number.isNaN(e)?0:e}const Ei=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=l.useRef(null),a=l.useRef(null);l.useEffect((()=>{a.current=o()}),[]);const[c,s]=l.useState(null),[u,f]=l.useState([]),[d,p]=l.useState(0),[h,g]=l.useState(0),[m,b]=l.useState(0),[y,x]=l.useState(0),[S,C]=l.useState(!1),E={left:d,top:h,width:m,height:y,borderRadius:u.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Si(t)?t:Si(n)?n:Si(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:Ci(-parseFloat(r))),g(t?n.offsetTop:Ci(-parseFloat(o))),b(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:l}=e;f([i,a,l,c].map((e=>Ci(parseFloat(e)))))}if(c&&(E["--wave-color"]=c),l.useEffect((()=>{if(n){const e=de((()=>{w(),C(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{de.cancel(e),null==t||t.disconnect()}}}),[]),!S)return null;const k=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(xi));return l.createElement(Ao,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;null===(r=a.current)||void 0===r||r.call(a).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:r}=e;return l.createElement("div",{ref:W(i,n),className:v(t,r,{"wave-quick":k}),style:E})}))},wi=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);let i=null;i=mi(l.createElement(Ei,Object.assign({},t,{target:e,registerUnmount:function(){return i}})),o)},ki=e=>{const{children:n,disabled:r,component:o}=e,{getPrefixCls:i}=t.useContext(lr),a=t.useRef(null),c=i("wave"),[,s]=yi(c),u=((e,t,n)=>{const{wave:r}=l.useContext(lr),[,o,i]=Fr(),a=Sr((a=>{const c=e.current;if((null==r?void 0:r.disabled)||!c)return;const s=c.querySelector(`.${xi}`)||c,{showEffect:l}=r||{};(l||wi)(s,{className:t,token:o,component:n,event:a,hashId:i})})),c=l.useRef(null);return e=>{de.cancel(c.current),c.current=de((()=>{a(e)}))}})(a,v(c,s),o);if(t.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return Zo(n,{ref:X(n)?W(U(n),a):a})};"production"!==process.env.NODE_ENV&&(ki.displayName="Wave");const Oi=l.createContext(null);const ji=l.createContext(void 0),$i=/^[\u4E00-\u9FA5]{2}$/,Ai=$i.test.bind($i);function Hi(e){return"string"==typeof e}function Mi(e){return"text"===e||"link"===e}function Ti(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Hi(e.type)&&Ai(e.props.children)?Zo(e,{children:e.props.children.split("").join(r)}):Hi(e)?Ai(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):function(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}(e)?t.createElement("span",null,e):e}["default","primary","danger"].concat(ae(Br));const Bi=t.forwardRef(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,c=v(`${a}-icon`,r);return t.createElement("span",{ref:n,className:c,style:o},i)})),Pi=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,c=v(`${r}-loading-icon`,o);return t.createElement(Bi,{prefixCls:r,className:c,style:i,ref:n},t.createElement(ti,{className:a}))})),_i=()=>({width:0,opacity:0,transform:"scale(0)"}),Ni=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ri=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a,mount:c}=e,s=!!r;return o?t.createElement(Pi,{prefixCls:n,className:i,style:a}):t.createElement(Ao,{visible:s,motionName:`${n}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:_i,onAppearActive:Ni,onEnterStart:_i,onEnterActive:Ni,onLeaveStart:Ni,onLeaveActive:_i},((e,r)=>{let{className:o,style:c}=e;const s=Object.assign(Object.assign({},a),c);return t.createElement(Pi,{prefixCls:n,className:v(i,o),style:s,ref:r})}))},Li=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ii=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Li(`${t}-primary`,o),Li(`${t}-danger`,i)]}};var zi=["b"],Di=["v"],Fi=function(e){return Math.round(Number(e||0))},Gi=function(e){J(n,e);var t=re(n);function n(e){return K(this,n),t.call(this,function(e){if(e instanceof An)return e;if(e&&"object"===b(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return T(T({},Oe(t,zi)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Y(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Fi(100*e.s),n=Fi(100*e.b),r=Fi(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return T(T({},Oe(e,Di)),{},{b:t,a:this.a})}}]),n}(An),Wi=function(e){return e instanceof Gi?e:new Gi(e)},Vi=Wi("#1677ff"),Xi=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),c=a.width,s=a.height,l=n.current.getBoundingClientRect(),u=l.width/2,f=l.height/2,d=(t.x+u)/c,p=1-(t.y+f)/s,h=o.toHsb(),g=d,v=(t.x+u)/c*360;if(i)switch(i){case"hue":return Wi(T(T({},h),{},{h:v<=0?0:v}));case"alpha":return Wi(T(T({},h),{},{a:g<=0?0:g}))}return Wi({h:h.h,s:d<=0?0:d,b:p>=1?1:p,a:h.a})},qi=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},Ui=function(e){var n=e.color,r=e.prefixCls,o=e.className,i=e.style,a=e.onClick,c="".concat(r,"-color-block");return t.createElement("div",{className:v(c,o),style:i,onClick:a},t.createElement("div",{className:"".concat(c,"-inner"),style:{background:n}}))};function Ki(e){var n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,c=e.calculate,s=e.color,l=e.disabledDrag,u=pe(t.useState({x:0,y:0}),2),f=u[0],d=u[1],p=t.useRef(null),h=t.useRef(null);t.useEffect((function(){d(c())}),[s]),t.useEffect((function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}}),[]);var g=function(e){var t=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=t.pageX,c=t.pageY,s=r.current.getBoundingClientRect(),l=s.x,u=s.y,d=s.width,p=s.height,h=n.current.getBoundingClientRect(),g=h.width,v=h.height,m=g/2,b=v/2,y=Math.max(0,Math.min(a-l,d))-m,x=Math.max(0,Math.min(c-u,p))-b,S={x:y,y:"x"===o?f.y:x};if(0===g&&0===v||g!==v)return!1;null==i||i(S)},v=function(e){e.preventDefault(),g(e)},m=function(e){e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,null==a||a()};return[f,function(e){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),l||(g(e),document.addEventListener("mousemove",v),document.addEventListener("mouseup",m),document.addEventListener("touchmove",v),document.addEventListener("touchend",m),p.current=v,h.current=m)}]}var Qi=function(e){var n=e.size,r=void 0===n?"default":n,o=e.color,i=e.prefixCls;return t.createElement("div",{className:v("".concat(i,"-handler"),H({},"".concat(i,"-handler-sm"),"small"===r)),style:{backgroundColor:o}})},Yi=function(e){var n=e.children,r=e.style,o=e.prefixCls;return t.createElement("div",{className:"".concat(o,"-palette"),style:T({position:"relative"},r)},n)},Zi=t.forwardRef((function(e,n){var r=e.children,o=e.x,i=e.y;return t.createElement("div",{ref:n,style:{position:"absolute",left:"".concat(o,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)})),Ji=function(e){var n=e.color,r=e.onChange,o=e.prefixCls,i=e.onChangeComplete,a=e.disabled,c=t.useRef(),s=t.useRef(),l=t.useRef(n),u=Sr((function(e){var t=Xi({offset:e,targetRef:s,containerRef:c,color:n});l.current=t,r(t)})),f=pe(Ki({color:n,containerRef:c,targetRef:s,calculate:function(){return qi(n)},onDragChange:u,onDragChangeComplete:function(){return null==i?void 0:i(l.current)},disabledDrag:a}),2),d=f[0],p=f[1];return t.createElement("div",{ref:c,className:"".concat(o,"-select"),onMouseDown:p,onTouchStart:p},t.createElement(Yi,{prefixCls:o},t.createElement(Zi,{x:d.x,y:d.y,ref:s},t.createElement(Qi,{color:n.toRgbString(),prefixCls:o})),t.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},ea=function(e,n){var r=function(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,c=pe(Cr((function(){return Er(o)?o:Er(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=c[0],l=c[1],u=void 0!==o?o:s,f=a?a(u):u,d=Sr(i),p=pe(Cr([u]),2),h=p[0],g=p[1];return Qe((function(){var e=h[0];s!==e&&d(s,e)}),[h]),Qe((function(){Er(o)||l(o)}),[o]),[f,Sr((function(e,t){l(e,t),g([u],t)}))]}(e,{value:n}),o=pe(r,2),i=o[0],a=o[1];return[t.useMemo((function(){return Wi(i)}),[i]),a]},ta=function(e){var n=e.colors,r=e.children,o=e.direction,i=void 0===o?"to right":o,a=e.type,c=e.prefixCls,s=t.useMemo((function(){return n.map((function(e,t){var r=Wi(e);return"alpha"===a&&t===n.length-1&&(r=new Gi(r.setA(1))),r.toRgbString()})).join(",")}),[n,a]);return t.createElement("div",{className:"".concat(c,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(s,")")}},r)},na=function(e){var n=e.prefixCls,r=e.colors,o=e.disabled,i=e.onChange,a=e.onChangeComplete,c=e.color,s=e.type,l=t.useRef(),u=t.useRef(),f=t.useRef(c),d=function(e){return"hue"===s?e.getHue():100*e.a},p=Sr((function(e){var t=Xi({offset:e,targetRef:u,containerRef:l,color:c,type:s});f.current=t,i(d(t))})),h=pe(Ki({color:c,targetRef:u,containerRef:l,calculate:function(){return qi(c,s)},onDragChange:p,onDragChangeComplete:function(){a(d(f.current))},direction:"x",disabledDrag:o}),2),g=h[0],m=h[1],b=t.useMemo((function(){if("hue"===s){var e=c.toHsb();return e.s=1,e.b=1,e.a=1,new Gi(e)}return c}),[c,s]),y=t.useMemo((function(){return r.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[r]);return t.createElement("div",{ref:l,className:v("".concat(n,"-slider"),"".concat(n,"-slider-").concat(s)),onMouseDown:m,onTouchStart:m},t.createElement(Yi,{prefixCls:n},t.createElement(Zi,{x:g.x,y:g.y,ref:u},t.createElement(Qi,{size:"small",color:b.toHexString(),prefixCls:n})),t.createElement(ta,{colors:y,type:s,prefixCls:n})))};var ra=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],oa=t.forwardRef((function(e,n){var r=e.value,o=e.defaultValue,i=e.prefixCls,a=void 0===i?"rc-color-picker":i,c=e.onChange,s=e.onChangeComplete,u=e.className,f=e.style,d=e.panelRender,p=e.disabledAlpha,h=void 0!==p&&p,g=e.disabled,b=void 0!==g&&g,y=function(e){return l.useMemo((function(){return[(e||{}).slider||na]}),[e])}(e.components),x=pe(y,1)[0],S=pe(ea(o||Vi,r),2),C=S[0],E=S[1],w=t.useMemo((function(){return C.setA(1).toRgbString()}),[C]),k=function(e,t){r||E(e),null==c||c(e,t)},O=function(e){return new Gi(C.setHue(e))},j=function(e){return new Gi(C.setA(e/100))},$=v("".concat(a,"-panel"),u,H({},"".concat(a,"-panel-disabled"),b)),A={prefixCls:a,disabled:b,color:C},M=t.createElement(t.Fragment,null,t.createElement(Ji,m({onChange:k},A,{onChangeComplete:s})),t.createElement("div",{className:"".concat(a,"-slider-container")},t.createElement("div",{className:v("".concat(a,"-slider-group"),H({},"".concat(a,"-slider-group-disabled-alpha"),h))},t.createElement(x,m({},A,{type:"hue",colors:ra,min:0,max:359,value:C.getHue(),onChange:function(e){k(O(e),{type:"hue",value:e})},onChangeComplete:function(e){s&&s(O(e))}})),!h&&t.createElement(x,m({},A,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:100*C.a,onChange:function(e){k(j(e),{type:"alpha",value:e})},onChangeComplete:function(e){s&&s(j(e))}}))),t.createElement(Ui,{color:C.toRgbString(),prefixCls:a})));return t.createElement("div",{className:$,style:f,ref:n},"function"==typeof d?d(M):M)}));"production"!==process.env.NODE_ENV&&(oa.displayName="ColorPicker");let ia=function(){return Y((function e(t){var n;if(K(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new Gi(this.colors[0].color.metaColor)):this.metaColor=new Gi(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const aa=e=>{const{paddingInline:t,onlyIconSize:n}=e;return jr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},ca=e=>{var t,n,r,o,i,a;const c=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,l=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Qn(c),f=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Qn(s),d=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Qn(l),p=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Gi(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new ia(e.colorBgSolid),"#fff")?"#000":"#fff",h=Br.reduce(((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${Ge(e.controlOutlineWidth)} 0 ${_r(e[`${n}1`],e.colorBgContainer)}`})),{});return Object.assign(Object.assign({},h),{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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:c,contentFontSizeSM:s,contentFontSizeLG:l,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-c*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*d)/2-e.lineWidth,0)})},sa=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:c,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ge(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{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"}},"> a":{color:"currentColor"},"&:not(:disabled)":Wr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map((e=>`${e} ${i} ${a}`)).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(c).mul(-1).equal()}}}}}},la=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ua=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),fa=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),da=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),pa=(e,t,n,r,o,i,a,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},la(e,Object.assign({background:t},a),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),ha=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},da(e))}),ga=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),va=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?ga:ha;return Object.assign(Object.assign({},o(e)),la(e.componentCls,t,n))},ma=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},va(e,r,o))}),ba=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},va(e,r,o))}),ya=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),xa=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},va(e,n,r))}),Sa=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},va(e,r,o,n))}),Ca=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ma(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ya(e)),xa(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),pa(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Sa(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ea=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ba(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ya(e)),xa(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Sa(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Sa(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),pa(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),wa=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ma(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ba(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ya(e)),xa(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Sa(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Sa(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),pa(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ka=e=>Object.assign(Object.assign({},Sa(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),pa(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Oa=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Ca(e),[`${t}-color-primary`]:Ea(e),[`${t}-color-dangerous`]:wa(e),[`${t}-color-link`]:ka(e)},(e=>{const{componentCls:t}=e;return Br.reduce(((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],c=e[`${r}2`],s=e[`${r}3`],l=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},ma(e,e.colorTextLightSolid,o,{background:a},{background:l})),ba(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:l,borderColor:l,background:e.colorBgContainer})),ya(e)),xa(e,i,{background:c},{background:s})),Sa(e,o,"link",{color:a},{color:l})),Sa(e,o,"text",{color:a,background:i},{color:l,background:s}))})}),{})})(e))},ja=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ba(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Sa(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ma(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Sa(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:c,buttonPaddingVertical:s,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:o,height:r,padding:`${Ge(s)} ${Ge(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[c]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:ua(e)},{[`${n}${n}-round${t}`]:fa(e)}]},Aa=e=>{const t=jr(e,{fontSize:e.contentFontSize});return $a(t,e.componentCls)},Ha=e=>{const t=jr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return $a(t,`${e.componentCls}-sm`)},Ma=e=>{const t=jr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $a(t,`${e.componentCls}-lg`)},Ta=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Ba=Vr("Button",(e=>{const t=aa(e);return[sa(t),Aa(t),Ha(t),Ma(t),Ta(t),Oa(t),ja(t),Ii(t)]}),ca,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Pa(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[c]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function _a(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Na(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Pa(e,r,t)),_a(n,r,t))}}function Ra(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 La(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Ra(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Ia=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},za=qr(["Button","compact"],(e=>{const t=aa(e);return[Na(t),La(t),Ia(t)]}),ca);const Da={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Fa=t.forwardRef(((e,n)=>{var r,o;const{loading:i=!1,prefixCls:a,color:c,variant:s,type:u,danger:f=!1,shape:d="default",size:p,styles:h,disabled:g,className:m,rootClassName:b,children:y,icon:x,iconPosition:S="start",ghost:C=!1,block:E=!1,htmlType:w="button",classNames:k,style:O={},autoInsertSpace:j,autoFocus:$}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),H=u||"default",{button:M}=t.useContext(lr),[T,B]=t.useMemo((()=>{if(c&&s)return[c,s];if(u||f){const e=Da[H]||[];return f?["danger",e[1]]:e}return(null==M?void 0:M.color)&&(null==M?void 0:M.variant)?[M.color,M.variant]:["default","outlined"]}),[u,c,s,f,null==M?void 0:M.variant,null==M?void 0:M.color]),P="danger"===T?"dangerous":T,{getPrefixCls:_,direction:N,autoInsertSpace:R,className:L,style:I,classNames:z,styles:D}=function(e){const t=l.useContext(lr),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:fr,styles:fr},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}("button"),F=null===(r=null!=j?j:R)||void 0===r||r,G=_("btn",a),[W,X,q]=Ba(G),U=t.useContext(dr),K=null!=g?g:U,Q=t.useContext(ji),Y=t.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(i)),[i]),[Z,J]=t.useState(Y.loading),[ee,te]=t.useState(!1),ne=t.useRef(null),re=V(n,ne),oe=1===t.Children.count(y)&&!x&&!Mi(B),ie=t.useRef(!0);t.useEffect((()=>(ie.current=!1,()=>{ie.current=!0})),[]),t.useEffect((()=>{let e=null;return Y.delay>0?e=setTimeout((()=>{e=null,J(!0)}),Y.delay):J(Y.loading),function(){e&&(clearTimeout(e),e=null)}}),[Y]),t.useEffect((()=>{if(!ne.current||!F)return;const e=ne.current.textContent||"";oe&&Ai(e)?ee||te(!0):ee&&te(!1)})),t.useEffect((()=>{$&&ne.current&&ne.current.focus()}),[]);const ae=t.useCallback((t=>{var n;Z||K?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e.onClick,Z,K]);if("production"!==process.env.NODE_ENV){const e=Sn("Button");"production"!==process.env.NODE_ENV&&e(!("string"==typeof x&&x.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${x}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&e(!(C&&Mi(B)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ce,compactItemClassnames:se}=((e,t)=>{const n=l.useContext(Oi),r=l.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return v(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}})(G,N),le=(e=>{const n=t.useContext(pr);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:"function"==typeof e?e(n):n:n),[e,n])})((e=>{var t,n;return null!==(n=null!==(t=null!=p?p:ce)&&void 0!==t?t:Q)&&void 0!==n?n:e})),ue=le&&null!==(o={large:"lg",small:"sm",middle:void 0}[le])&&void 0!==o?o:"",fe=Z?"loading":x,de=(pe=A,he=["navigate"],ge=Object.assign({},pe),Array.isArray(he)&&he.forEach((function(e){delete ge[e]})),ge);var pe,he,ge;const ve=v(G,X,q,{[`${G}-${d}`]:"default"!==d&&d,[`${G}-${H}`]:H,[`${G}-dangerous`]:f,[`${G}-color-${P}`]:P,[`${G}-variant-${B}`]:B,[`${G}-${ue}`]:ue,[`${G}-icon-only`]:!y&&0!==y&&!!fe,[`${G}-background-ghost`]:C&&!Mi(B),[`${G}-loading`]:Z,[`${G}-two-chinese-chars`]:ee&&F&&!Z,[`${G}-block`]:E,[`${G}-rtl`]:"rtl"===N,[`${G}-icon-end`]:"end"===S},se,m,b,L),me=Object.assign(Object.assign({},I),O),be=v(null==k?void 0:k.icon,z.icon),ye=Object.assign(Object.assign({},(null==h?void 0:h.icon)||{}),D.icon||{}),xe=x&&!Z?t.createElement(Bi,{prefixCls:G,className:be,style:ye},x):i&&"object"==typeof i&&i.icon?t.createElement(Bi,{prefixCls:G,className:be,style:ye},i.icon):t.createElement(Ri,{existIcon:!!x,prefixCls:G,loading:Z,mount:ie.current}),Se=y||0===y?function(e,n){let r=!1;const o=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t.Children.map(o,(e=>Ti(e,n)))}(y,oe&&F):null;if(void 0!==de.href)return W(t.createElement("a",Object.assign({},de,{className:v(ve,{[`${G}-disabled`]:K}),href:K?void 0:de.href,style:me,onClick:ae,ref:re,tabIndex:K?-1:0}),xe,Se));let Ce=t.createElement("button",Object.assign({},A,{type:w,className:ve,style:me,onClick:ae,disabled:K,ref:re}),xe,Se,se&&t.createElement(za,{prefixCls:G}));return Mi(B)||(Ce=t.createElement(ki,{component:"Button",disabled:Z},Ce)),W(Ce)}));Fa.Group=e=>{const{getPrefixCls:t,direction:n}=l.useContext(lr),{prefixCls:r,size:o,className:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,s]=Fr(),u=l.useMemo((()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}}),[o]);if("production"!==process.env.NODE_ENV){const e=Sn("Button.Group");e.deprecated(!1,"Button.Group","Space.Compact"),"production"!==process.env.NODE_ENV&&e(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const f=v(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===n},i,s);return l.createElement(ji.Provider,{value:o},l.createElement("div",Object.assign({},a,{className:f})))},Fa.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(Fa.displayName="Button");e.Button=e=>{var n=e,{children:r,onClick:s}=n,l=((e,t)=>{var n={};for(var r in e)i.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&o)for(var r of o(e))t.indexOf(r)<0&&a.call(e,r)&&(n[r]=e[r]);return n})(n,["children","onClick"]);return t.createElement(Fa,((e,t)=>{for(var n in t||(t={}))i.call(t,n)&&c(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&c(e,n,t[n]);return e})({type:"primary",onClick:s},l),r)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalant/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"build": "vite build",
|
|
22
22
|
"storybook": "start-storybook -p 6006"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "fc2ade19f714c22aa6824b99f8b96168156b4d13"
|
|
25
25
|
}
|