@akinon/ui-breadcrumb 0.0.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs DELETED
@@ -1,186 +0,0 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ant-breadcrumb{padding:.625rem 1rem;border-bottom:1px solid var(--color-gray-900)}.ant-breadcrumb .ant-breadcrumb-separator{margin-left:.4rem;margin-right:.4rem}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pi=require("react/jsx-runtime"),k=require("react"),vo=require("react-dom");function vu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=vu(k);function mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qs={exports:{}};/*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&r.push(l)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var c in a)t.call(a,c)&&a[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Qs);var gu=Qs.exports;const se=mu(gu);function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}var oa={exports:{}},xe={};/**
7
- * @license React
8
- * react-is.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */var Ii;function pu(){if(Ii)return xe;Ii=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(m){if(typeof m=="object"&&m!==null){var S=m.$$typeof;switch(S){case e:switch(m=m.type,m){case n:case o:case r:case u:case f:return m;default:switch(m=m&&m.$$typeof,m){case l:case i:case c:case v:case d:case a:return m;default:return S}}case t:return S}}}return xe.ContextConsumer=i,xe.ContextProvider=a,xe.Element=e,xe.ForwardRef=c,xe.Fragment=n,xe.Lazy=v,xe.Memo=d,xe.Portal=t,xe.Profiler=o,xe.StrictMode=r,xe.Suspense=u,xe.SuspenseList=f,xe.isAsyncMode=function(){return!1},xe.isConcurrentMode=function(){return!1},xe.isContextConsumer=function(m){return p(m)===i},xe.isContextProvider=function(m){return p(m)===a},xe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},xe.isForwardRef=function(m){return p(m)===c},xe.isFragment=function(m){return p(m)===n},xe.isLazy=function(m){return p(m)===v},xe.isMemo=function(m){return p(m)===d},xe.isPortal=function(m){return p(m)===t},xe.isProfiler=function(m){return p(m)===o},xe.isStrictMode=function(m){return p(m)===r},xe.isSuspense=function(m){return p(m)===u},xe.isSuspenseList=function(m){return p(m)===f},xe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===u||m===f||m===g||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===d||m.$$typeof===a||m.$$typeof===i||m.$$typeof===c||m.$$typeof===h||m.getModuleId!==void 0)},xe.typeOf=p,xe}var Oe={};/**
15
- * @license React
16
- * react-is.development.js
17
- *
18
- * Copyright (c) Facebook, Inc. and its affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */var Mi;function hu(){return Mi||(Mi=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,p=!1,m=!1,S=!1,y=!1,b;b=Symbol.for("react.module.reference");function C(D){return!!(typeof D=="string"||typeof D=="function"||D===n||D===o||y||D===r||D===u||D===f||S||D===g||h||p||m||typeof D=="object"&&D!==null&&(D.$$typeof===v||D.$$typeof===d||D.$$typeof===a||D.$$typeof===i||D.$$typeof===c||D.$$typeof===b||D.getModuleId!==void 0))}function E(D){if(typeof D=="object"&&D!==null){var me=D.$$typeof;switch(me){case e:var ve=D.type;switch(ve){case n:case o:case r:case u:case f:return ve;default:var Ne=ve&&ve.$$typeof;switch(Ne){case l:case i:case c:case v:case d:case a:return Ne;default:return me}}case t:return me}}}var x=i,w=a,O=e,M=c,P=n,A=v,_=d,$=t,R=o,I=r,N=u,T=f,z=!1,B=!1;function W(D){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(D){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(D){return E(D)===i}function oe(D){return E(D)===a}function X(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function le(D){return E(D)===c}function re(D){return E(D)===n}function ee(D){return E(D)===v}function q(D){return E(D)===d}function ue(D){return E(D)===t}function G(D){return E(D)===o}function Z(D){return E(D)===r}function fe(D){return E(D)===u}function Se(D){return E(D)===f}Oe.ContextConsumer=x,Oe.ContextProvider=w,Oe.Element=O,Oe.ForwardRef=M,Oe.Fragment=P,Oe.Lazy=A,Oe.Memo=_,Oe.Portal=$,Oe.Profiler=R,Oe.StrictMode=I,Oe.Suspense=N,Oe.SuspenseList=T,Oe.isAsyncMode=W,Oe.isConcurrentMode=te,Oe.isContextConsumer=V,Oe.isContextProvider=oe,Oe.isElement=X,Oe.isForwardRef=le,Oe.isFragment=re,Oe.isLazy=ee,Oe.isMemo=q,Oe.isPortal=ue,Oe.isProfiler=G,Oe.isStrictMode=Z,Oe.isSuspense=fe,Oe.isSuspenseList=Se,Oe.isValidElementType=C,Oe.typeOf=E}()),Oe}process.env.NODE_ENV==="production"?oa.exports=pu():oa.exports=hu();var Ua=oa.exports;function nn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return k.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(nn(r)):Ua.isFragment(r)&&r.props?n=n.concat(nn(r.props.children,t)):n.push(r))}),n}var aa={},Xa=[],bu=function(t){Xa.push(t)};function Gn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Xa.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function yu(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Xa.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Zs(){aa={}}function Js(e,t,n){!t&&!aa[n]&&(e(!1,n),aa[n]=!0)}function mt(e,t){Js(Gn,e,t)}function Cu(e,t){Js(yu,e,t)}mt.preMessage=bu;mt.resetWarned=Zs;mt.noteOnce=Cu;function Ve(e){"@babel/helpers - typeof";return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(e)}function Su(e,t){if(Ve(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ve(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function el(e){var t=Su(e,"string");return Ve(t)==="symbol"?t:String(t)}function Y(e,t,n){return t=el(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ri(Object(n),!0).forEach(function(r){Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eo(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ur(e){return eo(e)?e:e instanceof k.Component?vo.findDOMNode(e):null}function mo(e,t,n){var r=s.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Ga(e,t){typeof e=="function"?e(t):Ve(e)==="object"&&e&&"current"in e&&(e.current=t)}function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(a){Ga(a,o)})}}function Er(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mo(function(){return go.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function xn(e){var t,n,r=Ua.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function wu(e){return!k.isValidElement(e)||Ua.isFragment(e)?!1:xn(e)}var ia=s.createContext(null);function Eu(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),a=s.useContext(ia),i=s.useCallback(function(l,c,u){r.current+=1;var f=r.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){f===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(l,c,u)},[n,a]);return s.createElement(ia.Provider,{value:i},t)}var tl=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t}()}(),sa=typeof window<"u"&&typeof document<"u"&&window.document===document,to=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),xu=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(to):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ou=2;function $u(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){xu(a)}function l(){var c=Date.now();if(n){if(c-o<Ou)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=c}return l}var Pu=20,Iu=["top","right","bottom","left","width","height","size","weight"],Mu=typeof MutationObserver<"u",Ru=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=$u(this.refresh.bind(this),Pu)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!sa||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Mu?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!sa||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=Iu.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),nl=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Yn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||to},rl=po(0,0,0,0);function no(e){return parseFloat(e)||0}function Ti(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+no(a)},0)}function Tu(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=no(i)}return n}function Nu(e){var t=e.getBBox();return po(0,0,t.width,t.height)}function _u(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return rl;var r=Yn(e).getComputedStyle(e),o=Tu(r),a=o.left+o.right,i=o.top+o.bottom,l=no(r.width),c=no(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=Ti(r,"left","right")+a),Math.round(c+i)!==n&&(c-=Ti(r,"top","bottom")+i)),!ku(e)){var u=Math.round(l+a)-t,f=Math.round(c+i)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return po(o.left,o.top,l,c)}var Au=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Yn(e).SVGGraphicsElement}:function(e){return e instanceof Yn(e).SVGElement&&typeof e.getBBox=="function"}}();function ku(e){return e===Yn(e).document.documentElement}function Du(e){return sa?Au(e)?Nu(e):_u(e):rl}function ju(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return nl(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function po(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Lu=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=po(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Du(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Bu=function(){function e(t,n){var r=ju(n);nl(this,{target:t,contentRect:r})}return e}(),zu=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new tl,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Yn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Lu(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Yn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Bu(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ol=typeof WeakMap<"u"?new WeakMap:new tl,al=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ru.getInstance(),r=new zu(t,n,this);ol.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){al.prototype[e]=function(){var t;return(t=ol.get(this))[e].apply(t,arguments)}});var Hu=function(){return typeof to.ResizeObserver<"u"?to.ResizeObserver:al}(),Gt=new Map;function il(e){e.forEach(function(t){var n,r=t.target;(n=Gt.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var sl=new Hu(il);process.env.NODE_ENV;process.env.NODE_ENV;function Fu(e,t){Gt.has(e)||(Gt.set(e,new Set),sl.observe(e)),Gt.get(e).add(t)}function Wu(e,t){Gt.has(e)&&(Gt.get(e).delete(t),Gt.get(e).size||(sl.unobserve(e),Gt.delete(e)))}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,el(r.key),r)}}function ln(e,t,n){return t&&Ni(e.prototype,t),n&&Ni(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function la(e,t){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},la(e,t)}function ho(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&la(e,t)}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ro(e)}function Vu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ca(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ku(e,t){if(t&&(Ve(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ca(e)}function bo(e){var t=Vu();return function(){var r=ro(e),o;if(t){var a=ro(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return Ku(this,o)}}var Uu=function(e){ho(n,e);var t=bo(n);function n(){return sn(this,n),t.apply(this,arguments)}return ln(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function Xu(e,t){var n=e.children,r=e.disabled,o=s.useRef(null),a=s.useRef(null),i=s.useContext(ia),l=typeof n=="function",c=l?n(o):n,u=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&s.isValidElement(c)&&xn(c),d=f?c.ref:null,v=Er(d,o),g=function(){var S;return Ur(o.current)||(o.current&&Ve(o.current)==="object"?Ur((S=o.current)===null||S===void 0?void 0:S.nativeElement):null)||Ur(a.current)};s.useImperativeHandle(t,function(){return g()});var h=s.useRef(e);h.current=e;var p=s.useCallback(function(m){var S=h.current,y=S.onResize,b=S.data,C=m.getBoundingClientRect(),E=C.width,x=C.height,w=m.offsetWidth,O=m.offsetHeight,M=Math.floor(E),P=Math.floor(x);if(u.current.width!==M||u.current.height!==P||u.current.offsetWidth!==w||u.current.offsetHeight!==O){var A={width:M,height:P,offsetWidth:w,offsetHeight:O};u.current=A;var _=w===Math.round(E)?E:w,$=O===Math.round(x)?x:O,R=L(L({},A),{},{offsetWidth:_,offsetHeight:$});i==null||i(R,m,b),y&&Promise.resolve().then(function(){y(R,m)})}},[]);return s.useEffect(function(){var m=g();return m&&!r&&Fu(m,p),function(){return Wu(m,p)}},[o.current,r]),s.createElement(Uu,{ref:a},f?s.cloneElement(c,{ref:v}):c)}var ll=s.forwardRef(Xu);process.env.NODE_ENV!=="production"&&(ll.displayName="SingleObserver");var Gu="rc-observer-key";function Yu(e,t){var n=e.children,r=typeof n=="function"?[n]:nn(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Gn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Gn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(Gu,"-").concat(a);return s.createElement(ll,Pe({},e,{key:i,ref:a===0?t:void 0}),o)})}var Qn=s.forwardRef(Yu);process.env.NODE_ENV!=="production"&&(Qn.displayName="ResizeObserver");Qn.Collection=Eu;function On(e,t){var n=L({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qu(e){if(Array.isArray(e))return ua(e)}function cl(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ya(e,t){if(e){if(typeof e=="string")return ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ua(e,t)}}function Qu(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(e){return qu(e)||cl(e)||Ya(e)||Qu()}var ul=function(t){return+setTimeout(t,16)},dl=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(ul=function(t){return window.requestAnimationFrame(t)},dl=function(t){return window.cancelAnimationFrame(t)});var _i=0,qa=new Map;function fl(e){qa.delete(e)}var xt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_i+=1;var r=_i;function o(a){if(a===0)fl(r),t();else{var i=ul(function(){o(a-1)});qa.set(r,i)}}return o(n),r};xt.cancel=function(e){var t=qa.get(e);return fl(t),dl(t)};function Qa(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Zu(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Le(e,t){if(e==null)return{};var n=Zu(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Za(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(mt(!c,"Warning: There may be circular references"),c)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var f=0;f<a.length;f++)if(!o(a[f],i[f],u))return!1;return!0}if(a&&i&&Ve(a)==="object"&&Ve(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(v){return o(a[v],i[v],u)})}return!1}return o(e,t)}var Ai="%",Ju=function(){function e(t){sn(this,e),Y(this,"instanceId",void 0),Y(this,"cache",new Map),this.instanceId=t}return ln(e,[{key:"get",value:function(n){return this.cache.get(n.join(Ai))||null}},{key:"update",value:function(n,r){var o=n.join(Ai),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i)}}]),e}(),da="data-token-hash",bn="data-css-hash",ed="data-cache-path",Vn="__cssinjs_instance__";function td(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(bn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Vn]=o[Vn]||e,o[Vn]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(bn,"]"))).forEach(function(o){var a=o.getAttribute(bn);if(r[a]){if(o[Vn]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new Ju(e)}var nd=s.createContext({hashPriority:"low",cache:td(),defaultCache:!0});const Ja=nd;function ut(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rd(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var ki="data-rc-order",Di="data-rc-priority",od="rc-util-key",fa=new Map;function vl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):od}function yo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ad(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ml(e){return Array.from((fa.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function gl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ut())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=ad(r),l=i==="prependQueue",c=document.createElement("style");c.setAttribute(ki,i),l&&a&&c.setAttribute(Di,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=yo(t),f=u.firstChild;if(r){if(l){var d=ml(u).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(ki)))return!1;var g=Number(v.getAttribute(Di)||0);return a>=g});if(d.length)return u.insertBefore(c,d[d.length-1].nextSibling),c}u.insertBefore(c,f)}else u.appendChild(c);return c}function pl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=yo(t);return ml(n).find(function(r){return r.getAttribute(vl(t))===e})}function oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=pl(e,t);if(n){var r=yo(t);r.removeChild(n)}}function id(e,t){var n=fa.get(e);if(!n||!rd(document,n)){var r=gl("",t),o=r.parentNode;fa.set(e,o),e.removeChild(r)}}function hr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=yo(n);id(r,n);var o=pl(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=gl(e,n);return c.setAttribute(vl(n),t),c}function hl(e){if(Array.isArray(e))return e}function sd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function bl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(e,t){return hl(e)||sd(e,t)||Ya(e,t)||bl()}function ld(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var ei=function(){function e(){sn(this,e),Y(this,"cache",void 0),Y(this,"keys",void 0),Y(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ln(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var c,u;i=(c=i)===null||c===void 0||(u=c.map)===null||u===void 0?void 0:u.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,f){var d=j(u,2),v=d[1];return o.internalGet(f)[1]<v?[f,o.internalGet(f)[1]]:u},[this.keys[0],this.cacheCallTimes]),i=j(a,1),l=i[0];this.delete(l)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,f){if(f===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var d=c.get(u);d?d.map||(d.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!ld(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();Y(ei,"MAX_CACHE_SIZE",20);Y(ei,"MAX_CACHE_OFFSET",5);var ji=0,yl=function(){function e(t){sn(this,e),Y(this,"derivatives",void 0),Y(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ji,t.length===0&&Gn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ji+=1}return ln(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Ho=new ei;function va(e){var t=Array.isArray(e)?e:[e];return Ho.has(t)||Ho.set(t,new yl(t)),Ho.get(t)}var cd=new WeakMap,Fo={};function ud(e,t){for(var n=cd,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Fo)||n.set(Fo,e()),n.get(Fo)}var Li=new WeakMap;function ao(e){var t=Li.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof yl?t+=r.id:r&&Ve(r)==="object"?t+=ao(r):t+=r}),Li.set(e,t)),t}function dd(e,t){return Qa("".concat(t,"_").concat(ao(e)))}var mr="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Cl="_bAmBoO_";function fd(e,t,n){if(ut()){var r,o;hr(e,mr);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a),process.env.NODE_ENV!=="production"&&(a.innerHTML="Test",a.style.zIndex="9999999");var i=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(Cl);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),oo(mr),i}return!1}var Wo=void 0;function vd(){return Wo===void 0&&(Wo=fd("@layer ".concat(mr," { .").concat(mr,' { content: "').concat(Cl,'"!important; } }'),function(e){e.className=mr})),Wo}var Bi=process.env.NODE_ENV!=="test"&&ut()?s.useLayoutEffect:s.useEffect,st=function(t,n){var r=s.useRef(!0);Bi(function(){return t(r.current)},n),Bi(function(){return r.current=!1,function(){r.current=!0}},[])},zi=function(t,n){st(function(r){if(!r)return t()},n)},md=L({},s),Hi=md.useInsertionEffect,gd=function(t,n,r){s.useMemo(t,r),st(function(){return n(!0)},r)},pd=Hi?function(e,t,n){return Hi(function(){return e(),t()},n)}:gd;const hd=pd;var bd=L({},s),yd=bd.useInsertionEffect,Cd=function(t){var n=[],r=!1;function o(a){if(r){process.env.NODE_ENV!=="production"&&Gn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(a)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},Sd=function(){return function(t){t()}},wd=typeof yd<"u"?Cd:Sd;const Ed=wd;function xd(){return!1}var ma=!1;function Od(){return ma}const $d=process.env.NODE_ENV==="production"?xd:Od;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Vo=window;if(typeof Vo.webpackHotUpdate=="function"){var Pd=Vo.webpackHotUpdate;Vo.webpackHotUpdate=function(){return ma=!0,setTimeout(function(){ma=!1},0),Pd.apply(void 0,arguments)}}}function Sl(e,t,n,r,o){var a=s.useContext(Ja),i=a.cache,l=[e].concat(Ge(t)),c=l.join("_"),u=Ed([c]),f=$d(),d=function(p){i.update(l,function(m){var S=m||[],y=j(S,2),b=y[0],C=b===void 0?0:b,E=y[1],x=E;process.env.NODE_ENV!=="production"&&E&&f&&(r==null||r(x,f),x=null);var w=x||n(),O=[C,w];return p?p(O):O})};s.useMemo(function(){d()},[c]);var v=i.get(l);process.env.NODE_ENV!=="production"&&!v&&(d(),v=i.get(l));var g=v[1];return hd(function(){o==null||o(g)},function(h){return d(function(p){var m=j(p,2),S=m[0],y=m[1];return h&&S===0&&(o==null||o(g)),[S+1,y]}),function(){i.update(l,function(p){var m=p||[],S=j(m,2),y=S[0],b=y===void 0?0:y,C=S[1],E=b-1;return E===0?(u(function(){return r==null?void 0:r(C,!1)}),null):[b-1,C]})}},[c]),g}var Id={},Md=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",pn=new Map;function Rd(e){pn.set(e,(pn.get(e)||0)+1)}function Td(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(da,'="').concat(e,'"]'));n.forEach(function(r){if(r[Vn]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var Nd=0;function _d(e,t){pn.set(e,(pn.get(e)||0)-1);var n=Array.from(pn.keys()),r=n.filter(function(o){var a=pn.get(o)||0;return a<=0});n.length-r.length>Nd&&r.forEach(function(o){Td(o,t),pn.delete(o)})}var Ad=function(t,n,r,o){var a=r.getDerivativeToken(t),i=L(L({},a),n);return o&&(i=o(i)),i};function kd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=k.useContext(Ja),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,l=n.override,c=l===void 0?Id:l,u=n.formatToken,f=n.getComputedToken,d=ud(function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))},t),v=ao(d),g=ao(c),h=Sl("token",[i,e.id,v,g],function(){var p=f?f(d,c,e):Ad(d,c,e,u),m=dd(p,i);p._tokenKey=m,Rd(m);var S="".concat(Md,"-").concat(Qa(m));return p._hashId=S,[p,S]},function(p){_d(p[0]._tokenKey,o)});return h}var Dd={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wl="comm",El="rule",xl="decl",jd="@import",Ld="@keyframes",Bd="@layer",zd=Math.abs,ti=String.fromCharCode;function Ol(e){return e.trim()}function Xr(e,t,n){return e.replace(t,n)}function Hd(e,t){return e.indexOf(t)}function br(e,t){return e.charCodeAt(t)|0}function yr(e,t,n){return e.slice(t,n)}function Xt(e){return e.length}function Fd(e){return e.length}function kr(e,t){return t.push(e),e}var Co=1,qn=1,$l=0,Ot=0,Xe=0,Zn="";function ni(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Co,column:qn,length:i,return:"",siblings:l}}function Wd(){return Xe}function Vd(){return Xe=Ot>0?br(Zn,--Ot):0,qn--,Xe===10&&(qn=1,Co--),Xe}function kt(){return Xe=Ot<$l?br(Zn,Ot++):0,qn++,Xe===10&&(qn=1,Co++),Xe}function yn(){return br(Zn,Ot)}function Gr(){return Ot}function So(e,t){return yr(Zn,e,t)}function ga(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Kd(e){return Co=qn=1,$l=Xt(Zn=e),Ot=0,[]}function Ud(e){return Zn="",e}function Ko(e){return Ol(So(Ot-1,pa(e===91?e+2:e===40?e+1:e)))}function Xd(e){for(;(Xe=yn())&&Xe<33;)kt();return ga(e)>2||ga(Xe)>3?"":" "}function Gd(e,t){for(;--t&&kt()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return So(e,Gr()+(t<6&&yn()==32&&kt()==32))}function pa(e){for(;kt();)switch(Xe){case e:return Ot;case 34:case 39:e!==34&&e!==39&&pa(Xe);break;case 40:e===41&&pa(e);break;case 92:kt();break}return Ot}function Yd(e,t){for(;kt()&&e+Xe!==47+10;)if(e+Xe===42+42&&yn()===47)break;return"/*"+So(t,Ot-1)+"*"+ti(e===47?e:kt())}function qd(e){for(;!ga(yn());)kt();return So(e,Ot)}function Qd(e){return Ud(Yr("",null,null,null,[""],e=Kd(e),0,[0],e))}function Yr(e,t,n,r,o,a,i,l,c){for(var u=0,f=0,d=i,v=0,g=0,h=0,p=1,m=1,S=1,y=0,b="",C=o,E=a,x=r,w=b;m;)switch(h=y,y=kt()){case 40:if(h!=108&&br(w,d-1)==58){Hd(w+=Xr(Ko(y),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:w+=Ko(y);break;case 9:case 10:case 13:case 32:w+=Xd(h);break;case 92:w+=Gd(Gr()-1,7);continue;case 47:switch(yn()){case 42:case 47:kr(Zd(Yd(kt(),Gr()),t,n,c),c);break;default:w+="/"}break;case 123*p:l[u++]=Xt(w)*S;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+f:S==-1&&(w=Xr(w,/\f/g,"")),g>0&&Xt(w)-d&&kr(g>32?Wi(w+";",r,n,d-1,c):Wi(Xr(w," ","")+";",r,n,d-2,c),c);break;case 59:w+=";";default:if(kr(x=Fi(w,t,n,u,f,o,l,b,C=[],E=[],d,a),a),y===123)if(f===0)Yr(w,t,x,x,C,a,d,l,E);else switch(v===99&&br(w,3)===110?100:v){case 100:case 108:case 109:case 115:Yr(e,x,x,r&&kr(Fi(e,x,x,0,0,o,l,b,o,C=[],d,E),E),o,E,d,l,r?C:E);break;default:Yr(w,x,x,x,[""],E,0,l,E)}}u=f=g=0,p=S=1,b=w="",d=i;break;case 58:d=1+Xt(w),g=h;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&Vd()==125)continue}switch(w+=ti(y),y*p){case 38:S=f>0?1:(w+="\f",-1);break;case 44:l[u++]=(Xt(w)-1)*S,S=1;break;case 64:yn()===45&&(w+=Ko(kt())),v=yn(),f=d=Xt(b=w+=qd(Gr())),y++;break;case 45:h===45&&Xt(w)==2&&(p=0)}}return a}function Fi(e,t,n,r,o,a,i,l,c,u,f,d){for(var v=o-1,g=o===0?a:[""],h=Fd(g),p=0,m=0,S=0;p<r;++p)for(var y=0,b=yr(e,v+1,v=zd(m=i[p])),C=e;y<h;++y)(C=Ol(m>0?g[y]+" "+b:Xr(b,/&\f/g,g[y])))&&(c[S++]=C);return ni(e,t,n,o===0?El:l,c,u,f,d)}function Zd(e,t,n,r){return ni(e,t,n,wl,ti(Wd()),yr(e,2,-2),0,r)}function Wi(e,t,n,r,o){return ni(e,t,n,xl,yr(e,0,r),yr(e,r+1,-1),r,o)}function ha(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Jd(e,t,n,r){switch(e.type){case Bd:if(e.children.length)break;case jd:case xl:return e.return=e.return||e.value;case wl:return"";case Ld:return e.return=e.value+"{"+ha(e.children,r)+"}";case El:if(!Xt(e.value=e.props.join(",")))return""}return Xt(n=ha(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pl(e,t){var n=t.path,r=t.parentSelectors;mt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var ef=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof n!="string"||a.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Pl("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},tf=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Pl("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},Vi="data-ant-cssinjs-cache-path",Il="_FILE_STYLE__",Cn,Ml=!0;function nf(){if(!Cn&&(Cn={},ut())){var e=document.createElement("div");e.className=Vi,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=j(a,2),l=i[0],c=i[1];Cn[l]=c});var n=document.querySelector("style[".concat(Vi,"]"));if(n){var r;Ml=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function rf(e){return nf(),!!Cn[e]}function of(e){var t=Cn[e],n=null;if(t&&ut())if(Ml)n=Il;else{var r=document.querySelector("style[".concat(bn,'="').concat(Cn[e],'"]'));r?n=r.innerHTML:delete Cn[e]}return[n,t]}var Ki=ut(),Rl="_skip_check_",Tl="_multi_value_";function Ui(e){var t=ha(Qd(e),Jd);return t.replace(/\{%%%\:[^;];}/g,";")}function af(e){return Ve(e)==="object"&&e&&(Rl in e||Tl in e)}function sf(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var l,c=i.trim().split(/\s+/),u=c[0]||"",f=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(f).concat(o).concat(u.slice(f.length)),[u].concat(Ge(c.slice(1))).join(" ")});return a.join(",")}var lf=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,c=n.layer,u=n.path,f=n.hashPriority,d=n.transformers,v=d===void 0?[]:d,g=n.linters,h=g===void 0?[]:g,p="",m={};function S(x){var w=x.getName(l);if(!m[w]){var O=e(x.style,n,{root:!1,parentSelectors:i}),M=j(O,1),P=M[0];m[w]="@keyframes ".concat(x.getName(l)).concat(P)}}function y(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(O){Array.isArray(O)?y(O,w):O&&w.push(O)}),w}var b=y(Array.isArray(t)?t:[t]);if(b.forEach(function(x){var w=typeof x=="string"&&!o?{}:x;if(typeof w=="string")p+="".concat(w,`
25
- `);else if(w._keyframe)S(w);else{var O=v.reduce(function(M,P){var A;return(P==null||(A=P.visit)===null||A===void 0?void 0:A.call(P,M))||M},w);Object.keys(O).forEach(function(M){var P=O[M];if(Ve(P)==="object"&&P&&(M!=="animationName"||!P._keyframe)&&!af(P)){var A=!1,_=M.trim(),$=!1;(o||a)&&l?_.startsWith("@")?A=!0:_=sf(M,l,f):o&&!l&&(_==="&"||_==="")&&(_="",$=!0);var R=e(P,n,{root:$,injectHash:A,parentSelectors:[].concat(Ge(i),[_])}),I=j(R,2),N=I[0],T=I[1];m=L(L({},m),T),p+="".concat(_).concat(N)}else{let W=function(te,V){process.env.NODE_ENV!=="production"&&(Ve(P)!=="object"||!(P!=null&&P[Rl]))&&[ef,tf].concat(Ge(h)).forEach(function(le){return le(te,V,{path:u,hashId:l,parentSelectors:i})});var oe=te.replace(/[A-Z]/g,function(le){return"-".concat(le.toLowerCase())}),X=V;!Dd[te]&&typeof X=="number"&&X!==0&&(X="".concat(X,"px")),te==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(S(V),X=V.getName(l)),p+="".concat(oe,":").concat(X,";")};var z,B=(z=P==null?void 0:P.value)!==null&&z!==void 0?z:P;Ve(P)==="object"&&P!==null&&P!==void 0&&P[Tl]&&Array.isArray(B)?B.forEach(function(te){W(M,te)}):W(M,B)}})}}),!o)p="{".concat(p,"}");else if(c&&vd()){var C=c.split(","),E=C[C.length-1].trim();p="@layer ".concat(E," {").concat(p,"}"),C.length>1&&(p="@layer ".concat(c,"{%%%:%}").concat(p))}return[p,m]};function cf(e,t){return Qa("".concat(e.join("%")).concat(t))}function uf(){return null}function ba(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,f=s.useContext(Ja),d=f.autoClear,v=f.mock,g=f.defaultCache,h=f.hashPriority,p=f.container,m=f.ssrInline,S=f.transformers,y=f.linters,b=f.cache,C=n._tokenKey,E=[C].concat(Ge(r)),x=Ki;process.env.NODE_ENV!=="production"&&v!==void 0&&(x=v==="client");var w=Sl("style",E,function(){var _=E.join("|");if(rf(_)){var $=of(_),R=j($,2),I=R[0],N=R[1];if(I)return[I,C,N,{},l,u]}var T=t(),z=lf(T,{hashId:o,hashPriority:h,layer:a,path:r.join("-"),transformers:S,linters:y}),B=j(z,2),W=B[0],te=B[1],V=Ui(W),oe=cf(E,V);return[V,C,oe,te,l,u]},function(_,$){var R=j(_,3),I=R[2];($||d)&&Ki&&oo(I,{mark:bn})},function(_){var $=j(_,4),R=$[0];$[1];var I=$[2],N=$[3];if(x&&R!==Il){var T={mark:bn,prepend:"queue",attachTo:p,priority:u},z=typeof i=="function"?i():i;z&&(T.csp={nonce:z});var B=hr(R,I,T);B[Vn]=b.instanceId,B.setAttribute(da,C),process.env.NODE_ENV!=="production"&&B.setAttribute(ed,E.join("|")),Object.keys(N).forEach(function(W){hr(Ui(N[W]),"_effect-".concat(W),T)})}}),O=j(w,3),M=O[0],P=O[1],A=O[2];return function(_){var $;if(!m||x||!g)$=s.createElement(uf,null);else{var R;$=s.createElement("style",Pe({},(R={},Y(R,da,P),Y(R,bn,A),R),{dangerouslySetInnerHTML:{__html:M}}))}return s.createElement(s.Fragment,null,$,_)}}var Re=function(){function e(t,n){sn(this,e),Y(this,"name",void 0),Y(this,"style",void 0),Y(this,"_keyframe",!0),this.name=t,this.style=n}return ln(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function kn(e){return e.notSplit=!0,e}kn(["borderTop","borderBottom"]),kn(["borderTop"]),kn(["borderBottom"]),kn(["borderLeft","borderRight"]),kn(["borderLeft"]),kn(["borderRight"]);var df=k.createContext({});const ri=df;function ff(e){return hl(e)||cl(e)||Ya(e)||bl()}function ya(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Nl(e,t,n,r){if(!t.length)return n;var o=ff(t),a=o[0],i=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=Ge(e):l=L({},e),r&&n===void 0&&i.length===1?delete l[a][i[0]]:l[a]=Nl(l[a],i,n,r),l}function Uo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ya(e,t.slice(0,-1))?e:Nl(e,t,n,r)}function vf(e){return Ve(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Xi(e){return Array.isArray(e)?[]:{}}var mf=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Xi(t[0]);return t.forEach(function(o){function a(i,l){var c=new Set(l),u=ya(o,i),f=Array.isArray(u);if(f||vf(u)){if(!c.has(u)){c.add(u);var d=ya(r,i);f?r=Uo(r,i,[]):(!d||Ve(d)!=="object")&&(r=Uo(r,i,Xi(u))),mf(u).forEach(function(v){a([].concat(Ge(i),[v]),c)})}}else r=Uo(r,i,u)}a([])}),r}function _l(){}let Ut=null;function pf(){Ut=null,Zs()}let oi=_l;process.env.NODE_ENV!=="production"&&(oi=(e,t,n)=>{mt(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&pf()});const Al=s.createContext({}),$n=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=s.useContext(Al),n=(r,o,a)=>{if(!r)if(t===!1&&o==="deprecated"){const i=Ut;Ut||(Ut={}),Ut[e]=Ut[e]||[],Ut[e].includes(a||"")||Ut[e].push(a||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ut)}else process.env.NODE_ENV!=="production"&&oi(r,e,a)};return n.deprecated=(r,o,a,i)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=_l,e},wo=oi,hf=k.createContext(void 0),bf={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var yf={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const Cf={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},kl=Cf,Sf={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},yf),timePickerLocale:Object.assign({},kl)},Gi=Sf,bt="${label} is not a valid ${type}",wf={locale:"en",Pagination:bf,DatePicker:Gi,TimePicker:kl,Calendar:Gi,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:bt,method:bt,array:bt,object:bt,number:bt,date:bt,boolean:bt,integer:bt,float:bt,regexp:bt,email:bt,url:bt,hex:bt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},Eo=wf;Object.assign({},Eo.Modal);let qr=[];const Yi=()=>qr.reduce((e,t)=>Object.assign(Object.assign({},e),t),Eo.Modal);function Ef(e){if(e){const t=Object.assign({},e);return qr.push(t),Yi(),()=>{qr=qr.filter(n=>n!==t),Yi()}}Object.assign({},Eo.Modal)}const xf=k.createContext(void 0),Dl=xf,jl="internalMark",Ll=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const a=$n("LocaleProvider");process.env.NODE_ENV!=="production"&&a(r===jl,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}s.useEffect(()=>Ef(t&&t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(Dl.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(Ll.displayName="LocaleProvider");const Of=Ll;function tt(e,t){$f(e)&&(e="100%");var n=Pf(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Dr(e){return Math.min(1,Math.max(0,e))}function $f(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Pf(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Bl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function jr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hn(e){return e.length===1?"0"+e:String(e)}function If(e,t,n){return{r:tt(e,255)*255,g:tt(t,255)*255,b:tt(n,255)*255}}function qi(e,t,n){e=tt(e,255),t=tt(t,255),n=tt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var c=r-o;switch(i=l>.5?c/(2-r-o):c/(r+o),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:i,l}}function Xo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Mf(e,t,n){var r,o,a;if(e=tt(e,360),t=tt(t,100),n=tt(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Xo(l,i,e+1/3),o=Xo(l,i,e),a=Xo(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function Ca(e,t,n){e=tt(e,255),t=tt(t,255),n=tt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,c=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s:c,v:i}}function Rf(e,t,n){e=tt(e,360)*6,t=tt(t,100),n=tt(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6,u=[n,i,a,a,l,n][c],f=[l,n,n,i,a,a][c],d=[a,a,l,n,n,i][c];return{r:u*255,g:f*255,b:d*255}}function Sa(e,t,n,r){var o=[hn(Math.round(e).toString(16)),hn(Math.round(t).toString(16)),hn(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Tf(e,t,n,r,o){var a=[hn(Math.round(e).toString(16)),hn(Math.round(t).toString(16)),hn(Math.round(n).toString(16)),hn(Nf(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Nf(e){return Math.round(parseFloat(e)*255).toString(16)}function Qi(e){return yt(e)/255}function yt(e){return parseInt(e,16)}function _f(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var wa={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Wn(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=Df(e)),typeof e=="object"&&(Vt(e.r)&&Vt(e.g)&&Vt(e.b)?(t=If(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vt(e.h)&&Vt(e.s)&&Vt(e.v)?(r=jr(e.s),o=jr(e.v),t=Rf(e.h,r,o),i=!0,l="hsv"):Vt(e.h)&&Vt(e.s)&&Vt(e.l)&&(r=jr(e.s),a=jr(e.l),t=Mf(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Bl(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Af="[-\\+]?\\d+%?",kf="[-\\+]?\\d*\\.\\d+%?",en="(?:".concat(kf,")|(?:").concat(Af,")"),Go="[\\s|\\(]+(".concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")\\s*\\)?"),Yo="[\\s|\\(]+(".concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")\\s*\\)?"),_t={CSS_UNIT:new RegExp(en),rgb:new RegExp("rgb"+Go),rgba:new RegExp("rgba"+Yo),hsl:new RegExp("hsl"+Go),hsla:new RegExp("hsla"+Yo),hsv:new RegExp("hsv"+Go),hsva:new RegExp("hsva"+Yo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Df(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(wa[e])e=wa[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_t.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_t.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_t.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_t.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_t.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_t.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_t.hex8.exec(e),n?{r:yt(n[1]),g:yt(n[2]),b:yt(n[3]),a:Qi(n[4]),format:t?"name":"hex8"}:(n=_t.hex6.exec(e),n?{r:yt(n[1]),g:yt(n[2]),b:yt(n[3]),format:t?"name":"hex"}:(n=_t.hex4.exec(e),n?{r:yt(n[1]+n[1]),g:yt(n[2]+n[2]),b:yt(n[3]+n[3]),a:Qi(n[4]+n[4]),format:t?"name":"hex8"}:(n=_t.hex3.exec(e),n?{r:yt(n[1]+n[1]),g:yt(n[2]+n[2]),b:yt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Vt(e){return!!_t.CSS_UNIT.exec(String(e))}var ct=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=_f(t)),this.originalInput=t;var o=Wn(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Bl(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ca(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ca(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=qi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=qi(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Sa(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Tf(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(tt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(tt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Sa(this.r,this.g,this.b,!1),n=0,r=Object.entries(wa);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Dr(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Dr(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Dr(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Dr(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Lr=2,Zi=.16,jf=.05,Lf=.05,Bf=.15,zl=5,Hl=4,zf=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ji(e){var t=e.r,n=e.g,r=e.b,o=Ca(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Br(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Sa(t,n,r,!1))}function Hf(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function es(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Lr*t:Math.round(e.h)+Lr*t:r=n?Math.round(e.h)+Lr*t:Math.round(e.h)-Lr*t,r<0?r+=360:r>=360&&(r-=360),r}function ts(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Zi*t:t===Hl?r=e.s+Zi:r=e.s+jf*t,r>1&&(r=1),n&&t===zl&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ns(e,t,n){var r;return n?r=e.v+Lf*t:r=e.v-Bf*t,r>1&&(r=1),Number(r.toFixed(2))}function wn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Wn(e),o=zl;o>0;o-=1){var a=Ji(r),i=Br(Wn({h:es(a,o,!0),s:ts(a,o,!0),v:ns(a,o,!0)}));n.push(i)}n.push(Br(r));for(var l=1;l<=Hl;l+=1){var c=Ji(r),u=Br(Wn({h:es(c,l),s:ts(c,l),v:ns(c,l)}));n.push(u)}return t.theme==="dark"?zf.map(function(f){var d=f.index,v=f.opacity,g=Br(Hf(Wn(t.backgroundColor||"#141414"),Wn(n[d]),v*100));return g}):n}var qo={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Qr={},Qo={};Object.keys(qo).forEach(function(e){Qr[e]=wn(qo[e]),Qr[e].primary=Qr[e][5],Qo[e]=wn(qo[e],{theme:"dark",backgroundColor:"#141414"}),Qo[e].primary=Qo[e][5]});var Ff=Qr.blue;const Wf=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Vf=Wf;function Kf(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Fl={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Uf=Object.assign(Object.assign({},Fl),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
26
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
27
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Cr=Uf;function Xf(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:f}=e,d=n(c),v=n(o),g=n(a),h=n(i),p=n(l),m=r(u,f),S=e.colorLink||e.colorInfo,y=n(S);return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new ct("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Gf=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},Yf=Gf;function qf(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},Yf(r))}const Kt=(e,t)=>new ct(e).setAlpha(t).toRgbString(),lr=(e,t)=>new ct(e).darken(t).toHexString(),Qf=e=>{const t=wn(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Zf=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Kt(r,.88),colorTextSecondary:Kt(r,.65),colorTextTertiary:Kt(r,.45),colorTextQuaternary:Kt(r,.25),colorFill:Kt(r,.15),colorFillSecondary:Kt(r,.06),colorFillTertiary:Kt(r,.04),colorFillQuaternary:Kt(r,.02),colorBgLayout:lr(n,4),colorBgContainer:lr(n,0),colorBgElevated:lr(n,0),colorBgSpotlight:Kt(r,.85),colorBgBlur:"transparent",colorBorder:lr(n,15),colorBorderSecondary:lr(n,6)}};function Jf(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const ev=e=>{const t=Jf(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},tv=ev;function nv(e){const t=Object.keys(Fl).map(n=>{const r=wn(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Xf(e,{generateColorPalettes:Qf,generateNeutralColorPalettes:Zf})),tv(e.fontSize)),Kf(e)),Vf(e)),qf(e))}const Wl=va(nv),Vl={token:Cr,override:{override:Cr},hashed:!0},Kl=k.createContext(Vl),Ul="anticon",rv=(e,t)=>t||(e?`ant-${e}`:"ant"),gt=s.createContext({getPrefixCls:rv,iconPrefixCls:Ul}),ov=`-ant-${Date.now()}-${Math.random()}`;function av(e,t){const n={},r=(i,l)=>{let c=i.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(i,l)=>{const c=new ct(i),u=wn(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new ct(t.primaryColor),l=wn(i.toRgbString());l.forEach((u,f)=>{n[`primary-${f+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new ct(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
28
- :root {
29
- ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
30
- `)}
31
- }
32
- `.trim()}function iv(e,t){const n=av(e,t);ut()?hr(n,`${ov}-dynamic-theme`):process.env.NODE_ENV!=="production"&&wo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Ea=s.createContext(!1),sv=e=>{let{children:t,disabled:n}=e;const r=s.useContext(Ea);return s.createElement(Ea.Provider,{value:n??r},t)},lv=Ea,xa=s.createContext(void 0),cv=e=>{let{children:t,size:n}=e;const r=s.useContext(xa);return s.createElement(xa.Provider,{value:n||r},t)},ai=xa;function uv(){const e=k.useContext(lv),t=k.useContext(ai);return{componentDisabled:e,componentSize:t}}const io=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],dv="5.11.0";function Zo(e){return e>=0&&e<=255}function zr(e,t){const{r:n,g:r,b:o,a}=new ct(e).toRgb();if(a<1)return e;const{r:i,g:l,b:c}=new ct(t).toRgb();for(let u=.01;u<=1;u+=.01){const f=Math.round((n-i*(1-u))/u),d=Math.round((r-l*(1-u))/u),v=Math.round((o-c*(1-u))/u);if(Zo(f)&&Zo(d)&&Zo(v))return new ct({r:f,g:d,b:v,a:Math.round(u*100)/100}).toRgbString()}return new ct({r:n,g:r,b:o,a:1}).toRgbString()}var fv=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Xl(e){const{override:t}=e,n=fv(e,["override"]),r=Object.assign({},t);Object.keys(Cr).forEach(v=>{delete r[v]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,c=992,u=1200,f=1600;if(o.motion===!1){const v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:zr(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:zr(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:zr(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:zr(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
33
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
34
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
35
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
36
- `,boxShadowSecondary:`
37
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
38
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
39
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
40
- `,boxShadowTertiary:`
41
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
42
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
43
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
44
- `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
45
- 0 1px 2px -2px ${new ct("rgba(0, 0, 0, 0.16)").toRgbString()},
46
- 0 3px 6px 0 ${new ct("rgba(0, 0, 0, 0.12)").toRgbString()},
47
- 0 5px 12px 4px ${new ct("rgba(0, 0, 0, 0.09)").toRgbString()}
48
- `,boxShadowDrawerRight:`
49
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
50
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
51
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
52
- `,boxShadowDrawerLeft:`
53
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
54
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
55
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
56
- `,boxShadowDrawerUp:`
57
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
58
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
59
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
60
- `,boxShadowDrawerDown:`
61
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
62
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
63
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
64
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var rs=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gl=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=rs(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Xl(i),a&&Object.entries(a).forEach(l=>{let[c,u]=l;const{theme:f}=u,d=rs(u,["theme"]);let v=d;f&&(v=Gl(Object.assign(Object.assign({},i),d),{override:d},f)),i[c]=v}),i};function Jn(){const{token:e,hashed:t,theme:n,override:r}=k.useContext(Kl),o=`${dv}-${t||""}`,a=n||Wl,[i,l]=kd(a,[Cr,e],{salt:o,override:r,getComputedToken:Gl,formatToken:Xl});return[a,i,t?l:""]}function Et(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Xn(e){var t=s.useRef(!1),n=s.useState(e),r=j(n,2),o=r[0],a=r[1];s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,c){c&&t.current||a(l)}return[o,i]}function Jo(e){return e!==void 0}function Sn(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=Xn(function(){return Jo(o)?o:Jo(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=j(l,2),u=c[0],f=c[1],d=o!==void 0?o:u,v=i?i(d):d,g=Et(a),h=Xn([d]),p=j(h,2),m=p[0],S=p[1];zi(function(){var b=m[0];u!==b&&g(u,b)},[m]),zi(function(){Jo(o)||f(o)},[o]);var y=Et(function(b,C){f(b,C),S([d],C)});return[v,y]}const vv=(e,t,n,r,o)=>{const a=e/2,i=0,l=a,c=n*1/Math.sqrt(2),u=a-n*(1-1/Math.sqrt(2)),f=a-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),v=2*a-f,g=d,h=2*a-c,p=u,m=2*a-i,S=l,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*a-b}px 100%, ${b}px 100%)`,`path('M ${i} ${l} A ${n} ${n} 0 0 0 ${c} ${u} L ${f} ${d} A ${t} ${t} 0 0 1 ${v} ${g} L ${h} ${p} A ${n} ${n} 0 0 0 ${m} ${S} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},mv={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},xo=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Yl=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),os=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gv=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),pv=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ql=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Oa=e=>({"&:focus-visible":Object.assign({},ql(e))}),Ql=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let $a=!0;function rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ql)return Object.assign.apply(Object,[{}].concat(t));$a=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),$a=!0,r}const as={};function hv(){}function bv(e){let t,n=e,r=hv;return Ql&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return $a&&t.add(a),o[a]}}),r=(o,a)=>{var i;as[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=as[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}}const yv=(e,t)=>{const[n,r]=Jn();return ba({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Yl()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Zl=yv;function Oo(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return l=>{const[c,u,f]=Jn(),{getPrefixCls:d,iconPrefixCls:v,csp:g}=k.useContext(gt),h=d(),p={theme:c,token:u,hashId:f,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};return ba(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":gv(u)}]),Zl(v,g),[ba(Object.assign(Object.assign({},p),{path:[i,l,v]}),()=>{const{token:m,flush:S}=bv(u),y=Object.assign({},u[a]);if(r.deprecatedTokens){const{deprecatedTokens:O}=r;O.forEach(M=>{let[P,A]=M;var _;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&mt(!(y!=null&&y[P]),`The token '${String(P)}' of ${a} had deprecated, use '${String(A)}' instead.`),(y!=null&&y[P]||y!=null&&y[A])&&((_=y[A])!==null&&_!==void 0||(y[A]=y==null?void 0:y[P]))})}const b=typeof n=="function"?n(rn(m,y??{})):n,C=Object.assign(Object.assign({},b),y),E=`.${l}`,x=rn(m,{componentCls:E,prefixCls:l,iconCls:`.${v}`,antCls:`.${h}`},C),w=t(x,{hashId:f,prefixCls:l,rootPrefixCls:h,iconPrefixCls:v,overrideComponentToken:y});return S(a,C),[r.resetStyle===!1?null:pv(u,l),w]}),f]}}function Cv(e,t){return io.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}function Sv(e,t){const n=e||{},r=n.inherit===!1||!t?Vl:t;return mo(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,l)=>{const c=a[l];return!Za(i,c,!0)}))}var wv=["children"],Jl=s.createContext({});function Ev(e){var t=e.children,n=Le(e,wv);return s.createElement(Jl.Provider,{value:n},t)}var xv=function(e){ho(n,e);var t=bo(n);function n(){return sn(this,n),t.apply(this,arguments)}return ln(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),gn="none",Hr="appear",Fr="enter",Wr="leave",is="none",At="prepare",Kn="start",Un="active",ii="end",ec="prepared";function ss(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Ov(e,t){var n={animationend:ss("Animation","AnimationEnd"),transitionend:ss("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var $v=Ov(ut(),typeof window<"u"?window:{}),tc={};if(ut()){var Pv=document.createElement("div");tc=Pv.style}var Vr={};function nc(e){if(Vr[e])return Vr[e];var t=$v[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in tc)return Vr[e]=t[a],Vr[e]}return""}var rc=nc("animationend"),oc=nc("transitionend"),ac=!!(rc&&oc),ls=rc||"animationend",cs=oc||"transitionend";function us(e,t){if(!e)return null;if(Ve(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Iv=function(e){var t=k.useRef(),n=k.useRef(e);n.current=e;var r=s.useCallback(function(i){n.current(i)},[]);function o(i){i&&(i.removeEventListener(cs,r),i.removeEventListener(ls,r))}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(cs,r),i.addEventListener(ls,r),t.current=i)}return s.useEffect(function(){return function(){o(t.current)}},[]),[a,o]};var ic=ut()?k.useLayoutEffect:k.useEffect;const Mv=function(){var e=s.useRef(null);function t(){xt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=xt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return s.useEffect(function(){return function(){t()}},[]),[n,t]};var Rv=[At,Kn,Un,ii],Tv=[At,ec],sc=!1,Nv=!0;function lc(e){return e===Un||e===ii}const _v=function(e,t,n){var r=Xn(is),o=j(r,2),a=o[0],i=o[1],l=Mv(),c=j(l,2),u=c[0],f=c[1];function d(){i(At,!0)}var v=t?Tv:Rv;return ic(function(){if(a!==is&&a!==ii){var g=v.indexOf(a),h=v[g+1],p=n(a);p===sc?i(h,!0):h&&u(function(m){function S(){m.isCanceled()||i(h,!0)}p===!0?S():Promise.resolve(p).then(S)})}},[e,a]),s.useEffect(function(){return function(){f()}},[]),[d,a]};function Av(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,f=r.motionDeadline,d=r.motionLeaveImmediately,v=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,p=r.onAppearStart,m=r.onEnterStart,S=r.onLeaveStart,y=r.onAppearActive,b=r.onEnterActive,C=r.onLeaveActive,E=r.onAppearEnd,x=r.onEnterEnd,w=r.onLeaveEnd,O=r.onVisibleChanged,M=Xn(),P=j(M,2),A=P[0],_=P[1],$=Xn(gn),R=j($,2),I=R[0],N=R[1],T=Xn(null),z=j(T,2),B=z[0],W=z[1],te=k.useRef(!1),V=k.useRef(null);function oe(){return n()}var X=k.useRef(!1);function le(){N(gn,!0),W(null,!0)}function re(ge){var ce=oe();if(!(ge&&!ge.deadline&&ge.target!==ce)){var de=X.current,ae;I===Hr&&de?ae=E==null?void 0:E(ce,ge):I===Fr&&de?ae=x==null?void 0:x(ce,ge):I===Wr&&de&&(ae=w==null?void 0:w(ce,ge)),I!==gn&&de&&ae!==!1&&le()}}var ee=Iv(re),q=j(ee,1),ue=q[0],G=function(ce){var de,ae,ie;switch(ce){case Hr:return de={},Y(de,At,v),Y(de,Kn,p),Y(de,Un,y),de;case Fr:return ae={},Y(ae,At,g),Y(ae,Kn,m),Y(ae,Un,b),ae;case Wr:return ie={},Y(ie,At,h),Y(ie,Kn,S),Y(ie,Un,C),ie;default:return{}}},Z=s.useMemo(function(){return G(I)},[I]),fe=_v(I,!e,function(ge){if(ge===At){var ce=Z[At];return ce?ce(oe()):sc}if(me in Z){var de;W(((de=Z[me])===null||de===void 0?void 0:de.call(Z,oe(),null))||null)}return me===Un&&(ue(oe()),f>0&&(clearTimeout(V.current),V.current=setTimeout(function(){re({deadline:!0})},f))),me===ec&&le(),Nv}),Se=j(fe,2),D=Se[0],me=Se[1],ve=lc(me);X.current=ve,ic(function(){_(t);var ge=te.current;te.current=!0;var ce;!ge&&t&&l&&(ce=Hr),ge&&t&&a&&(ce=Fr),(ge&&!t&&u||!ge&&d&&!t&&u)&&(ce=Wr);var de=G(ce);ce&&(e||de[At])?(N(ce),D()):N(gn)},[t]),k.useEffect(function(){(I===Hr&&!l||I===Fr&&!a||I===Wr&&!u)&&N(gn)},[l,a,u]),k.useEffect(function(){return function(){te.current=!1,clearTimeout(V.current)}},[]);var Ne=s.useRef(!1);k.useEffect(function(){A&&(Ne.current=!0),A!==void 0&&I===gn&&((Ne.current||A)&&(O==null||O(A)),Ne.current=!0)},[A,I]);var Q=B;return Z[At]&&me===Kn&&(Q=L({transition:"none"},Q)),[I,me,Q,A??t]}function kv(e){var t=e;Ve(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=s.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,c=o.removeOnLeave,u=c===void 0?!0:c,f=o.forceRender,d=o.children,v=o.motionName,g=o.leavedClassName,h=o.eventProps,p=s.useContext(Jl),m=p.motion,S=n(o,m),y=k.useRef(),b=k.useRef();function C(){try{return y.current instanceof HTMLElement?y.current:Ur(b.current)}catch{return null}}var E=Av(S,l,C,o),x=j(E,4),w=x[0],O=x[1],M=x[2],P=x[3],A=s.useRef(P);P&&(A.current=!0);var _=s.useCallback(function(W){y.current=W,Ga(a,W)},[a]),$,R=L(L({},h),{},{visible:l});if(!d)$=null;else if(w===gn)P?$=d(L({},R),_):!u&&A.current&&g?$=d(L(L({},R),{},{className:g}),_):f||!u&&!g?$=d(L(L({},R),{},{style:{display:"none"}}),_):$=null;else{var I,N;O===At?N="prepare":lc(O)?N="active":O===Kn&&(N="start");var T=us(v,"".concat(w,"-").concat(N));$=d(L(L({},R),{},{className:se(us(v,w),(I={},Y(I,T,T&&N),Y(I,v,typeof v=="string"),I)),style:M}),_)}if(s.isValidElement($)&&xn($)){var z=$,B=z.ref;B||($=s.cloneElement($,{ref:_}))}return s.createElement(xv,{ref:b},$)});return r.displayName="CSSMotion",r}const $o=kv(ac);var Pa="add",Ia="keep",Ma="remove",ea="removed";function Dv(e){var t;return e&&Ve(e)==="object"&&"key"in e?t=e:t={key:e},L(L({},t),{},{key:String(t.key)})}function Ra(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Dv)}function jv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Ra(e),i=Ra(t);a.forEach(function(u){for(var f=!1,d=r;d<o;d+=1){var v=i[d];if(v.key===u.key){r<d&&(n=n.concat(i.slice(r,d).map(function(g){return L(L({},g),{},{status:Pa})})),r=d),n.push(L(L({},v),{},{status:Ia})),r+=1,f=!0;break}}f||n.push(L(L({},u),{},{status:Ma}))}),r<o&&(n=n.concat(i.slice(r).map(function(u){return L(L({},u),{},{status:Pa})})));var l={};n.forEach(function(u){var f=u.key;l[f]=(l[f]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){n=n.filter(function(f){var d=f.key,v=f.status;return d!==u||v!==Ma}),n.forEach(function(f){f.key===u&&(f.status=Ia)})}),n}var Lv=["component","children","onVisibleChanged","onAllRemoved"],Bv=["status"],zv=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Hv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$o,n=function(r){ho(a,r);var o=bo(a);function a(){var i;sn(this,a);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return i=o.call.apply(o,[this].concat(c)),Y(ca(i),"state",{keyEntities:[]}),Y(ca(i),"removeKey",function(f){var d=i.state.keyEntities,v=d.map(function(g){return g.key!==f?g:L(L({},g),{},{status:ea})});return i.setState({keyEntities:v}),v.filter(function(g){var h=g.status;return h!==ea}).length}),i}return ln(a,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,f=u.component,d=u.children,v=u.onVisibleChanged,g=u.onAllRemoved,h=Le(u,Lv),p=f||s.Fragment,m={};return zv.forEach(function(S){m[S]=h[S],delete h[S]}),delete h.keys,s.createElement(p,h,c.map(function(S,y){var b=S.status,C=Le(S,Bv),E=b===Pa||b===Ia;return s.createElement(t,Pe({},m,{key:C.key,visible:E,eventProps:C,onVisibleChanged:function(w){if(v==null||v(w,{key:C.key}),!w){var O=l.removeKey(C.key);O===0&&g&&g()}}}),function(x,w){return d(L(L({},x),{},{index:y}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,f=c.keyEntities,d=Ra(u),v=jv(f,d);return{keyEntities:v.filter(function(g){var h=f.find(function(p){var m=p.key;return g.key===m});return!(h&&h.status===ea&&g.status===Ma)})}}}]),a}(s.Component);return Y(n,"defaultProps",{component:"div"}),n}Hv(ac);function Fv(e){const{children:t}=e,[,n]=Jn(),{motion:r}=n,o=s.useRef(!1);return o.current=o.current||r===!1,o.current?s.createElement(Ev,{motion:r},t):t}const cc=s.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return $n("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(cc.displayName="PropWarning");const Wv=process.env.NODE_ENV!=="production"?cc:()=>null;var Vv=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ta=!1;process.env.NODE_ENV;const Kv=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],Uv="ant";let uc;function Xv(){return uc||Uv}function Gv(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Yv=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(uc=t),r&&Gv(r)&&(process.env.NODE_ENV!=="production"&&wo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),iv(Xv(),r))},qv=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:c,direction:u,space:f,virtual:d,dropdownMatchSelectWidth:v,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:p,parentContext:m,iconPrefixCls:S,theme:y,componentDisabled:b,segmented:C,statistic:E,spin:x,calendar:w,carousel:O,cascader:M,collapse:P,typography:A,checkbox:_,descriptions:$,divider:R,drawer:I,skeleton:N,steps:T,image:z,layout:B,list:W,mentions:te,modal:V,progress:oe,result:X,slider:le,breadcrumb:re,menu:ee,pagination:q,input:ue,empty:G,badge:Z,radio:fe,rate:Se,switch:D,transfer:me,avatar:ve,message:Ne,tag:Q,table:ge,card:ce,tabs:de,timeline:ae,timePicker:ie,upload:Fe,notification:nt,tree:Ie,colorPicker:pt,datePicker:Be,rangePicker:Te,flex:rt,wave:Ae,dropdown:dt,warning:ke}=e,ft=s.useCallback((J,Ee)=>{const{prefixCls:H}=e;if(Ee)return Ee;const U=H||m.getPrefixCls("");return J?`${U}-${J}`:U},[m.getPrefixCls,e.prefixCls]),De=S||m.iconPrefixCls||Ul,ye=n||m.csp;Zl(De,ye);const Me=Sv(y,m.theme);process.env.NODE_ENV!=="production"&&(Ta=Ta||!!Me);const Ye={csp:ye,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||p,direction:u,space:f,virtual:d,popupMatchSelectWidth:g??v,popupOverflow:h,getPrefixCls:ft,iconPrefixCls:De,theme:Me,segmented:C,statistic:E,spin:x,calendar:w,carousel:O,cascader:M,collapse:P,typography:A,checkbox:_,descriptions:$,divider:R,drawer:I,skeleton:N,steps:T,image:z,input:ue,layout:B,list:W,mentions:te,modal:V,progress:oe,result:X,slider:le,breadcrumb:re,menu:ee,pagination:q,empty:G,badge:Z,radio:fe,rate:Se,switch:D,transfer:me,avatar:ve,message:Ne,tag:Q,table:ge,card:ce,tabs:de,timeline:ae,timePicker:ie,upload:Fe,notification:nt,tree:Ie,colorPicker:pt,datePicker:Be,rangePicker:Te,flex:rt,wave:Ae,dropdown:dt,warning:ke},je=Object.assign({},m);Object.keys(Ye).forEach(J=>{Ye[J]!==void 0&&(je[J]=Ye[J])}),Kv.forEach(J=>{const Ee=e[J];Ee&&(je[J]=Ee)});const Qe=mo(()=>je,je,(J,Ee)=>{const H=Object.keys(J),U=Object.keys(Ee);return H.length!==U.length||H.some(Ce=>J[Ce]!==Ee[Ce])}),vt=s.useMemo(()=>({prefixCls:De,csp:ye}),[De,ye]);let pe=s.createElement(s.Fragment,null,s.createElement(Wv,{dropdownMatchSelectWidth:v}),t);const he=s.useMemo(()=>{var J,Ee,H,U;return gf(((J=Eo.Form)===null||J===void 0?void 0:J.defaultValidateMessages)||{},((H=(Ee=Qe.locale)===null||Ee===void 0?void 0:Ee.Form)===null||H===void 0?void 0:H.defaultValidateMessages)||{},((U=Qe.form)===null||U===void 0?void 0:U.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Qe,i==null?void 0:i.validateMessages]);Object.keys(he).length>0&&(pe=s.createElement(hf.Provider,{value:he},pe)),l&&(pe=s.createElement(Of,{locale:l,_ANT_MARK__:jl},pe)),(De||ye)&&(pe=s.createElement(ri.Provider,{value:vt},pe)),c&&(pe=s.createElement(cv,{size:c},pe)),pe=s.createElement(Fv,null,pe);const we=s.useMemo(()=>{const J=Me||{},{algorithm:Ee,token:H,components:U}=J,Ce=Vv(J,["algorithm","token","components"]),We=Ee&&(!Array.isArray(Ee)||Ee.length>0)?va(Ee):Wl,Ke={};Object.entries(U||{}).forEach(cn=>{let[Bt,$t]=cn;const Ue=Object.assign({},$t);"algorithm"in Ue&&(Ue.algorithm===!0?Ue.theme=We:(Array.isArray(Ue.algorithm)||typeof Ue.algorithm=="function")&&(Ue.theme=va(Ue.algorithm)),delete Ue.algorithm),Ke[Bt]=Ue});const ot=Object.assign(Object.assign({},Cr),H);return Object.assign(Object.assign({},Ce),{theme:We,token:ot,components:Ke,override:Object.assign({override:ot},Ke)})},[Me]);return y&&(pe=s.createElement(Kl.Provider,{value:we},pe)),Qe.warning&&(pe=s.createElement(Al.Provider,{value:Qe.warning},pe)),b!==void 0&&(pe=s.createElement(sv,{disabled:b},pe)),s.createElement(gt.Provider,{value:Qe},pe)},Pn=e=>{const t=s.useContext(gt),n=s.useContext(Dl);return s.createElement(qv,Object.assign({parentContext:t,legacyLocale:n},e))};Pn.ConfigContext=gt;Pn.SizeContext=ai;Pn.config=Yv;Pn.useConfig=uv;Object.defineProperty(Pn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&wo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ai)});process.env.NODE_ENV!=="production"&&(Pn.displayName="ConfigProvider");function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}function Qv(e){if(Array.isArray(e))return e}function Zv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function ds(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jv(e,t){if(e){if(typeof e=="string")return ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ds(e,t)}}function em(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dc(e,t){return Qv(e)||Zv(e,t)||Jv(e,t)||em()}function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function tm(e,t){if(En(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(En(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nm(e){var t=tm(e,"string");return En(t)==="symbol"?t:String(t)}function Na(e,t,n){return t=nm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rm(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function fc(e,t){if(e==null)return{};var n=rm(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fs(Object(n),!0).forEach(function(r){Na(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function om(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function am(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var vs="data-rc-order",ms="data-rc-priority",im="rc-util-key",_a=new Map;function vc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):im}function si(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function sm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function mc(e){return Array.from((_a.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function gc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!om())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=sm(r),l=i==="prependQueue",c=document.createElement("style");c.setAttribute(vs,i),l&&a&&c.setAttribute(ms,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=si(t),f=u.firstChild;if(r){if(l){var d=mc(u).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(vs)))return!1;var g=Number(v.getAttribute(ms)||0);return a>=g});if(d.length)return u.insertBefore(c,d[d.length-1].nextSibling),c}u.insertBefore(c,f)}else u.appendChild(c);return c}function lm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=si(t);return mc(n).find(function(r){return r.getAttribute(vc(t))===e})}function cm(e,t){var n=_a.get(e);if(!n||!am(document,n)){var r=gc("",t),o=r.parentNode;_a.set(e,o),e.removeChild(r)}}function um(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=si(n);cm(r,n);var o=lm(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=gc(e,n);return c.setAttribute(vc(n),t),c}function pc(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function dm(e){return pc(e)instanceof ShadowRoot}function fm(e){return dm(e)?pc(e):null}var Aa={},li=[],vm=function(t){li.push(t)};function mm(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=li.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function gm(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=li.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function pm(){Aa={}}function hc(e,t,n){!t&&!Aa[n]&&(e(!1,n),Aa[n]=!0)}function Po(e,t){hc(mm,e,t)}function hm(e,t){hc(gm,e,t)}Po.preMessage=vm;Po.resetWarned=pm;Po.noteOnce=hm;function bm(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function ym(e,t){Po(e,"[@ant-design/icons] ".concat(t))}function gs(e){return En(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(En(e.icon)==="object"||typeof e.icon=="function")}function ps(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[bm(n)]=r}return t},{})}function ka(e,t,n){return n?k.createElement(e.tag,tn(tn({key:t},ps(e.attrs)),n),(e.children||[]).map(function(r,o){return ka(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):k.createElement(e.tag,tn({key:t},ps(e.attrs)),(e.children||[]).map(function(r,o){return ka(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function bc(e){return wn(e)[0]}function yc(e){return e?Array.isArray(e)?e:[e]:[]}var Cm=`
66
- .anticon {
67
- display: inline-block;
68
- color: inherit;
69
- font-style: normal;
70
- line-height: 0;
71
- text-align: center;
72
- text-transform: none;
73
- vertical-align: -0.125em;
74
- text-rendering: optimizeLegibility;
75
- -webkit-font-smoothing: antialiased;
76
- -moz-osx-font-smoothing: grayscale;
77
- }
78
-
79
- .anticon > * {
80
- line-height: 1;
81
- }
82
-
83
- .anticon svg {
84
- display: inline-block;
85
- }
86
-
87
- .anticon::before {
88
- display: none;
89
- }
90
-
91
- .anticon .anticon-icon {
92
- display: block;
93
- }
94
-
95
- .anticon[tabindex] {
96
- cursor: pointer;
97
- }
98
-
99
- .anticon-spin::before,
100
- .anticon-spin {
101
- display: inline-block;
102
- -webkit-animation: loadingCircle 1s infinite linear;
103
- animation: loadingCircle 1s infinite linear;
104
- }
105
-
106
- @-webkit-keyframes loadingCircle {
107
- 100% {
108
- -webkit-transform: rotate(360deg);
109
- transform: rotate(360deg);
110
- }
111
- }
112
-
113
- @keyframes loadingCircle {
114
- 100% {
115
- -webkit-transform: rotate(360deg);
116
- transform: rotate(360deg);
117
- }
118
- }
119
- `,Sm=function(t){var n=k.useContext(ri),r=n.csp,o=n.prefixCls,a=Cm;o&&(a=a.replace(/anticon/g,o)),k.useEffect(function(){var i=t.current,l=fm(i);um(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},wm=["icon","className","onClick","style","primaryColor","secondaryColor"],gr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Em(e){var t=e.primaryColor,n=e.secondaryColor;gr.primaryColor=t,gr.secondaryColor=n||bc(t),gr.calculated=!!n}function xm(){return tn({},gr)}var Io=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,c=fc(t,wm),u=s.useRef(),f=gr;if(i&&(f={primaryColor:i,secondaryColor:l||bc(i)}),Sm(u),ym(gs(n),"icon should be icon definiton, but got ".concat(n)),!gs(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=tn(tn({},d),{},{icon:d.icon(f.primaryColor,f.secondaryColor)})),ka(d.icon,"svg-".concat(d.name),tn(tn({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Io.displayName="IconReact";Io.getTwoToneColors=xm;Io.setTwoToneColors=Em;const ci=Io;function Cc(e){var t=yc(e),n=dc(t,2),r=n[0],o=n[1];return ci.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Om(){var e=ci.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var $m=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Cc(Ff.primary);var Mo=s.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,l=e.tabIndex,c=e.onClick,u=e.twoToneColor,f=fc(e,$m),d=s.useContext(ri),v=d.prefixCls,g=v===void 0?"anticon":v,h=d.rootClassName,p=se(h,g,(n={},Na(n,"".concat(g,"-").concat(o.name),!!o.name),Na(n,"".concat(g,"-spin"),!!a||o.name==="loading"),n),r),m=l;m===void 0&&c&&(m=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=yc(u),b=dc(y,2),C=b[0],E=b[1];return s.createElement("span",on({role:"img","aria-label":o.name},f,{ref:t,tabIndex:m,onClick:c,className:p}),s.createElement(ci,{icon:o,primaryColor:C,secondaryColor:E,style:S}))});Mo.displayName="AntdIcon";Mo.getTwoToneColor=Om;Mo.setTwoToneColor=Cc;const xr=Mo;var Pm=`accept acceptCharset accessKey action allowFullScreen allowTransparency
120
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
121
- charSet checked classID className colSpan cols content contentEditable contextMenu
122
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
123
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
124
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
125
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
126
- mediaGroup method min minLength multiple muted name noValidate nonce open
127
- optimum pattern placeholder poster preload radioGroup readOnly rel required
128
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
129
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
130
- summary tabIndex target title type useMap value width wmode wrap`,Im=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
131
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
132
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
133
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
134
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
135
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
136
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Mm="".concat(Pm," ").concat(Im).split(/[\s\n]+/),Rm="aria-",Tm="data-";function hs(e,t){return e.indexOf(t)===0}function Sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=L({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||hs(o,Rm))||n.data&&hs(o,Tm)||n.attr&&Mm.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:an}=s;function Nm(e){return e&&an(e)&&e.type===s.Fragment}function _m(e,t,n){return an(e)?s.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function er(e,t){return _m(e,e,t)}var K={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=K.F1&&n<=K.F12)return!1;switch(n){case K.ALT:case K.CAPS_LOCK:case K.CONTEXT_MENU:case K.CTRL:case K.DOWN:case K.END:case K.ESC:case K.HOME:case K.INSERT:case K.LEFT:case K.MAC_FF_META:case K.META:case K.NUMLOCK:case K.NUM_CENTER:case K.PAGE_DOWN:case K.PAGE_UP:case K.PAUSE:case K.PRINT_SCREEN:case K.RIGHT:case K.SHIFT:case K.UP:case K.WIN_KEY:case K.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=K.ZERO&&t<=K.NINE||t>=K.NUM_ZERO&&t<=K.NUM_MULTIPLY||t>=K.A&&t<=K.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case K.SPACE:case K.QUESTION_MARK:case K.NUM_PLUS:case K.NUM_MINUS:case K.NUM_PERIOD:case K.NUM_DIVISION:case K.SEMICOLON:case K.DASH:case K.EQUALS:case K.COMMA:case K.PERIOD:case K.SLASH:case K.APOSTROPHE:case K.SINGLE_QUOTE:case K.OPEN_SQUARE_BRACKET:case K.BACKSLASH:case K.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const ta=()=>({height:0,opacity:0}),bs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Am=e=>({height:e?e.offsetHeight:0}),na=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",km=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ta,onEnterStart:ta,onAppearActive:bs,onEnterActive:bs,onLeaveStart:Am,onLeaveActive:ta,onAppearEnd:na,onEnterEnd:na,onLeaveEnd:na,motionDeadline:500}},Dm=(e,t,n)=>n!==void 0?n:`${e}-${t}`,jm=km,wc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1};globalThis&&globalThis.__rest;const Lm=s.createContext(null),Ec=e=>{let{children:t}=e;return s.createElement(Lm.Provider,{value:null},t)};var xc=s.createContext(null),ys=[];function Bm(e,t){var n=s.useState(function(){if(!ut())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),r=j(n,1),o=r[0],a=s.useRef(!1),i=s.useContext(xc),l=s.useState(ys),c=j(l,2),u=c[0],f=c[1],d=i||(a.current?void 0:function(h){f(function(p){var m=[h].concat(Ge(p));return m})});function v(){o.parentElement||document.body.appendChild(o),a.current=!0}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1}return st(function(){return e?i?i(v):v():g(),g},[e]),st(function(){u.length&&(u.forEach(function(h){return h()}),f(ys))},[u]),[o,d]}var ra;function zm(e){if(typeof document>"u")return 0;if(e||ra===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),ra=o-a}return ra}function Cs(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?zm():n}function Hm(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:Cs(n),height:Cs(r)}}function Fm(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Wm="rc-util-locker-".concat(Date.now()),Ss=0;function Vm(e){var t=!!e,n=s.useState(function(){return Ss+=1,"".concat(Wm,"_").concat(Ss)}),r=j(n,1),o=r[0];st(function(){if(t){var a=Hm(document.body).width,i=Fm();hr(`
137
- html body {
138
- overflow-y: hidden;
139
- `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
140
- }`),o)}else oo(o);return function(){oo(o)}},[t,o])}var ws=!1;function Km(e){return typeof e=="boolean"&&(ws=e),ws}var Es=function(t){return t===!1?!1:!ut()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ui=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,a=e.debug,i=e.autoDestroy,l=i===void 0?!0:i,c=e.children,u=s.useState(n),f=j(u,2),d=f[0],v=f[1],g=d||n;process.env.NODE_ENV!=="production"&&mt(ut()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),s.useEffect(function(){(l||n)&&v(n)},[n,l]);var h=s.useState(function(){return Es(o)}),p=j(h,2),m=p[0],S=p[1];s.useEffect(function(){var _=Es(o);S(_??null)});var y=Bm(g&&!m,a),b=j(y,2),C=b[0],E=b[1],x=m??C;Vm(r&&n&&ut()&&(x===C||x===document.body));var w=null;if(c&&xn(c)&&t){var O=c;w=O.ref}var M=Er(w,t);if(!g||!ut()||m===void 0)return null;var P=x===!1||Km(),A=c;return t&&(A=s.cloneElement(c,{ref:M})),s.createElement(xc.Provider,{value:E},P?A:vo.createPortal(A,x))});process.env.NODE_ENV!=="production"&&(ui.displayName="Portal");function Um(){var e=L({},s);return e.useId}var xs=0,Os=Um();const Xm=Os?function(t){var n=Os();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=s.useState("ssr-id"),r=j(n,2),o=r[0],a=r[1];return s.useEffect(function(){var i=xs;xs+=1,a("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},Gm=k.createContext(void 0),di=Gm,Ym=e=>({animationDuration:e,animationFillMode:"both"}),qm=e=>({animationDuration:e,animationFillMode:"both"}),fi=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
141
- ${a}${e}-enter,
142
- ${a}${e}-appear
143
- `]:Object.assign(Object.assign({},Ym(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},qm(r)),{animationPlayState:"paused"}),[`
144
- ${a}${e}-enter${e}-enter-active,
145
- ${a}${e}-appear${e}-appear-active
146
- `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Qm=new Re("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Zm=new Re("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Jm=new Re("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eg=new Re("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tg=new Re("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ng=new Re("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rg=new Re("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),og=new Re("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ag={"move-up":{inKeyframes:rg,outKeyframes:og},"move-down":{inKeyframes:Qm,outKeyframes:Zm},"move-left":{inKeyframes:Jm,outKeyframes:eg},"move-right":{inKeyframes:tg,outKeyframes:ng}},$s=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=ag[t];return[fi(r,o,a,e.motionDurationMid),{[`
147
- ${r}-enter,
148
- ${r}-appear
149
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Oc=new Re("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$c=new Re("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Pc=new Re("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ic=new Re("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ig=new Re("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),sg=new Re("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),lg=new Re("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),cg=new Re("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ug={"slide-up":{inKeyframes:Oc,outKeyframes:$c},"slide-down":{inKeyframes:Pc,outKeyframes:Ic},"slide-left":{inKeyframes:ig,outKeyframes:sg},"slide-right":{inKeyframes:lg,outKeyframes:cg}},so=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=ug[t];return[fi(r,o,a,e.motionDurationMid),{[`
150
- ${r}-enter,
151
- ${r}-appear
152
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},dg=new Re("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fg=new Re("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ps=new Re("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Is=new Re("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),vg=new Re("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),mg=new Re("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),gg=new Re("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),pg=new Re("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),hg=new Re("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),bg=new Re("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),yg=new Re("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Cg=new Re("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Sg={zoom:{inKeyframes:dg,outKeyframes:fg},"zoom-big":{inKeyframes:Ps,outKeyframes:Is},"zoom-big-fast":{inKeyframes:Ps,outKeyframes:Is},"zoom-left":{inKeyframes:gg,outKeyframes:pg},"zoom-right":{inKeyframes:hg,outKeyframes:bg},"zoom-up":{inKeyframes:vg,outKeyframes:mg},"zoom-down":{inKeyframes:yg,outKeyframes:Cg}},vi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Sg[t];return[fi(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
153
- ${r}-enter,
154
- ${r}-appear
155
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},wg=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
156
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
157
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Eg=wg,Mc={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},xg={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function Og(e){return e in Mc}function mi(e,t){const[,n]=Jn(),r=k.useContext(di),o=Og(e);let a=r??0;return o?a+=n.zIndexPopupBase+Mc[e]:a+=xg[e],[r===void 0?t:a,a]}function $g(e){return function(n){return s.createElement(Pn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},n)))}}function Pg(e,t,n,r){function o(a){const{prefixCls:i,style:l}=a,c=s.useRef(null),[u,f]=s.useState(0),[d,v]=s.useState(0),[g,h]=Sn(!1,{value:a.open}),{getPrefixCls:p}=s.useContext(gt),m=p(t||"select",i);s.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(C=>{const E=C[0].target;f(E.offsetHeight+8),v(E.offsetWidth)}),b=setInterval(()=>{var C;const E=n?`.${n(m)}`:`.${m}-dropdown`,x=(C=c.current)===null||C===void 0?void 0:C.querySelector(E);x&&(clearInterval(b),y.observe(x))},10);return()=>{clearInterval(b),y.disconnect()}}},[]);let S=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});return r&&(S=r(S)),s.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},s.createElement(e,Object.assign({},S)))}return $g(o)}const Ig=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Mg=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Dn=void 0;function Rg(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,f=e.className,d=e.style,v=e.children,g=e.display,h=e.order,p=e.component,m=p===void 0?"div":p,S=Le(e,Mg),y=i&&!g;function b(O){c(u,O)}s.useEffect(function(){return function(){b(null)}},[]);var C=a&&o!==Dn?a(o):v,E;r||(E={opacity:y?0:1,height:y?0:Dn,overflowY:y?"hidden":Dn,order:i?h:Dn,pointerEvents:y?"none":Dn,position:y?"absolute":Dn});var x={};y&&(x["aria-hidden"]=!0);var w=s.createElement(m,Pe({className:se(!r&&n,f),style:L(L({},E),d)},x,S,{ref:t}),C);return i&&(w=s.createElement(Qn,{onResize:function(M){var P=M.offsetWidth;b(P)},disabled:l},w)),w}var pr=s.forwardRef(Rg);pr.displayName="Item";function Tg(e){if(typeof MessageChannel>"u")xt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Ng(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],Tg(function(){vo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function cr(e,t){var n=s.useState(t),r=j(n,2),o=r[0],a=r[1],i=Et(function(l){e(function(){a(l)})});return[o,i]}var lo=k.createContext(null),_g=["component"],Ag=["className"],kg=["className"],Dg=function(t,n){var r=s.useContext(lo);if(!r){var o=t.component,a=o===void 0?"div":o,i=Le(t,_g);return s.createElement(a,Pe({},i,{ref:n}))}var l=r.className,c=Le(r,Ag),u=t.className,f=Le(t,kg);return s.createElement(lo.Provider,{value:null},s.createElement(pr,Pe({ref:n,className:se(l,u)},c,f)))},Rc=s.forwardRef(Dg);Rc.displayName="RawItem";var jg=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Tc="responsive",Nc="invalidate";function Lg(e){return"+ ".concat(e.length," ...")}function Bg(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,f=u===void 0?10:u,d=e.ssr,v=e.style,g=e.className,h=e.maxCount,p=e.renderRest,m=e.renderRawRest,S=e.suffix,y=e.component,b=y===void 0?"div":y,C=e.itemComponent,E=e.onVisibleChange,x=Le(e,jg),w=d==="full",O=Ng(),M=cr(O,null),P=j(M,2),A=P[0],_=P[1],$=A||0,R=cr(O,new Map),I=j(R,2),N=I[0],T=I[1],z=cr(O,0),B=j(z,2),W=B[0],te=B[1],V=cr(O,0),oe=j(V,2),X=oe[0],le=oe[1],re=cr(O,0),ee=j(re,2),q=ee[0],ue=ee[1],G=k.useState(null),Z=j(G,2),fe=Z[0],Se=Z[1],D=k.useState(null),me=j(D,2),ve=me[0],Ne=me[1],Q=s.useMemo(function(){return ve===null&&w?Number.MAX_SAFE_INTEGER:ve||0},[ve,A]),ge=k.useState(!1),ce=j(ge,2),de=ce[0],ae=ce[1],ie="".concat(r,"-item"),Fe=Math.max(W,X),nt=h===Tc,Ie=a.length&&nt,pt=h===Nc,Be=Ie||typeof h=="number"&&a.length>h,Te=k.useMemo(function(){var H=a;return Ie?A===null&&w?H=a:H=a.slice(0,Math.min(a.length,$/f)):typeof h=="number"&&(H=a.slice(0,h)),H},[a,f,A,h,Ie]),rt=k.useMemo(function(){return Ie?a.slice(Q+1):a.slice(Te.length)},[a,Te,Ie,Q]),Ae=k.useCallback(function(H,U){var Ce;return typeof c=="function"?c(H):(Ce=c&&(H==null?void 0:H[c]))!==null&&Ce!==void 0?Ce:U},[c]),dt=k.useCallback(i||function(H){return H},[i]);function ke(H,U,Ce){ve===H&&(U===void 0||U===fe)||(Ne(H),Ce||(ae(H<a.length-1),E==null||E(H)),U!==void 0&&Se(U))}function ft(H,U){_(U.clientWidth)}function De(H,U){T(function(Ce){var We=new Map(Ce);return U===null?We.delete(H):We.set(H,U),We})}function ye(H,U){le(U),te(X)}function Me(H,U){ue(U)}function Ye(H){return N.get(Ae(Te[H],H))}st(function(){if($&&typeof Fe=="number"&&Te){var H=q,U=Te.length,Ce=U-1;if(!U){ke(0,null);return}for(var We=0;We<U;We+=1){var Ke=Ye(We);if(w&&(Ke=Ke||0),Ke===void 0){ke(We-1,void 0,!0);break}if(H+=Ke,Ce===0&&H<=$||We===Ce-1&&H+Ye(Ce)<=$){ke(Ce,null);break}else if(H+Fe>$){ke(We-1,H-Ke-q+X);break}}S&&Ye(0)+q>$&&Se(null)}},[$,N,X,q,Ae,Te]);var je=de&&!!rt.length,Qe={};fe!==null&&Ie&&(Qe={position:"absolute",left:fe,top:0});var vt={prefixCls:ie,responsive:Ie,component:C,invalidate:pt},pe=l?function(H,U){var Ce=Ae(H,U);return s.createElement(lo.Provider,{key:Ce,value:L(L({},vt),{},{order:U,item:H,itemKey:Ce,registerSize:De,display:U<=Q})},l(H,U))}:function(H,U){var Ce=Ae(H,U);return s.createElement(pr,Pe({},vt,{order:U,key:Ce,item:H,renderItem:dt,itemKey:Ce,registerSize:De,display:U<=Q}))},he,we={order:je?Q:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:ye,display:je};if(m)m&&(he=s.createElement(lo.Provider,{value:L(L({},vt),we)},m(rt)));else{var J=p||Lg;he=s.createElement(pr,Pe({},vt,we),typeof J=="function"?J(rt):J)}var Ee=s.createElement(b,Pe({className:se(!pt&&r,g),style:v,ref:t},x),Te.map(pe),Be?he:null,S&&s.createElement(pr,Pe({},vt,{responsive:nt,responsiveDisabled:!Ie,order:Q,className:"".concat(ie,"-suffix"),registerSize:Me,display:!0,style:Qe}),S));return nt&&(Ee=s.createElement(Qn,{onResize:ft,disabled:!Ie},Ee)),Ee}var Yt=s.forwardRef(Bg);Yt.displayName="Overflow";Yt.Item=Rc;Yt.RESPONSIVE=Tc;Yt.INVALIDATE=Nc;function _c(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zg(e){return _c(e)instanceof ShadowRoot}function Da(e){return zg(e)?_c(e):null}function Hg(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,u=c===void 0?0:c,f=o.y,d=f===void 0?0:f,v=s.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],p=n.points[1],m=h[0],S=h[1],y=p[0],b=p[1];m===y||!["t","b"].includes(m)?g.top=d:m==="t"?g.top=0:g.bottom=0,S===b||!["l","r"].includes(S)?g.left=u:S==="l"?g.left=0:g.right=0}return s.createElement("div",{ref:v,className:se("".concat(t,"-arrow"),i),style:g},l)}function Fg(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?s.createElement($o,Pe({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return s.createElement("div",{style:{zIndex:r},className:se("".concat(t,"-mask"),l)})}):null}var Ac=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Ac.displayName="PopupContent");var kc=s.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,f=e.fresh,d=e.onClick,v=e.mask,g=e.arrow,h=e.arrowPos,p=e.align,m=e.motion,S=e.maskMotion,y=e.forceRender,b=e.getPopupContainer,C=e.autoDestroy,E=e.portal,x=e.zIndex,w=e.onMouseEnter,O=e.onMouseLeave,M=e.onPointerEnter,P=e.ready,A=e.offsetX,_=e.offsetY,$=e.offsetR,R=e.offsetB,I=e.onAlign,N=e.onPrepare,T=e.stretch,z=e.targetWidth,B=e.targetHeight,W=typeof n=="function"?n():n,te=c||u,V=(b==null?void 0:b.length)>0,oe=s.useState(!b||!V),X=j(oe,2),le=X[0],re=X[1];if(st(function(){!le&&V&&i&&re(!0)},[le,V,i]),!le)return null;var ee="auto",q={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(P||!c){var ue,G=p.points,Z=p.dynamicInset||((ue=p._experimental)===null||ue===void 0?void 0:ue.dynamicInset),fe=Z&&G[0][1]==="r",Se=Z&&G[0][0]==="b";fe?(q.right=$,q.left=ee):(q.left=A,q.right=ee),Se?(q.bottom=R,q.top=ee):(q.top=_,q.bottom=ee)}var D={};return T&&(T.includes("height")&&B?D.height=B:T.includes("minHeight")&&B&&(D.minHeight=B),T.includes("width")&&z?D.width=z:T.includes("minWidth")&&z&&(D.minWidth=z)),c||(D.pointerEvents="none"),s.createElement(E,{open:y||te,getContainer:b&&function(){return b(i)},autoDestroy:C},s.createElement(Fg,{prefixCls:o,open:c,zIndex:x,mask:v,motion:S}),s.createElement(Qn,{onResize:I,disabled:!c},function(me){return s.createElement($o,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:N,onEnterPrepare:N,visible:c,onVisibleChanged:function(Ne){var Q;m==null||(Q=m.onVisibleChanged)===null||Q===void 0||Q.call(m,Ne),l(Ne)}}),function(ve,Ne){var Q=ve.className,ge=ve.style,ce=se(o,Q,r);return s.createElement("div",{ref:go(me,t,Ne),className:ce,style:L(L(L(L({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),D),ge),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:w,onMouseLeave:O,onPointerEnter:M,onClick:d},g&&s.createElement(Hg,{prefixCls:o,arrow:g,arrowPos:h,align:p}),s.createElement(Ac,{cache:!c&&!f},W))})}))});process.env.NODE_ENV!=="production"&&(kc.displayName="Popup");var Dc=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=xn(n),a=s.useCallback(function(l){Ga(t,r?r(l):l)},[r]),i=Er(a,n.ref);return o?s.cloneElement(n,{ref:i}):n});process.env.NODE_ENV!=="production"&&(Dc.displayName="TriggerWrapper");var Ms=s.createContext(null);function Rs(e){return e?Array.isArray(e)?e:[e]:[]}function Wg(e,t,n,r){return s.useMemo(function(){var o=Rs(n??t),a=Rs(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function Vg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Kg(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,c=a[i];if(Vg((l=e[c])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function Ts(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Or(e){return e.ownerDocument.defaultView}function ja(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Or(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,l=o.overflow;[a,i,l].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function Sr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ur(e){return Sr(parseFloat(e),0)}function Ns(e,t){var n=L({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Or(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,f=o.borderRightWidth,d=r.getBoundingClientRect(),v=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,p=r.clientWidth,m=ur(l),S=ur(c),y=ur(u),b=ur(f),C=Sr(Math.round(d.width/h*1e3)/1e3),E=Sr(Math.round(d.height/v*1e3)/1e3),x=(h-p-y-b)*C,w=(v-g-m-S)*E,O=m*E,M=S*E,P=y*C,A=b*C,_=0,$=0;if(a==="clip"){var R=ur(i);_=R*C,$=R*E}var I=d.x+P-_,N=d.y+O-$,T=I+d.width+2*_-P-A-x,z=N+d.height+2*$-O-M-w;n.left=Math.max(n.left,I),n.top=Math.max(n.top,N),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,z)}}),n}function _s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function As(e,t){var n=t||[],r=j(n,2),o=r[0],a=r[1];return[_s(e.width,o),_s(e.height,a)]}function ks(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function jn(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Jt(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function Ug(e,t,n,r,o,a,i){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=j(l,2),u=c[0],f=c[1],d=s.useRef(0),v=s.useMemo(function(){return t?ja(t):[]},[t]),g=s.useRef({}),h=function(){g.current={}};e||h();var p=Et(function(){if(t&&n&&e){let Ct=function(Mr,St){var _n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,Rr=B.x+Mr,An=B.y+St,Tr=Rr+q,sr=An+ee,Nr=Math.max(Rr,_n.left),jo=Math.max(An,_n.top),Lo=Math.min(Tr,_n.right),Bo=Math.min(sr,_n.bottom);return Math.max(0,(Lo-Nr)*(Bo-jo))},Ir=function(){zt=B.y+we,Pt=zt+ee,Je=B.x+he,jt=Je+q};var y,b,C=t,E=C.ownerDocument,x=Or(C),w=x.getComputedStyle(C),O=w.width,M=w.height,P=w.position,A=C.style.left,_=C.style.top,$=C.style.right,R=C.style.bottom,I=L(L({},o[r]),a),N=E.createElement("div");(y=C.parentElement)===null||y===void 0||y.appendChild(N),N.style.left="".concat(C.offsetLeft,"px"),N.style.top="".concat(C.offsetTop,"px"),N.style.position=P,N.style.height="".concat(C.offsetHeight,"px"),N.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto";var T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else{var z=n.getBoundingClientRect();T={x:z.x,y:z.y,width:z.width,height:z.height}}var B=C.getBoundingClientRect(),W=E.documentElement,te=W.clientWidth,V=W.clientHeight,oe=W.scrollWidth,X=W.scrollHeight,le=W.scrollTop,re=W.scrollLeft,ee=B.height,q=B.width,ue=T.height,G=T.width,Z={left:0,top:0,right:te,bottom:V},fe={left:-re,top:-le,right:oe-re,bottom:X-le},Se=I.htmlRegion,D="visible",me="visibleFirst";Se!=="scroll"&&Se!==me&&(Se=D);var ve=Se===me,Ne=Ns(fe,v),Q=Ns(Z,v),ge=Se===D?Q:Ne,ce=ve?Q:ge;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var de=C.getBoundingClientRect();C.style.left=A,C.style.top=_,C.style.right=$,C.style.bottom=R,(b=C.parentElement)===null||b===void 0||b.removeChild(N);var ae=Sr(Math.round(q/parseFloat(O)*1e3)/1e3),ie=Sr(Math.round(ee/parseFloat(M)*1e3)/1e3);if(ae===0||ie===0||eo(n)&&!wc(n))return;var Fe=I.offset,nt=I.targetOffset,Ie=As(B,Fe),pt=j(Ie,2),Be=pt[0],Te=pt[1],rt=As(T,nt),Ae=j(rt,2),dt=Ae[0],ke=Ae[1];T.x-=dt,T.y-=ke;var ft=I.points||[],De=j(ft,2),ye=De[0],Me=De[1],Ye=ks(Me),je=ks(ye),Qe=jn(T,Ye),vt=jn(B,je),pe=L({},I),he=Qe.x-vt.x+Be,we=Qe.y-vt.y+Te,J=Ct(he,we),Ee=Ct(he,we,Q),H=jn(T,["t","l"]),U=jn(B,["t","l"]),Ce=jn(T,["b","r"]),We=jn(B,["b","r"]),Ke=I.overflow||{},ot=Ke.adjustX,cn=Ke.adjustY,Bt=Ke.shiftX,$t=Ke.shiftY,Ue=function(St){return typeof St=="boolean"?St:St>=0},zt,Pt,Je,jt;Ir();var un=Ue(cn),dn=je[0]===Ye[0];if(un&&je[0]==="t"&&(Pt>ce.bottom||g.current.bt)){var It=we;dn?It-=ee-ue:It=H.y-We.y-Te;var In=Ct(he,It),qt=Ct(he,It,Q);In>J||In===J&&(!ve||qt>=Ee)?(g.current.bt=!0,we=It,Te=-Te,pe.points=[Jt(je,0),Jt(Ye,0)]):g.current.bt=!1}if(un&&je[0]==="b"&&(zt<ce.top||g.current.tb)){var Ht=we;dn?Ht+=ee-ue:Ht=Ce.y-U.y-Te;var at=Ct(he,Ht),rr=Ct(he,Ht,Q);at>J||at===J&&(!ve||rr>=Ee)?(g.current.tb=!0,we=Ht,Te=-Te,pe.points=[Jt(je,0),Jt(Ye,0)]):g.current.tb=!1}var Mn=Ue(ot),fn=je[1]===Ye[1];if(Mn&&je[1]==="l"&&(jt>ce.right||g.current.rl)){var ht=he;fn?ht-=q-G:ht=H.x-We.x-Be;var Qt=Ct(ht,we),or=Ct(ht,we,Q);Qt>J||Qt===J&&(!ve||or>=Ee)?(g.current.rl=!0,he=ht,Be=-Be,pe.points=[Jt(je,1),Jt(Ye,1)]):g.current.rl=!1}if(Mn&&je[1]==="r"&&(Je<ce.left||g.current.lr)){var Ft=he;fn?Ft+=q-G:Ft=Ce.x-U.x-Be;var Rn=Ct(Ft,we),Tn=Ct(Ft,we,Q);Rn>J||Rn===J&&(!ve||Tn>=Ee)?(g.current.lr=!0,he=Ft,Be=-Be,pe.points=[Jt(je,1),Jt(Ye,1)]):g.current.lr=!1}Ir();var lt=Bt===!0?0:Bt;typeof lt=="number"&&(Je<Q.left&&(he-=Je-Q.left-Be,T.x+G<Q.left+lt&&(he+=T.x-Q.left+G-lt)),jt>Q.right&&(he-=jt-Q.right-Be,T.x>Q.right-lt&&(he+=T.x-Q.right+lt)));var Mt=$t===!0?0:$t;typeof Mt=="number"&&(zt<Q.top&&(we-=zt-Q.top-Te,T.y+ue<Q.top+Mt&&(we+=T.y-Q.top+ue-Mt)),Pt>Q.bottom&&(we-=Pt-Q.bottom-Te,T.y>Q.bottom-Mt&&(we+=T.y-Q.bottom+Mt)));var vn=B.x+he,Nn=vn+q,Rt=B.y+we,Wt=Rt+ee,mn=T.x,Zt=mn+G,Tt=T.y,ar=Tt+ue,_e=Math.max(vn,mn),be=Math.min(Nn,Zt),$e=(_e+be)/2,Ze=$e-vn,et=Math.max(Rt,Tt),Nt=Math.min(Wt,ar),Lt=(et+Nt)/2,ir=Lt-Rt;i==null||i(t,pe);var Do=de.right-B.x-(he+B.width),Pr=de.bottom-B.y-(we+B.height);f({ready:!0,offsetX:he/ae,offsetY:we/ie,offsetR:Do/ae,offsetB:Pr/ie,arrowX:Ze/ae,arrowY:ir/ie,scaleX:ae,scaleY:ie,align:pe})}}),m=function(){d.current+=1;var b=d.current;Promise.resolve().then(function(){d.current===b&&p()})},S=function(){f(function(b){return L(L({},b),{},{ready:!1})})};return st(S,[r]),st(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,m]}function Xg(e,t,n,r,o){st(function(){if(e&&t&&n){let d=function(){r(),o()};var a=t,i=n,l=ja(a),c=ja(i),u=Or(i),f=new Set([u].concat(Ge(l),Ge(c)));return f.forEach(function(v){v.addEventListener("scroll",d,{passive:!0})}),u.addEventListener("resize",d,{passive:!0}),r(),function(){f.forEach(function(v){v.removeEventListener("scroll",d),u.removeEventListener("resize",d)})}}},[e,t,n])}function Gg(e,t,n,r,o,a,i,l){var c=s.useRef(e),u=s.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),s.useEffect(function(){var f=xt(function(){u.current=!1});return function(){xt.cancel(f)}},[e]),s.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){var P=!1,A=function(R){var I=R.target;P=i(I)},_=function(R){var I=R.target;!u.current&&c.current&&!P&&!i(I)&&l(!1)};return[A,_]},d=f(),v=j(d,2),g=v[0],h=v[1],p=f(),m=j(p,2),S=m[0],y=m[1],b=Or(r);b.addEventListener("mousedown",g,!0),b.addEventListener("click",h,!0),b.addEventListener("contextmenu",h,!0);var C=Da(n);if(C&&(C.addEventListener("mousedown",S,!0),C.addEventListener("click",y,!0),C.addEventListener("contextmenu",y,!0)),process.env.NODE_ENV!=="production"){var E,x,w=n==null||(E=n.getRootNode)===null||E===void 0?void 0:E.call(n),O=(x=r.getRootNode)===null||x===void 0?void 0:x.call(r);Gn(w===O,"trigger element and popup element should in same shadow root.")}return function(){b.removeEventListener("mousedown",g,!0),b.removeEventListener("click",h,!0),b.removeEventListener("contextmenu",h,!0),C&&(C.removeEventListener("mousedown",S,!0),C.removeEventListener("click",y,!0),C.removeEventListener("contextmenu",y,!0))}}},[t,n,r,o,a])}var Yg=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function qg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ui,t=s.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,f=n.hideAction,d=n.popupVisible,v=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,p=n.mouseEnterDelay,m=n.mouseLeaveDelay,S=m===void 0?.1:m,y=n.focusDelay,b=n.blurDelay,C=n.mask,E=n.maskClosable,x=E===void 0?!0:E,w=n.getPopupContainer,O=n.forceRender,M=n.autoDestroy,P=n.destroyPopupOnHide,A=n.popup,_=n.popupClassName,$=n.popupStyle,R=n.popupPlacement,I=n.builtinPlacements,N=I===void 0?{}:I,T=n.popupAlign,z=n.zIndex,B=n.stretch,W=n.getPopupClassNameFromAlign,te=n.fresh,V=n.alignPoint,oe=n.onPopupClick,X=n.onPopupAlign,le=n.arrow,re=n.popupMotion,ee=n.maskMotion,q=n.popupTransitionName,ue=n.popupAnimation,G=n.maskTransitionName,Z=n.maskAnimation,fe=n.className,Se=n.getTriggerDOMNode,D=Le(n,Yg),me=M||P||!1,ve=s.useState(!1),Ne=j(ve,2),Q=Ne[0],ge=Ne[1];st(function(){ge(Ig())},[]);var ce=s.useRef({}),de=s.useContext(Ms),ae=s.useMemo(function(){return{registerSubPopup:function(ne,ze){ce.current[ne]=ze,de==null||de.registerSubPopup(ne,ze)}}},[de]),ie=Xm(),Fe=s.useState(null),nt=j(Fe,2),Ie=nt[0],pt=nt[1],Be=Et(function(F){eo(F)&&Ie!==F&&pt(F),de==null||de.registerSubPopup(ie,F)}),Te=s.useState(null),rt=j(Te,2),Ae=rt[0],dt=rt[1],ke=s.useRef(null),ft=Et(function(F){eo(F)&&Ae!==F&&(dt(F),ke.current=F)}),De=s.Children.only(i),ye=(De==null?void 0:De.props)||{},Me={},Ye=Et(function(F){var ne,ze,qe=Ae;return(qe==null?void 0:qe.contains(F))||((ne=Da(qe))===null||ne===void 0?void 0:ne.host)===F||F===qe||(Ie==null?void 0:Ie.contains(F))||((ze=Da(Ie))===null||ze===void 0?void 0:ze.host)===F||F===Ie||Object.values(ce.current).some(function(He){return(He==null?void 0:He.contains(F))||F===He})}),je=Ts(a,re,ue,q),Qe=Ts(a,ee,Z,G),vt=s.useState(v||!1),pe=j(vt,2),he=pe[0],we=pe[1],J=d??he,Ee=Et(function(F){d===void 0&&we(F)});st(function(){we(d||!1)},[d]);var H=s.useRef(J);H.current=J;var U=s.useRef([]);U.current=[];var Ce=Et(function(F){var ne;Ee(F),((ne=U.current[U.current.length-1])!==null&&ne!==void 0?ne:J)!==F&&(U.current.push(F),g==null||g(F))}),We=s.useRef(),Ke=function(){clearTimeout(We.current)},ot=function(ne){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ke(),ze===0?Ce(ne):We.current=setTimeout(function(){Ce(ne)},ze*1e3)};s.useEffect(function(){return Ke},[]);var cn=s.useState(!1),Bt=j(cn,2),$t=Bt[0],Ue=Bt[1];st(function(F){(!F||J)&&Ue(!0)},[J]);var zt=s.useState(null),Pt=j(zt,2),Je=Pt[0],jt=Pt[1],un=s.useState([0,0]),dn=j(un,2),It=dn[0],In=dn[1],qt=function(ne){In([ne.clientX,ne.clientY])},Ht=Ug(J,Ie,V?It:Ae,R,N,T,X),at=j(Ht,11),rr=at[0],Mn=at[1],fn=at[2],ht=at[3],Qt=at[4],or=at[5],Ft=at[6],Rn=at[7],Tn=at[8],lt=at[9],Mt=at[10],vn=Wg(Q,c,u,f),Nn=j(vn,2),Rt=Nn[0],Wt=Nn[1],mn=Rt.has("click"),Zt=Wt.has("click")||Wt.has("contextMenu"),Tt=Et(function(){$t||Mt()}),ar=function(){H.current&&V&&Zt&&ot(!1)};Xg(J,Ae,Ie,Tt,ar),st(function(){Tt()},[It,R]),st(function(){J&&!(N!=null&&N[R])&&Tt()},[JSON.stringify(T)]);var _e=s.useMemo(function(){var F=Kg(N,a,lt,V);return se(F,W==null?void 0:W(lt))},[lt,W,N,a,V]);s.useImperativeHandle(r,function(){return{nativeElement:ke.current,forceAlign:Tt}});var be=s.useState(0),$e=j(be,2),Ze=$e[0],et=$e[1],Nt=s.useState(0),Lt=j(Nt,2),ir=Lt[0],Do=Lt[1],Pr=function(){if(B&&Ae){var ne=Ae.getBoundingClientRect();et(ne.width),Do(ne.height)}},Ct=function(){Pr(),Tt()},Ir=function(ne){Ue(!1),Mt(),h==null||h(ne)},Mr=function(){return new Promise(function(ne){Pr(),jt(function(){return ne})})};st(function(){Je&&(Mt(),Je(),jt(null))},[Je]);function St(F,ne,ze,qe){Me[F]=function(He){var _r;qe==null||qe(He),ot(ne,ze);for(var zo=arguments.length,$i=new Array(zo>1?zo-1:0),Ar=1;Ar<zo;Ar++)$i[Ar-1]=arguments[Ar];(_r=ye[F])===null||_r===void 0||_r.call.apply(_r,[ye,He].concat($i))}}(mn||Zt)&&(Me.onClick=function(F){var ne;H.current&&Zt?ot(!1):!H.current&&mn&&(qt(F),ot(!0));for(var ze=arguments.length,qe=new Array(ze>1?ze-1:0),He=1;He<ze;He++)qe[He-1]=arguments[He];(ne=ye.onClick)===null||ne===void 0||ne.call.apply(ne,[ye,F].concat(qe))}),Gg(J,Zt,Ae,Ie,C,x,Ye,ot);var _n=Rt.has("hover"),Rr=Wt.has("hover"),An,Tr;_n&&(St("onMouseEnter",!0,p,function(F){qt(F)}),St("onPointerEnter",!0,p,function(F){qt(F)}),An=function(){(J||$t)&&ot(!0,p)},V&&(Me.onMouseMove=function(F){var ne;(ne=ye.onMouseMove)===null||ne===void 0||ne.call(ye,F)})),Rr&&(St("onMouseLeave",!1,S),St("onPointerLeave",!1,S),Tr=function(){ot(!1,S)}),Rt.has("focus")&&St("onFocus",!0,y),Wt.has("focus")&&St("onBlur",!1,b),Rt.has("contextMenu")&&(Me.onContextMenu=function(F){var ne;H.current&&Wt.has("contextMenu")?ot(!1):(qt(F),ot(!0)),F.preventDefault();for(var ze=arguments.length,qe=new Array(ze>1?ze-1:0),He=1;He<ze;He++)qe[He-1]=arguments[He];(ne=ye.onContextMenu)===null||ne===void 0||ne.call.apply(ne,[ye,F].concat(qe))}),fe&&(Me.className=se(ye.className,fe));var sr=L(L({},ye),Me),Nr={},jo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];jo.forEach(function(F){D[F]&&(Nr[F]=function(){for(var ne,ze=arguments.length,qe=new Array(ze),He=0;He<ze;He++)qe[He]=arguments[He];(ne=sr[F])===null||ne===void 0||ne.call.apply(ne,[sr].concat(qe)),D[F].apply(D,qe)})});var Lo=s.cloneElement(De,L(L({},sr),Nr)),Bo={x:or,y:Ft},fu=le?L({},le!==!0?le:{}):null;return s.createElement(s.Fragment,null,s.createElement(Qn,{disabled:!J,ref:ft,onResize:Ct},s.createElement(Dc,{getTriggerDOMNode:Se},Lo)),s.createElement(Ms.Provider,{value:ae},s.createElement(kc,{portal:e,ref:Be,prefixCls:a,popup:A,className:se(_,_e),style:$,target:Ae,onMouseEnter:An,onMouseLeave:Tr,onPointerEnter:An,zIndex:z,open:J,keepDom:$t,fresh:te,onClick:oe,mask:C,motion:je,maskMotion:Qe,onVisibleChanged:Ir,onPrepare:Mr,forceRender:O,autoDestroy:me,getPopupContainer:w,align:lt,arrow:fu,arrowPos:Bo,ready:rr,offsetX:Mn,offsetY:fn,offsetR:ht,offsetB:Qt,onAlign:Tt,stretch:B,targetWidth:Ze/Rn,targetHeight:ir/Tn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gi=qg(ui);var Qg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Zg=Qg;var jc=function(t,n){return s.createElement(xr,on({},t,{ref:n,icon:Zg}))};process.env.NODE_ENV!=="production"&&(jc.displayName="DownOutlined");const Jg=s.forwardRef(jc);function Lc(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return s.createElement("div",{className:se("".concat(n,"-content"),a),style:i},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Ln={shiftX:64,adjustY:1},Bn={adjustX:1,shiftY:!0},wt=[0,0],ep={left:{points:["cr","cl"],overflow:Bn,offset:[-4,0],targetOffset:wt},right:{points:["cl","cr"],overflow:Bn,offset:[4,0],targetOffset:wt},top:{points:["bc","tc"],overflow:Ln,offset:[0,-4],targetOffset:wt},bottom:{points:["tc","bc"],overflow:Ln,offset:[0,4],targetOffset:wt},topLeft:{points:["bl","tl"],overflow:Ln,offset:[0,-4],targetOffset:wt},leftTop:{points:["tr","tl"],overflow:Bn,offset:[-4,0],targetOffset:wt},topRight:{points:["br","tr"],overflow:Ln,offset:[0,-4],targetOffset:wt},rightTop:{points:["tl","tr"],overflow:Bn,offset:[4,0],targetOffset:wt},bottomRight:{points:["tr","br"],overflow:Ln,offset:[0,4],targetOffset:wt},rightBottom:{points:["bl","br"],overflow:Bn,offset:[4,0],targetOffset:wt},bottomLeft:{points:["tl","bl"],overflow:Ln,offset:[0,4],targetOffset:wt},leftBottom:{points:["br","bl"],overflow:Bn,offset:[-4,0],targetOffset:wt}},tp=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],np=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,l=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,f=t.overlayStyle,d=t.prefixCls,v=d===void 0?"rc-tooltip":d,g=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,m=t.transitionName,S=t.animation,y=t.motion,b=t.placement,C=b===void 0?"right":b,E=t.align,x=E===void 0?{}:E,w=t.destroyTooltipOnHide,O=w===void 0?!1:w,M=t.defaultVisible,P=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,$=t.id,R=t.showArrow,I=R===void 0?!0:R,N=Le(t,tp),T=k.useRef(null);k.useImperativeHandle(n,function(){return T.current});var z=L({},N);"visible"in t&&(z.popupVisible=t.visible);var B=function(){return s.createElement(Lc,{key:"content",prefixCls:v,id:$,overlayInnerStyle:A},_)};return s.createElement(gi,Pe({popupClassName:r,prefixCls:v,popup:B,action:a,builtinPlacements:ep,popupPlacement:C,ref:T,popupAlign:x,getPopupContainer:P,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:m,popupAnimation:S,popupMotion:y,defaultPopupVisible:M,autoDestroy:O,mouseLeaveDelay:u,popupStyle:f,mouseEnterDelay:l,arrow:I},z),g)};const rp=k.forwardRef(np),Bc=8;function pi(e){const t=Bc,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Kr(e,t){return e?t:{}}function zc(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:l,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:u,arrowDistance:f=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:v,dropdownArrowOffset:g}=pi({contentRadius:c,limitVerticalRadius:u});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},vv(r,o,a,l,i)),{"&:before":{background:l}})]},Kr(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),Kr(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),Kr(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:v},[`&-placement-leftBottom ${n}-arrow`]:{bottom:v}})),Kr(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:v},[`&-placement-rightBottom ${n}-arrow`]:{bottom:v}}))}}function op(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.dropdownArrowOffset*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Ds={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},ap={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ip=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Hc(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,c={};return Object.keys(Ds).forEach(u=>{const f=r&&ap[u]||Ds[u],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[u]=d,ip.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=l+o;break}const v=pi({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-v.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":d.offset[0]=v.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":d.offset[1]=-v.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":d.offset[1]=v.dropdownArrowOffset+l;break}d.overflow=op(u,v,t,n),i&&(d.htmlRegion="visibleFirst")}),c}const sp=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xo(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${u/2}px ${f}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,Bc)}},[`${t}-content`]:{position:"relative"}}),Cv(e,(v,g)=>{let{darkColor:h}=g;return{[`&${t}-${v}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},zc(rn(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Fc=(e,t)=>Oo("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:l}=r,c=rn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:l>4?4:l});return[sp(c),vi(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return{zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),lp=io.map(e=>`${e}-inverse`);function cp(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ge(lp),Ge(io)).includes(e):io.includes(e)}function Wc(e,t){const n=cp(t),r=se({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const up=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=s.useContext(gt),c=l("tooltip",t),[u,f]=Fc(c,!0),d=Wc(c,a),v=d.arrowStyle,g=Object.assign(Object.assign({},i),d.overlayStyle),h=se(f,c,`${c}-pure`,`${c}-placement-${r}`,n,d.className);return u(s.createElement("div",{className:h,style:v},s.createElement("div",{className:`${c}-arrow`}),s.createElement(Lc,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:g}),o)))},dp=up;var fp=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hi=s.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:l,color:c,overlayInnerStyle:u,children:f,afterOpenChange:d,afterVisibleChange:v,destroyTooltipOnHide:g,arrow:h=!0,title:p,overlay:m,builtinPlacements:S,arrowPointAtCenter:y=!1,autoAdjustOverflow:b=!0}=e,C=!!h,[,E]=Jn(),{getPopupContainer:x,getPrefixCls:w,direction:O}=s.useContext(gt),M=$n("Tooltip"),P=s.useRef(null),A=()=>{var ae;(ae=P.current)===null||ae===void 0||ae.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:A,forcePopupAlign:()=>{M.deprecated(!1,"forcePopupAlign","forceAlign"),A()}})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(ae=>{let[ie,Fe]=ae;M.deprecated(!(ie in e),ie,Fe)}),process.env.NODE_ENV!=="production"&&M(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&M(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[_,$]=Sn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=!p&&!m&&p!==0,I=ae=>{var ie,Fe;$(R?!1:ae),R||((ie=e.onOpenChange)===null||ie===void 0||ie.call(e,ae),(Fe=e.onVisibleChange)===null||Fe===void 0||Fe.call(e,ae))},N=s.useMemo(()=>{var ae,ie;let Fe=y;return typeof h=="object"&&(Fe=(ie=(ae=h.pointAtCenter)!==null&&ae!==void 0?ae:h.arrowPointAtCenter)!==null&&ie!==void 0?ie:y),S||Hc({arrowPointAtCenter:Fe,autoAdjustOverflow:b,arrowWidth:C?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[y,h,S,E]),T=s.useMemo(()=>p===0?p:m||p||"",[m,p]),z=s.createElement(Ec,null,typeof T=="function"?T():T),{getPopupContainer:B,placement:W="top",mouseEnterDelay:te=.1,mouseLeaveDelay:V=.1,overlayStyle:oe,rootClassName:X}=e,le=fp(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),re=w("tooltip",o),ee=w(),q=e["data-popover-inject"];let ue=_;!("open"in e)&&!("visible"in e)&&R&&(ue=!1);const G=an(f)&&!Nm(f)?f:s.createElement("span",null,f),Z=G.props,fe=!Z.className||typeof Z.className=="string"?se(Z.className,a||`${re}-open`):Z.className,[Se,D]=Fc(re,!q),me=Wc(re,c),ve=me.arrowStyle,Ne=Object.assign(Object.assign({},u),me.overlayStyle),Q=se(l,{[`${re}-rtl`]:O==="rtl"},me.className,X,D),[ge,ce]=mi("Tooltip",le.zIndex),de=s.createElement(rp,Object.assign({},le,{zIndex:q?le.zIndex:ge,showArrow:C,placement:W,mouseEnterDelay:te,mouseLeaveDelay:V,prefixCls:re,overlayClassName:Q,overlayStyle:Object.assign(Object.assign({},ve),oe),getTooltipContainer:B||i||x,ref:P,builtinPlacements:N,overlay:z,visible:ue,onVisibleChange:I,afterVisibleChange:d??v,overlayInnerStyle:Ne,arrowContent:s.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:Dm(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ue?er(G,{className:fe}):G);return Se(s.createElement(di.Provider,{value:ce},de))});process.env.NODE_ENV!=="production"&&(hi.displayName="Tooltip");hi._InternalPanelDoNotUseOrYouWillBeFired=dp;const vp=hi;var mp={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"};const gp=mp;var Vc=function(t,n){return s.createElement(xr,on({},t,{ref:n,icon:gp}))};process.env.NODE_ENV!=="production"&&(Vc.displayName="RightOutlined");const La=s.forwardRef(Vc);var pp=K.ESC,hp=K.TAB;function bp(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=s.useRef(!1),l=function(){if(t){var d,v;(d=n.current)===null||d===void 0||(v=d.focus)===null||v===void 0||v.call(d),r==null||r(!1)}},c=function(){var d;return(d=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(d){switch(d.keyCode){case pp:l();break;case hp:{var v=!1;i.current||(v=c()),v?d.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&xt(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var yp=k.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=k.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=go(t,a==null?void 0:a.ref);return k.createElement(k.Fragment,null,r&&k.createElement("div",{className:"".concat(o,"-arrow")}),k.cloneElement(a,{ref:xn(a)?i:void 0}))}),zn={adjustX:1,adjustY:1},Hn=[0,0],Cp={topLeft:{points:["bl","tl"],overflow:zn,offset:[0,-4],targetOffset:Hn},top:{points:["bc","tc"],overflow:zn,offset:[0,-4],targetOffset:Hn},topRight:{points:["br","tr"],overflow:zn,offset:[0,-4],targetOffset:Hn},bottomLeft:{points:["tl","bl"],overflow:zn,offset:[0,4],targetOffset:Hn},bottom:{points:["tc","bc"],overflow:zn,offset:[0,4],targetOffset:Hn},bottomRight:{points:["tr","br"],overflow:zn,offset:[0,4],targetOffset:Hn}},Sp=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function wp(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,c=e.animation,u=e.align,f=e.placement,d=f===void 0?"bottomLeft":f,v=e.placements,g=v===void 0?Cp:v,h=e.getPopupContainer,p=e.showAction,m=e.hideAction,S=e.overlayClassName,y=e.overlayStyle,b=e.visible,C=e.trigger,E=C===void 0?["hover"]:C,x=e.autoFocus,w=e.overlay,O=e.children,M=e.onVisibleChange,P=Le(e,Sp),A=k.useState(),_=j(A,2),$=_[0],R=_[1],I="visible"in e?b:$,N=k.useRef(null),T=k.useRef(null),z=k.useRef(null);k.useImperativeHandle(t,function(){return N.current});var B=function(q){R(q),M==null||M(q)};bp({visible:I,triggerRef:z,onVisibleChange:B,autoFocus:x,overlayRef:T});var W=function(q){var ue=e.onOverlayClick;R(!1),ue&&ue(q)},te=function(){return k.createElement(yp,{ref:T,overlay:w,prefixCls:i,arrow:o})},V=function(){return typeof w=="function"?te:te()},oe=function(){var q=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!ue},X=function(){var q=e.openClassName;return q!==void 0?q:"".concat(i,"-open")},le=k.cloneElement(O,{className:se((n=O.props)===null||n===void 0?void 0:n.className,I&&X()),ref:xn(O)?go(z,O.ref):void 0}),re=m;return!re&&E.indexOf("contextMenu")!==-1&&(re=["click"]),k.createElement(gi,Pe({builtinPlacements:g},P,{prefixCls:i,ref:N,popupClassName:se(S,Y({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:E,showAction:p,hideAction:re,popupPlacement:d,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:I,stretch:oe()?"minWidth":"",popup:V(),onPopupVisibleChange:B,onPopupClick:W,getPopupContainer:h}),le)}const Ep=k.forwardRef(wp);var Kc=s.createContext(null);function bi(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Uc(e){var t=s.useContext(Kc);return bi(t,e)}var xp=["children","locked"],Dt=s.createContext(null);function Op(e,t){var n=L({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function wr(e){var t=e.children,n=e.locked,r=Le(e,xp),o=s.useContext(Dt),a=mo(function(){return Op(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!Za(i[1],l[1],!0))});return s.createElement(Dt.Provider,{value:a},t)}var $p=[],Xc=s.createContext(null);function Ro(){return s.useContext(Xc)}var Gc=s.createContext($p);function tr(e){var t=s.useContext(Gc);return s.useMemo(function(){return e!==void 0?[].concat(Ge(t),[e]):t},[t,e])}var Yc=s.createContext(null),yi=s.createContext({});function js(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(wc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Pp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ge(e.querySelectorAll("*")).filter(function(r){return js(r,t)});return js(e,t)&&n.unshift(e),n}var Ba=K.LEFT,za=K.RIGHT,Ha=K.UP,Zr=K.DOWN,Jr=K.ENTER,qc=K.ESC,dr=K.HOME,fr=K.END,Ls=[Ha,Zr,Ba,za];function Ip(e,t,n,r){var o,a,i,l,c="prev",u="next",f="children",d="parent";if(e==="inline"&&r===Jr)return{inlineTrigger:!0};var v=(o={},Y(o,Ha,c),Y(o,Zr,u),o),g=(a={},Y(a,Ba,n?u:c),Y(a,za,n?c:u),Y(a,Zr,f),Y(a,Jr,f),a),h=(i={},Y(i,Ha,c),Y(i,Zr,u),Y(i,Jr,f),Y(i,qc,d),Y(i,Ba,n?f:d),Y(i,za,n?d:f),i),p={inline:v,horizontal:g,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},m=(l=p["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(m){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function Mp(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Rp(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Qc(e,t){var n=Pp(e,!0);return n.filter(function(r){return t.has(r)})}function Bs(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Qc(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}function Tp(e,t,n,r,o,a,i,l,c,u){var f=s.useRef(),d=s.useRef();d.current=t;var v=function(){xt.cancel(f.current)};return s.useEffect(function(){return function(){v()}},[]),function(g){var h=g.which;if([].concat(Ls,[Jr,qc,dr,fr]).includes(h)){var p,m,S,y=function(){p=new Set,m=new Map,S=new Map;var I=a();return I.forEach(function(N){var T=document.querySelector("[data-menu-id='".concat(bi(r,N),"']"));T&&(p.add(T),S.set(T,N),m.set(N,T))}),p};y();var b=m.get(t),C=Rp(b,p),E=S.get(C),x=Ip(e,i(E,!0).length===1,n,h);if(!x&&h!==dr&&h!==fr)return;(Ls.includes(h)||[dr,fr].includes(h))&&g.preventDefault();var w=function(I){if(I){var N=I,T=I.querySelector("a");T!=null&&T.getAttribute("href")&&(N=T);var z=S.get(I);l(z),v(),f.current=xt(function(){d.current===z&&N.focus()})}};if([dr,fr].includes(h)||x.sibling||!C){var O;!C||e==="inline"?O=o.current:O=Mp(C);var M,P=Qc(O,p);h===dr?M=P[0]:h===fr?M=P[P.length-1]:M=Bs(O,p,C,x.offset),w(M)}else if(x.inlineTrigger)c(E);else if(x.offset>0)c(E,!0),v(),f.current=xt(function(){y();var R=C.getAttribute("aria-controls"),I=document.getElementById(R),N=Bs(I,p);w(N)},5);else if(x.offset<0){var A=i(E,!0),_=A[A.length-2],$=m.get(_);c(_,!1),w($)}}u==null||u(g)}}function Np(e){Promise.resolve().then(e)}var Ci="__RC_UTIL_PATH_SPLIT__",zs=function(t){return t.join(Ci)},_p=function(t){return t.split(Ci)},Fa="rc-menu-more";function Ap(){var e=s.useState({}),t=j(e,2),n=t[1],r=k.useRef(new Map),o=k.useRef(new Map),a=s.useState([]),i=j(a,2),l=i[0],c=i[1],u=k.useRef(0),f=k.useRef(!1),d=function(){f.current||n({})},v=k.useCallback(function(b,C){process.env.NODE_ENV!=="production"&&mt(!r.current.has(b),"Duplicated key '".concat(b,"' used in Menu by path [").concat(C.join(" > "),"]"));var E=zs(C);o.current.set(E,b),r.current.set(b,E),u.current+=1;var x=u.current;Np(function(){x===u.current&&d()})},[]),g=k.useCallback(function(b,C){var E=zs(C);o.current.delete(E),r.current.delete(b)},[]),h=k.useCallback(function(b){c(b)},[]),p=k.useCallback(function(b,C){var E=r.current.get(b)||"",x=_p(E);return C&&l.includes(x[0])&&x.unshift(Fa),x},[l]),m=k.useCallback(function(b,C){return b.some(function(E){var x=p(E,!0);return x.includes(C)})},[p]),S=function(){var C=Ge(r.current.keys());return l.length&&C.push(Fa),C},y=k.useCallback(function(b){var C="".concat(r.current.get(b)).concat(Ci),E=new Set;return Ge(o.current.keys()).forEach(function(x){x.startsWith(C)&&E.add(o.current.get(x))}),E},[]);return s.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:v,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:m,getKeyPath:p,getKeys:S,getSubPathKeys:y}}function vr(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var kp=Math.random().toFixed(5).toString().slice(2),Hs=0;function Dp(e){var t=Sn(e,{value:e}),n=j(t,2),r=n[0],o=n[1];return s.useEffect(function(){Hs+=1;var a=process.env.NODE_ENV==="test"?"test":"".concat(kp,"-").concat(Hs);o("rc-menu-uuid-".concat(a))},[]),r}function Zc(e,t,n,r){var o=s.useContext(Dt),a=o.activeKey,i=o.onActive,l=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),i(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),c}function Jc(e){var t=s.useContext(Dt),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function eu(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=s.createElement(t,L({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var jp=["item"];function co(e){var t=e.item,n=Le(e,jp);return Object.defineProperty(n,"item",{get:function(){return mt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Lp=["title","attribute","elementRef"],Bp=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],zp=["active"],Hp=function(e){ho(n,e);var t=bo(n);function n(){return sn(this,n),t.apply(this,arguments)}return ln(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,l=o.elementRef,c=Le(o,Lp),u=On(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return mt(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(Yt.Item,Pe({},i,{title:typeof a=="string"?a:void 0},u,{ref:l}))}}]),n}(s.Component),Fp=s.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey,i=e.warnKey,l=e.disabled,c=e.itemIcon,u=e.children,f=e.role,d=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,p=e.onFocus,m=Le(e,Bp),S=Uc(a),y=s.useContext(Dt),b=y.prefixCls,C=y.onItemClick,E=y.disabled,x=y.overflowDisabled,w=y.itemIcon,O=y.selectedKeys,M=y.onActive,P=s.useContext(yi),A=P._internalRenderMenuItem,_="".concat(b,"-item"),$=s.useRef(),R=s.useRef(),I=E||l,N=Er(t,R),T=tr(a);process.env.NODE_ENV!=="production"&&i&&mt(!1,"MenuItem should not leave undefined `key`.");var z=function(Z){return{key:a,keyPath:Ge(T).reverse(),item:$.current,domEvent:Z}},B=c||w,W=Zc(a,I,d,v),te=W.active,V=Le(W,zp),oe=O.includes(a),X=Jc(T.length),le=function(Z){if(!I){var fe=z(Z);g==null||g(co(fe)),C(fe)}},re=function(Z){if(h==null||h(Z),Z.which===K.ENTER){var fe=z(Z);g==null||g(co(fe)),C(fe)}},ee=function(Z){M(a),p==null||p(Z)},q={};e.role==="option"&&(q["aria-selected"]=oe);var ue=s.createElement(Hp,Pe({ref:$,elementRef:N,role:f===null?"none":f||"menuitem",tabIndex:l?null:-1,"data-menu-id":x&&S?null:S},m,V,q,{component:"li","aria-disabled":l,style:L(L({},X),r),className:se(_,(n={},Y(n,"".concat(_,"-active"),te),Y(n,"".concat(_,"-selected"),oe),Y(n,"".concat(_,"-disabled"),I),n),o),onClick:le,onKeyDown:re,onFocus:ee}),u,s.createElement(eu,{props:L(L({},e),{},{isSelected:oe}),icon:B}));return A&&(ue=A(ue,e,{selected:oe})),ue});function Wp(e,t){var n=e.eventKey,r=Ro(),o=tr(n);return s.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:s.createElement(Fp,Pe({},e,{ref:t}))}const To=s.forwardRef(Wp);var Vp=["className","children"],Kp=function(t,n){var r=t.className,o=t.children,a=Le(t,Vp),i=s.useContext(Dt),l=i.prefixCls,c=i.mode,u=i.rtl;return s.createElement("ul",Pe({className:se(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Si=s.forwardRef(Kp);Si.displayName="SubMenuList";function wi(e,t){return nn(e).map(function(n,r){if(s.isValidElement(n)){var o,a,i=n.key,l=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,c=l==null;c&&(l="tmp_key-".concat([].concat(Ge(t),[r]).join("-")));var u={key:l,eventKey:l};return process.env.NODE_ENV!=="production"&&c&&(u.warnKey=!0),s.cloneElement(n,u)}return n})}var it={adjustX:1,adjustY:1},Up={topLeft:{points:["bl","tl"],overflow:it},topRight:{points:["br","tr"],overflow:it},bottomLeft:{points:["tl","bl"],overflow:it},bottomRight:{points:["tr","br"],overflow:it},leftTop:{points:["tr","tl"],overflow:it},leftBottom:{points:["br","bl"],overflow:it},rightTop:{points:["tl","tr"],overflow:it},rightBottom:{points:["bl","br"],overflow:it}},Xp={topLeft:{points:["bl","tl"],overflow:it},topRight:{points:["br","tr"],overflow:it},bottomLeft:{points:["tl","bl"],overflow:it},bottomRight:{points:["tr","br"],overflow:it},rightTop:{points:["tr","tl"],overflow:it},rightBottom:{points:["br","bl"],overflow:it},leftTop:{points:["tl","tr"],overflow:it},leftBottom:{points:["bl","br"],overflow:it}};function tu(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Gp={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Yp(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,f=e.onVisibleChange,d=s.useContext(Dt),v=d.getPopupContainer,g=d.rtl,h=d.subMenuOpenDelay,p=d.subMenuCloseDelay,m=d.builtinPlacements,S=d.triggerSubMenuAction,y=d.forceSubMenuRender,b=d.rootClassName,C=d.motion,E=d.defaultMotions,x=s.useState(!1),w=j(x,2),O=w[0],M=w[1],P=L(g?L({},Xp):L({},Up),m),A=Gp[u],_=tu(u,C,E),$=s.useRef(_);u!=="inline"&&($.current=_);var R=L(L({},$.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=s.useRef();return s.useEffect(function(){return I.current=xt(function(){M(n)}),function(){xt.cancel(I.current)}},[n]),s.createElement(gi,{prefixCls:t,popupClassName:se("".concat(t,"-popup"),Y({},"".concat(t,"-rtl"),g),i,b),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:P,popupPlacement:A,popupVisible:O,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[S],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:f,forceRender:y,popupMotion:R,fresh:!0},r)}function qp(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=s.useContext(Dt),l=i.prefixCls,c=i.forceSubMenuRender,u=i.motion,f=i.defaultMotions,d=i.mode,v=s.useRef(!1);v.current=d===a;var g=s.useState(!v.current),h=j(g,2),p=h[0],m=h[1],S=v.current?n:!1;s.useEffect(function(){v.current&&m(!1)},[d]);var y=L({},tu(a,u,f));r.length>1&&(y.motionAppear=!1);var b=y.onVisibleChanged;return y.onVisibleChanged=function(C){return!v.current&&!C&&m(!0),b==null?void 0:b(C)},p?null:s.createElement(wr,{mode:a,locked:!v.current},s.createElement($o,Pe({visible:S},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var E=C.className,x=C.style;return s.createElement(Si,{id:t,className:E,style:x},o)}))}var Qp=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Zp=["active"],Jp=function(t){var n,r=t.style,o=t.className,a=t.title,i=t.eventKey,l=t.warnKey,c=t.disabled,u=t.internalPopupClose,f=t.children,d=t.itemIcon,v=t.expandIcon,g=t.popupClassName,h=t.popupOffset,p=t.popupStyle,m=t.onClick,S=t.onMouseEnter,y=t.onMouseLeave,b=t.onTitleClick,C=t.onTitleMouseEnter,E=t.onTitleMouseLeave,x=Le(t,Qp),w=Uc(i),O=s.useContext(Dt),M=O.prefixCls,P=O.mode,A=O.openKeys,_=O.disabled,$=O.overflowDisabled,R=O.activeKey,I=O.selectedKeys,N=O.itemIcon,T=O.expandIcon,z=O.onItemClick,B=O.onOpenChange,W=O.onActive,te=s.useContext(yi),V=te._internalRenderSubMenuItem,oe=s.useContext(Yc),X=oe.isSubPathKey,le=tr(),re="".concat(M,"-submenu"),ee=_||c,q=s.useRef(),ue=s.useRef();process.env.NODE_ENV!=="production"&&l&&mt(!1,"SubMenu should not leave undefined `key`.");var G=d??N,Z=v??T,fe=A.includes(i),Se=!$&&fe,D=X(I,i),me=Zc(i,ee,C,E),ve=me.active,Ne=Le(me,Zp),Q=s.useState(!1),ge=j(Q,2),ce=ge[0],de=ge[1],ae=function(Me){ee||de(Me)},ie=function(Me){ae(!0),S==null||S({key:i,domEvent:Me})},Fe=function(Me){ae(!1),y==null||y({key:i,domEvent:Me})},nt=s.useMemo(function(){return ve||(P!=="inline"?ce||X([R],i):!1)},[P,ve,R,ce,i,X]),Ie=Jc(le.length),pt=function(Me){ee||(b==null||b({key:i,domEvent:Me}),P==="inline"&&B(i,!fe))},Be=vr(function(ye){m==null||m(co(ye)),z(ye)}),Te=function(Me){P!=="inline"&&B(i,Me)},rt=function(){W(i)},Ae=w&&"".concat(w,"-popup"),dt=s.createElement("div",Pe({role:"menuitem",style:Ie,className:"".concat(re,"-title"),tabIndex:ee?null:-1,ref:q,title:typeof a=="string"?a:null,"data-menu-id":$&&w?null:w,"aria-expanded":Se,"aria-haspopup":!0,"aria-controls":Ae,"aria-disabled":ee,onClick:pt,onFocus:rt},Ne),a,s.createElement(eu,{icon:P!=="horizontal"?Z:void 0,props:L(L({},t),{},{isOpen:Se,isSubMenu:!0})},s.createElement("i",{className:"".concat(re,"-arrow")}))),ke=s.useRef(P);if(P!=="inline"&&le.length>1?ke.current="vertical":ke.current=P,!$){var ft=ke.current;dt=s.createElement(Yp,{mode:ft,prefixCls:re,visible:!u&&Se&&P!=="inline",popupClassName:g,popupOffset:h,popupStyle:p,popup:s.createElement(wr,{mode:ft==="horizontal"?"vertical":ft},s.createElement(Si,{id:Ae,ref:ue},f)),disabled:ee,onVisibleChange:Te},dt)}var De=s.createElement(Yt.Item,Pe({role:"none"},x,{component:"li",style:r,className:se(re,"".concat(re,"-").concat(P),o,(n={},Y(n,"".concat(re,"-open"),Se),Y(n,"".concat(re,"-active"),nt),Y(n,"".concat(re,"-selected"),D),Y(n,"".concat(re,"-disabled"),ee),n)),onMouseEnter:ie,onMouseLeave:Fe}),dt,!$&&s.createElement(qp,{id:Ae,open:Se,keyPath:le},f));return V&&(De=V(De,t,{selected:D,active:nt,open:Se,disabled:ee})),s.createElement(wr,{onItemClick:Be,mode:P==="horizontal"?"vertical":P,itemIcon:G,expandIcon:Z},De)};function No(e){var t=e.eventKey,n=e.children,r=tr(t),o=wi(n,r),a=Ro();s.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var i;return a?i=o:i=s.createElement(Jp,e,o),s.createElement(Gc.Provider,{value:r},i)}var eh=["className","title","eventKey","children"],th=["children"],nh=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=Le(t,eh),i=s.useContext(Dt),l=i.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",Pe({role:"presentation"},a,{onClick:function(f){return f.stopPropagation()},className:se(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function _o(e){var t=e.children,n=Le(e,th),r=tr(n.eventKey),o=wi(t,r),a=Ro();return a?o:s.createElement(nh,On(n,["warnKey"]),o)}function Ei(e){var t=e.className,n=e.style,r=s.useContext(Dt),o=r.prefixCls,a=Ro();return a?null:s.createElement("li",{role:"separator",className:se("".concat(o,"-item-divider"),t),style:n})}var rh=["label","children","key","type"];function Wa(e){return(e||[]).map(function(t,n){if(t&&Ve(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,l=r.type,c=Le(r,rh),u=i??"tmp-".concat(n);return a||l==="group"?l==="group"?s.createElement(_o,Pe({key:u},c,{title:o}),Wa(a)):s.createElement(No,Pe({key:u},c,{title:o}),Wa(a)):l==="divider"?s.createElement(Ei,Pe({key:u},c)):s.createElement(To,Pe({key:u},c),o)}return null}).filter(function(t){return t})}function oh(e,t,n){var r=e;return t&&(r=Wa(t)),wi(r,n)}var ah=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Fn=[],ih=s.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,l=o.rootClassName,c=o.style,u=o.className,f=o.tabIndex,d=f===void 0?0:f,v=o.items,g=o.children,h=o.direction,p=o.id,m=o.mode,S=m===void 0?"vertical":m,y=o.inlineCollapsed,b=o.disabled,C=o.disabledOverflow,E=o.subMenuOpenDelay,x=E===void 0?.1:E,w=o.subMenuCloseDelay,O=w===void 0?.1:w,M=o.forceSubMenuRender,P=o.defaultOpenKeys,A=o.openKeys,_=o.activeKey,$=o.defaultActiveFirst,R=o.selectable,I=R===void 0?!0:R,N=o.multiple,T=N===void 0?!1:N,z=o.defaultSelectedKeys,B=o.selectedKeys,W=o.onSelect,te=o.onDeselect,V=o.inlineIndent,oe=V===void 0?24:V,X=o.motion,le=o.defaultMotions,re=o.triggerSubMenuAction,ee=re===void 0?"hover":re,q=o.builtinPlacements,ue=o.itemIcon,G=o.expandIcon,Z=o.overflowedIndicator,fe=Z===void 0?"...":Z,Se=o.overflowedIndicatorPopupClassName,D=o.getPopupContainer,me=o.onClick,ve=o.onOpenChange,Ne=o.onKeyDown,Q=o.openAnimation,ge=o.openTransitionName,ce=o._internalRenderMenuItem,de=o._internalRenderSubMenuItem,ae=Le(o,ah),ie=s.useMemo(function(){return oh(g,v,Fn)},[g,v]),Fe=s.useState(!1),nt=j(Fe,2),Ie=nt[0],pt=nt[1],Be=s.useRef(),Te=Dp(p),rt=h==="rtl";process.env.NODE_ENV!=="production"&&mt(!Q&&!ge,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ae=Sn(P,{value:A,postState:function(be){return be||Fn}}),dt=j(Ae,2),ke=dt[0],ft=dt[1],De=function(be){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ze(){ft(be),ve==null||ve(be)}$e?vo.flushSync(Ze):Ze()},ye=s.useState(ke),Me=j(ye,2),Ye=Me[0],je=Me[1],Qe=s.useRef(!1),vt=s.useMemo(function(){return(S==="inline"||S==="vertical")&&y?["vertical",y]:[S,!1]},[S,y]),pe=j(vt,2),he=pe[0],we=pe[1],J=he==="inline",Ee=s.useState(he),H=j(Ee,2),U=H[0],Ce=H[1],We=s.useState(we),Ke=j(We,2),ot=Ke[0],cn=Ke[1];s.useEffect(function(){Ce(he),cn(we),Qe.current&&(J?ft(Ye):De(Fn))},[he,we]);var Bt=s.useState(0),$t=j(Bt,2),Ue=$t[0],zt=$t[1],Pt=Ue>=ie.length-1||U!=="horizontal"||C;s.useEffect(function(){J&&je(ke)},[ke]),s.useEffect(function(){return Qe.current=!0,function(){Qe.current=!1}},[]);var Je=Ap(),jt=Je.registerPath,un=Je.unregisterPath,dn=Je.refreshOverflowKeys,It=Je.isSubPathKey,In=Je.getKeyPath,qt=Je.getKeys,Ht=Je.getSubPathKeys,at=s.useMemo(function(){return{registerPath:jt,unregisterPath:un}},[jt,un]),rr=s.useMemo(function(){return{isSubPathKey:It}},[It]);s.useEffect(function(){dn(Pt?Fn:ie.slice(Ue+1).map(function(_e){return _e.key}))},[Ue,Pt]);var Mn=Sn(_||$&&((n=ie[0])===null||n===void 0?void 0:n.key),{value:_}),fn=j(Mn,2),ht=fn[0],Qt=fn[1],or=vr(function(_e){Qt(_e)}),Ft=vr(function(){Qt(void 0)});k.useImperativeHandle(t,function(){return{list:Be.current,focus:function(be){var $e,Ze=ht??(($e=ie.find(function(ir){return!ir.props.disabled}))===null||$e===void 0?void 0:$e.key);if(Ze){var et,Nt,Lt;(et=Be.current)===null||et===void 0||(Nt=et.querySelector("li[data-menu-id='".concat(bi(Te,Ze),"']")))===null||Nt===void 0||(Lt=Nt.focus)===null||Lt===void 0||Lt.call(Nt,be)}}}});var Rn=Sn(z||[],{value:B,postState:function(be){return Array.isArray(be)?be:be==null?Fn:[be]}}),Tn=j(Rn,2),lt=Tn[0],Mt=Tn[1],vn=function(be){if(I){var $e=be.key,Ze=lt.includes($e),et;T?Ze?et=lt.filter(function(Lt){return Lt!==$e}):et=[].concat(Ge(lt),[$e]):et=[$e],Mt(et);var Nt=L(L({},be),{},{selectedKeys:et});Ze?te==null||te(Nt):W==null||W(Nt)}!T&&ke.length&&U!=="inline"&&De(Fn)},Nn=vr(function(_e){me==null||me(co(_e)),vn(_e)}),Rt=vr(function(_e,be){var $e=ke.filter(function(et){return et!==_e});if(be)$e.push(_e);else if(U!=="inline"){var Ze=Ht(_e);$e=$e.filter(function(et){return!Ze.has(et)})}Za(ke,$e,!0)||De($e,!0)}),Wt=function(be,$e){var Ze=$e??!ke.includes(be);Rt(be,Ze)},mn=Tp(U,ht,rt,Te,Be,qt,In,Qt,Wt,Ne);s.useEffect(function(){pt(!0)},[]);var Zt=s.useMemo(function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:de}},[ce,de]),Tt=U!=="horizontal"||C?ie:ie.map(function(_e,be){return s.createElement(wr,{key:_e.key,overflowDisabled:be>Ue},_e)}),ar=s.createElement(Yt,Pe({id:p,ref:Be,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:To,className:se(i,"".concat(i,"-root"),"".concat(i,"-").concat(U),u,(r={},Y(r,"".concat(i,"-inline-collapsed"),ot),Y(r,"".concat(i,"-rtl"),rt),r),l),dir:h,style:c,role:"menu",tabIndex:d,data:Tt,renderRawItem:function(be){return be},renderRawRest:function(be){var $e=be.length,Ze=$e?ie.slice(-$e):null;return s.createElement(No,{eventKey:Fa,title:fe,disabled:Pt,internalPopupClose:$e===0,popupClassName:Se},Ze)},maxCount:U!=="horizontal"||C?Yt.INVALIDATE:Yt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(be){zt(be)},onKeyDown:mn},ae));return s.createElement(yi.Provider,{value:Zt},s.createElement(Kc.Provider,{value:Te},s.createElement(wr,{prefixCls:i,rootClassName:l,mode:U,openKeys:ke,rtl:rt,disabled:b,motion:Ie?X:null,defaultMotions:Ie?le:null,activeKey:ht,onActive:or,onInactive:Ft,selectedKeys:lt,inlineIndent:oe,subMenuOpenDelay:x,subMenuCloseDelay:O,forceSubMenuRender:M,builtinPlacements:q,triggerSubMenuAction:ee,getPopupContainer:D,itemIcon:ue,expandIcon:G,onItemClick:Nn,onOpenChange:Rt},s.createElement(Yc.Provider,{value:rr},ar),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(Xc.Provider,{value:at},ie)))))}),$r=ih;$r.Item=To;$r.SubMenu=No;$r.ItemGroup=_o;$r.Divider=Ei;var sh={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const lh=sh;var nu=function(t,n){return s.createElement(xr,on({},t,{ref:n,icon:lh}))};process.env.NODE_ENV!=="production"&&(nu.displayName="BarsOutlined");const ch=s.forwardRef(nu);var uh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const dh=uh;var ru=function(t,n){return s.createElement(xr,on({},t,{ref:n,icon:dh}))};process.env.NODE_ENV!=="production"&&(ru.displayName="LeftOutlined");const Fs=s.forwardRef(ru),fh=e=>!isNaN(parseFloat(e))&&isFinite(e),vh=fh,mh=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var gh=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ws={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},xi=s.createContext({}),ph=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),hh=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:f=!1,width:d=200,collapsedWidth:v=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:p,onBreakpoint:m}=e,S=gh(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=k.useContext(mh),[b,C]=k.useState("collapsed"in e?e.collapsed:i),[E,x]=k.useState(!1);k.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const w=($,R)=>{"collapsed"in e||C($),p==null||p($,R)},O=k.useRef();O.current=$=>{x($.matches),m==null||m($.matches),b!==$.matches&&w($.matches,"responsive")},k.useEffect(()=>{function $(I){return O.current(I)}let R;if(typeof window<"u"){const{matchMedia:I}=window;if(I&&h&&h in Ws){R=I(`(max-width: ${Ws[h]})`);try{R.addEventListener("change",$)}catch{R.addListener($)}$(R)}}return()=>{try{R==null||R.removeEventListener("change",$)}catch{R==null||R.removeListener($)}}},[h]),k.useEffect(()=>{const $=ph("ant-sider-");return y.addSider($),()=>y.removeSider($)},[]);const M=()=>{w(!b,"clickTrigger")},{getPrefixCls:P}=k.useContext(gt),A=()=>{const $=P("layout-sider",n),R=On(S,["collapsed"]),I=b?v:d,N=vh(I)?`${I}px`:String(I),T=parseFloat(String(v||0))===0?s.createElement("span",{onClick:M,className:se(`${$}-zero-width-trigger`,`${$}-zero-width-trigger-${f?"right":"left"}`),style:g},o||s.createElement(ch,null)):null,W={expanded:f?s.createElement(La,null):s.createElement(Fs,null),collapsed:f?s.createElement(Fs,null):s.createElement(La,null)}[b?"collapsed":"expanded"],te=o!==null?T||s.createElement("div",{className:`${$}-trigger`,onClick:M,style:{width:N}},o||W):null,V=Object.assign(Object.assign({},c),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),oe=se($,`${$}-${l}`,{[`${$}-collapsed`]:!!b,[`${$}-has-trigger`]:u&&o!==null&&!T,[`${$}-below`]:!!E,[`${$}-zero-width`]:parseFloat(N)===0},r);return s.createElement("aside",Object.assign({className:oe},R,{style:V,ref:t}),s.createElement("div",{className:`${$}-children`},a),u||E&&T?te:null)},_=s.useMemo(()=>({siderCollapsed:b}),[b]);return s.createElement(xi.Provider,{value:_},A())});process.env.NODE_ENV!=="production"&&(hh.displayName="Sider");var bh=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yh=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=bh(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=s.useContext(gt),i=a("menu",t),l=se({[`${i}-item-divider-dashed`]:!!r},n);return s.createElement(Ei,Object.assign({className:l},o))},ou=yh,Ch=k.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),uo=Ch,Sh=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:d}=s.useContext(uo),v=y=>{const b=s.createElement("span",{className:`${l}-title-content`},r);return(!o||an(r)&&r.type==="span")&&r&&y&&c&&typeof r=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):b},{siderCollapsed:g}=s.useContext(xi);let h=a;typeof a>"u"?h=c?r:"":a===!1&&(h="");const p={title:h};!g&&!d&&(p.title=null,p.open=!1);const m=nn(r).length;let S=s.createElement(To,Object.assign({},On(e,["title","icon","danger"]),{className:se({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(o?m+1:m)===1},n),title:typeof a=="string"?a:void 0}),er(o,{className:se(an(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),v(d));return f||(S=s.createElement(vp,Object.assign({},p,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),S)),S},au=Sh,wh=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=s.useContext(uo),{prefixCls:l,inlineCollapsed:c,theme:u}=i,f=tr();let d;if(!r)d=c&&!f.length&&o&&typeof o=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${l}-title-content`},o);else{const h=an(o)&&o.type==="span";d=s.createElement(s.Fragment,null,er(r,{className:se(an(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h?o:s.createElement("span",{className:`${l}-title-content`},o))}const v=s.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=mi("Menu");return s.createElement(uo.Provider,{value:v},s.createElement(No,Object.assign({},On(e,["icon"]),{title:d,popupClassName:se(l,n,`${l}-${a||u}`),popupStyle:{zIndex:g}})))},iu=wh;var Eh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const xh=Eh;var su=function(t,n){return s.createElement(xr,on({},t,{ref:n,icon:xh}))};process.env.NODE_ENV!=="production"&&(su.displayName="EllipsisOutlined");const Oh=s.forwardRef(su);var $h=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Va(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:l}=r,c=$h(r,["label","children","key","type"]),u=i??`tmp-${n}`;return a||l==="group"?l==="group"?s.createElement(_o,Object.assign({key:u},c,{title:o}),Va(a)):s.createElement(iu,Object.assign({key:u},c,{title:o}),Va(a)):l==="divider"?s.createElement(ou,Object.assign({key:u},c)):s.createElement(au,Object.assign({key:u},c),o)}return null}).filter(t=>t)}function Ph(e){return s.useMemo(()=>e&&Va(e),[e])}var Ih=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fo=s.createContext(null),Mh=s.forwardRef((e,t)=>{const{children:n}=e,r=Ih(e,["children"]),o=s.useContext(fo),a=s.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),i=wu(n),l=Er(t,i?n.ref:null);return s.createElement(fo.Provider,{value:a},s.createElement(Ec,null,i?s.cloneElement(n,{ref:l}):n))}),Rh=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
158
- > ${t}-item-active,
159
- > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Th=Rh,Nh=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
160
- ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},_h=Nh,Vs=e=>Object.assign({},ql(e)),Ah=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:d,motionDurationSlow:v,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:p,motionDurationMid:m,itemHoverColor:S,lineType:y,colorSplit:b,itemDisabledColor:C,dangerItemColor:E,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:O,dangerItemSelectedBg:M,itemHoverBg:P,itemActiveBg:A,menuSubMenuBg:_,horizontalItemSelectedColor:$,horizontalItemSelectedBg:R,horizontalItemBorderRadius:I,horizontalItemHoverBg:N,popupBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},Vs(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:S}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:M}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Vs(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:I,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${v} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:$}},"&-selected":{color:$,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:u,borderBottomColor:$}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&f?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${f}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${g}`,`opacity ${m} ${g}`].join(",")}}}}}},Ks=Ah,Us=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l}=e,c=o+a+i;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${r*2}px)`},[`> ${t}-item,
161
- > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
162
- ${t}-submenu-title`]:{paddingInlineEnd:c}}},kh=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:c,paddingXL:u,itemMarginInline:f,fontSizeLG:d,motionDurationSlow:v,paddingXS:g,boxShadowSecondary:h,collapsedWidth:p,collapsedIconSize:m}=e,S={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Us(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Us(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${i*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${v}`,`background ${v}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:p,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
163
- > ${t}-item-group > ${t}-item-group-list > ${t}-item,
164
- > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
165
- > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${f}px)`,textOverflow:"clip",[`
166
- ${t}-submenu-arrow,
167
- ${t}-submenu-expand-icon
168
- `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},mv),{paddingInline:g})}}]},Dh=kh,Xs=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Yl()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Gs=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},jh=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:c,colorSplit:u,lineWidth:f,zIndexPopup:d,borderRadiusLG:v,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:p,lineType:m,menuPanelMaskInset:S,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},os()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xo(e)),os()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${c}px`,fontSize:b,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:m,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xs(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:v,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${S}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:v},Xs(e)),Gs(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),Gs(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
169
- &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${p})`},"&::after":{transform:`rotate(45deg) translateX(-${p})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${p})`},"&::before":{transform:`rotate(45deg) translateX(${p})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Lh=(e,t)=>Oo("Menu",r=>{if(t===!1)return[];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:l,fontSize:c,darkItemColor:u,darkDangerItemColor:f,darkItemBg:d,darkSubMenuItemBg:v,darkItemSelectedColor:g,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:m,darkGroupTitleColor:S,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:x}=r,w=c/7*5,O=rn(r,{menuArrowSize:w,menuHorizontalHeight:l*1.15,menuArrowOffset:`${w*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),M=rn(O,{itemColor:u,itemHoverColor:y,groupTitleColor:S,itemSelectedColor:g,itemBg:d,popupBg:d,subMenuItemBg:v,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:b,dangerItemColor:f,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:x,dangerItemSelectedBg:p,menuSubMenuBg:v,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return[jh(O),Th(O),Dh(O),Ks(O,"light"),Ks(M,"dark"),_h(O),Eg(O),so(O,"slide-up"),so(O,"slide-down"),vi(O,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:f,colorFillAlter:d,colorFillContent:v,lineWidth:g,lineWidthBold:h,controlItemBgActive:p,colorBgTextHover:m,controlHeightLG:S,lineHeight:y,colorBgElevated:b,marginXXS:C,padding:E,fontSize:x,controlHeightSM:w,fontSizeLG:O,colorTextLightSolid:M,colorErrorHover:P}=r,A=new ct(M).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:f,itemBg:f,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:v,itemActiveBg:p,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:g,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:y,collapsedWidth:S*2,popupBg:b,itemMarginBlock:C,itemPaddingInline:E,horizontalLineHeight:`${S*1.15}px`,iconSize:x,iconMarginInlineEnd:w-x,collapsedIconSize:O,groupTitleFontSize:x,darkItemDisabledColor:new ct(M).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:a,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:M,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:M,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:M,darkDangerItemActiveBg:a}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e);var Bh=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const zh=k.forwardRef((e,t)=>{var n,r;const o=s.useContext(fo),a=o||{},{getPrefixCls:i,getPopupContainer:l,direction:c,menu:u}=s.useContext(gt),f=i(),{prefixCls:d,className:v,style:g,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:S,siderCollapsed:y,items:b,children:C,rootClassName:E,mode:x,selectable:w,onClick:O,overflowedIndicatorPopupClassName:M}=e,P=Bh(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),A=On(P,["collapsedWidth"]),_=Ph(b)||C;if(process.env.NODE_ENV!=="production"){const X=$n("Menu");process.env.NODE_ENV!=="production"&&X(!("inlineCollapsed"in e&&x!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),process.env.NODE_ENV!=="production"&&X(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),X.deprecated("items"in e&&!C,"children","items")}(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const $=Et(function(){var X;O==null||O.apply(void 0,arguments),(X=a.onClick)===null||X===void 0||X.call(a)}),R=a.mode||x,I=w??a.selectable,N=s.useMemo(()=>y!==void 0?y:S,[S,y]),T={horizontal:{motionName:`${f}-slide-up`},inline:jm(f),other:{motionName:`${f}-zoom-big`}},z=i("menu",d||a.prefixCls),[B,W]=Lh(z,!o),te=se(`${z}-${h}`,u==null?void 0:u.className,v);let V;if(typeof p=="function")V=p;else if(p===null||p===!1)V=null;else if(a.expandIcon===null||a.expandIcon===!1)V=null;else{const X=p??a.expandIcon;V=er(X,{className:se(`${z}-submenu-expand-icon`,an(X)?(r=X.props)===null||r===void 0?void 0:r.className:"")})}const oe=s.useMemo(()=>({prefixCls:z,inlineCollapsed:N||!1,direction:c,firstLevel:!0,theme:h,mode:R,disableMenuItemTitleTooltip:m}),[z,N,c,m,h]);return B(s.createElement(fo.Provider,{value:null},s.createElement(uo.Provider,{value:oe},s.createElement($r,Object.assign({getPopupContainer:l,overflowedIndicator:s.createElement(Oh,null),overflowedIndicatorPopupClassName:se(z,`${z}-${h}`,M),mode:R,selectable:I,onClick:$},A,{inlineCollapsed:N,style:Object.assign(Object.assign({},u==null?void 0:u.style),g),className:te,prefixCls:z,direction:c,defaultMotions:T,expandIcon:V,ref:t,rootClassName:se(E,W)}),_))))}),Hh=zh,nr=k.forwardRef((e,t)=>{const n=k.useRef(null),r=s.useContext(xi);return k.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),s.createElement(Hh,Object.assign({ref:n},e,r))});nr.Item=au;nr.SubMenu=iu;nr.Divider=ou;nr.ItemGroup=_o;process.env.NODE_ENV!=="production"&&(nr.displayName="Menu");const Fh=nr,Wh=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Vh=Wh,Kh=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:f,dropdownEdgeChildPadding:d,colorTextDisabled:v,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:p}=e;return[{[t]:Object.assign(Object.assign({},xo(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+a/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
170
- &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
171
- &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
172
- &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
173
- &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
174
- &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Oc},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
175
- &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
176
- &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
177
- &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
178
- &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
179
- &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Pc},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
180
- &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
181
- &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:$c},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
182
- &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
183
- &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ic}})},zc(e,{colorBg:p,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Oa(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${h}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Oa(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:p,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[so(e,"slide-up"),so(e,"slide-down"),$s(e,"move-up"),$s(e,"move-down"),vi(e,"zoom-big")]]},Uh=Oo("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:l,paddingXXS:c,componentCls:u,borderRadiusLG:f}=e,d=(a-i*l)/2,{dropdownArrowOffset:v}=pi({contentRadius:f}),g=rn(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:v,dropdownPaddingVertical:d,dropdownEdgeChildPadding:c});return[Kh(g),Vh(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Ao=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:d,open:v,onOpenChange:g,visible:h,onVisibleChange:p,mouseEnterDelay:m=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:y=!0,placement:b="",overlay:C,transitionName:E}=e,{getPopupContainer:x,getPrefixCls:w,direction:O,dropdown:M}=s.useContext(gt),P=$n("Dropdown");process.env.NODE_ENV!=="production"&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach(G=>{let[Z,fe]=G;P.deprecated(!(Z in e),Z,fe)}),P.deprecated(!("overlay"in e),"overlay","menu"));const A=s.useMemo(()=>{const G=w();return E!==void 0?E:b.includes("top")?`${G}-slide-down`:`${G}-slide-up`},[w,b,E]),_=s.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:O==="rtl"?"bottomRight":"bottomLeft",[b,O]);if(process.env.NODE_ENV!=="production"){if(b.includes("Center")){const G=b.slice(0,b.indexOf("Center"));process.env.NODE_ENV!=="production"&&P(!b.includes("Center"),"deprecated",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${G}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(G=>{let[Z,fe]=G;P.deprecated(!(Z in e),Z,fe)})}const $=w("dropdown",r),[R,I]=Uh($),[,N]=Jn(),T=s.Children.only(o),z=er(T,{className:se(`${$}-trigger`,{[`${$}-rtl`]:O==="rtl"},T.props.className),disabled:i}),B=i?[]:a;let W;B&&B.includes("contextMenu")&&(W=!0);const[te,V]=Sn(!1,{value:v??h}),oe=Et(G=>{g==null||g(G,{source:"trigger"}),p==null||p(G),V(G)}),X=se(u,f,I,M==null?void 0:M.className,{[`${$}-rtl`]:O==="rtl"}),le=Hc({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:N.marginXXS,arrowWidth:n?N.sizePopupArrow:0,borderRadius:N.borderRadius}),re=s.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),V(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),ee=()=>{let G;return t!=null&&t.items?G=s.createElement(Fh,Object.assign({},t)):typeof C=="function"?G=C():G=C,l&&(G=l(G)),G=s.Children.only(typeof G=="string"?s.createElement("span",null,G):G),s.createElement(Mh,{prefixCls:`${$}-menu`,expandIcon:s.createElement("span",{className:`${$}-menu-submenu-arrow`},s.createElement(La,{className:`${$}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:re,validator:Z=>{let{mode:fe}=Z;process.env.NODE_ENV!=="production"&&P(!fe||fe==="vertical","usage",`mode="${fe}" is not supported for Dropdown's Menu.`)}},G)},[q,ue]=mi("Dropdown",d==null?void 0:d.zIndex);return R(s.createElement(di.Provider,{value:ue},s.createElement(Ep,Object.assign({alignPoint:W},On(e,["rootClassName"]),{mouseEnterDelay:m,mouseLeaveDelay:S,visible:te,builtinPlacements:le,arrow:!!n,overlayClassName:X,prefixCls:$,getPopupContainer:c||x,transitionName:A,trigger:B,overlay:ee,placement:_,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),d),{zIndex:q})}),z)))};function Xh(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Gh=Pg(Ao,"dropdown",e=>e,Xh),Yh=e=>s.createElement(Gh,Object.assign({},e),s.createElement("span",null));Ao._InternalPanelDoNotUseOrYouWillBeFired=Yh;process.env.NODE_ENV!=="production"&&(Ao.displayName="Dropdown");const qh=Ao,lu=e=>{let{children:t}=e;const{getPrefixCls:n}=s.useContext(gt),r=n("breadcrumb");return s.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};lu.__ANT_BREADCRUMB_SEPARATOR=!0;const Oi=lu;var Qh=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Zh(e,t){if(e.title===void 0||e.title===null)return null;const n=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(r,o)=>t[o]||r)}function cu(e,t,n,r){if(n==null)return null;const{className:o,onClick:a}=t,i=Qh(t,["className","onClick"]),l=Object.assign(Object.assign({},Sc(i,{data:!0,aria:!0})),{onClick:a});return r!==void 0?s.createElement("a",Object.assign({},l,{className:se(`${e}-link`,o),href:r}),n):s.createElement("span",Object.assign({},l,{className:se(`${e}-link`,o)}),n)}function Jh(e,t){return(r,o,a,i,l)=>{if(t)return t(r,o,a,i);const c=Zh(r,o);return cu(e,r,c,l)}}var Ka=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uu=e=>{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:i,href:l}=e;process.env.NODE_ENV!=="production"&&$n("Breadcrumb.Item").deprecated(!("overlay"in e),"overlay","menu");const u=(f=>{if(o||a){const d=Object.assign({},i);if(o){const v=o||{},{items:g}=v,h=Ka(v,["items"]);d.menu=Object.assign(Object.assign({},h),{items:g==null?void 0:g.map((p,m)=>{var{key:S,title:y,label:b,path:C}=p,E=Ka(p,["key","title","label","path"]);let x=b??y;return C&&(x=s.createElement("a",{href:`${l}${C}`},x)),Object.assign(Object.assign({},E),{key:S??m,label:x})})})}else a&&(d.overlay=a);return s.createElement(qh,Object.assign({placement:"bottom"},d),s.createElement("span",{className:`${t}-overlay-link`},f,s.createElement(Jg,null)))}return f})(r);return u!=null?s.createElement(s.Fragment,null,s.createElement("li",null,u),n&&s.createElement(Oi,null,n)):null},du=e=>{const{prefixCls:t,children:n,href:r}=e,o=Ka(e,["prefixCls","children","href"]),{getPrefixCls:a}=s.useContext(gt),i=a("breadcrumb",t);return s.createElement(uu,Object.assign({},o,{prefixCls:i}),cu(i,o,n,r))};du.__ANT_BREADCRUMB_ITEM=!0;const e0=du,t0=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},xo(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Oa(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
184
- > ${n} + span,
185
- > ${n} + a
186
- `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},n0=Oo("Breadcrumb",e=>{const t=rn(e,{});return[t0(t)]},e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));var Ys=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function r0(e){const{breadcrumbName:t,children:n}=e,r=Ys(e,["breadcrumbName","children"]),o=Object.assign({title:t},r);return n&&(o.menu={items:n.map(a=>{var{breadcrumbName:i}=a,l=Ys(a,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:i})})}),o}function o0(e,t){return k.useMemo(()=>e||(t?t.map(r0):null),[e,t])}var a0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const i0=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},ko=e=>{const{prefixCls:t,separator:n="/",style:r,className:o,rootClassName:a,routes:i,items:l,children:c,itemRender:u,params:f={}}=e,d=a0(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:v,direction:g,breadcrumb:h}=s.useContext(gt);let p;const m=v("breadcrumb",t),[S,y]=n0(m),b=o0(l,i);if(process.env.NODE_ENV!=="production"){const w=$n("Breadcrumb");if(w.deprecated(!i,"routes","items"),!b||b.length===0){const O=nn(c);w.deprecated(O.length===0,"Breadcrumb.Item and Breadcrumb.Separator","items"),O.forEach(M=>{M&&process.env.NODE_ENV!=="production"&&w(M.type&&(M.type.__ANT_BREADCRUMB_ITEM===!0||M.type.__ANT_BREADCRUMB_SEPARATOR===!0),"usage","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children")})}}const C=Jh(m,u);if(b&&b.length>0){const w=[],O=l||i;p=b.map((M,P)=>{const{path:A,key:_,type:$,menu:R,overlay:I,onClick:N,className:T,separator:z,dropdownProps:B}=M,W=i0(f,A);W!==void 0&&w.push(W);const te=_??P;if($==="separator")return s.createElement(Oi,{key:te},z);const V={},oe=P===b.length-1;R?V.menu=R:I&&(V.overlay=I);let{href:X}=M;return w.length&&W!==void 0&&(X=`#/${w.join("/")}`),s.createElement(uu,Object.assign({key:te},V,Sc(M,{data:!0,aria:!0}),{className:T,dropdownProps:B,href:X,separator:oe?"":n,onClick:N,prefixCls:m}),C(M,f,O,w,X))})}else if(c){const w=nn(c).length;p=nn(c).map((O,M)=>{if(!O)return O;const P=M===w-1;return er(O,{separator:P?"":n,key:M})})}const E=se(m,h==null?void 0:h.className,{[`${m}-rtl`]:g==="rtl"},o,a,y),x=Object.assign(Object.assign({},h==null?void 0:h.style),r);return S(s.createElement("nav",Object.assign({className:E,style:x},d),s.createElement("ol",null,p)))};ko.Item=e0;ko.Separator=Oi;process.env.NODE_ENV!=="production"&&(ko.displayName="Breadcrumb");const qs=ko,s0=e=>{const{onAnyItemClick:t,items:n}=e;if(t){const r=n==null?void 0:n.map((a,i)=>i===n.length-1?{title:a.title}:{...a,href:null,onClick:()=>{a.href&&t({href:a.href})}}),o={...e,items:r};return Pi.jsx(qs,{...o,items:r})}return Pi.jsx(qs,{...e})};exports.Breadcrumb=s0;