@akinon/ui-dropdown 0.0.2 → 0.1.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/cjs/index.css +3 -0
- package/dist/{index.d.ts → cjs/index.d.ts} +1 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +22 -0
- package/dist/esm/index.css +3 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +18 -0
- package/package.json +18 -11
- package/dist/index.cjs +0 -166
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12335
package/dist/index.cjs
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ant-dropdown-menu-item-selected{font-weight:700!important}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ju=require("react/jsx-runtime"),N=require("react"),Rr=require("react-dom");function yl(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=yl(N),ed=yl(Rr);function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cl={exports:{}};/*!
|
|
3
|
-
Copyright (c) 2018 Jed Watson.
|
|
4
|
-
Licensed under the MIT License (MIT), see
|
|
5
|
-
http://jedwatson.github.io/classnames
|
|
6
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var 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})()})(Cl);var nd=Cl.exports;const oe=td(nd);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 hi={exports:{}},xe={};/**
|
|
7
|
-
* @license React
|
|
8
|
-
* react-is.production.min.js
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/var Va;function rd(){if(Va)return xe;Va=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"),f=Symbol.for("react.suspense_list"),d=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 w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case n:case o:case r:case u:case f:return v;default:switch(v=v&&v.$$typeof,v){case l:case a:case c:case m:case d:case i:return v;default:return w}}case t:return w}}}return xe.ContextConsumer=a,xe.ContextProvider=i,xe.Element=e,xe.ForwardRef=c,xe.Fragment=n,xe.Lazy=m,xe.Memo=d,xe.Portal=t,xe.Profiler=o,xe.StrictMode=r,xe.Suspense=u,xe.SuspenseList=f,xe.isAsyncMode=function(){return!1},xe.isConcurrentMode=function(){return!1},xe.isContextConsumer=function(v){return p(v)===a},xe.isContextProvider=function(v){return p(v)===i},xe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},xe.isForwardRef=function(v){return p(v)===c},xe.isFragment=function(v){return p(v)===n},xe.isLazy=function(v){return p(v)===m},xe.isMemo=function(v){return p(v)===d},xe.isPortal=function(v){return p(v)===t},xe.isProfiler=function(v){return p(v)===o},xe.isStrictMode=function(v){return p(v)===r},xe.isSuspense=function(v){return p(v)===u},xe.isSuspenseList=function(v){return p(v)===f},xe.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===u||v===f||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===d||v.$$typeof===i||v.$$typeof===a||v.$$typeof===c||v.$$typeof===h||v.getModuleId!==void 0)},xe.typeOf=p,xe}var $e={};/**
|
|
15
|
-
* @license React
|
|
16
|
-
* react-is.development.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var Ka;function od(){return Ka||(Ka=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"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,p=!1,v=!1,w=!1,S=!1,y;y=Symbol.for("react.module.reference");function C(H){return!!(typeof H=="string"||typeof H=="function"||H===n||H===o||S||H===r||H===u||H===f||w||H===g||h||p||v||typeof H=="object"&&H!==null&&(H.$$typeof===m||H.$$typeof===d||H.$$typeof===i||H.$$typeof===a||H.$$typeof===c||H.$$typeof===y||H.getModuleId!==void 0))}function $(H){if(typeof H=="object"&&H!==null){var me=H.$$typeof;switch(me){case e:var ve=H.type;switch(ve){case n:case o:case r:case u:case f:return ve;default:var Oe=ve&&ve.$$typeof;switch(Oe){case l:case a:case c:case m:case d:case i:return Oe;default:return me}}case t:return me}}}var I=a,x=i,R=e,_=c,P=n,k=m,j=d,T=t,L=o,A=r,E=u,b=f,O=!1,M=!1;function D(H){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(H){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(H){return $(H)===a}function K(H){return $(H)===i}function W(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function te(H){return $(H)===c}function Q(H){return $(H)===n}function X(H){return $(H)===m}function J(H){return $(H)===d}function ue(H){return $(H)===t}function Y(H){return $(H)===o}function ie(H){return $(H)===r}function fe(H){return $(H)===u}function ge(H){return $(H)===f}$e.ContextConsumer=I,$e.ContextProvider=x,$e.Element=R,$e.ForwardRef=_,$e.Fragment=P,$e.Lazy=k,$e.Memo=j,$e.Portal=T,$e.Profiler=L,$e.StrictMode=A,$e.Suspense=E,$e.SuspenseList=b,$e.isAsyncMode=D,$e.isConcurrentMode=z,$e.isContextConsumer=B,$e.isContextProvider=K,$e.isElement=W,$e.isForwardRef=te,$e.isFragment=Q,$e.isLazy=X,$e.isMemo=J,$e.isPortal=ue,$e.isProfiler=Y,$e.isStrictMode=ie,$e.isSuspense=fe,$e.isSuspenseList=ge,$e.isValidElementType=C,$e.typeOf=$}()),$e}process.env.NODE_ENV==="production"?hi.exports=rd():hi.exports=od();var sa=hi.exports;function $n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return N.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat($n(r)):sa.isFragment(r)&&r.props?n=n.concat($n(r.props.children,t)):n.push(r))}),n}var bi={},la=[],id=function(t){la.push(t)};function Zn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=la.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function ad(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=la.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Sl(){bi={}}function wl(e,t,n){!t&&!bi[n]&&(e(!1,n),bi[n]=!0)}function gt(e,t){wl(Zn,e,t)}function sd(e,t){wl(ad,e,t)}gt.preMessage=id;gt.resetWarned=Sl;gt.noteOnce=sd;function je(e){"@babel/helpers - typeof";return je=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},je(e)}function ld(e,t){if(je(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(je(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function El(e){var t=ld(e,"string");return je(t)==="symbol"?t:String(t)}function re(e,t,n){return t=El(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ua(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 V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ua(Object(n),!0).forEach(function(r){re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function co(e){return e instanceof HTMLElement||e instanceof SVGElement}function to(e){return co(e)?e:e instanceof N.Component?Rr.findDOMNode(e):null}function xo(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 ca(e,t){typeof e=="function"?e(t):je(e)==="object"&&e&&"current"in e&&(e.current=t)}function tr(){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){ca(i,o)})}}function Tr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xo(function(){return tr.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})}function sn(e){var t,n,r=sa.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function cd(e){return!N.isValidElement(e)||sa.isFragment(e)?!1:sn(e)}var yi=s.createContext(null);function ud(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),i=s.useContext(yi),a=s.useCallback(function(l,c,u){r.current+=1;var f=r.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){f===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,c,u)},[n,i]);return s.createElement(yi.Provider,{value:a},t)}var xl=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}()}(),Ci=typeof window<"u"&&typeof document<"u"&&window.document===document,uo=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")()}(),dd=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(uo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),fd=2;function vd(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){dd(i)}function l(){var c=Date.now();if(n){if(c-o<fd)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=c}return l}var md=20,pd=["top","right","bottom","left","width","height","size","weight"],gd=typeof MutationObserver<"u",hd=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=vd(this.refresh.bind(this),md)}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(){!Ci||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),gd?(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(){!Ci||!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=pd.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}(),$l=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},Jn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||uo},Ol=$o(0,0,0,0);function fo(e){return parseFloat(e)||0}function Ga(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+fo(i)},0)}function bd(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]=fo(a)}return n}function yd(e){var t=e.getBBox();return $o(0,0,t.width,t.height)}function Cd(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ol;var r=Jn(e).getComputedStyle(e),o=bd(r),i=o.left+o.right,a=o.top+o.bottom,l=fo(r.width),c=fo(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=Ga(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Ga(r,"top","bottom")+a)),!wd(e)){var u=Math.round(l+i)-t,f=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return $o(o.left,o.top,l,c)}var Sd=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Jn(e).SVGGraphicsElement}:function(e){return e instanceof Jn(e).SVGElement&&typeof e.getBBox=="function"}}();function wd(e){return e===Jn(e).document.documentElement}function Ed(e){return Ci?Sd(e)?yd(e):Cd(e):Ol}function xd(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 $l(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function $o(e,t,n,r){return{x:e,y:t,width:n,height:r}}var $d=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$o(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Ed(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}(),Od=function(){function e(t,n){var r=xd(n);$l(this,{target:t,contentRect:r})}return e}(),Id=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new xl,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 Jn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new $d(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 Jn(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 Od(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}(),Il=typeof WeakMap<"u"?new WeakMap:new xl,Pl=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=hd.getInstance(),r=new Id(t,n,this);Il.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Pl.prototype[e]=function(){var t;return(t=Il.get(this))[e].apply(t,arguments)}});var Pd=function(){return typeof uo.ResizeObserver<"u"?uo.ResizeObserver:Pl}(),Yt=new Map;function Rl(e){e.forEach(function(t){var n,r=t.target;(n=Yt.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Tl=new Pd(Rl);process.env.NODE_ENV;process.env.NODE_ENV;function Rd(e,t){Yt.has(e)||(Yt.set(e,new Set),Tl.observe(e)),Yt.get(e).add(t)}function Td(e,t){Yt.has(e)&&(Yt.get(e).delete(t),Yt.get(e).size||(Tl.unobserve(e),Yt.delete(e)))}function ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,El(r.key),r)}}function cn(e,t,n){return t&&Xa(e.prototype,t),n&&Xa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Si(e,t){return Si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Si(e,t)}function Oo(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&&Si(e,t)}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vo(e)}function Md(){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 wi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nd(e,t){if(t&&(je(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wi(e)}function Io(e){var t=Md();return function(){var r=vo(e),o;if(t){var i=vo(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Nd(this,o)}}var _d=function(e){Oo(n,e);var t=Io(n);function n(){return ln(this,n),t.apply(this,arguments)}return cn(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function Ad(e,t){var n=e.children,r=e.disabled,o=s.useRef(null),i=s.useRef(null),a=s.useContext(yi),l=typeof n=="function",c=l?n(o):n,u=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&s.isValidElement(c)&&sn(c),d=f?c.ref:null,m=Tr(d,o),g=function(){var w;return to(o.current)||(o.current&&je(o.current)==="object"?to((w=o.current)===null||w===void 0?void 0:w.nativeElement):null)||to(i.current)};s.useImperativeHandle(t,function(){return g()});var h=s.useRef(e);h.current=e;var p=s.useCallback(function(v){var w=h.current,S=w.onResize,y=w.data,C=v.getBoundingClientRect(),$=C.width,I=C.height,x=v.offsetWidth,R=v.offsetHeight,_=Math.floor($),P=Math.floor(I);if(u.current.width!==_||u.current.height!==P||u.current.offsetWidth!==x||u.current.offsetHeight!==R){var k={width:_,height:P,offsetWidth:x,offsetHeight:R};u.current=k;var j=x===Math.round($)?$:x,T=R===Math.round(I)?I:R,L=V(V({},k),{},{offsetWidth:j,offsetHeight:T});a==null||a(L,v,y),S&&Promise.resolve().then(function(){S(L,v)})}},[]);return s.useEffect(function(){var v=g();return v&&!r&&Rd(v,p),function(){return Td(v,p)}},[o.current,r]),s.createElement(_d,{ref:i},f?s.cloneElement(c,{ref:m}):c)}var Ml=s.forwardRef(Ad);process.env.NODE_ENV!=="production"&&(Ml.displayName="SingleObserver");var Dd="rc-observer-key";function Ld(e,t){var n=e.children,r=typeof n=="function"?[n]:$n(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(Dd,"-").concat(i);return s.createElement(Ml,Pe({},e,{key:a,ref:i===0?t:void 0}),o)})}var nr=s.forwardRef(Ld);process.env.NODE_ENV!=="production"&&(nr.displayName="ResizeObserver");nr.Collection=ud;function un(e,t){var n=V({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Ei(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 jd(e){if(Array.isArray(e))return Ei(e)}function Nl(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ua(e,t){if(e){if(typeof e=="string")return Ei(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 Ei(e,t)}}function zd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(e){return jd(e)||Nl(e)||ua(e)||zd()}var _l=function(t){return+setTimeout(t,16)},Al=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(_l=function(t){return window.requestAnimationFrame(t)},Al=function(t){return window.cancelAnimationFrame(t)});var Ya=0,da=new Map;function Dl(e){da.delete(e)}var ct=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ya+=1;var r=Ya;function o(i){if(i===0)Dl(r),t();else{var a=_l(function(){o(i-1)});da.set(r,a)}}return o(n),r};ct.cancel=function(e){var t=da.get(e);return Dl(t),Al(t)};function fa(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 kd(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 ke(e,t){if(e==null)return{};var n=kd(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 va(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(gt(!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 f=0;f<i.length;f++)if(!o(i[f],a[f],u))return!1;return!0}if(i&&a&&je(i)==="object"&&je(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(m){return o(i[m],a[m],u)})}return!1}return o(e,t)}var qa="%",Bd=function(){function e(t){ln(this,e),re(this,"instanceId",void 0),re(this,"cache",new Map),this.instanceId=t}return cn(e,[{key:"get",value:function(n){return this.cache.get(n.join(qa))||null}},{key:"update",value:function(n,r){var o=n.join(qa),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a)}}]),e}(),xi="data-token-hash",Sn="data-css-hash",Hd="data-cache-path",Xn="__cssinjs_instance__";function Wd(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Sn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Xn]=o[Xn]||e,o[Xn]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Sn,"]"))).forEach(function(o){var i=o.getAttribute(Sn);if(r[i]){if(o[Xn]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new Bd(e)}var Fd=s.createContext({hashPriority:"low",cache:Wd(),defaultCache:!0});const ma=Fd;function ft(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Vd(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 Qa="data-rc-order",Za="data-rc-priority",Kd="rc-util-key",$i=new Map;function Ll(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Kd}function Po(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Ud(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function jl(e){return Array.from(($i.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function zl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ft())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=Ud(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(Qa,a),l&&i&&c.setAttribute(Za,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Po(t),f=u.firstChild;if(r){if(l){var d=jl(u).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Qa)))return!1;var g=Number(m.getAttribute(Za)||0);return i>=g});if(d.length)return u.insertBefore(c,d[d.length-1].nextSibling),c}u.insertBefore(c,f)}else u.appendChild(c);return c}function kl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Po(t);return jl(n).find(function(r){return r.getAttribute(Ll(t))===e})}function mo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=kl(e,t);if(n){var r=Po(t);r.removeChild(n)}}function Gd(e,t){var n=$i.get(e);if(!n||!Vd(document,n)){var r=zl("",t),o=r.parentNode;$i.set(e,o),e.removeChild(r)}}function Sr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Po(n);Gd(r,n);var o=kl(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=zl(e,n);return c.setAttribute(Ll(n),t),c}function Bl(e){if(Array.isArray(e))return e}function Xd(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(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function Hl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F(e,t){return Bl(e)||Xd(e,t)||ua(e,t)||Hl()}function Yd(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 pa=function(){function e(){ln(this,e),re(this,"cache",void 0),re(this,"keys",void 0),re(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return cn(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,f){var d=F(u,2),m=d[1];return o.internalGet(f)[1]<m?[f,o.internalGet(f)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=F(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,f){if(f===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var d=c.get(u);d?d.map||(d.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var 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!Yd(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();re(pa,"MAX_CACHE_SIZE",20);re(pa,"MAX_CACHE_OFFSET",5);var Ja=0,Wl=function(){function e(t){ln(this,e),re(this,"derivatives",void 0),re(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ja,t.length===0&&Zn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ja+=1}return cn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),qo=new pa;function Oi(e){var t=Array.isArray(e)?e:[e];return qo.has(t)||qo.set(t,new Wl(t)),qo.get(t)}var qd=new WeakMap,Qo={};function Qd(e,t){for(var n=qd,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(Qo)||n.set(Qo,e()),n.get(Qo)}var es=new WeakMap;function po(e){var t=es.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Wl?t+=r.id:r&&je(r)==="object"?t+=po(r):t+=r}),es.set(e,t)),t}function Zd(e,t){return fa("".concat(t,"_").concat(po(e)))}var br="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Fl="_bAmBoO_";function Jd(e,t,n){if(ft()){var r,o;Sr(e,br);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(Fl);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),mo(br),a}return!1}var Zo=void 0;function ef(){return Zo===void 0&&(Zo=Jd("@layer ".concat(br," { .").concat(br,' { content: "').concat(Fl,'"!important; } }'),function(e){e.className=br})),Zo}var ts=process.env.NODE_ENV!=="test"&&ft()?s.useLayoutEffect:s.useEffect,lt=function(t,n){var r=s.useRef(!0);ts(function(){return t(r.current)},n),ts(function(){return r.current=!1,function(){r.current=!0}},[])},ns=function(t,n){lt(function(r){if(!r)return t()},n)},tf=V({},s),rs=tf.useInsertionEffect,nf=function(t,n,r){s.useMemo(t,r),lt(function(){return n(!0)},r)},rf=rs?function(e,t,n){return rs(function(){return e(),t()},n)}:nf;const of=rf;var af=V({},s),sf=af.useInsertionEffect,lf=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},cf=function(){return function(t){t()}},uf=typeof sf<"u"?lf:cf;const df=uf;function ff(){return!1}var Ii=!1;function vf(){return Ii}const mf=process.env.NODE_ENV==="production"?ff:vf;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Jo=window;if(typeof Jo.webpackHotUpdate=="function"){var pf=Jo.webpackHotUpdate;Jo.webpackHotUpdate=function(){return Ii=!0,setTimeout(function(){Ii=!1},0),pf.apply(void 0,arguments)}}}function Vl(e,t,n,r,o){var i=s.useContext(ma),a=i.cache,l=[e].concat(Xe(t)),c=l.join("_"),u=df([c]),f=mf(),d=function(p){a.update(l,function(v){var w=v||[],S=F(w,2),y=S[0],C=y===void 0?0:y,$=S[1],I=$;process.env.NODE_ENV!=="production"&&$&&f&&(r==null||r(I,f),I=null);var x=I||n(),R=[C,x];return p?p(R):R})};s.useMemo(function(){d()},[c]);var m=a.get(l);process.env.NODE_ENV!=="production"&&!m&&(d(),m=a.get(l));var g=m[1];return of(function(){o==null||o(g)},function(h){return d(function(p){var v=F(p,2),w=v[0],S=v[1];return h&&w===0&&(o==null||o(g)),[w+1,S]}),function(){a.update(l,function(p){var v=p||[],w=F(v,2),S=w[0],y=S===void 0?0:S,C=w[1],$=y-1;return $===0?(u(function(){return r==null?void 0:r(C,!1)}),null):[y-1,C]})}},[c]),g}var gf={},hf=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",yn=new Map;function bf(e){yn.set(e,(yn.get(e)||0)+1)}function yf(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(xi,'="').concat(e,'"]'));n.forEach(function(r){if(r[Xn]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var Cf=0;function Sf(e,t){yn.set(e,(yn.get(e)||0)-1);var n=Array.from(yn.keys()),r=n.filter(function(o){var i=yn.get(o)||0;return i<=0});n.length-r.length>Cf&&r.forEach(function(o){yf(o,t),yn.delete(o)})}var wf=function(t,n,r,o){var i=r.getDerivativeToken(t),a=V(V({},i),n);return o&&(a=o(a)),a};function Ef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=N.useContext(ma),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,l=n.override,c=l===void 0?gf:l,u=n.formatToken,f=n.getComputedToken,d=Qd(function(){return Object.assign.apply(Object,[{}].concat(Xe(t)))},t),m=po(d),g=po(c),h=Vl("token",[a,e.id,m,g],function(){var p=f?f(d,c,e):wf(d,c,e,u),v=Zd(p,a);p._tokenKey=v,bf(v);var w="".concat(hf,"-").concat(fa(v));return p._hashId=w,[p,w]},function(p){Sf(p[0]._tokenKey,o)});return h}var xf={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},Kl="comm",Ul="rule",Gl="decl",$f="@import",Of="@keyframes",If="@layer",Pf=Math.abs,ga=String.fromCharCode;function Xl(e){return e.trim()}function no(e,t,n){return e.replace(t,n)}function Rf(e,t){return e.indexOf(t)}function wr(e,t){return e.charCodeAt(t)|0}function Er(e,t,n){return e.slice(t,n)}function Xt(e){return e.length}function Tf(e){return e.length}function Fr(e,t){return t.push(e),e}var Ro=1,er=1,Yl=0,$t=0,Ge=0,rr="";function ha(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ro,column:er,length:a,return:"",siblings:l}}function Mf(){return Ge}function Nf(){return Ge=$t>0?wr(rr,--$t):0,er--,Ge===10&&(er=1,Ro--),Ge}function Lt(){return Ge=$t<Yl?wr(rr,$t++):0,er++,Ge===10&&(er=1,Ro++),Ge}function wn(){return wr(rr,$t)}function ro(){return $t}function To(e,t){return Er(rr,e,t)}function Pi(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 _f(e){return Ro=er=1,Yl=Xt(rr=e),$t=0,[]}function Af(e){return rr="",e}function ei(e){return Xl(To($t-1,Ri(e===91?e+2:e===40?e+1:e)))}function Df(e){for(;(Ge=wn())&&Ge<33;)Lt();return Pi(e)>2||Pi(Ge)>3?"":" "}function Lf(e,t){for(;--t&&Lt()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return To(e,ro()+(t<6&&wn()==32&&Lt()==32))}function Ri(e){for(;Lt();)switch(Ge){case e:return $t;case 34:case 39:e!==34&&e!==39&&Ri(Ge);break;case 40:e===41&&Ri(e);break;case 92:Lt();break}return $t}function jf(e,t){for(;Lt()&&e+Ge!==47+10;)if(e+Ge===42+42&&wn()===47)break;return"/*"+To(t,$t-1)+"*"+ga(e===47?e:Lt())}function zf(e){for(;!Pi(wn());)Lt();return To(e,$t)}function kf(e){return Af(oo("",null,null,null,[""],e=_f(e),0,[0],e))}function oo(e,t,n,r,o,i,a,l,c){for(var u=0,f=0,d=a,m=0,g=0,h=0,p=1,v=1,w=1,S=0,y="",C=o,$=i,I=r,x=y;v;)switch(h=S,S=Lt()){case 40:if(h!=108&&wr(x,d-1)==58){Rf(x+=no(ei(S),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:x+=ei(S);break;case 9:case 10:case 13:case 32:x+=Df(h);break;case 92:x+=Lf(ro()-1,7);continue;case 47:switch(wn()){case 42:case 47:Fr(Bf(jf(Lt(),ro()),t,n,c),c);break;default:x+="/"}break;case 123*p:l[u++]=Xt(x)*w;case 125*p:case 59:case 0:switch(S){case 0:case 125:v=0;case 59+f:w==-1&&(x=no(x,/\f/g,"")),g>0&&Xt(x)-d&&Fr(g>32?is(x+";",r,n,d-1,c):is(no(x," ","")+";",r,n,d-2,c),c);break;case 59:x+=";";default:if(Fr(I=os(x,t,n,u,f,o,l,y,C=[],$=[],d,i),i),S===123)if(f===0)oo(x,t,I,I,C,i,d,l,$);else switch(m===99&&wr(x,3)===110?100:m){case 100:case 108:case 109:case 115:oo(e,I,I,r&&Fr(os(e,I,I,0,0,o,l,y,o,C=[],d,$),$),o,$,d,l,r?C:$);break;default:oo(x,I,I,I,[""],$,0,l,$)}}u=f=g=0,p=w=1,y=x="",d=a;break;case 58:d=1+Xt(x),g=h;default:if(p<1){if(S==123)--p;else if(S==125&&p++==0&&Nf()==125)continue}switch(x+=ga(S),S*p){case 38:w=f>0?1:(x+="\f",-1);break;case 44:l[u++]=(Xt(x)-1)*w,w=1;break;case 64:wn()===45&&(x+=ei(Lt())),m=wn(),f=d=Xt(y=x+=zf(ro())),S++;break;case 45:h===45&&Xt(x)==2&&(p=0)}}return i}function os(e,t,n,r,o,i,a,l,c,u,f,d){for(var m=o-1,g=o===0?i:[""],h=Tf(g),p=0,v=0,w=0;p<r;++p)for(var S=0,y=Er(e,m+1,m=Pf(v=a[p])),C=e;S<h;++S)(C=Xl(v>0?g[S]+" "+y:no(y,/&\f/g,g[S])))&&(c[w++]=C);return ha(e,t,n,o===0?Ul:l,c,u,f,d)}function Bf(e,t,n,r){return ha(e,t,n,Kl,ga(Mf()),Er(e,2,-2),0,r)}function is(e,t,n,r,o){return ha(e,t,n,Gl,Er(e,0,r),Er(e,r+1,-1),r,o)}function Ti(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Hf(e,t,n,r){switch(e.type){case If:if(e.children.length)break;case $f:case Gl:return e.return=e.return||e.value;case Kl:return"";case Of:return e.return=e.value+"{"+Ti(e.children,r)+"}";case Ul:if(!Xt(e.value=e.props.join(",")))return""}return Xt(n=Ti(e.children,r))?e.return=e.value+"{"+n+"}":""}function ql(e,t){var n=t.path,r=t.parentSelectors;gt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Wf=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)!=="'"))&&ql("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},Ff=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&ql("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},as="data-ant-cssinjs-cache-path",Ql="_FILE_STYLE__",En,Zl=!0;function Vf(){if(!En&&(En={},ft())){var e=document.createElement("div");e.className=as,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=F(i,2),l=a[0],c=a[1];En[l]=c});var n=document.querySelector("style[".concat(as,"]"));if(n){var r;Zl=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function Kf(e){return Vf(),!!En[e]}function Uf(e){var t=En[e],n=null;if(t&&ft())if(Zl)n=Ql;else{var r=document.querySelector("style[".concat(Sn,'="').concat(En[e],'"]'));r?n=r.innerHTML:delete En[e]}return[n,t]}var ss=ft(),Jl="_skip_check_",ec="_multi_value_";function ls(e){var t=Ti(kf(e),Hf);return t.replace(/\{%%%\:[^;];}/g,";")}function Gf(e){return je(e)==="object"&&e&&(Jl in e||ec in e)}function Xf(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]||"",f=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(f).concat(o).concat(u.slice(f.length)),[u].concat(Xe(c.slice(1))).join(" ")});return i.join(",")}var Yf=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,f=n.hashPriority,d=n.transformers,m=d===void 0?[]:d,g=n.linters,h=g===void 0?[]:g,p="",v={};function w(I){var x=I.getName(l);if(!v[x]){var R=e(I.style,n,{root:!1,parentSelectors:a}),_=F(R,1),P=_[0];v[x]="@keyframes ".concat(I.getName(l)).concat(P)}}function S(I){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return I.forEach(function(R){Array.isArray(R)?S(R,x):R&&x.push(R)}),x}var y=S(Array.isArray(t)?t:[t]);if(y.forEach(function(I){var x=typeof I=="string"&&!o?{}:I;if(typeof x=="string")p+="".concat(x,`
|
|
25
|
-
`);else if(x._keyframe)w(x);else{var R=m.reduce(function(_,P){var k;return(P==null||(k=P.visit)===null||k===void 0?void 0:k.call(P,_))||_},x);Object.keys(R).forEach(function(_){var P=R[_];if(je(P)==="object"&&P&&(_!=="animationName"||!P._keyframe)&&!Gf(P)){var k=!1,j=_.trim(),T=!1;(o||i)&&l?j.startsWith("@")?k=!0:j=Xf(_,l,f):o&&!l&&(j==="&"||j==="")&&(j="",T=!0);var L=e(P,n,{root:T,injectHash:k,parentSelectors:[].concat(Xe(a),[j])}),A=F(L,2),E=A[0],b=A[1];v=V(V({},v),b),p+="".concat(j).concat(E)}else{let D=function(z,B){process.env.NODE_ENV!=="production"&&(je(P)!=="object"||!(P!=null&&P[Jl]))&&[Wf,Ff].concat(Xe(h)).forEach(function(te){return te(z,B,{path:u,hashId:l,parentSelectors:a})});var K=z.replace(/[A-Z]/g,function(te){return"-".concat(te.toLowerCase())}),W=B;!xf[z]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),z==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(w(B),W=B.getName(l)),p+="".concat(K,":").concat(W,";")};var O,M=(O=P==null?void 0:P.value)!==null&&O!==void 0?O:P;je(P)==="object"&&P!==null&&P!==void 0&&P[ec]&&Array.isArray(M)?M.forEach(function(z){D(_,z)}):D(_,M)}})}}),!o)p="{".concat(p,"}");else if(c&&ef()){var C=c.split(","),$=C[C.length-1].trim();p="@layer ".concat($," {").concat(p,"}"),C.length>1&&(p="@layer ".concat(c,"{%%%:%}").concat(p))}return[p,v]};function qf(e,t){return fa("".concat(e.join("%")).concat(t))}function Qf(){return null}function Mi(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,f=s.useContext(ma),d=f.autoClear,m=f.mock,g=f.defaultCache,h=f.hashPriority,p=f.container,v=f.ssrInline,w=f.transformers,S=f.linters,y=f.cache,C=n._tokenKey,$=[C].concat(Xe(r)),I=ss;process.env.NODE_ENV!=="production"&&m!==void 0&&(I=m==="client");var x=Vl("style",$,function(){var j=$.join("|");if(Kf(j)){var T=Uf(j),L=F(T,2),A=L[0],E=L[1];if(A)return[A,C,E,{},l,u]}var b=t(),O=Yf(b,{hashId:o,hashPriority:h,layer:i,path:r.join("-"),transformers:w,linters:S}),M=F(O,2),D=M[0],z=M[1],B=ls(D),K=qf($,B);return[B,C,K,z,l,u]},function(j,T){var L=F(j,3),A=L[2];(T||d)&&ss&&mo(A,{mark:Sn})},function(j){var T=F(j,4),L=T[0];T[1];var A=T[2],E=T[3];if(I&&L!==Ql){var b={mark:Sn,prepend:"queue",attachTo:p,priority:u},O=typeof a=="function"?a():a;O&&(b.csp={nonce:O});var M=Sr(L,A,b);M[Xn]=y.instanceId,M.setAttribute(xi,C),process.env.NODE_ENV!=="production"&&M.setAttribute(Hd,$.join("|")),Object.keys(E).forEach(function(D){Sr(ls(E[D]),"_effect-".concat(D),b)})}}),R=F(x,3),_=R[0],P=R[1],k=R[2];return function(j){var T;if(!v||I||!g)T=s.createElement(Qf,null);else{var L;T=s.createElement("style",Pe({},(L={},re(L,xi,P),re(L,Sn,k),L),{dangerouslySetInnerHTML:{__html:_}}))}return s.createElement(s.Fragment,null,T,j)}}var Me=function(){function e(t,n){ln(this,e),re(this,"name",void 0),re(this,"style",void 0),re(this,"_keyframe",!0),this.name=t,this.style=n}return cn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function kn(e){return e.notSplit=!0,e}kn(["borderTop","borderBottom"]),kn(["borderTop"]),kn(["borderBottom"]),kn(["borderLeft","borderRight"]),kn(["borderLeft"]),kn(["borderRight"]);var Zf=N.createContext({});const ba=Zf;function Jf(e){return Bl(e)||Nl(e)||ua(e)||Hl()}function Ni(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function tc(e,t,n,r){if(!t.length)return n;var o=Jf(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Xe(e):l=V({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=tc(l[i],a,n,r),l}function ti(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ni(e,t.slice(0,-1))?e:tc(e,t,n,r)}function ev(e){return je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function cs(e){return Array.isArray(e)?[]:{}}var tv=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function nv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=cs(t[0]);return t.forEach(function(o){function i(a,l){var c=new Set(l),u=Ni(o,a),f=Array.isArray(u);if(f||ev(u)){if(!c.has(u)){c.add(u);var d=Ni(r,a);f?r=ti(r,a,[]):(!d||je(d)!=="object")&&(r=ti(r,a,cs(u))),tv(u).forEach(function(m){i([].concat(Xe(a),[m]),c)})}}else r=ti(r,a,u)}i([])}),r}function nc(){}let Gt=null;function rv(){Gt=null,Sl()}let ya=nc;process.env.NODE_ENV!=="production"&&(ya=(e,t,n)=>{gt(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&rv()});const rc=s.createContext({}),Pn=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=s.useContext(rc),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=Gt;Gt||(Gt={}),Gt[e]=Gt[e]||[],Gt[e].includes(i||"")||Gt[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Gt)}else process.env.NODE_ENV!=="production"&&ya(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=nc,e},Mo=ya,ov=N.createContext(void 0),iv={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 av={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 sv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},oc=sv,lv={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"]},av),timePickerLocale:Object.assign({},oc)},us=lv,yt="${label} is not a valid ${type}",cv={locale:"en",Pagination:iv,DatePicker:us,TimePicker:oc,Calendar:us,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:yt,method:yt,array:yt,object:yt,number:yt,date:yt,boolean:yt,integer:yt,float:yt,regexp:yt,email:yt,url:yt,hex:yt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},No=cv;Object.assign({},No.Modal);let io=[];const ds=()=>io.reduce((e,t)=>Object.assign(Object.assign({},e),t),No.Modal);function uv(e){if(e){const t=Object.assign({},e);return io.push(t),ds(),()=>{io=io.filter(n=>n!==t),ds()}}Object.assign({},No.Modal)}const dv=N.createContext(void 0),ic=dv,ac="internalMark",sc=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=Pn("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===ac,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}s.useEffect(()=>uv(t&&t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(ic.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(sc.displayName="LocaleProvider");const fv=sc;function nt(e,t){vv(e)&&(e="100%");var n=mv(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 Vr(e){return Math.min(1,Math.max(0,e))}function vv(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function mv(e){return typeof e=="string"&&e.indexOf("%")!==-1}function lc(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Kr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Cn(e){return e.length===1?"0"+e:String(e)}function pv(e,t,n){return{r:nt(e,255)*255,g:nt(t,255)*255,b:nt(n,255)*255}}function fs(e,t,n){e=nt(e,255),t=nt(t,255),n=nt(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 ni(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 gv(e,t,n){var r,o,i;if(e=nt(e,360),t=nt(t,100),n=nt(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=ni(l,a,e+1/3),o=ni(l,a,e),i=ni(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function _i(e,t,n){e=nt(e,255),t=nt(t,255),n=nt(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 hv(e,t,n){e=nt(e,360)*6,t=nt(t,100),n=nt(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],f=[l,n,n,a,i,i][c],d=[i,i,l,n,n,a][c];return{r:u*255,g:f*255,b:d*255}}function Ai(e,t,n,r){var o=[Cn(Math.round(e).toString(16)),Cn(Math.round(t).toString(16)),Cn(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 bv(e,t,n,r,o){var i=[Cn(Math.round(e).toString(16)),Cn(Math.round(t).toString(16)),Cn(Math.round(n).toString(16)),Cn(yv(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 yv(e){return Math.round(parseFloat(e)*255).toString(16)}function vs(e){return Ct(e)/255}function Ct(e){return parseInt(e,16)}function Cv(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Di={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 Gn(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=Ev(e)),typeof e=="object"&&(Kt(e.r)&&Kt(e.g)&&Kt(e.b)?(t=pv(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kt(e.h)&&Kt(e.s)&&Kt(e.v)?(r=Kr(e.s),o=Kr(e.v),t=hv(e.h,r,o),a=!0,l="hsv"):Kt(e.h)&&Kt(e.s)&&Kt(e.l)&&(r=Kr(e.s),i=Kr(e.l),t=gv(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=lc(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 Sv="[-\\+]?\\d+%?",wv="[-\\+]?\\d*\\.\\d+%?",nn="(?:".concat(wv,")|(?:").concat(Sv,")"),ri="[\\s|\\(]+(".concat(nn,")[,|\\s]+(").concat(nn,")[,|\\s]+(").concat(nn,")\\s*\\)?"),oi="[\\s|\\(]+(".concat(nn,")[,|\\s]+(").concat(nn,")[,|\\s]+(").concat(nn,")[,|\\s]+(").concat(nn,")\\s*\\)?"),At={CSS_UNIT:new RegExp(nn),rgb:new RegExp("rgb"+ri),rgba:new RegExp("rgba"+oi),hsl:new RegExp("hsl"+ri),hsla:new RegExp("hsla"+oi),hsv:new RegExp("hsv"+ri),hsva:new RegExp("hsva"+oi),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 Ev(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Di[e])e=Di[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=At.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=At.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=At.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=At.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=At.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=At.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=At.hex8.exec(e),n?{r:Ct(n[1]),g:Ct(n[2]),b:Ct(n[3]),a:vs(n[4]),format:t?"name":"hex8"}:(n=At.hex6.exec(e),n?{r:Ct(n[1]),g:Ct(n[2]),b:Ct(n[3]),format:t?"name":"hex"}:(n=At.hex4.exec(e),n?{r:Ct(n[1]+n[1]),g:Ct(n[2]+n[2]),b:Ct(n[3]+n[3]),a:vs(n[4]+n[4]),format:t?"name":"hex8"}:(n=At.hex3.exec(e),n?{r:Ct(n[1]+n[1]),g:Ct(n[2]+n[2]),b:Ct(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Kt(e){return!!At.CSS_UNIT.exec(String(e))}var dt=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=Cv(t)),this.originalInput=t;var o=Gn(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=lc(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=_i(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=_i(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=fs(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=fs(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),Ai(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),bv(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(nt(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(nt(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="#"+Ai(this.r,this.g,this.b,!1),n=0,r=Object.entries(Di);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=Vr(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=Vr(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=Vr(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=Vr(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}(),Ur=2,ms=.16,xv=.05,$v=.05,Ov=.15,cc=5,uc=4,Iv=[{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 ps(e){var t=e.r,n=e.g,r=e.b,o=_i(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Gr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Ai(t,n,r,!1))}function Pv(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 gs(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ur*t:Math.round(e.h)+Ur*t:r=n?Math.round(e.h)+Ur*t:Math.round(e.h)-Ur*t,r<0?r+=360:r>=360&&(r-=360),r}function hs(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-ms*t:t===uc?r=e.s+ms:r=e.s+xv*t,r>1&&(r=1),n&&t===cc&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function bs(e,t,n){var r;return n?r=e.v+$v*t:r=e.v-Ov*t,r>1&&(r=1),Number(r.toFixed(2))}function On(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Gn(e),o=cc;o>0;o-=1){var i=ps(r),a=Gr(Gn({h:gs(i,o,!0),s:hs(i,o,!0),v:bs(i,o,!0)}));n.push(a)}n.push(Gr(r));for(var l=1;l<=uc;l+=1){var c=ps(r),u=Gr(Gn({h:gs(c,l),s:hs(c,l),v:bs(c,l)}));n.push(u)}return t.theme==="dark"?Iv.map(function(f){var d=f.index,m=f.opacity,g=Gr(Pv(Gn(t.backgroundColor||"#141414"),Gn(n[d]),m*100));return g}):n}var ii={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"},ao={},ai={};Object.keys(ii).forEach(function(e){ao[e]=On(ii[e]),ao[e].primary=ao[e][5],ai[e]=On(ii[e],{theme:"dark",backgroundColor:"#141414"}),ai[e].primary=ai[e][5]});var Rv=ao.blue;const Tv=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Mv=Tv;function Nv(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 dc={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"},_v=Object.assign(Object.assign({},dc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
26
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
27
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),xr=_v;function Av(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:f}=e,d=n(c),m=n(o),g=n(i),h=n(a),p=n(l),v=r(u,f),w=e.colorLink||e.colorInfo,S=n(w);return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg: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:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new dt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Dv=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}},Lv=Dv;function jv(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},Lv(r))}const Ut=(e,t)=>new dt(e).setAlpha(t).toRgbString(),fr=(e,t)=>new dt(e).darken(t).toHexString(),zv=e=>{const t=On(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]}},kv=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ut(r,.88),colorTextSecondary:Ut(r,.65),colorTextTertiary:Ut(r,.45),colorTextQuaternary:Ut(r,.25),colorFill:Ut(r,.15),colorFillSecondary:Ut(r,.06),colorFillTertiary:Ut(r,.04),colorFillQuaternary:Ut(r,.02),colorBgLayout:fr(n,4),colorBgContainer:fr(n,0),colorBgElevated:fr(n,0),colorBgSpotlight:Ut(r,.85),colorBgBlur:"transparent",colorBorder:fr(n,15),colorBorderSecondary:fr(n,6)}};function Bv(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 Hv=e=>{const t=Bv(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]}},Wv=Hv;function Fv(e){const t=Object.keys(dc).map(n=>{const r=On(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),Av(e,{generateColorPalettes:zv,generateNeutralColorPalettes:kv})),Wv(e.fontSize)),Nv(e)),Mv(e)),jv(e))}const fc=Oi(Fv),vc={token:xr,override:{override:xr},hashed:!0},mc=N.createContext(vc),pc="anticon",Vv=(e,t)=>t||(e?`ant-${e}`:"ant"),Je=s.createContext({getPrefixCls:Vv,iconPrefixCls:pc}),Kv=`-ant-${Date.now()}-${Math.random()}`;function Uv(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 dt(a),u=On(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 dt(t.primaryColor),l=On(a.toRgbString());l.forEach((u,f)=>{n[`primary-${f+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 dt(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
28
|
-
:root {
|
|
29
|
-
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
30
|
-
`)}
|
|
31
|
-
}
|
|
32
|
-
`.trim()}function Gv(e,t){const n=Uv(e,t);ft()?Sr(n,`${Kv}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Li=s.createContext(!1),Xv=e=>{let{children:t,disabled:n}=e;const r=s.useContext(Li);return s.createElement(Li.Provider,{value:n??r},t)},gc=Li,ji=s.createContext(void 0),Yv=e=>{let{children:t,size:n}=e;const r=s.useContext(ji);return s.createElement(ji.Provider,{value:n||r},t)},_o=ji;function qv(){const e=N.useContext(gc),t=N.useContext(_o);return{componentDisabled:e,componentSize:t}}const go=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Qv="5.11.0";function si(e){return e>=0&&e<=255}function Xr(e,t){const{r:n,g:r,b:o,a:i}=new dt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new dt(t).toRgb();for(let u=.01;u<=1;u+=.01){const f=Math.round((n-a*(1-u))/u),d=Math.round((r-l*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(si(f)&&si(d)&&si(m))return new dt({r:f,g:d,b:m,a:Math.round(u*100)/100}).toRgbString()}return new dt({r:n,g:r,b:o,a:1}).toRgbString()}var Zv=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 hc(e){const{override:t}=e,n=Zv(e,["override"]),r=Object.assign({},t);Object.keys(xr).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,c=992,u=1200,f=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:Xr(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:Xr(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Xr(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:Xr(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
33
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
-
`,boxShadowSecondary:`
|
|
37
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
-
`,boxShadowTertiary:`
|
|
41
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
42
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
43
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
44
|
-
`,screenXS: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:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
45
|
-
0 1px 2px -2px ${new dt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
46
|
-
0 3px 6px 0 ${new dt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
47
|
-
0 5px 12px 4px ${new dt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
48
|
-
`,boxShadowDrawerRight:`
|
|
49
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
51
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
52
|
-
`,boxShadowDrawerLeft:`
|
|
53
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
54
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
55
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
56
|
-
`,boxShadowDrawerUp:`
|
|
57
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
58
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
59
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
60
|
-
`,boxShadowDrawerDown:`
|
|
61
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
62
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
63
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
64
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ys=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bc=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ys(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=hc(a),i&&Object.entries(i).forEach(l=>{let[c,u]=l;const{theme:f}=u,d=ys(u,["theme"]);let m=d;f&&(m=bc(Object.assign(Object.assign({},a),d),{override:d},f)),a[c]=m}),a};function dn(){const{token:e,hashed:t,theme:n,override:r}=N.useContext(mc),o=`${Qv}-${t||""}`,i=n||fc,[a,l]=Ef(i,[xr,e],{salt:o,override:r,getComputedToken:bc,formatToken:hc});return[i,a,t?l:""]}function St(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 Qn(e){var t=s.useRef(!1),n=s.useState(e),r=F(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 li(e){return e!==void 0}function xn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Qn(function(){return li(o)?o:li(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=F(l,2),u=c[0],f=c[1],d=o!==void 0?o:u,m=a?a(d):d,g=St(i),h=Qn([d]),p=F(h,2),v=p[0],w=p[1];ns(function(){var y=v[0];u!==y&&g(u,y)},[v]),ns(function(){li(o)||f(o)},[o]);var S=St(function(y,C){f(y,C),w([d],C)});return[m,S]}const Jv=(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)),f=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-f,g=d,h=2*i-c,p=u,v=2*i-a,w=l,S=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=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(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${c} ${u} L ${f} ${d} A ${t} ${t} 0 0 1 ${m} ${g} L ${h} ${p} A ${n} ${n} 0 0 0 ${v} ${w} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:S,height:S,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"}}},em={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ca=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}},yc=()=>({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"}}),Cs=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),tm=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"}}}),nm=(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"}}}}},Cc=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zi=e=>({"&:focus-visible":Object.assign({},Cc(e))}),Sc=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let ki=!0;function Ot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Sc)return Object.assign.apply(Object,[{}].concat(t));ki=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),ki=!0,r}const Ss={};function rm(){}function om(e){let t,n=e,r=rm;return Sc&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return ki&&t.add(i),o[i]}}),r=(o,i)=>{var a;Ss[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=Ss[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}}const im=(e,t)=>{const[n,r]=dn();return Mi({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},yc()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},wc=im;function Rn(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,f]=dn(),{getPrefixCls:d,iconPrefixCls:m,csp:g}=N.useContext(Je),h=d(),p={theme:c,token:u,hashId:f,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Mi(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":tm(u)}]),wc(m,g),[Mi(Object.assign(Object.assign({},p),{path:[a,l,m]}),()=>{const{token:v,flush:w}=om(u),S=Object.assign({},u[i]);if(r.deprecatedTokens){const{deprecatedTokens:R}=r;R.forEach(_=>{let[P,k]=_;var j;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&>(!(S!=null&&S[P]),`The token '${String(P)}' of ${i} had deprecated, use '${String(k)}' instead.`),(S!=null&&S[P]||S!=null&&S[k])&&((j=S[k])!==null&&j!==void 0||(S[k]=S==null?void 0:S[P]))})}const y=typeof n=="function"?n(Ot(v,S??{})):n,C=Object.assign(Object.assign({},y),S),$=`.${l}`,I=Ot(v,{componentCls:$,prefixCls:l,iconCls:`.${m}`,antCls:`.${h}`},C),x=t(I,{hashId:f,prefixCls:l,rootPrefixCls:h,iconPrefixCls:m,overrideComponentToken:S});return w(i,C),[r.resetStyle===!1?null:nm(u,l),x]}),f]}}const am=(e,t,n,r)=>{const o=Rn(e,t,n,Object.assign({resetStyle:!1,order:-998},r)),i=a=>{let{prefixCls:l}=a;return o(l),null};return process.env.NODE_ENV!=="production"&&(i.displayName=`SubStyle_${Array.isArray(e)?e.join("."):e}`),i};function sm(e,t){return go.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 lm(e,t){const n=e||{},r=n.inherit===!1||!t?vc:t;return xo(()=>{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!va(a,c,!0)}))}var cm=["children"],Ec=s.createContext({});function um(e){var t=e.children,n=ke(e,cm);return s.createElement(Ec.Provider,{value:n},t)}var dm=function(e){Oo(n,e);var t=Io(n);function n(){return ln(this,n),t.apply(this,arguments)}return cn(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),bn="none",Yr="appear",qr="enter",Qr="leave",ws="none",Dt="prepare",Yn="start",qn="active",Sa="end",xc="prepared";function Es(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 fm(e,t){var n={animationend:Es("Animation","AnimationEnd"),transitionend:Es("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var vm=fm(ft(),typeof window<"u"?window:{}),$c={};if(ft()){var mm=document.createElement("div");$c=mm.style}var Zr={};function Oc(e){if(Zr[e])return Zr[e];var t=vm[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 $c)return Zr[e]=t[i],Zr[e]}return""}var Ic=Oc("animationend"),Pc=Oc("transitionend"),Rc=!!(Ic&&Pc),xs=Ic||"animationend",$s=Pc||"transitionend";function Os(e,t){if(!e)return null;if(je(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const pm=function(e){var t=N.useRef(),n=N.useRef(e);n.current=e;var r=s.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener($s,r),a.removeEventListener(xs,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener($s,r),a.addEventListener(xs,r),t.current=a)}return s.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};var Tc=ft()?N.useLayoutEffect:N.useEffect;const gm=function(){var e=s.useRef(null);function t(){ct.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=ct(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 hm=[Dt,Yn,qn,Sa],bm=[Dt,xc],Mc=!1,ym=!0;function Nc(e){return e===qn||e===Sa}const Cm=function(e,t,n){var r=Qn(ws),o=F(r,2),i=o[0],a=o[1],l=gm(),c=F(l,2),u=c[0],f=c[1];function d(){a(Dt,!0)}var m=t?bm:hm;return Tc(function(){if(i!==ws&&i!==Sa){var g=m.indexOf(i),h=m[g+1],p=n(i);p===Mc?a(h,!0):h&&u(function(v){function w(){v.isCanceled()||a(h,!0)}p===!0?w():Promise.resolve(p).then(w)})}},[e,i]),s.useEffect(function(){return function(){f()}},[]),[d,i]};function Sm(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,f=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,p=r.onAppearStart,v=r.onEnterStart,w=r.onLeaveStart,S=r.onAppearActive,y=r.onEnterActive,C=r.onLeaveActive,$=r.onAppearEnd,I=r.onEnterEnd,x=r.onLeaveEnd,R=r.onVisibleChanged,_=Qn(),P=F(_,2),k=P[0],j=P[1],T=Qn(bn),L=F(T,2),A=L[0],E=L[1],b=Qn(null),O=F(b,2),M=O[0],D=O[1],z=N.useRef(!1),B=N.useRef(null);function K(){return n()}var W=N.useRef(!1);function te(){E(bn,!0),D(null,!0)}function Q(pe){var ee=K();if(!(pe&&!pe.deadline&&pe.target!==ee)){var ae=W.current,le;A===Yr&&ae?le=$==null?void 0:$(ee,pe):A===qr&&ae?le=I==null?void 0:I(ee,pe):A===Qr&&ae&&(le=x==null?void 0:x(ee,pe)),A!==bn&&ae&&le!==!1&&te()}}var X=pm(Q),J=F(X,1),ue=J[0],Y=function(ee){var ae,le,de;switch(ee){case Yr:return ae={},re(ae,Dt,m),re(ae,Yn,p),re(ae,qn,S),ae;case qr:return le={},re(le,Dt,g),re(le,Yn,v),re(le,qn,y),le;case Qr:return de={},re(de,Dt,h),re(de,Yn,w),re(de,qn,C),de;default:return{}}},ie=s.useMemo(function(){return Y(A)},[A]),fe=Cm(A,!e,function(pe){if(pe===Dt){var ee=ie[Dt];return ee?ee(K()):Mc}if(me in ie){var ae;D(((ae=ie[me])===null||ae===void 0?void 0:ae.call(ie,K(),null))||null)}return me===qn&&(ue(K()),f>0&&(clearTimeout(B.current),B.current=setTimeout(function(){Q({deadline:!0})},f))),me===xc&&te(),ym}),ge=F(fe,2),H=ge[0],me=ge[1],ve=Nc(me);W.current=ve,Tc(function(){j(t);var pe=z.current;z.current=!0;var ee;!pe&&t&&l&&(ee=Yr),pe&&t&&i&&(ee=qr),(pe&&!t&&u||!pe&&d&&!t&&u)&&(ee=Qr);var ae=Y(ee);ee&&(e||ae[Dt])?(E(ee),H()):E(bn)},[t]),N.useEffect(function(){(A===Yr&&!l||A===qr&&!i||A===Qr&&!u)&&E(bn)},[l,i,u]),N.useEffect(function(){return function(){z.current=!1,clearTimeout(B.current)}},[]);var Oe=s.useRef(!1);N.useEffect(function(){k&&(Oe.current=!0),k!==void 0&&A===bn&&((Oe.current||k)&&(R==null||R(k)),Oe.current=!0)},[k,A]);var ne=M;return ie[Dt]&&me===Yn&&(ne=V({transition:"none"},ne)),[A,me,ne,k??t]}function wm(e){var t=e;je(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,f=o.forceRender,d=o.children,m=o.motionName,g=o.leavedClassName,h=o.eventProps,p=s.useContext(Ec),v=p.motion,w=n(o,v),S=N.useRef(),y=N.useRef();function C(){try{return S.current instanceof HTMLElement?S.current:to(y.current)}catch{return null}}var $=Sm(w,l,C,o),I=F($,4),x=I[0],R=I[1],_=I[2],P=I[3],k=s.useRef(P);P&&(k.current=!0);var j=s.useCallback(function(D){S.current=D,ca(i,D)},[i]),T,L=V(V({},h),{},{visible:l});if(!d)T=null;else if(x===bn)P?T=d(V({},L),j):!u&&k.current&&g?T=d(V(V({},L),{},{className:g}),j):f||!u&&!g?T=d(V(V({},L),{},{style:{display:"none"}}),j):T=null;else{var A,E;R===Dt?E="prepare":Nc(R)?E="active":R===Yn&&(E="start");var b=Os(m,"".concat(x,"-").concat(E));T=d(V(V({},L),{},{className:oe(Os(m,x),(A={},re(A,b,b&&E),re(A,m,typeof m=="string"),A)),style:_}),j)}if(s.isValidElement(T)&&sn(T)){var O=T,M=O.ref;M||(T=s.cloneElement(T,{ref:j}))}return s.createElement(dm,{ref:y},T)});return r.displayName="CSSMotion",r}const or=wm(Rc);var Bi="add",Hi="keep",Wi="remove",ci="removed";function Em(e){var t;return e&&je(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function Fi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Em)}function xm(){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=Fi(e),a=Fi(t);i.forEach(function(u){for(var f=!1,d=r;d<o;d+=1){var m=a[d];if(m.key===u.key){r<d&&(n=n.concat(a.slice(r,d).map(function(g){return V(V({},g),{},{status:Bi})})),r=d),n.push(V(V({},m),{},{status:Hi})),r+=1,f=!0;break}}f||n.push(V(V({},u),{},{status:Wi}))}),r<o&&(n=n.concat(a.slice(r).map(function(u){return V(V({},u),{},{status:Bi})})));var l={};n.forEach(function(u){var f=u.key;l[f]=(l[f]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){n=n.filter(function(f){var d=f.key,m=f.status;return d!==u||m!==Wi}),n.forEach(function(f){f.key===u&&(f.status=Hi)})}),n}var $m=["component","children","onVisibleChanged","onAllRemoved"],Om=["status"],Im=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Pm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:or,n=function(r){Oo(i,r);var o=Io(i);function i(){var a;ln(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)),re(wi(a),"state",{keyEntities:[]}),re(wi(a),"removeKey",function(f){var d=a.state.keyEntities,m=d.map(function(g){return g.key!==f?g:V(V({},g),{},{status:ci})});return a.setState({keyEntities:m}),m.filter(function(g){var h=g.status;return h!==ci}).length}),a}return cn(i,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,f=u.component,d=u.children,m=u.onVisibleChanged,g=u.onAllRemoved,h=ke(u,$m),p=f||s.Fragment,v={};return Im.forEach(function(w){v[w]=h[w],delete h[w]}),delete h.keys,s.createElement(p,h,c.map(function(w,S){var y=w.status,C=ke(w,Om),$=y===Bi||y===Hi;return s.createElement(t,Pe({},v,{key:C.key,visible:$,eventProps:C,onVisibleChanged:function(x){if(m==null||m(x,{key:C.key}),!x){var R=l.removeKey(C.key);R===0&&g&&g()}}}),function(I,x){return d(V(V({},I),{},{index:S}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,f=c.keyEntities,d=Fi(u),m=xm(f,d);return{keyEntities:m.filter(function(g){var h=f.find(function(p){var v=p.key;return g.key===v});return!(h&&h.status===ci&&g.status===Wi)})}}}]),i}(s.Component);return re(n,"defaultProps",{component:"div"}),n}Pm(Rc);function Rm(e){const{children:t}=e,[,n]=dn(),{motion:r}=n,o=s.useRef(!1);return o.current=o.current||r===!1,o.current?s.createElement(um,{motion:r},t):t}const _c=s.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Pn("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(_c.displayName="PropWarning");const Tm=process.env.NODE_ENV!=="production"?_c:()=>null;var Mm=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 Vi=!1;process.env.NODE_ENV;const Nm=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],_m="ant";let Ac;function Am(){return Ac||_m}function Dm(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Lm=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(Ac=t),r&&Dm(r)&&(process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Gv(Am(),r))},jm=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:f,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:p,parentContext:v,iconPrefixCls:w,theme:S,componentDisabled:y,segmented:C,statistic:$,spin:I,calendar:x,carousel:R,cascader:_,collapse:P,typography:k,checkbox:j,descriptions:T,divider:L,drawer:A,skeleton:E,steps:b,image:O,layout:M,list:D,mentions:z,modal:B,progress:K,result:W,slider:te,breadcrumb:Q,menu:X,pagination:J,input:ue,empty:Y,badge:ie,radio:fe,rate:ge,switch:H,transfer:me,avatar:ve,message:Oe,tag:ne,table:pe,card:ee,tabs:ae,timeline:le,timePicker:de,upload:Fe,notification:rt,tree:Re,colorPicker:ht,datePicker:Be,rangePicker:Ne,flex:ot,wave:Ae,dropdown:vt,warning:De}=e,mt=s.useCallback((se,Ee)=>{const{prefixCls:U}=e;if(Ee)return Ee;const Z=U||v.getPrefixCls("");return se?`${Z}-${se}`:Z},[v.getPrefixCls,e.prefixCls]),Le=w||v.iconPrefixCls||pc,Ce=n||v.csp;wc(Le,Ce);const Te=lm(S,v.theme);process.env.NODE_ENV!=="production"&&(Vi=Vi||!!Te);const Ye={csp:Ce,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||p,direction:u,space:f,virtual:d,popupMatchSelectWidth:g??m,popupOverflow:h,getPrefixCls:mt,iconPrefixCls:Le,theme:Te,segmented:C,statistic:$,spin:I,calendar:x,carousel:R,cascader:_,collapse:P,typography:k,checkbox:j,descriptions:T,divider:L,drawer:A,skeleton:E,steps:b,image:O,input:ue,layout:M,list:D,mentions:z,modal:B,progress:K,result:W,slider:te,breadcrumb:Q,menu:X,pagination:J,empty:Y,badge:ie,radio:fe,rate:ge,switch:H,transfer:me,avatar:ve,message:Oe,tag:ne,table:pe,card:ee,tabs:ae,timeline:le,timePicker:de,upload:Fe,notification:rt,tree:Re,colorPicker:ht,datePicker:Be,rangePicker:Ne,flex:ot,wave:Ae,dropdown:vt,warning:De},ze=Object.assign({},v);Object.keys(Ye).forEach(se=>{Ye[se]!==void 0&&(ze[se]=Ye[se])}),Nm.forEach(se=>{const Ee=e[se];Ee&&(ze[se]=Ee)});const Qe=xo(()=>ze,ze,(se,Ee)=>{const U=Object.keys(se),Z=Object.keys(Ee);return U.length!==Z.length||U.some(Se=>se[Se]!==Ee[Se])}),pt=s.useMemo(()=>({prefixCls:Le,csp:Ce}),[Le,Ce]);let he=s.createElement(s.Fragment,null,s.createElement(Tm,{dropdownMatchSelectWidth:m}),t);const be=s.useMemo(()=>{var se,Ee,U,Z;return nv(((se=No.Form)===null||se===void 0?void 0:se.defaultValidateMessages)||{},((U=(Ee=Qe.locale)===null||Ee===void 0?void 0:Ee.Form)===null||U===void 0?void 0:U.defaultValidateMessages)||{},((Z=Qe.form)===null||Z===void 0?void 0:Z.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Qe,a==null?void 0:a.validateMessages]);Object.keys(be).length>0&&(he=s.createElement(ov.Provider,{value:be},he)),l&&(he=s.createElement(fv,{locale:l,_ANT_MARK__:ac},he)),(Le||Ce)&&(he=s.createElement(ba.Provider,{value:pt},he)),c&&(he=s.createElement(Yv,{size:c},he)),he=s.createElement(Rm,null,he);const we=s.useMemo(()=>{const se=Te||{},{algorithm:Ee,token:U,components:Z}=se,Se=Mm(se,["algorithm","token","components"]),Ve=Ee&&(!Array.isArray(Ee)||Ee.length>0)?Oi(Ee):fc,Ke={};Object.entries(Z||{}).forEach(fn=>{let[Bt,It]=fn;const Ue=Object.assign({},It);"algorithm"in Ue&&(Ue.algorithm===!0?Ue.theme=Ve:(Array.isArray(Ue.algorithm)||typeof Ue.algorithm=="function")&&(Ue.theme=Oi(Ue.algorithm)),delete Ue.algorithm),Ke[Bt]=Ue});const it=Object.assign(Object.assign({},xr),U);return Object.assign(Object.assign({},Se),{theme:Ve,token:it,components:Ke,override:Object.assign({override:it},Ke)})},[Te]);return S&&(he=s.createElement(mc.Provider,{value:we},he)),Qe.warning&&(he=s.createElement(rc.Provider,{value:Qe.warning},he)),y!==void 0&&(he=s.createElement(Xv,{disabled:y},he)),s.createElement(Je.Provider,{value:Qe},he)},Tn=e=>{const t=s.useContext(Je),n=s.useContext(ic);return s.createElement(jm,Object.assign({parentContext:t,legacyLocale:n},e))};Tn.ConfigContext=Je;Tn.SizeContext=_o;Tn.config=Lm;Tn.useConfig=qv;Object.defineProperty(Tn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),_o)});process.env.NODE_ENV!=="production"&&(Tn.displayName="ConfigProvider");function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},on.apply(this,arguments)}function zm(e){if(Array.isArray(e))return e}function km(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(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function Is(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 Bm(e,t){if(e){if(typeof e=="string")return Is(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 Is(e,t)}}function Hm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
65
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dc(e,t){return zm(e)||km(e,t)||Bm(e,t)||Hm()}function In(e){"@babel/helpers - typeof";return In=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},In(e)}function Wm(e,t){if(In(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(In(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fm(e){var t=Wm(e,"string");return In(t)==="symbol"?t:String(t)}function Ki(e,t,n){return t=Fm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vm(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 Lc(e,t){if(e==null)return{};var n=Vm(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 Ps(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 rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ps(Object(n),!0).forEach(function(r){Ki(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Km(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Um(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 Rs="data-rc-order",Ts="data-rc-priority",Gm="rc-util-key",Ui=new Map;function jc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Gm}function wa(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Xm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zc(e){return Array.from((Ui.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function kc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Km())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=Xm(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(Rs,a),l&&i&&c.setAttribute(Ts,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=wa(t),f=u.firstChild;if(r){if(l){var d=zc(u).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Rs)))return!1;var g=Number(m.getAttribute(Ts)||0);return i>=g});if(d.length)return u.insertBefore(c,d[d.length-1].nextSibling),c}u.insertBefore(c,f)}else u.appendChild(c);return c}function Ym(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wa(t);return zc(n).find(function(r){return r.getAttribute(jc(t))===e})}function qm(e,t){var n=Ui.get(e);if(!n||!Um(document,n)){var r=kc("",t),o=r.parentNode;Ui.set(e,o),e.removeChild(r)}}function Qm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=wa(n);qm(r,n);var o=Ym(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=kc(e,n);return c.setAttribute(jc(n),t),c}function Bc(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Zm(e){return Bc(e)instanceof ShadowRoot}function Jm(e){return Zm(e)?Bc(e):null}var Gi={},Ea=[],ep=function(t){Ea.push(t)};function tp(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Ea.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function np(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Ea.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function rp(){Gi={}}function Hc(e,t,n){!t&&!Gi[n]&&(e(!1,n),Gi[n]=!0)}function Ao(e,t){Hc(tp,e,t)}function op(e,t){Hc(np,e,t)}Ao.preMessage=ep;Ao.resetWarned=rp;Ao.noteOnce=op;function ip(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function ap(e,t){Ao(e,"[@ant-design/icons] ".concat(t))}function Ms(e){return In(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(In(e.icon)==="object"||typeof e.icon=="function")}function Ns(){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[ip(n)]=r}return t},{})}function Xi(e,t,n){return n?N.createElement(e.tag,rn(rn({key:t},Ns(e.attrs)),n),(e.children||[]).map(function(r,o){return Xi(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):N.createElement(e.tag,rn({key:t},Ns(e.attrs)),(e.children||[]).map(function(r,o){return Xi(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Wc(e){return On(e)[0]}function Fc(e){return e?Array.isArray(e)?e:[e]:[]}var sp=`
|
|
66
|
-
.anticon {
|
|
67
|
-
display: inline-block;
|
|
68
|
-
color: inherit;
|
|
69
|
-
font-style: normal;
|
|
70
|
-
line-height: 0;
|
|
71
|
-
text-align: center;
|
|
72
|
-
text-transform: none;
|
|
73
|
-
vertical-align: -0.125em;
|
|
74
|
-
text-rendering: optimizeLegibility;
|
|
75
|
-
-webkit-font-smoothing: antialiased;
|
|
76
|
-
-moz-osx-font-smoothing: grayscale;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.anticon > * {
|
|
80
|
-
line-height: 1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.anticon svg {
|
|
84
|
-
display: inline-block;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.anticon::before {
|
|
88
|
-
display: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.anticon .anticon-icon {
|
|
92
|
-
display: block;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.anticon[tabindex] {
|
|
96
|
-
cursor: pointer;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.anticon-spin::before,
|
|
100
|
-
.anticon-spin {
|
|
101
|
-
display: inline-block;
|
|
102
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
103
|
-
animation: loadingCircle 1s infinite linear;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@-webkit-keyframes loadingCircle {
|
|
107
|
-
100% {
|
|
108
|
-
-webkit-transform: rotate(360deg);
|
|
109
|
-
transform: rotate(360deg);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@keyframes loadingCircle {
|
|
114
|
-
100% {
|
|
115
|
-
-webkit-transform: rotate(360deg);
|
|
116
|
-
transform: rotate(360deg);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
`,lp=function(t){var n=N.useContext(ba),r=n.csp,o=n.prefixCls,i=sp;o&&(i=i.replace(/anticon/g,o)),N.useEffect(function(){var a=t.current,l=Jm(a);Qm(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},cp=["icon","className","onClick","style","primaryColor","secondaryColor"],yr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function up(e){var t=e.primaryColor,n=e.secondaryColor;yr.primaryColor=t,yr.secondaryColor=n||Wc(t),yr.calculated=!!n}function dp(){return rn({},yr)}var Do=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,c=Lc(t,cp),u=s.useRef(),f=yr;if(a&&(f={primaryColor:a,secondaryColor:l||Wc(a)}),lp(u),ap(Ms(n),"icon should be icon definiton, but got ".concat(n)),!Ms(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=rn(rn({},d),{},{icon:d.icon(f.primaryColor,f.secondaryColor)})),Xi(d.icon,"svg-".concat(d.name),rn(rn({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Do.displayName="IconReact";Do.getTwoToneColors=dp;Do.setTwoToneColors=up;const xa=Do;function Vc(e){var t=Fc(e),n=Dc(t,2),r=n[0],o=n[1];return xa.setTwoToneColors({primaryColor:r,secondaryColor:o})}function fp(){var e=xa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var vp=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Vc(Rv.primary);var Lo=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,f=Lc(e,vp),d=s.useContext(ba),m=d.prefixCls,g=m===void 0?"anticon":m,h=d.rootClassName,p=oe(h,g,(n={},Ki(n,"".concat(g,"-").concat(o.name),!!o.name),Ki(n,"".concat(g,"-spin"),!!i||o.name==="loading"),n),r),v=l;v===void 0&&c&&(v=-1);var w=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,S=Fc(u),y=Dc(S,2),C=y[0],$=y[1];return s.createElement("span",on({role:"img","aria-label":o.name},f,{ref:t,tabIndex:v,onClick:c,className:p}),s.createElement(xa,{icon:o,primaryColor:C,secondaryColor:$,style:w}))});Lo.displayName="AntdIcon";Lo.getTwoToneColor=fp;Lo.setTwoToneColor=Vc;const Mr=Lo,{isValidElement:an}=s;function Kc(e){return e&&an(e)&&e.type===s.Fragment}function mp(e,t,n){return an(e)?s.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Mn(e,t){return mp(e,e,t)}var q={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>=q.F1&&n<=q.F12)return!1;switch(n){case q.ALT:case q.CAPS_LOCK:case q.CONTEXT_MENU:case q.CTRL:case q.DOWN:case q.END:case q.ESC:case q.HOME:case q.INSERT:case q.LEFT:case q.MAC_FF_META:case q.META:case q.NUMLOCK:case q.NUM_CENTER:case q.PAGE_DOWN:case q.PAGE_UP:case q.PAUSE:case q.PRINT_SCREEN:case q.RIGHT:case q.SHIFT:case q.UP:case q.WIN_KEY:case q.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=q.ZERO&&t<=q.NINE||t>=q.NUM_ZERO&&t<=q.NUM_MULTIPLY||t>=q.A&&t<=q.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case q.SPACE:case q.QUESTION_MARK:case q.NUM_PLUS:case q.NUM_MINUS:case q.NUM_PERIOD:case q.NUM_DIVISION:case q.SEMICOLON:case q.DASH:case q.EQUALS:case q.COMMA:case q.PERIOD:case q.SLASH:case q.APOSTROPHE:case q.SINGLE_QUOTE:case q.OPEN_SQUARE_BRACKET:case q.BACKSLASH:case q.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},pp={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const gp=pp;var Uc=function(t,n){return s.createElement(Mr,on({},t,{ref:n,icon:gp}))};process.env.NODE_ENV!=="production"&&(Uc.displayName="LoadingOutlined");const hp=s.forwardRef(Uc);function $r(){$r=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(E,b,O){E[b]=O.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(E,b,O){return Object.defineProperty(E,b,{value:O,enumerable:!0,configurable:!0,writable:!0}),E[b]}try{u({},"")}catch{u=function(O,M,D){return O[M]=D}}function f(E,b,O,M){var D=b&&b.prototype instanceof w?b:w,z=Object.create(D.prototype),B=new L(M||[]);return o(z,"_invoke",{value:P(E,O,B)}),z}function d(E,b,O){try{return{type:"normal",arg:E.call(b,O)}}catch(M){return{type:"throw",arg:M}}}t.wrap=f;var m="suspendedStart",g="suspendedYield",h="executing",p="completed",v={};function w(){}function S(){}function y(){}var C={};u(C,a,function(){return this});var $=Object.getPrototypeOf,I=$&&$($(A([])));I&&I!==n&&r.call(I,a)&&(C=I);var x=y.prototype=w.prototype=Object.create(C);function R(E){["next","throw","return"].forEach(function(b){u(E,b,function(O){return this._invoke(b,O)})})}function _(E,b){function O(D,z,B,K){var W=d(E[D],E,z);if(W.type!=="throw"){var te=W.arg,Q=te.value;return Q&&je(Q)=="object"&&r.call(Q,"__await")?b.resolve(Q.__await).then(function(X){O("next",X,B,K)},function(X){O("throw",X,B,K)}):b.resolve(Q).then(function(X){te.value=X,B(te)},function(X){return O("throw",X,B,K)})}K(W.arg)}var M;o(this,"_invoke",{value:function(z,B){function K(){return new b(function(W,te){O(z,B,W,te)})}return M=M?M.then(K,K):K()}})}function P(E,b,O){var M=m;return function(D,z){if(M===h)throw new Error("Generator is already running");if(M===p){if(D==="throw")throw z;return{value:e,done:!0}}for(O.method=D,O.arg=z;;){var B=O.delegate;if(B){var K=k(B,O);if(K){if(K===v)continue;return K}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(M===m)throw M=p,O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);M=h;var W=d(E,b,O);if(W.type==="normal"){if(M=O.done?p:g,W.arg===v)continue;return{value:W.arg,done:O.done}}W.type==="throw"&&(M=p,O.method="throw",O.arg=W.arg)}}}function k(E,b){var O=b.method,M=E.iterator[O];if(M===e)return b.delegate=null,O==="throw"&&E.iterator.return&&(b.method="return",b.arg=e,k(E,b),b.method==="throw")||O!=="return"&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+O+"' method")),v;var D=d(M,E.iterator,b.arg);if(D.type==="throw")return b.method="throw",b.arg=D.arg,b.delegate=null,v;var z=D.arg;return z?z.done?(b[E.resultName]=z.value,b.next=E.nextLoc,b.method!=="return"&&(b.method="next",b.arg=e),b.delegate=null,v):z:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,v)}function j(E){var b={tryLoc:E[0]};1 in E&&(b.catchLoc=E[1]),2 in E&&(b.finallyLoc=E[2],b.afterLoc=E[3]),this.tryEntries.push(b)}function T(E){var b=E.completion||{};b.type="normal",delete b.arg,E.completion=b}function L(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(j,this),this.reset(!0)}function A(E){if(E||E===""){var b=E[a];if(b)return b.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var O=-1,M=function D(){for(;++O<E.length;)if(r.call(E,O))return D.value=E[O],D.done=!1,D;return D.value=e,D.done=!0,D};return M.next=M}}throw new TypeError(je(E)+" is not iterable")}return S.prototype=y,o(x,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:S,configurable:!0}),S.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(E){var b=typeof E=="function"&&E.constructor;return!!b&&(b===S||(b.displayName||b.name)==="GeneratorFunction")},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,y):(E.__proto__=y,u(E,c,"GeneratorFunction")),E.prototype=Object.create(x),E},t.awrap=function(E){return{__await:E}},R(_.prototype),u(_.prototype,l,function(){return this}),t.AsyncIterator=_,t.async=function(E,b,O,M,D){D===void 0&&(D=Promise);var z=new _(f(E,b,O,M),D);return t.isGeneratorFunction(b)?z:z.next().then(function(B){return B.done?B.value:z.next()})},R(x),u(x,c,"Generator"),u(x,a,function(){return this}),u(x,"toString",function(){return"[object Generator]"}),t.keys=function(E){var b=Object(E),O=[];for(var M in b)O.push(M);return O.reverse(),function D(){for(;O.length;){var z=O.pop();if(z in b)return D.value=z,D.done=!1,D}return D.done=!0,D}},t.values=A,L.prototype={constructor:L,reset:function(b){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!b)for(var O in this)O.charAt(0)==="t"&&r.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=e)},stop:function(){this.done=!0;var b=this.tryEntries[0].completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(b){if(this.done)throw b;var O=this;function M(te,Q){return B.type="throw",B.arg=b,O.next=te,Q&&(O.method="next",O.arg=e),!!Q}for(var D=this.tryEntries.length-1;D>=0;--D){var z=this.tryEntries[D],B=z.completion;if(z.tryLoc==="root")return M("end");if(z.tryLoc<=this.prev){var K=r.call(z,"catchLoc"),W=r.call(z,"finallyLoc");if(K&&W){if(this.prev<z.catchLoc)return M(z.catchLoc,!0);if(this.prev<z.finallyLoc)return M(z.finallyLoc)}else if(K){if(this.prev<z.catchLoc)return M(z.catchLoc,!0)}else{if(!W)throw new Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return M(z.finallyLoc)}}}},abrupt:function(b,O){for(var M=this.tryEntries.length-1;M>=0;--M){var D=this.tryEntries[M];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var z=D;break}}z&&(b==="break"||b==="continue")&&z.tryLoc<=O&&O<=z.finallyLoc&&(z=null);var B=z?z.completion:{};return B.type=b,B.arg=O,z?(this.method="next",this.next=z.finallyLoc,v):this.complete(B)},complete:function(b,O){if(b.type==="throw")throw b.arg;return b.type==="break"||b.type==="continue"?this.next=b.arg:b.type==="return"?(this.rval=this.arg=b.arg,this.method="return",this.next="end"):b.type==="normal"&&O&&(this.next=O),v},finish:function(b){for(var O=this.tryEntries.length-1;O>=0;--O){var M=this.tryEntries[O];if(M.finallyLoc===b)return this.complete(M.completion,M.afterLoc),T(M),v}},catch:function(b){for(var O=this.tryEntries.length-1;O>=0;--O){var M=this.tryEntries[O];if(M.tryLoc===b){var D=M.completion;if(D.type==="throw"){var z=D.arg;T(M)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(b,O,M){return this.delegate={iterator:A(b),resultName:O,nextLoc:M},this.method==="next"&&(this.arg=e),v}},t}function _s(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(u){n(u);return}l.done?t(c):Promise.resolve(c).then(r,o)}function Gc(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){_s(i,r,o,a,l,"next",c)}function l(c){_s(i,r,o,a,l,"throw",c)}a(void 0)})}}var Nr=V({},ed),bp=Nr.version,yp=Nr.render,Cp=Nr.unmountComponentAtNode,jo;try{var Sp=Number((bp||"").split(".")[0]);Sp>=18&&(jo=Nr.createRoot)}catch{}function As(e){var t=Nr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&je(t)==="object"&&(t.usingClientEntryPoint=e)}var ho="__rc_react_root__";function wp(e,t){As(!0);var n=t[ho]||jo(t);As(!1),n.render(e),t[ho]=n}function Ep(e,t){yp(e,t)}function xp(e,t){if(jo){wp(e,t);return}Ep(e,t)}function $p(e){return Yi.apply(this,arguments)}function Yi(){return Yi=Gc($r().mark(function e(t){return $r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ho])===null||o===void 0||o.unmount(),delete t[ho]}));case 1:case"end":return r.stop()}},e)})),Yi.apply(this,arguments)}function Op(e){Cp(e)}function Ip(e){return qi.apply(this,arguments)}function qi(){return qi=Gc($r().mark(function e(t){return $r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(jo===void 0){r.next=2;break}return r.abrupt("return",$p(t));case 2:Op(t);case 3:case"end":return r.stop()}},e)})),qi.apply(this,arguments)}const ui=()=>({height:0,opacity:0}),Ds=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Pp=e=>({height:e?e.offsetHeight:0}),di=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Rp=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ui,onEnterStart:ui,onAppearActive:Ds,onEnterActive:Ds,onLeaveStart:Pp,onLeaveActive:ui,onAppearEnd:di,onEnterEnd:di,onLeaveEnd:di,motionDeadline:500}},Tp=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Mp=Rp,$a=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},Np=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},_p=Rn("Wave",e=>[Np(e)]);function Ap(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function fi(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Ap(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Dp(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return fi(t)?t:fi(n)?n:fi(r)?r:null}const Xc="ant-wave-target";function vi(e){return Number.isNaN(e)?0:e}const Lp=e=>{const{className:t,target:n,component:r}=e,o=s.useRef(null),[i,a]=s.useState(null),[l,c]=s.useState([]),[u,f]=s.useState(0),[d,m]=s.useState(0),[g,h]=s.useState(0),[p,v]=s.useState(0),[w,S]=s.useState(!1),y={left:u,top:d,width:g,height:p,borderRadius:l.map(I=>`${I}px`).join(" ")};i&&(y["--wave-color"]=i);function C(){const I=getComputedStyle(n);a(Dp(n));const x=I.position==="static",{borderLeftWidth:R,borderTopWidth:_}=I;f(x?n.offsetLeft:vi(-parseFloat(R))),m(x?n.offsetTop:vi(-parseFloat(_))),h(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:k,borderBottomLeftRadius:j,borderBottomRightRadius:T}=I;c([P,k,T,j].map(L=>vi(parseFloat(L))))}if(s.useEffect(()=>{if(n){const I=ct(()=>{C(),S(!0)});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(C),x.observe(n)),()=>{ct.cancel(I),x==null||x.disconnect()}}},[]),!w)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Xc));return s.createElement(or,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(I,x)=>{var R;if(x.deadline||x.propertyName==="opacity"){const _=(R=o.current)===null||R===void 0?void 0:R.parentElement;Ip(_).then(()=>{_==null||_.remove()})}return!1}},I=>{let{className:x}=I;return s.createElement("div",{ref:o,className:oe(t,{"wave-quick":$},x),style:y})})},jp=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),xp(s.createElement(Lp,Object.assign({},t,{target:e})),o)},zp=jp;function kp(e,t,n){const{wave:r}=s.useContext(Je),[,o,i]=dn(),a=St(u=>{const f=e.current;if(r!=null&&r.disabled||!f)return;const d=f.querySelector(`.${Xc}`)||f,{showEffect:m}=r||{};(m||zp)(d,{className:t,token:o,component:n,event:u,hashId:i})}),l=s.useRef();return u=>{ct.cancel(l.current),l.current=ct(()=>{a(u)})}}const Yc=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=N.useContext(Je),i=N.useRef(null),a=o("wave"),[,l]=_p(a),c=kp(i,oe(a,l),r);if(N.useEffect(()=>{const f=i.current;if(!f||f.nodeType!==1||n)return;const d=m=>{!$a(m.target)||!f.getAttribute||f.getAttribute("disabled")||f.disabled||f.className.includes("disabled")||f.className.includes("-leave")||c(m)};return f.addEventListener("click",d,!0),()=>{f.removeEventListener("click",d,!0)}},[n]),!N.isValidElement(t))return t??null;const u=sn(t)?tr(t.ref,i):i;return Mn(t,{ref:u})};process.env.NODE_ENV!=="production"&&(Yc.displayName="Wave");const Bp=Yc,Hp=e=>{const t=N.useContext(_o);return N.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},qc=Hp,Wp=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Fp=Wp,Vp=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},Kp=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Qc=Rn("Space",e=>{const t=Ot(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Vp(t),Kp(t),Fp(t)]},()=>({}),{resetStyle:!1});var Zc=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 zo=s.createContext(null),Jc=(e,t)=>{const n=s.useContext(zo),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return oe(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},eu=e=>{let{children:t}=e;return s.createElement(zo.Provider,{value:null},t)},Up=e=>{var{children:t}=e,n=Zc(e,["children"]);return s.createElement(zo.Provider,{value:n},t)},Gp=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Je),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:c,children:u}=e,f=Zc(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=qc(y=>r??y),m=t("space-compact",a),[g,h]=Qc(m),p=oe(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,c),v=s.useContext(zo),w=$n(u),S=s.useMemo(()=>w.map((y,C)=>{const $=y&&y.key||`${m}-item-${C}`;return s.createElement(Up,{key:$,compactSize:d,compactDirection:o,isFirstItem:C===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:C===w.length-1&&(!v||(v==null?void 0:v.isLastItem))},y)}),[r,w,v]);return w.length===0?null:g(s.createElement("div",Object.assign({className:p},f),S))};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 tu=s.createContext(void 0),Yp=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Je),{prefixCls:r,size:o,className:i}=e,a=Xp(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=dn();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const d=Pn("Button.Group");process.env.NODE_ENV!=="production"&&d(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const f=oe(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},i,c);return s.createElement(tu.Provider,{value:o},s.createElement("div",Object.assign({},a,{className:f})))},qp=Yp,Ls=/^[\u4e00-\u9fa5]{2}$/,Qi=Ls.test.bind(Ls);function js(e){return typeof e=="string"}function Jr(e){return e==="text"||e==="link"}function Qp(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&js(e.type)&&Qi(e.props.children)?Mn(e,{children:e.props.children.split("").join(n)}):js(e)?Qi(e)?N.createElement("span",null,e.split("").join(n)):N.createElement("span",null,e):Kc(e)?N.createElement("span",null,e):e}function Zp(e,t){let n=!1;const r=[];return N.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,c=r[l];r[l]=`${c}${o}`}else r.push(o);n=a}),N.Children.map(r,o=>Qp(o,t))}const Jp=N.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=oe(`${i}-icon`,n);return N.createElement("span",{ref:t,className:a,style:r},o)}),nu=Jp,zs=N.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=oe(`${n}-loading-icon`,r);return N.createElement(nu,{prefixCls:n,className:a,style:o,ref:t},N.createElement(hp,{className:i}))}),mi=()=>({width:0,opacity:0,transform:"scale(0)"}),pi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),eg=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?N.createElement(zs,{prefixCls:t,className:o,style:i}):N.createElement(or,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:mi,onAppearActive:pi,onEnterStart:mi,onEnterActive:pi,onLeaveStart:pi,onLeaveActive:mi},(l,c)=>{let{className:u,style:f}=l;return N.createElement(zs,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),f),ref:c,iconClassName:u})})},tg=eg,ks=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ng=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ks(`${t}-primary`,o),ks(`${t}-danger`,i)]}},rg=ng,og=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},zi(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Qt=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),ig=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ag=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),sg=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Or=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},Qt(e,Object.assign({backgroundColor:t},a),Object.assign({backgroundColor:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Oa=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},sg(e))}),ru=e=>Object.assign({},Oa(e)),bo=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ou=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ru(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Qt(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Or(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Qt(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Or(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Oa(e))}),lg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ru(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),Qt(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Or(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Qt(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Or(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Oa(e))}),cg=e=>Object.assign(Object.assign({},ou(e)),{borderStyle:"dashed"}),ug=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Qt(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),bo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Qt(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),bo(e))}),dg=e=>Object.assign(Object.assign(Object.assign({},Qt(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),bo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},bo(e)),Qt(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),fg=e=>{const{componentCls:t}=e;return{[`${t}-default`]:ou(e),[`${t}-primary`]:lg(e),[`${t}-dashed`]:cg(e),[`${t}-link`]:ug(e),[`${t}-text`]:dg(e),[`${t}-ghost`]:Or(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Ia=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e,f=Math.max(0,(r-o*i)/2-a),d=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${f}px ${c}px`,borderRadius:l,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:ig(e)},{[`${n}${n}-round${t}`]:ag(e)}]},vg=e=>Ia(Ot(e,{fontSize:e.contentFontSize})),mg=e=>{const t=Ot(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ia(t,`${e.componentCls}-sm`)},pg=e=>{const t=Ot(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ia(t,`${e.componentCls}-lg`)},gg=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},iu=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Ot(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},au=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),hg=Rn("Button",e=>{const t=iu(e);return[og(t),mg(t),vg(t),pg(t),gg(t),fg(t),rg(t)]},au);function bg(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function yg(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Cg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},bg(e,r,t)),yg(n,r,t))}}function Sg(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function wg(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Eg(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Sg(e,t)),wg(e.componentCls,t))}}const xg=am(["Button","compact"],e=>{const t=iu(e);return[Cg(t),Eg(t)]},au);var $g=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 Og(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Ig=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:c="default",size:u,styles:f,disabled:d,className:m,rootClassName:g,children:h,icon:p,ghost:v=!1,block:w=!1,htmlType:S="button",classNames:y,style:C={}}=e,$=$g(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:I,autoInsertSpaceInButton:x,direction:R,button:_}=N.useContext(Je),P=I("btn",i),[k,j]=hg(P),T=N.useContext(gc),L=d??T,A=N.useContext(tu),E=N.useMemo(()=>Og(o),[o]),[b,O]=N.useState(E.loading),[M,D]=N.useState(!1),B=tr(t,N.createRef()),K=N.Children.count(h)===1&&!p&&!Jr(a);N.useEffect(()=>{let ee=null;E.delay>0?ee=setTimeout(()=>{ee=null,O(!0)},E.delay):O(E.loading);function ae(){ee&&(clearTimeout(ee),ee=null)}return ae},[E]),N.useEffect(()=>{if(!B||!B.current||x===!1)return;const ee=B.current.textContent;K&&Qi(ee)?M||D(!0):M&&D(!1)},[B]);const W=ee=>{const{onClick:ae}=e;if(b||L){ee.preventDefault();return}ae==null||ae(ee)};if(process.env.NODE_ENV!=="production"){const ee=Pn("Button");process.env.NODE_ENV!=="production"&&ee(!(typeof p=="string"&&p.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${p}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ee(!(v&&Jr(a)),"usage","`link` or `text` button can't be a `ghost` button.")}const te=x!==!1,{compactSize:Q,compactItemClassnames:X}=Jc(P,R),J={large:"lg",small:"sm",middle:void 0},ue=qc(ee=>{var ae,le;return(le=(ae=u??Q)!==null&&ae!==void 0?ae:A)!==null&&le!==void 0?le:ee}),Y=ue&&J[ue]||"",ie=b?"loading":p,fe=un($,["navigate"]),ge=oe(P,j,{[`${P}-${c}`]:c!=="default"&&c,[`${P}-${a}`]:a,[`${P}-${Y}`]:Y,[`${P}-icon-only`]:!h&&h!==0&&!!ie,[`${P}-background-ghost`]:v&&!Jr(a),[`${P}-loading`]:b,[`${P}-two-chinese-chars`]:M&&te&&!b,[`${P}-block`]:w,[`${P}-dangerous`]:!!l,[`${P}-rtl`]:R==="rtl"},X,m,g,_==null?void 0:_.className),H=Object.assign(Object.assign({},_==null?void 0:_.style),C),me=oe(y==null?void 0:y.icon,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.icon),ve=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((r=_==null?void 0:_.styles)===null||r===void 0?void 0:r.icon)||{}),Oe=p&&!b?N.createElement(nu,{prefixCls:P,className:me,style:ve},p):N.createElement(tg,{existIcon:!!p,prefixCls:P,loading:!!b}),ne=h||h===0?Zp(h,K&&te):null;if(fe.href!==void 0)return k(N.createElement("a",Object.assign({},fe,{className:oe(ge,{[`${P}-disabled`]:L}),style:H,onClick:W,ref:B}),Oe,ne));let pe=N.createElement("button",Object.assign({},$,{type:S,className:ge,style:H,onClick:W,disabled:L,ref:B}),Oe,ne,X&&N.createElement(xg,{key:"compact",prefixCls:P}));return Jr(a)||(pe=N.createElement(Bp,{component:"Button",disabled:!!b},pe)),k(pe)},ko=N.forwardRef(Ig);process.env.NODE_ENV!=="production"&&(ko.displayName="Button");ko.Group=qp;ko.__ANT_BUTTON=!0;const Bs=ko;var su=s.createContext(null),Hs=[];function Pg(e,t){var n=s.useState(function(){if(!ft())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),r=F(n,1),o=r[0],i=s.useRef(!1),a=s.useContext(su),l=s.useState(Hs),c=F(l,2),u=c[0],f=c[1],d=a||(i.current?void 0:function(h){f(function(p){var v=[h].concat(Xe(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 lt(function(){return e?a?a(m):m():g(),g},[e]),lt(function(){u.length&&(u.forEach(function(h){return h()}),f(Hs))},[u]),[o,d]}var gi;function Rg(e){if(typeof document>"u")return 0;if(e||gi===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),gi=o-i}return gi}function Ws(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?Rg():n}function Tg(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:Ws(n),height:Ws(r)}}function Mg(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ng="rc-util-locker-".concat(Date.now()),Fs=0;function _g(e){var t=!!e,n=s.useState(function(){return Fs+=1,"".concat(Ng,"_").concat(Fs)}),r=F(n,1),o=r[0];lt(function(){if(t){var i=Tg(document.body).width,a=Mg();Sr(`
|
|
120
|
-
html body {
|
|
121
|
-
overflow-y: hidden;
|
|
122
|
-
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
123
|
-
}`),o)}else mo(o);return function(){mo(o)}},[t,o])}var Vs=!1;function Ag(e){return typeof e=="boolean"&&(Vs=e),Vs}var Ks=function(t){return t===!1?!1:!ft()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Pa=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),f=F(u,2),d=f[0],m=f[1],g=d||n;process.env.NODE_ENV!=="production"&>(ft()||!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 Ks(o)}),p=F(h,2),v=p[0],w=p[1];s.useEffect(function(){var j=Ks(o);w(j??null)});var S=Pg(g&&!v,i),y=F(S,2),C=y[0],$=y[1],I=v??C;_g(r&&n&&ft()&&(I===C||I===document.body));var x=null;if(c&&sn(c)&&t){var R=c;x=R.ref}var _=Tr(x,t);if(!g||!ft()||v===void 0)return null;var P=I===!1||Ag(),k=c;return t&&(k=s.cloneElement(c,{ref:_})),s.createElement(su.Provider,{value:$},P?k:Rr.createPortal(k,I))});process.env.NODE_ENV!=="production"&&(Pa.displayName="Portal");function Dg(){var e=V({},s);return e.useId}var Us=0,Gs=Dg();const Lg=Gs?function(t){var n=Gs();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=s.useState("ssr-id"),r=F(n,2),o=r[0],i=r[1];return s.useEffect(function(){var a=Us;Us+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},jg=N.createContext(void 0),Ra=jg,zg=e=>({animationDuration:e,animationFillMode:"both"}),kg=e=>({animationDuration:e,animationFillMode:"both"}),Ta=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
124
|
-
${i}${e}-enter,
|
|
125
|
-
${i}${e}-appear
|
|
126
|
-
`]:Object.assign(Object.assign({},zg(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},kg(r)),{animationPlayState:"paused"}),[`
|
|
127
|
-
${i}${e}-enter${e}-enter-active,
|
|
128
|
-
${i}${e}-appear${e}-appear-active
|
|
129
|
-
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Bg=new Me("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Hg=new Me("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Wg=new Me("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fg=new Me("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Vg=new Me("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kg=new Me("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ug=new Me("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gg=new Me("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Xg={"move-up":{inKeyframes:Ug,outKeyframes:Gg},"move-down":{inKeyframes:Bg,outKeyframes:Hg},"move-left":{inKeyframes:Wg,outKeyframes:Fg},"move-right":{inKeyframes:Vg,outKeyframes:Kg}},Xs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Xg[t];return[Ta(r,o,i,e.motionDurationMid),{[`
|
|
130
|
-
${r}-enter,
|
|
131
|
-
${r}-appear
|
|
132
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},lu=new Me("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),cu=new Me("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),uu=new Me("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),du=new Me("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Yg=new Me("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),qg=new Me("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Qg=new Me("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Zg=new Me("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Jg={"slide-up":{inKeyframes:lu,outKeyframes:cu},"slide-down":{inKeyframes:uu,outKeyframes:du},"slide-left":{inKeyframes:Yg,outKeyframes:qg},"slide-right":{inKeyframes:Qg,outKeyframes:Zg}},yo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Jg[t];return[Ta(r,o,i,e.motionDurationMid),{[`
|
|
133
|
-
${r}-enter,
|
|
134
|
-
${r}-appear
|
|
135
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},eh=new Me("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),th=new Me("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ys=new Me("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qs=new Me("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nh=new Me("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rh=new Me("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),oh=new Me("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ih=new Me("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ah=new Me("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),sh=new Me("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lh=new Me("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ch=new Me("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),uh={zoom:{inKeyframes:eh,outKeyframes:th},"zoom-big":{inKeyframes:Ys,outKeyframes:qs},"zoom-big-fast":{inKeyframes:Ys,outKeyframes:qs},"zoom-left":{inKeyframes:oh,outKeyframes:ih},"zoom-right":{inKeyframes:ah,outKeyframes:sh},"zoom-up":{inKeyframes:nh,outKeyframes:rh},"zoom-down":{inKeyframes:lh,outKeyframes:ch}},Ma=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=uh[t];return[Ta(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
136
|
-
${r}-enter,
|
|
137
|
-
${r}-appear
|
|
138
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},dh=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
139
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
140
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),fh=dh,fu={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},vh={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function mh(e){return e in fu}function Na(e,t){const[,n]=dn(),r=N.useContext(Ra),o=mh(e);let i=r??0;return o?i+=n.zIndexPopupBase+fu[e]:i+=vh[e],[r===void 0?t:i,i]}function ph(e){return function(n){return s.createElement(Tn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},n)))}}function gh(e,t,n,r){function o(i){const{prefixCls:a,style:l}=i,c=s.useRef(null),[u,f]=s.useState(0),[d,m]=s.useState(0),[g,h]=xn(!1,{value:i.open}),{getPrefixCls:p}=s.useContext(Je),v=p(t||"select",a);s.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(C=>{const $=C[0].target;f($.offsetHeight+8),m($.offsetWidth)}),y=setInterval(()=>{var C;const $=n?`.${n(v)}`:`.${v}-dropdown`,I=(C=c.current)===null||C===void 0?void 0:C.querySelector($);I&&(clearInterval(y),S.observe(I))},10);return()=>{clearInterval(y),S.disconnect()}}},[]);let w=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});return r&&(w=r(w)),s.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},s.createElement(e,Object.assign({},w)))}return ph(o)}const hh=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 bh=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Bn=void 0;function yh(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,f=e.className,d=e.style,m=e.children,g=e.display,h=e.order,p=e.component,v=p===void 0?"div":p,w=ke(e,bh),S=a&&!g;function y(R){c(u,R)}s.useEffect(function(){return function(){y(null)}},[]);var C=i&&o!==Bn?i(o):m,$;r||($={opacity:S?0:1,height:S?0:Bn,overflowY:S?"hidden":Bn,order:a?h:Bn,pointerEvents:S?"none":Bn,position:S?"absolute":Bn});var I={};S&&(I["aria-hidden"]=!0);var x=s.createElement(v,Pe({className:oe(!r&&n,f),style:V(V({},$),d)},I,w,{ref:t}),C);return a&&(x=s.createElement(nr,{onResize:function(_){var P=_.offsetWidth;y(P)},disabled:l},x)),x}var Cr=s.forwardRef(yh);Cr.displayName="Item";function Ch(e){if(typeof MessageChannel>"u")ct(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Sh(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],Ch(function(){Rr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function vr(e,t){var n=s.useState(t),r=F(n,2),o=r[0],i=r[1],a=St(function(l){e(function(){i(l)})});return[o,a]}var Co=N.createContext(null),wh=["component"],Eh=["className"],xh=["className"],$h=function(t,n){var r=s.useContext(Co);if(!r){var o=t.component,i=o===void 0?"div":o,a=ke(t,wh);return s.createElement(i,Pe({},a,{ref:n}))}var l=r.className,c=ke(r,Eh),u=t.className,f=ke(t,xh);return s.createElement(Co.Provider,{value:null},s.createElement(Cr,Pe({ref:n,className:oe(l,u)},c,f)))},vu=s.forwardRef($h);vu.displayName="RawItem";var Oh=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],mu="responsive",pu="invalidate";function Ih(e){return"+ ".concat(e.length," ...")}function Ph(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,f=u===void 0?10:u,d=e.ssr,m=e.style,g=e.className,h=e.maxCount,p=e.renderRest,v=e.renderRawRest,w=e.suffix,S=e.component,y=S===void 0?"div":S,C=e.itemComponent,$=e.onVisibleChange,I=ke(e,Oh),x=d==="full",R=Sh(),_=vr(R,null),P=F(_,2),k=P[0],j=P[1],T=k||0,L=vr(R,new Map),A=F(L,2),E=A[0],b=A[1],O=vr(R,0),M=F(O,2),D=M[0],z=M[1],B=vr(R,0),K=F(B,2),W=K[0],te=K[1],Q=vr(R,0),X=F(Q,2),J=X[0],ue=X[1],Y=N.useState(null),ie=F(Y,2),fe=ie[0],ge=ie[1],H=N.useState(null),me=F(H,2),ve=me[0],Oe=me[1],ne=s.useMemo(function(){return ve===null&&x?Number.MAX_SAFE_INTEGER:ve||0},[ve,k]),pe=N.useState(!1),ee=F(pe,2),ae=ee[0],le=ee[1],de="".concat(r,"-item"),Fe=Math.max(D,W),rt=h===mu,Re=i.length&&rt,ht=h===pu,Be=Re||typeof h=="number"&&i.length>h,Ne=N.useMemo(function(){var U=i;return Re?k===null&&x?U=i:U=i.slice(0,Math.min(i.length,T/f)):typeof h=="number"&&(U=i.slice(0,h)),U},[i,f,k,h,Re]),ot=N.useMemo(function(){return Re?i.slice(ne+1):i.slice(Ne.length)},[i,Ne,Re,ne]),Ae=N.useCallback(function(U,Z){var Se;return typeof c=="function"?c(U):(Se=c&&(U==null?void 0:U[c]))!==null&&Se!==void 0?Se:Z},[c]),vt=N.useCallback(a||function(U){return U},[a]);function De(U,Z,Se){ve===U&&(Z===void 0||Z===fe)||(Oe(U),Se||(le(U<i.length-1),$==null||$(U)),Z!==void 0&&ge(Z))}function mt(U,Z){j(Z.clientWidth)}function Le(U,Z){b(function(Se){var Ve=new Map(Se);return Z===null?Ve.delete(U):Ve.set(U,Z),Ve})}function Ce(U,Z){te(Z),z(W)}function Te(U,Z){ue(Z)}function Ye(U){return E.get(Ae(Ne[U],U))}lt(function(){if(T&&typeof Fe=="number"&&Ne){var U=J,Z=Ne.length,Se=Z-1;if(!Z){De(0,null);return}for(var Ve=0;Ve<Z;Ve+=1){var Ke=Ye(Ve);if(x&&(Ke=Ke||0),Ke===void 0){De(Ve-1,void 0,!0);break}if(U+=Ke,Se===0&&U<=T||Ve===Se-1&&U+Ye(Se)<=T){De(Se,null);break}else if(U+Fe>T){De(Ve-1,U-Ke-J+W);break}}w&&Ye(0)+J>T&&ge(null)}},[T,E,W,J,Ae,Ne]);var ze=ae&&!!ot.length,Qe={};fe!==null&&Re&&(Qe={position:"absolute",left:fe,top:0});var pt={prefixCls:de,responsive:Re,component:C,invalidate:ht},he=l?function(U,Z){var Se=Ae(U,Z);return s.createElement(Co.Provider,{key:Se,value:V(V({},pt),{},{order:Z,item:U,itemKey:Se,registerSize:Le,display:Z<=ne})},l(U,Z))}:function(U,Z){var Se=Ae(U,Z);return s.createElement(Cr,Pe({},pt,{order:Z,key:Se,item:U,renderItem:vt,itemKey:Se,registerSize:Le,display:Z<=ne}))},be,we={order:ze?ne:Number.MAX_SAFE_INTEGER,className:"".concat(de,"-rest"),registerSize:Ce,display:ze};if(v)v&&(be=s.createElement(Co.Provider,{value:V(V({},pt),we)},v(ot)));else{var se=p||Ih;be=s.createElement(Cr,Pe({},pt,we),typeof se=="function"?se(ot):se)}var Ee=s.createElement(y,Pe({className:oe(!ht&&r,g),style:m,ref:t},I),Ne.map(he),Be?be:null,w&&s.createElement(Cr,Pe({},pt,{responsive:rt,responsiveDisabled:!Re,order:ne,className:"".concat(de,"-suffix"),registerSize:Te,display:!0,style:Qe}),w));return rt&&(Ee=s.createElement(nr,{onResize:mt,disabled:!Re},Ee)),Ee}var qt=s.forwardRef(Ph);qt.displayName="Overflow";qt.Item=vu;qt.RESPONSIVE=mu;qt.INVALIDATE=pu;function gu(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Rh(e){return gu(e)instanceof ShadowRoot}function Zi(e){return Rh(e)?gu(e):null}function Th(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,f=o.y,d=f===void 0?0:f,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],w=h[1],S=p[0],y=p[1];v===S||!["t","b"].includes(v)?g.top=d:v==="t"?g.top=0:g.bottom=0,w===y||!["l","r"].includes(w)?g.left=u:w==="l"?g.left=0:g.right=0}return s.createElement("div",{ref:m,className:oe("".concat(t,"-arrow"),a),style:g},l)}function Mh(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?s.createElement(or,Pe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return s.createElement("div",{style:{zIndex:r},className:oe("".concat(t,"-mask"),l)})}):null}var hu=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(hu.displayName="PopupContent");var bu=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,f=e.fresh,d=e.onClick,m=e.mask,g=e.arrow,h=e.arrowPos,p=e.align,v=e.motion,w=e.maskMotion,S=e.forceRender,y=e.getPopupContainer,C=e.autoDestroy,$=e.portal,I=e.zIndex,x=e.onMouseEnter,R=e.onMouseLeave,_=e.onPointerEnter,P=e.ready,k=e.offsetX,j=e.offsetY,T=e.offsetR,L=e.offsetB,A=e.onAlign,E=e.onPrepare,b=e.stretch,O=e.targetWidth,M=e.targetHeight,D=typeof n=="function"?n():n,z=c||u,B=(y==null?void 0:y.length)>0,K=s.useState(!y||!B),W=F(K,2),te=W[0],Q=W[1];if(lt(function(){!te&&B&&a&&Q(!0)},[te,B,a]),!te)return null;var X="auto",J={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(P||!c){var ue,Y=p.points,ie=p.dynamicInset||((ue=p._experimental)===null||ue===void 0?void 0:ue.dynamicInset),fe=ie&&Y[0][1]==="r",ge=ie&&Y[0][0]==="b";fe?(J.right=T,J.left=X):(J.left=k,J.right=X),ge?(J.bottom=L,J.top=X):(J.top=j,J.bottom=X)}var H={};return b&&(b.includes("height")&&M?H.height=M:b.includes("minHeight")&&M&&(H.minHeight=M),b.includes("width")&&O?H.width=O:b.includes("minWidth")&&O&&(H.minWidth=O)),c||(H.pointerEvents="none"),s.createElement($,{open:S||z,getContainer:y&&function(){return y(a)},autoDestroy:C},s.createElement(Mh,{prefixCls:o,open:c,zIndex:I,mask:m,motion:w}),s.createElement(nr,{onResize:A,disabled:!c},function(me){return s.createElement(or,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:E,onEnterPrepare:E,visible:c,onVisibleChanged:function(Oe){var ne;v==null||(ne=v.onVisibleChanged)===null||ne===void 0||ne.call(v,Oe),l(Oe)}}),function(ve,Oe){var ne=ve.className,pe=ve.style,ee=oe(o,ne,r);return s.createElement("div",{ref:tr(me,t,Oe),className:ee,style:V(V(V(V({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},J),H),pe),{},{boxSizing:"border-box",zIndex:I},i),onMouseEnter:x,onMouseLeave:R,onPointerEnter:_,onClick:d},g&&s.createElement(Th,{prefixCls:o,arrow:g,arrowPos:h,align:p}),s.createElement(hu,{cache:!c&&!f},D))})}))});process.env.NODE_ENV!=="production"&&(bu.displayName="Popup");var yu=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=sn(n),i=s.useCallback(function(l){ca(t,r?r(l):l)},[r]),a=Tr(i,n.ref);return o?s.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(yu.displayName="TriggerWrapper");var Qs=s.createContext(null);function Zs(e){return e?Array.isArray(e)?e:[e]:[]}function Nh(e,t,n,r){return s.useMemo(function(){var o=Zs(n??t),i=Zs(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 _h(){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 Ah(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(_h((l=e[c])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function Js(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function _r(e){return e.ownerDocument.defaultView}function Ji(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=_r(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 Ir(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function mr(e){return Ir(parseFloat(e),0)}function el(e,t){var n=V({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=_r(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,f=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,p=r.clientWidth,v=mr(l),w=mr(c),S=mr(u),y=mr(f),C=Ir(Math.round(d.width/h*1e3)/1e3),$=Ir(Math.round(d.height/m*1e3)/1e3),I=(h-p-S-y)*C,x=(m-g-v-w)*$,R=v*$,_=w*$,P=S*C,k=y*C,j=0,T=0;if(i==="clip"){var L=mr(a);j=L*C,T=L*$}var A=d.x+P-j,E=d.y+R-T,b=A+d.width+2*j-P-k-I,O=E+d.height+2*T-R-_-x;n.left=Math.max(n.left,A),n.top=Math.max(n.top,E),n.right=Math.min(n.right,b),n.bottom=Math.min(n.bottom,O)}}),n}function tl(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 nl(e,t){var n=t||[],r=F(n,2),o=r[0],i=r[1];return[tl(e.width,o),tl(e.height,i)]}function rl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Hn(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 tn(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 Dh(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=F(l,2),u=c[0],f=c[1],d=s.useRef(0),m=s.useMemo(function(){return t?Ji(t):[]},[t]),g=s.useRef({}),h=function(){g.current={}};e||h();var p=St(function(){if(t&&n&&e){let wt=function(jr,Et){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,zr=M.x+jr,zn=M.y+Et,kr=zr+J,dr=zn+X,Br=Math.max(zr,jn.left),Uo=Math.max(zn,jn.top),Go=Math.min(kr,jn.right),Xo=Math.min(dr,jn.bottom);return Math.max(0,(Go-Br)*(Xo-Uo))},Lr=function(){Ht=M.y+we,Pt=Ht+X,et=M.x+be,zt=et+J};var S,y,C=t,$=C.ownerDocument,I=_r(C),x=I.getComputedStyle(C),R=x.width,_=x.height,P=x.position,k=C.style.left,j=C.style.top,T=C.style.right,L=C.style.bottom,A=V(V({},o[r]),i),E=$.createElement("div");(S=C.parentElement)===null||S===void 0||S.appendChild(E),E.style.left="".concat(C.offsetLeft,"px"),E.style.top="".concat(C.offsetTop,"px"),E.style.position=P,E.style.height="".concat(C.offsetHeight,"px"),E.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto";var b;if(Array.isArray(n))b={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();b={x:O.x,y:O.y,width:O.width,height:O.height}}var M=C.getBoundingClientRect(),D=$.documentElement,z=D.clientWidth,B=D.clientHeight,K=D.scrollWidth,W=D.scrollHeight,te=D.scrollTop,Q=D.scrollLeft,X=M.height,J=M.width,ue=b.height,Y=b.width,ie={left:0,top:0,right:z,bottom:B},fe={left:-Q,top:-te,right:K-Q,bottom:W-te},ge=A.htmlRegion,H="visible",me="visibleFirst";ge!=="scroll"&&ge!==me&&(ge=H);var ve=ge===me,Oe=el(fe,m),ne=el(ie,m),pe=ge===H?ne:Oe,ee=ve?ne:pe;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var ae=C.getBoundingClientRect();C.style.left=k,C.style.top=j,C.style.right=T,C.style.bottom=L,(y=C.parentElement)===null||y===void 0||y.removeChild(E);var le=Ir(Math.round(J/parseFloat(R)*1e3)/1e3),de=Ir(Math.round(X/parseFloat(_)*1e3)/1e3);if(le===0||de===0||co(n)&&!$a(n))return;var Fe=A.offset,rt=A.targetOffset,Re=nl(M,Fe),ht=F(Re,2),Be=ht[0],Ne=ht[1],ot=nl(b,rt),Ae=F(ot,2),vt=Ae[0],De=Ae[1];b.x-=vt,b.y-=De;var mt=A.points||[],Le=F(mt,2),Ce=Le[0],Te=Le[1],Ye=rl(Te),ze=rl(Ce),Qe=Hn(b,Ye),pt=Hn(M,ze),he=V({},A),be=Qe.x-pt.x+Be,we=Qe.y-pt.y+Ne,se=wt(be,we),Ee=wt(be,we,ne),U=Hn(b,["t","l"]),Z=Hn(M,["t","l"]),Se=Hn(b,["b","r"]),Ve=Hn(M,["b","r"]),Ke=A.overflow||{},it=Ke.adjustX,fn=Ke.adjustY,Bt=Ke.shiftX,It=Ke.shiftY,Ue=function(Et){return typeof Et=="boolean"?Et:Et>=0},Ht,Pt,et,zt;Lr();var vn=Ue(fn),mn=ze[0]===Ye[0];if(vn&&ze[0]==="t"&&(Pt>ee.bottom||g.current.bt)){var Rt=we;mn?Rt-=X-ue:Rt=U.y-Ve.y-Ne;var Nn=wt(be,Rt),Zt=wt(be,Rt,ne);Nn>se||Nn===se&&(!ve||Zt>=Ee)?(g.current.bt=!0,we=Rt,Ne=-Ne,he.points=[tn(ze,0),tn(Ye,0)]):g.current.bt=!1}if(vn&&ze[0]==="b"&&(Ht<ee.top||g.current.tb)){var Wt=we;mn?Wt+=X-ue:Wt=Se.y-Z.y-Ne;var at=wt(be,Wt),sr=wt(be,Wt,ne);at>se||at===se&&(!ve||sr>=Ee)?(g.current.tb=!0,we=Wt,Ne=-Ne,he.points=[tn(ze,0),tn(Ye,0)]):g.current.tb=!1}var _n=Ue(it),pn=ze[1]===Ye[1];if(_n&&ze[1]==="l"&&(zt>ee.right||g.current.rl)){var bt=be;pn?bt-=J-Y:bt=U.x-Ve.x-Be;var Jt=wt(bt,we),lr=wt(bt,we,ne);Jt>se||Jt===se&&(!ve||lr>=Ee)?(g.current.rl=!0,be=bt,Be=-Be,he.points=[tn(ze,1),tn(Ye,1)]):g.current.rl=!1}if(_n&&ze[1]==="r"&&(et<ee.left||g.current.lr)){var Ft=be;pn?Ft+=J-Y:Ft=Se.x-Z.x-Be;var An=wt(Ft,we),Dn=wt(Ft,we,ne);An>se||An===se&&(!ve||Dn>=Ee)?(g.current.lr=!0,be=Ft,Be=-Be,he.points=[tn(ze,1),tn(Ye,1)]):g.current.lr=!1}Lr();var ut=Bt===!0?0:Bt;typeof ut=="number"&&(et<ne.left&&(be-=et-ne.left-Be,b.x+Y<ne.left+ut&&(be+=b.x-ne.left+Y-ut)),zt>ne.right&&(be-=zt-ne.right-Be,b.x>ne.right-ut&&(be+=b.x-ne.right+ut)));var Tt=It===!0?0:It;typeof Tt=="number"&&(Ht<ne.top&&(we-=Ht-ne.top-Ne,b.y+ue<ne.top+Tt&&(we+=b.y-ne.top+ue-Tt)),Pt>ne.bottom&&(we-=Pt-ne.bottom-Ne,b.y>ne.bottom-Tt&&(we+=b.y-ne.bottom+Tt)));var gn=M.x+be,Ln=gn+J,Mt=M.y+we,Vt=Mt+X,hn=b.x,en=hn+Y,Nt=b.y,cr=Nt+ue,_e=Math.max(gn,hn),ye=Math.min(Ln,en),Ie=(_e+ye)/2,Ze=Ie-gn,tt=Math.max(Mt,Nt),_t=Math.min(Vt,cr),kt=(tt+_t)/2,ur=kt-Mt;a==null||a(t,he);var Ko=ae.right-M.x-(be+M.width),Dr=ae.bottom-M.y-(we+M.height);f({ready:!0,offsetX:be/le,offsetY:we/de,offsetR:Ko/le,offsetB:Dr/de,arrowX:Ze/le,arrowY:ur/de,scaleX:le,scaleY:de,align:he})}}),v=function(){d.current+=1;var y=d.current;Promise.resolve().then(function(){d.current===y&&p()})},w=function(){f(function(y){return V(V({},y),{},{ready:!1})})};return lt(w,[r]),lt(function(){e||w()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function Lh(e,t,n,r,o){lt(function(){if(e&&t&&n){let d=function(){r(),o()};var i=t,a=n,l=Ji(i),c=Ji(a),u=_r(a),f=new Set([u].concat(Xe(l),Xe(c)));return f.forEach(function(m){m.addEventListener("scroll",d,{passive:!0})}),u.addEventListener("resize",d,{passive:!0}),r(),function(){f.forEach(function(m){m.removeEventListener("scroll",d),u.removeEventListener("resize",d)})}}},[e,t,n])}function jh(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 f=ct(function(){u.current=!1});return function(){ct.cancel(f)}},[e]),s.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){var P=!1,k=function(L){var A=L.target;P=a(A)},j=function(L){var A=L.target;!u.current&&c.current&&!P&&!a(A)&&l(!1)};return[k,j]},d=f(),m=F(d,2),g=m[0],h=m[1],p=f(),v=F(p,2),w=v[0],S=v[1],y=_r(r);y.addEventListener("mousedown",g,!0),y.addEventListener("click",h,!0),y.addEventListener("contextmenu",h,!0);var C=Zi(n);if(C&&(C.addEventListener("mousedown",w,!0),C.addEventListener("click",S,!0),C.addEventListener("contextmenu",S,!0)),process.env.NODE_ENV!=="production"){var $,I,x=n==null||($=n.getRootNode)===null||$===void 0?void 0:$.call(n),R=(I=r.getRootNode)===null||I===void 0?void 0:I.call(r);Zn(x===R,"trigger element and popup element should in same shadow root.")}return function(){y.removeEventListener("mousedown",g,!0),y.removeEventListener("click",h,!0),y.removeEventListener("contextmenu",h,!0),C&&(C.removeEventListener("mousedown",w,!0),C.removeEventListener("click",S,!0),C.removeEventListener("contextmenu",S,!0))}}},[t,n,r,o,i])}var zh=["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 kh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pa,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,f=n.hideAction,d=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,p=n.mouseEnterDelay,v=n.mouseLeaveDelay,w=v===void 0?.1:v,S=n.focusDelay,y=n.blurDelay,C=n.mask,$=n.maskClosable,I=$===void 0?!0:$,x=n.getPopupContainer,R=n.forceRender,_=n.autoDestroy,P=n.destroyPopupOnHide,k=n.popup,j=n.popupClassName,T=n.popupStyle,L=n.popupPlacement,A=n.builtinPlacements,E=A===void 0?{}:A,b=n.popupAlign,O=n.zIndex,M=n.stretch,D=n.getPopupClassNameFromAlign,z=n.fresh,B=n.alignPoint,K=n.onPopupClick,W=n.onPopupAlign,te=n.arrow,Q=n.popupMotion,X=n.maskMotion,J=n.popupTransitionName,ue=n.popupAnimation,Y=n.maskTransitionName,ie=n.maskAnimation,fe=n.className,ge=n.getTriggerDOMNode,H=ke(n,zh),me=_||P||!1,ve=s.useState(!1),Oe=F(ve,2),ne=Oe[0],pe=Oe[1];lt(function(){pe(hh())},[]);var ee=s.useRef({}),ae=s.useContext(Qs),le=s.useMemo(function(){return{registerSubPopup:function(ce,He){ee.current[ce]=He,ae==null||ae.registerSubPopup(ce,He)}}},[ae]),de=Lg(),Fe=s.useState(null),rt=F(Fe,2),Re=rt[0],ht=rt[1],Be=St(function(G){co(G)&&Re!==G&&ht(G),ae==null||ae.registerSubPopup(de,G)}),Ne=s.useState(null),ot=F(Ne,2),Ae=ot[0],vt=ot[1],De=s.useRef(null),mt=St(function(G){co(G)&&Ae!==G&&(vt(G),De.current=G)}),Le=s.Children.only(a),Ce=(Le==null?void 0:Le.props)||{},Te={},Ye=St(function(G){var ce,He,qe=Ae;return(qe==null?void 0:qe.contains(G))||((ce=Zi(qe))===null||ce===void 0?void 0:ce.host)===G||G===qe||(Re==null?void 0:Re.contains(G))||((He=Zi(Re))===null||He===void 0?void 0:He.host)===G||G===Re||Object.values(ee.current).some(function(We){return(We==null?void 0:We.contains(G))||G===We})}),ze=Js(i,Q,ue,J),Qe=Js(i,X,ie,Y),pt=s.useState(m||!1),he=F(pt,2),be=he[0],we=he[1],se=d??be,Ee=St(function(G){d===void 0&&we(G)});lt(function(){we(d||!1)},[d]);var U=s.useRef(se);U.current=se;var Z=s.useRef([]);Z.current=[];var Se=St(function(G){var ce;Ee(G),((ce=Z.current[Z.current.length-1])!==null&&ce!==void 0?ce:se)!==G&&(Z.current.push(G),g==null||g(G))}),Ve=s.useRef(),Ke=function(){clearTimeout(Ve.current)},it=function(ce){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ke(),He===0?Se(ce):Ve.current=setTimeout(function(){Se(ce)},He*1e3)};s.useEffect(function(){return Ke},[]);var fn=s.useState(!1),Bt=F(fn,2),It=Bt[0],Ue=Bt[1];lt(function(G){(!G||se)&&Ue(!0)},[se]);var Ht=s.useState(null),Pt=F(Ht,2),et=Pt[0],zt=Pt[1],vn=s.useState([0,0]),mn=F(vn,2),Rt=mn[0],Nn=mn[1],Zt=function(ce){Nn([ce.clientX,ce.clientY])},Wt=Dh(se,Re,B?Rt:Ae,L,E,b,W),at=F(Wt,11),sr=at[0],_n=at[1],pn=at[2],bt=at[3],Jt=at[4],lr=at[5],Ft=at[6],An=at[7],Dn=at[8],ut=at[9],Tt=at[10],gn=Nh(ne,c,u,f),Ln=F(gn,2),Mt=Ln[0],Vt=Ln[1],hn=Mt.has("click"),en=Vt.has("click")||Vt.has("contextMenu"),Nt=St(function(){It||Tt()}),cr=function(){U.current&&B&&en&&it(!1)};Lh(se,Ae,Re,Nt,cr),lt(function(){Nt()},[Rt,L]),lt(function(){se&&!(E!=null&&E[L])&&Nt()},[JSON.stringify(b)]);var _e=s.useMemo(function(){var G=Ah(E,i,ut,B);return oe(G,D==null?void 0:D(ut))},[ut,D,E,i,B]);s.useImperativeHandle(r,function(){return{nativeElement:De.current,forceAlign:Nt}});var ye=s.useState(0),Ie=F(ye,2),Ze=Ie[0],tt=Ie[1],_t=s.useState(0),kt=F(_t,2),ur=kt[0],Ko=kt[1],Dr=function(){if(M&&Ae){var ce=Ae.getBoundingClientRect();tt(ce.width),Ko(ce.height)}},wt=function(){Dr(),Nt()},Lr=function(ce){Ue(!1),Tt(),h==null||h(ce)},jr=function(){return new Promise(function(ce){Dr(),zt(function(){return ce})})};lt(function(){et&&(Tt(),et(),zt(null))},[et]);function Et(G,ce,He,qe){Te[G]=function(We){var Hr;qe==null||qe(We),it(ce,He);for(var Yo=arguments.length,Fa=new Array(Yo>1?Yo-1:0),Wr=1;Wr<Yo;Wr++)Fa[Wr-1]=arguments[Wr];(Hr=Ce[G])===null||Hr===void 0||Hr.call.apply(Hr,[Ce,We].concat(Fa))}}(hn||en)&&(Te.onClick=function(G){var ce;U.current&&en?it(!1):!U.current&&hn&&(Zt(G),it(!0));for(var He=arguments.length,qe=new Array(He>1?He-1:0),We=1;We<He;We++)qe[We-1]=arguments[We];(ce=Ce.onClick)===null||ce===void 0||ce.call.apply(ce,[Ce,G].concat(qe))}),jh(se,en,Ae,Re,C,I,Ye,it);var jn=Mt.has("hover"),zr=Vt.has("hover"),zn,kr;jn&&(Et("onMouseEnter",!0,p,function(G){Zt(G)}),Et("onPointerEnter",!0,p,function(G){Zt(G)}),zn=function(){(se||It)&&it(!0,p)},B&&(Te.onMouseMove=function(G){var ce;(ce=Ce.onMouseMove)===null||ce===void 0||ce.call(Ce,G)})),zr&&(Et("onMouseLeave",!1,w),Et("onPointerLeave",!1,w),kr=function(){it(!1,w)}),Mt.has("focus")&&Et("onFocus",!0,S),Vt.has("focus")&&Et("onBlur",!1,y),Mt.has("contextMenu")&&(Te.onContextMenu=function(G){var ce;U.current&&Vt.has("contextMenu")?it(!1):(Zt(G),it(!0)),G.preventDefault();for(var He=arguments.length,qe=new Array(He>1?He-1:0),We=1;We<He;We++)qe[We-1]=arguments[We];(ce=Ce.onContextMenu)===null||ce===void 0||ce.call.apply(ce,[Ce,G].concat(qe))}),fe&&(Te.className=oe(Ce.className,fe));var dr=V(V({},Ce),Te),Br={},Uo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Uo.forEach(function(G){H[G]&&(Br[G]=function(){for(var ce,He=arguments.length,qe=new Array(He),We=0;We<He;We++)qe[We]=arguments[We];(ce=dr[G])===null||ce===void 0||ce.call.apply(ce,[dr].concat(qe)),H[G].apply(H,qe)})});var Go=s.cloneElement(Le,V(V({},dr),Br)),Xo={x:lr,y:Ft},Zu=te?V({},te!==!0?te:{}):null;return s.createElement(s.Fragment,null,s.createElement(nr,{disabled:!se,ref:mt,onResize:wt},s.createElement(yu,{getTriggerDOMNode:ge},Go)),s.createElement(Qs.Provider,{value:le},s.createElement(bu,{portal:e,ref:Be,prefixCls:i,popup:k,className:oe(j,_e),style:T,target:Ae,onMouseEnter:zn,onMouseLeave:kr,onPointerEnter:zn,zIndex:O,open:se,keepDom:It,fresh:z,onClick:K,mask:C,motion:ze,maskMotion:Qe,onVisibleChanged:Lr,onPrepare:jr,forceRender:R,autoDestroy:me,getPopupContainer:x,align:ut,arrow:Zu,arrowPos:Xo,ready:sr,offsetX:_n,offsetY:pn,offsetR:bt,offsetB:Jt,onAlign:Nt,stretch:M,targetWidth:Ze/An,targetHeight:ur/Dn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const _a=kh(Pa);function Cu(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:oe("".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 Wn={shiftX:64,adjustY:1},Fn={adjustX:1,shiftY:!0},xt=[0,0],Bh={left:{points:["cr","cl"],overflow:Fn,offset:[-4,0],targetOffset:xt},right:{points:["cl","cr"],overflow:Fn,offset:[4,0],targetOffset:xt},top:{points:["bc","tc"],overflow:Wn,offset:[0,-4],targetOffset:xt},bottom:{points:["tc","bc"],overflow:Wn,offset:[0,4],targetOffset:xt},topLeft:{points:["bl","tl"],overflow:Wn,offset:[0,-4],targetOffset:xt},leftTop:{points:["tr","tl"],overflow:Fn,offset:[-4,0],targetOffset:xt},topRight:{points:["br","tr"],overflow:Wn,offset:[0,-4],targetOffset:xt},rightTop:{points:["tl","tr"],overflow:Fn,offset:[4,0],targetOffset:xt},bottomRight:{points:["tr","br"],overflow:Wn,offset:[0,4],targetOffset:xt},rightBottom:{points:["bl","br"],overflow:Fn,offset:[4,0],targetOffset:xt},bottomLeft:{points:["tl","bl"],overflow:Wn,offset:[0,4],targetOffset:xt},leftBottom:{points:["br","bl"],overflow:Fn,offset:[-4,0],targetOffset:xt}},Hh=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Wh=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,f=t.overlayStyle,d=t.prefixCls,m=d===void 0?"rc-tooltip":d,g=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,v=t.transitionName,w=t.animation,S=t.motion,y=t.placement,C=y===void 0?"right":y,$=t.align,I=$===void 0?{}:$,x=t.destroyTooltipOnHide,R=x===void 0?!1:x,_=t.defaultVisible,P=t.getTooltipContainer,k=t.overlayInnerStyle;t.arrowContent;var j=t.overlay,T=t.id,L=t.showArrow,A=L===void 0?!0:L,E=ke(t,Hh),b=N.useRef(null);N.useImperativeHandle(n,function(){return b.current});var O=V({},E);"visible"in t&&(O.popupVisible=t.visible);var M=function(){return s.createElement(Cu,{key:"content",prefixCls:m,id:T,overlayInnerStyle:k},j)};return s.createElement(_a,Pe({popupClassName:r,prefixCls:m,popup:M,action:i,builtinPlacements:Bh,popupPlacement:C,ref:b,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:v,popupAnimation:w,popupMotion:S,defaultPopupVisible:_,autoDestroy:R,mouseLeaveDelay:u,popupStyle:f,mouseEnterDelay:l,arrow:A},O),g)};const Fh=N.forwardRef(Wh),Su=8;function Aa(e){const t=Su,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function eo(e,t){return e?t:{}}function wu(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:u,arrowDistance:f=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:g}=Aa({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"},Jv(r,o,i,l,a)),{"&:before":{background:l}})]},eo(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),eo(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),eo(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),eo(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function Vh(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 ol={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"]}},Kh={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"]}},Uh=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Eu(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(ol).forEach(u=>{const f=r&&Kh[u]||ol[u],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[u]=d,Uh.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=l+o;break}const m=Aa({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-m.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":d.offset[0]=m.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":d.offset[1]=-m.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":d.offset[1]=m.dropdownArrowOffset+l;break}d.overflow=Vh(u,m,t,n),a&&(d.htmlRegion="visibleFirst")}),c}const Gh=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ca(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 ${f}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,Su)}},[`${t}-content`]:{position:"relative"}}),sm(e,(m,g)=>{let{darkColor:h}=g;return{[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},wu(Ot(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},xu=(e,t)=>Rn("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,c=Ot(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[Gh(c),Ma(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),Xh=go.map(e=>`${e}-inverse`);function Yh(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Xe(Xh),Xe(go)).includes(e):go.includes(e)}function $u(e,t){const n=Yh(t),r=oe({[`${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 qh=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=s.useContext(Je),c=l("tooltip",t),[u,f]=xu(c,!0),d=$u(c,i),m=d.arrowStyle,g=Object.assign(Object.assign({},a),d.overlayStyle),h=oe(f,c,`${c}-pure`,`${c}-placement-${r}`,n,d.className);return u(s.createElement("div",{className:h,style:m},s.createElement("div",{className:`${c}-arrow`}),s.createElement(Cu,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:g}),o)))},Qh=qh;var Zh=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 Da=s.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:c,overlayInnerStyle:u,children:f,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:h=!0,title:p,overlay:v,builtinPlacements:w,arrowPointAtCenter:S=!1,autoAdjustOverflow:y=!0}=e,C=!!h,[,$]=dn(),{getPopupContainer:I,getPrefixCls:x,direction:R}=s.useContext(Je),_=Pn("Tooltip"),P=s.useRef(null),k=()=>{var le;(le=P.current)===null||le===void 0||le.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:k,forcePopupAlign:()=>{_.deprecated(!1,"forcePopupAlign","forceAlign"),k()}})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(le=>{let[de,Fe]=le;_.deprecated(!(de in e),de,Fe)}),process.env.NODE_ENV!=="production"&&_(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&_(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[j,T]=xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),L=!p&&!v&&p!==0,A=le=>{var de,Fe;T(L?!1:le),L||((de=e.onOpenChange)===null||de===void 0||de.call(e,le),(Fe=e.onVisibleChange)===null||Fe===void 0||Fe.call(e,le))},E=s.useMemo(()=>{var le,de;let Fe=S;return typeof h=="object"&&(Fe=(de=(le=h.pointAtCenter)!==null&&le!==void 0?le:h.arrowPointAtCenter)!==null&&de!==void 0?de:S),w||Eu({arrowPointAtCenter:Fe,autoAdjustOverflow:y,arrowWidth:C?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[S,h,w,$]),b=s.useMemo(()=>p===0?p:v||p||"",[v,p]),O=s.createElement(eu,null,typeof b=="function"?b():b),{getPopupContainer:M,placement:D="top",mouseEnterDelay:z=.1,mouseLeaveDelay:B=.1,overlayStyle:K,rootClassName:W}=e,te=Zh(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Q=x("tooltip",o),X=x(),J=e["data-popover-inject"];let ue=j;!("open"in e)&&!("visible"in e)&&L&&(ue=!1);const Y=an(f)&&!Kc(f)?f:s.createElement("span",null,f),ie=Y.props,fe=!ie.className||typeof ie.className=="string"?oe(ie.className,i||`${Q}-open`):ie.className,[ge,H]=xu(Q,!J),me=$u(Q,c),ve=me.arrowStyle,Oe=Object.assign(Object.assign({},u),me.overlayStyle),ne=oe(l,{[`${Q}-rtl`]:R==="rtl"},me.className,W,H),[pe,ee]=Na("Tooltip",te.zIndex),ae=s.createElement(Fh,Object.assign({},te,{zIndex:J?te.zIndex:pe,showArrow:C,placement:D,mouseEnterDelay:z,mouseLeaveDelay:B,prefixCls:Q,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ve),K),getTooltipContainer:M||a||I,ref:P,builtinPlacements:E,overlay:O,visible:ue,onVisibleChange:A,afterVisibleChange:d??m,overlayInnerStyle:Oe,arrowContent:s.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Tp(X,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ue?Mn(Y,{className:fe}):Y);return ge(s.createElement(Ra.Provider,{value:ee},ae))});process.env.NODE_ENV!=="production"&&(Da.displayName="Tooltip");Da._InternalPanelDoNotUseOrYouWillBeFired=Qh;const Jh=Da;var e0={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 t0=e0;var Ou=function(t,n){return s.createElement(Mr,on({},t,{ref:n,icon:t0}))};process.env.NODE_ENV!=="production"&&(Ou.displayName="RightOutlined");const ea=s.forwardRef(Ou);var n0=q.ESC,r0=q.TAB;function o0(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=s.useRef(!1),l=function(){if(t){var d,m;(d=n.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.call(d),r==null||r(!1)}},c=function(){var d;return(d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),a.current=!0,!0):!1},u=function(d){switch(d.keyCode){case n0:l();break;case r0:{var m=!1;a.current||(m=c()),m?d.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&ct(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var i0=N.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=N.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=tr(t,i==null?void 0:i.ref);return N.createElement(N.Fragment,null,r&&N.createElement("div",{className:"".concat(o,"-arrow")}),N.cloneElement(i,{ref:sn(i)?a:void 0}))}),Vn={adjustX:1,adjustY:1},Kn=[0,0],a0={topLeft:{points:["bl","tl"],overflow:Vn,offset:[0,-4],targetOffset:Kn},top:{points:["bc","tc"],overflow:Vn,offset:[0,-4],targetOffset:Kn},topRight:{points:["br","tr"],overflow:Vn,offset:[0,-4],targetOffset:Kn},bottomLeft:{points:["tl","bl"],overflow:Vn,offset:[0,4],targetOffset:Kn},bottom:{points:["tc","bc"],overflow:Vn,offset:[0,4],targetOffset:Kn},bottomRight:{points:["tr","br"],overflow:Vn,offset:[0,4],targetOffset:Kn}},s0=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function l0(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,c=e.animation,u=e.align,f=e.placement,d=f===void 0?"bottomLeft":f,m=e.placements,g=m===void 0?a0:m,h=e.getPopupContainer,p=e.showAction,v=e.hideAction,w=e.overlayClassName,S=e.overlayStyle,y=e.visible,C=e.trigger,$=C===void 0?["hover"]:C,I=e.autoFocus,x=e.overlay,R=e.children,_=e.onVisibleChange,P=ke(e,s0),k=N.useState(),j=F(k,2),T=j[0],L=j[1],A="visible"in e?y:T,E=N.useRef(null),b=N.useRef(null),O=N.useRef(null);N.useImperativeHandle(t,function(){return E.current});var M=function(J){L(J),_==null||_(J)};o0({visible:A,triggerRef:O,onVisibleChange:M,autoFocus:I,overlayRef:b});var D=function(J){var ue=e.onOverlayClick;L(!1),ue&&ue(J)},z=function(){return N.createElement(i0,{ref:b,overlay:x,prefixCls:a,arrow:o})},B=function(){return typeof x=="function"?z:z()},K=function(){var J=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!ue},W=function(){var J=e.openClassName;return J!==void 0?J:"".concat(a,"-open")},te=N.cloneElement(R,{className:oe((n=R.props)===null||n===void 0?void 0:n.className,A&&W()),ref:sn(R)?tr(O,R.ref):void 0}),Q=v;return!Q&&$.indexOf("contextMenu")!==-1&&(Q=["click"]),N.createElement(_a,Pe({builtinPlacements:g},P,{prefixCls:a,ref:E,popupClassName:oe(w,re({},"".concat(a,"-show-arrow"),o)),popupStyle:S,action:$,showAction:p,hideAction:Q,popupPlacement:d,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:A,stretch:K()?"minWidth":"",popup:B(),onPopupVisibleChange:M,onPopupClick:D,getPopupContainer:h}),te)}const c0=N.forwardRef(l0);var Iu=s.createContext(null);function La(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Pu(e){var t=s.useContext(Iu);return La(t,e)}var u0=["children","locked"],jt=s.createContext(null);function d0(e,t){var n=V({},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=ke(e,u0),o=s.useContext(jt),i=xo(function(){return d0(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!va(a[1],l[1],!0))});return s.createElement(jt.Provider,{value:i},t)}var f0=[],Ru=s.createContext(null);function Bo(){return s.useContext(Ru)}var Tu=s.createContext(f0);function ir(e){var t=s.useContext(Tu);return s.useMemo(function(){return e!==void 0?[].concat(Xe(t),[e]):t},[t,e])}var Mu=s.createContext(null),ja=s.createContext({});function il(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($a(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 v0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Xe(e.querySelectorAll("*")).filter(function(r){return il(r,t)});return il(e,t)&&n.unshift(e),n}var ta=q.LEFT,na=q.RIGHT,ra=q.UP,so=q.DOWN,lo=q.ENTER,Nu=q.ESC,pr=q.HOME,gr=q.END,al=[ra,so,ta,na];function m0(e,t,n,r){var o,i,a,l,c="prev",u="next",f="children",d="parent";if(e==="inline"&&r===lo)return{inlineTrigger:!0};var m=(o={},re(o,ra,c),re(o,so,u),o),g=(i={},re(i,ta,n?u:c),re(i,na,n?c:u),re(i,so,f),re(i,lo,f),i),h=(a={},re(a,ra,c),re(a,so,u),re(a,lo,f),re(a,Nu,d),re(a,ta,n?f:d),re(a,na,n?d:f),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 d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function p0(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function g0(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function _u(e,t){var n=v0(e,!0);return n.filter(function(r){return t.has(r)})}function sl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=_u(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 h0(e,t,n,r,o,i,a,l,c,u){var f=s.useRef(),d=s.useRef();d.current=t;var m=function(){ct.cancel(f.current)};return s.useEffect(function(){return function(){m()}},[]),function(g){var h=g.which;if([].concat(al,[lo,Nu,pr,gr]).includes(h)){var p,v,w,S=function(){p=new Set,v=new Map,w=new Map;var A=i();return A.forEach(function(E){var b=document.querySelector("[data-menu-id='".concat(La(r,E),"']"));b&&(p.add(b),w.set(b,E),v.set(E,b))}),p};S();var y=v.get(t),C=g0(y,p),$=w.get(C),I=m0(e,a($,!0).length===1,n,h);if(!I&&h!==pr&&h!==gr)return;(al.includes(h)||[pr,gr].includes(h))&&g.preventDefault();var x=function(A){if(A){var E=A,b=A.querySelector("a");b!=null&&b.getAttribute("href")&&(E=b);var O=w.get(A);l(O),m(),f.current=ct(function(){d.current===O&&E.focus()})}};if([pr,gr].includes(h)||I.sibling||!C){var R;!C||e==="inline"?R=o.current:R=p0(C);var _,P=_u(R,p);h===pr?_=P[0]:h===gr?_=P[P.length-1]:_=sl(R,p,C,I.offset),x(_)}else if(I.inlineTrigger)c($);else if(I.offset>0)c($,!0),m(),f.current=ct(function(){S();var L=C.getAttribute("aria-controls"),A=document.getElementById(L),E=sl(A,p);x(E)},5);else if(I.offset<0){var k=a($,!0),j=k[k.length-2],T=v.get(j);c(j,!1),x(T)}}u==null||u(g)}}function b0(e){Promise.resolve().then(e)}var za="__RC_UTIL_PATH_SPLIT__",ll=function(t){return t.join(za)},y0=function(t){return t.split(za)},oa="rc-menu-more";function C0(){var e=s.useState({}),t=F(e,2),n=t[1],r=N.useRef(new Map),o=N.useRef(new Map),i=s.useState([]),a=F(i,2),l=a[0],c=a[1],u=N.useRef(0),f=N.useRef(!1),d=function(){f.current||n({})},m=N.useCallback(function(y,C){process.env.NODE_ENV!=="production"&>(!r.current.has(y),"Duplicated key '".concat(y,"' used in Menu by path [").concat(C.join(" > "),"]"));var $=ll(C);o.current.set($,y),r.current.set(y,$),u.current+=1;var I=u.current;b0(function(){I===u.current&&d()})},[]),g=N.useCallback(function(y,C){var $=ll(C);o.current.delete($),r.current.delete(y)},[]),h=N.useCallback(function(y){c(y)},[]),p=N.useCallback(function(y,C){var $=r.current.get(y)||"",I=y0($);return C&&l.includes(I[0])&&I.unshift(oa),I},[l]),v=N.useCallback(function(y,C){return y.some(function($){var I=p($,!0);return I.includes(C)})},[p]),w=function(){var C=Xe(r.current.keys());return l.length&&C.push(oa),C},S=N.useCallback(function(y){var C="".concat(r.current.get(y)).concat(za),$=new Set;return Xe(o.current.keys()).forEach(function(I){I.startsWith(C)&&$.add(o.current.get(I))}),$},[]);return s.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:v,getKeyPath:p,getKeys:w,getSubPathKeys:S}}function hr(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 S0=Math.random().toFixed(5).toString().slice(2),cl=0;function w0(e){var t=xn(e,{value:e}),n=F(t,2),r=n[0],o=n[1];return s.useEffect(function(){cl+=1;var i=process.env.NODE_ENV==="test"?"test":"".concat(S0,"-").concat(cl);o("rc-menu-uuid-".concat(i))},[]),r}function Au(e,t,n,r){var o=s.useContext(jt),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 Du(e){var t=s.useContext(jt),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 Lu(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,V({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var E0=["item"];function So(e){var t=e.item,n=ke(e,E0);return Object.defineProperty(n,"item",{get:function(){return gt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var x0=["title","attribute","elementRef"],$0=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],O0=["active"],I0=function(e){Oo(n,e);var t=Io(n);function n(){return ln(this,n),t.apply(this,arguments)}return cn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,c=ke(o,x0),u=un(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return gt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(qt.Item,Pe({},a,{title:typeof i=="string"?i:void 0},u,{ref:l}))}}]),n}(s.Component),P0=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,f=e.role,d=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,p=e.onFocus,v=ke(e,$0),w=Pu(i),S=s.useContext(jt),y=S.prefixCls,C=S.onItemClick,$=S.disabled,I=S.overflowDisabled,x=S.itemIcon,R=S.selectedKeys,_=S.onActive,P=s.useContext(ja),k=P._internalRenderMenuItem,j="".concat(y,"-item"),T=s.useRef(),L=s.useRef(),A=$||l,E=Tr(t,L),b=ir(i);process.env.NODE_ENV!=="production"&&a&>(!1,"MenuItem should not leave undefined `key`.");var O=function(ie){return{key:i,keyPath:Xe(b).reverse(),item:T.current,domEvent:ie}},M=c||x,D=Au(i,A,d,m),z=D.active,B=ke(D,O0),K=R.includes(i),W=Du(b.length),te=function(ie){if(!A){var fe=O(ie);g==null||g(So(fe)),C(fe)}},Q=function(ie){if(h==null||h(ie),ie.which===q.ENTER){var fe=O(ie);g==null||g(So(fe)),C(fe)}},X=function(ie){_(i),p==null||p(ie)},J={};e.role==="option"&&(J["aria-selected"]=K);var ue=s.createElement(I0,Pe({ref:T,elementRef:E,role:f===null?"none":f||"menuitem",tabIndex:l?null:-1,"data-menu-id":I&&w?null:w},v,B,J,{component:"li","aria-disabled":l,style:V(V({},W),r),className:oe(j,(n={},re(n,"".concat(j,"-active"),z),re(n,"".concat(j,"-selected"),K),re(n,"".concat(j,"-disabled"),A),n),o),onClick:te,onKeyDown:Q,onFocus:X}),u,s.createElement(Lu,{props:V(V({},e),{},{isSelected:K}),icon:M}));return k&&(ue=k(ue,e,{selected:K})),ue});function R0(e,t){var n=e.eventKey,r=Bo(),o=ir(n);return s.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:s.createElement(P0,Pe({},e,{ref:t}))}const Ho=s.forwardRef(R0);var T0=["className","children"],M0=function(t,n){var r=t.className,o=t.children,i=ke(t,T0),a=s.useContext(jt),l=a.prefixCls,c=a.mode,u=a.rtl;return s.createElement("ul",Pe({className:oe(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)},ka=s.forwardRef(M0);ka.displayName="SubMenuList";function Ba(e,t){return $n(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(Xe(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 st={adjustX:1,adjustY:1},N0={topLeft:{points:["bl","tl"],overflow:st},topRight:{points:["br","tr"],overflow:st},bottomLeft:{points:["tl","bl"],overflow:st},bottomRight:{points:["tr","br"],overflow:st},leftTop:{points:["tr","tl"],overflow:st},leftBottom:{points:["br","bl"],overflow:st},rightTop:{points:["tl","tr"],overflow:st},rightBottom:{points:["bl","br"],overflow:st}},_0={topLeft:{points:["bl","tl"],overflow:st},topRight:{points:["br","tr"],overflow:st},bottomLeft:{points:["tl","bl"],overflow:st},bottomRight:{points:["tr","br"],overflow:st},rightTop:{points:["tr","tl"],overflow:st},rightBottom:{points:["br","bl"],overflow:st},leftTop:{points:["tl","tr"],overflow:st},leftBottom:{points:["bl","br"],overflow:st}};function ju(e,t,n){if(t)return t;if(n)return n[e]||n.other}var A0={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function D0(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,f=e.onVisibleChange,d=s.useContext(jt),m=d.getPopupContainer,g=d.rtl,h=d.subMenuOpenDelay,p=d.subMenuCloseDelay,v=d.builtinPlacements,w=d.triggerSubMenuAction,S=d.forceSubMenuRender,y=d.rootClassName,C=d.motion,$=d.defaultMotions,I=s.useState(!1),x=F(I,2),R=x[0],_=x[1],P=V(g?V({},_0):V({},N0),v),k=A0[u],j=ju(u,C,$),T=s.useRef(j);u!=="inline"&&(T.current=j);var L=V(V({},T.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),A=s.useRef();return s.useEffect(function(){return A.current=ct(function(){_(n)}),function(){ct.cancel(A.current)}},[n]),s.createElement(_a,{prefixCls:t,popupClassName:oe("".concat(t,"-popup"),re({},"".concat(t,"-rtl"),g),a,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:P,popupPlacement:k,popupVisible:R,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:c?[]:[w],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:f,forceRender:S,popupMotion:L,fresh:!0},r)}function L0(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=s.useContext(jt),l=a.prefixCls,c=a.forceSubMenuRender,u=a.motion,f=a.defaultMotions,d=a.mode,m=s.useRef(!1);m.current=d===i;var g=s.useState(!m.current),h=F(g,2),p=h[0],v=h[1],w=m.current?n:!1;s.useEffect(function(){m.current&&v(!1)},[d]);var S=V({},ju(i,u,f));r.length>1&&(S.motionAppear=!1);var y=S.onVisibleChanged;return S.onVisibleChanged=function(C){return!m.current&&!C&&v(!0),y==null?void 0:y(C)},p?null:s.createElement(Pr,{mode:i,locked:!m.current},s.createElement(or,Pe({visible:w},S,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var $=C.className,I=C.style;return s.createElement(ka,{id:t,className:$,style:I},o)}))}var j0=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],z0=["active"],k0=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,f=t.children,d=t.itemIcon,m=t.expandIcon,g=t.popupClassName,h=t.popupOffset,p=t.popupStyle,v=t.onClick,w=t.onMouseEnter,S=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,$=t.onTitleMouseLeave,I=ke(t,j0),x=Pu(a),R=s.useContext(jt),_=R.prefixCls,P=R.mode,k=R.openKeys,j=R.disabled,T=R.overflowDisabled,L=R.activeKey,A=R.selectedKeys,E=R.itemIcon,b=R.expandIcon,O=R.onItemClick,M=R.onOpenChange,D=R.onActive,z=s.useContext(ja),B=z._internalRenderSubMenuItem,K=s.useContext(Mu),W=K.isSubPathKey,te=ir(),Q="".concat(_,"-submenu"),X=j||c,J=s.useRef(),ue=s.useRef();process.env.NODE_ENV!=="production"&&l&>(!1,"SubMenu should not leave undefined `key`.");var Y=d??E,ie=m??b,fe=k.includes(a),ge=!T&&fe,H=W(A,a),me=Au(a,X,C,$),ve=me.active,Oe=ke(me,z0),ne=s.useState(!1),pe=F(ne,2),ee=pe[0],ae=pe[1],le=function(Te){X||ae(Te)},de=function(Te){le(!0),w==null||w({key:a,domEvent:Te})},Fe=function(Te){le(!1),S==null||S({key:a,domEvent:Te})},rt=s.useMemo(function(){return ve||(P!=="inline"?ee||W([L],a):!1)},[P,ve,L,ee,a,W]),Re=Du(te.length),ht=function(Te){X||(y==null||y({key:a,domEvent:Te}),P==="inline"&&M(a,!fe))},Be=hr(function(Ce){v==null||v(So(Ce)),O(Ce)}),Ne=function(Te){P!=="inline"&&M(a,Te)},ot=function(){D(a)},Ae=x&&"".concat(x,"-popup"),vt=s.createElement("div",Pe({role:"menuitem",style:Re,className:"".concat(Q,"-title"),tabIndex:X?null:-1,ref:J,title:typeof i=="string"?i:null,"data-menu-id":T&&x?null:x,"aria-expanded":ge,"aria-haspopup":!0,"aria-controls":Ae,"aria-disabled":X,onClick:ht,onFocus:ot},Oe),i,s.createElement(Lu,{icon:P!=="horizontal"?ie:void 0,props:V(V({},t),{},{isOpen:ge,isSubMenu:!0})},s.createElement("i",{className:"".concat(Q,"-arrow")}))),De=s.useRef(P);if(P!=="inline"&&te.length>1?De.current="vertical":De.current=P,!T){var mt=De.current;vt=s.createElement(D0,{mode:mt,prefixCls:Q,visible:!u&&ge&&P!=="inline",popupClassName:g,popupOffset:h,popupStyle:p,popup:s.createElement(Pr,{mode:mt==="horizontal"?"vertical":mt},s.createElement(ka,{id:Ae,ref:ue},f)),disabled:X,onVisibleChange:Ne},vt)}var Le=s.createElement(qt.Item,Pe({role:"none"},I,{component:"li",style:r,className:oe(Q,"".concat(Q,"-").concat(P),o,(n={},re(n,"".concat(Q,"-open"),ge),re(n,"".concat(Q,"-active"),rt),re(n,"".concat(Q,"-selected"),H),re(n,"".concat(Q,"-disabled"),X),n)),onMouseEnter:de,onMouseLeave:Fe}),vt,!T&&s.createElement(L0,{id:Ae,open:ge,keyPath:te},f));return B&&(Le=B(Le,t,{selected:H,active:rt,open:ge,disabled:X})),s.createElement(Pr,{onItemClick:Be,mode:P==="horizontal"?"vertical":P,itemIcon:Y,expandIcon:ie},Le)};function Wo(e){var t=e.eventKey,n=e.children,r=ir(t),o=Ba(n,r),i=Bo();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(k0,e,o),s.createElement(Tu.Provider,{value:r},a)}var B0=["className","title","eventKey","children"],H0=["children"],W0=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=ke(t,B0),a=s.useContext(jt),l=a.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",Pe({role:"presentation"},i,{onClick:function(f){return f.stopPropagation()},className:oe(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 Fo(e){var t=e.children,n=ke(e,H0),r=ir(n.eventKey),o=Ba(t,r),i=Bo();return i?o:s.createElement(W0,un(n,["warnKey"]),o)}function Ha(e){var t=e.className,n=e.style,r=s.useContext(jt),o=r.prefixCls,i=Bo();return i?null:s.createElement("li",{role:"separator",className:oe("".concat(o,"-item-divider"),t),style:n})}var F0=["label","children","key","type"];function ia(e){return(e||[]).map(function(t,n){if(t&&je(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,c=ke(r,F0),u=a??"tmp-".concat(n);return i||l==="group"?l==="group"?s.createElement(Fo,Pe({key:u},c,{title:o}),ia(i)):s.createElement(Wo,Pe({key:u},c,{title:o}),ia(i)):l==="divider"?s.createElement(Ha,Pe({key:u},c)):s.createElement(Ho,Pe({key:u},c),o)}return null}).filter(function(t){return t})}function V0(e,t,n){var r=e;return t&&(r=ia(t)),Ba(r,n)}var K0=["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"],Un=[],U0=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,f=o.tabIndex,d=f===void 0?0:f,m=o.items,g=o.children,h=o.direction,p=o.id,v=o.mode,w=v===void 0?"vertical":v,S=o.inlineCollapsed,y=o.disabled,C=o.disabledOverflow,$=o.subMenuOpenDelay,I=$===void 0?.1:$,x=o.subMenuCloseDelay,R=x===void 0?.1:x,_=o.forceSubMenuRender,P=o.defaultOpenKeys,k=o.openKeys,j=o.activeKey,T=o.defaultActiveFirst,L=o.selectable,A=L===void 0?!0:L,E=o.multiple,b=E===void 0?!1:E,O=o.defaultSelectedKeys,M=o.selectedKeys,D=o.onSelect,z=o.onDeselect,B=o.inlineIndent,K=B===void 0?24:B,W=o.motion,te=o.defaultMotions,Q=o.triggerSubMenuAction,X=Q===void 0?"hover":Q,J=o.builtinPlacements,ue=o.itemIcon,Y=o.expandIcon,ie=o.overflowedIndicator,fe=ie===void 0?"...":ie,ge=o.overflowedIndicatorPopupClassName,H=o.getPopupContainer,me=o.onClick,ve=o.onOpenChange,Oe=o.onKeyDown,ne=o.openAnimation,pe=o.openTransitionName,ee=o._internalRenderMenuItem,ae=o._internalRenderSubMenuItem,le=ke(o,K0),de=s.useMemo(function(){return V0(g,m,Un)},[g,m]),Fe=s.useState(!1),rt=F(Fe,2),Re=rt[0],ht=rt[1],Be=s.useRef(),Ne=w0(p),ot=h==="rtl";process.env.NODE_ENV!=="production"&>(!ne&&!pe,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ae=xn(P,{value:k,postState:function(ye){return ye||Un}}),vt=F(Ae,2),De=vt[0],mt=vt[1],Le=function(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ze(){mt(ye),ve==null||ve(ye)}Ie?Rr.flushSync(Ze):Ze()},Ce=s.useState(De),Te=F(Ce,2),Ye=Te[0],ze=Te[1],Qe=s.useRef(!1),pt=s.useMemo(function(){return(w==="inline"||w==="vertical")&&S?["vertical",S]:[w,!1]},[w,S]),he=F(pt,2),be=he[0],we=he[1],se=be==="inline",Ee=s.useState(be),U=F(Ee,2),Z=U[0],Se=U[1],Ve=s.useState(we),Ke=F(Ve,2),it=Ke[0],fn=Ke[1];s.useEffect(function(){Se(be),fn(we),Qe.current&&(se?mt(Ye):Le(Un))},[be,we]);var Bt=s.useState(0),It=F(Bt,2),Ue=It[0],Ht=It[1],Pt=Ue>=de.length-1||Z!=="horizontal"||C;s.useEffect(function(){se&&ze(De)},[De]),s.useEffect(function(){return Qe.current=!0,function(){Qe.current=!1}},[]);var et=C0(),zt=et.registerPath,vn=et.unregisterPath,mn=et.refreshOverflowKeys,Rt=et.isSubPathKey,Nn=et.getKeyPath,Zt=et.getKeys,Wt=et.getSubPathKeys,at=s.useMemo(function(){return{registerPath:zt,unregisterPath:vn}},[zt,vn]),sr=s.useMemo(function(){return{isSubPathKey:Rt}},[Rt]);s.useEffect(function(){mn(Pt?Un:de.slice(Ue+1).map(function(_e){return _e.key}))},[Ue,Pt]);var _n=xn(j||T&&((n=de[0])===null||n===void 0?void 0:n.key),{value:j}),pn=F(_n,2),bt=pn[0],Jt=pn[1],lr=hr(function(_e){Jt(_e)}),Ft=hr(function(){Jt(void 0)});N.useImperativeHandle(t,function(){return{list:Be.current,focus:function(ye){var Ie,Ze=bt??((Ie=de.find(function(ur){return!ur.props.disabled}))===null||Ie===void 0?void 0:Ie.key);if(Ze){var tt,_t,kt;(tt=Be.current)===null||tt===void 0||(_t=tt.querySelector("li[data-menu-id='".concat(La(Ne,Ze),"']")))===null||_t===void 0||(kt=_t.focus)===null||kt===void 0||kt.call(_t,ye)}}}});var An=xn(O||[],{value:M,postState:function(ye){return Array.isArray(ye)?ye:ye==null?Un:[ye]}}),Dn=F(An,2),ut=Dn[0],Tt=Dn[1],gn=function(ye){if(A){var Ie=ye.key,Ze=ut.includes(Ie),tt;b?Ze?tt=ut.filter(function(kt){return kt!==Ie}):tt=[].concat(Xe(ut),[Ie]):tt=[Ie],Tt(tt);var _t=V(V({},ye),{},{selectedKeys:tt});Ze?z==null||z(_t):D==null||D(_t)}!b&&De.length&&Z!=="inline"&&Le(Un)},Ln=hr(function(_e){me==null||me(So(_e)),gn(_e)}),Mt=hr(function(_e,ye){var Ie=De.filter(function(tt){return tt!==_e});if(ye)Ie.push(_e);else if(Z!=="inline"){var Ze=Wt(_e);Ie=Ie.filter(function(tt){return!Ze.has(tt)})}va(De,Ie,!0)||Le(Ie,!0)}),Vt=function(ye,Ie){var Ze=Ie??!De.includes(ye);Mt(ye,Ze)},hn=h0(Z,bt,ot,Ne,Be,Zt,Nn,Jt,Vt,Oe);s.useEffect(function(){ht(!0)},[]);var en=s.useMemo(function(){return{_internalRenderMenuItem:ee,_internalRenderSubMenuItem:ae}},[ee,ae]),Nt=Z!=="horizontal"||C?de:de.map(function(_e,ye){return s.createElement(Pr,{key:_e.key,overflowDisabled:ye>Ue},_e)}),cr=s.createElement(qt,Pe({id:p,ref:Be,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Ho,className:oe(a,"".concat(a,"-root"),"".concat(a,"-").concat(Z),u,(r={},re(r,"".concat(a,"-inline-collapsed"),it),re(r,"".concat(a,"-rtl"),ot),r),l),dir:h,style:c,role:"menu",tabIndex:d,data:Nt,renderRawItem:function(ye){return ye},renderRawRest:function(ye){var Ie=ye.length,Ze=Ie?de.slice(-Ie):null;return s.createElement(Wo,{eventKey:oa,title:fe,disabled:Pt,internalPopupClose:Ie===0,popupClassName:ge},Ze)},maxCount:Z!=="horizontal"||C?qt.INVALIDATE:qt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ye){Ht(ye)},onKeyDown:hn},le));return s.createElement(ja.Provider,{value:en},s.createElement(Iu.Provider,{value:Ne},s.createElement(Pr,{prefixCls:a,rootClassName:l,mode:Z,openKeys:De,rtl:ot,disabled:y,motion:Re?W:null,defaultMotions:Re?te:null,activeKey:bt,onActive:lr,onInactive:Ft,selectedKeys:ut,inlineIndent:K,subMenuOpenDelay:I,subMenuCloseDelay:R,forceSubMenuRender:_,builtinPlacements:J,triggerSubMenuAction:X,getPopupContainer:H,itemIcon:ue,expandIcon:Y,onItemClick:Ln,onOpenChange:Mt},s.createElement(Mu.Provider,{value:sr},cr),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(Ru.Provider,{value:at},de)))))}),Ar=U0;Ar.Item=Ho;Ar.SubMenu=Wo;Ar.ItemGroup=Fo;Ar.Divider=Ha;var G0={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 X0=G0;var zu=function(t,n){return s.createElement(Mr,on({},t,{ref:n,icon:X0}))};process.env.NODE_ENV!=="production"&&(zu.displayName="BarsOutlined");const Y0=s.forwardRef(zu);var q0={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 Q0=q0;var ku=function(t,n){return s.createElement(Mr,on({},t,{ref:n,icon:Q0}))};process.env.NODE_ENV!=="production"&&(ku.displayName="LeftOutlined");const ul=s.forwardRef(ku),Z0=e=>!isNaN(parseFloat(e))&&isFinite(e),J0=Z0,eb=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var tb=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 dl={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Wa=s.createContext({}),nb=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),rb=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:f=!1,width:d=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:p,onBreakpoint:v}=e,w=tb(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=N.useContext(eb),[y,C]=N.useState("collapsed"in e?e.collapsed:a),[$,I]=N.useState(!1);N.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const x=(T,L)=>{"collapsed"in e||C(T),p==null||p(T,L)},R=N.useRef();R.current=T=>{I(T.matches),v==null||v(T.matches),y!==T.matches&&x(T.matches,"responsive")},N.useEffect(()=>{function T(A){return R.current(A)}let L;if(typeof window<"u"){const{matchMedia:A}=window;if(A&&h&&h in dl){L=A(`(max-width: ${dl[h]})`);try{L.addEventListener("change",T)}catch{L.addListener(T)}T(L)}}return()=>{try{L==null||L.removeEventListener("change",T)}catch{L==null||L.removeListener(T)}}},[h]),N.useEffect(()=>{const T=nb("ant-sider-");return S.addSider(T),()=>S.removeSider(T)},[]);const _=()=>{x(!y,"clickTrigger")},{getPrefixCls:P}=N.useContext(Je),k=()=>{const T=P("layout-sider",n),L=un(w,["collapsed"]),A=y?m:d,E=J0(A)?`${A}px`:String(A),b=parseFloat(String(m||0))===0?s.createElement("span",{onClick:_,className:oe(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${f?"right":"left"}`),style:g},o||s.createElement(Y0,null)):null,D={expanded:f?s.createElement(ea,null):s.createElement(ul,null),collapsed:f?s.createElement(ul,null):s.createElement(ea,null)}[y?"collapsed":"expanded"],z=o!==null?b||s.createElement("div",{className:`${T}-trigger`,onClick:_,style:{width:E}},o||D):null,B=Object.assign(Object.assign({},c),{flex:`0 0 ${E}`,maxWidth:E,minWidth:E,width:E}),K=oe(T,`${T}-${l}`,{[`${T}-collapsed`]:!!y,[`${T}-has-trigger`]:u&&o!==null&&!b,[`${T}-below`]:!!$,[`${T}-zero-width`]:parseFloat(E)===0},r);return s.createElement("aside",Object.assign({className:K},L,{style:B,ref:t}),s.createElement("div",{className:`${T}-children`},i),u||$&&b?z:null)},j=s.useMemo(()=>({siderCollapsed:y}),[y]);return s.createElement(Wa.Provider,{value:j},k())});process.env.NODE_ENV!=="production"&&(rb.displayName="Sider");var ob=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 ib=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=ob(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(Je),a=i("menu",t),l=oe({[`${a}-item-divider-dashed`]:!!r},n);return s.createElement(Ha,Object.assign({className:l},o))},Bu=ib,ab=N.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),wo=ab,sb=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:d}=s.useContext(wo),m=S=>{const y=s.createElement("span",{className:`${l}-title-content`},r);return(!o||an(r)&&r.type==="span")&&r&&S&&c&&typeof r=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):y},{siderCollapsed:g}=s.useContext(Wa);let h=i;typeof i>"u"?h=c?r:"":i===!1&&(h="");const p={title:h};!g&&!d&&(p.title=null,p.open=!1);const v=$n(r).length;let w=s.createElement(Ho,Object.assign({},un(e,["title","icon","danger"]),{className:oe({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?v+1:v)===1},n),title:typeof i=="string"?i:void 0}),Mn(o,{className:oe(an(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(d));return f||(w=s.createElement(Jh,Object.assign({},p,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),w)),w},Hu=sb,lb=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=s.useContext(wo),{prefixCls:l,inlineCollapsed:c,theme:u}=a,f=ir();let d;if(!r)d=c&&!f.length&&o&&typeof o=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${l}-title-content`},o);else{const h=an(o)&&o.type==="span";d=s.createElement(s.Fragment,null,Mn(r,{className:oe(an(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h?o:s.createElement("span",{className:`${l}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[g]=Na("Menu");return s.createElement(wo.Provider,{value:m},s.createElement(Wo,Object.assign({},un(e,["icon"]),{title:d,popupClassName:oe(l,n,`${l}-${i||u}`),popupStyle:{zIndex:g}})))},Wu=lb;var cb={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 ub=cb;var Fu=function(t,n){return s.createElement(Mr,on({},t,{ref:n,icon:ub}))};process.env.NODE_ENV!=="production"&&(Fu.displayName="EllipsisOutlined");const Vu=s.forwardRef(Fu);var db=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 aa(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,c=db(r,["label","children","key","type"]),u=a??`tmp-${n}`;return i||l==="group"?l==="group"?s.createElement(Fo,Object.assign({key:u},c,{title:o}),aa(i)):s.createElement(Wu,Object.assign({key:u},c,{title:o}),aa(i)):l==="divider"?s.createElement(Bu,Object.assign({key:u},c)):s.createElement(Hu,Object.assign({key:u},c),o)}return null}).filter(t=>t)}function fb(e){return s.useMemo(()=>e&&aa(e),[e])}var vb=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 Eo=s.createContext(null),mb=s.forwardRef((e,t)=>{const{children:n}=e,r=vb(e,["children"]),o=s.useContext(Eo),i=s.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),a=cd(n),l=Tr(t,a?n.ref:null);return s.createElement(Eo.Provider,{value:i},s.createElement(eu,null,a?s.cloneElement(n,{ref:l}):n))}),pb=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,
|
|
141
|
-
> ${t}-item-active,
|
|
142
|
-
> ${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"}}}},gb=pb,hb=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
|
|
143
|
-
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},bb=hb,fl=e=>Object.assign({},Cc(e)),yb=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:p,motionDurationMid:v,itemHoverColor:w,lineType:S,colorSplit:y,itemDisabledColor:C,dangerItemColor:$,dangerItemHoverColor:I,dangerItemSelectedColor:x,dangerItemActiveBg:R,dangerItemSelectedBg:_,itemHoverBg:P,itemActiveBg:k,menuSubMenuBg:j,horizontalItemSelectedColor:T,horizontalItemSelectedBg:L,horizontalItemBorderRadius:A,horizontalItemHoverBg:E,popupBg:b}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},fl(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:I}},[`&${n}-item:active`]:{background:R}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:_}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},fl(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:b},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:A,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:E,"&::after":{borderBottomWidth:u,borderBottomColor:T}},"&-selected":{color:T,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:u,borderBottomColor:T}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${S} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&f?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${f}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(",")}}}}}},vl=yb,ml=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,
|
|
144
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
|
|
145
|
-
${t}-submenu-title`]:{paddingInlineEnd:c}}},Cb=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:u,itemMarginInline:f,fontSizeLG:d,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:h,collapsedWidth:p,collapsedIconSize:v}=e,w={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ml(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ml(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`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:p,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
|
|
146
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
147
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
148
|
-
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${f}px)`,textOverflow:"clip",[`
|
|
149
|
-
${t}-submenu-arrow,
|
|
150
|
-
${t}-submenu-expand-icon
|
|
151
|
-
`]:{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({},em),{paddingInline:g})}}]},Sb=Cb,pl=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({},yc()),[`&${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"}}}},gl=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})`}}}}},wb=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:f,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:p,lineType:v,menuPanelMaskInset:w,groupTitleLineHeight:S,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Cs()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ca(e)),Cs()),{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:y,lineHeight:S,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:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),pl(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${w}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:w},"\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},pl(e)),gl(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),gl(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
152
|
-
&-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"}}}]},Eb=(e,t)=>Rn("Menu",r=>{if(t===!1)return[];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:l,fontSize:c,darkItemColor:u,darkDangerItemColor:f,darkItemBg:d,darkSubMenuItemBg:m,darkItemSelectedColor:g,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:v,darkGroupTitleColor:w,darkItemHoverColor:S,darkItemDisabledColor:y,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:I}=r,x=c/7*5,R=Ot(r,{menuArrowSize:x,menuHorizontalHeight:l*1.15,menuArrowOffset:`${x*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),_=Ot(R,{itemColor:u,itemHoverColor:S,groupTitleColor:w,itemSelectedColor:g,itemBg:d,popupBg:d,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:y,dangerItemColor:f,dangerItemHoverColor:C,dangerItemSelectedColor:$,dangerItemActiveBg:I,dangerItemSelectedBg:p,menuSubMenuBg:m,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return[wb(R),gb(R),Sb(R),vl(R,"light"),vl(_,"dark"),bb(R),fh(R),yo(R,"slide-up"),yo(R,"slide-down"),Ma(R,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:f,colorFillAlter:d,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:p,colorBgTextHover:v,controlHeightLG:w,lineHeight:S,colorBgElevated:y,marginXXS:C,padding:$,fontSize:I,controlHeightSM:x,fontSizeLG:R,colorTextLightSolid:_,colorErrorHover:P}=r,k=new dt(_).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:f,itemBg:f,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:g,colorItemTextDisabled: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:w,groupTitleLineHeight:S,collapsedWidth:w*2,popupBg:y,itemMarginBlock:C,itemPaddingInline:$,horizontalLineHeight:`${w*1.15}px`,iconSize:I,iconMarginInlineEnd:x-I,collapsedIconSize:R,groupTitleFontSize:I,darkItemDisabledColor:new dt(_).setAlpha(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:_,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:_,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 xb=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 $b=N.forwardRef((e,t)=>{var n,r;const o=s.useContext(Eo),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:u}=s.useContext(Je),f=a(),{prefixCls:d,className:m,style:g,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:w,siderCollapsed:S,items:y,children:C,rootClassName:$,mode:I,selectable:x,onClick:R,overflowedIndicatorPopupClassName:_}=e,P=xb(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=un(P,["collapsedWidth"]),j=fb(y)||C;if(process.env.NODE_ENV!=="production"){const W=Pn("Menu");process.env.NODE_ENV!=="production"&&W(!("inlineCollapsed"in e&&I!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),process.env.NODE_ENV!=="production"&&W(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),W.deprecated("items"in e&&!C,"children","items")}(n=i.validator)===null||n===void 0||n.call(i,{mode:I});const T=St(function(){var W;R==null||R.apply(void 0,arguments),(W=i.onClick)===null||W===void 0||W.call(i)}),L=i.mode||I,A=x??i.selectable,E=s.useMemo(()=>S!==void 0?S:w,[w,S]),b={horizontal:{motionName:`${f}-slide-up`},inline:Mp(f),other:{motionName:`${f}-zoom-big`}},O=a("menu",d||i.prefixCls),[M,D]=Eb(O,!o),z=oe(`${O}-${h}`,u==null?void 0:u.className,m);let B;if(typeof p=="function")B=p;else if(p===null||p===!1)B=null;else if(i.expandIcon===null||i.expandIcon===!1)B=null;else{const W=p??i.expandIcon;B=Mn(W,{className:oe(`${O}-submenu-expand-icon`,an(W)?(r=W.props)===null||r===void 0?void 0:r.className:"")})}const K=s.useMemo(()=>({prefixCls:O,inlineCollapsed:E||!1,direction:c,firstLevel:!0,theme:h,mode:L,disableMenuItemTitleTooltip:v}),[O,E,c,v,h]);return M(s.createElement(Eo.Provider,{value:null},s.createElement(wo.Provider,{value:K},s.createElement(Ar,Object.assign({getPopupContainer:l,overflowedIndicator:s.createElement(Vu,null),overflowedIndicatorPopupClassName:oe(O,`${O}-${h}`,_),mode:L,selectable:A,onClick:T},k,{inlineCollapsed:E,style:Object.assign(Object.assign({},u==null?void 0:u.style),g),className:z,prefixCls:O,direction:c,defaultMotions:b,expandIcon:B,ref:t,rootClassName:oe($,D)}),j))))}),Ob=$b,ar=N.forwardRef((e,t)=>{const n=N.useRef(null),r=s.useContext(Wa);return N.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),s.createElement(Ob,Object.assign({ref:n},e,r))});ar.Item=Hu;ar.SubMenu=Wu;ar.Divider=Bu;ar.ItemGroup=Fo;process.env.NODE_ENV!=="production"&&(ar.displayName="Menu");const Ib=ar,Pb=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Rb=Pb,Tb=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:f,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:p}=e;return[{[t]:Object.assign(Object.assign({},Ca(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
153
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
154
|
-
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
|
155
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
|
156
|
-
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
|
157
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:lu},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
|
158
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
|
159
|
-
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
|
160
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
|
161
|
-
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
|
162
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:uu},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
163
|
-
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
|
164
|
-
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:cu},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
|
165
|
-
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
|
166
|
-
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:du}})},wu(e,{colorBg:p,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},zi(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${h}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},zi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[yo(e,"slide-up"),yo(e,"slide-down"),Xs(e,"move-up"),Xs(e,"move-down"),Ma(e,"zoom-big")]]},Ku=Rn("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:c,componentCls:u,borderRadiusLG:f}=e,d=(i-a*l)/2,{dropdownArrowOffset:m}=Aa({contentRadius:f}),g=Ot(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:c});return[Tb(g),Rb(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Vo=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:d,open:m,onOpenChange:g,visible:h,onVisibleChange:p,mouseEnterDelay:v=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:S=!0,placement:y="",overlay:C,transitionName:$}=e,{getPopupContainer:I,getPrefixCls:x,direction:R,dropdown:_}=s.useContext(Je),P=Pn("Dropdown");process.env.NODE_ENV!=="production"&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach(Y=>{let[ie,fe]=Y;P.deprecated(!(ie in e),ie,fe)}),P.deprecated(!("overlay"in e),"overlay","menu"));const k=s.useMemo(()=>{const Y=x();return $!==void 0?$:y.includes("top")?`${Y}-slide-down`:`${Y}-slide-up`},[x,y,$]),j=s.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:R==="rtl"?"bottomRight":"bottomLeft",[y,R]);if(process.env.NODE_ENV!=="production"){if(y.includes("Center")){const Y=y.slice(0,y.indexOf("Center"));process.env.NODE_ENV!=="production"&&P(!y.includes("Center"),"deprecated",`You are using '${y}' placement in Dropdown, which is deprecated. Try to use '${Y}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(Y=>{let[ie,fe]=Y;P.deprecated(!(ie in e),ie,fe)})}const T=x("dropdown",r),[L,A]=Ku(T),[,E]=dn(),b=s.Children.only(o),O=Mn(b,{className:oe(`${T}-trigger`,{[`${T}-rtl`]:R==="rtl"},b.props.className),disabled:a}),M=a?[]:i;let D;M&&M.includes("contextMenu")&&(D=!0);const[z,B]=xn(!1,{value:m??h}),K=St(Y=>{g==null||g(Y,{source:"trigger"}),p==null||p(Y),B(Y)}),W=oe(u,f,A,_==null?void 0:_.className,{[`${T}-rtl`]:R==="rtl"}),te=Eu({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:S,offset:E.marginXXS,arrowWidth:n?E.sizePopupArrow:0,borderRadius:E.borderRadius}),Q=s.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),B(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),X=()=>{let Y;return t!=null&&t.items?Y=s.createElement(Ib,Object.assign({},t)):typeof C=="function"?Y=C():Y=C,l&&(Y=l(Y)),Y=s.Children.only(typeof Y=="string"?s.createElement("span",null,Y):Y),s.createElement(mb,{prefixCls:`${T}-menu`,expandIcon:s.createElement("span",{className:`${T}-menu-submenu-arrow`},s.createElement(ea,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:ie=>{let{mode:fe}=ie;process.env.NODE_ENV!=="production"&&P(!fe||fe==="vertical","usage",`mode="${fe}" is not supported for Dropdown's Menu.`)}},Y)},[J,ue]=Na("Dropdown",d==null?void 0:d.zIndex);return L(s.createElement(Ra.Provider,{value:ue},s.createElement(c0,Object.assign({alignPoint:D},un(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:w,visible:z,builtinPlacements:te,arrow:!!n,overlayClassName:W,prefixCls:T,getPopupContainer:c||I,transitionName:k,trigger:M,overlay:X,placement:j,onVisibleChange:K,overlayStyle:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),d),{zIndex:J})}),O)))};function Mb(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Nb=gh(Vo,"dropdown",e=>e,Mb),_b=e=>s.createElement(Nb,Object.assign({},e),s.createElement("span",null));Vo._InternalPanelDoNotUseOrYouWillBeFired=_b;process.env.NODE_ENV!=="production"&&(Vo.displayName="Dropdown");const Uu=Vo;function hl(e){return["small","middle","large"].includes(e)}function bl(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Gu=N.createContext({latestIndex:0}),Ab=Gu.Provider,Db=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=s.useContext(Gu);return r==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:i},r),n<a&&o&&s.createElement("span",{className:`${t}-split`},o))},Lb=Db;var jb=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 Xu=s.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=s.useContext(Je),{size:l=(i==null?void 0:i.size)||"small",align:c,className:u,rootClassName:f,children:d,direction:m="horizontal",prefixCls:g,split:h,style:p,wrap:v=!1,classNames:w,styles:S}=e,y=jb(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,$]=Array.isArray(l)?l:[l,l],I=hl($),x=hl(C),R=bl($),_=bl(C),P=$n(d,{keepEmpty:!0}),k=c===void 0&&m==="horizontal"?"center":c,j=o("space",g),[T,L]=Qc(j),A=oe(j,i==null?void 0:i.className,L,`${j}-${m}`,{[`${j}-rtl`]:a==="rtl",[`${j}-align-${k}`]:k,[`${j}-gap-row-${$}`]:I,[`${j}-gap-col-${C}`]:x},u,f),E=oe(`${j}-item`,(n=w==null?void 0:w.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item);let b=0;const O=P.map((z,B)=>{var K,W;z!=null&&(b=B);const te=z&&z.key||`${E}-${B}`;return s.createElement(Lb,{className:E,key:te,index:B,split:h,style:(K=S==null?void 0:S.item)!==null&&K!==void 0?K:(W=i==null?void 0:i.styles)===null||W===void 0?void 0:W.item},z)}),M=s.useMemo(()=>({latestIndex:b}),[b]);if(P.length===0)return null;const D={};return v&&(D.flexWrap="wrap"),!x&&_&&(D.columnGap=C),!I&&R&&(D.rowGap=$),T(s.createElement("div",Object.assign({ref:t,className:A,style:Object.assign(Object.assign(Object.assign({},D),i==null?void 0:i.style),p)},y),s.createElement(Ab,{value:M},O)))});process.env.NODE_ENV!=="production"&&(Xu.displayName="Space");const Yu=Xu;Yu.Compact=Gp;const zb=Yu;var kb=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 qu=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(Je),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:c,onClick:u,htmlType:f,children:d,className:m,menu:g,arrow:h,autoFocus:p,overlay:v,trigger:w,align:S,open:y,onOpenChange:C,placement:$,getPopupContainer:I,href:x,icon:R=s.createElement(Vu,null),title:_,buttonsRender:P=Y=>Y,mouseEnterDelay:k,mouseLeaveDelay:j,overlayClassName:T,overlayStyle:L,destroyPopupOnHide:A,dropdownRender:E}=e,b=kb(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),O=n("dropdown",o),M=`${O}-button`,[D,z]=Ku(O),B={menu:g,arrow:h,autoFocus:p,align:S,disabled:l,trigger:l?[]:w,onOpenChange:C,getPopupContainer:I||t,mouseEnterDelay:k,mouseLeaveDelay:j,overlayClassName:T,overlayStyle:L,destroyPopupOnHide:A,dropdownRender:E},{compactSize:K,compactItemClassnames:W}=Jc(O,r),te=oe(M,W,m,z);"overlay"in e&&(B.overlay=v),"open"in e&&(B.open=y),"placement"in e?B.placement=$:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const Q=s.createElement(Bs,{type:i,danger:a,disabled:l,loading:c,onClick:u,htmlType:f,href:x,title:_},d),X=s.createElement(Bs,{type:i,danger:a,icon:R}),[J,ue]=P([Q,X]);return D(s.createElement(zb.Compact,Object.assign({className:te,size:K,block:!0},b),J,s.createElement(Uu,Object.assign({},B),ue)))};qu.__ANT_BUTTON=!0;const Bb=qu,Qu=Uu;Qu.Button=Bb;const Hb=Qu,Wb=({children:e,...t})=>Ju.jsx(Hb,{...t,children:e});exports.Dropdown=Wb;
|