@web-fuse/wf-components 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Display/Card/DarkCard.d.ts +6 -0
- package/dist/Display/Card/LightCard.d.ts +6 -0
- package/dist/Display/Card/index.d.ts +4 -0
- package/dist/Display/Collapse/Collapse.d.ts +16 -0
- package/dist/Display/Collapse/CollapseBase.d.ts +27 -0
- package/dist/Display/Collapse/CollapseContent.d.ts +10 -0
- package/dist/Display/Collapse/index.d.ts +12 -0
- package/dist/Display/Selector/SelectorItem.d.ts +10 -0
- package/dist/Display/Selector/SelectorSubItem.d.ts +11 -0
- package/dist/Display/Selector/index.d.ts +31 -0
- package/dist/Display/Selector/style.d.ts +16 -0
- package/dist/Display/index.d.ts +5 -0
- package/dist/Form/Buttons.d.ts +29 -0
- package/dist/Form/HoverLabel.d.ts +11 -0
- package/dist/Form/Input.d.ts +15 -0
- package/dist/Form/index.d.ts +4 -0
- package/dist/Layout/Main/MainSelector.d.ts +12 -0
- package/dist/Layout/Main/MainSettings.d.ts +5 -0
- package/dist/Layout/Main/index.d.ts +14 -0
- package/dist/Layout/Navbar/NavbarDropdown.d.ts +14 -0
- package/dist/Layout/Navbar/index.d.ts +31 -0
- package/dist/Layout/Navbar/style.d.ts +5 -0
- package/dist/Layout/index.d.ts +5 -0
- package/dist/Oauth/ErrorBoundary.d.ts +12 -0
- package/dist/Oauth/LoginContainer.d.ts +10 -0
- package/dist/Oauth/PageBackground.d.ts +7 -0
- package/dist/Oauth/index.d.ts +5 -0
- package/dist/index.cjs.js +660 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +2882 -0
- package/dist/index.es.js.map +1 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/wfDarkAlgorithm.d.ts +7 -0
- package/package.json +65 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/Display/Collapse/CollapseBase.tsx","../node_modules/@ant-design/icons/es/components/Context.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/classnames/index.js","../node_modules/@ctrl/tinycolor/dist/module/util.js","../node_modules/@ctrl/tinycolor/dist/module/conversion.js","../node_modules/@ctrl/tinycolor/dist/module/css-color-names.js","../node_modules/@ctrl/tinycolor/dist/module/format-input.js","../node_modules/@ant-design/colors/es/generate.js","../node_modules/@ant-design/colors/es/index.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/rc-util/es/Dom/canUseDom.js","../node_modules/rc-util/es/Dom/contains.js","../node_modules/rc-util/es/Dom/dynamicCSS.js","../node_modules/rc-util/es/Dom/shadow.js","../node_modules/rc-util/es/warning.js","../node_modules/@ant-design/icons/es/utils.js","../node_modules/@ant-design/icons/es/components/IconBase.js","../node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js","../node_modules/@ant-design/icons/es/components/AntdIcon.js","../node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js","../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js","../node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js","../node_modules/@ant-design/icons/es/icons/RightOutlined.js","../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/react-is/cjs/react-is.development.js","../node_modules/react-is/index.js","../src/Display/Collapse/Collapse.tsx","../src/Display/Collapse/CollapseContent.tsx","../src/Display/Collapse/index.ts","../src/Display/Selector/style.ts","../src/Display/Selector/SelectorSubItem.tsx","../src/Display/Selector/SelectorItem.tsx","../src/Display/Selector/index.tsx","../src/Display/Card/LightCard.tsx","../src/Display/Card/DarkCard.tsx","../src/Layout/Navbar/style.ts","../src/Layout/Navbar/NavbarDropdown.tsx","../src/Layout/Navbar/index.tsx","../src/Layout/Main/MainSettings.tsx","../node_modules/rc-util/es/hooks/useEvent.js","../node_modules/rc-util/es/hooks/useLayoutEffect.js","../node_modules/rc-util/es/hooks/useState.js","../node_modules/rc-util/es/hooks/useMergedState.js","../src/Layout/Main/MainSelector.tsx","../src/Layout/Main/index.tsx","../src/Form/Buttons.tsx","../src/Form/HoverLabel.tsx","../src/Form/Input.tsx","../src/Oauth/LoginContainer.tsx","../src/Oauth/ErrorBoundary.tsx","../src/Oauth/PageBackground.tsx","../src/util/wfDarkAlgorithm.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react'\r\nimport styled, { keyframes, css } from 'styled-components'\r\n\r\nimport { theme } from 'antd'\r\n\r\nexport const animationDuration = 300\r\n\r\nconst slideOpenFrames = keyframes`\r\n from {\r\n transform: translateY(-100%);\r\n border-color: transparent;\r\n }\r\n to {\r\n transform: translateY(0%);\r\n border-color: #fff;\r\n }\r\n`\r\nconst slideOpen = css`animation: ${animationDuration}ms ease-in ${slideOpenFrames};`\r\nconst slideClose = css`animation: ${animationDuration}ms ease-in reverse ${slideOpenFrames};`\r\n\r\nconst CollapseHeader = styled.div`\r\n transition: filter ${animationDuration * 1.3}ms ease-in-out;\r\n cursor: pointer;\r\n min-height: 32px;\r\n z-index: 1;\r\n user-select: none;\r\n\r\n &:hover {\r\n filter: brightness(1.15)\r\n }\r\n`\r\n\r\nconst ContentWrapper = styled.div`\r\n overflow: hidden;\r\n transition: all ${animationDuration}ms ease-in-out;\r\n width: 100%;\r\n`\r\n\r\nconst ChildContent = styled.div<{ $open: boolean, $border: React.CSSProperties[\"border\"] }>`\r\n ${p => p.$open ? slideOpen : slideClose};\r\n border-radius: inherit;\r\n border: ${p => p.$border};\r\n border-top: unset;\r\n`\r\n\r\nexport type CollapseChangeHandler = (open: boolean) => void\r\n\r\nexport type CollapseBaseProps = React.PropsWithChildren<{\r\n open?: boolean,\r\n onChange?: CollapseChangeHandler,\r\n defaultOpen?: boolean, // If the children should be visible immediately\r\n style?: React.CSSProperties, // style for the children\r\n header?: React.ReactNode,\r\n border?: boolean,\r\n width?: React.CSSProperties[\"width\"]\r\n}>\r\n\r\nexport type CollapseRef = {\r\n calculateHeight: () => void\r\n}\r\n\r\nconst CollapseBase = forwardRef<CollapseRef, CollapseBaseProps>(({\r\n open, onChange, defaultOpen,\r\n header, border, style, width,\r\n children\r\n}, ref) => {\r\n const { token } = theme.useToken()\r\n const [ unfoldHeight, setUnfoldHeight ] = useState(0)\r\n const [ show, setShow ] = useState(false)\r\n const unfoldRef = useRef<HTMLDivElement>(null)\r\n\r\n const calcHeight = () => setUnfoldHeight(unfoldRef.current?.offsetHeight)\r\n\r\n useImperativeHandle(ref, () => ({\r\n calculateHeight: calcHeight\r\n }))\r\n\r\n const showChildren = useCallback(() => {\r\n calcHeight()\r\n setShow(true)\r\n onChange?.(true)\r\n }, [ onChange ])\r\n\r\n const hideChildren = useCallback(() => {\r\n setShow(false)\r\n onChange?.(false)\r\n }, [ onChange ])\r\n\r\n const toggleShow = () => {\r\n if (open === undefined) {\r\n if (show) hideChildren()\r\n else showChildren()\r\n } else {\r\n onChange?.(!show)\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (typeof open === \"boolean\") {\r\n if (open) showChildren()\r\n else hideChildren()\r\n }\r\n }, [ open, hideChildren, showChildren ])\r\n\r\n useEffect(() => {\r\n if (defaultOpen) showChildren()\r\n }, [ defaultOpen, showChildren ])\r\n\r\n return (\r\n <div style={{ width }}>\r\n <CollapseHeader onClick={toggleShow}>\r\n { header }\r\n </CollapseHeader>\r\n <ContentWrapper style={Object.assign({}, style, { height: show ? unfoldHeight : 0 })}>\r\n <ChildContent ref={unfoldRef} $open={show} $border={border ? `1px solid ${token.colorBorder}` : \"unset\"}>\r\n { children }\r\n </ChildContent>\r\n </ContentWrapper>\r\n </div>\r\n )\r\n})\r\n\r\nexport default CollapseBase\r\n","import { createContext } from 'react';\nvar IconContext = /*#__PURE__*/createContext({});\nexport default IconContext;","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/**\n * Take input from [0, n] and return it as [0, 1]\n * @hidden\n */\nexport function bound01(n, max) {\n if (isOnePointZero(n)) {\n n = '100%';\n }\n var isPercent = isPercentage(n);\n n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));\n // Automatically convert percentage into number\n if (isPercent) {\n n = parseInt(String(n * max), 10) / 100;\n }\n // Handle floating point rounding errors\n if (Math.abs(n - max) < 0.000001) {\n return 1;\n }\n // Convert into [0, 1] range if it isn't already\n if (max === 360) {\n // If n is a hue given in degrees,\n // wrap around out-of-range values into [0, 360] range\n // then convert into [0, 1].\n n = (n < 0 ? (n % max) + max : n % max) / parseFloat(String(max));\n }\n else {\n // If n not a hue given in degrees\n // Convert into [0, 1] range if it isn't already.\n n = (n % max) / parseFloat(String(max));\n }\n return n;\n}\n/**\n * Force a number between 0 and 1\n * @hidden\n */\nexport function clamp01(val) {\n return Math.min(1, Math.max(0, val));\n}\n/**\n * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1\n * <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>\n * @hidden\n */\nexport function isOnePointZero(n) {\n return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;\n}\n/**\n * Check to see if string passed in is a percentage\n * @hidden\n */\nexport function isPercentage(n) {\n return typeof n === 'string' && n.indexOf('%') !== -1;\n}\n/**\n * Return a valid alpha value [0,1] with all invalid values being set to 1\n * @hidden\n */\nexport function boundAlpha(a) {\n a = parseFloat(a);\n if (isNaN(a) || a < 0 || a > 1) {\n a = 1;\n }\n return a;\n}\n/**\n * Replace a decimal with it's percentage value\n * @hidden\n */\nexport function convertToPercentage(n) {\n if (n <= 1) {\n return \"\".concat(Number(n) * 100, \"%\");\n }\n return n;\n}\n/**\n * Force a hex value to have 2 characters\n * @hidden\n */\nexport function pad2(c) {\n return c.length === 1 ? '0' + c : String(c);\n}\n","import { bound01, pad2 } from './util.js';\n// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:\n// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>\n/**\n * Handle bounds / percentage checking to conform to CSS color spec\n * <http://www.w3.org/TR/css3-color/>\n * *Assumes:* r, g, b in [0, 255] or [0, 1]\n * *Returns:* { r, g, b } in [0, 255]\n */\nexport function rgbToRgb(r, g, b) {\n return {\n r: bound01(r, 255) * 255,\n g: bound01(g, 255) * 255,\n b: bound01(b, 255) * 255,\n };\n}\n/**\n * Converts an RGB color value to HSL.\n * *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]\n * *Returns:* { h, s, l } in [0,1]\n */\nexport function rgbToHsl(r, g, b) {\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n var max = Math.max(r, g, b);\n var min = Math.min(r, g, b);\n var h = 0;\n var s = 0;\n var l = (max + min) / 2;\n if (max === min) {\n s = 0;\n h = 0; // achromatic\n }\n else {\n var d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n default:\n break;\n }\n h /= 6;\n }\n return { h: h, s: s, l: l };\n}\nfunction hue2rgb(p, q, t) {\n if (t < 0) {\n t += 1;\n }\n if (t > 1) {\n t -= 1;\n }\n if (t < 1 / 6) {\n return p + (q - p) * (6 * t);\n }\n if (t < 1 / 2) {\n return q;\n }\n if (t < 2 / 3) {\n return p + (q - p) * (2 / 3 - t) * 6;\n }\n return p;\n}\n/**\n * Converts an HSL color value to RGB.\n *\n * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]\n * *Returns:* { r, g, b } in the set [0, 255]\n */\nexport function hslToRgb(h, s, l) {\n var r;\n var g;\n var b;\n h = bound01(h, 360);\n s = bound01(s, 100);\n l = bound01(l, 100);\n if (s === 0) {\n // achromatic\n g = l;\n b = l;\n r = l;\n }\n else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1 / 3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1 / 3);\n }\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n/**\n * Converts an RGB color value to HSV\n *\n * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]\n * *Returns:* { h, s, v } in [0,1]\n */\nexport function rgbToHsv(r, g, b) {\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n var max = Math.max(r, g, b);\n var min = Math.min(r, g, b);\n var h = 0;\n var v = max;\n var d = max - min;\n var s = max === 0 ? 0 : d / max;\n if (max === min) {\n h = 0; // achromatic\n }\n else {\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n default:\n break;\n }\n h /= 6;\n }\n return { h: h, s: s, v: v };\n}\n/**\n * Converts an HSV color value to RGB.\n *\n * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]\n * *Returns:* { r, g, b } in the set [0, 255]\n */\nexport function hsvToRgb(h, s, v) {\n h = bound01(h, 360) * 6;\n s = bound01(s, 100);\n v = bound01(v, 100);\n var i = Math.floor(h);\n var f = h - i;\n var p = v * (1 - s);\n var q = v * (1 - f * s);\n var t = v * (1 - (1 - f) * s);\n var mod = i % 6;\n var r = [v, q, p, p, t, v][mod];\n var g = [t, v, v, q, p, p][mod];\n var b = [p, p, t, v, v, q][mod];\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n/**\n * Converts an RGB color to hex\n *\n * Assumes r, g, and b are contained in the set [0, 255]\n * Returns a 3 or 6 character hex\n */\nexport function rgbToHex(r, g, b, allow3Char) {\n var hex = [\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n ];\n // Return a 3 character hex if possible\n if (allow3Char &&\n hex[0].startsWith(hex[0].charAt(1)) &&\n hex[1].startsWith(hex[1].charAt(1)) &&\n hex[2].startsWith(hex[2].charAt(1))) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);\n }\n return hex.join('');\n}\n/**\n * Converts an RGBA color plus alpha transparency to hex\n *\n * Assumes r, g, b are contained in the set [0, 255] and\n * a in [0, 1]. Returns a 4 or 8 character rgba hex\n */\n// eslint-disable-next-line max-params\nexport function rgbaToHex(r, g, b, a, allow4Char) {\n var hex = [\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n pad2(convertDecimalToHex(a)),\n ];\n // Return a 4 character hex if possible\n if (allow4Char &&\n hex[0].startsWith(hex[0].charAt(1)) &&\n hex[1].startsWith(hex[1].charAt(1)) &&\n hex[2].startsWith(hex[2].charAt(1)) &&\n hex[3].startsWith(hex[3].charAt(1))) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);\n }\n return hex.join('');\n}\n/**\n * Converts an RGBA color to an ARGB Hex8 string\n * Rarely used, but required for \"toFilter()\"\n */\nexport function rgbaToArgbHex(r, g, b, a) {\n var hex = [\n pad2(convertDecimalToHex(a)),\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n ];\n return hex.join('');\n}\n/** Converts a decimal to a hex value */\nexport function convertDecimalToHex(d) {\n return Math.round(parseFloat(d) * 255).toString(16);\n}\n/** Converts a hex value to a decimal */\nexport function convertHexToDecimal(h) {\n return parseIntFromHex(h) / 255;\n}\n/** Parse a base-16 hex value into a base-10 integer */\nexport function parseIntFromHex(val) {\n return parseInt(val, 16);\n}\nexport function numberInputToObject(color) {\n return {\n r: color >> 16,\n g: (color & 0xff00) >> 8,\n b: color & 0xff,\n };\n}\n","// https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json\n/**\n * @hidden\n */\nexport var names = {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyan: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n goldenrod: '#daa520',\n gold: '#ffd700',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n lavenderblush: '#fff0f5',\n lavender: '#e6e6fa',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n steelblue: '#4682b4',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n tomato: '#ff6347',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32',\n};\n","/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\nimport { convertHexToDecimal, hslToRgb, hsvToRgb, parseIntFromHex, rgbToRgb, } from './conversion.js';\nimport { names } from './css-color-names.js';\nimport { boundAlpha, convertToPercentage } from './util.js';\n/**\n * Given a string or object, convert that input to RGB\n *\n * Possible string inputs:\n * ```\n * \"red\"\n * \"#f00\" or \"f00\"\n * \"#ff0000\" or \"ff0000\"\n * \"#ff000000\" or \"ff000000\"\n * \"rgb 255 0 0\" or \"rgb (255, 0, 0)\"\n * \"rgb 1.0 0 0\" or \"rgb (1, 0, 0)\"\n * \"rgba (255, 0, 0, 1)\" or \"rgba 255, 0, 0, 1\"\n * \"rgba (1.0, 0, 0, 1)\" or \"rgba 1.0, 0, 0, 1\"\n * \"hsl(0, 100%, 50%)\" or \"hsl 0 100% 50%\"\n * \"hsla(0, 100%, 50%, 1)\" or \"hsla 0 100% 50%, 1\"\n * \"hsv(0, 100%, 100%)\" or \"hsv 0 100% 100%\"\n * ```\n */\nexport function inputToRGB(color) {\n var rgb = { r: 0, g: 0, b: 0 };\n var a = 1;\n var s = null;\n var v = null;\n var l = null;\n var ok = false;\n var format = false;\n if (typeof color === 'string') {\n color = stringInputToObject(color);\n }\n if (typeof color === 'object') {\n if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {\n rgb = rgbToRgb(color.r, color.g, color.b);\n ok = true;\n format = String(color.r).substr(-1) === '%' ? 'prgb' : 'rgb';\n }\n else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {\n s = convertToPercentage(color.s);\n v = convertToPercentage(color.v);\n rgb = hsvToRgb(color.h, s, v);\n ok = true;\n format = 'hsv';\n }\n else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {\n s = convertToPercentage(color.s);\n l = convertToPercentage(color.l);\n rgb = hslToRgb(color.h, s, l);\n ok = true;\n format = 'hsl';\n }\n if (Object.prototype.hasOwnProperty.call(color, 'a')) {\n a = color.a;\n }\n }\n a = boundAlpha(a);\n return {\n ok: ok,\n format: color.format || format,\n r: Math.min(255, Math.max(rgb.r, 0)),\n g: Math.min(255, Math.max(rgb.g, 0)),\n b: Math.min(255, Math.max(rgb.b, 0)),\n a: a,\n };\n}\n// <http://www.w3.org/TR/css3-values/#integers>\nvar CSS_INTEGER = '[-\\\\+]?\\\\d+%?';\n// <http://www.w3.org/TR/css3-values/#number-value>\nvar CSS_NUMBER = '[-\\\\+]?\\\\d*\\\\.\\\\d+%?';\n// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.\nvar CSS_UNIT = \"(?:\".concat(CSS_NUMBER, \")|(?:\").concat(CSS_INTEGER, \")\");\n// Actual matching.\n// Parentheses and commas are optional, but not required.\n// Whitespace can take the place of commas or opening paren\nvar PERMISSIVE_MATCH3 = \"[\\\\s|\\\\(]+(\".concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")\\\\s*\\\\)?\");\nvar PERMISSIVE_MATCH4 = \"[\\\\s|\\\\(]+(\".concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")\\\\s*\\\\)?\");\nvar matchers = {\n CSS_UNIT: new RegExp(CSS_UNIT),\n rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),\n rgba: new RegExp('rgba' + PERMISSIVE_MATCH4),\n hsl: new RegExp('hsl' + PERMISSIVE_MATCH3),\n hsla: new RegExp('hsla' + PERMISSIVE_MATCH4),\n hsv: new RegExp('hsv' + PERMISSIVE_MATCH3),\n hsva: new RegExp('hsva' + PERMISSIVE_MATCH4),\n hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n};\n/**\n * Permissive string parsing. Take in a number of formats, and output an object\n * based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`\n */\nexport function stringInputToObject(color) {\n color = color.trim().toLowerCase();\n if (color.length === 0) {\n return false;\n }\n var named = false;\n if (names[color]) {\n color = names[color];\n named = true;\n }\n else if (color === 'transparent') {\n return { r: 0, g: 0, b: 0, a: 0, format: 'name' };\n }\n // Try to match string input using regular expressions.\n // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]\n // Just return an object and let the conversion functions handle that.\n // This way the result will be the same whether the tinycolor is initialized with string or object.\n var match = matchers.rgb.exec(color);\n if (match) {\n return { r: match[1], g: match[2], b: match[3] };\n }\n match = matchers.rgba.exec(color);\n if (match) {\n return { r: match[1], g: match[2], b: match[3], a: match[4] };\n }\n match = matchers.hsl.exec(color);\n if (match) {\n return { h: match[1], s: match[2], l: match[3] };\n }\n match = matchers.hsla.exec(color);\n if (match) {\n return { h: match[1], s: match[2], l: match[3], a: match[4] };\n }\n match = matchers.hsv.exec(color);\n if (match) {\n return { h: match[1], s: match[2], v: match[3] };\n }\n match = matchers.hsva.exec(color);\n if (match) {\n return { h: match[1], s: match[2], v: match[3], a: match[4] };\n }\n match = matchers.hex8.exec(color);\n if (match) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n a: convertHexToDecimal(match[4]),\n format: named ? 'name' : 'hex8',\n };\n }\n match = matchers.hex6.exec(color);\n if (match) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n format: named ? 'name' : 'hex',\n };\n }\n match = matchers.hex4.exec(color);\n if (match) {\n return {\n r: parseIntFromHex(match[1] + match[1]),\n g: parseIntFromHex(match[2] + match[2]),\n b: parseIntFromHex(match[3] + match[3]),\n a: convertHexToDecimal(match[4] + match[4]),\n format: named ? 'name' : 'hex8',\n };\n }\n match = matchers.hex3.exec(color);\n if (match) {\n return {\n r: parseIntFromHex(match[1] + match[1]),\n g: parseIntFromHex(match[2] + match[2]),\n b: parseIntFromHex(match[3] + match[3]),\n format: named ? 'name' : 'hex',\n };\n }\n return false;\n}\n/**\n * Check to see if it looks like a CSS unit\n * (see `matchers` above for definition).\n */\nexport function isValidCSSUnit(color) {\n return Boolean(matchers.CSS_UNIT.exec(String(color)));\n}\n","import { inputToRGB, rgbToHex, rgbToHsv } from '@ctrl/tinycolor';\nvar hueStep = 2; // 色相阶梯\nvar saturationStep = 0.16; // 饱和度阶梯,浅色部分\nvar saturationStep2 = 0.05; // 饱和度阶梯,深色部分\nvar brightnessStep1 = 0.05; // 亮度阶梯,浅色部分\nvar brightnessStep2 = 0.15; // 亮度阶梯,深色部分\nvar lightColorCount = 5; // 浅色数量,主色上\nvar darkColorCount = 4; // 深色数量,主色下\n// 暗色主题颜色映射关系表\nvar darkColorMap = [{\n index: 7,\n opacity: 0.15\n}, {\n index: 6,\n opacity: 0.25\n}, {\n index: 5,\n opacity: 0.3\n}, {\n index: 5,\n opacity: 0.45\n}, {\n index: 5,\n opacity: 0.65\n}, {\n index: 5,\n opacity: 0.85\n}, {\n index: 4,\n opacity: 0.9\n}, {\n index: 3,\n opacity: 0.95\n}, {\n index: 2,\n opacity: 0.97\n}, {\n index: 1,\n opacity: 0.98\n}];\n// Wrapper function ported from TinyColor.prototype.toHsv\n// Keep it here because of `hsv.h * 360`\nfunction toHsv(_ref) {\n var r = _ref.r,\n g = _ref.g,\n b = _ref.b;\n var hsv = rgbToHsv(r, g, b);\n return {\n h: hsv.h * 360,\n s: hsv.s,\n v: hsv.v\n };\n}\n\n// Wrapper function ported from TinyColor.prototype.toHexString\n// Keep it here because of the prefix `#`\nfunction toHex(_ref2) {\n var r = _ref2.r,\n g = _ref2.g,\n b = _ref2.b;\n return \"#\".concat(rgbToHex(r, g, b, false));\n}\n\n// Wrapper function ported from TinyColor.prototype.mix, not treeshakable.\n// Amount in range [0, 1]\n// Assume color1 & color2 has no alpha, since the following src code did so.\nfunction mix(rgb1, rgb2, amount) {\n var p = amount / 100;\n var rgb = {\n r: (rgb2.r - rgb1.r) * p + rgb1.r,\n g: (rgb2.g - rgb1.g) * p + rgb1.g,\n b: (rgb2.b - rgb1.b) * p + rgb1.b\n };\n return rgb;\n}\nfunction getHue(hsv, i, light) {\n var hue;\n // 根据色相不同,色相转向不同\n if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {\n hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;\n } else {\n hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;\n }\n if (hue < 0) {\n hue += 360;\n } else if (hue >= 360) {\n hue -= 360;\n }\n return hue;\n}\nfunction getSaturation(hsv, i, light) {\n // grey color don't change saturation\n if (hsv.h === 0 && hsv.s === 0) {\n return hsv.s;\n }\n var saturation;\n if (light) {\n saturation = hsv.s - saturationStep * i;\n } else if (i === darkColorCount) {\n saturation = hsv.s + saturationStep;\n } else {\n saturation = hsv.s + saturationStep2 * i;\n }\n // 边界值修正\n if (saturation > 1) {\n saturation = 1;\n }\n // 第一格的 s 限制在 0.06-0.1 之间\n if (light && i === lightColorCount && saturation > 0.1) {\n saturation = 0.1;\n }\n if (saturation < 0.06) {\n saturation = 0.06;\n }\n return Number(saturation.toFixed(2));\n}\nfunction getValue(hsv, i, light) {\n var value;\n if (light) {\n value = hsv.v + brightnessStep1 * i;\n } else {\n value = hsv.v - brightnessStep2 * i;\n }\n if (value > 1) {\n value = 1;\n }\n return Number(value.toFixed(2));\n}\nexport default function generate(color) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var patterns = [];\n var pColor = inputToRGB(color);\n for (var i = lightColorCount; i > 0; i -= 1) {\n var hsv = toHsv(pColor);\n var colorString = toHex(inputToRGB({\n h: getHue(hsv, i, true),\n s: getSaturation(hsv, i, true),\n v: getValue(hsv, i, true)\n }));\n patterns.push(colorString);\n }\n patterns.push(toHex(pColor));\n for (var _i = 1; _i <= darkColorCount; _i += 1) {\n var _hsv = toHsv(pColor);\n var _colorString = toHex(inputToRGB({\n h: getHue(_hsv, _i),\n s: getSaturation(_hsv, _i),\n v: getValue(_hsv, _i)\n }));\n patterns.push(_colorString);\n }\n\n // dark theme patterns\n if (opts.theme === 'dark') {\n return darkColorMap.map(function (_ref3) {\n var index = _ref3.index,\n opacity = _ref3.opacity;\n var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || '#141414'), inputToRGB(patterns[index]), opacity * 100));\n return darkColorString;\n });\n }\n return patterns;\n}","import generate from \"./generate\";\nvar presetPrimaryColors = {\n red: '#F5222D',\n volcano: '#FA541C',\n orange: '#FA8C16',\n gold: '#FAAD14',\n yellow: '#FADB14',\n lime: '#A0D911',\n green: '#52C41A',\n cyan: '#13C2C2',\n blue: '#1677FF',\n geekblue: '#2F54EB',\n purple: '#722ED1',\n magenta: '#EB2F96',\n grey: '#666666'\n};\nvar presetPalettes = {};\nvar presetDarkPalettes = {};\nObject.keys(presetPrimaryColors).forEach(function (key) {\n presetPalettes[key] = generate(presetPrimaryColors[key]);\n presetPalettes[key].primary = presetPalettes[key][5];\n\n // dark presetPalettes\n presetDarkPalettes[key] = generate(presetPrimaryColors[key], {\n theme: 'dark',\n backgroundColor: '#141414'\n });\n presetDarkPalettes[key].primary = presetDarkPalettes[key][5];\n});\nvar red = presetPalettes.red;\nvar volcano = presetPalettes.volcano;\nvar gold = presetPalettes.gold;\nvar orange = presetPalettes.orange;\nvar yellow = presetPalettes.yellow;\nvar lime = presetPalettes.lime;\nvar green = presetPalettes.green;\nvar cyan = presetPalettes.cyan;\nvar blue = presetPalettes.blue;\nvar geekblue = presetPalettes.geekblue;\nvar purple = presetPalettes.purple;\nvar magenta = presetPalettes.magenta;\nvar grey = presetPalettes.grey;\nvar gray = presetPalettes.grey;\nexport { generate, presetPalettes, presetDarkPalettes, presetPrimaryColors, red, volcano, orange, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey, gray };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nexport default function _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}","export default function canUseDom() {\n return !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n}","export default function contains(root, n) {\n if (!root) {\n return false;\n }\n\n // Use native if support\n if (root.contains) {\n return root.contains(n);\n }\n\n // `document.contains` not support with IE11\n var node = n;\n while (node) {\n if (node === root) {\n return true;\n }\n node = node.parentNode;\n }\n return false;\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport canUseDom from \"./canUseDom\";\nimport contains from \"./contains\";\nvar APPEND_ORDER = 'data-rc-order';\nvar APPEND_PRIORITY = 'data-rc-priority';\nvar MARK_KEY = \"rc-util-key\";\nvar containerCache = new Map();\nfunction getMark() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n mark = _ref.mark;\n if (mark) {\n return mark.startsWith('data-') ? mark : \"data-\".concat(mark);\n }\n return MARK_KEY;\n}\nfunction getContainer(option) {\n if (option.attachTo) {\n return option.attachTo;\n }\n var head = document.querySelector('head');\n return head || document.body;\n}\nfunction getOrder(prepend) {\n if (prepend === 'queue') {\n return 'prependQueue';\n }\n return prepend ? 'prepend' : 'append';\n}\n\n/**\n * Find style which inject by rc-util\n */\nfunction findStyles(container) {\n return Array.from((containerCache.get(container) || container).children).filter(function (node) {\n return node.tagName === 'STYLE';\n });\n}\nexport function injectCSS(css) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!canUseDom()) {\n return null;\n }\n var csp = option.csp,\n prepend = option.prepend,\n _option$priority = option.priority,\n priority = _option$priority === void 0 ? 0 : _option$priority;\n var mergedOrder = getOrder(prepend);\n var isPrependQueue = mergedOrder === 'prependQueue';\n var styleNode = document.createElement('style');\n styleNode.setAttribute(APPEND_ORDER, mergedOrder);\n if (isPrependQueue && priority) {\n styleNode.setAttribute(APPEND_PRIORITY, \"\".concat(priority));\n }\n if (csp !== null && csp !== void 0 && csp.nonce) {\n styleNode.nonce = csp === null || csp === void 0 ? void 0 : csp.nonce;\n }\n styleNode.innerHTML = css;\n var container = getContainer(option);\n var firstChild = container.firstChild;\n if (prepend) {\n // If is queue `prepend`, it will prepend first style and then append rest style\n if (isPrependQueue) {\n var existStyle = (option.styles || findStyles(container)).filter(function (node) {\n // Ignore style which not injected by rc-util with prepend\n if (!['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER))) {\n return false;\n }\n\n // Ignore style which priority less then new style\n var nodePriority = Number(node.getAttribute(APPEND_PRIORITY) || 0);\n return priority >= nodePriority;\n });\n if (existStyle.length) {\n container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);\n return styleNode;\n }\n }\n\n // Use `insertBefore` as `prepend`\n container.insertBefore(styleNode, firstChild);\n } else {\n container.appendChild(styleNode);\n }\n return styleNode;\n}\nfunction findExistNode(key) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var container = getContainer(option);\n return (option.styles || findStyles(container)).find(function (node) {\n return node.getAttribute(getMark(option)) === key;\n });\n}\nexport function removeCSS(key) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var existNode = findExistNode(key, option);\n if (existNode) {\n var container = getContainer(option);\n container.removeChild(existNode);\n }\n}\n\n/**\n * qiankun will inject `appendChild` to insert into other\n */\nfunction syncRealContainer(container, option) {\n var cachedRealContainer = containerCache.get(container);\n\n // Find real container when not cached or cached container removed\n if (!cachedRealContainer || !contains(document, cachedRealContainer)) {\n var placeholderStyle = injectCSS('', option);\n var parentNode = placeholderStyle.parentNode;\n containerCache.set(container, parentNode);\n container.removeChild(placeholderStyle);\n }\n}\n\n/**\n * manually clear container cache to avoid global cache in unit testes\n */\nexport function clearContainerCache() {\n containerCache.clear();\n}\nexport function updateCSS(css, key) {\n var originOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var container = getContainer(originOption);\n var styles = findStyles(container);\n var option = _objectSpread(_objectSpread({}, originOption), {}, {\n styles: styles\n });\n\n // Sync real parent\n syncRealContainer(container, option);\n var existNode = findExistNode(key, option);\n if (existNode) {\n var _option$csp, _option$csp2;\n if ((_option$csp = option.csp) !== null && _option$csp !== void 0 && _option$csp.nonce && existNode.nonce !== ((_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce)) {\n var _option$csp3;\n existNode.nonce = (_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce;\n }\n if (existNode.innerHTML !== css) {\n existNode.innerHTML = css;\n }\n return existNode;\n }\n var newNode = injectCSS(css, option);\n newNode.setAttribute(getMark(option), key);\n return newNode;\n}","function getRoot(ele) {\n var _ele$getRootNode;\n return ele === null || ele === void 0 || (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);\n}\n\n/**\n * Check if is in shadowRoot\n */\nexport function inShadow(ele) {\n return getRoot(ele) instanceof ShadowRoot;\n}\n\n/**\n * Return shadowRoot if possible\n */\nexport function getShadowRoot(ele) {\n return inShadow(ele) ? getRoot(ele) : null;\n}","/* eslint-disable no-console */\nvar warned = {};\nvar preWarningFns = [];\n\n/**\n * Pre warning enable you to parse content before console.error.\n * Modify to null will prevent warning.\n */\nexport var preMessage = function preMessage(fn) {\n preWarningFns.push(fn);\n};\n\n/**\n * Warning if condition not match.\n * @param valid Condition\n * @param message Warning message\n * @example\n * ```js\n * warning(false, 'some error'); // print some error\n * warning(true, 'some error'); // print nothing\n * warning(1 === 2, 'some error'); // print some error\n * ```\n */\nexport function warning(valid, message) {\n if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n var finalMessage = preWarningFns.reduce(function (msg, preMessageFn) {\n return preMessageFn(msg !== null && msg !== void 0 ? msg : '', 'warning');\n }, message);\n if (finalMessage) {\n console.error(\"Warning: \".concat(finalMessage));\n }\n }\n}\n\n/** @see Similar to {@link warning} */\nexport function note(valid, message) {\n if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n var finalMessage = preWarningFns.reduce(function (msg, preMessageFn) {\n return preMessageFn(msg !== null && msg !== void 0 ? msg : '', 'note');\n }, message);\n if (finalMessage) {\n console.warn(\"Note: \".concat(finalMessage));\n }\n }\n}\nexport function resetWarned() {\n warned = {};\n}\nexport function call(method, valid, message) {\n if (!valid && !warned[message]) {\n method(false, message);\n warned[message] = true;\n }\n}\n\n/** @see Same as {@link warning}, but only warn once for the same message */\nexport function warningOnce(valid, message) {\n call(warning, valid, message);\n}\n\n/** @see Same as {@link warning}, but only warn once for the same message */\nexport function noteOnce(valid, message) {\n call(note, valid, message);\n}\nwarningOnce.preMessage = preMessage;\nwarningOnce.resetWarned = resetWarned;\nwarningOnce.noteOnce = noteOnce;\nexport default warningOnce;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { generate as generateColor } from '@ant-design/colors';\nimport { updateCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport { getShadowRoot } from \"rc-util/es/Dom/shadow\";\nimport warn from \"rc-util/es/warning\";\nimport React, { useContext, useEffect } from 'react';\nimport IconContext from \"./components/Context\";\nfunction camelCase(input) {\n return input.replace(/-(.)/g, function (match, g) {\n return g.toUpperCase();\n });\n}\nexport function warning(valid, message) {\n warn(valid, \"[@ant-design/icons] \".concat(message));\n}\nexport function isIconDefinition(target) {\n return _typeof(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof(target.icon) === 'object' || typeof target.icon === 'function');\n}\nexport function normalizeAttrs() {\n var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return Object.keys(attrs).reduce(function (acc, key) {\n var val = attrs[key];\n switch (key) {\n case 'class':\n acc.className = val;\n delete acc.class;\n break;\n default:\n delete acc[key];\n acc[camelCase(key)] = val;\n }\n return acc;\n }, {});\n}\nexport function generate(node, key, rootProps) {\n if (!rootProps) {\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n }\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread(_objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n}\nexport function getSecondaryColor(primaryColor) {\n // choose the second color\n return generateColor(primaryColor)[0];\n}\nexport function normalizeTwoToneColors(twoToneColor) {\n if (!twoToneColor) {\n return [];\n }\n return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];\n}\n\n// These props make sure that the SVG behaviours like general text.\n// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4\nexport var svgBaseProps = {\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true',\n focusable: 'false'\n};\nexport var iconStyles = \"\\n.anticon {\\n display: inline-block;\\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\";\nexport var useInsertStyles = function useInsertStyles(eleRef) {\n var _useContext = useContext(IconContext),\n csp = _useContext.csp,\n prefixCls = _useContext.prefixCls;\n var mergedStyleStr = iconStyles;\n if (prefixCls) {\n mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);\n }\n useEffect(function () {\n var ele = eleRef.current;\n var shadowRoot = getShadowRoot(ele);\n updateCSS(mergedStyleStr, '@ant-design-icons', {\n prepend: true,\n csp: csp,\n attachTo: shadowRoot\n });\n }, []);\n};","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nvar _excluded = [\"icon\", \"className\", \"onClick\", \"style\", \"primaryColor\", \"secondaryColor\"];\nimport * as React from 'react';\nimport { generate, getSecondaryColor, isIconDefinition, warning, useInsertStyles } from \"../utils\";\nvar twoToneColorPalette = {\n primaryColor: '#333',\n secondaryColor: '#E6E6E6',\n calculated: false\n};\nfunction setTwoToneColors(_ref) {\n var primaryColor = _ref.primaryColor,\n secondaryColor = _ref.secondaryColor;\n twoToneColorPalette.primaryColor = primaryColor;\n twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);\n twoToneColorPalette.calculated = !!secondaryColor;\n}\nfunction getTwoToneColors() {\n return _objectSpread({}, twoToneColorPalette);\n}\nvar IconBase = function IconBase(props) {\n var icon = props.icon,\n className = props.className,\n onClick = props.onClick,\n style = props.style,\n primaryColor = props.primaryColor,\n secondaryColor = props.secondaryColor,\n restProps = _objectWithoutProperties(props, _excluded);\n var svgRef = React.useRef();\n var colors = twoToneColorPalette;\n if (primaryColor) {\n colors = {\n primaryColor: primaryColor,\n secondaryColor: secondaryColor || getSecondaryColor(primaryColor)\n };\n }\n useInsertStyles(svgRef);\n warning(isIconDefinition(icon), \"icon should be icon definiton, but got \".concat(icon));\n if (!isIconDefinition(icon)) {\n return null;\n }\n var target = icon;\n if (target && typeof target.icon === 'function') {\n target = _objectSpread(_objectSpread({}, target), {}, {\n icon: target.icon(colors.primaryColor, colors.secondaryColor)\n });\n }\n return generate(target.icon, \"svg-\".concat(target.name), _objectSpread(_objectSpread({\n className: className,\n onClick: onClick,\n style: style,\n 'data-icon': target.name,\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true'\n }, restProps), {}, {\n ref: svgRef\n }));\n};\nIconBase.displayName = 'IconReact';\nIconBase.getTwoToneColors = getTwoToneColors;\nIconBase.setTwoToneColors = setTwoToneColors;\nexport default IconBase;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport ReactIcon from \"./IconBase\";\nimport { normalizeTwoToneColors } from \"../utils\";\nexport function setTwoToneColor(twoToneColor) {\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n return ReactIcon.setTwoToneColors({\n primaryColor: primaryColor,\n secondaryColor: secondaryColor\n });\n}\nexport function getTwoToneColor() {\n var colors = ReactIcon.getTwoToneColors();\n if (!colors.calculated) {\n return colors.primaryColor;\n }\n return [colors.primaryColor, colors.secondaryColor];\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"className\", \"icon\", \"spin\", \"rotate\", \"tabIndex\", \"onClick\", \"twoToneColor\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { blue } from '@ant-design/colors';\nimport Context from \"./Context\";\nimport ReactIcon from \"./IconBase\";\nimport { getTwoToneColor, setTwoToneColor } from \"./twoTonePrimaryColor\";\nimport { normalizeTwoToneColors } from \"../utils\";\n// Initial setting\n// should move it to antd main repo?\nsetTwoToneColor(blue.primary);\n\n// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720\n\nvar Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var className = props.className,\n icon = props.icon,\n spin = props.spin,\n rotate = props.rotate,\n tabIndex = props.tabIndex,\n onClick = props.onClick,\n twoToneColor = props.twoToneColor,\n restProps = _objectWithoutProperties(props, _excluded);\n var _React$useContext = React.useContext(Context),\n _React$useContext$pre = _React$useContext.prefixCls,\n prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,\n rootClassName = _React$useContext.rootClassName;\n var classString = classNames(rootClassName, prefixCls, _defineProperty(_defineProperty({}, \"\".concat(prefixCls, \"-\").concat(icon.name), !!icon.name), \"\".concat(prefixCls, \"-spin\"), !!spin || icon.name === 'loading'), className);\n var iconTabIndex = tabIndex;\n if (iconTabIndex === undefined && onClick) {\n iconTabIndex = -1;\n }\n var svgStyle = rotate ? {\n msTransform: \"rotate(\".concat(rotate, \"deg)\"),\n transform: \"rotate(\".concat(rotate, \"deg)\")\n } : undefined;\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n return /*#__PURE__*/React.createElement(\"span\", _extends({\n role: \"img\",\n \"aria-label\": icon.name\n }, restProps, {\n ref: ref,\n tabIndex: iconTabIndex,\n onClick: onClick,\n className: classString\n }), /*#__PURE__*/React.createElement(ReactIcon, {\n icon: icon,\n primaryColor: primaryColor,\n secondaryColor: secondaryColor,\n style: svgStyle\n }));\n});\nIcon.displayName = 'AntdIcon';\nIcon.getTwoToneColor = getTwoToneColor;\nIcon.setTwoToneColor = setTwoToneColor;\nexport default Icon;","// This icon file is generated automatically.\nvar LoadingOutlined = { \"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\" };\nexport default LoadingOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport LoadingOutlinedSvg from \"@ant-design/icons-svg/es/asn/LoadingOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar LoadingOutlined = function LoadingOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: LoadingOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n LoadingOutlined.displayName = 'LoadingOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(LoadingOutlined);","// This icon file is generated automatically.\nvar RightOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z\" } }] }, \"name\": \"right\", \"theme\": \"outlined\" };\nexport default RightOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport RightOutlinedSvg from \"@ant-design/icons-svg/es/asn/RightOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar RightOutlined = function RightOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: RightOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n RightOutlined.displayName = 'RightOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(RightOutlined);","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { forwardRef, useState } from 'react'\r\nimport styled from 'styled-components'\r\nimport CollapseBase, { animationDuration, type CollapseBaseProps, type CollapseChangeHandler, type CollapseRef } from \"./CollapseBase\"\r\n\r\nimport { RightOutlined } from '@ant-design/icons'\r\nimport { Typography, theme } from 'antd'\r\n\r\ntype CssColor = React.CSSProperties[\"color\"]\r\n\r\nconst HeaderContainer = styled.div`\r\n padding: 0 12px;\r\n align-items: center;\r\n display: flex;\r\n justify-content: space-between;\r\n width: calc(100% - 2 * 12px);\r\n border-radius: 6px;\r\n height: 32px;\r\n`\r\n\r\nconst RightTextWrapper = styled.div`\r\n display: flex;\r\n align-items: center;\r\n gap: 6px;\r\n font-weight: 400;\r\n font-style: italic;\r\n`\r\n\r\nconst CollapseIcon = styled(RightOutlined)<{ color: CssColor }>`\r\n font-size: 18px;\r\n color: ${p => p.color};\r\n svg {\r\n transition: transform ${animationDuration * .7}ms ease-in-out;\r\n }\r\n`\r\n\r\nexport interface CollapseProps extends Omit<CollapseBaseProps, \"style\"> {\r\n title?: React.ReactNode, // Text in the header\r\n activeColor?: CssColor, // Background colour of header while visible\r\n inactiveColor?: CssColor, // Background colour of header while hidden\r\n image?: string, // Optional image, instead of caret\r\n rightText?: React.ReactNode, // Additional text on the right of the header\r\n style?: { header?: React.CSSProperties, children?: React.CSSProperties }, // Style for the .header and .children\r\n}\r\n\r\nconst Collapse = forwardRef<CollapseRef, CollapseProps>(({\r\n open, onChange, defaultOpen,\r\n title, image, rightText,\r\n activeColor, inactiveColor,\r\n border, style, width,\r\n children\r\n}, ref) => {\r\n const { token } = theme.useToken()\r\n const [ show, setShow ] = useState(false)\r\n\r\n if (!activeColor) activeColor = token.colorFill\r\n if (!inactiveColor) inactiveColor = token.colorFillSecondary\r\n\r\n const changeHandler : CollapseChangeHandler = (open) => {\r\n setShow(open)\r\n onChange?.(open)\r\n }\r\n\r\n const renderCaret = () => {\r\n if (image) return <img src={image} style={{ height: 18 }} alt=\"dropdown\"/>\r\n return <CollapseIcon rotate={show ? 90 : 0} color={token.colorPrimary} />\r\n }\r\n\r\n const childrenStyle = Object.assign({\r\n borderEndStartRadius: 6,\r\n borderEndEndRadius: 6\r\n }, style?.children)\r\n\r\n return (\r\n <CollapseBase\r\n ref={ref}\r\n header={\r\n <HeaderContainer style={Object.assign({\r\n backgroundColor: show ? activeColor : inactiveColor,\r\n borderEndStartRadius: show && 0,\r\n borderEndEndRadius: show && 0\r\n }, style?.header)}>\r\n <Typography.Text>{title}</Typography.Text>\r\n <RightTextWrapper>\r\n <Typography.Text>{ rightText }</Typography.Text>\r\n { renderCaret() }\r\n </RightTextWrapper>\r\n </HeaderContainer>\r\n }\r\n border={border}\r\n defaultOpen={defaultOpen}\r\n open={open}\r\n onChange={changeHandler}\r\n style={childrenStyle}\r\n width={width}\r\n >\r\n { children }\r\n </CollapseBase>\r\n )\r\n})\r\n\r\nexport default Collapse\r\n","import { forwardRef } from 'react'\r\nimport styled from 'styled-components'\r\n\r\nimport { theme } from 'antd'\r\n\r\nconst ContentContainer = styled.div`\r\n padding: 12px;\r\n`\r\n\r\nexport type ContentProps = React.PropsWithChildren<{\r\n background?: React.CSSProperties[\"background\"]\r\n}>\r\n\r\nconst CollapseContent = forwardRef<HTMLDivElement, ContentProps>(({ children, background }, ref) => {\r\n const { token: { colorFillSecondary } } = theme.useToken()\r\n\r\n return (\r\n <ContentContainer\r\n ref={ref}\r\n style={{\r\n background: background || `linear-gradient(150deg, transparent 30%, ${colorFillSecondary})`\r\n }}\r\n >\r\n { children }\r\n </ContentContainer>\r\n )\r\n})\r\n\r\nexport default CollapseContent\r\n","import { default as InternalCollapse } from \"./Collapse\"\r\nimport { default as CollapseBase } from \"./CollapseBase\"\r\nimport { default as CollapseContent } from \"./CollapseContent\"\r\n\r\nexport type { CollapseProps } from \"./Collapse\"\r\nexport type { CollapseBaseProps, CollapseRef } from \"./CollapseBase\"\r\nexport type { ContentProps } from \"./CollapseContent\"\r\n\r\ntype CollapseType = typeof InternalCollapse & {\r\n Content: typeof CollapseContent,\r\n Base: typeof CollapseBase\r\n}\r\n\r\nconst Collapse = InternalCollapse as CollapseType\r\nCollapse.Content = CollapseContent\r\nCollapse.Base = CollapseBase\r\nexport default Collapse\r\n","import { Typography } from \"antd\"\r\nimport styled from \"styled-components\"\r\n\r\nexport const Item = styled.div<{ $colorBorder?: React.CSSProperties[\"color\"] }>`\r\n cursor: pointer;\r\n height: var(--row-height);\r\n width: calc(100% - 2 * 8px);\r\n padding: 0 8px;\r\n margin: 0;\r\n border-bottom: 1px solid ${p => p.$colorBorder || \"#d9d9d9\"};\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n transition: backdrop-filter .4s;\r\n\r\n &:hover {\r\n backdrop-filter: brightness(1.2);\r\n }\r\n`\r\n\r\nexport const ItemText = styled(Typography.Text)`\r\n max-width: calc(100% - 3.5rem);\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n font-weight: 500;\r\n`\r\n\r\nexport const SubItem = styled(Item)<{ $colorActiveBg: React.CSSProperties[\"color\"] }>`\r\n &:last-child {\r\n border-bottom: unset;\r\n }\r\n\r\n &.active {\r\n background-color: ${p => p.$colorActiveBg};\r\n }\r\n`\r\n","import { theme } from 'antd'\r\nimport type { SelectorClickHandler, SelectorItem, SelectorRenderer } from './index'\r\nimport { ItemText, SubItem } from './style'\r\n\r\ninterface SelectorSubItemProps {\r\n item?: SelectorItem,\r\n onClick?: SelectorClickHandler,\r\n active?: boolean,\r\n parentKey?: string,\r\n itemRender?: SelectorRenderer\r\n}\r\n\r\nconst SelectorSubItem : React.FC<SelectorSubItemProps> = ({ item, onClick, active, parentKey, itemRender }) => {\r\n const { token: { colorBorder, colorPrimary } } = theme.useToken()\r\n const renderer = itemRender || ((child) => child)\r\n const keyPath = [ item.key ]\r\n if (parentKey) keyPath.unshift(parentKey)\r\n\r\n const clickHandler : React.MouseEventHandler<HTMLDivElement> = (e) => {\r\n onClick?.({\r\n item,\r\n key: item.key,\r\n keyPath,\r\n domEvent: e\r\n })\r\n }\r\n\r\n return renderer(\r\n <SubItem onClick={clickHandler} className={active && \"active\"} $colorBorder={colorBorder} $colorActiveBg={colorPrimary}>\r\n <ItemText>\r\n { item.label }\r\n </ItemText>\r\n { item.icon } {/* size 32px */}\r\n </SubItem>,\r\n { item, keyPath, key: item.key }\r\n )\r\n}\r\n\r\nexport default SelectorSubItem\r\n","import { theme } from 'antd'\r\nimport { useEffect, useRef, useState, useCallback } from 'react'\r\nimport { Collapse, type CollapseRef } from '@/Display'\r\nimport { Item, ItemText } from \"./style\"\r\n\r\nimport type { SelectorClickHandler, SelectorItemGroup, SelectorRenderer } from './index'\r\nimport SelectorSubItem from './SelectorSubItem'\r\n\r\ninterface SelectorItemProps {\r\n item?: SelectorItemGroup,\r\n onClick?: SelectorClickHandler,\r\n itemRender?: SelectorRenderer,\r\n open?: boolean\r\n}\r\n\r\nconst SelectorItem : React.FC<SelectorItemProps> = ({\r\n item, onClick, itemRender, open\r\n}) => {\r\n const { token: { colorPrimary, colorBorder } } = theme.useToken()\r\n const [ isOpen, setOpen ] = useState(false)\r\n const collapseRef = useRef<CollapseRef>(null)\r\n const renderer = itemRender || ((child) => child)\r\n\r\n const toggleOpen = useCallback(async (nextState?: boolean) => {\r\n const next = typeof nextState === \"boolean\" ? nextState : !isOpen\r\n\r\n if (next) setOpen(true)\r\n else setOpen(false)\r\n }, [ isOpen ])\r\n\r\n const clickHandler : React.MouseEventHandler<HTMLDivElement> = (e) => {\r\n if (open === undefined) toggleOpen()\r\n onClick?.({\r\n item,\r\n key: item.key,\r\n keyPath: [ item.key ],\r\n domEvent: e\r\n })\r\n }\r\n\r\n useEffect(() => {\r\n if (typeof open === \"boolean\") toggleOpen(open)\r\n }, [ open, toggleOpen ])\r\n\r\n useEffect(() => {\r\n collapseRef.current.calculateHeight()\r\n }, [ item.children ])\r\n\r\n return (\r\n <Collapse.Base ref={collapseRef}\r\n header={renderer(\r\n <Item onClick={clickHandler}\r\n style={{ backgroundColor: isOpen ? colorPrimary : undefined }}\r\n $colorBorder={isOpen ? \"transparent\" : colorBorder}\r\n >\r\n <ItemText>{ item?.label }</ItemText>\r\n { item?.icon }\r\n </Item>,\r\n { item, keyPath: [ item.key ], key: item.key })\r\n }\r\n open={isOpen}\r\n >\r\n <div style={{\r\n borderLeft: `1px solid ${colorPrimary}`,\r\n borderRight: `2px solid ${colorPrimary}`,\r\n borderBottom: `1px solid ${colorPrimary}`,\r\n boxShadow: `inset 0 0 3px ${colorPrimary}`\r\n }}>\r\n {Array.isArray(item.children) && item.children.map(child => (\r\n <SelectorSubItem key={child.key} itemRender={renderer} onClick={onClick} item={child} parentKey={item.key} />\r\n ))}\r\n </div>\r\n </Collapse.Base>\r\n )\r\n}\r\n\r\nexport default SelectorItem\r\n","import React, { forwardRef, useEffect, useState } from 'react'\r\nimport { Input as AntInput, Space, Typography, theme } from 'antd'\r\nimport styled from 'styled-components'\r\nimport { LoadingOutlined } from \"@ant-design/icons\"\r\n\r\nimport SelectorItem from './SelectorItem'\r\nimport { Item } from './style'\r\nimport SelectorSubItem from './SelectorSubItem'\r\n\r\nconst SelectorContainer = styled.div`\r\n --row-height: 48px;\r\n --site-selector-height: 100%;\r\n height: 100%;\r\n\r\n position: relative;\r\n`\r\n\r\nconst SearchContainer = styled.div`\r\n height: calc(var(--row-height) - 1px);\r\n width: calc(100% - 2 * 6px);\r\n padding: 0 6px;\r\n display: flex;\r\n align-items: center;\r\n border-bottom: 1px solid gray;\r\n`\r\n\r\nconst ItemsContainer = styled.div`\r\n height: calc(100% - 2 * var(--row-height));\r\n overflow-y: auto;\r\n`\r\n\r\nconst CreateContainer = styled(SearchContainer)`\r\n justify-content: center;\r\n background-color: rgba(163, 163, 163, 0.1);\r\n border-top: 1px solid gray;\r\n border-bottom: unset;\r\n`\r\n\r\nexport interface SelectorItem {\r\n key: string,\r\n label: React.ReactNode,\r\n icon?: React.ReactNode\r\n}\r\n\r\nexport interface SelectorItemGroup extends SelectorItem {\r\n type: \"group\",\r\n children: SelectorItem[]\r\n}\r\n\r\ninterface ItemInfo {\r\n item: SelectorItem|SelectorItemGroup,\r\n key: string,\r\n keyPath: string[],\r\n domEvent: React.MouseEvent<HTMLDivElement>\r\n}\r\n\r\nexport type SelectorRenderer = (child: React.ReactNode, info: Omit<ItemInfo, \"domEvent\">) => React.ReactNode\r\n\r\nexport type SelectorClickHandler = (info: ItemInfo) => void\r\n\r\nexport interface SelectorProps {\r\n items?: (SelectorItem|SelectorItemGroup)[],\r\n messageEmpty?: React.ReactNode,\r\n onClick?: SelectorClickHandler,\r\n loading?: boolean|string,\r\n itemRender?: SelectorRenderer,\r\n openKeys?: string[],\r\n bottomAddon?: React.ReactNode,\r\n search?: string,\r\n onSearchChange?: (value: string) => void\r\n}\r\n\r\nconst Selector = forwardRef<HTMLDivElement, SelectorProps>(({\r\n items, messageEmpty, onClick, loading, openKeys, bottomAddon, search, onSearchChange, itemRender\r\n}, ref) => {\r\n const [ _openKeys, setOpenKeys ] = useState([])\r\n const { token: { colorBorder } } = theme.useToken()\r\n\r\n useEffect(() => {\r\n if (Array.isArray(openKeys)) setOpenKeys(openKeys)\r\n }, [ openKeys ])\r\n\r\n const clickHandler : SelectorClickHandler = (info) => {\r\n if (openKeys === undefined && info.keyPath.length === 1) {\r\n if (\"children\" in info.item) {\r\n // update openkeys\r\n if (_openKeys.some(v => v === info.key)) setOpenKeys(_openKeys.filter(v => v !== info.key))\r\n else setOpenKeys(_openKeys.concat(info.key))\r\n } else {\r\n // set openkeys\r\n setOpenKeys([ info.item.key ])\r\n }\r\n }\r\n onClick?.(info)\r\n }\r\n\r\n const renderItems = () => {\r\n if (loading) return (\r\n <Item $colorBorder={colorBorder}>\r\n <Typography.Text>\r\n <Space>\r\n { typeof loading === \"string\" ? loading : \"Loading items...\" }\r\n <LoadingOutlined />\r\n </Space>\r\n </Typography.Text>\r\n </Item>\r\n )\r\n if (!items?.length) return (\r\n <Item $colorBorder={colorBorder}>\r\n <Typography.Text>{ messageEmpty || \"No items found\" }</Typography.Text>\r\n </Item>\r\n )\r\n\r\n return items.map((item) => {\r\n if (\"type\" in item) {\r\n switch (item.type) {\r\n case \"group\": return (\r\n <SelectorItem key={item.key}\r\n item={item} onClick={clickHandler}\r\n open={_openKeys.includes(item.key)}\r\n itemRender={itemRender}\r\n />\r\n )\r\n default: break\r\n }\r\n }\r\n\r\n return (\r\n <SelectorSubItem key={item.key}\r\n item={item} onClick={clickHandler}\r\n active={_openKeys.includes(item.key)}\r\n itemRender={itemRender}\r\n />\r\n )\r\n })\r\n }\r\n\r\n return (\r\n <SelectorContainer ref={ref}>\r\n <SearchContainer>\r\n <AntInput.Search addonBefore={items?.length || \"0\"} onChange={e => onSearchChange(e.target.value)} value={search} allowClear enterButton=\"Search\" />\r\n </SearchContainer>\r\n <ItemsContainer>\r\n { renderItems() }\r\n </ItemsContainer>\r\n <CreateContainer>\r\n { bottomAddon }\r\n </CreateContainer>\r\n </SelectorContainer>\r\n )\r\n})\r\n\r\nexport default Selector\r\n","import styled from \"styled-components\"\r\n\r\nconst Container = styled.div`\r\n background: linear-gradient(60deg,rgba(75,80,85,.5),rgba(125,123,120,.5));\r\n border-radius: 4px;\r\n box-shadow: 0 .1em .3em rgba(0,0,0,.4);\r\n margin-block: 16px;\r\n padding: 12px 16px;\r\n\r\n @media screen and (min-width: 768px) {\r\n padding: 24px;\r\n margin-inline: 4px;\r\n }\r\n`\r\n\r\nconst SmallHeader = styled.h3`\r\n padding-inline: 6px;\r\n padding-bottom: 4px;\r\n margin: 0;\r\n margin-bottom: 8px;\r\n font-weight: 300;\r\n color: #25b1ef;\r\n border-bottom: 2px solid #25b1ef;\r\n\r\n @media only screen and (min-width: 768px) {\r\n font-size: 1.3rem;\r\n }\r\n`\r\n\r\nexport type LightCardProps = React.PropsWithChildren & {\r\n title?: React.ReactNode\r\n}\r\n\r\nconst LightCard : React.FC<LightCardProps> = ({ children, title }) => {\r\n return (\r\n <Container>\r\n { title &&\r\n <SmallHeader>{ title }</SmallHeader>\r\n }\r\n { children }\r\n </Container>\r\n )\r\n}\r\n\r\nexport default LightCard\r\n","import { theme } from \"antd\"\r\nimport styled from \"styled-components\"\r\n\r\ntype CssColor = React.CSSProperties[\"color\"]\r\n\r\nconst Container = styled.div<{ $bgLight: CssColor, $bgMain: CssColor, $bgAccent: CssColor }>`\r\n background: radial-gradient(circle at 70% 50px, ${p => p.$bgLight} 15%, ${p => p.$bgMain} max(50%, 350px), ${p => p.$bgAccent} max(100%, 800px));\r\n padding: 12px 8px;\r\n border-radius: 0;\r\n\r\n @media screen and (min-width: 768px) {\r\n padding: 24px 40px;\r\n border-radius: 12px;\r\n }\r\n`\r\n\r\nconst ServiceSettingsHeader = styled.h2<{ $color: CssColor }>`\r\n padding-inline: 8px;\r\n margin-bottom: 2px;\r\n font-weight: 300;\r\n color: ${p => p.$color};\r\n font-size: 1.3rem;\r\n width: max-content;\r\n margin-top: 8px;\r\n\r\n @media screen and (min-width: 768px) {\r\n font-size: 2rem;\r\n }\r\n`\r\n\r\nconst ServiceSettingsHeaderWrapper = styled.div<{ $color: CssColor }>`\r\n margin-bottom: .5em;\r\n font-size: 1.3rem;\r\n border-bottom: 1px solid ${p => p.$color};\r\n\r\n @media screen and (min-width: 768px) {\r\n border-bottom: 3px solid ${p => p.$color};\r\n font-size: 2rem;\r\n }\r\n`\r\n\r\nexport type DarkCardProps = React.PropsWithChildren & {\r\n title?: React.ReactNode\r\n}\r\n\r\nconst DarkCard : React.FC<DarkCardProps> = ({ children, title }) => {\r\n const { token: { colorBgContainer, colorBgBase, colorPrimary, colorPrimaryBg } } = theme.useToken()\r\n\r\n return (\r\n <Container\r\n $bgLight={colorBgContainer}\r\n $bgMain={colorBgBase}\r\n $bgAccent={colorPrimaryBg}\r\n >\r\n { title &&\r\n <ServiceSettingsHeaderWrapper $color={colorPrimary}>\r\n <ServiceSettingsHeader $color={colorPrimary}>\r\n { title }\r\n </ServiceSettingsHeader>\r\n </ServiceSettingsHeaderWrapper>\r\n }\r\n { children }\r\n </Container>\r\n )\r\n}\r\n\r\nexport default DarkCard\r\n","import styled from \"styled-components\"\r\nimport { Typography } from \"antd\"\r\n\r\nexport const HeaderTextBox = styled.li`\r\n position: relative;\r\n text-decoration: none;\r\n cursor: pointer;\r\n text-align: left;\r\n display: flex;\r\n align-items: center;\r\n\r\n @media only screen and not (min-width: 768px) {\r\n padding-left: 1rem;\r\n margin-bottom: 1rem;\r\n }\r\n`\r\n\r\nexport const HeaderText = styled(Typography.Text)`\r\n font-size: 1.5rem;\r\n font-weight: 600;\r\n color: inherit;\r\n transition: transform .3s ease-in-out;\r\n\r\n &:hover {\r\n transform: translateY(-2px);\r\n }\r\n\r\n width: max-content;\r\n\r\n @media only screen and (min-width: 768px) {\r\n opacity: 1;\r\n position: relative;\r\n }\r\n`\r\n","import type { MenuGroupItem, MenuItem, NavbarRenderer } from './index'\r\nimport { useMemo, useState } from 'react'\r\nimport styled, { keyframes } from 'styled-components'\r\nimport { HeaderText, HeaderTextBox } from './style'\r\n\r\nconst fadeInUp = keyframes`\r\n 0% {\r\n opacity: 0;\r\n transform: translate(0, 8px);\r\n } 100% {\r\n opacity: 1;\r\n transform: translate(0, 0);\r\n }\r\n`\r\n\r\nconst Submenu = styled.ul`\r\n --inset: 12px;\r\n --padding-y: 6px;\r\n --border-radius: 0 0 var(--padding-y) var(--padding-y);\r\n\r\n position: absolute;\r\n top: calc(100% - var(--inset) + 2px);\r\n animation: ${fadeInUp} .2s;\r\n background-color: var(--bg-color);\r\n color: black;\r\n padding: var(--inset) 0 var(--padding-y) 0;\r\n margin: 0;\r\n\r\n &::before {\r\n content: '';\r\n position: absolute;\r\n inset: var(--inset) 0 0 0;\r\n border-radius: var(--border-radius);\r\n box-shadow: .5px 1px 5px rgba(0,0,0,0.25);\r\n z-index: -1;\r\n }\r\n\r\n @media only screen and (min-width: 768px) {\r\n border-radius: var(--border-radius);\r\n right: -6px;\r\n }\r\n\r\n @media only screen and not (min-width: 768px) {\r\n width: 100%;\r\n top: 100%;\r\n left: 0;\r\n }\r\n`\r\n\r\nconst SubmenuItem = styled.li`\r\n padding: .25rem .75rem;\r\n min-width: 12rem;\r\n cursor: pointer;\r\n font-weight: 600;\r\n display: block;\r\n\r\n &:hover {\r\n background: linear-gradient(rgba(0,0,0,.1) 2%, transparent 15%, transparent 85%, rgba(0,0,0,.1) 98%);\r\n }\r\n`\r\n\r\nexport type NavbarDropdownClickHandler = (\r\n e: React.MouseEvent<HTMLLIElement>,\r\n info?: {\r\n item: MenuItem|MenuGroupItem,\r\n key: string\r\n }\r\n) => void\r\n\r\nexport interface NavbarDropdownProps {\r\n onClick?: NavbarDropdownClickHandler,\r\n item?: MenuGroupItem,\r\n activeKey?: string,\r\n itemRender?: NavbarRenderer\r\n}\r\n\r\nconst DropdownItems : React.FC<NavbarDropdownProps> = (props) => {\r\n const { item, onClick, activeKey, itemRender } = props\r\n if (!Array.isArray(item?.children)) return null\r\n const renderer = itemRender || ((child) => child)\r\n\r\n return item.children.map(child => {\r\n const handleClick : NavbarDropdownClickHandler = (e) => {\r\n onClick?.(e, { item: child, key: child.key })\r\n }\r\n\r\n return (\r\n <SubmenuItem key={child.key}\r\n className={activeKey === child.key && \"active\"}\r\n onClick={handleClick}\r\n >\r\n {renderer(\r\n child.label,\r\n {\r\n item: child,\r\n key: child.key,\r\n keyPath: [ item.key, child.key ]\r\n }\r\n )}\r\n </SubmenuItem>\r\n )\r\n })\r\n}\r\n\r\nconst NavbarDropdown : React.FC<NavbarDropdownProps> = (props) => {\r\n const { item, activeKey, onClick } = props\r\n const [ isOpen, setIsOpen ] = useState(false)\r\n\r\n const handleClick : NavbarDropdownClickHandler = (e, info) => {\r\n if (info) {\r\n setIsOpen(false)\r\n onClick?.(e, info)\r\n } else {\r\n setIsOpen(!isOpen) // use this notation, otherwise onMouseEnter will open it first\r\n onClick?.(e, {\r\n key: item?.key,\r\n item\r\n })\r\n }\r\n }\r\n\r\n const isActive = useMemo(() => (\r\n activeKey === item?.key || item?.children.some(v => v.key === activeKey)\r\n ), [ activeKey, item ])\r\n\r\n return (\r\n <HeaderTextBox\r\n className={isActive && \"active\"}\r\n onClick={handleClick}\r\n onMouseEnter={() => { setIsOpen(true) }}\r\n onMouseLeave={() => { setIsOpen(false) }}\r\n >\r\n <HeaderText>\r\n { item?.label }\r\n </HeaderText>\r\n <Submenu hidden={!isOpen}>\r\n <DropdownItems {...props} />\r\n </Submenu>\r\n </HeaderTextBox>\r\n )\r\n}\r\n\r\nexport default NavbarDropdown\r\n","import { useState, useRef, forwardRef, useEffect } from 'react'\r\nimport { theme } from 'antd'\r\nimport styled from \"styled-components\"\r\n\r\nimport { HeaderTextBox, HeaderText } from \"./style\"\r\nimport NavbarDropdown, { NavbarDropdownClickHandler } from './NavbarDropdown'\r\n\r\ntype CssColor = React.CSSProperties[\"color\"]\r\n\r\nconst defaultHeight = 64\r\n\r\nconst HeaderStyle = styled.div`\r\n --bg-color: #fff;\r\n --border-width: 3px;\r\n --grid-padding-x: max(0px, calc(calc(100vw - 1200px) / 2));\r\n --selector-width: 280px;\r\n --logo-size: 48px;\r\n\r\n display: grid;\r\n border-bottom: var(--border-width) solid black;\r\n background-color: var(--bg-color);\r\n height: calc(var(--navbar-height) - var(--border-width));\r\n\r\n user-select: none;\r\n text-align: center;\r\n z-index: 999;\r\n width: 100%;\r\n position: sticky;\r\n top: 0;\r\n transition: background-color .3s;\r\n\r\n @media only screen and (min-width: 768px) {\r\n grid-template-columns: calc(var(--grid-padding-x) + 1rem) var(--selector-width) 1rem 1fr calc(var(--grid-padding-x) + 1rem);\r\n }\r\n\r\n @media only screen and (min-width: 992px) {\r\n --selector-width: 320px;\r\n }\r\n\r\n /* Possible solution for additional navbar items */\r\n /* @media only screen and (min-width: calc(1200px + calc(48px + 32px) * 2)) {\r\n grid-template-columns: var(--grid-padding-x) 0 0 1fr var(--grid-padding-x);\r\n } */\r\n`\r\n\r\nconst LogoContainer = styled.div`\r\n width: var(--logo-size);\r\n height: var(--logo-size);\r\n margin: calc(calc(var(--navbar-height) - var(--logo-size)) / 2) auto;\r\n\r\n @media only screen and (min-width: 768px) {\r\n grid-column: 2 / 3;\r\n }\r\n\r\n // Using logo-size and padding\r\n @media only screen and (min-width: calc(1200px + calc(48px + 32px) * 2)) {\r\n grid-column: 1 / 2;\r\n }\r\n`\r\n\r\nconst NavStyle = styled.nav`\r\n width: 100%;\r\n transform-origin: top;\r\n transition: transform 400ms ease-in-out;\r\n grid-column: 4 / 5;\r\n\r\n @media only screen and not (min-width: 768px) {\r\n position: absolute;\r\n background-color: rgba(0,0,0,.87);\r\n border-bottom: 3px solid white;\r\n top: 100%;\r\n left: 0;\r\n transform: scale(1, 0);\r\n }\r\n\r\n @media only screen and (min-width: 768px) {\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\r\n transition: none;\r\n height: var(--navbar-height);\r\n }\r\n`\r\n\r\nconst ItemsList = styled.ul<{ $textColor: CssColor, $activeColor: CssColor }>`\r\n font-family: 'Noto Sans JP', sans-serif;\r\n list-style-type: none;\r\n padding-left: 0;\r\n height: 100%;\r\n opacity: 0;\r\n transition: all 150ms ease-in-out;\r\n\r\n @media only screen and (min-width: 768px) {\r\n display: flex;\r\n column-gap: 20px;\r\n align-items: stretch;\r\n opacity: unset;\r\n }\r\n\r\n @media only screen and (min-width: 992px) {\r\n column-gap: 32px;\r\n }\r\n\r\n color: ${p => p.$textColor};\r\n\r\n /* For active NavLink react-router-dom */\r\n .active {\r\n color: ${p => p.$activeColor};\r\n }\r\n`\r\n\r\nconst ToggleLabel = styled.label`\r\n position: absolute;\r\n top: 0;\r\n left: 1rem;\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n\r\n @media only screen and (min-width: 768px) {\r\n display: none;\r\n }\r\n`\r\n\r\nconst ToggleInput = styled.input<{ $color: CssColor }>`\r\n display: block;\r\n background-color: ${p => p.$color};\r\n height: .2em;\r\n width: 2em;\r\n border-radius: 1em;\r\n position: relative;\r\n appearance: none;\r\n outline: unset;\r\n transition: transform .4s ease-in-out, background-color .5s;\r\n\r\n &::after,\r\n &::before {\r\n display: block;\r\n background-color: ${p => p.$color};\r\n height: .2em;\r\n width: 2em;\r\n border-radius: 1em;\r\n position: relative;\r\n content: '';\r\n position: absolute;\r\n transition: transform .4s ease-in-out;\r\n }\r\n\r\n &::after {\r\n transform: translateY(-.6em)\r\n }\r\n\r\n &::before {\r\n transform: translateY(.6em)\r\n }\r\n\r\n &:checked {\r\n transform: translateX(-2em);\r\n background: transparent;\r\n }\r\n\r\n &:checked::after {\r\n transform: rotateZ(45deg) translate(1.4em, -1.4em);\r\n }\r\n\r\n &:checked::before {\r\n transform: rotateZ(-45deg) translate(1.4em, 1.4em);\r\n }\r\n`\r\n\r\nexport interface MenuItem {\r\n key: string,\r\n label: React.ReactNode\r\n}\r\n\r\nexport interface MenuGroupItem extends MenuItem {\r\n type: \"group\",\r\n children: MenuItem[]\r\n}\r\n\r\ninterface ItemInfo {\r\n item: MenuItem|MenuGroupItem,\r\n key: string,\r\n keyPath: string[],\r\n domEvent: React.MouseEvent<HTMLLIElement>\r\n}\r\n\r\ntype NavbarClickHandler = (info: ItemInfo) => void\r\n\r\nexport type NavbarRenderer = (child: React.ReactNode, info: Omit<ItemInfo, \"domEvent\">) => React.ReactNode\r\n\r\nexport interface NavbarProps {\r\n logo?: React.ReactNode,\r\n items?: (MenuItem|MenuGroupItem)[],\r\n onClick?: NavbarClickHandler,\r\n activeKey?: string,\r\n textColor?: CssColor,\r\n activeColor?: CssColor,\r\n toggleColor?: CssColor,\r\n height?: number,\r\n itemRender?: NavbarRenderer\r\n}\r\n\r\ntype NavbarItemsProps = Pick<NavbarProps, \"items\"|\"onClick\"|\"activeKey\"|\"itemRender\"> & {\r\n style?: React.CSSProperties\r\n}\r\n\r\nconst NavbarItems = (props: NavbarItemsProps) => {\r\n const { items, activeKey, onClick, itemRender } = props\r\n const renderer = itemRender || ((child) => child)\r\n if (!Array.isArray(items)) return null\r\n\r\n return items.map((item) => {\r\n const handleClick : NavbarDropdownClickHandler = (e, info) => {\r\n const detail = {\r\n item,\r\n key: item.key,\r\n keyPath: [ item.key ],\r\n domEvent: e\r\n }\r\n\r\n if (info) {\r\n detail.keyPath.push(info.key)\r\n detail.key = info.key\r\n detail.item = info.item\r\n }\r\n\r\n onClick?.(detail)\r\n }\r\n\r\n if (\"type\" in item) {\r\n switch (item.type) {\r\n case \"group\": return (\r\n <NavbarDropdown key={item.key} item={item} onClick={handleClick} activeKey={activeKey} itemRender={renderer} />\r\n )\r\n default: break\r\n }\r\n }\r\n\r\n return (\r\n <HeaderTextBox key={item.key}\r\n className={activeKey === item.key && \"active\"}\r\n onClick={handleClick}\r\n >\r\n { renderer(\r\n <HeaderText>\r\n { item.label }\r\n </HeaderText>,\r\n {\r\n item,\r\n key: item.key,\r\n keyPath: [ item.key ]\r\n }\r\n )}\r\n </HeaderTextBox>\r\n )\r\n })\r\n}\r\n\r\nconst Navbar = forwardRef<HTMLDivElement, NavbarProps>((props, ref) => {\r\n const { height, textColor, activeColor, logo, toggleColor, onClick, ...itemProps } = props\r\n const { token: { colorPrimary } } = theme.useToken()\r\n const [ navStyle, setNavStyle ] = useState({})\r\n const [ navContentStyle, setNavContentStyle ] = useState({})\r\n const toggleRef = useRef(/** @type {HTMLInputElement} */(null))\r\n\r\n useEffect(() => {\r\n // add --navbar-height CSS variable to page root\r\n if (typeof height === \"number\" && height >= 48) {\r\n document.documentElement.style.setProperty(\"--navbar-height\", `${Math.round(height)}px`)\r\n } else {\r\n document.documentElement.style.setProperty(\"--navbar-height\", `${defaultHeight}px`)\r\n }\r\n }, [ height ])\r\n\r\n const toggleShow = () => {\r\n if (toggleRef.current.checked) {\r\n setNavStyle({ transform: \"scale(1,1)\" })\r\n setNavContentStyle({\r\n opacity: 1,\r\n transition: \"opacity 150ms ease-in-out 250ms\"\r\n })\r\n } else {\r\n setNavContentStyle({})\r\n setNavStyle({})\r\n }\r\n }\r\n\r\n const handleClick : NavbarClickHandler = (info) => {\r\n // prevent parent items from being clicked\r\n info.domEvent.stopPropagation()\r\n // hide dropdown if leaf item\r\n if (!(\"children\" in info.item)) {\r\n toggleRef.current.checked = false\r\n toggleShow()\r\n }\r\n onClick?.(info)\r\n }\r\n\r\n return (\r\n <HeaderStyle ref={ref} style={{ borderBottomColor: textColor || colorPrimary }}>\r\n <LogoContainer>\r\n { logo }\r\n </LogoContainer>\r\n\r\n <NavStyle style={Object.assign({ borderBottomColor: activeColor || colorPrimary }, navStyle)}>\r\n <ItemsList\r\n $activeColor={activeColor || colorPrimary}\r\n $textColor={textColor}\r\n style={navContentStyle}\r\n >\r\n <NavbarItems {...itemProps} onClick={handleClick} />\r\n </ItemsList>\r\n </NavStyle>\r\n\r\n <ToggleLabel htmlFor=\"nav-toggle\">\r\n <ToggleInput ref={toggleRef}\r\n type=\"checkbox\" id=\"nav-toggle\"\r\n aria-label=\"show navigation\"\r\n onChange={toggleShow}\r\n $color={toggleColor || \"black\"}\r\n />\r\n </ToggleLabel>\r\n </HeaderStyle>\r\n )\r\n})\r\n\r\nexport default Navbar\r\n","import { theme } from \"antd\"\r\nimport { forwardRef } from \"react\"\r\nimport styled from \"styled-components\"\r\n\r\ntype CssColor = React.CSSProperties[\"color\"]\r\n\r\n// TODO: use antd breakpoints\r\nconst SettingsContainer = styled.div<{ $bgLight: CssColor, $bgDark: CssColor }>`\r\n background: linear-gradient(-120deg, ${p => p.$bgLight} 20%, ${p => p.$bgDark} 80%);\r\n overflow-y: auto;\r\n flex: 1 1 auto;\r\n position: relative;\r\n\r\n height: calc(100% - var(--selector-height)); /* Adjust for site selector height */\r\n\r\n @media only screen and (min-width: 768px) {\r\n border-radius: 8px;\r\n box-shadow: inset 0 0 2px 1px rgba(255,255,255,.1);\r\n height: unset;\r\n }\r\n\r\n &::-webkit-scrollbar {\r\n width: 5px;\r\n\r\n @media only screen and not (min-width: 768px) {\r\n display: none;\r\n }\r\n }\r\n\r\n &::-webkit-scrollbar-track {\r\n background: none;\r\n }\r\n\r\n &::-webkit-scrollbar-thumb {\r\n background-color: var(--thumb-bg);\r\n border-radius: 3px;\r\n }\r\n\r\n /* Decrease scrollbar height for border-radius */\r\n &::-webkit-scrollbar-track-piece:start {\r\n margin-top: 1em;\r\n }\r\n\r\n &::-webkit-scrollbar-track-piece:end {\r\n margin-bottom: 1em;\r\n }\r\n`\r\n\r\nconst SettingsFlex = styled.div`\r\n display: flex;\r\n align-items: center;\r\n flex-direction: column;\r\n padding: 1rem 0;\r\n gap: 1.5rem;\r\n\r\n @media only screen and (min-width: 768px) {\r\n padding: 1.5rem;\r\n gap: 2rem;\r\n }\r\n\r\n @media only screen and (min-width: 992px) {\r\n padding: 1.5rem 2.5rem;\r\n }\r\n`\r\n\r\nconst MainSettings = forwardRef<HTMLDivElement, React.PropsWithChildren>(({ children }, ref) => {\r\n const { theme: { id }, token: { colorBgBase, colorBgContainer, colorBgElevated, colorBgLayout } } = theme.useToken()\r\n\r\n let bgDark = colorBgElevated\r\n let bgLight = colorBgLayout\r\n if (id === 1) {\r\n bgDark = colorBgBase\r\n bgLight = colorBgContainer\r\n }\r\n\r\n return (\r\n <SettingsContainer ref={ref} $bgDark={bgDark} $bgLight={bgLight}>\r\n <SettingsFlex>\r\n { children }\r\n </SettingsFlex>\r\n </SettingsContainer>\r\n )\r\n})\r\n\r\nexport default MainSettings\r\n","import * as React from 'react';\nexport default function useEvent(callback) {\n var fnRef = React.useRef();\n fnRef.current = callback;\n var memoFn = React.useCallback(function () {\n var _fnRef$current;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));\n }, []);\n return memoFn;\n}","import * as React from 'react';\nimport canUseDom from \"../Dom/canUseDom\";\n\n/**\n * Wrap `React.useLayoutEffect` which will not throw warning message in test env\n */\nvar useInternalLayoutEffect = process.env.NODE_ENV !== 'test' && canUseDom() ? React.useLayoutEffect : React.useEffect;\nvar useLayoutEffect = function useLayoutEffect(callback, deps) {\n var firstMountRef = React.useRef(true);\n useInternalLayoutEffect(function () {\n return callback(firstMountRef.current);\n }, deps);\n\n // We tell react that first mount has passed\n useInternalLayoutEffect(function () {\n firstMountRef.current = false;\n return function () {\n firstMountRef.current = true;\n };\n }, []);\n};\nexport var useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {\n useLayoutEffect(function (firstMount) {\n if (!firstMount) {\n return callback();\n }\n }, deps);\n};\nexport default useLayoutEffect;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\n/**\n * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.\n * We do not make this auto is to avoid real memory leak.\n * Developer should confirm it's safe to ignore themselves.\n */\nexport default function useSafeState(defaultValue) {\n var destroyRef = React.useRef(false);\n var _React$useState = React.useState(defaultValue),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n value = _React$useState2[0],\n setValue = _React$useState2[1];\n React.useEffect(function () {\n destroyRef.current = false;\n return function () {\n destroyRef.current = true;\n };\n }, []);\n function safeSetState(updater, ignoreDestroy) {\n if (ignoreDestroy && destroyRef.current) {\n return;\n }\n setValue(updater);\n }\n return [value, safeSetState];\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport useEvent from \"./useEvent\";\nimport { useLayoutUpdateEffect } from \"./useLayoutEffect\";\nimport useState from \"./useState\";\n/** We only think `undefined` is empty */\nfunction hasValue(value) {\n return value !== undefined;\n}\n\n/**\n * Similar to `useState` but will use props value if provided.\n * Note that internal use rc-util `useState` hook.\n */\nexport default function useMergedState(defaultStateValue, option) {\n var _ref = option || {},\n defaultValue = _ref.defaultValue,\n value = _ref.value,\n onChange = _ref.onChange,\n postState = _ref.postState;\n\n // ======================= Init =======================\n var _useState = useState(function () {\n if (hasValue(value)) {\n return value;\n } else if (hasValue(defaultValue)) {\n return typeof defaultValue === 'function' ? defaultValue() : defaultValue;\n } else {\n return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;\n }\n }),\n _useState2 = _slicedToArray(_useState, 2),\n innerValue = _useState2[0],\n setInnerValue = _useState2[1];\n var mergedValue = value !== undefined ? value : innerValue;\n var postMergedValue = postState ? postState(mergedValue) : mergedValue;\n\n // ====================== Change ======================\n var onChangeFn = useEvent(onChange);\n var _useState3 = useState([mergedValue]),\n _useState4 = _slicedToArray(_useState3, 2),\n prevValue = _useState4[0],\n setPrevValue = _useState4[1];\n useLayoutUpdateEffect(function () {\n var prev = prevValue[0];\n if (innerValue !== prev) {\n onChangeFn(innerValue, prev);\n }\n }, [prevValue]);\n\n // Sync value back to `undefined` when it from control to un-control\n useLayoutUpdateEffect(function () {\n if (!hasValue(value)) {\n setInnerValue(value);\n }\n }, [value]);\n\n // ====================== Update ======================\n var triggerChange = useEvent(function (updater, ignoreDestroy) {\n setInnerValue(updater, ignoreDestroy);\n setPrevValue([mergedValue], ignoreDestroy);\n });\n return [postMergedValue, triggerChange];\n}","import { forwardRef, useEffect, useState } from 'react'\r\nimport styled, { createGlobalStyle } from 'styled-components'\r\nimport { useMergedState } from \"rc-util\"\r\n\r\nimport { Collapse, type CollapseBaseProps } from '@/Display'\r\nimport { theme } from 'antd'\r\n\r\ntype CssColor = React.CSSProperties[\"color\"]\r\n\r\nconst collapseHeight = 36\r\n\r\nconst GlobalStyle = createGlobalStyle`\r\n #main {\r\n --selector-height: 36px;\r\n }\r\n`\r\n\r\nconst SelectorContainer = styled.div<{ $bgLight: CssColor, $bgDark: CssColor }>`\r\n position: sticky;\r\n top: calc(var(--navbar-height) + var(--main-margin-v));\r\n box-shadow: inset 0 0 2px 1px rgba(255,255,255,.1);\r\n border-radius: 8px;\r\n overflow: auto;\r\n flex: 0 0 var(--site-selector-width);\r\n background: linear-gradient(35deg, ${p => p.$bgDark} 20%, ${p => p.$bgLight});\r\n max-height: var(--main-height);\r\n\r\n @media screen and not (min-width: 768px) {\r\n width: 100%;\r\n border-radius: unset;\r\n height: calc(var(--main-height) - ${collapseHeight}px)\r\n }\r\n`\r\n\r\ninterface MainSelectorBaseProps {\r\n title?: React.ReactNode,\r\n collapseOpen?: boolean,\r\n onChange?: CollapseBaseProps[\"onChange\"]\r\n}\r\n\r\nexport type MainSelectorProps = React.PropsWithChildren<MainSelectorBaseProps>\r\n\r\nconst MainSelector = forwardRef<HTMLDivElement, MainSelectorProps>(({ title, children, collapseOpen: propsCollapseOpen, onChange }, ref) => {\r\n const { theme: { id }, token: { colorBgBase, colorBgContainer, colorBgLayout } } = theme.useToken()\r\n const [ width, setWidth ] = useState(1280)\r\n const [ collapseOpen, setCollapseOpen ] = useMergedState(false, { value: propsCollapseOpen })\r\n\r\n let bgDark = colorBgBase\r\n let bgLight = colorBgLayout\r\n if (id === 1) {\r\n bgDark = colorBgBase\r\n bgLight = colorBgContainer\r\n }\r\n\r\n const handleCollapseChange = (open) => {\r\n setCollapseOpen(open)\r\n onChange?.(open)\r\n }\r\n\r\n useEffect(() => {\r\n const updateWindowDimensions = () => { setWidth(window.innerWidth) }\r\n\r\n updateWindowDimensions()\r\n window.addEventListener('resize', updateWindowDimensions)\r\n\r\n return () => {\r\n window.removeEventListener('resize', updateWindowDimensions)\r\n }\r\n }, [])\r\n\r\n const renderAll = (\r\n <SelectorContainer ref={ref}\r\n $bgDark={bgDark}\r\n $bgLight={bgLight}\r\n >\r\n <GlobalStyle />\r\n { children }\r\n </SelectorContainer>\r\n )\r\n\r\n if (width < 768) {\r\n return (\r\n <div style={{ flex: \"0 0 100%\", height: collapseHeight }}>\r\n <Collapse\r\n title={title}\r\n activeColor={colorBgBase}\r\n style={{\r\n header: { height: collapseHeight, borderRadius: 0 },\r\n children: { position: \"absolute\", zIndex: 100, borderRadius: 0 }\r\n }}\r\n onChange={handleCollapseChange}\r\n open={collapseOpen}\r\n >\r\n { renderAll }\r\n </Collapse>\r\n </div>\r\n )\r\n }\r\n\r\n return renderAll\r\n})\r\n\r\nexport default MainSelector\r\n","import styled from \"styled-components\"\r\nimport MainSettings from \"./MainSettings\"\r\nimport MainSelector from \"./MainSelector\"\r\nimport { forwardRef } from \"react\"\r\n\r\n// TODO: use antd breakpoints\r\nconst MainContainer = styled.div`\r\n --main-margin-v: 0px;\r\n --site-selector-width: 280px;\r\n --main-height: calc(100vh - var(--navbar-height));\r\n --selector-height: 0px;\r\n\r\n position: relative;\r\n max-width: calc(1200px - 2 * 1rem); /* Adjusted for padding */\r\n margin: var(--main-margin-v) auto;\r\n height: var(--main-height);\r\n\r\n @media only screen and (min-width: 768px) {\r\n --main-margin-v: 2rem;\r\n --main-height: min(calc(100vh - var(--navbar-height) - 2 * var(--main-margin-v)), 85vh);\r\n\r\n display: flex;\r\n align-items: stretch;\r\n column-gap: 1rem;\r\n padding: 0 1rem;\r\n\r\n &.content-height {\r\n height: unset;\r\n max-height: var(--main-height);\r\n }\r\n\r\n &.no-scroll {\r\n height: unset;\r\n min-height: var(--main-height);\r\n max-height: unset;\r\n }\r\n\r\n &.content-height {\r\n min-height: unset;\r\n }\r\n }\r\n\r\n @media only screen and (min-width: 992px) {\r\n --site-selector-width: 320px;\r\n }\r\n`\r\n\r\ninterface MainBaseProps {\r\n overflow?: \"scroll\"|\"visible\",\r\n height?: \"full\"|\"content\"\r\n}\r\n\r\nexport type MainProps = React.PropsWithChildren<MainBaseProps>\r\n\r\ntype MainLayoutType = React.ForwardRefExoticComponent<MainProps & React.RefAttributes<HTMLDivElement>> & {\r\n Settings: typeof MainSettings,\r\n Selector: typeof MainSelector\r\n}\r\n\r\nconst MainLayout = forwardRef(({ children, overflow, height = \"full\" }, ref) => {\r\n const classNames = []\r\n switch (overflow) {\r\n case \"visible\": classNames.push(\"no-scroll\"); break\r\n default: break\r\n }\r\n switch (height) {\r\n case \"content\": classNames.push(\"content-height\"); break\r\n default: break\r\n }\r\n\r\n return (\r\n <MainContainer ref={ref} id=\"main\" className={classNames.join(\" \")}>{ children }</MainContainer>\r\n )\r\n}) as MainLayoutType\r\n\r\nMainLayout.Settings = MainSettings\r\nMainLayout.Selector = MainSelector\r\n\r\nexport default MainLayout\r\n","import { Button as AntButton } from \"antd\"\r\nimport styled from \"styled-components\"\r\n\r\nexport const Button = styled(AntButton)`\r\n --shadow-color: ${p => p.danger ? \"#f5222d\" : \"#e07d1d\"};\r\n\r\n box-shadow: 1.5px 2px var(--shadow-color);\r\n margin-bottom: 1px;\r\n\r\n &:focus {\r\n box-shadow: 1px 1.5px var(--shadow-color);\r\n }\r\n\r\n &:hover {\r\n box-shadow: 0 0 var(--shadow-color);\r\n }\r\n`\r\n\r\nexport const CenteredButton = styled(Button)`\r\n margin-left: auto;\r\n margin-right: auto;\r\n display: block;\r\n width: max-content;\r\n`\r\n\r\nexport const ExtraSmallButton = styled(Button)`\r\n width: max-content;\r\n background-color: rgba(255,255,255,.05);\r\n border: unset;\r\n box-shadow: unset;\r\n`\r\n\r\nexport const RightButton = styled(CenteredButton)`\r\n margin-right: unset;\r\n`\r\n","import { Form, Typography, theme } from 'antd'\r\nimport React, { PropsWithChildren, forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react'\r\nimport styled from 'styled-components'\r\n\r\nexport interface HoverLabelProps {\r\n name?: string, // id of the input element\r\n size?: \"small\"|\"middle\"|\"large\",\r\n colorText?: React.CSSProperties[\"color\"],\r\n colorTextActive?: React.CSSProperties[\"color\"]\r\n}\r\n\r\ntype LabelOffsets = Pick<React.CSSProperties, \"display\"|\"top\"|\"left\"|\"fontSize\">\r\n\r\nconst InputLabel = styled(Typography.Text)`\r\n position: absolute;\r\n transition: all .4s ease;\r\n z-index: 10;\r\n cursor: text;\r\n`\r\n\r\nconst HoverLabel = forwardRef<HTMLLabelElement, PropsWithChildren<HoverLabelProps>>((props, ref) => {\r\n const { name, size, children, colorText, colorTextActive } = props\r\n const [ labelStyle, setLabelStyle ] = useState({})\r\n const labelRef = useRef<HTMLLabelElement>(null)\r\n const value = Form.useWatch(name)\r\n const { token } = theme.useToken()\r\n const [ offsets, setOffsets ] = useState<LabelOffsets>({ display: \"none\" })\r\n\r\n const [ blurStyle, focusStyle ] = useMemo(() => [\r\n {},\r\n { left: 0, top: 0, color: colorTextActive || token.colorPrimary, cursor: \"default\" }\r\n ], [ colorTextActive, token ])\r\n\r\n useImperativeHandle(ref, () => labelRef.current)\r\n\r\n useEffect(() => {\r\n const parentNode = labelRef.current?.parentNode as HTMLLabelElement\r\n const labelParent = parentNode.parentNode as HTMLDivElement\r\n parentNode.style.width = \"100%\"\r\n labelParent.style.overflow = \"visible\"\r\n }, [])\r\n\r\n useEffect(() => {\r\n if (value) return setLabelStyle(focusStyle)\r\n if (document.activeElement.id !== name) setLabelStyle(blurStyle)\r\n }, [ value, name, blurStyle, focusStyle ])\r\n\r\n useEffect(() => {\r\n let top : React.CSSProperties[\"top\"]\r\n let left : number\r\n let fontSize : number\r\n\r\n // use labelRef to prevent label layout shift\r\n if (!labelRef.current) setOffsets({ display: \"none\" })\r\n if (typeof name !== \"string\") setOffsets({})\r\n const inputEl = document.getElementById(name) as HTMLInputElement\r\n if (!inputEl) setOffsets({})\r\n const previousSibling = inputEl.previousElementSibling as HTMLElement\r\n\r\n const padLeftExtra = inputEl.offsetLeft\r\n const hasPrefix = previousSibling?.classList.contains(\"ant-input-prefix\")\r\n\r\n switch (size) {\r\n case \"small\":\r\n left = (token.Input?.paddingInlineSM || token.paddingXS)+ padLeftExtra\r\n top = `calc(100% + ${(token.Input?.paddingBlockSM || 0)}px + 9px)`\r\n fontSize = token.Input?.inputFontSizeSM || token.fontSize\r\n break\r\n case \"large\":\r\n left = (token.Input?.paddingInlineLG || token.paddingSM)+ padLeftExtra\r\n top = `calc(100% + ${(token.Input?.paddingBlock || 7)}px + 8px)`\r\n fontSize = token.Input?.inputFontSizeLG || token.fontSizeLG\r\n break\r\n default:\r\n left = (token.Input?.paddingInline || token.paddingSM)+ padLeftExtra\r\n top = `calc(100% + ${(token.Input?.paddingBlock || 4)}px + 9px)`\r\n fontSize = token.Input?.inputFontSize || token.fontSize\r\n break\r\n }\r\n\r\n if (hasPrefix) left = padLeftExtra\r\n\r\n setOffsets({ top, left, fontSize })\r\n }, [ size, name, token ])\r\n\r\n useEffect(() => {\r\n if (typeof name !== \"string\") return\r\n const inputEl = document.getElementById(name) as HTMLInputElement\r\n if (!inputEl) return\r\n\r\n const onFocus = () => {\r\n setLabelStyle(focusStyle)\r\n inputEl.classList.remove(\"no-placeholder\")\r\n }\r\n\r\n const onBlur = () => {\r\n if (inputEl.value.length === 0) setLabelStyle(blurStyle)\r\n if (!inputEl.value) inputEl.classList.add(\"no-placeholder\")\r\n }\r\n\r\n if (!inputEl.value) inputEl.classList.add(\"no-placeholder\")\r\n\r\n inputEl.addEventListener('focus', onFocus)\r\n inputEl.addEventListener('blur', onBlur)\r\n\r\n return () => {\r\n inputEl.removeEventListener('focus', onFocus)\r\n inputEl.removeEventListener('blur', onBlur)\r\n }\r\n }, [ name, blurStyle, focusStyle ])\r\n\r\n return (\r\n <InputLabel\r\n ref={labelRef}\r\n style={Object.assign({ color: colorText || token.colorText }, offsets, labelStyle)}\r\n >\r\n { children }\r\n </InputLabel>\r\n )\r\n})\r\n\r\nexport default HoverLabel\r\n","import { InputProps as AntProps, Input as AntInput, InputRef } from \"antd\"\r\nimport { forwardRef } from \"react\"\r\nimport styled from \"styled-components\"\r\n\r\nexport const HtmlInput = styled(AntInput)`\r\n ::placeholder, &::placeholder {\r\n transition: color .4s;\r\n }\r\n\r\n .no-placeholder, &.no-placeholder {\r\n &::placeholder, ::placeholder {\r\n color: transparent;\r\n }\r\n }\r\n`\r\n\r\ninterface InputProps extends AntProps {\r\n label?: React.ReactNode\r\n}\r\n\r\nconst Input = forwardRef<InputRef, InputProps>((props, ref) => {\r\n const { label, ...inputProps } = props\r\n\r\n return (\r\n <HtmlInput\r\n ref={ref}\r\n {...inputProps}\r\n />\r\n )\r\n})\r\n\r\nexport default Input\r\n","import { Space, Card, Typography } from \"antd\"\r\nimport styled from \"styled-components\"\r\nimport type { ParagraphProps } from \"antd/es/typography/Paragraph\"\r\nimport type { TitleProps } from \"antd/es/typography/Title\"\r\nimport type { PropsWithChildren } from \"react\"\r\n\r\nexport type LoginContainer = React.FC<PropsWithChildren> & {\r\n Header: React.FC,\r\n Title: React.FC<TitleProps>,\r\n Subtitle: React.FC<ParagraphProps>\r\n}\r\n\r\nconst ContainerCard = styled(Card)`\r\n width: min(100%, 480px);\r\n box-shadow: 0 3px 7px rgba(0,0,0,.2);\r\n padding: 1.5rem 1rem;\r\n margin-bottom: 10rem;\r\n\r\n @media only screen and (max-width: 480px) {\r\n border-radius: 0;\r\n }\r\n\r\n @media only screen and (max-height: 576px) {\r\n margin-bottom: 1.5rem;\r\n }\r\n`\r\n\r\nconst Container : LoginContainer = ({ children }) => (\r\n <ContainerCard className=\"card-container\">\r\n { children }\r\n </ContainerCard>\r\n)\r\n\r\nContainer.Header = () => (\r\n <Space style={{ display: \"flex\" }}>\r\n <img src=\"/logo/logo-orange-black.svg\" height=\"24px\" width=\"auto\" />\r\n <img src=\"/logo/web-fuse-text.svg\" height=\"12px\" width=\"auto\" />\r\n </Space>\r\n)\r\n\r\n/** @param {import(\"antd/es/typography/Title\").TitleProps} props */\r\nContainer.Title = (props) => (\r\n <Typography.Title\r\n level={2}\r\n {...props}\r\n style={Object.assign({ marginTop: 4 }, props.style)}\r\n />\r\n)\r\n\r\n/** @param {import(\"antd/es/typography/Paragraph\").ParagraphProps} props */\r\nContainer.Subtitle = (props) => (\r\n <Typography.Paragraph\r\n {...props}\r\n style={Object.assign({\r\n marginTop: -18,\r\n marginBottom: 14,\r\n fontSize: \"0.8125rem\",\r\n lineHeight: \"20px\",\r\n fontWeight: 400\r\n }, props.style)}\r\n />\r\n)\r\n\r\nexport default Container\r\n","import { Button, Collapse, CollapseProps, Space, Typography } from \"antd\"\r\nimport Container from \"./LoginContainer\"\r\nimport { isValidElement } from \"react\"\r\nimport styled from \"styled-components\"\r\n\r\nexport interface LoginError {\r\n message: string,\r\n error_description?: React.ReactNode,\r\n error_detail?: React.ReactNode\r\n}\r\n\r\nexport type LoginErrorBoundaryProps = {\r\n error: LoginError,\r\n title: React.ReactNode\r\n}\r\n\r\nconst Page = styled.div`\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: calc(100vh - 2 * 2rem);\r\n`\r\n\r\nconst ErrorDescription : React.FC<{ description: LoginError[\"error_description\"] }> = ({ description }) => {\r\n if (!description) return null\r\n if (isValidElement(description)) return description\r\n return (\r\n <Typography.Text>\r\n { description }\r\n </Typography.Text>\r\n )\r\n}\r\n\r\nconst LoginErrorBoundary : React.FC<LoginErrorBoundaryProps> = ({ error, title }) => {\r\n const items : CollapseProps[\"items\"] = [{\r\n key: '1',\r\n label: \"Details\",\r\n children: <Typography.Text type=\"secondary\">{ error.error_detail || \"No additional details\" }</Typography.Text>\r\n }]\r\n\r\n return (\r\n <Page>\r\n <Container>\r\n <Container.Header />\r\n <Space direction=\"vertical\">\r\n <Container.Title>{ title }</Container.Title>\r\n <Typography.Paragraph strong style={{ marginBottom: 0 }}>{ error.message }</Typography.Paragraph>\r\n <ErrorDescription description={error.error_description} />\r\n <Button onClick={() => window.history.back()}>\r\n Return\r\n </Button>\r\n\r\n <Collapse items={items} ghost size=\"small\" />\r\n </Space>\r\n </Container>\r\n </Page>\r\n )\r\n}\r\n\r\nexport default LoginErrorBoundary\r\n","import { theme } from \"antd\"\r\nimport { PropsWithChildren } from \"react\"\r\nimport styled from \"styled-components\"\r\n\r\nconst PageStyle = styled.div`\r\n background:\r\n linear-gradient(0deg, rgba(0,0,0,.2), rgba(0,0,0,.05)),\r\n radial-gradient(at 20% 30%, rgb(80 173 255 / 10%), transparent 55%),\r\n radial-gradient(at 83% 10%, rgb(221 216 74 / 13%), transparent 60%),\r\n radial-gradient(at 10% 80%, rgb(176 249 40 / 6%), transparent 40%),\r\n radial-gradient(at 90% 80%, rgb(48 95 151 / 14%), transparent 55%),\r\n radial-gradient(at 50% 45%, rgb(255 125 61 / 20%), transparent 60%);\r\n width: 100vw;\r\n height: 100vh;\r\n`\r\n\r\nexport type LoginPageBackgroundProps = {\r\n width?: React.CSSProperties[\"width\"],\r\n height?: React.CSSProperties[\"height\"]\r\n}\r\n\r\nconst PageBackground : React.FC<PropsWithChildren<LoginPageBackgroundProps>> = ({ children, width, height }) => {\r\n const { token: { colorBgContainer } } = theme.useToken()\r\n\r\n return (\r\n <PageStyle style={{ backgroundColor: colorBgContainer, width, height }}>\r\n { children }\r\n </PageStyle>\r\n )\r\n}\r\n\r\nexport default PageBackground\r\n","import { theme } from \"antd\"\r\n\r\n/**\r\n * Custom theme algorithm that restores the primary color\r\n * Normally the dark algorithm changes the colorPrimary aliasToken\r\n * https://github.com/ant-design/ant-design/issues/44006#issuecomment-2049854538\r\n */\r\nexport const wfDarkAlgorithm : typeof theme.darkAlgorithm = (token, mapToken) => {\r\n const derivative = theme.darkAlgorithm(token, mapToken)\r\n\r\n derivative.colorPrimary = token.colorPrimary\r\n\r\n return derivative\r\n}\r\n"],"names":["f","require$$0","k","l","m","n","p","q","c","a","b","e","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","args","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","name","source","ownerFn","x","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","fn","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","s","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","value","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","i","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","require$$1","animationDuration","slideOpenFrames","keyframes","slideOpen","css","slideClose","CollapseHeader","styled","ContentWrapper","ChildContent","CollapseBase","forwardRef","open","onChange","defaultOpen","header","border","style","width","token","theme","unfoldHeight","setUnfoldHeight","useState","show","setShow","unfoldRef","useRef","calcHeight","_a","useImperativeHandle","showChildren","useCallback","hideChildren","toggleShow","useEffect","IconContext","createContext","Context","_extends","target","_arrayWithHoles","arr","_iterableToArrayLimit","r","t","u","o","_arrayLikeToArray","len","arr2","_unsupportedIterableToArray","minLen","arrayLikeToArray","_nonIterableRest","_slicedToArray","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","_typeof","toPrimitive","toPropertyKey","_defineProperty","obj","_objectWithoutPropertiesLoose","excluded","sourceKeys","_objectWithoutProperties","objectWithoutPropertiesLoose","sourceSymbolKeys","hasOwn","classNames","classes","arg","appendClass","parseValue","newClass","module","bound01","max","isOnePointZero","isPercent","isPercentage","boundAlpha","convertToPercentage","pad2","rgbToRgb","g","hue2rgb","hslToRgb","rgbToHsv","min","v","d","hsvToRgb","mod","rgbToHex","allow3Char","hex","convertHexToDecimal","parseIntFromHex","val","names","inputToRGB","color","rgb","ok","stringInputToObject","isValidCSSUnit","CSS_INTEGER","CSS_NUMBER","CSS_UNIT","PERMISSIVE_MATCH3","PERMISSIVE_MATCH4","matchers","named","hueStep","saturationStep","saturationStep2","brightnessStep1","brightnessStep2","lightColorCount","darkColorCount","darkColorMap","toHsv","_ref","hsv","toHex","_ref2","mix","rgb1","rgb2","amount","getHue","light","hue","getSaturation","saturation","getValue","generate","opts","patterns","pColor","colorString","_i","_hsv","_colorString","_ref3","index","opacity","darkColorString","presetPrimaryColors","presetPalettes","presetDarkPalettes","blue","ownKeys","_objectSpread2","defineProperty","canUseDom","contains","root","APPEND_ORDER","APPEND_PRIORITY","MARK_KEY","containerCache","getMark","mark","getContainer","option","head","getOrder","prepend","findStyles","container","injectCSS","csp","_option$priority","priority","mergedOrder","isPrependQueue","styleNode","firstChild","existStyle","nodePriority","findExistNode","syncRealContainer","cachedRealContainer","placeholderStyle","parentNode","updateCSS","originOption","styles","_objectSpread","existNode","_option$csp","_option$csp2","_option$csp3","newNode","getRoot","ele","_ele$getRootNode","inShadow","getShadowRoot","warned","preWarningFns","preMessage","warning","valid","message","finalMessage","msg","preMessageFn","note","resetWarned","call","method","warningOnce","noteOnce","camelCase","input","warn","isIconDefinition","normalizeAttrs","attrs","acc","rootProps","getSecondaryColor","primaryColor","generateColor","normalizeTwoToneColors","twoToneColor","iconStyles","useInsertStyles","eleRef","_useContext","useContext","prefixCls","mergedStyleStr","shadowRoot","_excluded","twoToneColorPalette","setTwoToneColors","secondaryColor","getTwoToneColors","IconBase","icon","className","onClick","restProps","svgRef","colors","ReactIcon","setTwoToneColor","_normalizeTwoToneColo","_normalizeTwoToneColo2","getTwoToneColor","Icon","spin","rotate","tabIndex","_React$useContext","_React$useContext$pre","rootClassName","classString","iconTabIndex","svgStyle","AntdIcon","LoadingOutlined","LoadingOutlinedSvg","LoadingOutlined$1","RightOutlined","RightOutlinedSvg","RightOutlined$1","reactIs_production_min","REACT_SERVER_CONTEXT_TYPE","typeOf","$$typeof","$$typeofType","ContextConsumer","ContextProvider","Element","ForwardRef","Fragment","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","SuspenseList","hasWarnedAboutDeprecatedIsAsyncMode","hasWarnedAboutDeprecatedIsConcurrentMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","reactIs_development","HeaderContainer","RightTextWrapper","CollapseIcon","Collapse","title","image","rightText","activeColor","inactiveColor","changeHandler","renderCaret","childrenStyle","Typography","ContentContainer","CollapseContent","background","colorFillSecondary","InternalCollapse","Item","ItemText","SubItem","SelectorSubItem","active","parentKey","itemRender","colorBorder","colorPrimary","renderer","keyPath","clickHandler","SelectorItem","isOpen","setOpen","collapseRef","toggleOpen","nextState","SelectorContainer","SearchContainer","ItemsContainer","CreateContainer","Selector","items","messageEmpty","loading","openKeys","bottomAddon","search","onSearchChange","_openKeys","setOpenKeys","renderItems","Space","AntInput","Container","SmallHeader","LightCard","ServiceSettingsHeader","ServiceSettingsHeaderWrapper","DarkCard","colorBgContainer","colorBgBase","colorPrimaryBg","HeaderTextBox","HeaderText","fadeInUp","Submenu","SubmenuItem","DropdownItems","activeKey","handleClick","NavbarDropdown","setIsOpen","isActive","useMemo","defaultHeight","HeaderStyle","LogoContainer","NavStyle","ItemsList","ToggleLabel","ToggleInput","NavbarItems","detail","Navbar","height","textColor","logo","toggleColor","itemProps","navStyle","setNavStyle","navContentStyle","setNavContentStyle","toggleRef","SettingsContainer","SettingsFlex","MainSettings","id","colorBgElevated","colorBgLayout","bgDark","bgLight","useEvent","callback","fnRef","memoFn","_fnRef$current","_len","_key","useInternalLayoutEffect","useLayoutEffect","deps","firstMountRef","useLayoutUpdateEffect","firstMount","useSafeState","defaultValue","destroyRef","_React$useState","_React$useState2","setValue","safeSetState","updater","ignoreDestroy","hasValue","useMergedState","defaultStateValue","postState","_useState","_useState2","innerValue","setInnerValue","mergedValue","postMergedValue","onChangeFn","_useState3","_useState4","prevValue","setPrevValue","prev","triggerChange","collapseHeight","GlobalStyle","createGlobalStyle","MainSelector","propsCollapseOpen","setWidth","collapseOpen","setCollapseOpen","handleCollapseChange","updateWindowDimensions","renderAll","MainContainer","MainLayout","overflow","Button","AntButton","CenteredButton","ExtraSmallButton","RightButton","InputLabel","HoverLabel","size","colorText","colorTextActive","labelStyle","setLabelStyle","labelRef","Form","offsets","setOffsets","blurStyle","focusStyle","labelParent","top","left","fontSize","inputEl","previousSibling","padLeftExtra","hasPrefix","_b","_c","_d","_e","_f","_g","_h","onFocus","onBlur","HtmlInput","Input","label","inputProps","ContainerCard","Card","Page","ErrorDescription","description","LoginErrorBoundary","PageStyle","PageBackground","wfDar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