@akinon/ui-menu 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,148 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Hc=require("react/jsx-runtime"),j=require("react"),ro=require("react-dom");function Fc(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=Fc(j);function Wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ps={exports:{}};/*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var l=n.apply(null,i);l&&r.push(l)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ps);var Vc=Ps.exports;const fe=Wc(Vc);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 Yo={exports:{}},we={};/**
6
- * @license React
7
- * react-is.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */var sa;function Kc(){if(sa)return we;sa=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"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(v){if(typeof v=="object"&&v!==null){var C=v.$$typeof;switch(C){case e:switch(v=v.type,v){case n:case o:case r:case u:case d:return v;default:switch(v=v&&v.$$typeof,v){case l:case a:case c:case m:case f:case i:return v;default:return C}}case t:return C}}}return we.ContextConsumer=a,we.ContextProvider=i,we.Element=e,we.ForwardRef=c,we.Fragment=n,we.Lazy=m,we.Memo=f,we.Portal=t,we.Profiler=o,we.StrictMode=r,we.Suspense=u,we.SuspenseList=d,we.isAsyncMode=function(){return!1},we.isConcurrentMode=function(){return!1},we.isContextConsumer=function(v){return p(v)===a},we.isContextProvider=function(v){return p(v)===i},we.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},we.isForwardRef=function(v){return p(v)===c},we.isFragment=function(v){return p(v)===n},we.isLazy=function(v){return p(v)===m},we.isMemo=function(v){return p(v)===f},we.isPortal=function(v){return p(v)===t},we.isProfiler=function(v){return p(v)===o},we.isStrictMode=function(v){return p(v)===r},we.isSuspense=function(v){return p(v)===u},we.isSuspenseList=function(v){return p(v)===d},we.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===u||v===d||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===f||v.$$typeof===i||v.$$typeof===a||v.$$typeof===c||v.$$typeof===h||v.getModuleId!==void 0)},we.typeOf=p,we}var xe={};/**
14
- * @license React
15
- * react-is.development.js
16
- *
17
- * Copyright (c) Facebook, Inc. and its affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */var la;function Uc(){return la||(la=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"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,p=!1,v=!1,C=!1,b=!1,S;S=Symbol.for("react.module.reference");function y(A){return!!(typeof A=="string"||typeof A=="function"||A===n||A===o||b||A===r||A===u||A===d||C||A===g||h||p||v||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===f||A.$$typeof===i||A.$$typeof===a||A.$$typeof===c||A.$$typeof===S||A.getModuleId!==void 0))}function w(A){if(typeof A=="object"&&A!==null){var ue=A.$$typeof;switch(ue){case e:var ce=A.type;switch(ce){case n:case o:case r:case u:case d:return ce;default:var Re=ce&&ce.$$typeof;switch(Re){case l:case a:case c:case m:case f:case i:return Re;default:return ue}}case t:return ue}}}var x=a,E=i,O=e,k=c,I=n,_=m,N=f,$=t,P=o,M=r,R=u,T=d,F=!1,z=!1;function U(A){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function oe(A){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(A){return w(A)===a}function se(A){return w(A)===i}function q(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function le(A){return w(A)===c}function ae(A){return w(A)===n}function te(A){return w(A)===m}function ne(A){return w(A)===f}function pe(A){return w(A)===t}function he(A){return w(A)===o}function ee(A){return w(A)===r}function Oe(A){return w(A)===u}function Se(A){return w(A)===d}xe.ContextConsumer=x,xe.ContextProvider=E,xe.Element=O,xe.ForwardRef=k,xe.Fragment=I,xe.Lazy=_,xe.Memo=N,xe.Portal=$,xe.Profiler=P,xe.StrictMode=M,xe.Suspense=R,xe.SuspenseList=T,xe.isAsyncMode=U,xe.isConcurrentMode=oe,xe.isContextConsumer=G,xe.isContextProvider=se,xe.isElement=q,xe.isForwardRef=le,xe.isFragment=ae,xe.isLazy=te,xe.isMemo=ne,xe.isPortal=pe,xe.isProfiler=he,xe.isStrictMode=ee,xe.isSuspense=Oe,xe.isSuspenseList=Se,xe.isValidElementType=y,xe.typeOf=w}()),xe}process.env.NODE_ENV==="production"?Yo.exports=Kc():Yo.exports=Uc();var Ts=Yo.exports;function ur(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return j.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ur(r)):Ts.isFragment(r)&&r.props?n=n.concat(ur(r.props.children,t)):n.push(r))}),n}var qo={},Ai=[],Gc=function(t){Ai.push(t)};function zn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Ai.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Xc(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Ai.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Rs(){qo={}}function _s(e,t,n){!t&&!qo[n]&&(e(!1,n),qo[n]=!0)}function mt(e,t){_s(zn,e,t)}function Yc(e,t){_s(Xc,e,t)}mt.preMessage=Gc;mt.resetWarned=Rs;mt.noteOnce=Yc;function We(e){"@babel/helpers - typeof";return We=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},We(e)}function qc(e,t){if(We(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(We(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ns(e){var t=qc(e,"string");return We(t)==="symbol"?t:String(t)}function K(e,t,n){return t=Ns(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ca(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?ca(Object(n),!0).forEach(function(r){K(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gr(e){return e instanceof HTMLElement||e instanceof SVGElement}function zr(e){return Gr(e)?e:e instanceof j.Component?ro.findDOMNode(e):null}function oo(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 ki(e,t){typeof e=="function"?e(t):We(e)==="object"&&e&&"current"in e&&(e.current=t)}function As(){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(i){ki(i,o)})}}function io(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oo(function(){return As.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})}function ao(e){var t,n,r=Ts.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))}var Qo=s.createContext(null);function Qc(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),i=s.useContext(Qo),a=s.useCallback(function(l,c,u){r.current+=1;var d=r.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,c,u)},[n,i]);return s.createElement(Qo.Provider,{value:a},t)}var ks=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!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,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Zo=typeof window<"u"&&typeof document<"u"&&window.document===document,Xr=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")()}(),Zc=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Xr):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Jc=2;function eu(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Zc(i)}function l(){var c=Date.now();if(n){if(c-o<Jc)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=c}return l}var tu=20,nu=["top","right","bottom","left","width","height","size","weight"],ru=typeof MutationObserver<"u",ou=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=eu(this.refresh.bind(this),tu)}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(){!Zo||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ru?(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(){!Zo||!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=nu.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ds=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},Bn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Xr},Ls=so(0,0,0,0);function Yr(e){return parseFloat(e)||0}function ua(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Yr(i)},0)}function iu(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Yr(a)}return n}function au(e){var t=e.getBBox();return so(0,0,t.width,t.height)}function su(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ls;var r=Bn(e).getComputedStyle(e),o=iu(r),i=o.left+o.right,a=o.top+o.bottom,l=Yr(r.width),c=Yr(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=ua(r,"left","right")+i),Math.round(c+a)!==n&&(c-=ua(r,"top","bottom")+a)),!cu(e)){var u=Math.round(l+i)-t,d=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return so(o.left,o.top,l,c)}var lu=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Bn(e).SVGGraphicsElement}:function(e){return e instanceof Bn(e).SVGElement&&typeof e.getBBox=="function"}}();function cu(e){return e===Bn(e).document.documentElement}function uu(e){return Zo?lu(e)?au(e):su(e):Ls}function fu(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Ds(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function so(e,t,n,r){return{x:e,y:t,width:n,height:r}}var du=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=so(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=uu(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}(),vu=function(){function e(t,n){var r=fu(n);Ds(this,{target:t,contentRect:r})}return e}(),mu=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new ks,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 Bn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new du(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 Bn(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 vu(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}(),js=typeof WeakMap<"u"?new WeakMap:new ks,zs=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=ou.getInstance(),r=new mu(t,n,this);js.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){zs.prototype[e]=function(){var t;return(t=js.get(this))[e].apply(t,arguments)}});var gu=function(){return typeof Xr.ResizeObserver<"u"?Xr.ResizeObserver:zs}(),Gt=new Map;function Bs(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 Hs=new gu(Bs);process.env.NODE_ENV;process.env.NODE_ENV;function pu(e,t){Gt.has(e)||(Gt.set(e,new Set),Hs.observe(e)),Gt.get(e).add(t)}function hu(e,t){Gt.has(e)&&(Gt.get(e).delete(t),Gt.get(e).size||(Hs.unobserve(e),Gt.delete(e)))}function rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fa(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,Ns(r.key),r)}}function on(e,t,n){return t&&fa(e.prototype,t),n&&fa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jo(e,t){return Jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Jo(e,t)}function lo(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&&Jo(e,t)}function qr(e){return qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qr(e)}function bu(){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 ei(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yu(e,t){if(t&&(We(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ei(e)}function co(e){var t=bu();return function(){var r=qr(e),o;if(t){var i=qr(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return yu(this,o)}}var Su=function(e){lo(n,e);var t=co(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function Cu(e,t){var n=e.children,r=e.disabled,o=s.useRef(null),i=s.useRef(null),a=s.useContext(Qo),l=typeof n=="function",c=l?n(o):n,u=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&s.isValidElement(c)&&ao(c),f=d?c.ref:null,m=io(f,o),g=function(){var C;return zr(o.current)||(o.current&&We(o.current)==="object"?zr((C=o.current)===null||C===void 0?void 0:C.nativeElement):null)||zr(i.current)};s.useImperativeHandle(t,function(){return g()});var h=s.useRef(e);h.current=e;var p=s.useCallback(function(v){var C=h.current,b=C.onResize,S=C.data,y=v.getBoundingClientRect(),w=y.width,x=y.height,E=v.offsetWidth,O=v.offsetHeight,k=Math.floor(w),I=Math.floor(x);if(u.current.width!==k||u.current.height!==I||u.current.offsetWidth!==E||u.current.offsetHeight!==O){var _={width:k,height:I,offsetWidth:E,offsetHeight:O};u.current=_;var N=E===Math.round(w)?w:E,$=O===Math.round(x)?x:O,P=L(L({},_),{},{offsetWidth:N,offsetHeight:$});a==null||a(P,v,S),b&&Promise.resolve().then(function(){b(P,v)})}},[]);return s.useEffect(function(){var v=g();return v&&!r&&pu(v,p),function(){return hu(v,p)}},[o.current,r]),s.createElement(Su,{ref:i},d?s.cloneElement(c,{ref:m}):c)}var Fs=s.forwardRef(Cu);process.env.NODE_ENV!=="production"&&(Fs.displayName="SingleObserver");var Eu="rc-observer-key";function wu(e,t){var n=e.children,r=typeof n=="function"?[n]:ur(n);return process.env.NODE_ENV!=="production"&&(r.length>1?zn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&zn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(Eu,"-").concat(i);return s.createElement(Fs,Pe({},e,{key:a,ref:i===0?t:void 0}),o)})}var Wn=s.forwardRef(wu);process.env.NODE_ENV!=="production"&&(Wn.displayName="ResizeObserver");Wn.Collection=Qc;function Vn(e,t){var n=L({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function ti(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 xu(e){if(Array.isArray(e))return ti(e)}function Ws(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Di(e,t){if(e){if(typeof e=="string")return ti(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 ti(e,t)}}function Ou(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(e){return xu(e)||Ws(e)||Di(e)||Ou()}var Vs=function(t){return+setTimeout(t,16)},Ks=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Vs=function(t){return window.requestAnimationFrame(t)},Ks=function(t){return window.cancelAnimationFrame(t)});var da=0,Li=new Map;function Us(e){Li.delete(e)}var Nt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;da+=1;var r=da;function o(i){if(i===0)Us(r),t();else{var a=Vs(function(){o(i-1)});Li.set(r,a)}}return o(n),r};Nt.cancel=function(e){var t=Li.get(e);return Us(t),Ks(t)};function ji(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 $u(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Be(e,t){if(e==null)return{};var n=$u(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(i);if(mt(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],u))return!1;return!0}if(i&&a&&We(i)==="object"&&We(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],u)})}return!1}return o(e,t)}var va="%",Iu=function(){function e(t){rn(this,e),K(this,"instanceId",void 0),K(this,"cache",new Map),this.instanceId=t}return on(e,[{key:"get",value:function(n){return this.cache.get(n.join(va))||null}},{key:"update",value:function(n,r){var o=n.join(va),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a)}}]),e}(),ni="data-token-hash",gn="data-css-hash",Mu="data-cache-path",kn="__cssinjs_instance__";function Pu(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(gn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[kn]=o[kn]||e,o[kn]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(gn,"]"))).forEach(function(o){var i=o.getAttribute(gn);if(r[i]){if(o[kn]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new Iu(e)}var Tu=s.createContext({hashPriority:"low",cache:Pu(),defaultCache:!0});const Bi=Tu;function ut(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ru(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 ma="data-rc-order",ga="data-rc-priority",_u="rc-util-key",ri=new Map;function Gs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):_u}function uo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Nu(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Xs(e){return Array.from((ri.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ys(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,i=o===void 0?0:o,a=Nu(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(ma,a),l&&i&&c.setAttribute(ga,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=uo(t),d=u.firstChild;if(r){if(l){var f=Xs(u).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(ma)))return!1;var g=Number(m.getAttribute(ga)||0);return i>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function qs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=uo(t);return Xs(n).find(function(r){return r.getAttribute(Gs(t))===e})}function Qr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=qs(e,t);if(n){var r=uo(t);r.removeChild(n)}}function Au(e,t){var n=ri.get(e);if(!n||!Ru(document,n)){var r=Ys("",t),o=r.parentNode;ri.set(e,o),e.removeChild(r)}}function fr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=uo(n);Au(r,n);var o=qs(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.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=Ys(e,n);return c.setAttribute(Gs(n),t),c}function Qs(e){if(Array.isArray(e))return e}function ku(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function Zs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(e,t){return Qs(e)||ku(e,t)||Di(e,t)||Zs()}function Du(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 Hi=function(){function e(){rn(this,e),K(this,"cache",void 0),K(this,"keys",void 0),K(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return on(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var c,u;a=(c=a)===null||c===void 0||(u=c.map)===null||u===void 0?void 0:u.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===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 i=this.keys.reduce(function(u,d){var f=D(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=D(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.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 i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Du(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();K(Hi,"MAX_CACHE_SIZE",20);K(Hi,"MAX_CACHE_OFFSET",5);var pa=0,Js=function(){function e(t){rn(this,e),K(this,"derivatives",void 0),K(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=pa,t.length===0&&zn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),pa+=1}return on(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),_o=new Hi;function oi(e){var t=Array.isArray(e)?e:[e];return _o.has(t)||_o.set(t,new Js(t)),_o.get(t)}var Lu=new WeakMap,No={};function ju(e,t){for(var n=Lu,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(No)||n.set(No,e()),n.get(No)}var ha=new WeakMap;function Zr(e){var t=ha.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Js?t+=r.id:r&&We(r)==="object"?t+=Zr(r):t+=r}),ha.set(e,t)),t}function zu(e,t){return ji("".concat(t,"_").concat(Zr(e)))}var ar="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),el="_bAmBoO_";function Bu(e,t,n){if(ut()){var r,o;fr(e,ar);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(el);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),Qr(ar),a}return!1}var Ao=void 0;function Hu(){return Ao===void 0&&(Ao=Bu("@layer ".concat(ar," { .").concat(ar,' { content: "').concat(el,'"!important; } }'),function(e){e.className=ar})),Ao}var ba=process.env.NODE_ENV!=="test"&&ut()?s.useLayoutEffect:s.useEffect,st=function(t,n){var r=s.useRef(!0);ba(function(){return t(r.current)},n),ba(function(){return r.current=!1,function(){r.current=!0}},[])},ya=function(t,n){st(function(r){if(!r)return t()},n)},Fu=L({},s),Sa=Fu.useInsertionEffect,Wu=function(t,n,r){s.useMemo(t,r),st(function(){return n(!0)},r)},Vu=Sa?function(e,t,n){return Sa(function(){return e(),t()},n)}:Wu;const Ku=Vu;var Uu=L({},s),Gu=Uu.useInsertionEffect,Xu=function(t){var n=[],r=!1;function o(i){if(r){process.env.NODE_ENV!=="production"&&zn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},Yu=function(){return function(t){t()}},qu=typeof Gu<"u"?Xu:Yu;const Qu=qu;function Zu(){return!1}var ii=!1;function Ju(){return ii}const ef=process.env.NODE_ENV==="production"?Zu:Ju;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ko=window;if(typeof ko.webpackHotUpdate=="function"){var tf=ko.webpackHotUpdate;ko.webpackHotUpdate=function(){return ii=!0,setTimeout(function(){ii=!1},0),tf.apply(void 0,arguments)}}}function tl(e,t,n,r,o){var i=s.useContext(Bi),a=i.cache,l=[e].concat(Ge(t)),c=l.join("_"),u=Qu([c]),d=ef(),f=function(p){a.update(l,function(v){var C=v||[],b=D(C,2),S=b[0],y=S===void 0?0:S,w=b[1],x=w;process.env.NODE_ENV!=="production"&&w&&d&&(r==null||r(x,d),x=null);var E=x||n(),O=[y,E];return p?p(O):O})};s.useMemo(function(){f()},[c]);var m=a.get(l);process.env.NODE_ENV!=="production"&&!m&&(f(),m=a.get(l));var g=m[1];return Ku(function(){o==null||o(g)},function(h){return f(function(p){var v=D(p,2),C=v[0],b=v[1];return h&&C===0&&(o==null||o(g)),[C+1,b]}),function(){a.update(l,function(p){var v=p||[],C=D(v,2),b=C[0],S=b===void 0?0:b,y=C[1],w=S-1;return w===0?(u(function(){return r==null?void 0:r(y,!1)}),null):[S-1,y]})}},[c]),g}var nf={},rf=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",vn=new Map;function of(e){vn.set(e,(vn.get(e)||0)+1)}function af(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ni,'="').concat(e,'"]'));n.forEach(function(r){if(r[kn]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var sf=0;function lf(e,t){vn.set(e,(vn.get(e)||0)-1);var n=Array.from(vn.keys()),r=n.filter(function(o){var i=vn.get(o)||0;return i<=0});n.length-r.length>sf&&r.forEach(function(o){af(o,t),vn.delete(o)})}var cf=function(t,n,r,o){var i=r.getDerivativeToken(t),a=L(L({},i),n);return o&&(a=o(a)),a};function uf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=j.useContext(Bi),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,l=n.override,c=l===void 0?nf:l,u=n.formatToken,d=n.getComputedToken,f=ju(function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))},t),m=Zr(f),g=Zr(c),h=tl("token",[a,e.id,m,g],function(){var p=d?d(f,c,e):cf(f,c,e,u),v=zu(p,a);p._tokenKey=v,of(v);var C="".concat(rf,"-").concat(ji(v));return p._hashId=C,[p,C]},function(p){lf(p[0]._tokenKey,o)});return h}var ff={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},nl="comm",rl="rule",ol="decl",df="@import",vf="@keyframes",mf="@layer",gf=Math.abs,Fi=String.fromCharCode;function il(e){return e.trim()}function Br(e,t,n){return e.replace(t,n)}function pf(e,t){return e.indexOf(t)}function dr(e,t){return e.charCodeAt(t)|0}function vr(e,t,n){return e.slice(t,n)}function Ut(e){return e.length}function hf(e){return e.length}function Mr(e,t){return t.push(e),e}var fo=1,Hn=1,al=0,Et=0,Ue=0,Kn="";function Wi(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:fo,column:Hn,length:a,return:"",siblings:l}}function bf(){return Ue}function yf(){return Ue=Et>0?dr(Kn,--Et):0,Hn--,Ue===10&&(Hn=1,fo--),Ue}function At(){return Ue=Et<al?dr(Kn,Et++):0,Hn++,Ue===10&&(Hn=1,fo++),Ue}function pn(){return dr(Kn,Et)}function Hr(){return Et}function vo(e,t){return vr(Kn,e,t)}function ai(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 Sf(e){return fo=Hn=1,al=Ut(Kn=e),Et=0,[]}function Cf(e){return Kn="",e}function Do(e){return il(vo(Et-1,si(e===91?e+2:e===40?e+1:e)))}function Ef(e){for(;(Ue=pn())&&Ue<33;)At();return ai(e)>2||ai(Ue)>3?"":" "}function wf(e,t){for(;--t&&At()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return vo(e,Hr()+(t<6&&pn()==32&&At()==32))}function si(e){for(;At();)switch(Ue){case e:return Et;case 34:case 39:e!==34&&e!==39&&si(Ue);break;case 40:e===41&&si(e);break;case 92:At();break}return Et}function xf(e,t){for(;At()&&e+Ue!==47+10;)if(e+Ue===42+42&&pn()===47)break;return"/*"+vo(t,Et-1)+"*"+Fi(e===47?e:At())}function Of(e){for(;!ai(pn());)At();return vo(e,Et)}function $f(e){return Cf(Fr("",null,null,null,[""],e=Sf(e),0,[0],e))}function Fr(e,t,n,r,o,i,a,l,c){for(var u=0,d=0,f=a,m=0,g=0,h=0,p=1,v=1,C=1,b=0,S="",y=o,w=i,x=r,E=S;v;)switch(h=b,b=At()){case 40:if(h!=108&&dr(E,f-1)==58){pf(E+=Br(Do(b),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=Do(b);break;case 9:case 10:case 13:case 32:E+=Ef(h);break;case 92:E+=wf(Hr()-1,7);continue;case 47:switch(pn()){case 42:case 47:Mr(If(xf(At(),Hr()),t,n,c),c);break;default:E+="/"}break;case 123*p:l[u++]=Ut(E)*C;case 125*p:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+d:C==-1&&(E=Br(E,/\f/g,"")),g>0&&Ut(E)-f&&Mr(g>32?Ea(E+";",r,n,f-1,c):Ea(Br(E," ","")+";",r,n,f-2,c),c);break;case 59:E+=";";default:if(Mr(x=Ca(E,t,n,u,d,o,l,S,y=[],w=[],f,i),i),b===123)if(d===0)Fr(E,t,x,x,y,i,f,l,w);else switch(m===99&&dr(E,3)===110?100:m){case 100:case 108:case 109:case 115:Fr(e,x,x,r&&Mr(Ca(e,x,x,0,0,o,l,S,o,y=[],f,w),w),o,w,f,l,r?y:w);break;default:Fr(E,x,x,x,[""],w,0,l,w)}}u=d=g=0,p=C=1,S=E="",f=a;break;case 58:f=1+Ut(E),g=h;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&yf()==125)continue}switch(E+=Fi(b),b*p){case 38:C=d>0?1:(E+="\f",-1);break;case 44:l[u++]=(Ut(E)-1)*C,C=1;break;case 64:pn()===45&&(E+=Do(At())),m=pn(),d=f=Ut(S=E+=Of(Hr())),b++;break;case 45:h===45&&Ut(E)==2&&(p=0)}}return i}function Ca(e,t,n,r,o,i,a,l,c,u,d,f){for(var m=o-1,g=o===0?i:[""],h=hf(g),p=0,v=0,C=0;p<r;++p)for(var b=0,S=vr(e,m+1,m=gf(v=a[p])),y=e;b<h;++b)(y=il(v>0?g[b]+" "+S:Br(S,/&\f/g,g[b])))&&(c[C++]=y);return Wi(e,t,n,o===0?rl:l,c,u,d,f)}function If(e,t,n,r){return Wi(e,t,n,nl,Fi(bf()),vr(e,2,-2),0,r)}function Ea(e,t,n,r,o){return Wi(e,t,n,ol,vr(e,0,r),vr(e,r+1,-1),r,o)}function li(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Mf(e,t,n,r){switch(e.type){case mf:if(e.children.length)break;case df:case ol:return e.return=e.return||e.value;case nl:return"";case vf:return e.return=e.value+"{"+li(e.children,r)+"}";case rl:if(!Ut(e.value=e.props.join(",")))return""}return Ut(n=li(e.children,r))?e.return=e.value+"{"+n+"}":""}function sl(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 Pf=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&sl("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"&&sl("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},wa="data-ant-cssinjs-cache-path",ll="_FILE_STYLE__",hn,cl=!0;function Rf(){if(!hn&&(hn={},ut())){var e=document.createElement("div");e.className=wa,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 i=o.split(":"),a=D(i,2),l=a[0],c=a[1];hn[l]=c});var n=document.querySelector("style[".concat(wa,"]"));if(n){var r;cl=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function _f(e){return Rf(),!!hn[e]}function Nf(e){var t=hn[e],n=null;if(t&&ut())if(cl)n=ll;else{var r=document.querySelector("style[".concat(gn,'="').concat(hn[e],'"]'));r?n=r.innerHTML:delete hn[e]}return[n,t]}var xa=ut(),ul="_skip_check_",fl="_multi_value_";function Oa(e){var t=li($f(e),Mf);return t.replace(/\{%%%\:[^;];}/g,";")}function Af(e){return We(e)==="object"&&e&&(ul in e||fl in e)}function kf(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,c=a.trim().split(/\s+/),u=c[0]||"",d=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(Ge(c.slice(1))).join(" ")});return i.join(",")}var Df=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,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,u=n.path,d=n.hashPriority,f=n.transformers,m=f===void 0?[]:f,g=n.linters,h=g===void 0?[]:g,p="",v={};function C(x){var E=x.getName(l);if(!v[E]){var O=e(x.style,n,{root:!1,parentSelectors:a}),k=D(O,1),I=k[0];v[E]="@keyframes ".concat(x.getName(l)).concat(I)}}function b(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(O){Array.isArray(O)?b(O,E):O&&E.push(O)}),E}var S=b(Array.isArray(t)?t:[t]);if(S.forEach(function(x){var E=typeof x=="string"&&!o?{}:x;if(typeof E=="string")p+="".concat(E,`
24
- `);else if(E._keyframe)C(E);else{var O=m.reduce(function(k,I){var _;return(I==null||(_=I.visit)===null||_===void 0?void 0:_.call(I,k))||k},E);Object.keys(O).forEach(function(k){var I=O[k];if(We(I)==="object"&&I&&(k!=="animationName"||!I._keyframe)&&!Af(I)){var _=!1,N=k.trim(),$=!1;(o||i)&&l?N.startsWith("@")?_=!0:N=kf(k,l,d):o&&!l&&(N==="&"||N==="")&&(N="",$=!0);var P=e(I,n,{root:$,injectHash:_,parentSelectors:[].concat(Ge(a),[N])}),M=D(P,2),R=M[0],T=M[1];v=L(L({},v),T),p+="".concat(N).concat(R)}else{let U=function(oe,G){process.env.NODE_ENV!=="production"&&(We(I)!=="object"||!(I!=null&&I[ul]))&&[Pf,Tf].concat(Ge(h)).forEach(function(le){return le(oe,G,{path:u,hashId:l,parentSelectors:a})});var se=oe.replace(/[A-Z]/g,function(le){return"-".concat(le.toLowerCase())}),q=G;!ff[oe]&&typeof q=="number"&&q!==0&&(q="".concat(q,"px")),oe==="animationName"&&G!==null&&G!==void 0&&G._keyframe&&(C(G),q=G.getName(l)),p+="".concat(se,":").concat(q,";")};var F,z=(F=I==null?void 0:I.value)!==null&&F!==void 0?F:I;We(I)==="object"&&I!==null&&I!==void 0&&I[fl]&&Array.isArray(z)?z.forEach(function(oe){U(k,oe)}):U(k,z)}})}}),!o)p="{".concat(p,"}");else if(c&&Hu()){var y=c.split(","),w=y[y.length-1].trim();p="@layer ".concat(w," {").concat(p,"}"),y.length>1&&(p="@layer ".concat(c,"{%%%:%}").concat(p))}return[p,v]};function Lf(e,t){return ji("".concat(e.join("%")).concat(t))}function jf(){return null}function ci(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(Bi),f=d.autoClear,m=d.mock,g=d.defaultCache,h=d.hashPriority,p=d.container,v=d.ssrInline,C=d.transformers,b=d.linters,S=d.cache,y=n._tokenKey,w=[y].concat(Ge(r)),x=xa;process.env.NODE_ENV!=="production"&&m!==void 0&&(x=m==="client");var E=tl("style",w,function(){var N=w.join("|");if(_f(N)){var $=Nf(N),P=D($,2),M=P[0],R=P[1];if(M)return[M,y,R,{},l,u]}var T=t(),F=Df(T,{hashId:o,hashPriority:h,layer:i,path:r.join("-"),transformers:C,linters:b}),z=D(F,2),U=z[0],oe=z[1],G=Oa(U),se=Lf(w,G);return[G,y,se,oe,l,u]},function(N,$){var P=D(N,3),M=P[2];($||f)&&xa&&Qr(M,{mark:gn})},function(N){var $=D(N,4),P=$[0];$[1];var M=$[2],R=$[3];if(x&&P!==ll){var T={mark:gn,prepend:"queue",attachTo:p,priority:u},F=typeof a=="function"?a():a;F&&(T.csp={nonce:F});var z=fr(P,M,T);z[kn]=S.instanceId,z.setAttribute(ni,y),process.env.NODE_ENV!=="production"&&z.setAttribute(Mu,w.join("|")),Object.keys(R).forEach(function(U){fr(Oa(R[U]),"_effect-".concat(U),T)})}}),O=D(E,3),k=O[0],I=O[1],_=O[2];return function(N){var $;if(!v||x||!g)$=s.createElement(jf,null);else{var P;$=s.createElement("style",Pe({},(P={},K(P,ni,I),K(P,gn,_),P),{dangerouslySetInnerHTML:{__html:k}}))}return s.createElement(s.Fragment,null,$,N)}}var Xe=function(){function e(t,n){rn(this,e),K(this,"name",void 0),K(this,"style",void 0),K(this,"_keyframe",!0),this.name=t,this.style=n}return on(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 Mn(e){return e.notSplit=!0,e}Mn(["borderTop","borderBottom"]),Mn(["borderTop"]),Mn(["borderBottom"]),Mn(["borderLeft","borderRight"]),Mn(["borderLeft"]),Mn(["borderRight"]);var zf=j.createContext({});const Vi=zf;function Bf(e){return Qs(e)||Ws(e)||Di(e)||Zs()}function ui(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function dl(e,t,n,r){if(!t.length)return n;var o=Bf(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Ge(e):l=L({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=dl(l[i],a,n,r),l}function Lo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ui(e,t.slice(0,-1))?e:dl(e,t,n,r)}function Hf(e){return We(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function $a(e){return Array.isArray(e)?[]:{}}var Ff=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Wf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=$a(t[0]);return t.forEach(function(o){function i(a,l){var c=new Set(l),u=ui(o,a),d=Array.isArray(u);if(d||Hf(u)){if(!c.has(u)){c.add(u);var f=ui(r,a);d?r=Lo(r,a,[]):(!f||We(f)!=="object")&&(r=Lo(r,a,$a(u))),Ff(u).forEach(function(m){i([].concat(Ge(a),[m]),c)})}}else r=Lo(r,a,u)}i([])}),r}function vl(){}let Kt=null;function Vf(){Kt=null,Rs()}let Ki=vl;process.env.NODE_ENV!=="production"&&(Ki=(e,t,n)=>{mt(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&Vf()});const ml=s.createContext({}),mo=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=s.useContext(ml),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=Kt;Kt||(Kt={}),Kt[e]=Kt[e]||[],Kt[e].includes(i||"")||Kt[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Kt)}else process.env.NODE_ENV!=="production"&&Ki(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=vl,e},go=Ki,Kf=j.createContext(void 0),Uf={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 Gf={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 Xf={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},gl=Xf,Yf={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"]},Gf),timePickerLocale:Object.assign({},gl)},Ia=Yf,ht="${label} is not a valid ${type}",qf={locale:"en",Pagination:Uf,DatePicker:Ia,TimePicker:gl,Calendar:Ia,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:ht,method:ht,array:ht,object:ht,number:ht,date:ht,boolean:ht,integer:ht,float:ht,regexp:ht,email:ht,url:ht,hex:ht},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"}},po=qf;Object.assign({},po.Modal);let Wr=[];const Ma=()=>Wr.reduce((e,t)=>Object.assign(Object.assign({},e),t),po.Modal);function Qf(e){if(e){const t=Object.assign({},e);return Wr.push(t),Ma(),()=>{Wr=Wr.filter(n=>n!==t),Ma()}}Object.assign({},po.Modal)}const Zf=j.createContext(void 0),pl=Zf,hl="internalMark",bl=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=mo("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===hl,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}s.useEffect(()=>Qf(t&&t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(pl.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(bl.displayName="LocaleProvider");const Jf=bl;function tt(e,t){ed(e)&&(e="100%");var n=td(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 Pr(e){return Math.min(1,Math.max(0,e))}function ed(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function td(e){return typeof e=="string"&&e.indexOf("%")!==-1}function yl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Tr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function mn(e){return e.length===1?"0"+e:String(e)}function nd(e,t,n){return{r:tt(e,255)*255,g:tt(t,255)*255,b:tt(n,255)*255}}function Pa(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),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:a,l}}function jo(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 rd(e,t,n){var r,o,i;if(e=tt(e,360),t=tt(t,100),n=tt(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=jo(l,a,e+1/3),o=jo(l,a,e),i=jo(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function fi(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),i=0,a=r,l=r-o,c=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:c,v:a}}function od(e,t,n){e=tt(e,360)*6,t=tt(t,100),n=tt(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6,u=[n,a,i,i,l,n][c],d=[l,n,n,a,i,i][c],f=[i,i,l,n,n,a][c];return{r:u*255,g:d*255,b:f*255}}function di(e,t,n,r){var o=[mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(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 id(e,t,n,r,o){var i=[mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(Math.round(n).toString(16)),mn(ad(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ad(e){return Math.round(parseFloat(e)*255).toString(16)}function Ta(e){return bt(e)/255}function bt(e){return parseInt(e,16)}function sd(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var vi={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 An(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=ud(e)),typeof e=="object"&&(Wt(e.r)&&Wt(e.g)&&Wt(e.b)?(t=nd(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Wt(e.h)&&Wt(e.s)&&Wt(e.v)?(r=Tr(e.s),o=Tr(e.v),t=od(e.h,r,o),a=!0,l="hsv"):Wt(e.h)&&Wt(e.s)&&Wt(e.l)&&(r=Tr(e.s),i=Tr(e.l),t=rd(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=yl(n),{ok:a,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 ld="[-\\+]?\\d+%?",cd="[-\\+]?\\d*\\.\\d+%?",en="(?:".concat(cd,")|(?:").concat(ld,")"),zo="[\\s|\\(]+(".concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")\\s*\\)?"),Bo="[\\s|\\(]+(".concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")\\s*\\)?"),Tt={CSS_UNIT:new RegExp(en),rgb:new RegExp("rgb"+zo),rgba:new RegExp("rgba"+Bo),hsl:new RegExp("hsl"+zo),hsla:new RegExp("hsla"+Bo),hsv:new RegExp("hsv"+zo),hsva:new RegExp("hsva"+Bo),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 ud(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(vi[e])e=vi[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Tt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Tt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Tt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Tt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Tt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Tt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Tt.hex8.exec(e),n?{r:bt(n[1]),g:bt(n[2]),b:bt(n[3]),a:Ta(n[4]),format:t?"name":"hex8"}:(n=Tt.hex6.exec(e),n?{r:bt(n[1]),g:bt(n[2]),b:bt(n[3]),format:t?"name":"hex"}:(n=Tt.hex4.exec(e),n?{r:bt(n[1]+n[1]),g:bt(n[2]+n[2]),b:bt(n[3]+n[3]),a:Ta(n[4]+n[4]),format:t?"name":"hex8"}:(n=Tt.hex3.exec(e),n?{r:bt(n[1]+n[1]),g:bt(n[2]+n[2]),b:bt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Wt(e){return!!Tt.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=sd(t)),this.originalInput=t;var o=An(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,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.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=yl(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=fi(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=fi(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=Pa(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=Pa(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),di(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),id(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="#"+di(this.r,this.g,this.b,!1),n=0,r=Object.entries(vi);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?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=Pr(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=Pr(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=Pr(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=Pr(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(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),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],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Rr=2,Ra=.16,fd=.05,dd=.05,vd=.15,Sl=5,Cl=4,md=[{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 _a(e){var t=e.r,n=e.g,r=e.b,o=fi(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function _r(e){var t=e.r,n=e.g,r=e.b;return"#".concat(di(t,n,r,!1))}function gd(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 Na(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Rr*t:Math.round(e.h)+Rr*t:r=n?Math.round(e.h)+Rr*t:Math.round(e.h)-Rr*t,r<0?r+=360:r>=360&&(r-=360),r}function Aa(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Ra*t:t===Cl?r=e.s+Ra:r=e.s+fd*t,r>1&&(r=1),n&&t===Sl&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ka(e,t,n){var r;return n?r=e.v+dd*t:r=e.v-vd*t,r>1&&(r=1),Number(r.toFixed(2))}function bn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=An(e),o=Sl;o>0;o-=1){var i=_a(r),a=_r(An({h:Na(i,o,!0),s:Aa(i,o,!0),v:ka(i,o,!0)}));n.push(a)}n.push(_r(r));for(var l=1;l<=Cl;l+=1){var c=_a(r),u=_r(An({h:Na(c,l),s:Aa(c,l),v:ka(c,l)}));n.push(u)}return t.theme==="dark"?md.map(function(d){var f=d.index,m=d.opacity,g=_r(gd(An(t.backgroundColor||"#141414"),An(n[f]),m*100));return g}):n}var Ho={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"},Vr={},Fo={};Object.keys(Ho).forEach(function(e){Vr[e]=bn(Ho[e]),Vr[e].primary=Vr[e][5],Fo[e]=bn(Ho[e],{theme:"dark",backgroundColor:"#141414"}),Fo[e].primary=Fo[e][5]});var pd=Vr.blue;const hd=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},bd=hd;function yd(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 El={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"},Sd=Object.assign(Object.assign({},El),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
25
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
26
- '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}),mr=Sd;function Cd(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),m=n(o),g=n(i),h=n(a),p=n(l),v=r(u,d),C=e.colorLink||e.colorInfo,b=n(C);return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[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:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new ct("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Ed=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}},wd=Ed;function xd(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},wd(r))}const Vt=(e,t)=>new ct(e).setAlpha(t).toRgbString(),er=(e,t)=>new ct(e).darken(t).toHexString(),Od=e=>{const t=bn(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]}},$d=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Vt(r,.88),colorTextSecondary:Vt(r,.65),colorTextTertiary:Vt(r,.45),colorTextQuaternary:Vt(r,.25),colorFill:Vt(r,.15),colorFillSecondary:Vt(r,.06),colorFillTertiary:Vt(r,.04),colorFillQuaternary:Vt(r,.02),colorBgLayout:er(n,4),colorBgContainer:er(n,0),colorBgElevated:er(n,0),colorBgSpotlight:Vt(r,.85),colorBgBlur:"transparent",colorBorder:er(n,15),colorBorderSecondary:er(n,6)}};function Id(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const Md=e=>{const t=Id(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]}},Pd=Md;function Td(e){const t=Object.keys(El).map(n=>{const r=bn(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],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),Cd(e,{generateColorPalettes:Od,generateNeutralColorPalettes:$d})),Pd(e.fontSize)),yd(e)),bd(e)),xd(e))}const wl=oi(Td),xl={token:mr,override:{override:mr},hashed:!0},Ol=j.createContext(xl),$l="anticon",Rd=(e,t)=>t||(e?`ant-${e}`:"ant"),Yt=s.createContext({getPrefixCls:Rd,iconPrefixCls:$l}),_d=`-ant-${Date.now()}-${Math.random()}`;function Nd(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(a,l)=>{const c=new ct(a),u=bn(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 a=new ct(t.primaryColor),l=bn(a.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,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"),`
27
- :root {
28
- ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
29
- `)}
30
- }
31
- `.trim()}function Ad(e,t){const n=Nd(e,t);ut()?fr(n,`${_d}-dynamic-theme`):process.env.NODE_ENV!=="production"&&go(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const mi=s.createContext(!1),kd=e=>{let{children:t,disabled:n}=e;const r=s.useContext(mi);return s.createElement(mi.Provider,{value:n??r},t)},Dd=mi,gi=s.createContext(void 0),Ld=e=>{let{children:t,size:n}=e;const r=s.useContext(gi);return s.createElement(gi.Provider,{value:n||r},t)},Ui=gi;function jd(){const e=j.useContext(Dd),t=j.useContext(Ui);return{componentDisabled:e,componentSize:t}}const Jr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],zd="5.11.0";function Wo(e){return e>=0&&e<=255}function Nr(e,t){const{r:n,g:r,b:o,a:i}=new ct(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new ct(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(Wo(d)&&Wo(f)&&Wo(m))return new ct({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new ct({r:n,g:r,b:o,a:1}).toRgbString()}var Bd=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 Il(e){const{override:t}=e,n=Bd(e,["override"]),r=Object.assign({},t);Object.keys(mr).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Nr(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:Nr(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Nr(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:Nr(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:`
32
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
33
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
34
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
35
- `,boxShadowSecondary:`
36
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
37
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
38
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
39
- `,boxShadowTertiary:`
40
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
41
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
42
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
43
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
44
- 0 1px 2px -2px ${new ct("rgba(0, 0, 0, 0.16)").toRgbString()},
45
- 0 3px 6px 0 ${new ct("rgba(0, 0, 0, 0.12)").toRgbString()},
46
- 0 5px 12px 4px ${new ct("rgba(0, 0, 0, 0.09)").toRgbString()}
47
- `,boxShadowDrawerRight:`
48
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
49
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
50
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
51
- `,boxShadowDrawerLeft:`
52
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
53
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
54
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
55
- `,boxShadowDrawerUp:`
56
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
57
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
58
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
59
- `,boxShadowDrawerDown:`
60
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
61
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
62
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
63
- `,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 Da=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 Ml=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Da(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Il(a),i&&Object.entries(i).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=Da(u,["theme"]);let m=f;d&&(m=Ml(Object.assign(Object.assign({},a),f),{override:f},d)),a[c]=m}),a};function hr(){const{token:e,hashed:t,theme:n,override:r}=j.useContext(Ol),o=`${zd}-${t||""}`,i=n||wl,[a,l]=uf(i,[mr,e],{salt:o,override:r,getComputedToken:Ml,formatToken:Il});return[i,a,t?l:""]}function _t(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function jn(e){var t=s.useRef(!1),n=s.useState(e),r=D(n,2),o=r[0],i=r[1];s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||i(l)}return[o,a]}function Vo(e){return e!==void 0}function sr(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=jn(function(){return Vo(o)?o:Vo(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=D(l,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=a?a(f):f,g=_t(i),h=jn([f]),p=D(h,2),v=p[0],C=p[1];ya(function(){var S=v[0];u!==S&&g(u,S)},[v]),ya(function(){Vo(o)||d(o)},[o]);var b=_t(function(S,y){d(S,y),C([f],y)});return[m,b]}const Hd=(e,t,n,r,o)=>{const i=e/2,a=0,l=i,c=n*1/Math.sqrt(2),u=i-n*(1-1/Math.sqrt(2)),d=i-t*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-d,g=f,h=2*i-c,p=u,v=2*i-a,C=l,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=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(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${c} ${u} L ${d} ${f} A ${t} ${t} 0 0 1 ${m} ${g} L ${h} ${p} A ${n} ${n} 0 0 0 ${v} ${C} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,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"}}},Fd={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Pl=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}},Tl=()=>({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"}}),La=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Wd=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"}}}),Vd=(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"}}}}},Kd=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Rl=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let pi=!0;function Fn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Rl)return Object.assign.apply(Object,[{}].concat(t));pi=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),pi=!0,r}const ja={};function Ud(){}function Gd(e){let t,n=e,r=Ud;return Rl&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return pi&&t.add(i),o[i]}}),r=(o,i)=>{var a;ja[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=ja[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}}const Xd=(e,t)=>{const[n,r]=hr();return ci({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Tl()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},_l=Xd;function Nl(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return l=>{const[c,u,d]=hr(),{getPrefixCls:f,iconPrefixCls:m,csp:g}=j.useContext(Yt),h=f(),p={theme:c,token:u,hashId:d,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};return ci(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":Wd(u)}]),_l(m,g),[ci(Object.assign(Object.assign({},p),{path:[a,l,m]}),()=>{const{token:v,flush:C}=Gd(u),b=Object.assign({},u[i]);if(r.deprecatedTokens){const{deprecatedTokens:O}=r;O.forEach(k=>{let[I,_]=k;var N;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&mt(!(b!=null&&b[I]),`The token '${String(I)}' of ${i} had deprecated, use '${String(_)}' instead.`),(b!=null&&b[I]||b!=null&&b[_])&&((N=b[_])!==null&&N!==void 0||(b[_]=b==null?void 0:b[I]))})}const S=typeof n=="function"?n(Fn(v,b??{})):n,y=Object.assign(Object.assign({},S),b),w=`.${l}`,x=Fn(v,{componentCls:w,prefixCls:l,iconCls:`.${m}`,antCls:`.${h}`},y),E=t(x,{hashId:d,prefixCls:l,rootPrefixCls:h,iconPrefixCls:m,overrideComponentToken:b});return C(i,y),[r.resetStyle===!1?null:Vd(u,l),E]}),d]}}function Yd(e,t){return Jr.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}function qd(e,t){const n=e||{},r=n.inherit===!1||!t?xl:t;return oo(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,i)=>o.some((a,l)=>{const c=i[l];return!zi(a,c,!0)}))}var Qd=["children"],Al=s.createContext({});function Zd(e){var t=e.children,n=Be(e,Qd);return s.createElement(Al.Provider,{value:n},t)}var Jd=function(e){lo(n,e);var t=co(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),dn="none",Ar="appear",kr="enter",Dr="leave",za="none",Rt="prepare",Dn="start",Ln="active",Gi="end",kl="prepared";function Ba(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 ev(e,t){var n={animationend:Ba("Animation","AnimationEnd"),transitionend:Ba("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var tv=ev(ut(),typeof window<"u"?window:{}),Dl={};if(ut()){var nv=document.createElement("div");Dl=nv.style}var Lr={};function Ll(e){if(Lr[e])return Lr[e];var t=tv[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Dl)return Lr[e]=t[i],Lr[e]}return""}var jl=Ll("animationend"),zl=Ll("transitionend"),Bl=!!(jl&&zl),Ha=jl||"animationend",Fa=zl||"transitionend";function Wa(e,t){if(!e)return null;if(We(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const rv=function(e){var t=j.useRef(),n=j.useRef(e);n.current=e;var r=s.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener(Fa,r),a.removeEventListener(Ha,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(Fa,r),a.addEventListener(Ha,r),t.current=a)}return s.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};var Hl=ut()?j.useLayoutEffect:j.useEffect;const ov=function(){var e=s.useRef(null);function t(){Nt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Nt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return s.useEffect(function(){return function(){t()}},[]),[n,t]};var iv=[Rt,Dn,Ln,Gi],av=[Rt,kl],Fl=!1,sv=!0;function Wl(e){return e===Ln||e===Gi}const lv=function(e,t,n){var r=jn(za),o=D(r,2),i=o[0],a=o[1],l=ov(),c=D(l,2),u=c[0],d=c[1];function f(){a(Rt,!0)}var m=t?av:iv;return Hl(function(){if(i!==za&&i!==Gi){var g=m.indexOf(i),h=m[g+1],p=n(i);p===Fl?a(h,!0):h&&u(function(v){function C(){v.isCanceled()||a(h,!0)}p===!0?C():Promise.resolve(p).then(C)})}},[e,i]),s.useEffect(function(){return function(){d()}},[]),[f,i]};function cv(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,p=r.onAppearStart,v=r.onEnterStart,C=r.onLeaveStart,b=r.onAppearActive,S=r.onEnterActive,y=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,O=r.onVisibleChanged,k=jn(),I=D(k,2),_=I[0],N=I[1],$=jn(dn),P=D($,2),M=P[0],R=P[1],T=jn(null),F=D(T,2),z=F[0],U=F[1],oe=j.useRef(!1),G=j.useRef(null);function se(){return n()}var q=j.useRef(!1);function le(){R(dn,!0),U(null,!0)}function ae(de){var re=se();if(!(de&&!de.deadline&&de.target!==re)){var ie=q.current,Z;M===Ar&&ie?Z=w==null?void 0:w(re,de):M===kr&&ie?Z=x==null?void 0:x(re,de):M===Dr&&ie&&(Z=E==null?void 0:E(re,de)),M!==dn&&ie&&Z!==!1&&le()}}var te=rv(ae),ne=D(te,1),pe=ne[0],he=function(re){var ie,Z,J;switch(re){case Ar:return ie={},K(ie,Rt,m),K(ie,Dn,p),K(ie,Ln,b),ie;case kr:return Z={},K(Z,Rt,g),K(Z,Dn,v),K(Z,Ln,S),Z;case Dr:return J={},K(J,Rt,h),K(J,Dn,C),K(J,Ln,y),J;default:return{}}},ee=s.useMemo(function(){return he(M)},[M]),Oe=lv(M,!e,function(de){if(de===Rt){var re=ee[Rt];return re?re(se()):Fl}if(ue in ee){var ie;U(((ie=ee[ue])===null||ie===void 0?void 0:ie.call(ee,se(),null))||null)}return ue===Ln&&(pe(se()),d>0&&(clearTimeout(G.current),G.current=setTimeout(function(){ae({deadline:!0})},d))),ue===kl&&le(),sv}),Se=D(Oe,2),A=Se[0],ue=Se[1],ce=Wl(ue);q.current=ce,Hl(function(){N(t);var de=oe.current;oe.current=!0;var re;!de&&t&&l&&(re=Ar),de&&t&&i&&(re=kr),(de&&!t&&u||!de&&f&&!t&&u)&&(re=Dr);var ie=he(re);re&&(e||ie[Rt])?(R(re),A()):R(dn)},[t]),j.useEffect(function(){(M===Ar&&!l||M===kr&&!i||M===Dr&&!u)&&R(dn)},[l,i,u]),j.useEffect(function(){return function(){oe.current=!1,clearTimeout(G.current)}},[]);var Re=s.useRef(!1);j.useEffect(function(){_&&(Re.current=!0),_!==void 0&&M===dn&&((Re.current||_)&&(O==null||O(_)),Re.current=!0)},[_,M]);var X=z;return ee[Rt]&&ue===Dn&&(X=L({transition:"none"},X)),[M,ue,X,_??t]}function uv(e){var t=e;We(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=s.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,g=o.leavedClassName,h=o.eventProps,p=s.useContext(Al),v=p.motion,C=n(o,v),b=j.useRef(),S=j.useRef();function y(){try{return b.current instanceof HTMLElement?b.current:zr(S.current)}catch{return null}}var w=cv(C,l,y,o),x=D(w,4),E=x[0],O=x[1],k=x[2],I=x[3],_=s.useRef(I);I&&(_.current=!0);var N=s.useCallback(function(U){b.current=U,ki(i,U)},[i]),$,P=L(L({},h),{},{visible:l});if(!f)$=null;else if(E===dn)I?$=f(L({},P),N):!u&&_.current&&g?$=f(L(L({},P),{},{className:g}),N):d||!u&&!g?$=f(L(L({},P),{},{style:{display:"none"}}),N):$=null;else{var M,R;O===Rt?R="prepare":Wl(O)?R="active":O===Dn&&(R="start");var T=Wa(m,"".concat(E,"-").concat(R));$=f(L(L({},P),{},{className:fe(Wa(m,E),(M={},K(M,T,T&&R),K(M,m,typeof m=="string"),M)),style:k}),N)}if(s.isValidElement($)&&ao($)){var F=$,z=F.ref;z||($=s.cloneElement($,{ref:N}))}return s.createElement(Jd,{ref:S},$)});return r.displayName="CSSMotion",r}const ho=uv(Bl);var hi="add",bi="keep",yi="remove",Ko="removed";function fv(e){var t;return e&&We(e)==="object"&&"key"in e?t=e:t={key:e},L(L({},t),{},{key:String(t.key)})}function Si(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(fv)}function dv(){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,i=Si(e),a=Si(t);i.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===u.key){r<f&&(n=n.concat(a.slice(r,f).map(function(g){return L(L({},g),{},{status:hi})})),r=f),n.push(L(L({},m),{},{status:bi})),r+=1,d=!0;break}}d||n.push(L(L({},u),{},{status:yi}))}),r<o&&(n=n.concat(a.slice(r).map(function(u){return L(L({},u),{},{status:hi})})));var l={};n.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==yi}),n.forEach(function(d){d.key===u&&(d.status=bi)})}),n}var vv=["component","children","onVisibleChanged","onAllRemoved"],mv=["status"],gv=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ho,n=function(r){lo(i,r);var o=co(i);function i(){var a;rn(this,i);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return a=o.call.apply(o,[this].concat(c)),K(ei(a),"state",{keyEntities:[]}),K(ei(a),"removeKey",function(d){var f=a.state.keyEntities,m=f.map(function(g){return g.key!==d?g:L(L({},g),{},{status:Ko})});return a.setState({keyEntities:m}),m.filter(function(g){var h=g.status;return h!==Ko}).length}),a}return on(i,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged,g=u.onAllRemoved,h=Be(u,vv),p=d||s.Fragment,v={};return gv.forEach(function(C){v[C]=h[C],delete h[C]}),delete h.keys,s.createElement(p,h,c.map(function(C,b){var S=C.status,y=Be(C,mv),w=S===hi||S===bi;return s.createElement(t,Pe({},v,{key:y.key,visible:w,eventProps:y,onVisibleChanged:function(E){if(m==null||m(E,{key:y.key}),!E){var O=l.removeKey(y.key);O===0&&g&&g()}}}),function(x,E){return f(L(L({},x),{},{index:b}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,d=c.keyEntities,f=Si(u),m=dv(d,f);return{keyEntities:m.filter(function(g){var h=d.find(function(p){var v=p.key;return g.key===v});return!(h&&h.status===Ko&&g.status===yi)})}}}]),i}(s.Component);return K(n,"defaultProps",{component:"div"}),n}pv(Bl);function hv(e){const{children:t}=e,[,n]=hr(),{motion:r}=n,o=s.useRef(!1);return o.current=o.current||r===!1,o.current?s.createElement(Zd,{motion:r},t):t}const Vl=s.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return mo("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(Vl.displayName="PropWarning");const bv=process.env.NODE_ENV!=="production"?Vl:()=>null;var yv=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 Ci=!1;process.env.NODE_ENV;const Sv=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],Cv="ant";let Kl;function Ev(){return Kl||Cv}function wv(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const xv=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(Kl=t),r&&wv(r)&&(process.env.NODE_ENV!=="production"&&go(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ad(Ev(),r))},Ov=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:p,parentContext:v,iconPrefixCls:C,theme:b,componentDisabled:S,segmented:y,statistic:w,spin:x,calendar:E,carousel:O,cascader:k,collapse:I,typography:_,checkbox:N,descriptions:$,divider:P,drawer:M,skeleton:R,steps:T,image:F,layout:z,list:U,mentions:oe,modal:G,progress:se,result:q,slider:le,breadcrumb:ae,menu:te,pagination:ne,input:pe,empty:he,badge:ee,radio:Oe,rate:Se,switch:A,transfer:ue,avatar:ce,message:Re,tag:X,table:de,card:re,tabs:ie,timeline:Z,timePicker:J,upload:He,notification:nt,tree:Ie,colorPicker:gt,datePicker:Le,rangePicker:Te,flex:rt,wave:Ne,dropdown:ft,warning:Ae}=e,dt=s.useCallback((Y,Ee)=>{const{prefixCls:B}=e;if(Ee)return Ee;const V=B||v.getPrefixCls("");return Y?`${V}-${Y}`:V},[v.getPrefixCls,e.prefixCls]),ke=C||v.iconPrefixCls||$l,be=n||v.csp;_l(ke,be);const Me=qd(b,v.theme);process.env.NODE_ENV!=="production"&&(Ci=Ci||!!Me);const Ye={csp:be,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??m,popupOverflow:h,getPrefixCls:dt,iconPrefixCls:ke,theme:Me,segmented:y,statistic:w,spin:x,calendar:E,carousel:O,cascader:k,collapse:I,typography:_,checkbox:N,descriptions:$,divider:P,drawer:M,skeleton:R,steps:T,image:F,input:pe,layout:z,list:U,mentions:oe,modal:G,progress:se,result:q,slider:le,breadcrumb:ae,menu:te,pagination:ne,empty:he,badge:ee,radio:Oe,rate:Se,switch:A,transfer:ue,avatar:ce,message:Re,tag:X,table:de,card:re,tabs:ie,timeline:Z,timePicker:J,upload:He,notification:nt,tree:Ie,colorPicker:gt,datePicker:Le,rangePicker:Te,flex:rt,wave:Ne,dropdown:ft,warning:Ae},De=Object.assign({},v);Object.keys(Ye).forEach(Y=>{Ye[Y]!==void 0&&(De[Y]=Ye[Y])}),Sv.forEach(Y=>{const Ee=e[Y];Ee&&(De[Y]=Ee)});const Qe=oo(()=>De,De,(Y,Ee)=>{const B=Object.keys(Y),V=Object.keys(Ee);return B.length!==V.length||B.some(ye=>Y[ye]!==Ee[ye])}),vt=s.useMemo(()=>({prefixCls:ke,csp:be}),[ke,be]);let ve=s.createElement(s.Fragment,null,s.createElement(bv,{dropdownMatchSelectWidth:m}),t);const me=s.useMemo(()=>{var Y,Ee,B,V;return Wf(((Y=po.Form)===null||Y===void 0?void 0:Y.defaultValidateMessages)||{},((B=(Ee=Qe.locale)===null||Ee===void 0?void 0:Ee.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{},((V=Qe.form)===null||V===void 0?void 0:V.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Qe,a==null?void 0:a.validateMessages]);Object.keys(me).length>0&&(ve=s.createElement(Kf.Provider,{value:me},ve)),l&&(ve=s.createElement(Jf,{locale:l,_ANT_MARK__:hl},ve)),(ke||be)&&(ve=s.createElement(Vi.Provider,{value:vt},ve)),c&&(ve=s.createElement(Ld,{size:c},ve)),ve=s.createElement(hv,null,ve);const Ce=s.useMemo(()=>{const Y=Me||{},{algorithm:Ee,token:B,components:V}=Y,ye=yv(Y,["algorithm","token","components"]),Fe=Ee&&(!Array.isArray(Ee)||Ee.length>0)?oi(Ee):wl,Ve={};Object.entries(V||{}).forEach(an=>{let[jt,wt]=an;const Ke=Object.assign({},wt);"algorithm"in Ke&&(Ke.algorithm===!0?Ke.theme=Fe:(Array.isArray(Ke.algorithm)||typeof Ke.algorithm=="function")&&(Ke.theme=oi(Ke.algorithm)),delete Ke.algorithm),Ve[jt]=Ke});const ot=Object.assign(Object.assign({},mr),B);return Object.assign(Object.assign({},ye),{theme:Fe,token:ot,components:Ve,override:Object.assign({override:ot},Ve)})},[Me]);return b&&(ve=s.createElement(Ol.Provider,{value:Ce},ve)),Qe.warning&&(ve=s.createElement(ml.Provider,{value:Qe.warning},ve)),S!==void 0&&(ve=s.createElement(kd,{disabled:S},ve)),s.createElement(Yt.Provider,{value:Qe},ve)},Un=e=>{const t=s.useContext(Yt),n=s.useContext(pl);return s.createElement(Ov,Object.assign({parentContext:t,legacyLocale:n},e))};Un.ConfigContext=Yt;Un.SizeContext=Ui;Un.config=xv;Un.useConfig=jd;Object.defineProperty(Un,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&go(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ui)});process.env.NODE_ENV!=="production"&&(Un.displayName="ConfigProvider");function yn(){return yn=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},yn.apply(this,arguments)}function $v(e){if(Array.isArray(e))return e}function Iv(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function Va(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 Mv(e,t){if(e){if(typeof e=="string")return Va(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 Va(e,t)}}function Pv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ul(e,t){return $v(e)||Iv(e,t)||Mv(e,t)||Pv()}function Sn(e){"@babel/helpers - typeof";return Sn=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},Sn(e)}function Tv(e,t){if(Sn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rv(e){var t=Tv(e,"string");return Sn(t)==="symbol"?t:String(t)}function Ei(e,t,n){return t=Rv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _v(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Gl(e,t){if(e==null)return{};var n=_v(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ka(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?Ka(Object(n),!0).forEach(function(r){Ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nv(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Av(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 Ua="data-rc-order",Ga="data-rc-priority",kv="rc-util-key",wi=new Map;function Xl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kv}function Xi(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Dv(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Yl(e){return Array.from((wi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Nv())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=Dv(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(Ua,a),l&&i&&c.setAttribute(Ga,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Xi(t),d=u.firstChild;if(r){if(l){var f=Yl(u).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Ua)))return!1;var g=Number(m.getAttribute(Ga)||0);return i>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function Lv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Xi(t);return Yl(n).find(function(r){return r.getAttribute(Xl(t))===e})}function jv(e,t){var n=wi.get(e);if(!n||!Av(document,n)){var r=ql("",t),o=r.parentNode;wi.set(e,o),e.removeChild(r)}}function zv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Xi(n);jv(r,n);var o=Lv(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.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=ql(e,n);return c.setAttribute(Xl(n),t),c}function Ql(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Bv(e){return Ql(e)instanceof ShadowRoot}function Hv(e){return Bv(e)?Ql(e):null}var xi={},Yi=[],Fv=function(t){Yi.push(t)};function Wv(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Yi.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Vv(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Yi.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Kv(){xi={}}function Zl(e,t,n){!t&&!xi[n]&&(e(!1,n),xi[n]=!0)}function bo(e,t){Zl(Wv,e,t)}function Uv(e,t){Zl(Vv,e,t)}bo.preMessage=Fv;bo.resetWarned=Kv;bo.noteOnce=Uv;function Gv(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Xv(e,t){bo(e,"[@ant-design/icons] ".concat(t))}function Xa(e){return Sn(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Sn(e.icon)==="object"||typeof e.icon=="function")}function Ya(){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[Gv(n)]=r}return t},{})}function Oi(e,t,n){return n?j.createElement(e.tag,tn(tn({key:t},Ya(e.attrs)),n),(e.children||[]).map(function(r,o){return Oi(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):j.createElement(e.tag,tn({key:t},Ya(e.attrs)),(e.children||[]).map(function(r,o){return Oi(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Jl(e){return bn(e)[0]}function ec(e){return e?Array.isArray(e)?e:[e]:[]}var Yv=`
65
- .anticon {
66
- display: inline-block;
67
- color: inherit;
68
- font-style: normal;
69
- line-height: 0;
70
- text-align: center;
71
- text-transform: none;
72
- vertical-align: -0.125em;
73
- text-rendering: optimizeLegibility;
74
- -webkit-font-smoothing: antialiased;
75
- -moz-osx-font-smoothing: grayscale;
76
- }
77
-
78
- .anticon > * {
79
- line-height: 1;
80
- }
81
-
82
- .anticon svg {
83
- display: inline-block;
84
- }
85
-
86
- .anticon::before {
87
- display: none;
88
- }
89
-
90
- .anticon .anticon-icon {
91
- display: block;
92
- }
93
-
94
- .anticon[tabindex] {
95
- cursor: pointer;
96
- }
97
-
98
- .anticon-spin::before,
99
- .anticon-spin {
100
- display: inline-block;
101
- -webkit-animation: loadingCircle 1s infinite linear;
102
- animation: loadingCircle 1s infinite linear;
103
- }
104
-
105
- @-webkit-keyframes loadingCircle {
106
- 100% {
107
- -webkit-transform: rotate(360deg);
108
- transform: rotate(360deg);
109
- }
110
- }
111
-
112
- @keyframes loadingCircle {
113
- 100% {
114
- -webkit-transform: rotate(360deg);
115
- transform: rotate(360deg);
116
- }
117
- }
118
- `,qv=function(t){var n=j.useContext(Vi),r=n.csp,o=n.prefixCls,i=Yv;o&&(i=i.replace(/anticon/g,o)),j.useEffect(function(){var a=t.current,l=Hv(a);zv(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},Qv=["icon","className","onClick","style","primaryColor","secondaryColor"],lr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Zv(e){var t=e.primaryColor,n=e.secondaryColor;lr.primaryColor=t,lr.secondaryColor=n||Jl(t),lr.calculated=!!n}function Jv(){return tn({},lr)}var yo=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,c=Gl(t,Qv),u=s.useRef(),d=lr;if(a&&(d={primaryColor:a,secondaryColor:l||Jl(a)}),qv(u),Xv(Xa(n),"icon should be icon definiton, but got ".concat(n)),!Xa(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=tn(tn({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Oi(f.icon,"svg-".concat(f.name),tn(tn({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};yo.displayName="IconReact";yo.getTwoToneColors=Jv;yo.setTwoToneColors=Zv;const qi=yo;function tc(e){var t=ec(e),n=Ul(t,2),r=n[0],o=n[1];return qi.setTwoToneColors({primaryColor:r,secondaryColor:o})}function em(){var e=qi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var tm=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];tc(pd.primary);var So=s.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=Gl(e,tm),f=s.useContext(Vi),m=f.prefixCls,g=m===void 0?"anticon":m,h=f.rootClassName,p=fe(h,g,(n={},Ei(n,"".concat(g,"-").concat(o.name),!!o.name),Ei(n,"".concat(g,"-spin"),!!i||o.name==="loading"),n),r),v=l;v===void 0&&c&&(v=-1);var C=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=ec(u),S=Ul(b,2),y=S[0],w=S[1];return s.createElement("span",yn({role:"img","aria-label":o.name},d,{ref:t,tabIndex:v,onClick:c,className:p}),s.createElement(qi,{icon:o,primaryColor:y,secondaryColor:w,style:C}))});So.displayName="AntdIcon";So.getTwoToneColor=em;So.setTwoToneColor=tc;const Co=So,{isValidElement:nn}=s;function nm(e){return e&&nn(e)&&e.type===s.Fragment}function rm(e,t,n){return nn(e)?s.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Eo(e,t){return rm(e,e,t)}var W={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>=W.F1&&n<=W.F12)return!1;switch(n){case W.ALT:case W.CAPS_LOCK:case W.CONTEXT_MENU:case W.CTRL:case W.DOWN:case W.END:case W.ESC:case W.HOME:case W.INSERT:case W.LEFT:case W.MAC_FF_META:case W.META:case W.NUMLOCK:case W.NUM_CENTER:case W.PAGE_DOWN:case W.PAGE_UP:case W.PAUSE:case W.PRINT_SCREEN:case W.RIGHT:case W.SHIFT:case W.UP:case W.WIN_KEY:case W.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=W.ZERO&&t<=W.NINE||t>=W.NUM_ZERO&&t<=W.NUM_MULTIPLY||t>=W.A&&t<=W.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case W.SPACE:case W.QUESTION_MARK:case W.NUM_PLUS:case W.NUM_MINUS:case W.NUM_PERIOD:case W.NUM_DIVISION:case W.SEMICOLON:case W.DASH:case W.EQUALS:case W.COMMA:case W.PERIOD:case W.SLASH:case W.APOSTROPHE:case W.SINGLE_QUOTE:case W.OPEN_SQUARE_BRACKET:case W.BACKSLASH:case W.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Uo=()=>({height:0,opacity:0}),qa=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},om=e=>({height:e?e.offsetHeight:0}),Go=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",im=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Uo,onEnterStart:Uo,onAppearActive:qa,onEnterActive:qa,onLeaveStart:om,onLeaveActive:Uo,onAppearEnd:Go,onEnterEnd:Go,onLeaveEnd:Go,motionDeadline:500}},am=(e,t,n)=>n!==void 0?n:`${e}-${t}`,sm=im,nc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};globalThis&&globalThis.__rest;const lm=s.createContext(null),cm=e=>{let{children:t}=e;return s.createElement(lm.Provider,{value:null},t)};var rc=s.createContext(null),Qa=[];function um(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=D(n,1),o=r[0],i=s.useRef(!1),a=s.useContext(rc),l=s.useState(Qa),c=D(l,2),u=c[0],d=c[1],f=a||(i.current?void 0:function(h){d(function(p){var v=[h].concat(Ge(p));return v})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return st(function(){return e?a?a(m):m():g(),g},[e]),st(function(){u.length&&(u.forEach(function(h){return h()}),d(Qa))},[u]),[o,f]}var Xo;function fm(e){if(typeof document>"u")return 0;if(e||Xo===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 i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),Xo=o-i}return Xo}function Za(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?fm():n}function dm(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:Za(n),height:Za(r)}}function vm(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var mm="rc-util-locker-".concat(Date.now()),Ja=0;function gm(e){var t=!!e,n=s.useState(function(){return Ja+=1,"".concat(mm,"_").concat(Ja)}),r=D(n,1),o=r[0];st(function(){if(t){var i=dm(document.body).width,a=vm();fr(`
119
- html body {
120
- overflow-y: hidden;
121
- `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
122
- }`),o)}else Qr(o);return function(){Qr(o)}},[t,o])}var es=!1;function pm(e){return typeof e=="boolean"&&(es=e),es}var ts=function(t){return t===!1?!1:!ut()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Qi=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,c=e.children,u=s.useState(n),d=D(u,2),f=d[0],m=d[1],g=f||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)&&m(n)},[n,l]);var h=s.useState(function(){return ts(o)}),p=D(h,2),v=p[0],C=p[1];s.useEffect(function(){var N=ts(o);C(N??null)});var b=um(g&&!v,i),S=D(b,2),y=S[0],w=S[1],x=v??y;gm(r&&n&&ut()&&(x===y||x===document.body));var E=null;if(c&&ao(c)&&t){var O=c;E=O.ref}var k=io(E,t);if(!g||!ut()||v===void 0)return null;var I=x===!1||pm(),_=c;return t&&(_=s.cloneElement(c,{ref:k})),s.createElement(rc.Provider,{value:w},I?_:ro.createPortal(_,x))});process.env.NODE_ENV!=="production"&&(Qi.displayName="Portal");function hm(){var e=L({},s);return e.useId}var ns=0,rs=hm();const bm=rs?function(t){var n=rs();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=s.useState("ssr-id"),r=D(n,2),o=r[0],i=r[1];return s.useEffect(function(){var a=ns;ns+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},ym=j.createContext(void 0),oc=ym,Sm=e=>({animationDuration:e,animationFillMode:"both"}),Cm=e=>({animationDuration:e,animationFillMode:"both"}),ic=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
123
- ${i}${e}-enter,
124
- ${i}${e}-appear
125
- `]:Object.assign(Object.assign({},Sm(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Cm(r)),{animationPlayState:"paused"}),[`
126
- ${i}${e}-enter${e}-enter-active,
127
- ${i}${e}-appear${e}-appear-active
128
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Em=new Xe("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),wm=new Xe("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),xm=new Xe("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Om=new Xe("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$m=new Xe("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Im=new Xe("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mm=new Xe("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Pm=new Xe("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Tm={"slide-up":{inKeyframes:Em,outKeyframes:wm},"slide-down":{inKeyframes:xm,outKeyframes:Om},"slide-left":{inKeyframes:$m,outKeyframes:Im},"slide-right":{inKeyframes:Mm,outKeyframes:Pm}},os=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Tm[t];return[ic(r,o,i,e.motionDurationMid),{[`
129
- ${r}-enter,
130
- ${r}-appear
131
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Rm=new Xe("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_m=new Xe("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),is=new Xe("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),as=new Xe("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Nm=new Xe("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Am=new Xe("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),km=new Xe("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Dm=new Xe("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Lm=new Xe("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),jm=new Xe("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),zm=new Xe("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Bm=new Xe("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Hm={zoom:{inKeyframes:Rm,outKeyframes:_m},"zoom-big":{inKeyframes:is,outKeyframes:as},"zoom-big-fast":{inKeyframes:is,outKeyframes:as},"zoom-left":{inKeyframes:km,outKeyframes:Dm},"zoom-right":{inKeyframes:Lm,outKeyframes:jm},"zoom-up":{inKeyframes:Nm,outKeyframes:Am},"zoom-down":{inKeyframes:zm,outKeyframes:Bm}},ac=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Hm[t];return[ic(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
132
- ${r}-enter,
133
- ${r}-appear
134
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Fm=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
135
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
136
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Wm=Fm,sc={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},Vm={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function Km(e){return e in sc}function lc(e,t){const[,n]=hr(),r=j.useContext(oc),o=Km(e);let i=r??0;return o?i+=n.zIndexPopupBase+sc[e]:i+=Vm[e],[r===void 0?t:i,i]}const Um=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 Gm=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Pn=void 0;function Xm(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,g=e.display,h=e.order,p=e.component,v=p===void 0?"div":p,C=Be(e,Gm),b=a&&!g;function S(O){c(u,O)}s.useEffect(function(){return function(){S(null)}},[]);var y=i&&o!==Pn?i(o):m,w;r||(w={opacity:b?0:1,height:b?0:Pn,overflowY:b?"hidden":Pn,order:a?h:Pn,pointerEvents:b?"none":Pn,position:b?"absolute":Pn});var x={};b&&(x["aria-hidden"]=!0);var E=s.createElement(v,Pe({className:fe(!r&&n,d),style:L(L({},w),f)},x,C,{ref:t}),y);return a&&(E=s.createElement(Wn,{onResize:function(k){var I=k.offsetWidth;S(I)},disabled:l},E)),E}var cr=s.forwardRef(Xm);cr.displayName="Item";function Ym(e){if(typeof MessageChannel>"u")Nt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function qm(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],Ym(function(){ro.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function tr(e,t){var n=s.useState(t),r=D(n,2),o=r[0],i=r[1],a=_t(function(l){e(function(){i(l)})});return[o,a]}var eo=j.createContext(null),Qm=["component"],Zm=["className"],Jm=["className"],eg=function(t,n){var r=s.useContext(eo);if(!r){var o=t.component,i=o===void 0?"div":o,a=Be(t,Qm);return s.createElement(i,Pe({},a,{ref:n}))}var l=r.className,c=Be(r,Zm),u=t.className,d=Be(t,Jm);return s.createElement(eo.Provider,{value:null},s.createElement(cr,Pe({ref:n,className:fe(l,u)},c,d)))},cc=s.forwardRef(eg);cc.displayName="RawItem";var tg=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],uc="responsive",fc="invalidate";function ng(e){return"+ ".concat(e.length," ...")}function rg(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,g=e.className,h=e.maxCount,p=e.renderRest,v=e.renderRawRest,C=e.suffix,b=e.component,S=b===void 0?"div":b,y=e.itemComponent,w=e.onVisibleChange,x=Be(e,tg),E=f==="full",O=qm(),k=tr(O,null),I=D(k,2),_=I[0],N=I[1],$=_||0,P=tr(O,new Map),M=D(P,2),R=M[0],T=M[1],F=tr(O,0),z=D(F,2),U=z[0],oe=z[1],G=tr(O,0),se=D(G,2),q=se[0],le=se[1],ae=tr(O,0),te=D(ae,2),ne=te[0],pe=te[1],he=j.useState(null),ee=D(he,2),Oe=ee[0],Se=ee[1],A=j.useState(null),ue=D(A,2),ce=ue[0],Re=ue[1],X=s.useMemo(function(){return ce===null&&E?Number.MAX_SAFE_INTEGER:ce||0},[ce,_]),de=j.useState(!1),re=D(de,2),ie=re[0],Z=re[1],J="".concat(r,"-item"),He=Math.max(U,q),nt=h===uc,Ie=i.length&&nt,gt=h===fc,Le=Ie||typeof h=="number"&&i.length>h,Te=j.useMemo(function(){var B=i;return Ie?_===null&&E?B=i:B=i.slice(0,Math.min(i.length,$/d)):typeof h=="number"&&(B=i.slice(0,h)),B},[i,d,_,h,Ie]),rt=j.useMemo(function(){return Ie?i.slice(X+1):i.slice(Te.length)},[i,Te,Ie,X]),Ne=j.useCallback(function(B,V){var ye;return typeof c=="function"?c(B):(ye=c&&(B==null?void 0:B[c]))!==null&&ye!==void 0?ye:V},[c]),ft=j.useCallback(a||function(B){return B},[a]);function Ae(B,V,ye){ce===B&&(V===void 0||V===Oe)||(Re(B),ye||(Z(B<i.length-1),w==null||w(B)),V!==void 0&&Se(V))}function dt(B,V){N(V.clientWidth)}function ke(B,V){T(function(ye){var Fe=new Map(ye);return V===null?Fe.delete(B):Fe.set(B,V),Fe})}function be(B,V){le(V),oe(q)}function Me(B,V){pe(V)}function Ye(B){return R.get(Ne(Te[B],B))}st(function(){if($&&typeof He=="number"&&Te){var B=ne,V=Te.length,ye=V-1;if(!V){Ae(0,null);return}for(var Fe=0;Fe<V;Fe+=1){var Ve=Ye(Fe);if(E&&(Ve=Ve||0),Ve===void 0){Ae(Fe-1,void 0,!0);break}if(B+=Ve,ye===0&&B<=$||Fe===ye-1&&B+Ye(ye)<=$){Ae(ye,null);break}else if(B+He>$){Ae(Fe-1,B-Ve-ne+q);break}}C&&Ye(0)+ne>$&&Se(null)}},[$,R,q,ne,Ne,Te]);var De=ie&&!!rt.length,Qe={};Oe!==null&&Ie&&(Qe={position:"absolute",left:Oe,top:0});var vt={prefixCls:J,responsive:Ie,component:y,invalidate:gt},ve=l?function(B,V){var ye=Ne(B,V);return s.createElement(eo.Provider,{key:ye,value:L(L({},vt),{},{order:V,item:B,itemKey:ye,registerSize:ke,display:V<=X})},l(B,V))}:function(B,V){var ye=Ne(B,V);return s.createElement(cr,Pe({},vt,{order:V,key:ye,item:B,renderItem:ft,itemKey:ye,registerSize:ke,display:V<=X}))},me,Ce={order:De?X:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:be,display:De};if(v)v&&(me=s.createElement(eo.Provider,{value:L(L({},vt),Ce)},v(rt)));else{var Y=p||ng;me=s.createElement(cr,Pe({},vt,Ce),typeof Y=="function"?Y(rt):Y)}var Ee=s.createElement(S,Pe({className:fe(!gt&&r,g),style:m,ref:t},x),Te.map(ve),Le?me:null,C&&s.createElement(cr,Pe({},vt,{responsive:nt,responsiveDisabled:!Ie,order:X,className:"".concat(J,"-suffix"),registerSize:Me,display:!0,style:Qe}),C));return nt&&(Ee=s.createElement(Wn,{onResize:dt,disabled:!Ie},Ee)),Ee}var Xt=s.forwardRef(rg);Xt.displayName="Overflow";Xt.Item=cc;Xt.RESPONSIVE=uc;Xt.INVALIDATE=fc;function dc(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function og(e){return dc(e)instanceof ShadowRoot}function $i(e){return og(e)?dc(e):null}function ig(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=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],v=h[0],C=h[1],b=p[0],S=p[1];v===b||!["t","b"].includes(v)?g.top=f:v==="t"?g.top=0:g.bottom=0,C===S||!["l","r"].includes(C)?g.left=u:C==="l"?g.left=0:g.right=0}return s.createElement("div",{ref:m,className:fe("".concat(t,"-arrow"),a),style:g},l)}function ag(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?s.createElement(ho,Pe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return s.createElement("div",{style:{zIndex:r},className:fe("".concat(t,"-mask"),l)})}):null}var vc=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(vc.displayName="PopupContent");var mc=s.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,g=e.arrow,h=e.arrowPos,p=e.align,v=e.motion,C=e.maskMotion,b=e.forceRender,S=e.getPopupContainer,y=e.autoDestroy,w=e.portal,x=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,k=e.onPointerEnter,I=e.ready,_=e.offsetX,N=e.offsetY,$=e.offsetR,P=e.offsetB,M=e.onAlign,R=e.onPrepare,T=e.stretch,F=e.targetWidth,z=e.targetHeight,U=typeof n=="function"?n():n,oe=c||u,G=(S==null?void 0:S.length)>0,se=s.useState(!S||!G),q=D(se,2),le=q[0],ae=q[1];if(st(function(){!le&&G&&a&&ae(!0)},[le,G,a]),!le)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(I||!c){var pe,he=p.points,ee=p.dynamicInset||((pe=p._experimental)===null||pe===void 0?void 0:pe.dynamicInset),Oe=ee&&he[0][1]==="r",Se=ee&&he[0][0]==="b";Oe?(ne.right=$,ne.left=te):(ne.left=_,ne.right=te),Se?(ne.bottom=P,ne.top=te):(ne.top=N,ne.bottom=te)}var A={};return T&&(T.includes("height")&&z?A.height=z:T.includes("minHeight")&&z&&(A.minHeight=z),T.includes("width")&&F?A.width=F:T.includes("minWidth")&&F&&(A.minWidth=F)),c||(A.pointerEvents="none"),s.createElement(w,{open:b||oe,getContainer:S&&function(){return S(a)},autoDestroy:y},s.createElement(ag,{prefixCls:o,open:c,zIndex:x,mask:m,motion:C}),s.createElement(Wn,{onResize:M,disabled:!c},function(ue){return s.createElement(ho,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:R,onEnterPrepare:R,visible:c,onVisibleChanged:function(Re){var X;v==null||(X=v.onVisibleChanged)===null||X===void 0||X.call(v,Re),l(Re)}}),function(ce,Re){var X=ce.className,de=ce.style,re=fe(o,X,r);return s.createElement("div",{ref:As(ue,t,Re),className:re,style:L(L(L(L({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ne),A),de),{},{boxSizing:"border-box",zIndex:x},i),onMouseEnter:E,onMouseLeave:O,onPointerEnter:k,onClick:f},g&&s.createElement(ig,{prefixCls:o,arrow:g,arrowPos:h,align:p}),s.createElement(vc,{cache:!c&&!d},U))})}))});process.env.NODE_ENV!=="production"&&(mc.displayName="Popup");var gc=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ao(n),i=s.useCallback(function(l){ki(t,r?r(l):l)},[r]),a=io(i,n.ref);return o?s.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(gc.displayName="TriggerWrapper");var ss=s.createContext(null);function ls(e){return e?Array.isArray(e)?e:[e]:[]}function sg(e,t,n,r){return s.useMemo(function(){var o=ls(n??t),i=ls(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function lg(){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 cg(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(lg((l=e[c])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function cs(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function br(e){return e.ownerDocument.defaultView}function Ii(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=br(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function gr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function nr(e){return gr(parseFloat(e),0)}function us(e,t){var n=L({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=br(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,p=r.clientWidth,v=nr(l),C=nr(c),b=nr(u),S=nr(d),y=gr(Math.round(f.width/h*1e3)/1e3),w=gr(Math.round(f.height/m*1e3)/1e3),x=(h-p-b-S)*y,E=(m-g-v-C)*w,O=v*w,k=C*w,I=b*y,_=S*y,N=0,$=0;if(i==="clip"){var P=nr(a);N=P*y,$=P*w}var M=f.x+I-N,R=f.y+O-$,T=M+f.width+2*N-I-_-x,F=R+f.height+2*$-O-k-E;n.left=Math.max(n.left,M),n.top=Math.max(n.top,R),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,F)}}),n}function fs(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 ds(e,t){var n=t||[],r=D(n,2),o=r[0],i=r[1];return[fs(e.width,o),fs(e.height,i)]}function vs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Tn(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=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:i}}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,i,a){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=D(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?Ii(t):[]},[t]),g=s.useRef({}),h=function(){g.current={}};e||h();var p=_t(function(){if(t&&n&&e){let yt=function(Er,St){var $n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de,wr=z.x+Er,In=z.y+St,xr=wr+ne,Jn=In+te,Or=Math.max(wr,$n.left),Mo=Math.max(In,$n.top),Po=Math.min(xr,$n.right),To=Math.min(Jn,$n.bottom);return Math.max(0,(Po-Or)*(To-Mo))},Cr=function(){zt=z.y+Ce,xt=zt+te,Je=z.x+me,Dt=Je+ne};var b,S,y=t,w=y.ownerDocument,x=br(y),E=x.getComputedStyle(y),O=E.width,k=E.height,I=E.position,_=y.style.left,N=y.style.top,$=y.style.right,P=y.style.bottom,M=L(L({},o[r]),i),R=w.createElement("div");(b=y.parentElement)===null||b===void 0||b.appendChild(R),R.style.left="".concat(y.offsetLeft,"px"),R.style.top="".concat(y.offsetTop,"px"),R.style.position=I,R.style.height="".concat(y.offsetHeight,"px"),R.style.width="".concat(y.offsetWidth,"px"),y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto";var T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else{var F=n.getBoundingClientRect();T={x:F.x,y:F.y,width:F.width,height:F.height}}var z=y.getBoundingClientRect(),U=w.documentElement,oe=U.clientWidth,G=U.clientHeight,se=U.scrollWidth,q=U.scrollHeight,le=U.scrollTop,ae=U.scrollLeft,te=z.height,ne=z.width,pe=T.height,he=T.width,ee={left:0,top:0,right:oe,bottom:G},Oe={left:-ae,top:-le,right:se-ae,bottom:q-le},Se=M.htmlRegion,A="visible",ue="visibleFirst";Se!=="scroll"&&Se!==ue&&(Se=A);var ce=Se===ue,Re=us(Oe,m),X=us(ee,m),de=Se===A?X:Re,re=ce?X:de;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";var ie=y.getBoundingClientRect();y.style.left=_,y.style.top=N,y.style.right=$,y.style.bottom=P,(S=y.parentElement)===null||S===void 0||S.removeChild(R);var Z=gr(Math.round(ne/parseFloat(O)*1e3)/1e3),J=gr(Math.round(te/parseFloat(k)*1e3)/1e3);if(Z===0||J===0||Gr(n)&&!nc(n))return;var He=M.offset,nt=M.targetOffset,Ie=ds(z,He),gt=D(Ie,2),Le=gt[0],Te=gt[1],rt=ds(T,nt),Ne=D(rt,2),ft=Ne[0],Ae=Ne[1];T.x-=ft,T.y-=Ae;var dt=M.points||[],ke=D(dt,2),be=ke[0],Me=ke[1],Ye=vs(Me),De=vs(be),Qe=Tn(T,Ye),vt=Tn(z,De),ve=L({},M),me=Qe.x-vt.x+Le,Ce=Qe.y-vt.y+Te,Y=yt(me,Ce),Ee=yt(me,Ce,X),B=Tn(T,["t","l"]),V=Tn(z,["t","l"]),ye=Tn(T,["b","r"]),Fe=Tn(z,["b","r"]),Ve=M.overflow||{},ot=Ve.adjustX,an=Ve.adjustY,jt=Ve.shiftX,wt=Ve.shiftY,Ke=function(St){return typeof St=="boolean"?St:St>=0},zt,xt,Je,Dt;Cr();var sn=Ke(an),ln=De[0]===Ye[0];if(sn&&De[0]==="t"&&(xt>re.bottom||g.current.bt)){var Ot=Ce;ln?Ot-=te-pe:Ot=B.y-Fe.y-Te;var Cn=yt(me,Ot),qt=yt(me,Ot,X);Cn>Y||Cn===Y&&(!ce||qt>=Ee)?(g.current.bt=!0,Ce=Ot,Te=-Te,ve.points=[Jt(De,0),Jt(Ye,0)]):g.current.bt=!1}if(sn&&De[0]==="b"&&(zt<re.top||g.current.tb)){var Bt=Ce;ln?Bt+=te-pe:Bt=ye.y-V.y-Te;var it=yt(me,Bt),Yn=yt(me,Bt,X);it>Y||it===Y&&(!ce||Yn>=Ee)?(g.current.tb=!0,Ce=Bt,Te=-Te,ve.points=[Jt(De,0),Jt(Ye,0)]):g.current.tb=!1}var En=Ke(ot),cn=De[1]===Ye[1];if(En&&De[1]==="l"&&(Dt>re.right||g.current.rl)){var pt=me;cn?pt-=ne-he:pt=B.x-Fe.x-Le;var Qt=yt(pt,Ce),qn=yt(pt,Ce,X);Qt>Y||Qt===Y&&(!ce||qn>=Ee)?(g.current.rl=!0,me=pt,Le=-Le,ve.points=[Jt(De,1),Jt(Ye,1)]):g.current.rl=!1}if(En&&De[1]==="r"&&(Je<re.left||g.current.lr)){var Ht=me;cn?Ht+=ne-he:Ht=ye.x-V.x-Le;var wn=yt(Ht,Ce),xn=yt(Ht,Ce,X);wn>Y||wn===Y&&(!ce||xn>=Ee)?(g.current.lr=!0,me=Ht,Le=-Le,ve.points=[Jt(De,1),Jt(Ye,1)]):g.current.lr=!1}Cr();var lt=jt===!0?0:jt;typeof lt=="number"&&(Je<X.left&&(me-=Je-X.left-Le,T.x+he<X.left+lt&&(me+=T.x-X.left+he-lt)),Dt>X.right&&(me-=Dt-X.right-Le,T.x>X.right-lt&&(me+=T.x-X.right+lt)));var $t=wt===!0?0:wt;typeof $t=="number"&&(zt<X.top&&(Ce-=zt-X.top-Te,T.y+pe<X.top+$t&&(Ce+=T.y-X.top+pe-$t)),xt>X.bottom&&(Ce-=xt-X.bottom-Te,T.y>X.bottom-$t&&(Ce+=T.y-X.bottom+$t)));var un=z.x+me,On=un+ne,It=z.y+Ce,Ft=It+te,fn=T.x,Zt=fn+he,Mt=T.y,Qn=Mt+pe,_e=Math.max(un,fn),ge=Math.min(On,Zt),$e=(_e+ge)/2,Ze=$e-un,et=Math.max(It,Mt),Pt=Math.min(Ft,Qn),Lt=(et+Pt)/2,Zn=Lt-It;a==null||a(t,ve);var Io=ie.right-z.x-(me+z.width),Sr=ie.bottom-z.y-(Ce+z.height);d({ready:!0,offsetX:me/Z,offsetY:Ce/J,offsetR:Io/Z,offsetB:Sr/J,arrowX:Ze/Z,arrowY:Zn/J,scaleX:Z,scaleY:J,align:ve})}}),v=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&p()})},C=function(){d(function(S){return L(L({},S),{},{ready:!1})})};return st(C,[r]),st(function(){e||C()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function fg(e,t,n,r,o){st(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,l=Ii(i),c=Ii(a),u=br(a),d=new Set([u].concat(Ge(l),Ge(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function dg(e,t,n,r,o,i,a,l){var c=s.useRef(e),u=s.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),s.useEffect(function(){var d=Nt(function(){u.current=!1});return function(){Nt.cancel(d)}},[e]),s.useEffect(function(){if(t&&r&&(!o||i)){var d=function(){var I=!1,_=function(P){var M=P.target;I=a(M)},N=function(P){var M=P.target;!u.current&&c.current&&!I&&!a(M)&&l(!1)};return[_,N]},f=d(),m=D(f,2),g=m[0],h=m[1],p=d(),v=D(p,2),C=v[0],b=v[1],S=br(r);S.addEventListener("mousedown",g,!0),S.addEventListener("click",h,!0),S.addEventListener("contextmenu",h,!0);var y=$i(n);if(y&&(y.addEventListener("mousedown",C,!0),y.addEventListener("click",b,!0),y.addEventListener("contextmenu",b,!0)),process.env.NODE_ENV!=="production"){var w,x,E=n==null||(w=n.getRootNode)===null||w===void 0?void 0:w.call(n),O=(x=r.getRootNode)===null||x===void 0?void 0:x.call(r);zn(E===O,"trigger element and popup element should in same shadow root.")}return function(){S.removeEventListener("mousedown",g,!0),S.removeEventListener("click",h,!0),S.removeEventListener("contextmenu",h,!0),y&&(y.removeEventListener("mousedown",C,!0),y.removeEventListener("click",b,!0),y.removeEventListener("contextmenu",b,!0))}}},[t,n,r,o,i])}var vg=["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 mg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qi,t=s.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,p=n.mouseEnterDelay,v=n.mouseLeaveDelay,C=v===void 0?.1:v,b=n.focusDelay,S=n.blurDelay,y=n.mask,w=n.maskClosable,x=w===void 0?!0:w,E=n.getPopupContainer,O=n.forceRender,k=n.autoDestroy,I=n.destroyPopupOnHide,_=n.popup,N=n.popupClassName,$=n.popupStyle,P=n.popupPlacement,M=n.builtinPlacements,R=M===void 0?{}:M,T=n.popupAlign,F=n.zIndex,z=n.stretch,U=n.getPopupClassNameFromAlign,oe=n.fresh,G=n.alignPoint,se=n.onPopupClick,q=n.onPopupAlign,le=n.arrow,ae=n.popupMotion,te=n.maskMotion,ne=n.popupTransitionName,pe=n.popupAnimation,he=n.maskTransitionName,ee=n.maskAnimation,Oe=n.className,Se=n.getTriggerDOMNode,A=Be(n,vg),ue=k||I||!1,ce=s.useState(!1),Re=D(ce,2),X=Re[0],de=Re[1];st(function(){de(Um())},[]);var re=s.useRef({}),ie=s.useContext(ss),Z=s.useMemo(function(){return{registerSubPopup:function(Q,je){re.current[Q]=je,ie==null||ie.registerSubPopup(Q,je)}}},[ie]),J=bm(),He=s.useState(null),nt=D(He,2),Ie=nt[0],gt=nt[1],Le=_t(function(H){Gr(H)&&Ie!==H&&gt(H),ie==null||ie.registerSubPopup(J,H)}),Te=s.useState(null),rt=D(Te,2),Ne=rt[0],ft=rt[1],Ae=s.useRef(null),dt=_t(function(H){Gr(H)&&Ne!==H&&(ft(H),Ae.current=H)}),ke=s.Children.only(a),be=(ke==null?void 0:ke.props)||{},Me={},Ye=_t(function(H){var Q,je,qe=Ne;return(qe==null?void 0:qe.contains(H))||((Q=$i(qe))===null||Q===void 0?void 0:Q.host)===H||H===qe||(Ie==null?void 0:Ie.contains(H))||((je=$i(Ie))===null||je===void 0?void 0:je.host)===H||H===Ie||Object.values(re.current).some(function(ze){return(ze==null?void 0:ze.contains(H))||H===ze})}),De=cs(i,ae,pe,ne),Qe=cs(i,te,ee,he),vt=s.useState(m||!1),ve=D(vt,2),me=ve[0],Ce=ve[1],Y=f??me,Ee=_t(function(H){f===void 0&&Ce(H)});st(function(){Ce(f||!1)},[f]);var B=s.useRef(Y);B.current=Y;var V=s.useRef([]);V.current=[];var ye=_t(function(H){var Q;Ee(H),((Q=V.current[V.current.length-1])!==null&&Q!==void 0?Q:Y)!==H&&(V.current.push(H),g==null||g(H))}),Fe=s.useRef(),Ve=function(){clearTimeout(Fe.current)},ot=function(Q){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ve(),je===0?ye(Q):Fe.current=setTimeout(function(){ye(Q)},je*1e3)};s.useEffect(function(){return Ve},[]);var an=s.useState(!1),jt=D(an,2),wt=jt[0],Ke=jt[1];st(function(H){(!H||Y)&&Ke(!0)},[Y]);var zt=s.useState(null),xt=D(zt,2),Je=xt[0],Dt=xt[1],sn=s.useState([0,0]),ln=D(sn,2),Ot=ln[0],Cn=ln[1],qt=function(Q){Cn([Q.clientX,Q.clientY])},Bt=ug(Y,Ie,G?Ot:Ne,P,R,T,q),it=D(Bt,11),Yn=it[0],En=it[1],cn=it[2],pt=it[3],Qt=it[4],qn=it[5],Ht=it[6],wn=it[7],xn=it[8],lt=it[9],$t=it[10],un=sg(X,c,u,d),On=D(un,2),It=On[0],Ft=On[1],fn=It.has("click"),Zt=Ft.has("click")||Ft.has("contextMenu"),Mt=_t(function(){wt||$t()}),Qn=function(){B.current&&G&&Zt&&ot(!1)};fg(Y,Ne,Ie,Mt,Qn),st(function(){Mt()},[Ot,P]),st(function(){Y&&!(R!=null&&R[P])&&Mt()},[JSON.stringify(T)]);var _e=s.useMemo(function(){var H=cg(R,i,lt,G);return fe(H,U==null?void 0:U(lt))},[lt,U,R,i,G]);s.useImperativeHandle(r,function(){return{nativeElement:Ae.current,forceAlign:Mt}});var ge=s.useState(0),$e=D(ge,2),Ze=$e[0],et=$e[1],Pt=s.useState(0),Lt=D(Pt,2),Zn=Lt[0],Io=Lt[1],Sr=function(){if(z&&Ne){var Q=Ne.getBoundingClientRect();et(Q.width),Io(Q.height)}},yt=function(){Sr(),Mt()},Cr=function(Q){Ke(!1),$t(),h==null||h(Q)},Er=function(){return new Promise(function(Q){Sr(),Dt(function(){return Q})})};st(function(){Je&&($t(),Je(),Dt(null))},[Je]);function St(H,Q,je,qe){Me[H]=function(ze){var $r;qe==null||qe(ze),ot(Q,je);for(var Ro=arguments.length,aa=new Array(Ro>1?Ro-1:0),Ir=1;Ir<Ro;Ir++)aa[Ir-1]=arguments[Ir];($r=be[H])===null||$r===void 0||$r.call.apply($r,[be,ze].concat(aa))}}(fn||Zt)&&(Me.onClick=function(H){var Q;B.current&&Zt?ot(!1):!B.current&&fn&&(qt(H),ot(!0));for(var je=arguments.length,qe=new Array(je>1?je-1:0),ze=1;ze<je;ze++)qe[ze-1]=arguments[ze];(Q=be.onClick)===null||Q===void 0||Q.call.apply(Q,[be,H].concat(qe))}),dg(Y,Zt,Ne,Ie,y,x,Ye,ot);var $n=It.has("hover"),wr=Ft.has("hover"),In,xr;$n&&(St("onMouseEnter",!0,p,function(H){qt(H)}),St("onPointerEnter",!0,p,function(H){qt(H)}),In=function(){(Y||wt)&&ot(!0,p)},G&&(Me.onMouseMove=function(H){var Q;(Q=be.onMouseMove)===null||Q===void 0||Q.call(be,H)})),wr&&(St("onMouseLeave",!1,C),St("onPointerLeave",!1,C),xr=function(){ot(!1,C)}),It.has("focus")&&St("onFocus",!0,b),Ft.has("focus")&&St("onBlur",!1,S),It.has("contextMenu")&&(Me.onContextMenu=function(H){var Q;B.current&&Ft.has("contextMenu")?ot(!1):(qt(H),ot(!0)),H.preventDefault();for(var je=arguments.length,qe=new Array(je>1?je-1:0),ze=1;ze<je;ze++)qe[ze-1]=arguments[ze];(Q=be.onContextMenu)===null||Q===void 0||Q.call.apply(Q,[be,H].concat(qe))}),Oe&&(Me.className=fe(be.className,Oe));var Jn=L(L({},be),Me),Or={},Mo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Mo.forEach(function(H){A[H]&&(Or[H]=function(){for(var Q,je=arguments.length,qe=new Array(je),ze=0;ze<je;ze++)qe[ze]=arguments[ze];(Q=Jn[H])===null||Q===void 0||Q.call.apply(Q,[Jn].concat(qe)),A[H].apply(A,qe)})});var Po=s.cloneElement(ke,L(L({},Jn),Or)),To={x:qn,y:Ht},Bc=le?L({},le!==!0?le:{}):null;return s.createElement(s.Fragment,null,s.createElement(Wn,{disabled:!Y,ref:dt,onResize:yt},s.createElement(gc,{getTriggerDOMNode:Se},Po)),s.createElement(ss.Provider,{value:Z},s.createElement(mc,{portal:e,ref:Le,prefixCls:i,popup:_,className:fe(N,_e),style:$,target:Ne,onMouseEnter:In,onMouseLeave:xr,onPointerEnter:In,zIndex:F,open:Y,keepDom:wt,fresh:oe,onClick:se,mask:y,motion:De,maskMotion:Qe,onVisibleChanged:Cr,onPrepare:Er,forceRender:O,autoDestroy:ue,getPopupContainer:E,align:lt,arrow:Bc,arrowPos:To,ready:Yn,offsetX:En,offsetY:cn,offsetR:pt,offsetB:Qt,onAlign:Mt,stretch:z,targetWidth:Ze/wn,targetHeight:Zn/xn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const pc=mg(Qi);function hc(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return s.createElement("div",{className:fe("".concat(n,"-content"),i),style:a},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Rn={shiftX:64,adjustY:1},_n={adjustX:1,shiftY:!0},Ct=[0,0],gg={left:{points:["cr","cl"],overflow:_n,offset:[-4,0],targetOffset:Ct},right:{points:["cl","cr"],overflow:_n,offset:[4,0],targetOffset:Ct},top:{points:["bc","tc"],overflow:Rn,offset:[0,-4],targetOffset:Ct},bottom:{points:["tc","bc"],overflow:Rn,offset:[0,4],targetOffset:Ct},topLeft:{points:["bl","tl"],overflow:Rn,offset:[0,-4],targetOffset:Ct},leftTop:{points:["tr","tl"],overflow:_n,offset:[-4,0],targetOffset:Ct},topRight:{points:["br","tr"],overflow:Rn,offset:[0,-4],targetOffset:Ct},rightTop:{points:["tl","tr"],overflow:_n,offset:[4,0],targetOffset:Ct},bottomRight:{points:["tr","br"],overflow:Rn,offset:[0,4],targetOffset:Ct},rightBottom:{points:["bl","br"],overflow:_n,offset:[4,0],targetOffset:Ct},bottomLeft:{points:["tl","bl"],overflow:Rn,offset:[0,4],targetOffset:Ct},leftBottom:{points:["br","bl"],overflow:_n,offset:[-4,0],targetOffset:Ct}},pg=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],hg=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,v=t.transitionName,C=t.animation,b=t.motion,S=t.placement,y=S===void 0?"right":S,w=t.align,x=w===void 0?{}:w,E=t.destroyTooltipOnHide,O=E===void 0?!1:E,k=t.defaultVisible,I=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,$=t.id,P=t.showArrow,M=P===void 0?!0:P,R=Be(t,pg),T=j.useRef(null);j.useImperativeHandle(n,function(){return T.current});var F=L({},R);"visible"in t&&(F.popupVisible=t.visible);var z=function(){return s.createElement(hc,{key:"content",prefixCls:m,id:$,overlayInnerStyle:_},N)};return s.createElement(pc,Pe({popupClassName:r,prefixCls:m,popup:z,action:i,builtinPlacements:gg,popupPlacement:y,ref:T,popupAlign:x,getPopupContainer:I,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:v,popupAnimation:C,popupMotion:b,defaultPopupVisible:k,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:M},F),g)};const bg=j.forwardRef(hg),bc=8;function yc(e){const t=bc,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function jr(e,t){return e?t:{}}function yg(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:u,arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:g}=yc({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"},Hd(r,o,i,l,a)),{"&:before":{background:l}})]},jr(!!f.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:d,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}}})),jr(!!f.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:d,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}}})),jr(!!f.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},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:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),jr(!!f.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},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:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function Sg(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const ms={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"]}},Cg={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"]}},Eg=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function wg(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(ms).forEach(u=>{const d=r&&Cg[u]||ms[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,Eg.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=yc({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":f.offset[0]=m.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.dropdownArrowOffset+l;break}f.overflow=Sg(u,m,t,n),a&&(f.htmlRegion="visibleFirst")}),c}const xg=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,tooltipRadiusOuter:f}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Pl(e)),{position:"absolute",zIndex:a,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 ${d}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,bc)}},[`${t}-content`]:{position:"relative"}}),Yd(e,(m,g)=>{let{darkColor:h}=g;return{[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},yg(Fn(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Sc=(e,t)=>Nl("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,c=Fn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[xg(c),ac(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),Og=Jr.map(e=>`${e}-inverse`);function $g(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ge(Og),Ge(Jr)).includes(e):Jr.includes(e)}function Cc(e,t){const n=$g(t),r=fe({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Ig=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=s.useContext(Yt),c=l("tooltip",t),[u,d]=Sc(c,!0),f=Cc(c,i),m=f.arrowStyle,g=Object.assign(Object.assign({},a),f.overlayStyle),h=fe(d,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return u(s.createElement("div",{className:h,style:m},s.createElement("div",{className:`${c}-arrow`}),s.createElement(hc,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),o)))},Mg=Ig;var Pg=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 Zi=s.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:h=!0,title:p,overlay:v,builtinPlacements:C,arrowPointAtCenter:b=!1,autoAdjustOverflow:S=!0}=e,y=!!h,[,w]=hr(),{getPopupContainer:x,getPrefixCls:E,direction:O}=s.useContext(Yt),k=mo("Tooltip"),I=s.useRef(null),_=()=>{var Z;(Z=I.current)===null||Z===void 0||Z.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:_,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),_()}})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(Z=>{let[J,He]=Z;k.deprecated(!(J in e),J,He)}),process.env.NODE_ENV!=="production"&&k(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&k(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[N,$]=sr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=!p&&!v&&p!==0,M=Z=>{var J,He;$(P?!1:Z),P||((J=e.onOpenChange)===null||J===void 0||J.call(e,Z),(He=e.onVisibleChange)===null||He===void 0||He.call(e,Z))},R=s.useMemo(()=>{var Z,J;let He=b;return typeof h=="object"&&(He=(J=(Z=h.pointAtCenter)!==null&&Z!==void 0?Z:h.arrowPointAtCenter)!==null&&J!==void 0?J:b),C||wg({arrowPointAtCenter:He,autoAdjustOverflow:S,arrowWidth:y?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[b,h,C,w]),T=s.useMemo(()=>p===0?p:v||p||"",[v,p]),F=s.createElement(cm,null,typeof T=="function"?T():T),{getPopupContainer:z,placement:U="top",mouseEnterDelay:oe=.1,mouseLeaveDelay:G=.1,overlayStyle:se,rootClassName:q}=e,le=Pg(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ae=E("tooltip",o),te=E(),ne=e["data-popover-inject"];let pe=N;!("open"in e)&&!("visible"in e)&&P&&(pe=!1);const he=nn(d)&&!nm(d)?d:s.createElement("span",null,d),ee=he.props,Oe=!ee.className||typeof ee.className=="string"?fe(ee.className,i||`${ae}-open`):ee.className,[Se,A]=Sc(ae,!ne),ue=Cc(ae,c),ce=ue.arrowStyle,Re=Object.assign(Object.assign({},u),ue.overlayStyle),X=fe(l,{[`${ae}-rtl`]:O==="rtl"},ue.className,q,A),[de,re]=lc("Tooltip",le.zIndex),ie=s.createElement(bg,Object.assign({},le,{zIndex:ne?le.zIndex:de,showArrow:y,placement:U,mouseEnterDelay:oe,mouseLeaveDelay:G,prefixCls:ae,overlayClassName:X,overlayStyle:Object.assign(Object.assign({},ce),se),getTooltipContainer:z||a||x,ref:I,builtinPlacements:R,overlay:F,visible:pe,onVisibleChange:M,afterVisibleChange:f??m,overlayInnerStyle:Re,arrowContent:s.createElement("span",{className:`${ae}-arrow-content`}),motion:{motionName:am(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),pe?Eo(he,{className:Oe}):he);return Se(s.createElement(oc.Provider,{value:re},ie))});process.env.NODE_ENV!=="production"&&(Zi.displayName="Tooltip");Zi._InternalPanelDoNotUseOrYouWillBeFired=Mg;const Tg=Zi;var Rg={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 _g=Rg;var Ec=function(t,n){return s.createElement(Co,yn({},t,{ref:n,icon:_g}))};process.env.NODE_ENV!=="production"&&(Ec.displayName="RightOutlined");const gs=s.forwardRef(Ec);var wc=s.createContext(null);function Ji(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function xc(e){var t=s.useContext(wc);return Ji(t,e)}var Ng=["children","locked"],kt=s.createContext(null);function Ag(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 pr(e){var t=e.children,n=e.locked,r=Be(e,Ng),o=s.useContext(kt),i=oo(function(){return Ag(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!zi(a[1],l[1],!0))});return s.createElement(kt.Provider,{value:i},t)}var kg=[],Oc=s.createContext(null);function wo(){return s.useContext(Oc)}var $c=s.createContext(kg);function Gn(e){var t=s.useContext($c);return s.useMemo(function(){return e!==void 0?[].concat(Ge(t),[e]):t},[t,e])}var Ic=s.createContext(null),ea=s.createContext({});function ps(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(nc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function Dg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ge(e.querySelectorAll("*")).filter(function(r){return ps(r,t)});return ps(e,t)&&n.unshift(e),n}var Mi=W.LEFT,Pi=W.RIGHT,Ti=W.UP,Kr=W.DOWN,Ur=W.ENTER,Mc=W.ESC,rr=W.HOME,or=W.END,hs=[Ti,Kr,Mi,Pi];function Lg(e,t,n,r){var o,i,a,l,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===Ur)return{inlineTrigger:!0};var m=(o={},K(o,Ti,c),K(o,Kr,u),o),g=(i={},K(i,Mi,n?u:c),K(i,Pi,n?c:u),K(i,Kr,d),K(i,Ur,d),i),h=(a={},K(a,Ti,c),K(a,Kr,u),K(a,Ur,d),K(a,Mc,f),K(a,Mi,n?d:f),K(a,Pi,n?f:d),a),p={inline:m,horizontal:g,vertical:h,inlineSub:m,horizontalSub:h,verticalSub:h},v=(l=p["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(v){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function jg(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function zg(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Pc(e,t){var n=Dg(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=Pc(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function Bg(e,t,n,r,o,i,a,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){Nt.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(g){var h=g.which;if([].concat(hs,[Ur,Mc,rr,or]).includes(h)){var p,v,C,b=function(){p=new Set,v=new Map,C=new Map;var M=i();return M.forEach(function(R){var T=document.querySelector("[data-menu-id='".concat(Ji(r,R),"']"));T&&(p.add(T),C.set(T,R),v.set(R,T))}),p};b();var S=v.get(t),y=zg(S,p),w=C.get(y),x=Lg(e,a(w,!0).length===1,n,h);if(!x&&h!==rr&&h!==or)return;(hs.includes(h)||[rr,or].includes(h))&&g.preventDefault();var E=function(M){if(M){var R=M,T=M.querySelector("a");T!=null&&T.getAttribute("href")&&(R=T);var F=C.get(M);l(F),m(),d.current=Nt(function(){f.current===F&&R.focus()})}};if([rr,or].includes(h)||x.sibling||!y){var O;!y||e==="inline"?O=o.current:O=jg(y);var k,I=Pc(O,p);h===rr?k=I[0]:h===or?k=I[I.length-1]:k=bs(O,p,y,x.offset),E(k)}else if(x.inlineTrigger)c(w);else if(x.offset>0)c(w,!0),m(),d.current=Nt(function(){b();var P=y.getAttribute("aria-controls"),M=document.getElementById(P),R=bs(M,p);E(R)},5);else if(x.offset<0){var _=a(w,!0),N=_[_.length-2],$=v.get(N);c(N,!1),E($)}}u==null||u(g)}}function Hg(e){Promise.resolve().then(e)}var ta="__RC_UTIL_PATH_SPLIT__",ys=function(t){return t.join(ta)},Fg=function(t){return t.split(ta)},Ri="rc-menu-more";function Wg(){var e=s.useState({}),t=D(e,2),n=t[1],r=j.useRef(new Map),o=j.useRef(new Map),i=s.useState([]),a=D(i,2),l=a[0],c=a[1],u=j.useRef(0),d=j.useRef(!1),f=function(){d.current||n({})},m=j.useCallback(function(S,y){process.env.NODE_ENV!=="production"&&mt(!r.current.has(S),"Duplicated key '".concat(S,"' used in Menu by path [").concat(y.join(" > "),"]"));var w=ys(y);o.current.set(w,S),r.current.set(S,w),u.current+=1;var x=u.current;Hg(function(){x===u.current&&f()})},[]),g=j.useCallback(function(S,y){var w=ys(y);o.current.delete(w),r.current.delete(S)},[]),h=j.useCallback(function(S){c(S)},[]),p=j.useCallback(function(S,y){var w=r.current.get(S)||"",x=Fg(w);return y&&l.includes(x[0])&&x.unshift(Ri),x},[l]),v=j.useCallback(function(S,y){return S.some(function(w){var x=p(w,!0);return x.includes(y)})},[p]),C=function(){var y=Ge(r.current.keys());return l.length&&y.push(Ri),y},b=j.useCallback(function(S){var y="".concat(r.current.get(S)).concat(ta),w=new Set;return Ge(o.current.keys()).forEach(function(x){x.startsWith(y)&&w.add(o.current.get(x))}),w},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:v,getKeyPath:p,getKeys:C,getSubPathKeys:b}}function ir(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var Vg=Math.random().toFixed(5).toString().slice(2),Ss=0;function Kg(e){var t=sr(e,{value:e}),n=D(t,2),r=n[0],o=n[1];return s.useEffect(function(){Ss+=1;var i=process.env.NODE_ENV==="test"?"test":"".concat(Vg,"-").concat(Ss);o("rc-menu-uuid-".concat(i))},[]),r}function Tc(e,t,n,r){var o=s.useContext(kt),i=o.activeKey,a=o.onActive,l=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),c}function Rc(e){var t=s.useContext(kt),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function _c(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 Ug=["item"];function to(e){var t=e.item,n=Be(e,Ug);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 Gg=["title","attribute","elementRef"],Xg=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Yg=["active"],qg=function(e){lo(n,e);var t=co(n);function n(){return rn(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,c=Be(o,Gg),u=Vn(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return mt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(Xt.Item,Pe({},a,{title:typeof i=="string"?i:void 0},u,{ref:l}))}}]),n}(s.Component),Qg=s.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,p=e.onFocus,v=Be(e,Xg),C=xc(i),b=s.useContext(kt),S=b.prefixCls,y=b.onItemClick,w=b.disabled,x=b.overflowDisabled,E=b.itemIcon,O=b.selectedKeys,k=b.onActive,I=s.useContext(ea),_=I._internalRenderMenuItem,N="".concat(S,"-item"),$=s.useRef(),P=s.useRef(),M=w||l,R=io(t,P),T=Gn(i);process.env.NODE_ENV!=="production"&&a&&mt(!1,"MenuItem should not leave undefined `key`.");var F=function(ee){return{key:i,keyPath:Ge(T).reverse(),item:$.current,domEvent:ee}},z=c||E,U=Tc(i,M,f,m),oe=U.active,G=Be(U,Yg),se=O.includes(i),q=Rc(T.length),le=function(ee){if(!M){var Oe=F(ee);g==null||g(to(Oe)),y(Oe)}},ae=function(ee){if(h==null||h(ee),ee.which===W.ENTER){var Oe=F(ee);g==null||g(to(Oe)),y(Oe)}},te=function(ee){k(i),p==null||p(ee)},ne={};e.role==="option"&&(ne["aria-selected"]=se);var pe=s.createElement(qg,Pe({ref:$,elementRef:R,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":x&&C?null:C},v,G,ne,{component:"li","aria-disabled":l,style:L(L({},q),r),className:fe(N,(n={},K(n,"".concat(N,"-active"),oe),K(n,"".concat(N,"-selected"),se),K(n,"".concat(N,"-disabled"),M),n),o),onClick:le,onKeyDown:ae,onFocus:te}),u,s.createElement(_c,{props:L(L({},e),{},{isSelected:se}),icon:z}));return _&&(pe=_(pe,e,{selected:se})),pe});function Zg(e,t){var n=e.eventKey,r=wo(),o=Gn(n);return s.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:s.createElement(Qg,Pe({},e,{ref:t}))}const xo=s.forwardRef(Zg);var Jg=["className","children"],ep=function(t,n){var r=t.className,o=t.children,i=Be(t,Jg),a=s.useContext(kt),l=a.prefixCls,c=a.mode,u=a.rtl;return s.createElement("ul",Pe({className:fe(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},na=s.forwardRef(ep);na.displayName="SubMenuList";function ra(e,t){return ur(e).map(function(n,r){if(s.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,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 at={adjustX:1,adjustY:1},tp={topLeft:{points:["bl","tl"],overflow:at},topRight:{points:["br","tr"],overflow:at},bottomLeft:{points:["tl","bl"],overflow:at},bottomRight:{points:["tr","br"],overflow:at},leftTop:{points:["tr","tl"],overflow:at},leftBottom:{points:["br","bl"],overflow:at},rightTop:{points:["tl","tr"],overflow:at},rightBottom:{points:["bl","br"],overflow:at}},np={topLeft:{points:["bl","tl"],overflow:at},topRight:{points:["br","tr"],overflow:at},bottomLeft:{points:["tl","bl"],overflow:at},bottomRight:{points:["tr","br"],overflow:at},rightTop:{points:["tr","tl"],overflow:at},rightBottom:{points:["br","bl"],overflow:at},leftTop:{points:["tl","tr"],overflow:at},leftBottom:{points:["bl","br"],overflow:at}};function Nc(e,t,n){if(t)return t;if(n)return n[e]||n.other}var rp={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function op(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=s.useContext(kt),m=f.getPopupContainer,g=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,v=f.builtinPlacements,C=f.triggerSubMenuAction,b=f.forceSubMenuRender,S=f.rootClassName,y=f.motion,w=f.defaultMotions,x=s.useState(!1),E=D(x,2),O=E[0],k=E[1],I=L(g?L({},np):L({},tp),v),_=rp[u],N=Nc(u,y,w),$=s.useRef(N);u!=="inline"&&($.current=N);var P=L(L({},$.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=s.useRef();return s.useEffect(function(){return M.current=Nt(function(){k(n)}),function(){Nt.cancel(M.current)}},[n]),s.createElement(pc,{prefixCls:t,popupClassName:fe("".concat(t,"-popup"),K({},"".concat(t,"-rtl"),g),a,S),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:_,popupVisible:O,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:c?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:b,popupMotion:P,fresh:!0},r)}function ip(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=s.useContext(kt),l=a.prefixCls,c=a.forceSubMenuRender,u=a.motion,d=a.defaultMotions,f=a.mode,m=s.useRef(!1);m.current=f===i;var g=s.useState(!m.current),h=D(g,2),p=h[0],v=h[1],C=m.current?n:!1;s.useEffect(function(){m.current&&v(!1)},[f]);var b=L({},Nc(i,u,d));r.length>1&&(b.motionAppear=!1);var S=b.onVisibleChanged;return b.onVisibleChanged=function(y){return!m.current&&!y&&v(!0),S==null?void 0:S(y)},p?null:s.createElement(pr,{mode:i,locked:!m.current},s.createElement(ho,Pe({visible:C},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(y){var w=y.className,x=y.style;return s.createElement(na,{id:t,className:w,style:x},o)}))}var ap=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],sp=["active"],lp=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey,l=t.warnKey,c=t.disabled,u=t.internalPopupClose,d=t.children,f=t.itemIcon,m=t.expandIcon,g=t.popupClassName,h=t.popupOffset,p=t.popupStyle,v=t.onClick,C=t.onMouseEnter,b=t.onMouseLeave,S=t.onTitleClick,y=t.onTitleMouseEnter,w=t.onTitleMouseLeave,x=Be(t,ap),E=xc(a),O=s.useContext(kt),k=O.prefixCls,I=O.mode,_=O.openKeys,N=O.disabled,$=O.overflowDisabled,P=O.activeKey,M=O.selectedKeys,R=O.itemIcon,T=O.expandIcon,F=O.onItemClick,z=O.onOpenChange,U=O.onActive,oe=s.useContext(ea),G=oe._internalRenderSubMenuItem,se=s.useContext(Ic),q=se.isSubPathKey,le=Gn(),ae="".concat(k,"-submenu"),te=N||c,ne=s.useRef(),pe=s.useRef();process.env.NODE_ENV!=="production"&&l&&mt(!1,"SubMenu should not leave undefined `key`.");var he=f??R,ee=m??T,Oe=_.includes(a),Se=!$&&Oe,A=q(M,a),ue=Tc(a,te,y,w),ce=ue.active,Re=Be(ue,sp),X=s.useState(!1),de=D(X,2),re=de[0],ie=de[1],Z=function(Me){te||ie(Me)},J=function(Me){Z(!0),C==null||C({key:a,domEvent:Me})},He=function(Me){Z(!1),b==null||b({key:a,domEvent:Me})},nt=s.useMemo(function(){return ce||(I!=="inline"?re||q([P],a):!1)},[I,ce,P,re,a,q]),Ie=Rc(le.length),gt=function(Me){te||(S==null||S({key:a,domEvent:Me}),I==="inline"&&z(a,!Oe))},Le=ir(function(be){v==null||v(to(be)),F(be)}),Te=function(Me){I!=="inline"&&z(a,Me)},rt=function(){U(a)},Ne=E&&"".concat(E,"-popup"),ft=s.createElement("div",Pe({role:"menuitem",style:Ie,className:"".concat(ae,"-title"),tabIndex:te?null:-1,ref:ne,title:typeof i=="string"?i:null,"data-menu-id":$&&E?null:E,"aria-expanded":Se,"aria-haspopup":!0,"aria-controls":Ne,"aria-disabled":te,onClick:gt,onFocus:rt},Re),i,s.createElement(_c,{icon:I!=="horizontal"?ee:void 0,props:L(L({},t),{},{isOpen:Se,isSubMenu:!0})},s.createElement("i",{className:"".concat(ae,"-arrow")}))),Ae=s.useRef(I);if(I!=="inline"&&le.length>1?Ae.current="vertical":Ae.current=I,!$){var dt=Ae.current;ft=s.createElement(op,{mode:dt,prefixCls:ae,visible:!u&&Se&&I!=="inline",popupClassName:g,popupOffset:h,popupStyle:p,popup:s.createElement(pr,{mode:dt==="horizontal"?"vertical":dt},s.createElement(na,{id:Ne,ref:pe},d)),disabled:te,onVisibleChange:Te},ft)}var ke=s.createElement(Xt.Item,Pe({role:"none"},x,{component:"li",style:r,className:fe(ae,"".concat(ae,"-").concat(I),o,(n={},K(n,"".concat(ae,"-open"),Se),K(n,"".concat(ae,"-active"),nt),K(n,"".concat(ae,"-selected"),A),K(n,"".concat(ae,"-disabled"),te),n)),onMouseEnter:J,onMouseLeave:He}),ft,!$&&s.createElement(ip,{id:Ne,open:Se,keyPath:le},d));return G&&(ke=G(ke,t,{selected:A,active:nt,open:Se,disabled:te})),s.createElement(pr,{onItemClick:Le,mode:I==="horizontal"?"vertical":I,itemIcon:he,expandIcon:ee},ke)};function Oo(e){var t=e.eventKey,n=e.children,r=Gn(t),o=ra(n,r),i=wo();s.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=s.createElement(lp,e,o),s.createElement($c.Provider,{value:r},a)}var cp=["className","title","eventKey","children"],up=["children"],fp=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Be(t,cp),a=s.useContext(kt),l=a.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",Pe({role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:fe(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=Be(e,up),r=Gn(n.eventKey),o=ra(t,r),i=wo();return i?o:s.createElement(fp,Vn(n,["warnKey"]),o)}function oa(e){var t=e.className,n=e.style,r=s.useContext(kt),o=r.prefixCls,i=wo();return i?null:s.createElement("li",{role:"separator",className:fe("".concat(o,"-item-divider"),t),style:n})}var dp=["label","children","key","type"];function _i(e){return(e||[]).map(function(t,n){if(t&&We(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,c=Be(r,dp),u=a??"tmp-".concat(n);return i||l==="group"?l==="group"?s.createElement($o,Pe({key:u},c,{title:o}),_i(i)):s.createElement(Oo,Pe({key:u},c,{title:o}),_i(i)):l==="divider"?s.createElement(oa,Pe({key:u},c)):s.createElement(xo,Pe({key:u},c),o)}return null}).filter(function(t){return t})}function vp(e,t,n){var r=e;return t&&(r=_i(t)),ra(r,n)}var mp=["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"],Nn=[],gp=s.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,c=o.style,u=o.className,d=o.tabIndex,f=d===void 0?0:d,m=o.items,g=o.children,h=o.direction,p=o.id,v=o.mode,C=v===void 0?"vertical":v,b=o.inlineCollapsed,S=o.disabled,y=o.disabledOverflow,w=o.subMenuOpenDelay,x=w===void 0?.1:w,E=o.subMenuCloseDelay,O=E===void 0?.1:E,k=o.forceSubMenuRender,I=o.defaultOpenKeys,_=o.openKeys,N=o.activeKey,$=o.defaultActiveFirst,P=o.selectable,M=P===void 0?!0:P,R=o.multiple,T=R===void 0?!1:R,F=o.defaultSelectedKeys,z=o.selectedKeys,U=o.onSelect,oe=o.onDeselect,G=o.inlineIndent,se=G===void 0?24:G,q=o.motion,le=o.defaultMotions,ae=o.triggerSubMenuAction,te=ae===void 0?"hover":ae,ne=o.builtinPlacements,pe=o.itemIcon,he=o.expandIcon,ee=o.overflowedIndicator,Oe=ee===void 0?"...":ee,Se=o.overflowedIndicatorPopupClassName,A=o.getPopupContainer,ue=o.onClick,ce=o.onOpenChange,Re=o.onKeyDown,X=o.openAnimation,de=o.openTransitionName,re=o._internalRenderMenuItem,ie=o._internalRenderSubMenuItem,Z=Be(o,mp),J=s.useMemo(function(){return vp(g,m,Nn)},[g,m]),He=s.useState(!1),nt=D(He,2),Ie=nt[0],gt=nt[1],Le=s.useRef(),Te=Kg(p),rt=h==="rtl";process.env.NODE_ENV!=="production"&&mt(!X&&!de,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ne=sr(I,{value:_,postState:function(ge){return ge||Nn}}),ft=D(Ne,2),Ae=ft[0],dt=ft[1],ke=function(ge){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ze(){dt(ge),ce==null||ce(ge)}$e?ro.flushSync(Ze):Ze()},be=s.useState(Ae),Me=D(be,2),Ye=Me[0],De=Me[1],Qe=s.useRef(!1),vt=s.useMemo(function(){return(C==="inline"||C==="vertical")&&b?["vertical",b]:[C,!1]},[C,b]),ve=D(vt,2),me=ve[0],Ce=ve[1],Y=me==="inline",Ee=s.useState(me),B=D(Ee,2),V=B[0],ye=B[1],Fe=s.useState(Ce),Ve=D(Fe,2),ot=Ve[0],an=Ve[1];s.useEffect(function(){ye(me),an(Ce),Qe.current&&(Y?dt(Ye):ke(Nn))},[me,Ce]);var jt=s.useState(0),wt=D(jt,2),Ke=wt[0],zt=wt[1],xt=Ke>=J.length-1||V!=="horizontal"||y;s.useEffect(function(){Y&&De(Ae)},[Ae]),s.useEffect(function(){return Qe.current=!0,function(){Qe.current=!1}},[]);var Je=Wg(),Dt=Je.registerPath,sn=Je.unregisterPath,ln=Je.refreshOverflowKeys,Ot=Je.isSubPathKey,Cn=Je.getKeyPath,qt=Je.getKeys,Bt=Je.getSubPathKeys,it=s.useMemo(function(){return{registerPath:Dt,unregisterPath:sn}},[Dt,sn]),Yn=s.useMemo(function(){return{isSubPathKey:Ot}},[Ot]);s.useEffect(function(){ln(xt?Nn:J.slice(Ke+1).map(function(_e){return _e.key}))},[Ke,xt]);var En=sr(N||$&&((n=J[0])===null||n===void 0?void 0:n.key),{value:N}),cn=D(En,2),pt=cn[0],Qt=cn[1],qn=ir(function(_e){Qt(_e)}),Ht=ir(function(){Qt(void 0)});j.useImperativeHandle(t,function(){return{list:Le.current,focus:function(ge){var $e,Ze=pt??(($e=J.find(function(Zn){return!Zn.props.disabled}))===null||$e===void 0?void 0:$e.key);if(Ze){var et,Pt,Lt;(et=Le.current)===null||et===void 0||(Pt=et.querySelector("li[data-menu-id='".concat(Ji(Te,Ze),"']")))===null||Pt===void 0||(Lt=Pt.focus)===null||Lt===void 0||Lt.call(Pt,ge)}}}});var wn=sr(F||[],{value:z,postState:function(ge){return Array.isArray(ge)?ge:ge==null?Nn:[ge]}}),xn=D(wn,2),lt=xn[0],$t=xn[1],un=function(ge){if(M){var $e=ge.key,Ze=lt.includes($e),et;T?Ze?et=lt.filter(function(Lt){return Lt!==$e}):et=[].concat(Ge(lt),[$e]):et=[$e],$t(et);var Pt=L(L({},ge),{},{selectedKeys:et});Ze?oe==null||oe(Pt):U==null||U(Pt)}!T&&Ae.length&&V!=="inline"&&ke(Nn)},On=ir(function(_e){ue==null||ue(to(_e)),un(_e)}),It=ir(function(_e,ge){var $e=Ae.filter(function(et){return et!==_e});if(ge)$e.push(_e);else if(V!=="inline"){var Ze=Bt(_e);$e=$e.filter(function(et){return!Ze.has(et)})}zi(Ae,$e,!0)||ke($e,!0)}),Ft=function(ge,$e){var Ze=$e??!Ae.includes(ge);It(ge,Ze)},fn=Bg(V,pt,rt,Te,Le,qt,Cn,Qt,Ft,Re);s.useEffect(function(){gt(!0)},[]);var Zt=s.useMemo(function(){return{_internalRenderMenuItem:re,_internalRenderSubMenuItem:ie}},[re,ie]),Mt=V!=="horizontal"||y?J:J.map(function(_e,ge){return s.createElement(pr,{key:_e.key,overflowDisabled:ge>Ke},_e)}),Qn=s.createElement(Xt,Pe({id:p,ref:Le,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:xo,className:fe(a,"".concat(a,"-root"),"".concat(a,"-").concat(V),u,(r={},K(r,"".concat(a,"-inline-collapsed"),ot),K(r,"".concat(a,"-rtl"),rt),r),l),dir:h,style:c,role:"menu",tabIndex:f,data:Mt,renderRawItem:function(ge){return ge},renderRawRest:function(ge){var $e=ge.length,Ze=$e?J.slice(-$e):null;return s.createElement(Oo,{eventKey:Ri,title:Oe,disabled:xt,internalPopupClose:$e===0,popupClassName:Se},Ze)},maxCount:V!=="horizontal"||y?Xt.INVALIDATE:Xt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ge){zt(ge)},onKeyDown:fn},Z));return s.createElement(ea.Provider,{value:Zt},s.createElement(wc.Provider,{value:Te},s.createElement(pr,{prefixCls:a,rootClassName:l,mode:V,openKeys:Ae,rtl:rt,disabled:S,motion:Ie?q:null,defaultMotions:Ie?le:null,activeKey:pt,onActive:qn,onInactive:Ht,selectedKeys:lt,inlineIndent:se,subMenuOpenDelay:x,subMenuCloseDelay:O,forceSubMenuRender:k,builtinPlacements:ne,triggerSubMenuAction:te,getPopupContainer:A,itemIcon:pe,expandIcon:he,onItemClick:On,onOpenChange:It},s.createElement(Ic.Provider,{value:Yn},Qn),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(Oc.Provider,{value:it},J)))))}),yr=gp;yr.Item=xo;yr.SubMenu=Oo;yr.ItemGroup=$o;yr.Divider=oa;var pp={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 hp=pp;var Ac=function(t,n){return s.createElement(Co,yn({},t,{ref:n,icon:hp}))};process.env.NODE_ENV!=="production"&&(Ac.displayName="BarsOutlined");const bp=s.forwardRef(Ac);var yp={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 Sp=yp;var kc=function(t,n){return s.createElement(Co,yn({},t,{ref:n,icon:Sp}))};process.env.NODE_ENV!=="production"&&(kc.displayName="LeftOutlined");const Cs=s.forwardRef(kc),Cp=e=>!isNaN(parseFloat(e))&&isFinite(e),Ep=Cp,wp=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var xp=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 Es={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ia=s.createContext({}),Op=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),$p=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:p,onBreakpoint:v}=e,C=xp(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=j.useContext(wp),[S,y]=j.useState("collapsed"in e?e.collapsed:a),[w,x]=j.useState(!1);j.useEffect(()=>{"collapsed"in e&&y(e.collapsed)},[e.collapsed]);const E=($,P)=>{"collapsed"in e||y($),p==null||p($,P)},O=j.useRef();O.current=$=>{x($.matches),v==null||v($.matches),S!==$.matches&&E($.matches,"responsive")},j.useEffect(()=>{function $(M){return O.current(M)}let P;if(typeof window<"u"){const{matchMedia:M}=window;if(M&&h&&h in Es){P=M(`(max-width: ${Es[h]})`);try{P.addEventListener("change",$)}catch{P.addListener($)}$(P)}}return()=>{try{P==null||P.removeEventListener("change",$)}catch{P==null||P.removeListener($)}}},[h]),j.useEffect(()=>{const $=Op("ant-sider-");return b.addSider($),()=>b.removeSider($)},[]);const k=()=>{E(!S,"clickTrigger")},{getPrefixCls:I}=j.useContext(Yt),_=()=>{const $=I("layout-sider",n),P=Vn(C,["collapsed"]),M=S?m:f,R=Ep(M)?`${M}px`:String(M),T=parseFloat(String(m||0))===0?s.createElement("span",{onClick:k,className:fe(`${$}-zero-width-trigger`,`${$}-zero-width-trigger-${d?"right":"left"}`),style:g},o||s.createElement(bp,null)):null,U={expanded:d?s.createElement(gs,null):s.createElement(Cs,null),collapsed:d?s.createElement(Cs,null):s.createElement(gs,null)}[S?"collapsed":"expanded"],oe=o!==null?T||s.createElement("div",{className:`${$}-trigger`,onClick:k,style:{width:R}},o||U):null,G=Object.assign(Object.assign({},c),{flex:`0 0 ${R}`,maxWidth:R,minWidth:R,width:R}),se=fe($,`${$}-${l}`,{[`${$}-collapsed`]:!!S,[`${$}-has-trigger`]:u&&o!==null&&!T,[`${$}-below`]:!!w,[`${$}-zero-width`]:parseFloat(R)===0},r);return s.createElement("aside",Object.assign({className:se},P,{style:G,ref:t}),s.createElement("div",{className:`${$}-children`},i),u||w&&T?oe:null)},N=s.useMemo(()=>({siderCollapsed:S}),[S]);return s.createElement(ia.Provider,{value:N},_())});process.env.NODE_ENV!=="production"&&($p.displayName="Sider");var Ip=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 Mp=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=Ip(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(Yt),a=i("menu",t),l=fe({[`${a}-item-divider-dashed`]:!!r},n);return s.createElement(oa,Object.assign({className:l},o))},Dc=Mp,Pp=j.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),no=Pp,Tp=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=s.useContext(no),m=b=>{const S=s.createElement("span",{className:`${l}-title-content`},r);return(!o||nn(r)&&r.type==="span")&&r&&b&&c&&typeof r=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:g}=s.useContext(ia);let h=i;typeof i>"u"?h=c?r:"":i===!1&&(h="");const p={title:h};!g&&!f&&(p.title=null,p.open=!1);const v=ur(r).length;let C=s.createElement(xo,Object.assign({},Vn(e,["title","icon","danger"]),{className:fe({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?v+1:v)===1},n),title:typeof i=="string"?i:void 0}),Eo(o,{className:fe(nn(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(C=s.createElement(Tg,Object.assign({},p,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),C)),C},Lc=Tp,Rp=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=s.useContext(no),{prefixCls:l,inlineCollapsed:c,theme:u}=a,d=Gn();let f;if(!r)f=c&&!d.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=nn(o)&&o.type==="span";f=s.createElement(s.Fragment,null,Eo(r,{className:fe(nn(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 m=s.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[g]=lc("Menu");return s.createElement(no.Provider,{value:m},s.createElement(Oo,Object.assign({},Vn(e,["icon"]),{title:f,popupClassName:fe(l,n,`${l}-${i||u}`),popupStyle:{zIndex:g}})))},jc=Rp;var _p={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 Np=_p;var zc=function(t,n){return s.createElement(Co,yn({},t,{ref:n,icon:Np}))};process.env.NODE_ENV!=="production"&&(zc.displayName="EllipsisOutlined");const Ap=s.forwardRef(zc);var kp=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 Ni(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,c=kp(r,["label","children","key","type"]),u=a??`tmp-${n}`;return i||l==="group"?l==="group"?s.createElement($o,Object.assign({key:u},c,{title:o}),Ni(i)):s.createElement(jc,Object.assign({key:u},c,{title:o}),Ni(i)):l==="divider"?s.createElement(Dc,Object.assign({key:u},c)):s.createElement(Lc,Object.assign({key:u},c),o)}return null}).filter(t=>t)}function Dp(e){return s.useMemo(()=>e&&Ni(e),[e])}globalThis&&globalThis.__rest;const Lp=s.createContext(null),ws=Lp,jp=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${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,
137
- > ${t}-item-active,
138
- > ${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"}}}},zp=jp,Bp=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
139
- ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},Hp=Bp,xs=e=>Object.assign({},Kd(e)),Fp=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:p,motionDurationMid:v,itemHoverColor:C,lineType:b,colorSplit:S,itemDisabledColor:y,dangerItemColor:w,dangerItemHoverColor:x,dangerItemSelectedColor:E,dangerItemActiveBg:O,dangerItemSelectedBg:k,itemHoverBg:I,itemActiveBg:_,menuSubMenuBg:N,horizontalItemSelectedColor:$,horizontalItemSelectedBg:P,horizontalItemBorderRadius:M,horizontalItemHoverBg:R,popupBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},xs(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${y} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:_}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:_}}},[`${n}-item-danger`]:{color:w,[`&${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:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},xs(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:u,borderBottomColor:$}},"&-selected":{color:$,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:u,borderBottomColor:$}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${b} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:f&&d?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(",")}}}}}},Os=Fp,$s=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e,c=o+i+a;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,
140
- > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
141
- ${t}-submenu-title`]:{paddingInlineEnd:c}}},Wp=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:h,collapsedWidth:p,collapsedIconSize:v}=e,C={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},$s(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},$s(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*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 ${m}`,`background ${m}`,`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`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:p,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item,
142
- > ${t}-item-group > ${t}-item-group-list > ${t}-item,
143
- > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
144
- > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${f/2}px - ${d}px)`,textOverflow:"clip",[`
145
- ${t}-submenu-arrow,
146
- ${t}-submenu-expand-icon
147
- `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,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({},Fd),{paddingInline:g})}}]},Vp=Wp,Is=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,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, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`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({},Tl()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ms=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.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(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},Kp=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:p,lineType:v,menuPanelMaskInset:C,groupTitleLineHeight:b,groupTitleFontSize:S}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},La()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pl(e)),La()),{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:S,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].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:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Is(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:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${C}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:C},"\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:m},Is(e)),Ms(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Ms(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
148
- &-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"}}}]},Up=(e,t)=>Nl("Menu",r=>{if(t===!1)return[];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:l,fontSize:c,darkItemColor:u,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:m,darkItemSelectedColor:g,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:v,darkGroupTitleColor:C,darkItemHoverColor:b,darkItemDisabledColor:S,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:x}=r,E=c/7*5,O=Fn(r,{menuArrowSize:E,menuHorizontalHeight:l*1.15,menuArrowOffset:`${E*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),k=Fn(O,{itemColor:u,itemHoverColor:b,groupTitleColor:C,itemSelectedColor:g,itemBg:f,popupBg:f,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:S,dangerItemColor:d,dangerItemHoverColor:y,dangerItemSelectedColor:w,dangerItemActiveBg:x,dangerItemSelectedBg:p,menuSubMenuBg:m,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return[Kp(O),zp(O),Vp(O),Os(O,"light"),Os(k,"dark"),Hp(O),Wm(O),os(O,"slide-up"),os(O,"slide-down"),ac(O,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:p,colorBgTextHover:v,controlHeightLG:C,lineHeight:b,colorBgElevated:S,marginXXS:y,padding:w,fontSize:x,controlHeightSM:E,fontSizeLG:O,colorTextLightSolid:k,colorErrorHover:I}=r,_=new ct(k).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:d,itemBg:d,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:g,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:b,collapsedWidth:C*2,popupBg:S,itemMarginBlock:y,itemPaddingInline:w,horizontalLineHeight:`${C*1.15}px`,iconSize:x,iconMarginInlineEnd:E-x,collapsedIconSize:O,groupTitleFontSize:x,darkItemDisabledColor:new ct(k).setAlpha(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:k,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i}},{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 Gp=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 Xp=j.forwardRef((e,t)=>{var n,r;const o=s.useContext(ws),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:u}=s.useContext(Yt),d=a(),{prefixCls:f,className:m,style:g,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:C,siderCollapsed:b,items:S,children:y,rootClassName:w,mode:x,selectable:E,onClick:O,overflowedIndicatorPopupClassName:k}=e,I=Gp(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_=Vn(I,["collapsedWidth"]),N=Dp(S)||y;if(process.env.NODE_ENV!=="production"){const q=mo("Menu");process.env.NODE_ENV!=="production"&&q(!("inlineCollapsed"in e&&x!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),process.env.NODE_ENV!=="production"&&q(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),q.deprecated("items"in e&&!y,"children","items")}(n=i.validator)===null||n===void 0||n.call(i,{mode:x});const $=_t(function(){var q;O==null||O.apply(void 0,arguments),(q=i.onClick)===null||q===void 0||q.call(i)}),P=i.mode||x,M=E??i.selectable,R=s.useMemo(()=>b!==void 0?b:C,[C,b]),T={horizontal:{motionName:`${d}-slide-up`},inline:sm(d),other:{motionName:`${d}-zoom-big`}},F=a("menu",f||i.prefixCls),[z,U]=Up(F,!o),oe=fe(`${F}-${h}`,u==null?void 0:u.className,m);let G;if(typeof p=="function")G=p;else if(p===null||p===!1)G=null;else if(i.expandIcon===null||i.expandIcon===!1)G=null;else{const q=p??i.expandIcon;G=Eo(q,{className:fe(`${F}-submenu-expand-icon`,nn(q)?(r=q.props)===null||r===void 0?void 0:r.className:"")})}const se=s.useMemo(()=>({prefixCls:F,inlineCollapsed:R||!1,direction:c,firstLevel:!0,theme:h,mode:P,disableMenuItemTitleTooltip:v}),[F,R,c,v,h]);return z(s.createElement(ws.Provider,{value:null},s.createElement(no.Provider,{value:se},s.createElement(yr,Object.assign({getPopupContainer:l,overflowedIndicator:s.createElement(Ap,null),overflowedIndicatorPopupClassName:fe(F,`${F}-${h}`,k),mode:P,selectable:M,onClick:$},_,{inlineCollapsed:R,style:Object.assign(Object.assign({},u==null?void 0:u.style),g),className:oe,prefixCls:F,direction:c,defaultMotions:T,expandIcon:G,ref:t,rootClassName:fe(w,U)}),N))))}),Yp=Xp,Xn=j.forwardRef((e,t)=>{const n=j.useRef(null),r=s.useContext(ia);return j.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),s.createElement(Yp,Object.assign({ref:n},e,r))});Xn.Item=Lc;Xn.SubMenu=jc;Xn.Divider=Dc;Xn.ItemGroup=$o;process.env.NODE_ENV!=="production"&&(Xn.displayName="Menu");const qp=Xn,Qp=({defaultOpenKeys:e,theme:t,...n})=>Hc.jsx(qp,{defaultOpenKeys:e,theme:t||"dark",...n});exports.Menu=Qp;