@famgia/omnify-gui 1.0.26 → 1.0.28

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.
@@ -0,0 +1,395 @@
1
+ import{g as ap,R as U,a as el,r as a,b as $l,c as uo,d as bC}from"./vendor-react-GrtO722N.js";var bs={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */var mf;function yC(){return mf||(mf=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)t.call(i,s)&&i[s]&&(l=o(l,s));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(bs)),bs.exports}var CC=yC();const F=ap(CC);function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}function Ke(e){"@babel/helpers - typeof";return Ke=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},Ke(e)}var SC=Symbol.for("react.element"),xC=Symbol.for("react.transitional.element"),$C=Symbol.for("react.fragment");function ip(e){return e&&Ke(e)==="object"&&(e.$$typeof===SC||e.$$typeof===xC)&&e.type===$C}function cn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return U.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(cn(r)):ip(r)&&r.props?n=n.concat(cn(r.props.children,t)):n.push(r))}),n}var Cc={},wC=function(t){};function EC(e,t){}function OC(e,t){}function IC(){Cc={}}function lp(e,t,n){!t&&!Cc[n]&&(e(!1,n),Cc[n]=!0)}function Gt(e,t){lp(EC,e,t)}function RC(e,t){lp(OC,e,t)}Gt.preMessage=wC;Gt.resetWarned=IC;Gt.noteOnce=RC;function PC(e,t){if(Ke(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sp(e){var t=PC(e,"string");return Ke(t)=="symbol"?t:t+""}function B(e,t,n){return(t=sp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vf(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 H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(n),!0).forEach(function(r){B(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ja(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ya(e){return e&&Ke(e)==="object"&&ja(e.nativeElement)?e.nativeElement:ja(e)?e:null}function Ai(e){var t=Ya(e);if(t)return t;if(e instanceof U.Component){var n;return(n=el.findDOMNode)===null||n===void 0?void 0:n.call(el,e)}return null}var ys={exports:{}},kt={};/**
6
+ * @license React
7
+ * react-is.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */var gf;function NC(){if(gf)return kt;gf=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"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function h(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case o:case r:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case l:case c:case m:case f:case i:return g;default:return b}}case t:return b}}}return kt.ContextConsumer=l,kt.ContextProvider=i,kt.Element=e,kt.ForwardRef=c,kt.Fragment=n,kt.Lazy=m,kt.Memo=f,kt.Portal=t,kt.Profiler=o,kt.StrictMode=r,kt.Suspense=u,kt.SuspenseList=d,kt.isAsyncMode=function(){return!1},kt.isConcurrentMode=function(){return!1},kt.isContextConsumer=function(g){return h(g)===l},kt.isContextProvider=function(g){return h(g)===i},kt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},kt.isForwardRef=function(g){return h(g)===c},kt.isFragment=function(g){return h(g)===n},kt.isLazy=function(g){return h(g)===m},kt.isMemo=function(g){return h(g)===f},kt.isPortal=function(g){return h(g)===t},kt.isProfiler=function(g){return h(g)===o},kt.isStrictMode=function(g){return h(g)===r},kt.isSuspense=function(g){return h(g)===u},kt.isSuspenseList=function(g){return h(g)===d},kt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===u||g===d||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===f||g.$$typeof===i||g.$$typeof===l||g.$$typeof===c||g.$$typeof===p||g.getModuleId!==void 0)},kt.typeOf=h,kt}var pf;function MC(){return pf||(pf=1,ys.exports=NC()),ys.exports}var Cs=MC();function bo(e,t,n){var r=a.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var TC=Number(a.version.split(".")[0]),za=function(t,n){typeof t=="function"?t(n):Ke(t)==="object"&&t&&"current"in t&&(t.current=n)},dn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(l){za(l,i)})}},Tr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bo(function(){return dn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(l,s){return l!==i[s]})})},sr=function(t){var n,r;if(!t)return!1;if(Lu(t)&&TC>=19)return!0;var o=Cs.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Cs.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Cs.ForwardRef)};function Lu(e){return a.isValidElement(e)&&!ip(e)}var jC=function(t){return Lu(t)&&sr(t)},Ur=function(t){if(t&&Lu(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Sc=a.createContext(null);function zC(e){var t=e.children,n=e.onBatchResize,r=a.useRef(0),o=a.useRef([]),i=a.useContext(Sc),l=a.useCallback(function(s,c,u){r.current+=1;var d=r.current;o.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,c,u)},[n,i]);return a.createElement(Sc.Provider,{value:l},t)}var cp=(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 l=i[o];n.call(r,l[1],l[0])}},t})()})(),xc=typeof window<"u"&&typeof document<"u"&&window.document===document,tl=(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")()})(),_C=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(tl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),BC=2;function DC(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function l(){_C(i)}function s(){var c=Date.now();if(n){if(c-o<BC)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=c}return s}var LC=20,AC=["top","right","bottom","left","width","height","size","weight"],HC=typeof MutationObserver<"u",FC=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=DC(this.refresh.bind(this),LC)}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(){!xc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),HC?(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(){!xc||!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=AC.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})(),up=(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}),Go=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||tl}),dp=wl(0,0,0,0);function nl(e){return parseFloat(e)||0}function hf(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+nl(i)},0)}function kC(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],l=e["padding-"+i];n[i]=nl(l)}return n}function VC(e){var t=e.getBBox();return wl(0,0,t.width,t.height)}function WC(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return dp;var r=Go(e).getComputedStyle(e),o=kC(r),i=o.left+o.right,l=o.top+o.bottom,s=nl(r.width),c=nl(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=hf(r,"left","right")+i),Math.round(c+l)!==n&&(c-=hf(r,"top","bottom")+l)),!GC(e)){var u=Math.round(s+i)-t,d=Math.round(c+l)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(c-=d)}return wl(o.left,o.top,s,c)}var KC=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Go(e).SVGGraphicsElement}:function(e){return e instanceof Go(e).SVGElement&&typeof e.getBBox=="function"}})();function GC(e){return e===Go(e).document.documentElement}function qC(e){return xc?KC(e)?VC(e):WC(e):dp}function UC(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(i.prototype);return up(l,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),l}function wl(e,t,n,r){return{x:e,y:t,width:n,height:r}}var XC=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=wl(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=qC(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})(),YC=(function(){function e(t,n){var r=UC(n);up(this,{target:t,contentRect:r})}return e})(),QC=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new cp,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 Go(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new XC(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 Go(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 YC(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})(),fp=typeof WeakMap<"u"?new WeakMap:new cp,mp=(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=FC.getInstance(),r=new QC(t,n,this);fp.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){mp.prototype[e]=function(){var t;return(t=fp.get(this))[e].apply(t,arguments)}});var ZC=(function(){return typeof tl.ResizeObserver<"u"?tl.ResizeObserver:mp})(),Ar=new Map;function JC(e){e.forEach(function(t){var n,r=t.target;(n=Ar.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var vp=new ZC(JC);function eS(e,t){Ar.has(e)||(Ar.set(e,new Set),vp.observe(e)),Ar.get(e).add(t)}function tS(e,t){Ar.has(e)&&(Ar.get(e).delete(t),Ar.get(e).size||(vp.unobserve(e),Ar.delete(e)))}function Qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bf(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,sp(r.key),r)}}function Zt(e,t,n){return t&&bf(e.prototype,t),n&&bf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},_a(e,t)}function mr(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&&_a(e,t)}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fo(e)}function El(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(El=function(){return!!e})()}function qe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gp(e,t){if(t&&(Ke(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qe(e)}function wr(e){var t=El();return function(){var n,r=fo(e);if(t){var o=fo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gp(this,n)}}var nS=(function(e){mr(n,e);var t=wr(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"render",value:function(){return this.props.children}}]),n})(a.Component);function rS(e,t){var n=e.children,r=e.disabled,o=a.useRef(null),i=a.useRef(null),l=a.useContext(Sc),s=typeof n=="function",c=s?n(o):n,u=a.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&a.isValidElement(c)&&sr(c),f=d?Ur(c):null,m=Tr(f,o),v=function(){var b;return Ai(o.current)||(o.current&&Ke(o.current)==="object"?Ai((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Ai(i.current)};a.useImperativeHandle(t,function(){return v()});var p=a.useRef(e);p.current=e;var h=a.useCallback(function(g){var b=p.current,y=b.onResize,C=b.data,S=g.getBoundingClientRect(),x=S.width,E=S.height,w=g.offsetWidth,O=g.offsetHeight,$=Math.floor(x),I=Math.floor(E);if(u.current.width!==$||u.current.height!==I||u.current.offsetWidth!==w||u.current.offsetHeight!==O){var P={width:$,height:I,offsetWidth:w,offsetHeight:O};u.current=P;var N=w===Math.round(x)?x:w,M=O===Math.round(E)?E:O,R=H(H({},P),{},{offsetWidth:N,offsetHeight:M});l==null||l(R,g,C),y&&Promise.resolve().then(function(){y(R,g)})}},[]);return a.useEffect(function(){var g=v();return g&&!r&&eS(g,h),function(){return tS(g,h)}},[o.current,r]),a.createElement(nS,{ref:i},d?a.cloneElement(c,{ref:m}):c)}var oS=a.forwardRef(rS),aS="rc-observer-key";function iS(e,t){var n=e.children,r=typeof n=="function"?[n]:cn(n);return r.map(function(o,i){var l=(o==null?void 0:o.key)||"".concat(aS,"-").concat(i);return a.createElement(oS,ce({},e,{key:l,ref:i===0?t:void 0}),o)})}var An=a.forwardRef(iS);An.Collection=zC;function $c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lS(e){if(Array.isArray(e))return $c(e)}function pp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Au(e,t){if(e){if(typeof e=="string")return $c(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$c(e,t):void 0}}function sS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pe(e){return lS(e)||pp(e)||Au(e)||sS()}var hp=function(t){return+setTimeout(t,16)},bp=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(hp=function(t){return window.requestAnimationFrame(t)},bp=function(t){return window.cancelAnimationFrame(t)});var yf=0,Hu=new Map;function yp(e){Hu.delete(e)}var Ot=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;yf+=1;var r=yf;function o(i){if(i===0)yp(r),t();else{var l=hp(function(){o(i-1)});Hu.set(r,l)}}return o(n),r};Ot.cancel=function(e){var t=Hu.get(e);return yp(e),bp(t)};function Cp(e){if(Array.isArray(e))return e}function cS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,l,s=[],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)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return s}}function Sp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){return Cp(e)||cS(e,t)||Au(e,t)||Sp()}function Ba(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 In(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function wc(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 Cf="data-rc-order",Sf="data-rc-priority",uS="rc-util-key",Ec=new Map;function xp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uS}function Ol(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dS(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Fu(e){return Array.from((Ec.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function $p(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!In())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,l=dS(r),s=l==="prependQueue",c=document.createElement("style");c.setAttribute(Cf,l),s&&i&&c.setAttribute(Sf,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Ol(t),d=u.firstChild;if(r){if(s){var f=(t.styles||Fu(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Cf)))return!1;var v=Number(m.getAttribute(Sf)||0);return i>=v});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function wp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ol(t);return(t.styles||Fu(n)).find(function(r){return r.getAttribute(xp(t))===e})}function Da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wp(e,t);if(n){var r=Ol(t);r.removeChild(n)}}function fS(e,t){var n=Ec.get(e);if(!n||!wc(document,n)){var r=$p("",t),o=r.parentNode;Ec.set(e,o),e.removeChild(r)}}function Pr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ol(n),o=Fu(r),i=H(H({},n),{},{styles:o});fS(r,i);var l=wp(t,i);if(l){var s,c;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&l.nonce!==((c=i.csp)===null||c===void 0?void 0:c.nonce)){var u;l.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var d=$p(e,i);return d.setAttribute(xp(i),t),d}function mS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function it(e,t){if(e==null)return{};var n,r,o=mS(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,l){var s=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===l)return!0;if(n&&s>1)return!1;r.add(i);var u=s+1;if(Array.isArray(i)){if(!Array.isArray(l)||i.length!==l.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],l[d],u))return!1;return!0}if(i&&l&&Ke(i)==="object"&&Ke(l)==="object"){var f=Object.keys(i);return f.length!==Object.keys(l).length?!1:f.every(function(m){return o(i[m],l[m],u)})}return!1}return o(e,t)}var vS="%";function Oc(e){return e.join(vS)}var gS=(function(){function e(t){Qt(this,e),B(this,"instanceId",void 0),B(this,"cache",new Map),B(this,"extracted",new Set),this.instanceId=t}return Zt(e,[{key:"get",value:function(n){return this.opGet(Oc(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Oc(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e})(),qo="data-token-hash",ir="data-css-hash",Hr="__cssinjs_instance__";function pS(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ir,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Hr]=o[Hr]||e,o[Hr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ir,"]"))).forEach(function(o){var i=o.getAttribute(ir);if(r[i]){if(o[Hr]===e){var l;(l=o.parentNode)===null||l===void 0||l.removeChild(o)}}else r[i]=!0})}return new gS(e)}var Qa=a.createContext({hashPriority:"low",cache:pS(),defaultCache:!0});function hS(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 ku=(function(){function e(){Qt(this,e),B(this,"cache",void 0),B(this,"keys",void 0),B(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Zt(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,l={map:this.cache};return n.forEach(function(s){if(!l)l=void 0;else{var c;l=(c=l)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=l)!==null&&r!==void 0&&r.value&&i&&(l.value[1]=this.cacheCallTimes++),(o=l)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,d){var f=te(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),l=te(i,1),s=l[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var l=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!hS(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();B(ku,"MAX_CACHE_SIZE",20);B(ku,"MAX_CACHE_OFFSET",5);var xf=0,Ep=(function(){function e(t){Qt(this,e),B(this,"derivatives",void 0),B(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=xf,t.length===0&&(t.length>0,void 0),xf+=1}return Zt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Ss=new ku;function rl(e){var t=Array.isArray(e)?e:[e];return Ss.has(t)||Ss.set(t,new Ep(t)),Ss.get(t)}var bS=new WeakMap,xs={};function yS(e,t){for(var n=bS,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(xs)||n.set(xs,e()),n.get(xs)}var $f=new WeakMap;function Ia(e){var t=$f.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Ep?t+=r.id:r&&Ke(r)==="object"?t+=Ia(r):t+=r}),t=Ba(t),$f.set(e,t)),t}function wf(e,t){return Ba("".concat(t,"_").concat(Ia(e)))}var Ic=In();function L(e){return typeof e=="number"?"".concat(e,"px"):e}function ol(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=H(H({},r),{},B(B({},qo,t),ir,n)),l=Object.keys(i).map(function(s){var c=i[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var Hi=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},CS=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=te(o,2),l=i[0],s=i[1];return"".concat(l,":").concat(s,";")}).join(""),"}"):""},Op=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(l){var s,c,u=te(l,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,v=Hi(d,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(v,")")}}),[i,CS(o,n,{scope:r==null?void 0:r.scope})]},Ef=In()?a.useLayoutEffect:a.useEffect,wt=function(t,n){var r=a.useRef(!0);Ef(function(){return t(r.current)},n),Ef(function(){return r.current=!1,function(){r.current=!0}},[])},Ho=function(t,n){wt(function(r){if(!r)return t()},n)},SS=H({},$l),Of=SS.useInsertionEffect,xS=function(t,n,r){a.useMemo(t,r),wt(function(){return n(!0)},r)},$S=Of?function(e,t,n){return Of(function(){return e(),t()},n)}:xS,wS=H({},$l),ES=wS.useInsertionEffect,OS=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return a.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},IS=function(){return function(t){t()}},RS=typeof ES<"u"?OS:IS;function Vu(e,t,n,r,o){var i=a.useContext(Qa),l=i.cache,s=[e].concat(pe(t)),c=Oc(s),u=RS([c]),d=function(p){l.opUpdate(c,function(h){var g=h||[void 0,void 0],b=te(g,2),y=b[0],C=y===void 0?0:y,S=b[1],x=S,E=x||n(),w=[C,E];return p?p(w):w})};a.useMemo(function(){d()},[c]);var f=l.opGet(c),m=f[1];return $S(function(){o==null||o(m)},function(v){return d(function(p){var h=te(p,2),g=h[0],b=h[1];return v&&g===0&&(o==null||o(m)),[g+1,b]}),function(){l.opUpdate(c,function(p){var h=p||[],g=te(h,2),b=g[0],y=b===void 0?0:b,C=g[1],S=y-1;return S===0?(u(function(){(v||!l.opGet(c))&&(r==null||r(C,!1))}),null):[y-1,C]})}},[c]),m}var PS={},NS="css",no=new Map;function MS(e){no.set(e,(no.get(e)||0)+1)}function TS(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(qo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Hr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var jS=0;function zS(e,t){no.set(e,(no.get(e)||0)-1);var n=new Set;no.forEach(function(r,o){r<=0&&n.add(o)}),no.size-n.size>jS&&n.forEach(function(r){TS(r,t),no.delete(r)})}var Ip=function(t,n,r,o){var i=r.getDerivativeToken(t),l=H(H({},i),n);return o&&(l=o(l)),l},Rp="token";function _S(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=a.useContext(Qa),o=r.cache.instanceId,i=r.container,l=n.salt,s=l===void 0?"":l,c=n.override,u=c===void 0?PS:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,v=yS(function(){return Object.assign.apply(Object,[{}].concat(pe(t)))},t),p=Ia(v),h=Ia(u),g=m?Ia(m):"",b=Vu(Rp,[s,e.id,p,h,g],function(){var y,C=f?f(v,u,e):Ip(v,u,e,d),S=H({},C),x="";if(m){var E=Op(C,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),w=te(E,2);C=w[0],x=w[1]}var O=wf(C,s);C._tokenKey=O,S._tokenKey=wf(S,s);var $=(y=m==null?void 0:m.key)!==null&&y!==void 0?y:O;C._themeKey=$,MS($);var I="".concat(NS,"-").concat(Ba(O));return C._hashId=I,[C,I,S,x,(m==null?void 0:m.key)||""]},function(y){zS(y[0]._themeKey,o)},function(y){var C=te(y,4),S=C[0],x=C[3];if(m&&x){var E=Pr(x,Ba("css-variables-".concat(S._themeKey)),{mark:ir,prepend:"queue",attachTo:i,priority:-999});E[Hr]=o,E.setAttribute(qo,S._themeKey)}});return b}var BS=function(t,n,r){var o=te(t,5),i=o[2],l=o[3],s=o[4],c=r||{},u=c.plain;if(!l)return null;var d=i._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=ol(l,s,d,m,u);return[f,d,v]},DS={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},Pp="comm",Np="rule",Mp="decl",LS="@import",AS="@namespace",HS="@keyframes",FS="@layer",Tp=Math.abs,Wu=String.fromCharCode;function jp(e){return e.trim()}function Fi(e,t,n){return e.replace(t,n)}function kS(e,t,n){return e.indexOf(t,n)}function Fo(e,t){return e.charCodeAt(t)|0}function Uo(e,t,n){return e.slice(t,n)}function br(e){return e.length}function VS(e){return e.length}function Si(e,t){return t.push(e),e}var Il=1,Xo=1,zp=0,nr=0,sn=0,ra="";function Ku(e,t,n,r,o,i,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Il,column:Xo,length:l,return:"",siblings:s}}function WS(){return sn}function KS(){return sn=nr>0?Fo(ra,--nr):0,Xo--,sn===10&&(Xo=1,Il--),sn}function lr(){return sn=nr<zp?Fo(ra,nr++):0,Xo++,sn===10&&(Xo=1,Il++),sn}function Fr(){return Fo(ra,nr)}function ki(){return nr}function Rl(e,t){return Uo(ra,e,t)}function La(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 GS(e){return Il=Xo=1,zp=br(ra=e),nr=0,[]}function qS(e){return ra="",e}function $s(e){return jp(Rl(nr-1,Rc(e===91?e+2:e===40?e+1:e)))}function US(e){for(;(sn=Fr())&&sn<33;)lr();return La(e)>2||La(sn)>3?"":" "}function XS(e,t){for(;--t&&lr()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return Rl(e,ki()+(t<6&&Fr()==32&&lr()==32))}function Rc(e){for(;lr();)switch(sn){case e:return nr;case 34:case 39:e!==34&&e!==39&&Rc(sn);break;case 40:e===41&&Rc(e);break;case 92:lr();break}return nr}function YS(e,t){for(;lr()&&e+sn!==57;)if(e+sn===84&&Fr()===47)break;return"/*"+Rl(t,nr-1)+"*"+Wu(e===47?e:lr())}function QS(e){for(;!La(Fr());)lr();return Rl(e,nr)}function ZS(e){return qS(Vi("",null,null,null,[""],e=GS(e),0,[0],e))}function Vi(e,t,n,r,o,i,l,s,c){for(var u=0,d=0,f=l,m=0,v=0,p=0,h=1,g=1,b=1,y=0,C="",S=o,x=i,E=r,w=C;g;)switch(p=y,y=lr()){case 40:if(p!=108&&Fo(w,f-1)==58){kS(w+=Fi($s(y),"&","&\f"),"&\f",Tp(u?s[u-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:w+=$s(y);break;case 9:case 10:case 13:case 32:w+=US(p);break;case 92:w+=XS(ki()-1,7);continue;case 47:switch(Fr()){case 42:case 47:Si(JS(YS(lr(),ki()),t,n,c),c),(La(p||1)==5||La(Fr()||1)==5)&&br(w)&&Uo(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*h:s[u++]=br(w)*b;case 125*h:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:b==-1&&(w=Fi(w,/\f/g,"")),v>0&&(br(w)-f||h===0&&p===47)&&Si(v>32?Rf(w+";",r,n,f-1,c):Rf(Fi(w," ","")+";",r,n,f-2,c),c);break;case 59:w+=";";default:if(Si(E=If(w,t,n,u,d,o,s,C,S=[],x=[],f,i),i),y===123)if(d===0)Vi(w,t,E,E,S,i,f,s,x);else{switch(m){case 99:if(Fo(w,3)===110)break;case 108:if(Fo(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Vi(e,E,E,r&&Si(If(e,E,E,0,0,o,s,C,o,S=[],f,x),x),o,x,f,s,r?S:x):Vi(w,E,E,E,[""],x,0,s,x)}}u=d=v=0,h=b=1,C=w="",f=l;break;case 58:f=1+br(w),v=p;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&KS()==125)continue}switch(w+=Wu(y),y*h){case 38:b=d>0?1:(w+="\f",-1);break;case 44:s[u++]=(br(w)-1)*b,b=1;break;case 64:Fr()===45&&(w+=$s(lr())),m=Fr(),d=f=br(C=w+=QS(ki())),y++;break;case 45:p===45&&br(w)==2&&(h=0)}}return i}function If(e,t,n,r,o,i,l,s,c,u,d,f){for(var m=o-1,v=o===0?i:[""],p=VS(v),h=0,g=0,b=0;h<r;++h)for(var y=0,C=Uo(e,m+1,m=Tp(g=l[h])),S=e;y<p;++y)(S=jp(g>0?v[y]+" "+C:Fi(C,/&\f/g,v[y])))&&(c[b++]=S);return Ku(e,t,n,o===0?Np:s,c,u,d,f)}function JS(e,t,n,r){return Ku(e,t,n,Pp,Wu(WS()),Uo(e,2,-2),0,r)}function Rf(e,t,n,r,o){return Ku(e,t,n,Mp,Uo(e,0,r),Uo(e,r+1,-1),r,o)}function Pc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ex(e,t,n,r){switch(e.type){case FS:if(e.children.length)break;case LS:case AS:case Mp:return e.return=e.return||e.value;case Pp:return"";case HS:return e.return=e.value+"{"+Pc(e.children,r)+"}";case Np:if(!br(e.value=e.props.join(",")))return""}return br(n=Pc(e.children,r))?e.return=e.value+"{"+n+"}":""}var Pf="data-ant-cssinjs-cache-path",_p="_FILE_STYLE__",so,Bp=!0;function tx(){if(!so&&(so={},In())){var e=document.createElement("div");e.className=Pf,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(":"),l=te(i,2),s=l[0],c=l[1];so[s]=c});var n=document.querySelector("style[".concat(Pf,"]"));if(n){var r;Bp=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function nx(e){return tx(),!!so[e]}function rx(e){var t=so[e],n=null;if(t&&In())if(Bp)n=_p;else{var r=document.querySelector("style[".concat(ir,'="').concat(so[e],'"]'));r?n=r.innerHTML:delete so[e]}return[n,t]}var ox="_skip_check_",Dp="_multi_value_";function Wi(e){var t=Pc(ZS(e),ex);return t.replace(/\{%%%\:[^;];}/g,";")}function ax(e){return Ke(e)==="object"&&e&&(ox in e||Dp in e)}function Nf(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(l){var s,c=l.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(pe(c.slice(1))).join(" ")});return i.join(",")}var ix=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,l=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",v={};function p(b){var y=b.getName(s);if(!v[y]){var C=e(b.style,n,{root:!1,parentSelectors:l}),S=te(C,1),x=S[0];v[y]="@keyframes ".concat(b.getName(s)).concat(x)}}function h(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(C){Array.isArray(C)?h(C,y):C&&y.push(C)}),y}var g=h(Array.isArray(t)?t:[t]);return g.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")m+="".concat(y,`
16
+ `);else if(y._keyframe)p(y);else{var C=f.reduce(function(S,x){var E;return(x==null||(E=x.visit)===null||E===void 0?void 0:E.call(x,S))||S},y);Object.keys(C).forEach(function(S){var x=C[S];if(Ke(x)==="object"&&x&&(S!=="animationName"||!x._keyframe)&&!ax(x)){var E=!1,w=S.trim(),O=!1;(o||i)&&s?w.startsWith("@")?E=!0:w==="&"?w=Nf("",s,u):w=Nf(S,s,u):o&&!s&&(w==="&"||w==="")&&(w="",O=!0);var $=e(x,n,{root:O,injectHash:E,parentSelectors:[].concat(pe(l),[w])}),I=te($,2),P=I[0],N=I[1];v=H(H({},v),N),m+="".concat(w).concat(P)}else{let z=function(T,j){var _=T.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),D=j;!DS[T]&&typeof D=="number"&&D!==0&&(D="".concat(D,"px")),T==="animationName"&&j!==null&&j!==void 0&&j._keyframe&&(p(j),D=j.getName(s)),m+="".concat(_,":").concat(D,";")};var M,R=(M=x==null?void 0:x.value)!==null&&M!==void 0?M:x;Ke(x)==="object"&&x!==null&&x!==void 0&&x[Dp]&&Array.isArray(R)?R.forEach(function(T){z(S,T)}):z(S,R)}})}}),o?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(c.name,";")}).join(`
17
+ `))):m="{".concat(m,"}"),[m,v]};function Lp(e,t){return Ba("".concat(e.join("%")).concat(t))}function lx(){return null}var Ap="style";function Nc(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,l=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=a.useContext(Qa),f=d.autoClear;d.mock;var m=d.defaultCache,v=d.hashPriority,p=d.container,h=d.ssrInline,g=d.transformers,b=d.linters,y=d.cache,C=d.layer,S=n._tokenKey,x=[S];C&&x.push("layer"),x.push.apply(x,pe(r));var E=Ic,w=Vu(Ap,x,function(){var N=x.join("|");if(nx(N)){var M=rx(N),R=te(M,2),z=R[0],T=R[1];if(z)return[z,S,T,{},s,u]}var j=t(),_=ix(j,{hashId:o,hashPriority:v,layer:C?i:void 0,path:r.join("-"),transformers:g,linters:b}),D=te(_,2),k=D[0],V=D[1],K=Wi(k),A=Lp(x,K);return[K,S,A,V,s,u]},function(N,M){var R=te(N,3),z=R[2];(M||f)&&Ic&&Da(z,{mark:ir,attachTo:p})},function(N){var M=te(N,4),R=M[0];M[1];var z=M[2],T=M[3];if(E&&R!==_p){var j={mark:ir,prepend:C?!1:"queue",attachTo:p,priority:u},_=typeof l=="function"?l():l;_&&(j.csp={nonce:_});var D=[],k=[];Object.keys(T).forEach(function(K){K.startsWith("@layer")?D.push(K):k.push(K)}),D.forEach(function(K){Pr(Wi(T[K]),"_layer-".concat(K),H(H({},j),{},{prepend:!0}))});var V=Pr(R,z,j);V[Hr]=y.instanceId,V.setAttribute(qo,S),k.forEach(function(K){Pr(Wi(T[K]),"_effect-".concat(K),j)})}}),O=te(w,3),$=O[0],I=O[1],P=O[2];return function(N){var M;return!h||E||!m?M=a.createElement(lx,null):M=a.createElement("style",ce({},B(B({},qo,I),ir,P),{dangerouslySetInnerHTML:{__html:$}})),a.createElement(a.Fragment,null,M,N)}}var sx=function(t,n,r){var o=te(t,6),i=o[0],l=o[1],s=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var v=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return v=ol(i,l,s,p,m),c&&Object.keys(c).forEach(function(h){if(!n[h]){n[h]=!0;var g=Wi(c[h]),b=ol(g,l,"_effect-".concat(h),p,m);h.startsWith("@layer")?v=b+v:v+=b}}),[d,s,v]},Hp="cssVar",cx=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,l=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=a.useContext(Qa),f=d.cache.instanceId,m=d.container,v=s._tokenKey,p=[].concat(pe(t.path),[r,u,v]),h=Vu(Hp,p,function(){var g=n(),b=Op(g,r,{prefix:o,unitless:i,ignore:l,scope:u}),y=te(b,2),C=y[0],S=y[1],x=Lp(p,S);return[C,S,x,r]},function(g){var b=te(g,3),y=b[2];Ic&&Da(y,{mark:ir,attachTo:m})},function(g){var b=te(g,3),y=b[1],C=b[2];if(y){var S=Pr(y,C,{mark:ir,prepend:"queue",attachTo:m,priority:-999});S[Hr]=f,S.setAttribute(qo,r)}});return h},ux=function(t,n,r){var o=te(t,4),i=o[1],l=o[2],s=o[3],c=r||{},u=c.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=ol(i,s,l,f,u);return[d,l,m]};B(B(B({},Ap,sx),Rp,BS),Hp,ux);var xt=(function(){function e(t,n){Qt(this,e),B(this,"name",void 0),B(this,"style",void 0),B(this,"_keyframe",!0),this.name=t,this.style=n}return Zt(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 wo(e){return e.notSplit=!0,e}wo(["borderTop","borderBottom"]),wo(["borderTop"]),wo(["borderBottom"]),wo(["borderLeft","borderRight"]),wo(["borderLeft"]),wo(["borderRight"]);var Gu=a.createContext({});function Fp(e){return Cp(e)||pp(e)||Au(e)||Sp()}function Ln(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function kp(e,t,n,r){if(!t.length)return n;var o=Fp(t),i=o[0],l=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=pe(e):s=H({},e),r&&n===void 0&&l.length===1?delete s[i][l[0]]:s[i]=kp(s[i],l,n,r),s}function tr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ln(e,t.slice(0,-1))?e:kp(e,t,n,r)}function dx(e){return Ke(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Mf(e){return Array.isArray(e)?[]:{}}var fx=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Mf(t[0]);return t.forEach(function(o){function i(l,s){var c=new Set(s),u=Ln(o,l),d=Array.isArray(u);if(d||dx(u)){if(!c.has(u)){c.add(u);var f=Ln(r,l);d?r=tr(r,l,[]):(!f||Ke(f)!=="object")&&(r=tr(r,l,Mf(u))),fx(u).forEach(function(m){i([].concat(pe(l),[m]),c)})}}else r=tr(r,l,u)}i([])}),r}function mx(){}const vx=a.createContext({}),Er=()=>{const e=()=>{};return e.deprecated=mx,e},Vp=a.createContext(void 0);var Wp={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"},gx={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},px=H(H({},gx),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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 Kp={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Tf={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"]},px),timePickerLocale:Object.assign({},Kp)},Vn="${label} is not a valid ${type}",cr={locale:"en",Pagination:Wp,DatePicker:Tf,TimePicker:Kp,Calendar:Tf,global:{placeholder:"Please select",close:"Close"},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",deselectAll:"Deselect 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",collapse:"Collapse"},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:Vn,method:Vn,array:Vn,object:Vn,number:Vn,date:Vn,boolean:Vn,integer:Vn,float:Vn,regexp:Vn,email:Vn,url:Vn,hex:Vn},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Ki=Object.assign({},cr.Modal),Gi=[];const jf=()=>Gi.reduce((e,t)=>Object.assign(Object.assign({},e),t),cr.Modal);function hx(e){if(e){const t=Object.assign({},e);return Gi.push(t),Ki=jf(),()=>{Gi=Gi.filter(n=>n!==t),Ki=jf()}}Ki=Object.assign({},cr.Modal)}function Gp(){return Ki}const qu=a.createContext(void 0),vr=(e,t)=>{const n=a.useContext(qu),r=a.useMemo(()=>{var i;const l=t||cr[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),s||{})},[e,t,n]),o=a.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?cr.locale:i},[n]);return[r,o]},bx="internalMark",yx=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;a.useEffect(()=>hx(t==null?void 0:t.Modal),[t]);const o=a.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return a.createElement(qu.Provider,{value:o},n)},Uu={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"},Yo=Object.assign(Object.assign({},Uu),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
18
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
19
+ '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}),Sn=Math.round;function ws(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const zf=(e,t,n)=>n===0?e:e/100;function ba(e,t){const n=t||255;return e>n?n:e<0?0:e}class Tt{constructor(t){B(this,"isValid",!0),B(this,"r",0),B(this,"g",0),B(this,"b",0),B(this,"a",1),B(this,"_h",void 0),B(this,"_s",void 0),B(this,"_l",void 0),B(this,"_v",void 0),B(this,"_max",void 0),B(this,"_min",void 0),B(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof Tt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=ba(t.r),this.g=ba(t.g),this.b=ba(t.b),this.a=typeof t.a=="number"?ba(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Sn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],l={r:Sn(i("r")),g:Sn(i("g")),b:Sn(i("b")),a:Sn(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>Sn((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Sn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Sn(this.getSaturation()*100),r=Sn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=ba(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=Sn(r*255);this.r=m,this.g=m,this.b=m}let i=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,l=d):c>=1&&c<2?(i=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(i=d,s=u):c>=5&&c<6&&(i=u,s=d);const f=r-u/2;this.r=Sn((i+f)*255),this.g=Sn((l+f)*255),this.b=Sn((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=Sn(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=Sn(r*(1-n)*255),d=Sn(r*(1-n*c)*255),f=Sn(r*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=ws(t,zf);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ws(t,zf);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ws(t,(r,o)=>o.includes("%")?Sn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var xi=2,_f=.16,Cx=.05,Sx=.05,xx=.15,qp=5,Up=4,$x=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Bf(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-xi*t:Math.round(e.h)+xi*t:r=n?Math.round(e.h)+xi*t:Math.round(e.h)-xi*t,r<0?r+=360:r>=360&&(r-=360),r}function Df(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-_f*t:t===Up?r=e.s+_f:r=e.s+Cx*t,r>1&&(r=1),n&&t===qp&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Lf(e,t,n){var r;return n?r=e.v+Sx*t:r=e.v-xx*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function mo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Tt(e),o=r.toHsv(),i=qp;i>0;i-=1){var l=new Tt({h:Bf(o,i,!0),s:Df(o,i,!0),v:Lf(o,i,!0)});n.push(l)}n.push(r);for(var s=1;s<=Up;s+=1){var c=new Tt({h:Bf(o,s),s:Df(o,s),v:Lf(o,s)});n.push(c)}return t.theme==="dark"?$x.map(function(u){var d=u.index,f=u.amount;return new Tt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var Es={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"},Mc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Mc.primary=Mc[5];var Tc=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Tc.primary=Tc[5];var jc=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];jc.primary=jc[5];var al=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];al.primary=al[5];var zc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];zc.primary=zc[5];var _c=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];_c.primary=_c[5];var Bc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Bc.primary=Bc[5];var Dc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Dc.primary=Dc[5];var il=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];il.primary=il[5];var Lc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Lc.primary=Lc[5];var Ac=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ac.primary=Ac[5];var Hc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Hc.primary=Hc[5];var Fc=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Fc.primary=Fc[5];var Os={red:Mc,volcano:Tc,orange:jc,gold:al,yellow:zc,lime:_c,green:Bc,cyan:Dc,blue:il,geekblue:Lc,purple:Ac,magenta:Hc,grey:Fc};function Xp(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=t(s),f=t(r),m=t(o),v=t(i),p=t(l),h=n(c,u),g=e.colorLink||e.colorInfo,b=t(g),y=new Tt(v[1]).mix(new Tt(v[3]),50).toHexString();return Object.assign(Object.assign({},h),{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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:y,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Tt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const wx=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}};function Ex(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},wx(r))}const Yp=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function qi(e){return(e+8)/e}function Ox(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),l=r>1?Math.floor(i):Math.ceil(i);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:qi(n)}))}const Qp=e=>{const t=Ox(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],i=n[0],l=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Ix(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 Yn=(e,t)=>new Tt(e).setA(t).toRgbString(),ya=(e,t)=>new Tt(e).darken(t).toHexString(),Rx=e=>{const t=mo(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]}},Px=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Yn(r,.88),colorTextSecondary:Yn(r,.65),colorTextTertiary:Yn(r,.45),colorTextQuaternary:Yn(r,.25),colorFill:Yn(r,.15),colorFillSecondary:Yn(r,.06),colorFillTertiary:Yn(r,.04),colorFillQuaternary:Yn(r,.02),colorBgSolid:Yn(r,1),colorBgSolidHover:Yn(r,.75),colorBgSolidActive:Yn(r,.95),colorBgLayout:ya(n,4),colorBgContainer:ya(n,0),colorBgElevated:ya(n,0),colorBgSpotlight:Yn(r,.85),colorBgBlur:"transparent",colorBorder:ya(n,15),colorBorderSecondary:ya(n,6)}};function Pl(e){Es.pink=Es.magenta,Os.pink=Os.magenta;const t=Object.keys(Uu).map(n=>{const r=e[n]===Es[n]?Os[n]:mo(e[n]);return Array.from({length:10},()=>1).reduce((o,i,l)=>(o[`${n}-${l+1}`]=r[l],o[`${n}${l+1}`]=r[l],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),Xp(e,{generateColorPalettes:Rx,generateNeutralColorPalettes:Px})),Qp(e.fontSize)),Ix(e)),Yp(e)),Ex(e))}const Xu=rl(Pl),Aa={token:Yo,override:{override:Yo},hashed:!0},Yu=U.createContext(Aa),Ha="ant",Nl="anticon",Nx=["outlined","borderless","filled","underlined"],Mx=(e,t)=>t||(e?`${Ha}-${e}`:Ha),tt=a.createContext({getPrefixCls:Mx,iconPrefixCls:Nl}),{Consumer:lL}=tt,Af={};function on(e){const t=a.useContext(tt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Af,styles:Af},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const Tx=`-ant-${Date.now()}-${Math.random()}`;function jx(e,t){const n={},r=(l,s)=>{let c=l.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(l,s)=>{const c=new Tt(l),u=mo(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const l=new Tt(t.primaryColor),s=mo(l.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(l,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(l,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(l,u=>u.setA(u.a*.12));const c=new Tt(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.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"),`
20
+ :root {
21
+ ${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(`
22
+ `)}
23
+ }
24
+ `.trim()}function zx(e,t){const n=jx(e,t);In()&&Pr(n,`${Tx}-dynamic-theme`)}const kn=a.createContext(!1),Qu=({children:e,disabled:t})=>{const n=a.useContext(kn);return a.createElement(kn.Provider,{value:t??n},e)},vo=a.createContext(void 0),_x=({children:e,size:t})=>{const n=a.useContext(vo);return a.createElement(vo.Provider,{value:t||n},e)};function Bx(){const e=a.useContext(kn),t=a.useContext(vo);return{componentDisabled:e,componentSize:t}}var Zp=Zt(function e(){Qt(this,e)}),Jp="CALC_UNIT",Dx=new RegExp(Jp,"g");function Is(e){return typeof e=="number"?"".concat(e).concat(Jp):e}var Lx=(function(e){mr(n,e);var t=wr(n);function n(r,o){var i;Qt(this,n),i=t.call(this),B(qe(i),"result",""),B(qe(i),"unitlessCssVar",void 0),B(qe(i),"lowPriority",void 0);var l=Ke(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):l==="number"?i.result=Is(r):l==="string"&&(i.result=r),i}return Zt(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Is(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Is(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,l=o||{},s=l.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return i.result.includes(u)})&&(c=!1),this.result=this.result.replace(Dx,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Zp),Ax=(function(e){mr(n,e);var t=wr(n);function n(r){var o;return Qt(this,n),o=t.call(this),B(qe(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Zt(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(Zp),Hx=function(t,n){var r=t==="css"?Lx:Ax;return function(o){return new r(o,n)}},Hf=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function At(e){var t=a.useRef();t.current=e;var n=a.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function go(e){var t=a.useRef(!1),n=a.useState(e),r=te(n,2),o=r[0],i=r[1];a.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function l(s,c){c&&t.current||i(s)}return[o,l]}function Rs(e){return e!==void 0}function Wt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,l=n.postState,s=go(function(){return Rs(o)?o:Rs(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=te(s,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=l?l(f):f,v=At(i),p=go([f]),h=te(p,2),g=h[0],b=h[1];Ho(function(){var C=g[0];u!==C&&v(u,C)},[g]),Ho(function(){Rs(o)||d(o)},[o]);var y=At(function(C,S){d(C,S),b([f],S)});return[m,y]}function Ff(e,t,n,r){var o=H({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var c=te(s,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var l=H(H({},n),o);return Object.keys(l).forEach(function(s){l[s]===t[s]&&delete l[s]}),l}var eh=typeof CSSINJS_STATISTIC<"u",kc=!0;function Ct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!eh)return Object.assign.apply(Object,[{}].concat(t));kc=!1;var r={};return t.forEach(function(o){if(Ke(o)==="object"){var i=Object.keys(o);i.forEach(function(l){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){return o[l]}})})}}),kc=!0,r}var kf={};function Fx(){}var kx=function(t){var n,r=t,o=Fx;return eh&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(l,s){if(kc){var c;(c=n)===null||c===void 0||c.add(s)}return l[s]}}),o=function(l,s){var c;kf[l]={global:Array.from(n),component:H(H({},(c=kf[l])===null||c===void 0?void 0:c.component),s)}}),{token:r,keys:n,flush:o}};function Vf(e,t,n){if(typeof n=="function"){var r;return n(Ct(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Vx(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return L(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return L(i)}).join(","),")")}}}var Wx=1e3*60*10,Kx=(function(){function e(){Qt(this,e),B(this,"map",new Map),B(this,"objectIDMap",new WeakMap),B(this,"nextID",0),B(this,"lastAccessBeat",new Map),B(this,"accessBeat",0)}return Zt(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&Ke(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(Ke(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>Wx&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),Wf=new Kx;function Gx(e,t){return U.useMemo(function(){var n=Wf.get(t);if(n)return n;var r=e();return Wf.set(t,r),r},t)}var qx=function(){return{}};function Ux(e){var t=e.useCSP,n=t===void 0?qx:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,l=e.getCommonStyle,s=e.getCompUnitless;function c(m,v,p,h){var g=Array.isArray(m)?m[0]:m;function b(O){return"".concat(String(g)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var y=(h==null?void 0:h.unitless)||{},C=typeof s=="function"?s(m):{},S=H(H({},C),{},B({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(O){S[b(O)]=y[O]});var x=H(H({},h),{},{unitless:S,prefixToken:b}),E=d(m,v,p,x),w=u(g,p,x);return function(O){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,I=E(O,$),P=te(I,2),N=P[1],M=w($),R=te(M,2),z=R[0],T=R[1];return[z,N,T]}}function u(m,v,p){var h=p.unitless,g=p.injectStyle,b=g===void 0?!0:g,y=p.prefixToken,C=p.ignore,S=function(w){var O=w.rootCls,$=w.cssVar,I=$===void 0?{}:$,P=r(),N=P.realToken;return cx({path:[m],prefix:I.prefix,key:I.key,unitless:h,ignore:C,token:N,scope:O},function(){var M=Vf(m,N,v),R=Ff(m,N,M,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(M).forEach(function(z){R[y(z)]=R[z],delete R[z]}),R}),null},x=function(w){var O=r(),$=O.cssVar;return[function(I){return b&&$?U.createElement(U.Fragment,null,U.createElement(S,{rootCls:w,cssVar:$,component:m}),I):I},$==null?void 0:$.key]};return x}function d(m,v,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(m)?m:[m,m],b=te(g,1),y=b[0],C=g.join("-"),S=e.layer||{name:"antd"};return function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,w=r(),O=w.theme,$=w.realToken,I=w.hashId,P=w.token,N=w.cssVar,M=o(),R=M.rootPrefixCls,z=M.iconPrefixCls,T=n(),j=N?"css":"js",_=Gx(function(){var W=new Set;return N&&Object.keys(h.unitless||{}).forEach(function(G){W.add(Hi(G,N.prefix)),W.add(Hi(G,Hf(y,N.prefix)))}),Hx(j,W)},[j,y,N==null?void 0:N.prefix]),D=Vx(j),k=D.max,V=D.min,K={theme:O,token:P,hashId:I,nonce:function(){return T.nonce},clientOnly:h.clientOnly,layer:S,order:h.order||-999};typeof i=="function"&&Nc(H(H({},K),{},{clientOnly:!1,path:["Shared",R]}),function(){return i(P,{prefix:{rootPrefixCls:R,iconPrefixCls:z},csp:T})});var A=Nc(H(H({},K),{},{path:[C,x,z]}),function(){if(h.injectStyle===!1)return[];var W=kx(P),G=W.token,Y=W.flush,ne=Vf(y,$,p),Q=".".concat(x),J=Ff(y,$,ne,{deprecatedTokens:h.deprecatedTokens});N&&ne&&Ke(ne)==="object"&&Object.keys(ne).forEach(function(oe){ne[oe]="var(".concat(Hi(oe,Hf(y,N.prefix)),")")});var ie=Ct(G,{componentCls:Q,prefixCls:x,iconCls:".".concat(z),antCls:".".concat(R),calc:_,max:k,min:V},N?ne:J),re=v(ie,{hashId:I,prefixCls:x,rootPrefixCls:R,iconPrefixCls:z});Y(y,J);var X=typeof l=="function"?l(ie,x,E,h.resetFont):null;return[h.resetStyle===!1?null:X,re]});return[A,I]}}function f(m,v,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(m,v,p,H({resetStyle:!1,order:-998},h)),b=function(C){var S=C.prefixCls,x=C.rootCls,E=x===void 0?S:x;return g(S,E),null};return b}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const kr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Xx="5.29.3";function Ps(e){return e>=0&&e<=255}function wa(e,t){const{r:n,g:r,b:o,a:i}=new Tt(e).toRgb();if(i<1)return e;const{r:l,g:s,b:c}=new Tt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-l*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(Ps(d)&&Ps(f)&&Ps(m))return new Tt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new Tt({r:n,g:r,b:o,a:1}).toRgbString()}var Yx=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 Zu(e){const{override:t}=e,n=Yx(e,["override"]),r=Object.assign({},t);Object.keys(Yo).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,l=576,s=768,c=992,u=1200,d=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:wa(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:wa(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:wa(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,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:wa(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:`
25
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
26
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
27
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
28
+ `,boxShadowSecondary:`
29
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
30
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
31
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
32
+ `,boxShadowTertiary:`
33
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
34
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
35
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
36
+ `,screenXS:i,screenXSMin:i,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
37
+ 0 1px 2px -2px ${new Tt("rgba(0, 0, 0, 0.16)").toRgbString()},
38
+ 0 3px 6px 0 ${new Tt("rgba(0, 0, 0, 0.12)").toRgbString()},
39
+ 0 5px 12px 4px ${new Tt("rgba(0, 0, 0, 0.09)").toRgbString()}
40
+ `,boxShadowDrawerRight:`
41
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
42
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
43
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
44
+ `,boxShadowDrawerLeft:`
45
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
46
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
47
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
48
+ `,boxShadowDrawerUp:`
49
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
50
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
51
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
52
+ `,boxShadowDrawerDown:`
53
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
54
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
55
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
56
+ `,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 Kf=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 th={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Qx={motionBase:!0,motionUnit:!0},Zx={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},nh=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Kf(t,["override"]);let l=Object.assign(Object.assign({},r),{override:o});return l=Zu(l),i&&Object.entries(i).forEach(([s,c])=>{const{theme:u}=c,d=Kf(c,["theme"]);let f=d;u&&(f=nh(Object.assign(Object.assign({},l),d),{override:d},u)),l[s]=f}),l};function pn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=U.useContext(Yu),i=`${Xx}-${t||""}`,l=n||Xu,[s,c,u]=_S(l,[Yo,e],{salt:i,override:r,getComputedToken:nh,formatToken:Zu,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:th,ignore:Qx,preserve:Zx}});return[l,u,t?c:"",s,o]}const Sr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Nt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),yo=()=>({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"}}),Vr=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Jx=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),e1=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),l),{[o]:l})}},ur=(e,t)=>({outline:`${L(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),qn=(e,t)=>({"&:focus-visible":ur(e,t)}),rh=e=>({[`.${e}`]:Object.assign(Object.assign({},yo()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Ju=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},qn(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Et,genComponentStyleHook:t1,genSubStyleComponent:oa}=Ux({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=a.useContext(tt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=pn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=a.useContext(tt);return e??{}},getResetStyles:(e,t)=>{var n;const r=Jx(e);return[r,{"&":r},rh((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Nl)]},getCommonStyle:e1,getCompUnitless:()=>th});function Ml(e,t){return kr.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],l=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:l,textColor:s}))},{})}const n1=(e,t)=>{const[n,r]=pn();return Nc({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>rh(e))},r1=Object.assign({},$l),{useId:Gf}=r1,o1=()=>"",a1=typeof Gf>"u"?o1:Gf;function i1(e,t,n){var r;Er();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Aa),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Aa.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=a1();return bo(()=>{var s,c;if(!e)return t;const u=Object.assign({},i.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${l.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:u,cssVar:f})},[o,i],(s,c)=>s.some((u,d)=>{const f=c[d];return!Cr(u,f,!0)}))}var l1=["children"],oh=a.createContext({});function s1(e){var t=e.children,n=it(e,l1);return a.createElement(oh.Provider,{value:n},t)}var c1=(function(e){mr(n,e);var t=wr(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"render",value:function(){return this.props.children}}]),n})(a.Component);function u1(e){var t=a.useReducer(function(s){return s+1},0),n=te(t,2),r=n[1],o=a.useRef(e),i=At(function(){return o.current}),l=At(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,l]}var _r="none",$i="appear",wi="enter",Ei="leave",qf="none",ar="prepare",Do="start",Lo="active",ed="end",ah="prepared";function Uf(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 d1(e,t){var n={animationend:Uf("Animation","AnimationEnd"),transitionend:Uf("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var f1=d1(In(),typeof window<"u"?window:{}),ih={};if(In()){var m1=document.createElement("div");ih=m1.style}var Oi={};function lh(e){if(Oi[e])return Oi[e];var t=f1[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 ih)return Oi[e]=t[i],Oi[e]}return""}var sh=lh("animationend"),ch=lh("transitionend"),uh=!!(sh&&ch),Xf=sh||"animationend",Yf=ch||"transitionend";function Qf(e,t){if(!e)return null;if(Ke(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const v1=(function(e){var t=a.useRef();function n(o){o&&(o.removeEventListener(Yf,e),o.removeEventListener(Xf,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Yf,e),o.addEventListener(Xf,e),t.current=o)}return a.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var dh=In()?a.useLayoutEffect:a.useEffect;const g1=(function(){var e=a.useRef(null);function t(){Ot.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ot(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return a.useEffect(function(){return function(){t()}},[]),[n,t]});var p1=[ar,Do,Lo,ed],h1=[ar,ah],fh=!1,b1=!0;function mh(e){return e===Lo||e===ed}const y1=(function(e,t,n){var r=go(qf),o=te(r,2),i=o[0],l=o[1],s=g1(),c=te(s,2),u=c[0],d=c[1];function f(){l(ar,!0)}var m=t?h1:p1;return dh(function(){if(i!==qf&&i!==ed){var v=m.indexOf(i),p=m[v+1],h=n(i);h===fh?l(p,!0):p&&u(function(g){function b(){g.isCanceled()||l(p,!0)}h===!0?b():Promise.resolve(h).then(b)})}},[e,i]),a.useEffect(function(){return function(){d()}},[]),[f,i]});function C1(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,l=r.motionAppear,s=l===void 0?!0:l,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,p=r.onLeavePrepare,h=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,S=r.onLeaveActive,x=r.onAppearEnd,E=r.onEnterEnd,w=r.onLeaveEnd,O=r.onVisibleChanged,$=go(),I=te($,2),P=I[0],N=I[1],M=u1(_r),R=te(M,2),z=R[0],T=R[1],j=go(null),_=te(j,2),D=_[0],k=_[1],V=z(),K=a.useRef(!1),A=a.useRef(null);function W(){return n()}var G=a.useRef(!1);function Y(){T(_r),k(null,!0)}var ne=At(function(ae){var fe=z();if(fe!==_r){var ue=W();if(!(ae&&!ae.deadline&&ae.target!==ue)){var de=G.current,xe;fe===$i&&de?xe=x==null?void 0:x(ue,ae):fe===wi&&de?xe=E==null?void 0:E(ue,ae):fe===Ei&&de&&(xe=w==null?void 0:w(ue,ae)),de&&xe!==!1&&Y()}}}),Q=v1(ne),J=te(Q,1),ie=J[0],re=function(fe){switch(fe){case $i:return B(B(B({},ar,m),Do,h),Lo,y);case wi:return B(B(B({},ar,v),Do,g),Lo,C);case Ei:return B(B(B({},ar,p),Do,b),Lo,S);default:return{}}},X=a.useMemo(function(){return re(V)},[V]),oe=y1(V,!e,function(ae){if(ae===ar){var fe=X[ar];return fe?fe(W()):fh}if(Z in X){var ue;k(((ue=X[Z])===null||ue===void 0?void 0:ue.call(X,W(),null))||null)}return Z===Lo&&V!==_r&&(ie(W()),d>0&&(clearTimeout(A.current),A.current=setTimeout(function(){ne({deadline:!0})},d))),Z===ah&&Y(),b1}),ee=te(oe,2),q=ee[0],Z=ee[1],le=mh(Z);G.current=le;var se=a.useRef(null);dh(function(){if(!(K.current&&se.current===t)){N(t);var ae=K.current;K.current=!0;var fe;!ae&&t&&s&&(fe=$i),ae&&t&&i&&(fe=wi),(ae&&!t&&u||!ae&&f&&!t&&u)&&(fe=Ei);var ue=re(fe);fe&&(e||ue[ar])?(T(fe),q()):T(_r),se.current=t}},[t]),a.useEffect(function(){(V===$i&&!s||V===wi&&!i||V===Ei&&!u)&&T(_r)},[s,i,u]),a.useEffect(function(){return function(){K.current=!1,clearTimeout(A.current)}},[]);var ve=a.useRef(!1);a.useEffect(function(){P&&(ve.current=!0),P!==void 0&&V===_r&&((ve.current||P)&&(O==null||O(P)),ve.current=!0)},[P,V]);var ge=D;return X[ar]&&Z===Do&&(ge=H({transition:"none"},ge)),[V,Z,ge,P??t]}function S1(e){var t=e;Ke(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=a.forwardRef(function(o,i){var l=o.visible,s=l===void 0?!0:l,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,p=o.eventProps,h=a.useContext(oh),g=h.motion,b=n(o,g),y=a.useRef(),C=a.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:Ai(C.current)}catch{return null}}var x=C1(b,s,S,o),E=te(x,4),w=E[0],O=E[1],$=E[2],I=E[3],P=a.useRef(I);I&&(P.current=!0);var N=a.useCallback(function(_){y.current=_,za(i,_)},[i]),M,R=H(H({},p),{},{visible:s});if(!f)M=null;else if(w===_r)I?M=f(H({},R),N):!u&&P.current&&v?M=f(H(H({},R),{},{className:v}),N):d||!u&&!v?M=f(H(H({},R),{},{style:{display:"none"}}),N):M=null;else{var z;O===ar?z="prepare":mh(O)?z="active":O===Do&&(z="start");var T=Qf(m,"".concat(w,"-").concat(z));M=f(H(H({},R),{},{className:F(Qf(m,w),B(B({},T,T&&z),m,typeof m=="string")),style:$}),N)}if(a.isValidElement(M)&&sr(M)){var j=Ur(M);j||(M=a.cloneElement(M,{ref:N}))}return a.createElement(c1,{ref:C},M)});return r.displayName="CSSMotion",r}const Hn=S1(uh);var Vc="add",Wc="keep",Kc="remove",Ns="removed";function x1(e){var t;return e&&Ke(e)==="object"&&"key"in e?t=e:t={key:e},H(H({},t),{},{key:String(t.key)})}function Gc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(x1)}function $1(){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=Gc(e),l=Gc(t);i.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=l[f];if(m.key===u.key){r<f&&(n=n.concat(l.slice(r,f).map(function(v){return H(H({},v),{},{status:Vc})})),r=f),n.push(H(H({},m),{},{status:Wc})),r+=1,d=!0;break}}d||n.push(H(H({},u),{},{status:Kc}))}),r<o&&(n=n.concat(l.slice(r).map(function(u){return H(H({},u),{},{status:Vc})})));var s={};n.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(u){return s[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==Kc}),n.forEach(function(d){d.key===u&&(d.status=Wc)})}),n}var w1=["component","children","onVisibleChanged","onAllRemoved"],E1=["status"],O1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function I1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hn,n=(function(r){mr(i,r);var o=wr(i);function i(){var l;Qt(this,i);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l=o.call.apply(o,[this].concat(c)),B(qe(l),"state",{keyEntities:[]}),B(qe(l),"removeKey",function(d){l.setState(function(f){var m=f.keyEntities.map(function(v){return v.key!==d?v:H(H({},v),{},{status:Ns})});return{keyEntities:m}},function(){var f=l.state.keyEntities,m=f.filter(function(v){var p=v.status;return p!==Ns}).length;m===0&&l.props.onAllRemoved&&l.props.onAllRemoved()})}),l}return Zt(i,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged;u.onAllRemoved;var v=it(u,w1),p=d||a.Fragment,h={};return O1.forEach(function(g){h[g]=v[g],delete v[g]}),delete v.keys,a.createElement(p,v,c.map(function(g,b){var y=g.status,C=it(g,E1),S=y===Vc||y===Wc;return a.createElement(t,ce({},h,{key:C.key,visible:S,eventProps:C,onVisibleChanged:function(E){m==null||m(E,{key:C.key}),E||s.removeKey(C.key)}}),function(x,E){return f(H(H({},x),{},{index:b}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=s.keys,d=c.keyEntities,f=Gc(u),m=$1(d,f);return{keyEntities:m.filter(function(v){var p=d.find(function(h){var g=h.key;return v.key===g});return!(p&&p.status===Ns&&v.status===Kc)})}}}]),i})(a.Component);return B(n,"defaultProps",{component:"div"}),n}const vh=I1(uh),Zf=a.createContext(!0);function R1(e){const t=a.useContext(Zf),{children:n}=e,[,r]=pn(),{motion:o}=r,i=a.useRef(!1);return i.current||(i.current=t!==o),i.current?a.createElement(Zf.Provider,{value:o},a.createElement(s1,{motion:o},n)):n}const P1=()=>null;var N1=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 M1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ll,gh,ph,hh;function Ui(){return ll||Ha}function T1(){return gh||Nl}function j1(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const z1=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(ll=t),n!==void 0&&(gh=n),"holderRender"in e&&(hh=o),r&&(j1(r)?zx(Ui(),r):ph=r)},bh=()=>({getPrefixCls:(e,t)=>t||(e?`${Ui()}-${e}`:Ui()),getIconPrefixCls:T1,getRootPrefixCls:()=>ll||Ui(),getTheme:()=>ph,holderRender:hh}),_1=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:l,locale:s,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:v,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:g,parentContext:b,iconPrefixCls:y,theme:C,componentDisabled:S,segmented:x,statistic:E,spin:w,calendar:O,carousel:$,cascader:I,collapse:P,typography:N,checkbox:M,descriptions:R,divider:z,drawer:T,skeleton:j,steps:_,image:D,layout:k,list:V,mentions:K,modal:A,progress:W,result:G,slider:Y,breadcrumb:ne,menu:Q,pagination:J,input:ie,textArea:re,empty:X,badge:oe,radio:ee,rate:q,switch:Z,transfer:le,avatar:se,message:ve,tag:ge,table:ae,card:fe,tabs:ue,timeline:de,timePicker:xe,upload:we,notification:Le,tree:je,colorPicker:Oe,datePicker:Te,rangePicker:he,flex:me,wave:$e,dropdown:Se,warning:Re,tour:be,tooltip:Ie,popover:De,popconfirm:ke,floatButton:gt,floatButtonGroup:ht,variant:Pe,inputNumber:We,treeSelect:Ye}=e,_e=a.useCallback((Ze,bt)=>{const{prefixCls:Fe}=e;if(bt)return bt;const ze=Fe||b.getPrefixCls("");return Ze?`${ze}-${Ze}`:ze},[b.getPrefixCls,e.prefixCls]),Ge=y||b.iconPrefixCls||Nl,vt=n||b.csp;n1(Ge,vt);const dt=i1(C,b.theme,{prefixCls:_e("")}),Ae={csp:vt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:p??v,popupOverflow:h,getPrefixCls:_e,iconPrefixCls:Ge,theme:dt,segmented:x,statistic:E,spin:w,calendar:O,carousel:$,cascader:I,collapse:P,typography:N,checkbox:M,descriptions:R,divider:z,drawer:T,skeleton:j,steps:_,image:D,input:ie,textArea:re,layout:k,list:V,mentions:K,modal:A,progress:W,result:G,slider:Y,breadcrumb:ne,menu:Q,pagination:J,empty:X,badge:oe,radio:ee,rate:q,switch:Z,transfer:le,avatar:se,message:ve,tag:ge,table:ae,card:fe,tabs:ue,timeline:de,timePicker:xe,upload:we,notification:Le,tree:je,colorPicker:Oe,datePicker:Te,rangePicker:he,flex:me,wave:$e,dropdown:Se,warning:Re,tour:be,tooltip:Ie,popover:De,popconfirm:ke,floatButton:gt,floatButtonGroup:ht,variant:Pe,inputNumber:We,treeSelect:Ye},Je=Object.assign({},b);Object.keys(Ae).forEach(Ze=>{Ae[Ze]!==void 0&&(Je[Ze]=Ae[Ze])}),M1.forEach(Ze=>{const bt=e[Ze];bt&&(Je[Ze]=bt)}),typeof r<"u"&&(Je.button=Object.assign({autoInsertSpace:r},Je.button));const Ue=bo(()=>Je,Je,(Ze,bt)=>{const Fe=Object.keys(Ze),ze=Object.keys(bt);return Fe.length!==ze.length||Fe.some(ot=>Ze[ot]!==bt[ot])}),{layer:Ee}=a.useContext(Qa),Ce=a.useMemo(()=>({prefixCls:Ge,csp:vt,layer:Ee?"antd":void 0}),[Ge,vt,Ee]);let ye=a.createElement(a.Fragment,null,a.createElement(P1,{dropdownMatchSelectWidth:v}),t);const Ne=a.useMemo(()=>{var Ze,bt,Fe,ze;return Bo(((Ze=cr.Form)===null||Ze===void 0?void 0:Ze.defaultValidateMessages)||{},((Fe=(bt=Ue.locale)===null||bt===void 0?void 0:bt.Form)===null||Fe===void 0?void 0:Fe.defaultValidateMessages)||{},((ze=Ue.form)===null||ze===void 0?void 0:ze.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[Ue,l==null?void 0:l.validateMessages]);Object.keys(Ne).length>0&&(ye=a.createElement(Vp.Provider,{value:Ne},ye)),s&&(ye=a.createElement(yx,{locale:s,_ANT_MARK__:bx},ye)),ye=a.createElement(Gu.Provider,{value:Ce},ye),c&&(ye=a.createElement(_x,{size:c},ye)),ye=a.createElement(R1,null,ye);const Qe=a.useMemo(()=>{const Ze=dt||{},{algorithm:bt,token:Fe,components:ze,cssVar:ot}=Ze,$t=N1(Ze,["algorithm","token","components","cssVar"]),Rt=bt&&(!Array.isArray(bt)||bt.length>0)?rl(bt):Xu,Mt={};Object.entries(ze||{}).forEach(([St,jt])=>{const Me=Object.assign({},jt);"algorithm"in Me&&(Me.algorithm===!0?Me.theme=Rt:(Array.isArray(Me.algorithm)||typeof Me.algorithm=="function")&&(Me.theme=rl(Me.algorithm)),delete Me.algorithm),Mt[St]=Me});const Dt=Object.assign(Object.assign({},Yo),Fe);return Object.assign(Object.assign({},$t),{theme:Rt,token:Dt,components:Mt,override:Object.assign({override:Dt},Mt),cssVar:ot})},[dt]);return C&&(ye=a.createElement(Yu.Provider,{value:Qe},ye)),Ue.warning&&(ye=a.createElement(vx.Provider,{value:Ue.warning},ye)),S!==void 0&&(ye=a.createElement(Qu,{disabled:S},ye)),a.createElement(tt.Provider,{value:Ue},ye)},gr=e=>{const t=a.useContext(tt),n=a.useContext(qu);return a.createElement(_1,Object.assign({parentContext:t,legacyLocale:n},e))};gr.ConfigContext=tt;gr.SizeContext=vo;gr.config=z1;gr.useConfig=Bx;Object.defineProperty(gr,"SizeContext",{get:()=>vo});var B1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function yh(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function D1(e){return yh(e)instanceof ShadowRoot}function sl(e){return D1(e)?yh(e):null}function L1(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function A1(e,t){Gt(e,"[@ant-design/icons] ".concat(t))}function Jf(e){return Ke(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ke(e.icon)==="object"||typeof e.icon=="function")}function em(){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[L1(n)]=r}return t},{})}function qc(e,t,n){return n?U.createElement(e.tag,H(H({key:t},em(e.attrs)),n),(e.children||[]).map(function(r,o){return qc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):U.createElement(e.tag,H({key:t},em(e.attrs)),(e.children||[]).map(function(r,o){return qc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ch(e){return mo(e)[0]}function Sh(e){return e?Array.isArray(e)?e:[e]:[]}var H1=`
57
+ .anticon {
58
+ display: inline-flex;
59
+ align-items: center;
60
+ color: inherit;
61
+ font-style: normal;
62
+ line-height: 0;
63
+ text-align: center;
64
+ text-transform: none;
65
+ vertical-align: -0.125em;
66
+ text-rendering: optimizeLegibility;
67
+ -webkit-font-smoothing: antialiased;
68
+ -moz-osx-font-smoothing: grayscale;
69
+ }
70
+
71
+ .anticon > * {
72
+ line-height: 1;
73
+ }
74
+
75
+ .anticon svg {
76
+ display: inline-block;
77
+ }
78
+
79
+ .anticon::before {
80
+ display: none;
81
+ }
82
+
83
+ .anticon .anticon-icon {
84
+ display: block;
85
+ }
86
+
87
+ .anticon[tabindex] {
88
+ cursor: pointer;
89
+ }
90
+
91
+ .anticon-spin::before,
92
+ .anticon-spin {
93
+ display: inline-block;
94
+ -webkit-animation: loadingCircle 1s infinite linear;
95
+ animation: loadingCircle 1s infinite linear;
96
+ }
97
+
98
+ @-webkit-keyframes loadingCircle {
99
+ 100% {
100
+ -webkit-transform: rotate(360deg);
101
+ transform: rotate(360deg);
102
+ }
103
+ }
104
+
105
+ @keyframes loadingCircle {
106
+ 100% {
107
+ -webkit-transform: rotate(360deg);
108
+ transform: rotate(360deg);
109
+ }
110
+ }
111
+ `,F1=function(t){var n=a.useContext(Gu),r=n.csp,o=n.prefixCls,i=n.layer,l=H1;o&&(l=l.replace(/anticon/g,o)),i&&(l="@layer ".concat(i,` {
112
+ `).concat(l,`
113
+ }`)),a.useEffect(function(){var s=t.current,c=sl(s);Pr(l,"@ant-design-icons",{prepend:!i,csp:r,attachTo:c})},[])},k1=["icon","className","onClick","style","primaryColor","secondaryColor"],Ra={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function V1(e){var t=e.primaryColor,n=e.secondaryColor;Ra.primaryColor=t,Ra.secondaryColor=n||Ch(t),Ra.calculated=!!n}function W1(){return H({},Ra)}var aa=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,l=t.primaryColor,s=t.secondaryColor,c=it(t,k1),u=a.useRef(),d=Ra;if(l&&(d={primaryColor:l,secondaryColor:s||Ch(l)}),F1(u),A1(Jf(n),"icon should be icon definiton, but got ".concat(n)),!Jf(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=H(H({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),qc(f.icon,"svg-".concat(f.name),H(H({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};aa.displayName="IconReact";aa.getTwoToneColors=W1;aa.setTwoToneColors=V1;function xh(e){var t=Sh(e),n=te(t,2),r=n[0],o=n[1];return aa.setTwoToneColors({primaryColor:r,secondaryColor:o})}function K1(){var e=aa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var G1=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xh(il.primary);var ut=a.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=it(e,G1),d=a.useContext(Gu),f=d.prefixCls,m=f===void 0?"anticon":f,v=d.rootClassName,p=F(v,m,B(B({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),h=l;h===void 0&&s&&(h=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Sh(c),y=te(b,2),C=y[0],S=y[1];return a.createElement("span",ce({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:s,className:p}),a.createElement(aa,{icon:r,primaryColor:C,secondaryColor:S,style:g}))});ut.displayName="AntdIcon";ut.getTwoToneColor=K1;ut.setTwoToneColor=xh;var q1=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:B1}))},Za=a.forwardRef(q1),U1={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},X1=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:U1}))},Co=a.forwardRef(X1),Y1={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Q1=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:Y1}))},Xr=a.forwardRef(Q1),Z1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},J1=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:Z1}))},So=a.forwardRef(J1),e$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},t$=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:e$}))},Tl=a.forwardRef(t$),n$=`accept acceptCharset accessKey action allowFullScreen allowTransparency
114
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
115
+ charSet checked classID className colSpan cols content contentEditable contextMenu
116
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
117
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
118
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
119
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
120
+ mediaGroup method min minLength multiple muted name noValidate nonce open
121
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
122
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
123
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
124
+ summary tabIndex target title type useMap value width wmode wrap`,r$=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
125
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
126
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
127
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
128
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
129
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
130
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,o$="".concat(n$," ").concat(r$).split(/[\s\n]+/),a$="aria-",i$="data-";function tm(e,t){return e.indexOf(t)===0}function xn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=H({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||tm(o,a$))||n.data&&tm(o,i$)||n.attr&&o$.includes(o))&&(r[o]=e[o])}),r}function $h(e){return e&&U.isValidElement(e)&&e.type===U.Fragment}const td=(e,t,n)=>U.isValidElement(e)?U.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function un(e,t){return td(e,e,t)}const Ii=(e,t,n,r,o)=>({background:e,border:`${L(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),l$=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:l,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:v,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u},
131
+ padding-top ${n} ${u}, padding-bottom ${n} ${u},
132
+ margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:v,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:l},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},s$=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:l,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:v}=e;return{[t]:{"&-success":Ii(o,r,n,e,t),"&-info":Ii(v,m,f,e,t),"&-warning":Ii(s,l,i,e,t),"&-error":Object.assign(Object.assign({},Ii(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},c$=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:l,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:L(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:l,transition:`color ${r}`,"&:hover":{color:s}}}}},u$=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),d$=Et("Alert",e=>[l$(e),s$(e),c$(e)],u$);var nm=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 f$={success:Za,info:Tl,error:Co,warning:So},m$=e=>{const{icon:t,prefixCls:n,type:r}=e,o=f$[r]||null;return t?td(t,a.createElement("span",{className:`${n}-icon`},t),()=>({className:F(`${n}-icon`,t.props.className)})):a.createElement(o,{className:`${n}-icon`})},v$=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,l=r===!0||r===void 0?a.createElement(Xr,null):r;return t?a.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),l):null},wh=a.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:l,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:v,closable:p,closeText:h,closeIcon:g,action:b,id:y}=e,C=nm(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,x]=a.useState(!1),E=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:w,direction:O,closable:$,closeIcon:I,className:P,style:N}=on("alert"),M=w("alert",r),[R,z,T]=d$(M),j=G=>{var Y;x(!0),(Y=e.onClose)===null||Y===void 0||Y.call(e,G)},_=a.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),D=a.useMemo(()=>typeof p=="object"&&p.closeIcon||h?!0:typeof p=="boolean"?p:g!==!1&&g!==null&&g!==void 0?!0:!!$,[h,g,p,$]),k=i&&v===void 0?!0:v,V=F(M,`${M}-${_}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!k,[`${M}-banner`]:!!i,[`${M}-rtl`]:O==="rtl"},P,l,s,T,z),K=xn(C,{aria:!0,data:!0}),A=a.useMemo(()=>typeof p=="object"&&p.closeIcon?p.closeIcon:h||(g!==void 0?g:typeof $=="object"&&$.closeIcon?$.closeIcon:I),[g,p,$,h,I]),W=a.useMemo(()=>{const G=p??$;if(typeof G=="object"){const{closeIcon:Y}=G;return nm(G,["closeIcon"])}return{}},[p,$]);return R(a.createElement(Hn,{visible:!S,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:G=>({maxHeight:G.offsetHeight}),onLeaveEnd:m},({className:G,style:Y},ne)=>a.createElement("div",Object.assign({id:y,ref:dn(E,ne),"data-show":!S,className:F(V,G),style:Object.assign(Object.assign(Object.assign({},N),c),Y),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},K),k?a.createElement(m$,{description:n,icon:e.icon,prefixCls:M,type:_}):null,a.createElement("div",{className:`${M}-content`},o?a.createElement("div",{className:`${M}-message`},o):null,n?a.createElement("div",{className:`${M}-description`},n):null),b?a.createElement("div",{className:`${M}-action`},b):null,a.createElement(v$,{isClosable:D,prefixCls:M,closeIcon:A,handleClose:j,ariaProps:W}))))});function g$(e,t,n){return t=fo(t),gp(e,El()?Reflect.construct(t,n||[],fo(e).constructor):t.apply(e,n))}let p$=(function(e){function t(){var n;return Qt(this,t),n=g$(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return mr(t,e),Zt(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,children:l}=this.props,{error:s,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,f=typeof o>"u"?u:o;return s?a.createElement(wh,{id:i,type:"error",message:d,description:a.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):l}}])})(a.Component);const h$=wh;h$.ErrorBoundary=p$;const rm=e=>typeof e=="object"&&e!=null&&e.nodeType===1,om=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ri=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return om(n.overflowY,t)||om(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Pi=(e,t,n,r,o,i,l,s)=>i<e&&l>t||i>e&&l<t?0:i<=e&&s<=n||l>=t&&s>=n?i-e-r:l>t&&s<n||i<e&&s>n?l-t+o:0,b$=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},am=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:l,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:T=>T!==u;if(!rm(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let p=e;for(;rm(p)&&f(p);){if(p=b$(p),p===m){v.push(p);break}p!=null&&p===document.body&&Ri(p)&&!Ri(document.documentElement)||p!=null&&Ri(p,d)&&v.push(p)}const h=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:C,width:S,top:x,right:E,bottom:w,left:O}=e.getBoundingClientRect(),{top:$,right:I,bottom:P,left:N}=(T=>{const j=window.getComputedStyle(T);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let M=s==="start"||s==="nearest"?x-$:s==="end"?w+P:x+C/2-$+P,R=c==="center"?O+S/2-N+I:c==="end"?E+I:O-N;const z=[];for(let T=0;T<v.length;T++){const j=v[T],{height:_,width:D,top:k,right:V,bottom:K,left:A}=j.getBoundingClientRect();if(l==="if-needed"&&x>=0&&O>=0&&w<=g&&E<=h&&(j===m&&!Ri(j)||x>=k&&w<=K&&O>=A&&E<=V))return z;const W=getComputedStyle(j),G=parseInt(W.borderLeftWidth,10),Y=parseInt(W.borderTopWidth,10),ne=parseInt(W.borderRightWidth,10),Q=parseInt(W.borderBottomWidth,10);let J=0,ie=0;const re="offsetWidth"in j?j.offsetWidth-j.clientWidth-G-ne:0,X="offsetHeight"in j?j.offsetHeight-j.clientHeight-Y-Q:0,oe="offsetWidth"in j?j.offsetWidth===0?0:D/j.offsetWidth:0,ee="offsetHeight"in j?j.offsetHeight===0?0:_/j.offsetHeight:0;if(m===j)J=s==="start"?M:s==="end"?M-g:s==="nearest"?Pi(y,y+g,g,Y,Q,y+M,y+M+C,C):M-g/2,ie=c==="start"?R:c==="center"?R-h/2:c==="end"?R-h:Pi(b,b+h,h,G,ne,b+R,b+R+S,S),J=Math.max(0,J+y),ie=Math.max(0,ie+b);else{J=s==="start"?M-k-Y:s==="end"?M-K+Q+X:s==="nearest"?Pi(k,K,_,Y,Q+X,M,M+C,C):M-(k+_/2)+X/2,ie=c==="start"?R-A-G:c==="center"?R-(A+D/2)+re/2:c==="end"?R-V+ne+re:Pi(A,V,D,G,ne+re,R,R+S,S);const{scrollLeft:q,scrollTop:Z}=j;J=ee===0?0:Math.max(0,Math.min(Z+J/ee,j.scrollHeight-_/ee+X)),ie=oe===0?0:Math.max(0,Math.min(q+ie/oe,j.scrollWidth-D/oe+re)),M+=Z-J,R+=q-ie}z.push({el:j,top:J,left:ie})}return z},y$=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function C$(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(am(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:l}of am(e,y$(t))){const s=i-n.top+n.bottom,c=l-n.left+n.right;o.scroll({top:s,left:c,behavior:r})}}function Uc(e){return e!=null&&e===e.window}const S$=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return Uc(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Uc(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function x$(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function $$(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),l=S$(i),s=Date.now(),c=()=>{const d=Date.now()-s,f=x$(d>o?o:d,l,e,o);Uc(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,d<o?Ot(c):typeof r=="function"&&r()};Ot(c)}const fn=e=>{const[,,,,t]=pn();return t?`${e}-css-var`:""};var Be={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Eh=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,l=i===void 0?4.5:i,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,v=e.closeIcon,p=v===void 0?"x":v,h=e.props,g=e.onClick,b=e.onNoticeClose,y=e.times,C=e.hovering,S=a.useState(!1),x=te(S,2),E=x[0],w=x[1],O=a.useState(0),$=te(O,2),I=$[0],P=$[1],N=a.useState(0),M=te(N,2),R=M[0],z=M[1],T=C||E,j=l>0&&s,_=function(){b(d)},D=function(G){(G.key==="Enter"||G.code==="Enter"||G.keyCode===Be.ENTER)&&_()};a.useEffect(function(){if(!T&&l>0){var W=Date.now()-R,G=setTimeout(function(){_()},l*1e3-R);return function(){u&&clearTimeout(G),z(Date.now()-W)}}},[l,T,y]),a.useEffect(function(){if(!T&&j&&(u||R===0)){var W=performance.now(),G,Y=function ne(){cancelAnimationFrame(G),G=requestAnimationFrame(function(Q){var J=Q+R-W,ie=Math.min(J/(l*1e3),1);P(ie*100),ie<1&&ne()})};return Y(),function(){u&&cancelAnimationFrame(G)}}},[l,R,T,j,y]);var k=a.useMemo(function(){return Ke(m)==="object"&&m!==null?m:m?{closeIcon:p}:{}},[m,p]),V=xn(k,!0),K=100-(!I||I<0?0:I>100?100:I),A="".concat(n,"-notice");return a.createElement("div",ce({},h,{ref:t,className:F(A,o,B({},"".concat(A,"-closable"),m)),style:r,onMouseEnter:function(G){var Y;w(!0),h==null||(Y=h.onMouseEnter)===null||Y===void 0||Y.call(h,G)},onMouseLeave:function(G){var Y;w(!1),h==null||(Y=h.onMouseLeave)===null||Y===void 0||Y.call(h,G)},onClick:g}),a.createElement("div",{className:"".concat(A,"-content")},f),m&&a.createElement("a",ce({tabIndex:0,className:"".concat(A,"-close"),onKeyDown:D,"aria-label":"Close"},V,{onClick:function(G){G.preventDefault(),G.stopPropagation(),_()}}),k.closeIcon),j&&a.createElement("progress",{className:"".concat(A,"-progress"),max:"100",value:K},K+"%"))}),Oh=U.createContext({}),Ih=function(t){var n=t.children,r=t.classNames;return U.createElement(Oh.Provider,{value:{classNames:r}},n)},im=8,lm=3,sm=16,w$=function(t){var n={offset:im,threshold:lm,gap:sm};if(t&&Ke(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:im,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:lm,n.gap=(i=t.gap)!==null&&i!==void 0?i:sm}return[!!t,n]},E$=["className","style","classNames","styles"],O$=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,l=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=a.useContext(Oh),m=f.classNames,v=a.useRef({}),p=a.useState(null),h=te(p,2),g=h[0],b=h[1],y=a.useState([]),C=te(y,2),S=C[0],x=C[1],E=n.map(function(T){return{config:T,key:String(T.key)}}),w=w$(d),O=te(w,2),$=O[0],I=O[1],P=I.offset,N=I.threshold,M=I.gap,R=$&&(S.length>0||E.length<=N),z=typeof s=="function"?s(r):s;return a.useEffect(function(){$&&S.length>1&&x(function(T){return T.filter(function(j){return E.some(function(_){var D=_.key;return j===D})})})},[S,E,$]),a.useEffect(function(){var T;if($&&v.current[(T=E[E.length-1])===null||T===void 0?void 0:T.key]){var j;b(v.current[(j=E[E.length-1])===null||j===void 0?void 0:j.key])}},[E,$]),U.createElement(vh,ce({key:r,className:F(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,i,B(B({},"".concat(o,"-stack"),!!$),"".concat(o,"-stack-expanded"),R)),style:l,keys:E,motionAppear:!0},z,{onAllRemoved:function(){c(r)}}),function(T,j){var _=T.config,D=T.className,k=T.style,V=T.index,K=_,A=K.key,W=K.times,G=String(A),Y=_,ne=Y.className,Q=Y.style,J=Y.classNames,ie=Y.styles,re=it(Y,E$),X=E.findIndex(function(de){return de.key===G}),oe={};if($){var ee=E.length-1-(X>-1?X:V-1),q=r==="top"||r==="bottom"?"-50%":"0";if(ee>0){var Z,le,se;oe.height=R?(Z=v.current[G])===null||Z===void 0?void 0:Z.offsetHeight:g==null?void 0:g.offsetHeight;for(var ve=0,ge=0;ge<ee;ge++){var ae;ve+=((ae=v.current[E[E.length-1-ge].key])===null||ae===void 0?void 0:ae.offsetHeight)+M}var fe=(R?ve:ee*P)*(r.startsWith("top")?1:-1),ue=!R&&g!==null&&g!==void 0&&g.offsetWidth&&(le=v.current[G])!==null&&le!==void 0&&le.offsetWidth?((g==null?void 0:g.offsetWidth)-P*2*(ee<3?ee:3))/((se=v.current[G])===null||se===void 0?void 0:se.offsetWidth):1;oe.transform="translate3d(".concat(q,", ").concat(fe,"px, 0) scaleX(").concat(ue,")")}else oe.transform="translate3d(".concat(q,", 0, 0)")}return U.createElement("div",{ref:j,className:F("".concat(o,"-notice-wrapper"),D,J==null?void 0:J.wrapper),style:H(H(H({},k),oe),ie==null?void 0:ie.wrapper),onMouseEnter:function(){return x(function(xe){return xe.includes(G)?xe:[].concat(pe(xe),[G])})},onMouseLeave:function(){return x(function(xe){return xe.filter(function(we){return we!==G})})}},U.createElement(Eh,ce({},re,{ref:function(xe){X>-1?v.current[G]=xe:delete v.current[G]},prefixCls:o,classNames:J,styles:ie,className:F(ne,m==null?void 0:m.notice),style:Q,times:W,key:A,eventKey:A,onNoticeClose:u,hovering:$&&S.length>0})))})},I$=a.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=a.useState([]),v=te(m,2),p=v[0],h=v[1],g=function($){var I,P=p.find(function(N){return N.key===$});P==null||(I=P.onClose)===null||I===void 0||I.call(P),h(function(N){return N.filter(function(M){return M.key!==$})})};a.useImperativeHandle(t,function(){return{open:function($){h(function(I){var P=pe(I),N=P.findIndex(function(z){return z.key===$.key}),M=H({},$);if(N>=0){var R;M.times=(((R=I[N])===null||R===void 0?void 0:R.times)||0)+1,P[N]=M}else M.times=0,P.push(M);return l>0&&P.length>l&&(P=P.slice(-l)),P})},close:function($){g($)},destroy:function(){h([])}}});var b=a.useState({}),y=te(b,2),C=y[0],S=y[1];a.useEffect(function(){var O={};p.forEach(function($){var I=$.placement,P=I===void 0?"topRight":I;P&&(O[P]=O[P]||[],O[P].push($))}),Object.keys(C).forEach(function($){O[$]=O[$]||[]}),S(O)},[p]);var x=function($){S(function(I){var P=H({},I),N=P[$]||[];return N.length||delete P[$],P})},E=a.useRef(!1);if(a.useEffect(function(){Object.keys(C).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[C]),!o)return null;var w=Object.keys(C);return uo.createPortal(a.createElement(a.Fragment,null,w.map(function(O){var $=C[O],I=a.createElement(O$,{key:O,configList:$,placement:O,prefixCls:r,className:s==null?void 0:s(O),style:c==null?void 0:c(O),motion:i,onNoticeClose:g,onAllNoticeRemoved:x,stack:d});return f?f(I,{prefixCls:r,key:O}):I})),o)}),R$=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],P$=function(){return document.body},cm=0;function N$(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var l=o[i];l!==void 0&&(e[i]=l)})}),e}function Rh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?P$:t,r=e.motion,o=e.prefixCls,i=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=it(e,R$),m=a.useState(),v=te(m,2),p=v[0],h=v[1],g=a.useRef(),b=a.createElement(I$,{container:p,ref:g,prefixCls:o,motion:r,maxCount:i,className:l,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),y=a.useState([]),C=te(y,2),S=C[0],x=C[1],E=At(function(O){var $=N$(f,O);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(cm),cm+=1),x(function(I){return[].concat(pe(I),[{type:"open",config:$}])})}),w=a.useMemo(function(){return{open:E,close:function($){x(function(I){return[].concat(pe(I),[{type:"close",key:$}])})},destroy:function(){x(function($){return[].concat(pe($),[{type:"destroy"}])})}}},[]);return a.useEffect(function(){h(n())}),a.useEffect(function(){if(g.current&&S.length){S.forEach(function(I){switch(I.type){case"open":g.current.open(I.config);break;case"close":g.current.close(I.key);break;case"destroy":g.current.destroy();break}});var O,$;x(function(I){return(O!==I||!$)&&(O=I,$=I.filter(function(P){return!S.includes(P)})),$})}},[S]),[w,b]}var M$={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"},T$=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:M$}))},xo=a.forwardRef(T$);function cl(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function ul(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function um(e){const{closable:t,closeIcon:n}=e||{};return U.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const j$={},Ph=(e,t,n=j$)=>{const r=um(e),o=um(t),[i]=vr("global",cr.global),l=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=U.useMemo(()=>Object.assign({closeIcon:U.createElement(Xr,null)},n),[n]),c=U.useMemo(()=>r===!1?!1:r?cl(s,o,r):o===!1?!1:o?cl(s,o):s.closable?s:!1,[r,o,s]);return U.useMemo(()=>{var u,d;if(c===!1)return[!1,null,l,{}];const{closeIconRender:f}=s,{closeIcon:m}=c;let v=m;const p=xn(c,!0);return v!=null&&(f&&(v=f(m)),v=U.isValidElement(v)?U.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(d=(u=v.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:i.close}),p)):U.createElement("span",Object.assign({"aria-label":i.close},p),v)),[!0,v,l,p]},[l,i.close,c,s])},Nh=()=>U.useReducer(e=>e+1,0),z$=e=>{const[t,n]=a.useState(null);return[a.useCallback((o,i,l)=>{const s=t??o,c=Math.min(s||0,o),u=Math.max(s||0,o),d=i.slice(c,u+1).map(e),f=d.some(v=>!l.has(v)),m=[];return d.forEach(v=>{f?(l.has(v)||m.push(v),l.add(v)):(l.delete(v),m.push(v))}),n(f?u:null),m},[t]),n]},_$=()=>{const[e,t]=a.useState([]),n=a.useCallback(r=>(t(o=>[].concat(pe(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]};function B$(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const D$=(e,t)=>a.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):B$(r,n)}),L$=e=>{const t=a.useRef(e),[,n]=Nh();return[()=>t.current,r=>{t.current=r,n()}]},jl=U.createContext(void 0),Br=100,A$=10,nd=Br*A$,Mh={Modal:Br,Drawer:Br,Popover:Br,Popconfirm:Br,Tooltip:Br,Tour:Br,FloatButton:Br},H$={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function F$(e){return e in Mh}const ia=(e,t)=>{const[,n]=pn(),r=U.useContext(jl),o=F$(e);let i;if(t!==void 0)i=[t,t];else{let l=r??0;o?l+=(r?0:n.zIndexPopupBase)+Mh[e]:l+=H$[e],i=[r===void 0?t:l,l]}return i},k$=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:l,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:v,borderRadiusLG:p,zIndexPopup:h,contentPadding:g,contentBg:b}=e,y=`${t}-notice`,C=new xt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),S=new xt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${y}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
133
+ ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Nt(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
134
+ ${t}-move-up-appear,
135
+ ${t}-move-up-enter
136
+ `]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
137
+ ${t}-move-up-appear${t}-move-up-appear-active,
138
+ ${t}-move-up-enter${t}-move-up-enter-active
139
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},V$=e=>({zIndexPopup:e.zIndexPopupBase+nd+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Th=Et("Message",e=>{const t=Ct(e,{height:150});return k$(t)},V$);var W$=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 K$={info:a.createElement(Tl,null),success:a.createElement(Za,null),error:a.createElement(Co,null),warning:a.createElement(So,null),loading:a.createElement(xo,null)},jh=({prefixCls:e,type:t,icon:n,children:r})=>a.createElement("div",{className:F(`${e}-custom-content`,`${e}-${t}`)},n||K$[t],a.createElement("span",null,r)),G$=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,l=W$(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=a.useContext(tt),c=t||s("message"),u=fn(c),[d,f,m]=Th(c,u);return d(a.createElement(Eh,Object.assign({},l,{prefixCls:c,className:F(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:a.createElement(jh,{prefixCls:c,type:r,icon:o},i)})))};function q$(e,t){return{motionName:t??`${e}-move-up`}}function rd(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var U$=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 X$=8,Y$=3,Q$=({children:e,prefixCls:t})=>{const n=fn(t),[r,o,i]=Th(t,n);return r(a.createElement(Ih,{classNames:{list:F(o,i,n)}},e))},Z$=(e,{prefixCls:t,key:n})=>a.createElement(Q$,{prefixCls:t,key:n},e),J$=a.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:l=Y$,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:v}=a.useContext(tt),p=r||d("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??X$}),g=()=>F({[`${p}-rtl`]:s??v==="rtl"}),b=()=>q$(p,c),y=a.createElement("span",{className:`${p}-close-x`},a.createElement(Xr,{className:`${p}-close-icon`})),[C,S]=Rh({prefixCls:p,style:h,className:g,motion:b,closable:!1,closeIcon:y,duration:l,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:u,renderNotifications:Z$});return a.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:p,message:m})),S});let dm=0;function zh(e){const t=a.useRef(null);return Er(),[a.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},o=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:v,icon:p,type:h,key:g,className:b,style:y,onClose:C}=c,S=U$(c,["content","icon","type","key","className","style","onClose"]);let x=g;return x==null&&(dm+=1,x=`antd-message-${dm}`),rd(E=>(u(Object.assign(Object.assign({},S),{key:x,content:a.createElement(jh,{prefixCls:d,type:h,icon:p},v),placement:"top",className:F(h&&`${m}-${h}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{C==null||C(),E()}})),()=>{r(x)}))},l={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let v;d&&typeof d=="object"&&"content"in d?v=d:v={content:d};let p,h;typeof f=="function"?h=f:(p=f,h=m);const g=Object.assign(Object.assign({onClose:h,duration:p},v),{type:c});return o(g)};l[c]=u}),l},[]),a.createElement(J$,Object.assign({key:"message-holder"},e,{ref:t}))]}function _h(e){return zh(e)}function Bh(e,t){this.v=e,this.k=t}function jn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}jn=function(l,s,c,u){function d(f,m){jn(l,f,function(v){return this._invoke(f,m,v)})}s?o?o(l,s,{value:c,enumerable:!u,configurable:!u,writable:!u}):l[s]=c:(d("next",0),d("throw",1),d("return",2))},jn(e,t,n,r)}function od(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(v,p,h,g){var b=p&&p.prototype instanceof s?p:s,y=Object.create(b.prototype);return jn(y,"_invoke",(function(C,S,x){var E,w,O,$=0,I=x||[],P=!1,N={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(z,T){return E=z,w=0,O=e,N.n=T,l}};function M(R,z){for(w=R,O=z,t=0;!P&&$&&!T&&t<I.length;t++){var T,j=I[t],_=N.p,D=j[2];R>3?(T=D===z)&&(O=j[(w=j[4])?5:(w=3,3)],j[4]=j[5]=e):j[0]<=_&&((T=R<2&&_<j[1])?(w=0,N.v=z,N.n=j[1]):_<D&&(T=R<3||j[0]>z||z>D)&&(j[4]=R,j[5]=z,N.n=D,w=0))}if(T||R>1)return l;throw P=!0,z}return function(R,z,T){if($>1)throw TypeError("Generator is already running");for(P&&z===1&&M(z,T),w=z,O=T;(t=w<2?e:O)||!P;){E||(w?w<3?(w>1&&(N.n=-1),M(w,O)):N.n=O:N.v=O);try{if($=2,E){if(w||(R="next"),t=E[R]){if(!(t=t.call(E,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,w<2&&(w=0)}else w===1&&(t=E.return)&&t.call(E),w<2&&(O=TypeError("The iterator does not provide a '"+R+"' method"),w=1);E=e}else if((t=(P=N.n<0)?O:C.call(S,N))!==l)break}catch(j){E=e,w=1,O=j}finally{$=1}}return{value:t,done:P}}})(v,h,g),!0),y}var l={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(jn(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(d);function m(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,u):(v.__proto__=u,jn(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return c.prototype=u,jn(f,"constructor",u),jn(u,"constructor",c),c.displayName="GeneratorFunction",jn(u,o,"GeneratorFunction"),jn(f),jn(f,o,"Generator"),jn(f,r,function(){return this}),jn(f,"toString",function(){return"[object Generator]"}),(od=function(){return{w:i,m}})()}function dl(e,t){function n(o,i,l,s){try{var c=e[o](i),u=c.value;return u instanceof Bh?t.resolve(u.v).then(function(d){n("next",d,l,s)},function(d){n("throw",d,l,s)}):t.resolve(u).then(function(d){c.value=d,l(c)},function(d){return n("throw",d,l,s)})}catch(d){s(d)}}var r;this.next||(jn(dl.prototype),jn(dl.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),jn(this,"_invoke",function(o,i,l){function s(){return new t(function(c,u){n(o,l,c,u)})}return r=r?r.then(s,s):s()},!0)}function Dh(e,t,n,r,o){return new dl(od().w(e,t,n,r),o||Promise)}function ew(e,t,n,r,o){var i=Dh(e,t,n,r,o);return i.next().then(function(l){return l.done?l.value:i.next()})}function tw(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function fm(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Ke(e)+" is not iterable")}function _n(){var e=od(),t=e.m(_n),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(l){var s=typeof l=="function"&&l.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(l){var s,c;return function(u){s||(s={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return c(u.a,o[f],m)},delegateYield:function(f,m,v){return s.resultName=m,c(u.d,fm(f),v)},finish:function(f){return c(u.f,f)}},c=function(f,m,v){u.p=s.prev,u.n=s.next;try{return f(m,v)}finally{s.next=u.n}}),s.resultName&&(s[s.resultName]=u.v,s.resultName=void 0),s.sent=u.v,s.next=u.n;try{return l.call(this,s)}finally{u.p=s.prev,u.n=s.next}}}return(_n=function(){return{wrap:function(c,u,d,f){return e.w(i(c),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(c,u){return new Bh(c,u)},AsyncIterator:dl,async:function(c,u,d,f,m){return(r(u)?Dh:ew)(i(c),u,d,f,m)},keys:tw,values:fm}})()}function mm(e,t,n,r,o,i,l){try{var s=e[i](l),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function $o(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function l(c){mm(i,r,o,l,s,"next",c)}function s(c){mm(i,r,o,l,s,"throw",c)}l(void 0)})}}var Ja=H({},bC),nw=Ja.version,Ms=Ja.render,rw=Ja.unmountComponentAtNode,zl;try{var ow=Number((nw||"").split(".")[0]);ow>=18&&(zl=Ja.createRoot)}catch{}function vm(e){var t=Ja.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ke(t)==="object"&&(t.usingClientEntryPoint=e)}var fl="__rc_react_root__";function aw(e,t){vm(!0);var n=t[fl]||zl(t);vm(!1),n.render(e),t[fl]=n}function iw(e,t){Ms==null||Ms(e,t)}function lw(e,t){if(zl){aw(e,t);return}iw(e,t)}function sw(e){return Xc.apply(this,arguments)}function Xc(){return Xc=$o(_n().mark(function e(t){return _n().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[fl])===null||o===void 0||o.unmount(),delete t[fl]}));case 1:case"end":return r.stop()}},e)})),Xc.apply(this,arguments)}function cw(e){rw(e)}function uw(e){return Yc.apply(this,arguments)}function Yc(){return Yc=$o(_n().mark(function e(t){return _n().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(zl===void 0){r.next=2;break}return r.abrupt("return",sw(t));case 2:cw(t);case 3:case"end":return r.stop()}},e)})),Yc.apply(this,arguments)}const dw=(e,t)=>(lw(e,t),()=>uw(t));let gm=dw;function ad(e){return e&&(gm=e),gm}const Ts=()=>({height:0,opacity:0}),pm=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},fw=e=>({height:e?e.offsetHeight:0}),js=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Fa=(e=Ha)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ts,onEnterStart:Ts,onAppearActive:pm,onEnterActive:pm,onLeaveStart:fw,onLeaveActive:Ts,onAppearEnd:js,onEnterEnd:js,onLeaveEnd:js,motionDeadline:500}),Wr=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Ht(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const ei=(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,l=o.height;if(i||l)return!0}}return!1}),mw=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},vw=t1("Wave",mw),_l=`${Ha}-wave-target`;function gw(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function pw(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(gw))!==null&&t!==void 0?t:null}function zs(e){return Number.isNaN(e)?0:e}const hw=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=a.useRef(null),l=a.useRef(null);a.useEffect(()=>{l.current=o()},[]);const[s,c]=a.useState(null),[u,d]=a.useState([]),[f,m]=a.useState(0),[v,p]=a.useState(0),[h,g]=a.useState(0),[b,y]=a.useState(0),[C,S]=a.useState(!1),x={left:f,top:v,width:h,height:b,borderRadius:u.map(O=>`${O}px`).join(" ")};s&&(x["--wave-color"]=s);function E(){const O=getComputedStyle(n);c(pw(n));const $=O.position==="static",{borderLeftWidth:I,borderTopWidth:P}=O;m($?n.offsetLeft:zs(-Number.parseFloat(I))),p($?n.offsetTop:zs(-Number.parseFloat(P))),g(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:M,borderBottomLeftRadius:R,borderBottomRightRadius:z}=O;d([N,M,z,R].map(T=>zs(Number.parseFloat(T))))}if(a.useEffect(()=>{if(n){const O=Ot(()=>{E(),S(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(E),$.observe(n)),()=>{Ot.cancel(O),$==null||$.disconnect()}}},[n]),!C)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(_l));return a.createElement(Hn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,$)=>{var I,P;if($.deadline||$.propertyName==="opacity"){const N=(I=i.current)===null||I===void 0?void 0:I.parentElement;(P=l.current)===null||P===void 0||P.call(l).then(()=>{N==null||N.remove()})}return!1}},({className:O},$)=>a.createElement("div",{ref:dn(i,$),className:F(t,O,{"wave-quick":w}),style:x}))},bw=(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);const i=ad();let l=null;function s(){return l}l=i(a.createElement(hw,Object.assign({},t,{target:e,registerUnmount:s})),o)},yw=(e,t,n)=>{const{wave:r}=a.useContext(tt),[,o,i]=pn(),l=At(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${_l}`)||d,{showEffect:m}=r||{};(m||bw)(f,{className:t,token:o,component:n,event:u,hashId:i})}),s=a.useRef(null);return u=>{Ot.cancel(s.current),s.current=Ot(()=>{l(u)})}},ti=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=a.useContext(tt),i=a.useRef(null),l=o("wave"),[,s]=vw(l),c=yw(i,F(l,s),r);if(U.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!ei(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!U.isValidElement(t))return t??null;const u=sr(t)?dn(Ur(t),i):i;return un(t,{ref:u})},hn=e=>{const t=U.useContext(vo);return U.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Cw=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Sw=Et(["Space","Compact"],e=>[Cw(e)],()=>({}),{resetStyle:!1});var Lh=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 Bl=a.createContext(null),Yr=(e,t)=>{const n=a.useContext(Bl),r=a.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:l}=n,s=o==="vertical"?"-vertical-":"-";return F(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:l,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},xw=e=>{const{children:t}=e;return a.createElement(Bl.Provider,{value:null},t)},$w=e=>{const{children:t}=e,n=Lh(e,["children"]);return a.createElement(Bl.Provider,{value:a.useMemo(()=>n,[n])},t)},ww=e=>{const{getPrefixCls:t,direction:n}=a.useContext(tt),{size:r,direction:o,block:i,prefixCls:l,className:s,rootClassName:c,children:u}=e,d=Lh(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=hn(C=>r??C),m=t("space-compact",l),[v,p]=Sw(m),h=F(m,p,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},s,c),g=a.useContext(Bl),b=cn(u),y=a.useMemo(()=>b.map((C,S)=>{const x=(C==null?void 0:C.key)||`${m}-item-${S}`;return a.createElement($w,{key:x,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:S===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},C)}),[b,g,o,f,m]);return b.length===0?null:v(a.createElement("div",Object.assign({className:h},d),y))};var Ew=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 Ah=a.createContext(void 0),Ow=e=>{const{getPrefixCls:t,direction:n}=a.useContext(tt),{prefixCls:r,size:o,className:i}=e,l=Ew(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=pn(),u=a.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=F(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},i,c);return a.createElement(Ah.Provider,{value:o},a.createElement("div",Object.assign({},l,{className:d})))},hm=/^[\u4E00-\u9FA5]{2}$/,Qc=hm.test.bind(hm);function id(e){return e==="danger"?{danger:!0}:{type:e}}function bm(e){return typeof e=="string"}function _s(e){return e==="text"||e==="link"}function Iw(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&bm(e.type)&&Qc(e.props.children)?un(e,{children:e.props.children.split("").join(n)}):bm(e)?Qc(e)?U.createElement("span",null,e.split("").join(n)):U.createElement("span",null,e):$h(e)?U.createElement("span",null,e):e}function Rw(e,t){let n=!1;const r=[];return U.Children.forEach(e,o=>{const i=typeof o,l=i==="string"||i==="number";if(n&&l){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=l}),U.Children.map(r,o=>Iw(o,t))}["default","primary","danger"].concat(pe(kr));const Hh=a.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,l=F(`${i}-icon`,n);return U.createElement("span",{ref:t,className:l,style:r},o)}),ym=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,l=F(`${n}-loading-icon`,r);return U.createElement(Hh,{prefixCls:n,className:l,style:o,ref:t},U.createElement(xo,{className:i}))}),Bs=()=>({width:0,opacity:0,transform:"scale(0)"}),Ds=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Pw=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:l}=e,s=!!n;return r?U.createElement(ym,{prefixCls:t,className:o,style:i}):U.createElement(Hn,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:Bs,onAppearActive:Ds,onEnterStart:Bs,onEnterActive:Ds,onLeaveStart:Ds,onLeaveActive:Bs},({className:c,style:u},d)=>{const f=Object.assign(Object.assign({},i),u);return U.createElement(ym,{prefixCls:t,className:F(o,c),style:f,ref:d})})},Cm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Nw=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Cm(`${t}-primary`,o),Cm(`${t}-danger`,i)]}};var Mw=["b"],Tw=["v"],Ls=function(t){return Math.round(Number(t||0))},jw=function(t){if(t instanceof Tt)return t;if(t&&Ke(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=it(n,Mw);return H(H({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ka=(function(e){mr(n,e);var t=wr(n);function n(r){return Qt(this,n),t.call(this,jw(r))}return Zt(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Ls(o.s*100),l=Ls(o.b*100),s=Ls(o.h),c=o.a,u="hsb(".concat(s,", ").concat(i,"%, ").concat(l,"%)"),d="hsba(".concat(s,", ").concat(i,"%, ").concat(l,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,l=it(o,Tw);return H(H({},l),{},{b:i,a:this.a})}}]),n})(Tt),zw=function(t){return t instanceof ka?t:new ka(t)};zw("#1677ff");const _w=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Bw=(e,t)=>e?_w(e,t):"";let Zc=(function(){function e(t){Qt(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new ka(this.colors[0].color.metaColor)):this.metaColor=new ka(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Zt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Bw(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])})();var Dw={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"},Lw=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:Dw}))},Qo=a.forwardRef(Lw),Fh=U.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,l=e.children,s=e.isActive,c=e.role,u=e.classNames,d=e.styles,f=U.useState(s||r),m=te(f,2),v=m[0],p=m[1];return U.useEffect(function(){(r||s)&&p(!0)},[r,s]),v?U.createElement("div",{ref:t,className:F("".concat(n,"-content"),B(B({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:i,role:c},U.createElement("div",{className:F("".concat(n,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},l)):null});Fh.displayName="PanelContent";var Aw=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],kh=U.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,i=e.isActive,l=e.onItemClick,s=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,f=e.styles,m=f===void 0?{}:f,v=e.prefixCls,p=e.collapsible,h=e.accordion,g=e.panelKey,b=e.extra,y=e.header,C=e.expandIcon,S=e.openMotion,x=e.destroyInactivePanel,E=e.children,w=it(e,Aw),O=p==="disabled",$=b!=null&&typeof b!="boolean",I=B(B(B({onClick:function(){l==null||l(g)},onKeyDown:function(j){(j.key==="Enter"||j.keyCode===Be.ENTER||j.which===Be.ENTER)&&(l==null||l(g))},role:h?"tab":"button"},"aria-expanded",i),"aria-disabled",O),"tabIndex",O?-1:0),P=typeof C=="function"?C(e):U.createElement("i",{className:"arrow"}),N=P&&U.createElement("div",ce({className:"".concat(v,"-expand-icon")},["header","icon"].includes(p)?I:{}),P),M=F("".concat(v,"-item"),B(B({},"".concat(v,"-item-active"),i),"".concat(v,"-item-disabled"),O),c),R=F(o,"".concat(v,"-header"),B({},"".concat(v,"-collapsible-").concat(p),!!p),d.header),z=H({className:R,style:m.header},["header","icon"].includes(p)?{}:I);return U.createElement("div",ce({},w,{ref:t,className:M}),U.createElement("div",z,r&&N,U.createElement("span",ce({className:"".concat(v,"-header-text")},p==="header"?I:{}),y),$&&U.createElement("div",{className:"".concat(v,"-extra")},b)),U.createElement(Hn,ce({visible:i,leavedClassName:"".concat(v,"-content-hidden")},S,{forceRender:s,removeOnLeave:x}),function(T,j){var _=T.className,D=T.style;return U.createElement(Fh,{ref:j,prefixCls:v,className:_,classNames:d,style:D,styles:m,isActive:i,forceRender:s,role:h?"tabpanel":void 0},E)}))}),Hw=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Fw=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,l=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var v=f.children,p=f.label,h=f.key,g=f.collapsible,b=f.onItemClick,y=f.destroyInactivePanel,C=it(f,Hw),S=String(h??m),x=g??i,E=y??l,w=function(I){x!=="disabled"&&(s(I),b==null||b(I))},O=!1;return o?O=c[0]===S:O=c.indexOf(S)>-1,U.createElement(kh,ce({},C,{prefixCls:r,key:S,panelKey:S,isActive:O,accordion:o,openMotion:u,expandIcon:d,header:p,collapsible:x,onItemClick:w,destroyInactivePanel:E}),v)})},kw=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,l=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),v=t.props,p=v.header,h=v.headerClass,g=v.destroyInactivePanel,b=v.collapsible,y=v.onItemClick,C=!1;i?C=u[0]===m:C=u.indexOf(m)>-1;var S=b??l,x=function(O){S!=="disabled"&&(c(O),y==null||y(O))},E={key:m,panelKey:m,header:p,headerClass:h,isActive:C,prefixCls:o,destroyInactivePanel:g??s,openMotion:d,accordion:i,children:t.props.children,onItemClick:x,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(w){typeof E[w]>"u"&&delete E[w]}),U.cloneElement(t,E))};function Vw(e,t,n){return Array.isArray(e)?Fw(e,n):cn(t).map(function(r,o){return kw(r,o,n)})}function Ww(e){var t=e;if(!Array.isArray(t)){var n=Ke(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var Kw=U.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,l=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,v=e.activeKey,p=e.defaultActiveKey,h=e.onChange,g=e.items,b=F(r,c),y=Wt([],{value:v,onChange:function($){return h==null?void 0:h($)},defaultValue:p,postState:Ww}),C=te(y,2),S=C[0],x=C[1],E=function($){return x(function(){if(s)return S[0]===$?[]:[$];var I=S.indexOf($),P=I>-1;return P?S.filter(function(N){return N!==$}):[].concat(pe(S),[$])})};Gt(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var w=Vw(g,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:i,onItemClick:E,activeKey:S});return U.createElement("div",ce({ref:t,className:b,style:l,role:s?"tablist":void 0},xn(e,{aria:!0,data:!0})),w)});const ld=Object.assign(Kw,{Panel:kh});ld.Panel;const Gw=a.forwardRef((e,t)=>{const{getPrefixCls:n}=a.useContext(tt),{prefixCls:r,className:o,showArrow:i=!0}=e,l=n("collapse",r),s=F({[`${l}-no-arrow`]:!i},o);return a.createElement(ld.Panel,Object.assign({ref:t},e,{prefixCls:l,className:s}))}),Dl=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
140
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
141
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),qw=e=>({animationDuration:e,animationFillMode:"both"}),Uw=e=>({animationDuration:e,animationFillMode:"both"}),Ll=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`
142
+ ${i}${e}-enter,
143
+ ${i}${e}-appear
144
+ `]:Object.assign(Object.assign({},qw(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Uw(r)),{animationPlayState:"paused"}),[`
145
+ ${i}${e}-enter${e}-enter-active,
146
+ ${i}${e}-appear${e}-appear-active
147
+ `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Xw=new xt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Yw=new xt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Qw=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Ll(r,Xw,Yw,e.motionDurationMid,t),{[`
148
+ ${o}${r}-enter,
149
+ ${o}${r}-appear
150
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Zw=new xt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Jw=new xt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),eE=new xt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tE=new xt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),nE=new xt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rE=new xt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oE=new xt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),aE=new xt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),iE={"move-up":{inKeyframes:oE,outKeyframes:aE},"move-down":{inKeyframes:Zw,outKeyframes:Jw},"move-left":{inKeyframes:eE,outKeyframes:tE},"move-right":{inKeyframes:nE,outKeyframes:rE}},ml=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=iE[t];return[Ll(r,o,i,e.motionDurationMid),{[`
151
+ ${r}-enter,
152
+ ${r}-appear
153
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},sd=new xt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),cd=new xt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ud=new xt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),dd=new xt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),lE=new xt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),sE=new xt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),cE=new xt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),uE=new xt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),dE={"slide-up":{inKeyframes:sd,outKeyframes:cd},"slide-down":{inKeyframes:ud,outKeyframes:dd},"slide-left":{inKeyframes:lE,outKeyframes:sE},"slide-right":{inKeyframes:cE,outKeyframes:uE}},Kr=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=dE[t];return[Ll(r,o,i,e.motionDurationMid),{[`
154
+ ${r}-enter,
155
+ ${r}-appear
156
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},fd=new xt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fE=new xt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Sm=new xt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xm=new xt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),mE=new xt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),vE=new xt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),gE=new xt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),pE=new xt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),hE=new xt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),bE=new xt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),yE=new xt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),CE=new xt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),SE={zoom:{inKeyframes:fd,outKeyframes:fE},"zoom-big":{inKeyframes:Sm,outKeyframes:xm},"zoom-big-fast":{inKeyframes:Sm,outKeyframes:xm},"zoom-left":{inKeyframes:gE,outKeyframes:pE},"zoom-right":{inKeyframes:hE,outKeyframes:bE},"zoom-up":{inKeyframes:mE,outKeyframes:vE},"zoom-down":{inKeyframes:yE,outKeyframes:CE}},ni=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=SE[t];return[Ll(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
157
+ ${r}-enter,
158
+ ${r}-appear
159
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xE=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:v,colorTextDisabled:p,fontSizeLG:h,lineHeight:g,lineHeightLG:b,marginSM:y,paddingSM:C,paddingLG:S,paddingXS:x,motionDurationSlow:E,fontSizeIcon:w,contentPadding:O,fontHeight:$,fontHeightLG:I}=e,P=`${L(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},Nt(e)),{backgroundColor:o,border:P,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[`
160
+ &,
161
+ & > ${t}-header`]:{borderRadius:`${L(c)} ${L(c)} 0 0`}},"&:last-child":{[`
162
+ &,
163
+ & > ${t}-header`]:{borderRadius:`0 0 ${L(c)} ${L(c)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:v,lineHeight:g,cursor:"pointer",transition:`all ${E}, visibility 0s`},qn(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:$,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},yo()),{fontSize:w,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:O},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:b,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:I,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${L(c)} ${L(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},$E=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},wE=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
164
+ > ${t}-item:last-child,
165
+ > ${t}-item:last-child ${t}-header
166
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},EE=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},OE=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),IE=Et("Collapse",e=>{const t=Ct(e,{collapseHeaderPaddingSM:`${L(e.paddingXS)} ${L(e.paddingSM)}`,collapseHeaderPaddingLG:`${L(e.padding)} ${L(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[xE(t),wE(t),EE(t),$E(t),Dl(t)]},OE),RE=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:i,style:l}=on("collapse"),{prefixCls:s,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:m,size:v,expandIconPosition:p="start",children:h,destroyInactivePanel:g,destroyOnHidden:b,expandIcon:y}=e,C=hn(z=>{var T;return(T=v??z)!==null&&T!==void 0?T:"middle"}),S=n("collapse",s),x=n(),[E,w,O]=IE(S),$=a.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),I=y??o,P=a.useCallback((z={})=>{const T=typeof I=="function"?I(z):a.createElement(Qo,{rotate:z.isActive?r==="rtl"?-90:90:void 0,"aria-label":z.isActive?"expanded":"collapsed"});return un(T,()=>{var j;return{className:F((j=T.props)===null||j===void 0?void 0:j.className,`${S}-arrow`)}})},[I,S,r]),N=F(`${S}-icon-position-${$}`,{[`${S}-borderless`]:!f,[`${S}-rtl`]:r==="rtl",[`${S}-ghost`]:!!m,[`${S}-${C}`]:C!=="middle"},i,c,u,w,O),M=a.useMemo(()=>Object.assign(Object.assign({},Fa(x)),{motionAppear:!1,leavedClassName:`${S}-content-hidden`}),[x,S]),R=a.useMemo(()=>h?cn(h).map((z,T)=>{var j,_;const D=z.props;if(D!=null&&D.disabled){const k=(j=z.key)!==null&&j!==void 0?j:String(T),V=Object.assign(Object.assign({},Ht(z.props,["disabled"])),{key:k,collapsible:(_=D.collapsible)!==null&&_!==void 0?_:"disabled"});return un(z,V)}return z}):null,[h]);return E(a.createElement(ld,Object.assign({ref:t,openMotion:M},Ht(e,["rootClassName"]),{expandIcon:P,prefixCls:S,className:N,style:Object.assign(Object.assign({},l),d),destroyInactivePanel:b??g}),R))}),sL=Object.assign(RE,{Panel:Gw}),PE=e=>e instanceof Zc?e:new Zc(e),NE=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),l=new ka(e.toRgbString()).onBackground(t).toHsv();return i<=.5?l.v>.5:n*.299+r*.587+o*.114>192},Vh=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Ct(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Wh=e=>{var t,n,r,o,i,l;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:qi(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:qi(c),m=(l=e.contentLineHeightLG)!==null&&l!==void 0?l:qi(u),v=NE(new Zc(e.colorBgSolid),"#fff")?"#000":"#fff",p=kr.reduce((h,g)=>Object.assign(Object.assign({},h),{[`${g}ShadowColor`]:`0 ${L(e.controlOutlineWidth)} 0 ${wa(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},p),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:v,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},ME=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:l,iconGap:s,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${L(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:yo(),"> a":{color:"currentColor"},"&:not(:disabled)":qn(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${i} ${l}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},Kh=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),TE=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),jE=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Al=(e,t,n,r,o,i,l,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Kh(e,Object.assign({background:t},l),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),zE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},jE(e))}),_E=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Hl=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?_E:zE;return Object.assign(Object.assign({},i(e)),Kh(e.componentCls,t,n))},Fl=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Hl(e,r,o))}),kl=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Hl(e,r,o))}),Vl=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Wl=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Hl(e,n,r))}),xr=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Hl(e,r,o,n))}),BE=e=>{const{componentCls:t}=e;return kr.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],l=e[`${r}5`],s=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Fl(e,e.colorTextLightSolid,o,{background:l},{background:u})),kl(e,o,e.colorBgContainer,{color:l,borderColor:l,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),Vl(e)),Wl(e,i,{color:o,background:s},{color:o,background:c})),xr(e,o,"link",{color:l},{color:u})),xr(e,o,"text",{color:l,background:i},{color:u,background:c}))})},{})},DE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Fl(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Vl(e)),Wl(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Al(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),xr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),LE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},kl(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Vl(e)),Wl(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),xr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),xr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Al(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),AE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Fl(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),kl(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Vl(e)),Wl(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),xr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),xr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Al(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),HE=e=>Object.assign(Object.assign({},xr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Al(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),FE=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:DE(e),[`${t}-color-primary`]:LE(e),[`${t}-color-dangerous`]:AE(e),[`${t}-color-link`]:HE(e)},BE(e))},kE=e=>Object.assign(Object.assign(Object.assign(Object.assign({},kl(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),xr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Fl(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),xr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),md=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${L(c)} ${L(l)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:TE(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},VE=e=>{const t=Ct(e,{fontSize:e.contentFontSize});return md(t,e.componentCls)},WE=e=>{const t=Ct(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return md(t,`${e.componentCls}-sm`)},KE=e=>{const t=Ct(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return md(t,`${e.componentCls}-lg`)},GE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},qE=Et("Button",e=>{const t=Vh(e);return[ME(t),VE(t),WE(t),KE(t),GE(t),FE(t),kE(t),Nw(t)]},Wh,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function UE(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:l}=n,s=l?"> *":"",c=["hover",i?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function XE(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 ri(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},UE(e,i,t,o)),XE(o,i,t))}}function YE(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function QE(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 ZE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},YE(e,t,e.componentCls)),QE(e.componentCls,t))}}const JE=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),l=s=>{const c=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},l()),l(!0))},e2=oa(["Button","compact"],e=>{const t=Vh(e);return[ri(t),ZE(t),JE(t)]},Wh);var t2=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 n2(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 r2={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},o2=U.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:l,variant:s,type:c,danger:u=!1,shape:d,size:f,styles:m,disabled:v,className:p,rootClassName:h,children:g,icon:b,iconPosition:y="start",ghost:C=!1,block:S=!1,htmlType:x="button",classNames:E,style:w={},autoInsertSpace:O,autoFocus:$}=e,I=t2(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),P=c||"default",{button:N}=U.useContext(tt),M=d||(N==null?void 0:N.shape)||"default",[R,z]=a.useMemo(()=>{if(l&&s)return[l,s];if(c||u){const ke=r2[P]||[];return u?["danger",ke[1]]:ke}return N!=null&&N.color&&(N!=null&&N.variant)?[N.color,N.variant]:["default","outlined"]},[l,s,c,u,N==null?void 0:N.color,N==null?void 0:N.variant,P]),j=R==="danger"?"dangerous":R,{getPrefixCls:_,direction:D,autoInsertSpace:k,className:V,style:K,classNames:A,styles:W}=on("button"),G=(n=O??k)!==null&&n!==void 0?n:!0,Y=_("btn",i),[ne,Q,J]=qE(Y),ie=a.useContext(kn),re=v??ie,X=a.useContext(Ah),oe=a.useMemo(()=>n2(o),[o]),[ee,q]=a.useState(oe.loading),[Z,le]=a.useState(!1),se=a.useRef(null),ve=Tr(t,se),ge=a.Children.count(g)===1&&!b&&!_s(z),ae=a.useRef(!0);U.useEffect(()=>(ae.current=!1,()=>{ae.current=!0}),[]),wt(()=>{let ke=null;oe.delay>0?ke=setTimeout(()=>{ke=null,q(!0)},oe.delay):q(oe.loading);function gt(){ke&&(clearTimeout(ke),ke=null)}return gt},[oe.delay,oe.loading]),a.useEffect(()=>{if(!se.current||!G)return;const ke=se.current.textContent||"";ge&&Qc(ke)?Z||le(!0):Z&&le(!1)}),a.useEffect(()=>{$&&se.current&&se.current.focus()},[]);const fe=U.useCallback(ke=>{var gt;if(ee||re){ke.preventDefault();return}(gt=e.onClick)===null||gt===void 0||gt.call(e,("href"in e,ke))},[e.onClick,ee,re]),{compactSize:ue,compactItemClassnames:de}=Yr(Y,D),xe={large:"lg",small:"sm",middle:void 0},we=hn(ke=>{var gt,ht;return(ht=(gt=f??ue)!==null&&gt!==void 0?gt:X)!==null&&ht!==void 0?ht:ke}),Le=we&&(r=xe[we])!==null&&r!==void 0?r:"",je=ee?"loading":b,Oe=Ht(I,["navigate"]),Te=F(Y,Q,J,{[`${Y}-${M}`]:M!=="default"&&M,[`${Y}-${P}`]:P,[`${Y}-dangerous`]:u,[`${Y}-color-${j}`]:j,[`${Y}-variant-${z}`]:z,[`${Y}-${Le}`]:Le,[`${Y}-icon-only`]:!g&&g!==0&&!!je,[`${Y}-background-ghost`]:C&&!_s(z),[`${Y}-loading`]:ee,[`${Y}-two-chinese-chars`]:Z&&G&&!ee,[`${Y}-block`]:S,[`${Y}-rtl`]:D==="rtl",[`${Y}-icon-end`]:y==="end"},de,p,h,V),he=Object.assign(Object.assign({},K),w),me=F(E==null?void 0:E.icon,A.icon),$e=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),W.icon||{}),Se=ke=>U.createElement(Hh,{prefixCls:Y,className:me,style:$e},ke),Re=()=>U.createElement(Pw,{existIcon:!!b,prefixCls:Y,loading:ee,mount:ae.current});let be;b&&!ee?be=Se(b):o&&typeof o=="object"&&o.icon?be=Se(o.icon):be=Re();const Ie=g||g===0?Rw(g,ge&&G):null;if(Oe.href!==void 0)return ne(U.createElement("a",Object.assign({},Oe,{className:F(Te,{[`${Y}-disabled`]:re}),href:re?void 0:Oe.href,style:he,onClick:fe,ref:ve,tabIndex:re?-1:0,"aria-disabled":re}),be,Ie));let De=U.createElement("button",Object.assign({},I,{type:x,className:Te,style:he,onClick:fe,disabled:re,ref:ve}),be,Ie,de&&U.createElement(e2,{prefixCls:Y}));return _s(z)||(De=U.createElement(ti,{component:"Button",disabled:ee},De)),ne(De)}),dr=o2;dr.Group=Ow;dr.__ANT_BUTTON=!0;const As=e=>typeof(e==null?void 0:e.then)=="function",vd=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=a.useRef(!1),m=a.useRef(null),[v,p]=go(!1),h=(...y)=>{i==null||i.apply(void 0,y)};a.useEffect(()=>{let y=null;return l&&(y=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[l]);const g=y=>{As(y)&&(p(!0),y.then((...C)=>{p(!1,!0),h.apply(void 0,C),f.current=!1},C=>{if(p(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(C)}))},b=y=>{if(f.current)return;if(f.current=!0,!d){h();return}let C;if(s){if(C=d(y),u&&!As(C)){f.current=!1,h(y);return}}else if(d.length)C=d(i),f.current=!1;else if(C=d(),!As(C)){h();return}g(C)};return a.createElement(dr,Object.assign({},id(t),{onClick:b,loading:v,prefixCls:r},o,{ref:m}),n)},oi=U.createContext({}),{Provider:Gh}=oi,$m=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:l,onCancel:s,onConfirm:c}=a.useContext(oi);return o?U.createElement(vd,{isSilent:r,actionFn:s,close:(...u)=>{l==null||l.apply(void 0,u),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},wm=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:l,onConfirm:s,onOk:c}=a.useContext(oi);return U.createElement(vd,{isSilent:n,type:l||"primary",actionFn:c,close:(...u)=>{t==null||t.apply(void 0,u),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var qh=a.createContext(null),Em=[];function a2(e,t){var n=a.useState(function(){if(!In())return null;var p=document.createElement("div");return p}),r=te(n,1),o=r[0],i=a.useRef(!1),l=a.useContext(qh),s=a.useState(Em),c=te(s,2),u=c[0],d=c[1],f=l||(i.current?void 0:function(p){d(function(h){var g=[p].concat(pe(h));return g})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function v(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),i.current=!1}return wt(function(){return e?l?l(m):m():v(),v},[e]),wt(function(){u.length&&(u.forEach(function(p){return p()}),d(Em))},[u]),[o,f]}var Hs;function Uh(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";Pr(`
167
+ #`.concat(t,`::-webkit-scrollbar {
168
+ `).concat(d,`
169
+ `).concat(f,`
170
+ }`),t)}catch(p){console.error(p),o=c,i=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Da(t),{width:m,height:v}}function Om(e){return typeof document>"u"?0:(Hs===void 0&&(Hs=Uh()),Hs.width)}function Jc(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Uh(e)}function i2(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var l2="rc-util-locker-".concat(Date.now()),Im=0;function s2(e){var t=!!e,n=a.useState(function(){return Im+=1,"".concat(l2,"_").concat(Im)}),r=te(n,1),o=r[0];wt(function(){if(t){var i=Jc(document.body).width,l=i2();Pr(`
171
+ html body {
172
+ overflow-y: hidden;
173
+ `.concat(l?"width: calc(100% - ".concat(i,"px);"):"",`
174
+ }`),o)}else Da(o);return function(){Da(o)}},[t,o])}var c2=!1;function u2(e){return c2}var Rm=function(t){return t===!1?!1:!In()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},gd=a.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,l=i===void 0?!0:i,s=e.children,c=a.useState(n),u=te(c,2),d=u[0],f=u[1],m=d||n;a.useEffect(function(){(l||n)&&f(n)},[n,l]);var v=a.useState(function(){return Rm(o)}),p=te(v,2),h=p[0],g=p[1];a.useEffect(function(){var P=Rm(o);g(P??null)});var b=a2(m&&!h),y=te(b,2),C=y[0],S=y[1],x=h??C;s2(r&&n&&In()&&(x===C||x===document.body));var E=null;if(s&&sr(s)&&t){var w=s;E=w.ref}var O=Tr(E,t);if(!m||!In()||h===void 0)return null;var $=x===!1||u2(),I=s;return t&&(I=a.cloneElement(s,{ref:O})),a.createElement(qh.Provider,{value:S},$?I:uo.createPortal(I,x))}),Xh=a.createContext({});function d2(){var e=H({},$l);return e.useId}var Pm=0,Nm=d2();const ai=Nm?(function(t){var n=Nm();return t||n}):(function(t){var n=a.useState("ssr-id"),r=te(n,2),o=r[0],i=r[1];return a.useEffect(function(){var l=Pm;Pm+=1,i("rc_unique_".concat(l))},[]),t||o});function Mm(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Tm(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function f2(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Tm(o),n.top+=Tm(o,!0),n}const m2=a.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var v2={width:0,height:0,overflow:"hidden",outline:"none"},g2={outline:"none"},Yh=U.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,l=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,v=e.bodyProps,p=e.modalRender,h=e.onMouseDown,g=e.onMouseUp,b=e.holderRef,y=e.visible,C=e.forceRender,S=e.width,x=e.height,E=e.classNames,w=e.styles,O=U.useContext(Xh),$=O.panel,I=Tr(b,$),P=a.useRef(),N=a.useRef();U.useImperativeHandle(t,function(){return{focus:function(){var K;(K=P.current)===null||K===void 0||K.focus({preventScroll:!0})},changeActive:function(K){var A=document,W=A.activeElement;K&&W===N.current?P.current.focus({preventScroll:!0}):!K&&W===P.current&&N.current.focus({preventScroll:!0})}}});var M={};S!==void 0&&(M.width=S),x!==void 0&&(M.height=x);var R=s?U.createElement("div",{className:F("".concat(n,"-footer"),E==null?void 0:E.footer),style:H({},w==null?void 0:w.footer)},s):null,z=i?U.createElement("div",{className:F("".concat(n,"-header"),E==null?void 0:E.header),style:H({},w==null?void 0:w.header)},U.createElement("div",{className:"".concat(n,"-title"),id:l},i)):null,T=a.useMemo(function(){return Ke(c)==="object"&&c!==null?c:c?{closeIcon:u??U.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),j=xn(T,!0),_=Ke(c)==="object"&&c.disabled,D=c?U.createElement("button",ce({type:"button",onClick:d,"aria-label":"Close"},j,{className:"".concat(n,"-close"),disabled:_}),T.closeIcon):null,k=U.createElement("div",{className:F("".concat(n,"-content"),E==null?void 0:E.content),style:w==null?void 0:w.content},D,z,U.createElement("div",ce({className:F("".concat(n,"-body"),E==null?void 0:E.body),style:H(H({},m),w==null?void 0:w.body)},v),f),R);return U.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?l:null,"aria-modal":"true",ref:I,style:H(H({},o),M),className:F(n,r),onMouseDown:h,onMouseUp:g},U.createElement("div",{ref:P,tabIndex:0,style:g2},U.createElement(m2,{shouldUpdate:y||C},p?p(k):k)),U.createElement("div",{tabIndex:0,ref:N,style:v2}))}),Qh=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,v=a.useRef(),p=a.useState(),h=te(p,2),g=h[0],b=h[1],y={};g&&(y.transformOrigin=g);function C(){var S=f2(v.current);b(m&&(m.x||m.y)?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return a.createElement(Hn,{visible:l,onVisibleChanged:f,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:u,removeOnLeave:c,ref:v},function(S,x){var E=S.className,w=S.style;return a.createElement(Yh,ce({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:x,style:H(H(H({},w),o),y),className:F(i,E)}))})});Qh.displayName="Content";var p2=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,l=t.motionName,s=t.className;return a.createElement(Hn,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return a.createElement("div",ce({ref:u,style:H(H({},f),r),className:F("".concat(n,"-mask"),d,s)},i))})},h2=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,l=i===void 0?!1:i,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,v=t.wrapProps,p=t.onClose,h=t.afterOpenChange,g=t.afterClose,b=t.transitionName,y=t.animation,C=t.closable,S=C===void 0?!0:C,x=t.mask,E=x===void 0?!0:x,w=t.maskTransitionName,O=t.maskAnimation,$=t.maskClosable,I=$===void 0?!0:$,P=t.maskStyle,N=t.maskProps,M=t.rootClassName,R=t.classNames,z=t.styles,T=a.useRef(),j=a.useRef(),_=a.useRef(),D=a.useState(l),k=te(D,2),V=k[0],K=k[1],A=ai();function W(){wc(j.current,document.activeElement)||(T.current=document.activeElement)}function G(){if(!wc(j.current,document.activeElement)){var q;(q=_.current)===null||q===void 0||q.focus()}}function Y(q){if(q)G();else{if(K(!1),E&&T.current&&d){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}V&&(g==null||g())}h==null||h(q)}function ne(q){p==null||p(q)}var Q=a.useRef(!1),J=a.useRef(),ie=function(){clearTimeout(J.current),Q.current=!0},re=function(){J.current=setTimeout(function(){Q.current=!1})},X=null;I&&(X=function(Z){Q.current?Q.current=!1:j.current===Z.target&&ne(Z)});function oe(q){if(c&&q.keyCode===Be.ESC){q.stopPropagation(),ne(q);return}l&&q.keyCode===Be.TAB&&_.current.changeActive(!q.shiftKey)}a.useEffect(function(){l&&(K(!0),W())},[l]),a.useEffect(function(){return function(){clearTimeout(J.current)}},[]);var ee=H(H(H({zIndex:o},f),z==null?void 0:z.wrapper),{},{display:V?null:"none"});return a.createElement("div",ce({className:F("".concat(r,"-root"),M)},xn(t,{data:!0})),a.createElement(p2,{prefixCls:r,visible:E&&l,motionName:Mm(r,w,O),style:H(H({zIndex:o},P),z==null?void 0:z.mask),maskProps:N,className:R==null?void 0:R.mask}),a.createElement("div",ce({tabIndex:-1,onKeyDown:oe,className:F("".concat(r,"-wrap"),m,R==null?void 0:R.wrapper),ref:j,onClick:X,style:ee},v),a.createElement(Qh,ce({},t,{onMouseDown:ie,onMouseUp:re,ref:_,closable:S,ariaId:A,prefixCls:r,visible:l&&V,onClose:ne,onVisibleChanged:Y,motionName:Mm(r,b,y)}))))},Zh=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,l=i===void 0?!1:i,s=t.afterClose,c=t.panelRef,u=a.useState(n),d=te(u,2),f=d[0],m=d[1],v=a.useMemo(function(){return{panel:c}},[c]);return a.useEffect(function(){n&&m(!0)},[n]),!o&&l&&!f?null:a.createElement(Xh.Provider,{value:v},a.createElement(gd,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},a.createElement(h2,ce({},t,{destroyOnClose:l,afterClose:function(){s==null||s(),m(!1)}}))))};Zh.displayName="Dialog";var oo="RC_FORM_INTERNAL_HOOKS",Vt=function(){Gt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},po=a.createContext({getFieldValue:Vt,getFieldsValue:Vt,getFieldError:Vt,getFieldWarning:Vt,getFieldsError:Vt,isFieldsTouched:Vt,isFieldTouched:Vt,isFieldValidating:Vt,isFieldsValidating:Vt,resetFields:Vt,setFields:Vt,setFieldValue:Vt,setFieldsValue:Vt,validateFields:Vt,submit:Vt,getInternalHooks:function(){return Vt(),{dispatch:Vt,initEntityValue:Vt,registerField:Vt,useSubscribe:Vt,setInitialValues:Vt,destroyForm:Vt,setCallbacks:Vt,registerWatch:Vt,getFields:Vt,setValidateMessages:Vt,setPreserve:Vt,getInitialValue:Vt}}}),Va=a.createContext(null);function eu(e){return e==null?[]:Array.isArray(e)?e:[e]}function b2(e){return e&&!!e._init}function tu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var nu=tu();function y2(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function C2(e,t,n){if(El())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&_a(o,n.prototype),o}function ru(e){var t=typeof Map=="function"?new Map:void 0;return ru=function(r){if(r===null||!y2(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return C2(r,arguments,fo(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),_a(o,r)},ru(e)}var S2=/%[sdj%]/g,x2=function(){};function ou(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Gn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var l=e.replace(S2,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return l}return e}function $2(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function gn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$2(t)&&typeof e=="string"&&!e)}function w2(e,t,n){var r=[],o=0,i=e.length;function l(s){r.push.apply(r,pe(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,l)})}function jm(e,t,n){var r=0,o=e.length;function i(l){if(l&&l.length){n(l);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function E2(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,pe(e[n]||[]))}),t}var zm=(function(e){mr(n,e);var t=wr(n);function n(r,o){var i;return Qt(this,n),i=t.call(this,"Async Validation Error"),B(qe(i),"errors",void 0),B(qe(i),"fields",void 0),i.errors=r,i.fields=o,i}return Zt(n)})(ru(Error));function O2(e,t,n,r,o){if(t.first){var i=new Promise(function(m,v){var p=function(b){return r(b),b.length?v(new zm(b,ou(b))):m(o)},h=E2(e);jm(h,n,p)});return i.catch(function(m){return m}),i}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,u=0,d=[],f=new Promise(function(m,v){var p=function(g){if(d.push.apply(d,g),u++,u===c)return r(d),d.length?v(new zm(d,ou(d))):m(o)};s.length||(r(d),m(o)),s.forEach(function(h){var g=e[h];l.indexOf(h)!==-1?jm(g,n,p):w2(g,n,p)})});return f.catch(function(m){return m}),f}function I2(e){return!!(e&&e.message!==void 0)}function R2(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function _m(e,t){return function(n){var r;return e.fullFields?r=R2(t,e.fullFields):r=t[n.field||e.fullField],I2(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Bm(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ke(r)==="object"&&Ke(e[n])==="object"?e[n]=H(H({},e[n]),r):e[n]=r}}return e}var Eo="enum",P2=function(t,n,r,o,i){t[Eo]=Array.isArray(t[Eo])?t[Eo]:[],t[Eo].indexOf(n)===-1&&o.push(Gn(i.messages[Eo],t.fullField,t[Eo].join(", ")))},N2=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Gn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||o.push(Gn(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},M2=function(t,n,r,o,i){var l=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(m?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(u,"_").length),l?d!==t.len&&o.push(Gn(i.messages[f].len,t.fullField,t.len)):s&&!c&&d<t.min?o.push(Gn(i.messages[f].min,t.fullField,t.min)):c&&!s&&d>t.max?o.push(Gn(i.messages[f].max,t.fullField,t.max)):s&&c&&(d<t.min||d>t.max)&&o.push(Gn(i.messages[f].range,t.fullField,t.min,t.max))},Jh=function(t,n,r,o,i,l){t.required&&(!r.hasOwnProperty(t.field)||gn(n,l||t.type))&&o.push(Gn(i.messages.required,t.fullField))},Ni;const T2=(function(){if(Ni)return Ni;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",l="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(l,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(l,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(l).concat(t(E),")"),"g")};d.v4=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},d.v6=function(x){return x&&x.exact?u:new RegExp("".concat(t(x)).concat(l).concat(t(x)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,p=d.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(v,"|").concat(p,"|").concat(h).concat(g).concat(b,")").concat(y).concat(C);return Ni=new RegExp("(?:^".concat(S,"$)"),"i"),Ni});var Dm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ea={integer:function(t){return Ea.number(t)&&parseInt(t,10)===t},float:function(t){return Ea.number(t)&&!Ea.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ke(t)==="object"&&!Ea.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Dm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(T2())},hex:function(t){return typeof t=="string"&&!!t.match(Dm.hex)}},j2=function(t,n,r,o,i){if(t.required&&n===void 0){Jh(t,n,r,o,i);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;l.indexOf(s)>-1?Ea[s](n)||o.push(Gn(i.messages.types[s],t.fullField,t.type)):s&&Ke(n)!==t.type&&o.push(Gn(i.messages.types[s],t.fullField,t.type))},z2=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Gn(i.messages.whitespace,t.fullField))};const Bt={required:Jh,whitespace:z2,type:j2,range:M2,enum:P2,pattern:N2};var _2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i)}r(l)},B2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Bt.required(t,n,o,l,i,"array"),n!=null&&(Bt.type(t,n,o,l,i),Bt.range(t,n,o,l,i))}r(l)},D2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i),n!==void 0&&Bt.type(t,n,o,l,i)}r(l)},L2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,l,i),!gn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Bt.type(t,c,o,l,i),c&&Bt.range(t,c.getTime(),o,l,i)}}r(l)},A2="enum",H2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i),n!==void 0&&Bt[A2](t,n,o,l,i)}r(l)},F2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i),n!==void 0&&(Bt.type(t,n,o,l,i),Bt.range(t,n,o,l,i))}r(l)},k2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i),n!==void 0&&(Bt.type(t,n,o,l,i),Bt.range(t,n,o,l,i))}r(l)},V2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i),n!==void 0&&Bt.type(t,n,o,l,i)}r(l)},W2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i),n!==void 0&&(Bt.type(t,n,o,l,i),Bt.range(t,n,o,l,i))}r(l)},K2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i),n!==void 0&&Bt.type(t,n,o,l,i)}r(l)},G2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n,"string")&&!t.required)return r();Bt.required(t,n,o,l,i),gn(n,"string")||Bt.pattern(t,n,o,l,i)}r(l)},q2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n)&&!t.required)return r();Bt.required(t,n,o,l,i),gn(n)||Bt.type(t,n,o,l,i)}r(l)},U2=function(t,n,r,o,i){var l=[],s=Array.isArray(n)?"array":Ke(n);Bt.required(t,n,o,l,i,s),r(l)},X2=function(t,n,r,o,i){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(gn(n,"string")&&!t.required)return r();Bt.required(t,n,o,l,i,"string"),gn(n,"string")||(Bt.type(t,n,o,l,i),Bt.range(t,n,o,l,i),Bt.pattern(t,n,o,l,i),t.whitespace===!0&&Bt.whitespace(t,n,o,l,i))}r(l)},Fs=function(t,n,r,o,i){var l=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(gn(n,l)&&!t.required)return r();Bt.required(t,n,o,s,i,l),gn(n,l)||Bt.type(t,n,o,s,i)}r(s)};const Pa={string:X2,method:V2,number:W2,boolean:D2,regexp:q2,integer:k2,float:F2,array:B2,object:K2,enum:H2,pattern:G2,date:L2,url:Fs,hex:Fs,email:Fs,required:U2,any:_2};var ii=(function(){function e(t){Qt(this,e),B(this,"rules",null),B(this,"_messages",nu),this.define(t)}return Zt(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ke(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Bm(tu(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},l=n,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(p){var h=[],g={};function b(C){if(Array.isArray(C)){var S;h=(S=h).concat.apply(S,pe(C))}else h.push(C)}for(var y=0;y<p.length;y++)b(p[y]);h.length?(g=ou(h),c(h,g)):c(null,l)}if(s.messages){var d=this.messages();d===nu&&(d=tu()),Bm(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},m=s.keys||Object.keys(this.rules);m.forEach(function(p){var h=r.rules[p],g=l[p];h.forEach(function(b){var y=b;typeof y.transform=="function"&&(l===n&&(l=H({},l)),g=l[p]=y.transform(g),g!=null&&(y.type=y.type||(Array.isArray(g)?"array":Ke(g)))),typeof y=="function"?y={validator:y}:y=H({},y),y.validator=r.getValidationMethod(y),y.validator&&(y.field=p,y.fullField=y.fullField||p,y.type=r.getType(y),f[p]=f[p]||[],f[p].push({rule:y,value:g,source:l,field:p}))})});var v={};return O2(f,s,function(p,h){var g=p.rule,b=(g.type==="object"||g.type==="array")&&(Ke(g.fields)==="object"||Ke(g.defaultField)==="object");b=b&&(g.required||!g.required&&p.value),g.field=p.field;function y(w,O){return H(H({},O),{},{fullField:"".concat(g.fullField,".").concat(w),fullFields:g.fullFields?[].concat(pe(g.fullFields),[w]):[w]})}function C(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(w)?w:[w];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&g.message!==void 0&&(O=[].concat(g.message));var $=O.map(_m(g,l));if(s.first&&$.length)return v[g.field]=1,h($);if(!b)h($);else{if(g.required&&!p.value)return g.message!==void 0?$=[].concat(g.message).map(_m(g,l)):s.error&&($=[s.error(g,Gn(s.messages.required,g.field))]),h($);var I={};g.defaultField&&Object.keys(p.value).map(function(M){I[M]=g.defaultField}),I=H(H({},I),p.rule.fields);var P={};Object.keys(I).forEach(function(M){var R=I[M],z=Array.isArray(R)?R:[R];P[M]=z.map(y.bind(null,M))});var N=new e(P);N.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),N.validate(p.value,p.rule.options||s,function(M){var R=[];$&&$.length&&R.push.apply(R,pe($)),M&&M.length&&R.push.apply(R,pe(M)),h(R.length?R:null)})}}var S;if(g.asyncValidator)S=g.asyncValidator(g,p.value,C,p.source,s);else if(g.validator){try{S=g.validator(g,p.value,C,p.source,s)}catch(w){var x,E;(x=(E=console).error)===null||x===void 0||x.call(E,w),s.suppressValidatorError||setTimeout(function(){throw w},0),C(w.message)}S===!0?C():S===!1?C(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):S instanceof Array?C(S):S instanceof Error&&C(S.message)}S&&S.then&&S.then(function(){return C()},function(w){return C(w)})},function(p){u(p)},l)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Pa.hasOwnProperty(n.type))throw new Error(Gn("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Pa.required:Pa[this.getType(n)]||void 0}}]),e})();B(ii,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Pa[t]=n});B(ii,"warning",x2);B(ii,"messages",nu);B(ii,"validators",Pa);var Wn="'${name}' is not a valid ${type}",e0={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Wn,method:Wn,array:Wn,object:Wn,number:Wn,date:Wn,boolean:Wn,integer:Wn,float:Wn,regexp:Wn,email:Wn,url:Wn,hex:Wn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Lm=ii;function Y2(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Am="CODE_LOGIC_ERROR";function au(e,t,n,r,o){return iu.apply(this,arguments)}function iu(){return iu=$o(_n().mark(function e(t,n,r,o,i){var l,s,c,u,d,f,m,v,p;return _n().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return l=H({},r),delete l.ruleIndex,Lm.warning=function(){},l.validator&&(s=l.validator,l.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Am)}}),c=null,l&&l.type==="array"&&l.defaultField&&(c=l.defaultField,delete l.defaultField),u=new Lm(B({},t,[l])),d=Bo(e0,o.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(B({},t,n),H({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(b,y){var C=b.message,S=C===Am?d.default:C;return a.isValidElement(S)?a.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!f.length&&c&&Array.isArray(n)&&n.length>0)){g.next=23;break}return g.next=21,Promise.all(n.map(function(b,y){return au("".concat(t,".").concat(y),b,c,o,i)}));case 21:return m=g.sent,g.abrupt("return",m.reduce(function(b,y){return[].concat(pe(b),pe(y))},[]));case 23:return v=H(H({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),p=f.map(function(b){return typeof b=="string"?Y2(b,v):b}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),iu.apply(this,arguments)}function Q2(e,t,n,r,o,i){var l=e.join("."),s=n.map(function(d,f){var m=d.validator,v=H(H({},d),{},{ruleIndex:f});return m&&(v.validator=function(p,h,g){var b=!1,y=function(){for(var x=arguments.length,E=new Array(x),w=0;w<x;w++)E[w]=arguments[w];Promise.resolve().then(function(){Gt(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,E)})},C=m(p,h,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",Gt(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){g()}).catch(function(S){g(S||" ")})}),v}).sort(function(d,f){var m=d.warningOnly,v=d.ruleIndex,p=f.warningOnly,h=f.ruleIndex;return!!m==!!p?v-h:m?1:-1}),c;if(o===!0)c=new Promise((function(){var d=$o(_n().mark(function f(m,v){var p,h,g;return _n().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:p=0;case 1:if(!(p<s.length)){y.next=12;break}return h=s[p],y.next=5,au(l,t,h,r,i);case 5:if(g=y.sent,!g.length){y.next=9;break}return v([{errors:g,rule:h}]),y.abrupt("return");case 9:p+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}})());else{var u=s.map(function(d){return au(l,t,d,r,i).then(function(f){return{errors:f,rule:d}})});c=(o?J2(u):Z2(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function Z2(e){return lu.apply(this,arguments)}function lu(){return lu=$o(_n().mark(function e(t){return _n().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,l=(i=[]).concat.apply(i,pe(o));return l}));case 1:case"end":return r.stop()}},e)})),lu.apply(this,arguments)}function J2(e){return su.apply(this,arguments)}function su(){return su=$o(_n().mark(function e(t){var n;return _n().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(l){l.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),su.apply(this,arguments)}function rn(e){return eu(e)}function Hm(e,t){var n={};return t.forEach(function(r){var o=Ln(e,r);n=tr(n,r,o)}),n}function ko(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return t0(t,r,n)})}function t0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function eO(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ke(e)!=="object"||Ke(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return pe(o).every(function(i){var l=e[i],s=t[i];return typeof l=="function"&&typeof s=="function"?!0:l===s})}function tO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ke(t.target)==="object"&&e in t.target?t.target[e]:t}function Fm(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(pe(e.slice(0,n)),[o],pe(e.slice(n,t)),pe(e.slice(t+1,r))):i<0?[].concat(pe(e.slice(0,t)),pe(e.slice(t+1,n+1)),[o],pe(e.slice(n+1,r))):e}var nO=["name"],Qn=[];function ks(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var pd=(function(e){mr(n,e);var t=wr(n);function n(r){var o;if(Qt(this,n),o=t.call(this,r),B(qe(o),"state",{resetCount:0}),B(qe(o),"cancelRegisterFunc",null),B(qe(o),"mounted",!1),B(qe(o),"touched",!1),B(qe(o),"dirty",!1),B(qe(o),"validatePromise",void 0),B(qe(o),"prevValidating",void 0),B(qe(o),"errors",Qn),B(qe(o),"warnings",Qn),B(qe(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,rn(f)),o.cancelRegisterFunc=null}),B(qe(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(pe(m),pe(u)):[]}),B(qe(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),B(qe(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),B(qe(o),"metaCache",null),B(qe(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=H(H({},o.getMeta()),{},{destroy:c});Cr(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),B(qe(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,v=f.dependencies,p=v===void 0?[]:v,h=f.onReset,g=d.store,b=o.getNamePath(),y=o.getValue(c),C=o.getValue(g),S=u&&ko(u,b);switch(d.type==="valueUpdate"&&d.source==="external"&&!Cr(y,C)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Qn,o.warnings=Qn,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Qn,o.warnings=Qn,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(m&&ks(m,c,g,y,C,d)){o.reRender();return}break}case"setField":{var x=d.data;if(S){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||Qn),"warnings"in x&&(o.warnings=x.warnings||Qn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&ko(u,b,!0)){o.reRender();return}if(m&&!b.length&&ks(m,c,g,y,C,d)){o.reRender();return}break}case"dependenciesUpdate":{var E=p.map(rn);if(E.some(function(w){return ko(d.relatedFields,w)})){o.reRender();return}break}default:if(S||(!p.length||b.length||m)&&ks(m,c,g,y,C,d)){o.reRender();return}break}m===!0&&o.reRender()}),B(qe(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,v=f.validateOnly,p=v===void 0?!1:v,h=Promise.resolve().then($o(_n().mark(function g(){var b,y,C,S,x,E,w;return _n().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(o.mounted){$.next=2;break}return $.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,S=b.messageVariables,x=b.validateDebounce,E=o.getRules(),m&&(E=E.filter(function(I){return I}).filter(function(I){var P=I.validateTrigger;if(!P)return!0;var N=eu(P);return N.includes(m)})),!(x&&m)){$.next=10;break}return $.next=8,new Promise(function(I){setTimeout(I,x)});case 8:if(o.validatePromise===h){$.next=10;break}return $.abrupt("return",[]);case 10:return w=Q2(u,d,E,c,C,S),w.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qn;if(o.validatePromise===h){var P;o.validatePromise=null;var N=[],M=[];(P=I.forEach)===null||P===void 0||P.call(I,function(R){var z=R.rule.warningOnly,T=R.errors,j=T===void 0?Qn:T;z?M.push.apply(M,pe(j)):N.push.apply(N,pe(j))}),o.errors=N,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),$.abrupt("return",w);case 13:case"end":return $.stop()}},g)})));return p||(o.validatePromise=h,o.dirty=!0,o.errors=Qn,o.warnings=Qn,o.triggerMetaEvent(),o.reRender()),h}),B(qe(o),"isFieldValidating",function(){return!!o.validatePromise}),B(qe(o),"isFieldTouched",function(){return o.touched}),B(qe(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(oo),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),B(qe(o),"getErrors",function(){return o.errors}),B(qe(o),"getWarnings",function(){return o.warnings}),B(qe(o),"isListField",function(){return o.props.isListField}),B(qe(o),"isList",function(){return o.props.isList}),B(qe(o),"isPreserve",function(){return o.props.preserve}),B(qe(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),B(qe(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return H(H({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=cn(c);return d.length!==1||!a.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),B(qe(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Ln(c||u(!0),d)}),B(qe(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,v=u.getValueFromEvent,p=u.normalize,h=u.valuePropName,g=u.getValueProps,b=u.fieldContext,y=m!==void 0?m:b.validateTrigger,C=o.getNamePath(),S=b.getInternalHooks,x=b.getFieldsValue,E=S(oo),w=E.dispatch,O=o.getValue(),$=g||function(R){return B({},h,R)},I=c[f],P=d!==void 0?$(O):{},N=H(H({},c),P);N[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,z=arguments.length,T=new Array(z),j=0;j<z;j++)T[j]=arguments[j];v?R=v.apply(void 0,T):R=tO.apply(void 0,[h].concat(T)),p&&(R=p(R,O,x(!0))),R!==O&&w({type:"updateValue",namePath:C,value:R}),I&&I.apply(void 0,T)};var M=eu(y||[]);return M.forEach(function(R){var z=N[R];N[R]=function(){z&&z.apply(void 0,arguments);var T=o.props.rules;T&&T.length&&w({type:"validateField",namePath:C,triggerName:R})}}),N}),r.fieldContext){var i=r.fieldContext.getInternalHooks,l=i(oo),s=l.initEntityValue;s(qe(o))}return o}return Zt(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,l=o.fieldContext;if(this.mounted=!0,l){var s=l.getInternalHooks,c=s(oo),u=c.registerField;this.cancelRegisterFunc=u(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,l=this.getOnlyChild(i),s=l.child,c=l.isFunction,u;return c?u=s:a.isValidElement(s)?u=a.cloneElement(s,this.getControlled(s.props)):(Gt(!s,"`children` of Field is not validate ReactElement."),u=s),a.createElement(a.Fragment,{key:o},u)}}]),n})(a.Component);B(pd,"contextType",po);B(pd,"defaultProps",{trigger:"onChange",valuePropName:"value"});function hd(e){var t,n=e.name,r=it(e,nO),o=a.useContext(po),i=a.useContext(Va),l=n!==void 0?rn(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!i,c="keep";return s||(c="_".concat((l||[]).join("_"))),a.createElement(pd,ce({key:c,name:l,isListField:s},r,{fieldContext:o}))}function n0(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,l=e.isListField,s=a.useContext(po),c=a.useContext(Va),u=a.useRef({keys:[],id:0}),d=u.current,f=a.useMemo(function(){var h=rn(s.prefixName)||[];return[].concat(pe(h),pe(rn(t)))},[s.prefixName,t]),m=a.useMemo(function(){return H(H({},s),{},{prefixName:f})},[s,f]),v=a.useMemo(function(){return{getKey:function(g){var b=f.length,y=g[b];return[d.keys[y],g.slice(b+1)]}}},[f]);if(typeof r!="function")return Gt(!1,"Form.List only accepts function as children."),null;var p=function(g,b,y){var C=y.source;return C==="internal"?!1:g!==b};return a.createElement(Va.Provider,{value:v},a.createElement(po.Provider,{value:m},a.createElement(hd,{name:[],shouldUpdate:p,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:l??!!c},function(h,g){var b=h.value,y=b===void 0?[]:b,C=h.onChange,S=s.getFieldValue,x=function(){var $=S(f||[]);return $||[]},E={add:function($,I){var P=x();I>=0&&I<=P.length?(d.keys=[].concat(pe(d.keys.slice(0,I)),[d.id],pe(d.keys.slice(I))),C([].concat(pe(P.slice(0,I)),[$],pe(P.slice(I))))):(d.keys=[].concat(pe(d.keys),[d.id]),C([].concat(pe(P),[$]))),d.id+=1},remove:function($){var I=x(),P=new Set(Array.isArray($)?$:[$]);P.size<=0||(d.keys=d.keys.filter(function(N,M){return!P.has(M)}),C(I.filter(function(N,M){return!P.has(M)})))},move:function($,I){if($!==I){var P=x();$<0||$>=P.length||I<0||I>=P.length||(d.keys=Fm(d.keys,$,I),C(Fm(P,$,I)))}}},w=y||[];return Array.isArray(w)||(w=[]),r(w.map(function(O,$){var I=d.keys[$];return I===void 0&&(d.keys[$]=d.id,I=d.keys[$],d.id+=1),{name:$,key:I,isListField:!0}}),E,g)})))}function rO(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(l,s){l.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var r0="__@field_split__";function Vs(e){return e.map(function(t){return"".concat(Ke(t),":").concat(t)}).join(r0)}var Oo=(function(){function e(){Qt(this,e),B(this,"kvs",new Map)}return Zt(e,[{key:"set",value:function(n,r){this.kvs.set(Vs(n),r)}},{key:"get",value:function(n){return this.kvs.get(Vs(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Vs(n))}},{key:"map",value:function(n){return pe(this.kvs.entries()).map(function(r){var o=te(r,2),i=o[0],l=o[1],s=i.split(r0);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=te(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:l})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e})(),oO=["name"],aO=Zt(function e(t){var n=this;Qt(this,e),B(this,"formHooked",!1),B(this,"forceRootUpdate",void 0),B(this,"subscribable",!0),B(this,"store",{}),B(this,"fieldEntities",[]),B(this,"initialValues",{}),B(this,"callbacks",{}),B(this,"validateMessages",null),B(this,"preserve",null),B(this,"lastValidatePromise",null),B(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),B(this,"getInternalHooks",function(r){return r===oo?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Gt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),B(this,"useSubscribe",function(r){n.subscribable=r}),B(this,"prevWithoutPreserves",null),B(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,l=Bo(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var c=s.key;l=tr(l,c,Ln(r,c))}),n.prevWithoutPreserves=null,n.updateStore(l)}}),B(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Oo;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),B(this,"getInitialValue",function(r){var o=Ln(n.initialValues,r);return r.length?Bo(o):o}),B(this,"setCallbacks",function(r){n.callbacks=r}),B(this,"setValidateMessages",function(r){n.validateMessages=r}),B(this,"setPreserve",function(r){n.preserve=r}),B(this,"watchList",[]),B(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),B(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(l){l(o,i,r)})}}),B(this,"timeoutId",null),B(this,"warningUnhooked",function(){}),B(this,"updateStore",function(r){n.store=r}),B(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),B(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Oo;return n.getFieldEntities(r).forEach(function(i){var l=i.getNamePath();o.set(l,i)}),o}),B(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var l=rn(i);return o.get(l)||{INVALIDATE_NAME_PATH:rn(i)}})}),B(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,l,s;if(r===!0||Array.isArray(r)?(i=r,l=o):r&&Ke(r)==="object"&&(s=r.strict,l=r.filter),i===!0&&!l)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return c.forEach(function(d){var f,m,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var p,h;if((p=(h=d).isList)!==null&&p!==void 0&&p.call(h))return}else if(!i&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!l)u.push(v);else{var g="getMeta"in d?d.getMeta():null;l(g)&&u.push(v)}}),Hm(n.store,u.map(rn))}),B(this,"getFieldValue",function(r){n.warningUnhooked();var o=rn(r);return Ln(n.store,o)}),B(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,l){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:rn(r[l]),errors:[],warnings:[]}})}),B(this,"getFieldError",function(r){n.warningUnhooked();var o=rn(r),i=n.getFieldsError([o])[0];return i.errors}),B(this,"getFieldWarning",function(r){n.warningUnhooked();var o=rn(r),i=n.getFieldsError([o])[0];return i.warnings}),B(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var l=o[0],s=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(l)?(c=l.map(rn),u=!1):(c=null,u=l):(c=l.map(rn),u=s);var d=n.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!c)return u?d.every(function(h){return f(h)||h.isList()}):d.some(f);var m=new Oo;c.forEach(function(h){m.set(h,[])}),d.forEach(function(h){var g=h.getNamePath();c.forEach(function(b){b.every(function(y,C){return g[C]===y})&&m.update(b,function(y){return[].concat(pe(y),[h])})})});var v=function(g){return g.some(f)},p=m.map(function(h){var g=h.value;return g});return u?p.every(v):p.some(v)}),B(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),B(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(l){return l.isFieldValidating()});var i=r.map(rn);return o.some(function(l){var s=l.getNamePath();return ko(i,s)&&l.isFieldValidating()})}),B(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),B(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Oo,i=n.getFieldEntities(!0);i.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var l=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),v=n.getInitialValue(m);if(v!==void 0)Gt(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var p=o.get(m);if(p&&p.size>1)Gt(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var h=n.getFieldValue(m),g=d.isListField();!g&&(!r.skipExist||h===void 0)&&n.updateStore(tr(n.store,m,pe(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=s).push.apply(d,pe(pe(u).map(function(f){return f.entity})))}})):s=i,l(s)}),B(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Bo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(rn);i.forEach(function(l){var s=n.getInitialValue(l);n.updateStore(tr(n.store,l,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),B(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(l){var s=l.name,c=it(l,oO),u=rn(s);i.push(u),"value"in c&&n.updateStore(tr(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:l})}),n.notifyWatch(i)}),B(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var l=i.getNamePath(),s=i.getMeta(),c=H(H({},s),{},{name:l,value:n.getFieldValue(l)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),B(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),l=Ln(n.store,i);l===void 0&&n.updateStore(tr(n.store,i,o))}}),B(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),B(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!l||c.length>1)){var u=l?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!t0(f.getNamePath(),o)})){var d=n.store;n.updateStore(tr(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),B(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var l=r.namePath,s=r.triggerName;n.validateFields([l],{triggerName:s});break}}}),B(this,"notifyObservers",function(r,o,i){if(n.subscribable){var l=H(H({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,l)})}else n.forceRootUpdate()}),B(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(pe(i))}),i}),B(this,"updateValue",function(r,o){var i=rn(r),l=n.store;n.updateStore(tr(n.store,i,o)),n.notifyObservers(l,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(l,i),c=n.callbacks.onValuesChange;if(c){var u=Hm(n.store,[i]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(pe(s)))}),B(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Bo(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),B(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),B(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],l=new Oo;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=rn(d);l.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=l.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),c(m))}})};return s(r),i}),B(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var l=n.getFields();if(o){var s=new Oo;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),l.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=l.filter(function(u){var d=u.name;return ko(r,d)});c.length&&i(c,l)}}),B(this,"validateFields",function(r,o){n.warningUnhooked();var i,l;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,l=o):l=r;var s=!!i,c=s?i.map(rn):[],u=[],d=String(Date.now()),f=new Set,m=l||{},v=m.recursive,p=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||c.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(p&&!y.isFieldDirty())){var C=y.getNamePath();if(f.add(C.join(d)),!s||ko(c,C,v)){var S=y.validateRules(H({validateMessages:H(H({},e0),n.validateMessages)},l));u.push(S.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(x){var E,w=[],O=[];return(E=x.forEach)===null||E===void 0||E.call(x,function($){var I=$.rule.warningOnly,P=$.errors;I?O.push.apply(O,pe(P)):w.push.apply(w,pe(P))}),w.length?Promise.reject({name:C,errors:w,warnings:O}):{name:C,errors:w,warnings:O}}))}}});var h=rO(u);n.lastValidatePromise=h,h.catch(function(y){return y}).then(function(y){var C=y.map(function(S){var x=S.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y)});var g=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(y){var C=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:C,outOfDate:n.lastValidatePromise!==h})});g.catch(function(y){return y});var b=c.filter(function(y){return f.has(y.join(d))});return n.triggerOnFieldsChange(b),g}),B(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function bd(e){var t=a.useRef(),n=a.useState({}),r=te(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},l=new aO(i);t.current=l.getForm()}return[t.current]}var cu=a.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),o0=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,l=a.useContext(cu),s=a.useRef({});return a.createElement(cu.Provider,{value:H(H({},l),{},{validateMessages:H(H({},l.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),l.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),l.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=H(H({},s.current),{},B({},u,d))),l.registerForm(u,d)},unregisterForm:function(u){var d=H({},s.current);delete d[u],s.current=d,l.unregisterForm(u)}})},i)},iO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],lO=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,l=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,v=m===void 0?"onChange":m,p=t.onValuesChange,h=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,C=it(t,iO),S=a.useRef(null),x=a.useContext(cu),E=bd(l),w=te(E,1),O=w[0],$=O.getInternalHooks(oo),I=$.useSubscribe,P=$.setInitialValues,N=$.setCallbacks,M=$.setValidateMessages,R=$.setPreserve,z=$.destroyForm;a.useImperativeHandle(n,function(){return H(H({},O),{},{nativeElement:S.current})}),a.useEffect(function(){return x.registerForm(r,O),function(){x.unregisterForm(r)}},[x,O,r]),M(H(H({},x.validateMessages),f)),N({onValuesChange:p,onFieldsChange:function(W){if(x.triggerFormChange(r,W),h){for(var G=arguments.length,Y=new Array(G>1?G-1:0),ne=1;ne<G;ne++)Y[ne-1]=arguments[ne];h.apply(void 0,[W].concat(Y))}},onFinish:function(W){x.triggerFormFinish(r,W),g&&g(W)},onFinishFailed:b}),R(s);var T=a.useRef(null);P(o,!T.current),T.current||(T.current=!0),a.useEffect(function(){return function(){return z(y)}},[]);var j,_=typeof c=="function";if(_){var D=O.getFieldsValue(!0);j=c(D,O)}else j=c;I(!_);var k=a.useRef();a.useEffect(function(){eO(k.current||[],i||[])||O.setFields(i||[]),k.current=i},[i,O]);var V=a.useMemo(function(){return H(H({},O),{},{validateTrigger:v})},[O,v]),K=a.createElement(Va.Provider,{value:null},a.createElement(po.Provider,{value:V},j));return d===!1?K:a.createElement(d,ce({},C,{ref:S,onSubmit:function(W){W.preventDefault(),W.stopPropagation(),O.submit()},onReset:function(W){var G;W.preventDefault(),O.resetFields(),(G=C.onReset)===null||G===void 0||G.call(C,W)}}),K)};function km(e){try{return JSON.stringify(e)}catch{return Math.random()}}function a0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,l=b2(i)?{form:i}:i,s=l.form,c=a.useState(),u=te(c,2),d=u[0],f=u[1],m=a.useMemo(function(){return km(d)},[d]),v=a.useRef(m);v.current=m;var p=a.useContext(po),h=s||p,g=h&&h._init,b=rn(r),y=a.useRef(b);return y.current=b,a.useEffect(function(){if(g){var C=h.getFieldsValue,S=h.getInternalHooks,x=S(oo),E=x.registerWatch,w=function(P,N){var M=l.preserve?N:P;return typeof r=="function"?r(M):Ln(M,y.current)},O=E(function(I,P){var N=w(I,P),M=km(N);v.current!==M&&(v.current=M,f(N))}),$=w(C(),C(!0));return d!==$&&f($),O}},[g]),d}var sO=a.forwardRef(lO),la=sO;la.FormProvider=o0;la.Field=hd;la.List=n0;la.useForm=bd;la.useWatch=a0;const Nr=a.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),i0=a.createContext(null),l0=e=>{const t=Ht(e,["prefixCls"]);return a.createElement(o0,Object.assign({},t))},yd=a.createContext({prefixCls:""}),Rn=a.createContext({}),s0=({children:e,status:t,override:n})=>{const r=a.useContext(Rn),o=a.useMemo(()=>{const i=Object.assign({},r);return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return a.createElement(Rn.Provider,{value:o},e)},c0=a.createContext(void 0),Gr=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=U.createElement(s0,{override:!0,status:!0},o)),t&&(o=U.createElement(xw,null,o)),o};var u0=function(t){if(In()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},cO=function(t,n){if(!u0(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function uu(e,t){return!Array.isArray(e)&&t!==void 0?cO(e,t):u0(e)}const uO=()=>In()&&window.document.documentElement,Kl=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,l=F({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=F({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=a.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return a.createElement("span",{className:F(t,l,s,n),style:Object.assign(Object.assign({},c),r)})},dO=new xt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Gl=e=>({height:e,lineHeight:L(e)}),Vo=e=>Object.assign({width:e},Gl(e)),fO=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:dO,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ws=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Gl(e)),mO=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Vo(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Vo(o)),[`${t}${t}-sm`]:Object.assign({},Vo(i))}},vO=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:l,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},Ws(t,s)),[`${r}-lg`]:Object.assign({},Ws(o,s)),[`${r}-sm`]:Object.assign({},Ws(i,s))}},Vm=e=>Object.assign({width:e},Gl(e)),gO=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Vm(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Vm(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Ks=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Gs=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Gl(e)),pO=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:l,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Gs(r,s))},Ks(e,r,n)),{[`${n}-lg`]:Object.assign({},Gs(o,s))}),Ks(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Gs(i,s))}),Ks(e,i,`${n}-sm`))},hO=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:v,borderRadius:p,titleHeight:h,blockRadius:g,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Vo(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Vo(u)),[`${n}-sm`]:Object.assign({},Vo(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:h,background:f,borderRadius:g,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:v,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},pO(e)),mO(e)),vO(e)),gO(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[l]:{width:"100%"}},[`${t}${t}-active`]:{[`
175
+ ${r},
176
+ ${o} > li,
177
+ ${n},
178
+ ${i},
179
+ ${l},
180
+ ${s}
181
+ `]:Object.assign({},fO(e))}}},bO=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},sa=Et("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ct(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return hO(r)},bO,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),yO=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:l="default"}=e,{getPrefixCls:s}=a.useContext(tt),c=s("skeleton",t),[u,d,f]=sa(c),m=Ht(e,["prefixCls","className"]),v=F(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(a.createElement("div",{className:v},a.createElement(Kl,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:l},m))))},CO=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:l="default"}=e,{getPrefixCls:s}=a.useContext(tt),c=s("skeleton",t),[u,d,f]=sa(c),m=Ht(e,["prefixCls"]),v=F(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d,f);return u(a.createElement("div",{className:v},a.createElement(Kl,Object.assign({prefixCls:`${c}-button`,size:l},m))))},SO="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",xO=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:l}=a.useContext(tt),s=l("skeleton",t),[c,u,d]=sa(s),f=F(s,`${s}-element`,{[`${s}-active`]:i},n,r,u,d);return c(a.createElement("div",{className:f},a.createElement("div",{className:F(`${s}-image`,n),style:o},a.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},a.createElement("title",null,"Image placeholder"),a.createElement("path",{d:SO,className:`${s}-image-path`})))))},$O=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:l="default"}=e,{getPrefixCls:s}=a.useContext(tt),c=s("skeleton",t),[u,d,f]=sa(c),m=Ht(e,["prefixCls"]),v=F(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d,f);return u(a.createElement("div",{className:v},a.createElement(Kl,Object.assign({prefixCls:`${c}-input`,size:l},m))))},wO=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:l}=e,{getPrefixCls:s}=a.useContext(tt),c=s("skeleton",t),[u,d,f]=sa(c),m=F(c,`${c}-element`,{[`${c}-active`]:i},d,n,r,f);return u(a.createElement("div",{className:m},a.createElement("div",{className:F(`${c}-image`,n),style:o},l)))},EO=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},OO=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((l,s)=>a.createElement("li",{key:s,style:{width:EO(s,e)}}));return a.createElement("ul",{className:F(t,n),style:r},i)},IO=({prefixCls:e,className:t,width:n,style:r})=>a.createElement("h3",{className:F(e,t),style:Object.assign({width:n},r)});function qs(e){return e&&typeof e=="object"?e:{}}function RO(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function PO(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function NO(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Qr=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:l,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:v,className:p,style:h}=on("skeleton"),g=m("skeleton",t),[b,y,C]=sa(g);if(n||!("loading"in e)){const S=!!s,x=!!c,E=!!u;let w;if(S){const I=Object.assign(Object.assign({prefixCls:`${g}-avatar`},RO(x,E)),qs(s));w=a.createElement("div",{className:`${g}-header`},a.createElement(Kl,Object.assign({},I)))}let O;if(x||E){let I;if(x){const N=Object.assign(Object.assign({prefixCls:`${g}-title`},PO(S,E)),qs(c));I=a.createElement(IO,Object.assign({},N))}let P;if(E){const N=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},NO(S,x)),qs(u));P=a.createElement(OO,Object.assign({},N))}O=a.createElement("div",{className:`${g}-content`},I,P)}const $=F(g,{[`${g}-with-avatar`]:S,[`${g}-active`]:d,[`${g}-rtl`]:v==="rtl",[`${g}-round`]:f},p,r,o,y,C);return b(a.createElement("div",{className:$,style:Object.assign(Object.assign({},h),i)},w,O))}return l??null};Qr.Button=CO;Qr.Avatar=yO;Qr.Input=$O;Qr.Image=xO;Qr.Node=wO;function Wm(){}const MO=a.createContext({add:Wm,remove:Wm});function TO(e){const t=a.useContext(MO),n=a.useRef(null);return At(o=>{if(o){const i=e?o.querySelector(e):o;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}const Km=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=a.useContext(oi);return U.createElement(dr,Object.assign({onClick:n},e),t)},Gm=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=a.useContext(oi);return U.createElement(dr,Object.assign({},id(n),{loading:e,onClick:o},t),r)};function d0(e,t){return U.createElement("span",{className:`${e}-close-x`},t||U.createElement(Xr,{className:`${e}-close-icon`}))}const f0=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:l,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=vr("Modal",Gp()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),v=U.useMemo(()=>({confirmLoading:o,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:i,onCancel:l}),[o,s,c,f,m,n,i,l]);let p;return typeof u=="function"||typeof u>"u"?(p=U.createElement(U.Fragment,null,U.createElement(Km,null),U.createElement(Gm,null)),typeof u=="function"&&(p=u(p,{OkBtn:Gm,CancelBtn:Km})),p=U.createElement(Gh,{value:v},p)):p=u,U.createElement(Qu,{disabled:!1},p)},jO=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},zO=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},_O=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let l=o;l>=0;l--)l===0?(i[`${r}${t}-${l}`]={display:"none"},i[`${r}-push-${l}`]={insetInlineStart:"auto"},i[`${r}-pull-${l}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${l}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${l}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${l}`]={marginInlineStart:0},i[`${r}${t}-order-${l}`]={order:0}):(i[`${r}${t}-${l}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${l/o*100}%`,maxWidth:`${l/o*100}%`}],i[`${r}${t}-push-${l}`]={insetInlineStart:`${l/o*100}%`},i[`${r}${t}-pull-${l}`]={insetInlineEnd:`${l/o*100}%`},i[`${r}${t}-offset-${l}`]={marginInlineStart:`${l/o*100}%`},i[`${r}${t}-order-${l}`]={order:l});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},du=(e,t)=>_O(e,t),BO=(e,t,n)=>({[`@media (min-width: ${L(t)})`]:Object.assign({},du(e,n))}),DO=()=>({}),LO=()=>({}),AO=Et("Grid",jO,DO),m0=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),HO=Et("Grid",e=>{const t=Ct(e,{gridColumns:24}),n=m0(t);return delete n.xs,[zO(t),du(t,""),du(t,"-xs"),Object.keys(n).map(r=>BO(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},LO);function qm(e){return{position:e,inset:0}}const FO=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},qm("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},qm("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Qw(e)}]},kO=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${L(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Nt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${L(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:L(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},qn(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${L(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
182
+ ${t}-body,
183
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},VO=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},WO=e=>{const{componentCls:t}=e,n=m0(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(l=>({[`@media (min-width: ${L(r[l])})`]:{width:`var(${o}${l}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(pe(Object.keys(n).map((l,s)=>{const c=Object.keys(n)[s-1];return c?{[`${o}${l}-width`]:`var(${o}${c}-width)`}:null})),[{width:`var(${o}xs-width)`}],pe(i))}}},v0=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ct(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},g0=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${L(e.paddingMD)} ${L(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${L(e.padding)} ${L(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${L(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${L(e.paddingXS)} ${L(e.padding)}`:0,footerBorderTop:e.wireframe?`${L(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${L(e.padding*2)} ${L(e.padding*2)} ${L(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),p0=Et("Modal",e=>{const t=v0(e);return[kO(t),VO(t),FO(t),ni(t,"zoom"),WO(t)]},g0,{unitless:{titleLineHeight:!0}});var KO=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 fu;const GO=e=>{fu={x:e.pageX,y:e.pageY},setTimeout(()=>{fu=null},100)};uO()&&document.documentElement.addEventListener("click",GO,!0);const h0=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:l,getContainer:s,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:v,styles:p,children:h,loading:g,confirmLoading:b,zIndex:y,mousePosition:C,onOk:S,onCancel:x,destroyOnHidden:E,destroyOnClose:w,panelRef:O=null,modalRender:$}=e,I=KO(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:P,getPrefixCls:N,direction:M,modal:R}=a.useContext(tt),z=se=>{b||x==null||x(se)},T=se=>{S==null||S(se)},j=N("modal",t),_=N(),D=fn(j),[k,V,K]=p0(j,D),A=F(i,{[`${j}-centered`]:l??(R==null?void 0:R.centered),[`${j}-wrap-rtl`]:M==="rtl"}),W=m!==null&&!g?a.createElement(f0,Object.assign({},e,{onOk:T,onCancel:z})):null,[G,Y,ne,Q]=Ph(ul(e),ul(R),{closable:!0,closeIcon:a.createElement(Xr,{className:`${j}-close-icon`}),closeIconRender:se=>d0(j,se)}),J=$?se=>a.createElement("div",{className:`${j}-render`},$(se)):void 0,ie=`.${j}-${$?"render":"content"}`,re=TO(ie),X=dn(O,re),[oe,ee]=ia("Modal",y),[q,Z]=a.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),le=a.useMemo(()=>{const se={};return Z&&Object.keys(Z).forEach(ve=>{const ge=Z[ve];ge!==void 0&&(se[`--${j}-${ve}-width`]=typeof ge=="number"?`${ge}px`:ge)}),se},[j,Z]);return k(a.createElement(Gr,{form:!0,space:!0},a.createElement(jl.Provider,{value:ee},a.createElement(Zh,Object.assign({width:q},I,{zIndex:oe,getContainer:s===void 0?P:s,prefixCls:j,rootClassName:F(V,r,K,D),footer:W,visible:o??d,mousePosition:C??fu,onClose:z,closable:G&&Object.assign({disabled:ne,closeIcon:Y},Q),closeIcon:Y,focusTriggerAfterClose:c,transitionName:Wr(_,"zoom",e.transitionName),maskTransitionName:Wr(_,"fade",e.maskTransitionName),className:F(V,n,R==null?void 0:R.className),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),u),le),classNames:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.classNames),v),{wrapper:F(A,v==null?void 0:v.wrapper)}),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),p),panelRef:X,destroyOnClose:E??w,modalRender:J}),g?a.createElement(Qr,{active:!0,title:!1,paragraph:{rows:4},className:`${j}-body-skeleton`}):h))))},qO=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:l,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Vr()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${L(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${L(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:i,lineHeight:l},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
184
+ ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},UO=oa(["Modal","confirm"],e=>{const t=v0(e);return qO(t)},g0,{order:-1e3});var XO=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 b0=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:l,okCancel:s,footer:c,locale:u}=e,d=XO(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(l){case"info":f=a.createElement(Tl,null);break;case"success":f=a.createElement(Za,null);break;case"error":f=a.createElement(Co,null);break;default:f=a.createElement(So,null)}const m=s??l==="confirm",v=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[p]=vr("Modal"),h=u||p,g=r||(m?h==null?void 0:h.okText:h==null?void 0:h.justOkText),b=o||(h==null?void 0:h.cancelText),y=a.useMemo(()=>Object.assign({autoFocusButton:v,cancelTextLocale:b,okTextLocale:g,mergedOkCancel:m},d),[v,b,g,m,d]),C=a.createElement(a.Fragment,null,a.createElement($m,null),a.createElement(wm,null)),S=e.title!==void 0&&e.title!==null,x=`${i}-body`;return a.createElement("div",{className:`${i}-body-wrapper`},a.createElement("div",{className:F(x,{[`${x}-has-title`]:S})},f,a.createElement("div",{className:`${i}-paragraph`},S&&a.createElement("span",{className:`${i}-title`},e.title),a.createElement("div",{className:`${i}-content`},e.content))),c===void 0||typeof c=="function"?a.createElement(Gh,{value:y},a.createElement("div",{className:`${i}-btns`},typeof c=="function"?c(C,{OkBtn:wm,CancelBtn:$m}):C)):c,a.createElement(UO,{prefixCls:t}))},YO=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:l,rootPrefixCls:s,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f,title:m}=e,v=`${i}-confirm`,p=e.width||416,h=e.style||{},g=e.mask===void 0?!0:e.mask,b=e.maskClosable===void 0?!1:e.maskClosable,y=F(v,`${v}-${e.type}`,{[`${v}-rtl`]:o==="rtl"},e.className),[,C]=pn(),S=a.useMemo(()=>n!==void 0?n:C.zIndexPopupBase+nd,[n,C]);return a.createElement(h0,Object.assign({},e,{className:y,wrapClassName:F({[`${v}-centered`]:!!e.centered},l),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:m,footer:null,transitionName:Wr(s||"","zoom",e.transitionName),maskTransitionName:Wr(s||"","fade",e.maskTransitionName),mask:g,maskClosable:b,style:h,styles:Object.assign({body:c,mask:r},f),width:p,zIndex:S,closable:u}),a.createElement(b0,Object.assign({},e,{confirmPrefixCls:v})))},y0=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(gr,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(YO,Object.assign({},e)))},ao=[];let C0="";function S0(){return C0}const QO=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,l=Gp(),s=a.useContext(tt),c=S0()||s.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0),U.createElement(y0,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:l,getContainer:d}))};function li(e){const t=bh(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),o,i;function l(...d){var f;if(d.some(p=>p==null?void 0:p.triggerCancel)){var v;(f=e.onCancel)===null||f===void 0||(v=f).call.apply(v,[e,()=>{}].concat(pe(d.slice(1))))}for(let p=0;p<ao.length;p++)if(ao[p]===c){ao.splice(p,1);break}i()}const s=d=>{clearTimeout(o),o=setTimeout(()=>{const f=t.getPrefixCls(void 0,S0()),m=t.getIconPrefixCls(),v=t.getTheme(),p=U.createElement(QO,Object.assign({},d));i=ad()(U.createElement(gr,{prefixCls:f,iconPrefixCls:m,theme:v},typeof t.holderRender=="function"?t.holderRender(p):p),n)})};function c(...d){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),l.apply(this,d)}}),r.visible&&delete r.visible,s(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),s(r)}return s(r),ao.push(c),{destroy:c,update:u}}function x0(e){return Object.assign(Object.assign({},e),{type:"warning"})}function $0(e){return Object.assign(Object.assign({},e),{type:"info"})}function w0(e){return Object.assign(Object.assign({},e),{type:"success"})}function E0(e){return Object.assign(Object.assign({},e),{type:"error"})}function O0(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function ZO({rootPrefixCls:e}){C0=e}var JO=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 eI=(e,t)=>{var n,{afterClose:r,config:o}=e,i=JO(e,["afterClose","config"]);const[l,s]=a.useState(!0),[c,u]=a.useState(o),{direction:d,getPrefixCls:f}=a.useContext(tt),m=f("modal"),v=f(),p=()=>{var y;r(),(y=c.afterClose)===null||y===void 0||y.call(c)},h=(...y)=>{var C;if(s(!1),y.some(E=>E==null?void 0:E.triggerCancel)){var x;(C=c.onCancel)===null||C===void 0||(x=C).call.apply(x,[c,()=>{}].concat(pe(y.slice(1))))}};a.useImperativeHandle(t,()=>({destroy:h,update:y=>{u(C=>{const S=typeof y=="function"?y(C):y;return Object.assign(Object.assign({},C),S)})}}));const g=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[b]=vr("Modal",cr.Modal);return a.createElement(y0,Object.assign({prefixCls:m,rootPrefixCls:v},c,{close:h,open:l,afterClose:p,okText:c.okText||(g?b==null?void 0:b.okText:b==null?void 0:b.justOkText),direction:c.direction||d,cancelText:c.cancelText||(b==null?void 0:b.cancelText)},i))},tI=a.forwardRef(eI);let Um=0;const nI=a.memo(a.forwardRef((e,t)=>{const[n,r]=_$();return a.useImperativeHandle(t,()=>({patchElement:r}),[r]),a.createElement(a.Fragment,null,n)}));function I0(){const e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&(pe(t).forEach(l=>{l()}),n([]))},[t]);const r=a.useCallback(i=>function(s){var c;Um+=1;const u=a.createRef();let d;const f=new Promise(g=>{d=g});let m=!1,v;const p=a.createElement(tI,{key:`modal-${Um}`,config:i(s),ref:u,afterClose:()=>{v==null||v()},isSilent:()=>m,onConfirm:g=>{d(g)}});return v=(c=e.current)===null||c===void 0?void 0:c.patchElement(p),v&&ao.push(v),{destroy:()=>{function g(){var b;(b=u.current)===null||b===void 0||b.destroy()}u.current?g():n(b=>[].concat(pe(b),[g]))},update:g=>{function b(){var y;(y=u.current)===null||y===void 0||y.update(g)}u.current?b():n(y=>[].concat(pe(y),[b]))},then:g=>(m=!0,f.then(g))}},[]);return[a.useMemo(()=>({info:r($0),success:r(w0),error:r(E0),warning:r(x0),confirm:r(O0)}),[r]),a.createElement(nI,{key:"modal-holder",ref:e})]}const rI=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new xt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),l=new xt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new xt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new xt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},oI=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],aI={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},iI=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[aI[t]]:{value:0,_skip_check_:!0}}}}},lI=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},sI=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},cI=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},lI(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},sI(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},oI.map(n=>iI(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},uI=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:l,colorSuccess:s,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:v,notificationMarginEdge:p,notificationProgressBg:h,notificationProgressHeight:g,fontSize:b,lineHeight:y,width:C,notificationIconSize:S,colorText:x,colorSuccessBg:E,colorErrorBg:w,colorInfoBg:O,colorWarningBg:$}=e,I=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:m,borderRadius:l,boxShadow:r,[I]:{padding:v,width:C,maxWidth:`calc(100vw - ${L(e.calc(p).mul(2).equal())})`,lineHeight:y,wordWrap:"break-word",borderRadius:l,overflow:"hidden","&-success":E?{background:E}:{},"&-error":w?{background:w}:{},"&-info":O?{background:O}:{},"&-warning":$?{background:$}:{}},[`${I}-message`]:{color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${I}-description`]:{fontSize:b,color:x,marginTop:e.marginXS},[`${I}-closable ${I}-message`]:{paddingInlineEnd:e.paddingLG},[`${I}-with-icon ${I}-message`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:o},[`${I}-with-icon ${I}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:b},[`${I}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${I}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},qn(e)),[`${I}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${L(l)} * 2)`,left:{_skip_check_:!0,value:l},right:{_skip_check_:!0,value:l},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:l,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:l,background:h}},[`${I}-actions`]:{float:"right",marginTop:e.marginSM}}},dI=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,l=`${t}-notice`,s=new xt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Nt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${l}-actions`]:{float:"left"}}})},{[t]:{[`${l}-wrapper`]:uI(e)}}]},fI=e=>({zIndexPopup:e.zIndexPopupBase+nd+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),mI=e=>{const t=e.paddingMD,n=e.paddingLG;return Ct(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${L(e.paddingMD)} ${L(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},vI=Et("Notification",e=>{const t=mI(e);return[dI(t),rI(t),cI(t)]},fI);function R0(e,t){return t===null||t===!1?null:t||a.createElement(Xr,{className:`${e}-close-icon`})}const gI={success:Za,info:Tl,error:Co,warning:So},pI=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,actions:l,role:s="alert"}=e;let c=null;return n?c=a.createElement("span",{className:`${t}-icon`},n):r&&(c=a.createElement(gI[r]||null,{className:F(`${t}-icon`,`${t}-icon-${r}`)})),a.createElement("div",{className:F({[`${t}-with-icon`]:c}),role:s},c,a.createElement("div",{className:`${t}-message`},o),i&&a.createElement("div",{className:`${t}-description`},i),l&&a.createElement("div",{className:`${t}-actions`},l))};function hI(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function bI(e){return{motionName:`${e}-fade`}}function yI(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var CI=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 Xm=24,SI=4.5,xI="topRight",$I=({children:e,prefixCls:t})=>{const n=fn(t),[r,o,i]=vI(t,n);return r(U.createElement(Ih,{classNames:{list:F(o,i,n)}},e))},wI=(e,{prefixCls:t,key:n})=>U.createElement($I,{prefixCls:t,key:n},e),EI=U.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:l,rtl:s,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:v,getPopupContainer:p,notification:h,direction:g}=a.useContext(tt),[,b]=pn(),y=o||v("notification"),C=O=>hI(O,n??Xm,r??Xm),S=()=>F({[`${y}-rtl`]:s??g==="rtl"}),x=()=>bI(y),[E,w]=Rh({prefixCls:y,style:C,className:S,motion:x,closable:!0,closeIcon:R0(y),duration:d??SI,getContainer:()=>(i==null?void 0:i())||(p==null?void 0:p())||document.body,maxCount:l,pauseOnHover:f,showProgress:m,onAllRemoved:c,renderNotifications:wI,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:b.margin}});return U.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:y,notification:h})),w});function OI(e){const t=U.useRef(null);return Er(),[U.useMemo(()=>{const r=s=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:v,description:p,icon:h,type:g,btn:b,actions:y,className:C,style:S,role:x="alert",closeIcon:E,closable:w}=s,O=CI(s,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),$=y??b,I=R0(m,yI(E,e,f));return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:xI},O),{content:U.createElement(pI,{prefixCls:m,icon:h,type:g,message:v,description:p,actions:$,role:x}),className:F(g&&`${m}-${g}`,C,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),S),closeIcon:I,closable:w??!!I}))},i={open:r,destroy:s=>{var c,u;s!==void 0?(c=t.current)===null||c===void 0||c.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{i[s]=c=>r(Object.assign(Object.assign({},c),{type:s}))}),i},[]),U.createElement(EI,Object.assign({key:"notification-holder"},e,{ref:t}))]}function II(e){return OI(e)}const mu=U.createContext({}),P0=U.createContext({message:{},notification:{},modal:{}}),RI=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},PI=()=>({}),NI=Et("App",RI,PI),MI=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:l,style:s,component:c="div"}=e,{direction:u,getPrefixCls:d}=a.useContext(tt),f=d("app",t),[m,v,p]=NI(f),h=F(v,f,r,o,p,{[`${f}-rtl`]:u==="rtl"}),g=a.useContext(mu),b=U.useMemo(()=>({message:Object.assign(Object.assign({},g.message),i),notification:Object.assign(Object.assign({},g.notification),l)}),[i,l,g.message,g.notification]),[y,C]=_h(b.message),[S,x]=II(b.notification),[E,w]=I0(),O=U.useMemo(()=>({message:y,notification:S,modal:E}),[y,S,E]);Er()(!(p&&c===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const $=c===!1?U.Fragment:c,I={className:h,style:s};return m(U.createElement(P0.Provider,{value:O},U.createElement(mu.Provider,{value:b},U.createElement($,Object.assign({},c===!1?void 0:I),w,C,x,n))))},TI=()=>U.useContext(P0),jI=MI;jI.useApp=TI;function N0(e){return t=>a.createElement(gr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},a.createElement(e,Object.assign({},t)))}const Cd=(e,t,n,r,o)=>N0(l=>{const{prefixCls:s,style:c}=l,u=a.useRef(null),[d,f]=a.useState(0),[m,v]=a.useState(0),[p,h]=Wt(!1,{value:l.open}),{getPrefixCls:g}=a.useContext(tt),b=g(r||"select",s);a.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(E=>{const w=E[0].target;f(w.offsetHeight+8),v(w.offsetWidth)}),x=setInterval(()=>{var E;const w=o?`.${o(b)}`:`.${b}-dropdown`,O=(E=u.current)===null||E===void 0?void 0:E.querySelector(w);O&&(clearInterval(x),S.observe(O))},10);return()=>{clearInterval(x),S.disconnect()}}},[b]);let y=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:p,visible:p,getPopupContainer:()=>u.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:d,position:"relative",minWidth:m};return a.createElement("div",{ref:u,style:C},a.createElement(e,Object.assign({},y)))}),ql=(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 Ul=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,l=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(o):r;return a.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),l==null||l(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:a.createElement("span",{className:F(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},i))},zI=function(t,n,r,o,i){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=U.useMemo(function(){if(Ke(o)==="object")return o.clearIcon;if(i)return i},[o,i]),d=U.useMemo(function(){return!!(!l&&o&&(r.length||s)&&!(c==="combobox"&&s===""))},[o,l,r.length,s,c]);return{allowClear:d,clearIcon:U.createElement(Ul,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},M0=a.createContext(null);function _I(){return a.useContext(M0)}function BI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=a.useState(!1),n=te(t,2),r=n[0],o=n[1],i=a.useRef(null),l=function(){window.clearTimeout(i.current)};a.useEffect(function(){return l},[]);var s=function(u,d){l(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,l]}function T0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=a.useRef(null),n=a.useRef(null);a.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function DI(e,t,n,r){var o=a.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},a.useEffect(function(){function i(l){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=l.target;c.shadowRoot&&l.composed&&(c=l.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function LI(e){return e&&![Be.ESC,Be.SHIFT,Be.BACKSPACE,Be.TAB,Be.WIN_KEY,Be.ALT,Be.META,Be.WIN_KEY_RIGHT,Be.CTRL,Be.SEMICOLON,Be.EQUALS,Be.CAPS_LOCK,Be.CONTEXT_MENU,Be.F1,Be.F2,Be.F3,Be.F4,Be.F5,Be.F6,Be.F7,Be.F8,Be.F9,Be.F10,Be.F11,Be.F12].includes(e)}var AI=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Io=void 0;function HI(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,l=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,v=e.display,p=e.order,h=e.component,g=h===void 0?"div":h,b=it(e,AI),y=l&&!v;function C(O){c(u,O)}a.useEffect(function(){return function(){C(null)}},[]);var S=i&&o!==Io?i(o,{index:p}):m,x;r||(x={opacity:y?0:1,height:y?0:Io,overflowY:y?"hidden":Io,order:l?p:Io,pointerEvents:y?"none":Io,position:y?"absolute":Io});var E={};y&&(E["aria-hidden"]=!0);var w=a.createElement(g,ce({className:F(!r&&n,d),style:H(H({},x),f)},E,b,{ref:t}),S);return l&&(w=a.createElement(An,{onResize:function($){var I=$.offsetWidth;C(I)},disabled:s},w)),w}var Ao=a.forwardRef(HI);Ao.displayName="Item";function FI(e){if(typeof MessageChannel>"u")Ot(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function kI(){var e=a.useRef(null),t=function(r){e.current||(e.current=[],FI(function(){uo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Ro(e,t){var n=a.useState(t),r=te(n,2),o=r[0],i=r[1],l=At(function(s){e(function(){i(s)})});return[o,l]}var vl=U.createContext(null),VI=["component"],WI=["className"],KI=["className"],GI=function(t,n){var r=a.useContext(vl);if(!r){var o=t.component,i=o===void 0?"div":o,l=it(t,VI);return a.createElement(i,ce({},l,{ref:n}))}var s=r.className,c=it(r,WI),u=t.className,d=it(t,KI);return a.createElement(vl.Provider,{value:null},a.createElement(Ao,ce({ref:n,className:F(s,u)},c,d)))},j0=a.forwardRef(GI);j0.displayName="RawItem";var qI=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],z0="responsive",_0="invalidate";function UI(e){return"+ ".concat(e.length," ...")}function XI(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,l=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,v=e.className,p=e.maxCount,h=e.renderRest,g=e.renderRawRest,b=e.prefix,y=e.suffix,C=e.component,S=C===void 0?"div":C,x=e.itemComponent,E=e.onVisibleChange,w=it(e,qI),O=f==="full",$=kI(),I=Ro($,null),P=te(I,2),N=P[0],M=P[1],R=N||0,z=Ro($,new Map),T=te(z,2),j=T[0],_=T[1],D=Ro($,0),k=te(D,2),V=k[0],K=k[1],A=Ro($,0),W=te(A,2),G=W[0],Y=W[1],ne=Ro($,0),Q=te(ne,2),J=Q[0],ie=Q[1],re=Ro($,0),X=te(re,2),oe=X[0],ee=X[1],q=a.useState(null),Z=te(q,2),le=Z[0],se=Z[1],ve=a.useState(null),ge=te(ve,2),ae=ge[0],fe=ge[1],ue=a.useMemo(function(){return ae===null&&O?Number.MAX_SAFE_INTEGER:ae||0},[ae,N]),de=a.useState(!1),xe=te(de,2),we=xe[0],Le=xe[1],je="".concat(r,"-item"),Oe=Math.max(V,G),Te=p===z0,he=i.length&&Te,me=p===_0,$e=he||typeof p=="number"&&i.length>p,Se=a.useMemo(function(){var Ce=i;return he?N===null&&O?Ce=i:Ce=i.slice(0,Math.min(i.length,R/d)):typeof p=="number"&&(Ce=i.slice(0,p)),Ce},[i,d,N,p,he]),Re=a.useMemo(function(){return he?i.slice(ue+1):i.slice(Se.length)},[i,Se,he,ue]),be=a.useCallback(function(Ce,ye){var Ne;return typeof c=="function"?c(Ce):(Ne=c&&(Ce==null?void 0:Ce[c]))!==null&&Ne!==void 0?Ne:ye},[c]),Ie=a.useCallback(l||function(Ce){return Ce},[l]);function De(Ce,ye,Ne){ae===Ce&&(ye===void 0||ye===le)||(fe(Ce),Ne||(Le(Ce<i.length-1),E==null||E(Ce)),ye!==void 0&&se(ye))}function ke(Ce,ye){M(ye.clientWidth)}function gt(Ce,ye){_(function(Ne){var Qe=new Map(Ne);return ye===null?Qe.delete(Ce):Qe.set(Ce,ye),Qe})}function ht(Ce,ye){Y(ye),K(G)}function Pe(Ce,ye){ie(ye)}function We(Ce,ye){ee(ye)}function Ye(Ce){return j.get(be(Se[Ce],Ce))}wt(function(){if(R&&typeof Oe=="number"&&Se){var Ce=J+oe,ye=Se.length,Ne=ye-1;if(!ye){De(0,null);return}for(var Qe=0;Qe<ye;Qe+=1){var Ze=Ye(Qe);if(O&&(Ze=Ze||0),Ze===void 0){De(Qe-1,void 0,!0);break}if(Ce+=Ze,Ne===0&&Ce<=R||Qe===Ne-1&&Ce+Ye(Ne)<=R){De(Ne,null);break}else if(Ce+Oe>R){De(Qe-1,Ce-Ze-oe+G);break}}y&&Ye(0)+oe>R&&se(null)}},[R,j,G,J,oe,be,Se]);var _e=we&&!!Re.length,Ge={};le!==null&&he&&(Ge={position:"absolute",left:le,top:0});var vt={prefixCls:je,responsive:he,component:x,invalidate:me},dt=s?function(Ce,ye){var Ne=be(Ce,ye);return a.createElement(vl.Provider,{key:Ne,value:H(H({},vt),{},{order:ye,item:Ce,itemKey:Ne,registerSize:gt,display:ye<=ue})},s(Ce,ye))}:function(Ce,ye){var Ne=be(Ce,ye);return a.createElement(Ao,ce({},vt,{order:ye,key:Ne,item:Ce,renderItem:Ie,itemKey:Ne,registerSize:gt,display:ye<=ue}))},Ae={order:_e?ue:Number.MAX_SAFE_INTEGER,className:"".concat(je,"-rest"),registerSize:ht,display:_e},Je=h||UI,Ue=g?a.createElement(vl.Provider,{value:H(H({},vt),Ae)},g(Re)):a.createElement(Ao,ce({},vt,Ae),typeof Je=="function"?Je(Re):Je),Ee=a.createElement(S,ce({className:F(!me&&r,v),style:m,ref:t},w),b&&a.createElement(Ao,ce({},vt,{responsive:Te,responsiveDisabled:!he,order:-1,className:"".concat(je,"-prefix"),registerSize:Pe,display:!0}),b),Se.map(dt),$e?Ue:null,y&&a.createElement(Ao,ce({},vt,{responsive:Te,responsiveDisabled:!he,order:ue,className:"".concat(je,"-suffix"),registerSize:We,display:!0,style:Ge}),y));return Te?a.createElement(An,{onResize:ke,disabled:!he},Ee):Ee}var yr=a.forwardRef(XI);yr.displayName="Overflow";yr.Item=j0;yr.RESPONSIVE=z0;yr.INVALIDATE=_0;function YI(e,t,n){var r=H(H({},e),t);return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(r[o]=function(){for(var l,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return i.apply(void 0,c),(l=e[o])===null||l===void 0?void 0:l.call.apply(l,[e].concat(c))})}),r}var QI=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ZI=function(t,n){var r=t.prefixCls,o=t.id,i=t.inputElement,l=t.autoFocus,s=t.autoComplete,c=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,m=t.attrs,v=it(t,QI),p=i||a.createElement("input",null),h=p,g=h.ref,b=h.props;return"maxLength"in p.props,p=a.cloneElement(p,H(H(H({type:"search"},YI(v,b)),{},{id:o,ref:dn(n,g),autoComplete:s||"off",autoFocus:l,className:F("".concat(r,"-selection-search-input"),b==null?void 0:b.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?u:void 0},m),{},{value:c?d:"",readOnly:!c,unselectable:c?null:"on",style:H(H({},b.style),{},{opacity:c?null:0})})),p},B0=a.forwardRef(ZI);function D0(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var JI=typeof window<"u"&&window.document&&window.document.documentElement,eR=JI;function tR(e){return e!=null}function nR(e){return!e&&e!==0}function Ym(e){return["string","number"].includes(Ke(e))}function L0(e){var t=void 0;return e&&(Ym(e.title)?t=e.title.toString():Ym(e.label)&&(t=e.label.toString())),t}function rR(e,t){eR?a.useLayoutEffect(e,t):a.useEffect(e,t)}function oR(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Qm=function(t){t.preventDefault(),t.stopPropagation()},aR=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,l=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,v=t.autoFocus,p=t.autoComplete,h=t.activeDescendantId,g=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,S=t.maxTagPlaceholder,x=S===void 0?function(ee){return"+ ".concat(ee.length," ...")}:S,E=t.tagRender,w=t.onToggleOpen,O=t.onRemove,$=t.onInputChange,I=t.onInputPaste,P=t.onInputKeyDown,N=t.onInputMouseDown,M=t.onInputCompositionStart,R=t.onInputCompositionEnd,z=t.onInputBlur,T=a.useRef(null),j=a.useState(0),_=te(j,2),D=_[0],k=_[1],V=a.useState(!1),K=te(V,2),A=K[0],W=K[1],G="".concat(r,"-selection"),Y=i||f==="multiple"&&s===!1||f==="tags"?l:"",ne=f==="tags"||f==="multiple"&&s===!1||m&&(i||A);rR(function(){k(T.current.scrollWidth)},[Y]);var Q=function(q,Z,le,se,ve){return a.createElement("span",{title:L0(q),className:F("".concat(G,"-item"),B({},"".concat(G,"-item-disabled"),le))},a.createElement("span",{className:"".concat(G,"-item-content")},Z),se&&a.createElement(Ul,{className:"".concat(G,"-item-remove"),onMouseDown:Qm,onClick:ve,customizeIcon:b},"×"))},J=function(q,Z,le,se,ve,ge){var ae=function(ue){Qm(ue),w(!i)};return a.createElement("span",{onMouseDown:ae},E({label:Z,value:q,disabled:le,closable:se,onClose:ve,isMaxTag:!!ge}))},ie=function(q){var Z=q.disabled,le=q.label,se=q.value,ve=!d&&!Z,ge=le;if(typeof C=="number"&&(typeof le=="string"||typeof le=="number")){var ae=String(ge);ae.length>C&&(ge="".concat(ae.slice(0,C),"..."))}var fe=function(de){de&&de.stopPropagation(),O(q)};return typeof E=="function"?J(se,ge,Z,ve,fe):Q(q,ge,Z,ve,fe)},re=function(q){if(!o.length)return null;var Z=typeof x=="function"?x(q):x;return typeof E=="function"?J(void 0,Z,!1,!1,void 0,!0):Q({title:Z},Z,!1)},X=a.createElement("div",{className:"".concat(G,"-search"),style:{width:D},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},a.createElement(B0,{ref:c,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:v,autoComplete:p,editable:ne,activeDescendantId:h,value:Y,onKeyDown:P,onMouseDown:N,onChange:$,onPaste:I,onCompositionStart:M,onCompositionEnd:R,onBlur:z,tabIndex:g,attrs:xn(t,!0)}),a.createElement("span",{ref:T,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},Y," ")),oe=a.createElement(yr,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:ie,renderRest:re,suffix:X,itemKey:oR,maxCount:y});return a.createElement("span",{className:"".concat(G,"-wrap")},oe,!o.length&&!Y&&a.createElement("span",{className:"".concat(G,"-placeholder")},u))},iR=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,l=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,v=t.placeholder,p=t.tabIndex,h=t.showSearch,g=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,S=t.onInputMouseDown,x=t.onInputChange,E=t.onInputPaste,w=t.onInputCompositionStart,O=t.onInputCompositionEnd,$=t.onInputBlur,I=t.title,P=a.useState(!1),N=te(P,2),M=N[0],R=N[1],z=d==="combobox",T=z||h,j=m[0],_=g||"";z&&b&&!M&&(_=b),a.useEffect(function(){z&&R(!1)},[z,b]);var D=d!=="combobox"&&!f&&!h?!1:!!_,k=I===void 0?L0(j):I,V=a.useMemo(function(){return j?null:a.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:D?{visibility:"hidden"}:void 0},v)},[j,D,v,r]);return a.createElement("span",{className:"".concat(r,"-selection-wrap")},a.createElement("span",{className:"".concat(r,"-selection-search")},a.createElement(B0,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:l,autoFocus:s,autoComplete:c,editable:T,activeDescendantId:u,value:_,onKeyDown:C,onMouseDown:S,onChange:function(A){R(!0),x(A)},onPaste:E,onCompositionStart:w,onCompositionEnd:O,onBlur:$,tabIndex:p,attrs:xn(t,!0),maxLength:z?y:void 0})),!z&&j?a.createElement("span",{className:"".concat(r,"-selection-item"),title:k,style:D?{visibility:"hidden"}:void 0},j.label):null,V)},lR=function(t,n){var r=a.useRef(null),o=a.useRef(!1),i=t.prefixCls,l=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,v=t.onSearch,p=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,b=t.onInputBlur,y=t.domRef;a.useImperativeHandle(n,function(){return{focus:function(k){r.current.focus(k)},blur:function(){r.current.blur()}}});var C=T0(0),S=te(C,2),x=S[0],E=S[1],w=function(k){var V=k.which,K=r.current instanceof HTMLTextAreaElement;!K&&l&&(V===Be.UP||V===Be.DOWN)&&k.preventDefault(),g&&g(k),V===Be.ENTER&&s==="tags"&&!o.current&&!l&&(p==null||p(k.target.value)),!(K&&!l&&~[Be.UP,Be.DOWN,Be.LEFT,Be.RIGHT].indexOf(V))&&LI(V)&&h(!0)},O=function(){E(!0)},$=a.useRef(null),I=function(k){v(k,!0,o.current)!==!1&&h(!0)},P=function(){o.current=!0},N=function(k){o.current=!1,s!=="combobox"&&I(k.target.value)},M=function(k){var V=k.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var K=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(K,$.current)}$.current=null,I(V)},R=function(k){var V=k.clipboardData,K=V==null?void 0:V.getData("text");$.current=K||""},z=function(k){var V=k.target;if(V!==r.current){var K=document.body.style.msTouchAction!==void 0;K?setTimeout(function(){r.current.focus()}):r.current.focus()}},T=function(k){var V=x();k.target!==r.current&&!V&&!(s==="combobox"&&d)&&k.preventDefault(),(s!=="combobox"&&(!c||!V)||!l)&&(l&&m!==!1&&v("",!0,!1),h())},j={inputRef:r,onInputKeyDown:w,onInputMouseDown:O,onInputChange:M,onInputPaste:R,onInputCompositionStart:P,onInputCompositionEnd:N,onInputBlur:b},_=s==="multiple"||s==="tags"?a.createElement(aR,ce({},t,j)):a.createElement(iR,ce({},t,j));return a.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:z,onMouseDown:T},f&&a.createElement("div",{className:"".concat(i,"-prefix")},f),_)},sR=a.forwardRef(lR);function cR(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},l=i.className,s=i.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=a.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],h=n.points[1],g=p[0],b=p[1],y=h[0],C=h[1];g===y||!["t","b"].includes(g)?v.top=f:g==="t"?v.top=0:v.bottom=0,b===C||!["l","r"].includes(b)?v.left=u:b==="l"?v.left=0:v.right=0}return a.createElement("div",{ref:m,className:F("".concat(t,"-arrow"),l),style:v},s)}function uR(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?a.createElement(Hn,ce({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var s=l.className;return a.createElement("div",{style:{zIndex:r},className:F("".concat(t,"-mask"),s)})}):null}var dR=a.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),fR=a.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,l=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,v=e.arrow,p=e.arrowPos,h=e.align,g=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,S=e.autoDestroy,x=e.portal,E=e.zIndex,w=e.onMouseEnter,O=e.onMouseLeave,$=e.onPointerEnter,I=e.onPointerDownCapture,P=e.ready,N=e.offsetX,M=e.offsetY,R=e.offsetR,z=e.offsetB,T=e.onAlign,j=e.onPrepare,_=e.stretch,D=e.targetWidth,k=e.targetHeight,V=typeof n=="function"?n():n,K=c||u,A=(C==null?void 0:C.length)>0,W=a.useState(!C||!A),G=te(W,2),Y=G[0],ne=G[1];if(wt(function(){!Y&&A&&l&&ne(!0)},[Y,A,l]),!Y)return null;var Q="auto",J={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(P||!c){var ie,re=h.points,X=h.dynamicInset||((ie=h._experimental)===null||ie===void 0?void 0:ie.dynamicInset),oe=X&&re[0][1]==="r",ee=X&&re[0][0]==="b";oe?(J.right=R,J.left=Q):(J.left=N,J.right=Q),ee?(J.bottom=z,J.top=Q):(J.top=M,J.bottom=Q)}var q={};return _&&(_.includes("height")&&k?q.height=k:_.includes("minHeight")&&k&&(q.minHeight=k),_.includes("width")&&D?q.width=D:_.includes("minWidth")&&D&&(q.minWidth=D)),c||(q.pointerEvents="none"),a.createElement(x,{open:y||K,getContainer:C&&function(){return C(l)},autoDestroy:S},a.createElement(uR,{prefixCls:o,open:c,zIndex:E,mask:m,motion:b}),a.createElement(An,{onResize:T,disabled:!c},function(Z){return a.createElement(Hn,ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:j,onEnterPrepare:j,visible:c,onVisibleChanged:function(se){var ve;g==null||(ve=g.onVisibleChanged)===null||ve===void 0||ve.call(g,se),s(se)}}),function(le,se){var ve=le.className,ge=le.style,ae=F(o,ve,r);return a.createElement("div",{ref:dn(Z,t,se),className:ae,style:H(H(H(H({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},J),q),ge),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:w,onMouseLeave:O,onPointerEnter:$,onClick:f,onPointerDownCapture:I},v&&a.createElement(cR,{prefixCls:o,arrow:v,arrowPos:p,align:h}),a.createElement(dR,{cache:!c&&!d},V))})}))}),mR=a.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=sr(n),i=a.useCallback(function(s){za(t,r?r(s):s)},[r]),l=Tr(i,Ur(n));return o?a.cloneElement(n,{ref:l}):n}),Zm=a.createContext(null);function Jm(e){return e?Array.isArray(e)?e:[e]:[]}function vR(e,t,n,r){return a.useMemo(function(){var o=Jm(n??t),i=Jm(r??t),l=new Set(o),s=new Set(i);return e&&(l.has("hover")&&(l.delete("hover"),l.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[l,s]},[e,t,n,r])}function gR(){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 pR(e,t,n,r){for(var o=n.points,i=Object.keys(e),l=0;l<i.length;l+=1){var s,c=i[l];if(gR((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function ev(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function si(e){return e.ownerDocument.defaultView}function vu(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=si(n).getComputedStyle(n),i=o.overflowX,l=o.overflowY,s=o.overflow;[i,l,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ca(e){return Wa(parseFloat(e),0)}function tv(e,t){var n=H({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=si(r).getComputedStyle(r),i=o.overflow,l=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,v=r.clientHeight,p=r.offsetWidth,h=r.clientWidth,g=Ca(s),b=Ca(c),y=Ca(u),C=Ca(d),S=Wa(Math.round(f.width/p*1e3)/1e3),x=Wa(Math.round(f.height/m*1e3)/1e3),E=(p-h-y-C)*S,w=(m-v-g-b)*x,O=g*x,$=b*x,I=y*S,P=C*S,N=0,M=0;if(i==="clip"){var R=Ca(l);N=R*S,M=R*x}var z=f.x+I-N,T=f.y+O-M,j=z+f.width+2*N-I-P-E,_=T+f.height+2*M-O-$-w;n.left=Math.max(n.left,z),n.top=Math.max(n.top,T),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,_)}}),n}function nv(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 rv(e,t){var n=t||[],r=te(n,2),o=r[0],i=r[1];return[nv(e.width,o),nv(e.height,i)]}function ov(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Po(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 zr(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 hR(e,t,n,r,o,i,l){var s=a.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=te(s,2),u=c[0],d=c[1],f=a.useRef(0),m=a.useMemo(function(){return t?vu(t):[]},[t]),v=a.useRef({}),p=function(){v.current={}};e||p();var h=At(function(){if(t&&n&&e){let Ut=function(Xn,On){var Tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,rr=K.x+Xn,jr=K.y+On,vs=rr+ee,gs=jr+oe,ps=Math.max(rr,Tn.left),st=Math.max(jr,Tn.top),yt=Math.min(vs,Tn.right),Yt=Math.min(gs,Tn.bottom);return Math.max(0,(yt-ps)*(Yt-st))},Xt=function(){Rt=K.y+Je,Mt=Rt+oe,Dt=K.x+Ae,St=Dt+ee};var y,C,S,x,E=t,w=E.ownerDocument,O=si(E),$=O.getComputedStyle(E),I=$.position,P=E.style.left,N=E.style.top,M=E.style.right,R=E.style.bottom,z=E.style.overflow,T=H(H({},o[r]),i),j=w.createElement("div");(y=E.parentElement)===null||y===void 0||y.appendChild(j),j.style.left="".concat(E.offsetLeft,"px"),j.style.top="".concat(E.offsetTop,"px"),j.style.position=I,j.style.height="".concat(E.offsetHeight,"px"),j.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else{var D,k,V=n.getBoundingClientRect();V.x=(D=V.x)!==null&&D!==void 0?D:V.left,V.y=(k=V.y)!==null&&k!==void 0?k:V.top,_={x:V.x,y:V.y,width:V.width,height:V.height}}var K=E.getBoundingClientRect(),A=O.getComputedStyle(E),W=A.height,G=A.width;K.x=(C=K.x)!==null&&C!==void 0?C:K.left,K.y=(S=K.y)!==null&&S!==void 0?S:K.top;var Y=w.documentElement,ne=Y.clientWidth,Q=Y.clientHeight,J=Y.scrollWidth,ie=Y.scrollHeight,re=Y.scrollTop,X=Y.scrollLeft,oe=K.height,ee=K.width,q=_.height,Z=_.width,le={left:0,top:0,right:ne,bottom:Q},se={left:-X,top:-re,right:J-X,bottom:ie-re},ve=T.htmlRegion,ge="visible",ae="visibleFirst";ve!=="scroll"&&ve!==ae&&(ve=ge);var fe=ve===ae,ue=tv(se,m),de=tv(le,m),xe=ve===ge?de:ue,we=fe?de:xe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Le=E.getBoundingClientRect();E.style.left=P,E.style.top=N,E.style.right=M,E.style.bottom=R,E.style.overflow=z,(x=E.parentElement)===null||x===void 0||x.removeChild(j);var je=Wa(Math.round(ee/parseFloat(G)*1e3)/1e3),Oe=Wa(Math.round(oe/parseFloat(W)*1e3)/1e3);if(je===0||Oe===0||ja(n)&&!ei(n))return;var Te=T.offset,he=T.targetOffset,me=rv(K,Te),$e=te(me,2),Se=$e[0],Re=$e[1],be=rv(_,he),Ie=te(be,2),De=Ie[0],ke=Ie[1];_.x-=De,_.y-=ke;var gt=T.points||[],ht=te(gt,2),Pe=ht[0],We=ht[1],Ye=ov(We),_e=ov(Pe),Ge=Po(_,Ye),vt=Po(K,_e),dt=H({},T),Ae=Ge.x-vt.x+Se,Je=Ge.y-vt.y+Re,Ue=Ut(Ae,Je),Ee=Ut(Ae,Je,de),Ce=Po(_,["t","l"]),ye=Po(K,["t","l"]),Ne=Po(_,["b","r"]),Qe=Po(K,["b","r"]),Ze=T.overflow||{},bt=Ze.adjustX,Fe=Ze.adjustY,ze=Ze.shiftX,ot=Ze.shiftY,$t=function(On){return typeof On=="boolean"?On:On>=0},Rt,Mt,Dt,St;Xt();var jt=$t(Fe),Me=_e[0]===Ye[0];if(jt&&_e[0]==="t"&&(Mt>we.bottom||v.current.bt)){var Ve=Je;Me?Ve-=oe-q:Ve=Ce.y-Qe.y-Re;var ct=Ut(Ae,Ve),lt=Ut(Ae,Ve,de);ct>Ue||ct===Ue&&(!fe||lt>=Ee)?(v.current.bt=!0,Je=Ve,Re=-Re,dt.points=[zr(_e,0),zr(Ye,0)]):v.current.bt=!1}if(jt&&_e[0]==="b"&&(Rt<we.top||v.current.tb)){var nt=Je;Me?nt+=oe-q:nt=Ne.y-ye.y-Re;var Xe=Ut(Ae,nt),ft=Ut(Ae,nt,de);Xe>Ue||Xe===Ue&&(!fe||ft>=Ee)?(v.current.tb=!0,Je=nt,Re=-Re,dt.points=[zr(_e,0),zr(Ye,0)]):v.current.tb=!1}var Pt=$t(bt),He=_e[1]===Ye[1];if(Pt&&_e[1]==="l"&&(St>we.right||v.current.rl)){var at=Ae;He?at-=ee-Z:at=Ce.x-Qe.x-Se;var pt=Ut(at,Je),qt=Ut(at,Je,de);pt>Ue||pt===Ue&&(!fe||qt>=Ee)?(v.current.rl=!0,Ae=at,Se=-Se,dt.points=[zr(_e,1),zr(Ye,1)]):v.current.rl=!1}if(Pt&&_e[1]==="r"&&(Dt<we.left||v.current.lr)){var en=Ae;He?en+=ee-Z:en=Ne.x-ye.x-Se;var wn=Ut(en,Je),En=Ut(en,Je,de);wn>Ue||wn===Ue&&(!fe||En>=Ee)?(v.current.lr=!0,Ae=en,Se=-Se,dt.points=[zr(_e,1),zr(Ye,1)]):v.current.lr=!1}Xt();var mn=ze===!0?0:ze;typeof mn=="number"&&(Dt<de.left&&(Ae-=Dt-de.left-Se,_.x+Z<de.left+mn&&(Ae+=_.x-de.left+Z-mn)),St>de.right&&(Ae-=St-de.right-Se,_.x>de.right-mn&&(Ae+=_.x-de.right+mn)));var Pn=ot===!0?0:ot;typeof Pn=="number"&&(Rt<de.top&&(Je-=Rt-de.top-Re,_.y+q<de.top+Pn&&(Je+=_.y-de.top+q-Pn)),Mt>de.bottom&&(Je-=Mt-de.bottom-Re,_.y>de.bottom-Pn&&(Je+=_.y-de.bottom+Pn)));var Nn=K.x+Ae,Dn=Nn+ee,Mn=K.y+Je,Lt=Mn+oe,rt=_.x,et=rt+Z,_t=_.y,zt=_t+q,Ft=Math.max(Nn,rt),Kt=Math.min(Dn,et),bn=(Ft+Kt)/2,tn=bn-Nn,yn=Math.max(Mn,_t),an=Math.min(Lt,zt),Cn=(yn+an)/2,Un=Cn-Mn;l==null||l(t,dt);var mt=Le.right-K.x-(Ae+K.width),It=Le.bottom-K.y-(Je+K.height);je===1&&(Ae=Math.round(Ae),mt=Math.round(mt)),Oe===1&&(Je=Math.round(Je),It=Math.round(It));var nn={ready:!0,offsetX:Ae/je,offsetY:Je/Oe,offsetR:mt/je,offsetB:It/Oe,arrowX:tn/je,arrowY:Un/Oe,scaleX:je,scaleY:Oe,align:dt};d(nn)}}),g=function(){f.current+=1;var C=f.current;Promise.resolve().then(function(){f.current===C&&h()})},b=function(){d(function(C){return H(H({},C),{},{ready:!1})})};return wt(b,[r]),wt(function(){e||b()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function bR(e,t,n,r,o){wt(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,l=n,s=vu(i),c=vu(l),u=si(l),d=new Set([u].concat(pe(s),pe(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function yR(e,t,n,r,o,i,l,s){var c=a.useRef(e);c.current=e;var u=a.useRef(!1);a.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){u.current=!1},m=function(g){var b;c.current&&!l(((b=g.composedPath)===null||b===void 0||(b=b.call(g))===null||b===void 0?void 0:b[0])||g.target)&&!u.current&&s(!1)},v=si(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",m,!0),v.addEventListener("contextmenu",m,!0);var p=sl(n);return p&&(p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",m,!0),v.removeEventListener("contextmenu",m,!0),p&&(p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,i]);function d(){u.current=!0}return d}var CR=["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 SR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gd,t=a.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,l=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,v=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,h=n.mouseEnterDelay,g=n.mouseLeaveDelay,b=g===void 0?.1:g,y=n.focusDelay,C=n.blurDelay,S=n.mask,x=n.maskClosable,E=x===void 0?!0:x,w=n.getPopupContainer,O=n.forceRender,$=n.autoDestroy,I=n.destroyPopupOnHide,P=n.popup,N=n.popupClassName,M=n.popupStyle,R=n.popupPlacement,z=n.builtinPlacements,T=z===void 0?{}:z,j=n.popupAlign,_=n.zIndex,D=n.stretch,k=n.getPopupClassNameFromAlign,V=n.fresh,K=n.alignPoint,A=n.onPopupClick,W=n.onPopupAlign,G=n.arrow,Y=n.popupMotion,ne=n.maskMotion,Q=n.popupTransitionName,J=n.popupAnimation,ie=n.maskTransitionName,re=n.maskAnimation,X=n.className,oe=n.getTriggerDOMNode,ee=it(n,CR),q=$||I||!1,Z=a.useState(!1),le=te(Z,2),se=le[0],ve=le[1];wt(function(){ve(ql())},[]);var ge=a.useRef({}),ae=a.useContext(Zm),fe=a.useMemo(function(){return{registerSubPopup:function(yt,Yt){ge.current[yt]=Yt,ae==null||ae.registerSubPopup(yt,Yt)}}},[ae]),ue=ai(),de=a.useState(null),xe=te(de,2),we=xe[0],Le=xe[1],je=a.useRef(null),Oe=At(function(st){je.current=st,ja(st)&&we!==st&&Le(st),ae==null||ae.registerSubPopup(ue,st)}),Te=a.useState(null),he=te(Te,2),me=he[0],$e=he[1],Se=a.useRef(null),Re=At(function(st){ja(st)&&me!==st&&($e(st),Se.current=st)}),be=a.Children.only(l),Ie=(be==null?void 0:be.props)||{},De={},ke=At(function(st){var yt,Yt,vn=me;return(vn==null?void 0:vn.contains(st))||((yt=sl(vn))===null||yt===void 0?void 0:yt.host)===st||st===vn||(we==null?void 0:we.contains(st))||((Yt=sl(we))===null||Yt===void 0?void 0:Yt.host)===st||st===we||Object.values(ge.current).some(function(Jt){return(Jt==null?void 0:Jt.contains(st))||st===Jt})}),gt=ev(i,Y,J,Q),ht=ev(i,ne,re,ie),Pe=a.useState(m||!1),We=te(Pe,2),Ye=We[0],_e=We[1],Ge=f??Ye,vt=At(function(st){f===void 0&&_e(st)});wt(function(){_e(f||!1)},[f]);var dt=a.useRef(Ge);dt.current=Ge;var Ae=a.useRef([]);Ae.current=[];var Je=At(function(st){var yt;vt(st),((yt=Ae.current[Ae.current.length-1])!==null&&yt!==void 0?yt:Ge)!==st&&(Ae.current.push(st),v==null||v(st))}),Ue=a.useRef(),Ee=function(){clearTimeout(Ue.current)},Ce=function(yt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ee(),Yt===0?Je(yt):Ue.current=setTimeout(function(){Je(yt)},Yt*1e3)};a.useEffect(function(){return Ee},[]);var ye=a.useState(!1),Ne=te(ye,2),Qe=Ne[0],Ze=Ne[1];wt(function(st){(!st||Ge)&&Ze(!0)},[Ge]);var bt=a.useState(null),Fe=te(bt,2),ze=Fe[0],ot=Fe[1],$t=a.useState(null),Rt=te($t,2),Mt=Rt[0],Dt=Rt[1],St=function(yt){Dt([yt.clientX,yt.clientY])},jt=hR(Ge,we,K&&Mt!==null?Mt:me,R,T,j,W),Me=te(jt,11),Ve=Me[0],ct=Me[1],lt=Me[2],nt=Me[3],Xe=Me[4],ft=Me[5],Pt=Me[6],He=Me[7],at=Me[8],pt=Me[9],qt=Me[10],en=vR(se,c,u,d),wn=te(en,2),En=wn[0],mn=wn[1],Pn=En.has("click"),Nn=mn.has("click")||mn.has("contextMenu"),Dn=At(function(){Qe||qt()}),Mn=function(){dt.current&&K&&Nn&&Ce(!1)};bR(Ge,me,we,Dn,Mn),wt(function(){Dn()},[Mt,R]),wt(function(){Ge&&!(T!=null&&T[R])&&Dn()},[JSON.stringify(j)]);var Lt=a.useMemo(function(){var st=pR(T,i,pt,K);return F(st,k==null?void 0:k(pt))},[pt,k,T,i,K]);a.useImperativeHandle(r,function(){return{nativeElement:Se.current,popupElement:je.current,forceAlign:Dn}});var rt=a.useState(0),et=te(rt,2),_t=et[0],zt=et[1],Ft=a.useState(0),Kt=te(Ft,2),bn=Kt[0],tn=Kt[1],yn=function(){if(D&&me){var yt=me.getBoundingClientRect();zt(yt.width),tn(yt.height)}},an=function(){yn(),Dn()},Cn=function(yt){Ze(!1),qt(),p==null||p(yt)},Un=function(){return new Promise(function(yt){yn(),ot(function(){return yt})})};wt(function(){ze&&(qt(),ze(),ot(null))},[ze]);function mt(st,yt,Yt,vn){De[st]=function(Jt){var yi;vn==null||vn(Jt),Ce(yt,Yt);for(var hs=arguments.length,ff=new Array(hs>1?hs-1:0),Ci=1;Ci<hs;Ci++)ff[Ci-1]=arguments[Ci];(yi=Ie[st])===null||yi===void 0||yi.call.apply(yi,[Ie,Jt].concat(ff))}}(Pn||Nn)&&(De.onClick=function(st){var yt;dt.current&&Nn?Ce(!1):!dt.current&&Pn&&(St(st),Ce(!0));for(var Yt=arguments.length,vn=new Array(Yt>1?Yt-1:0),Jt=1;Jt<Yt;Jt++)vn[Jt-1]=arguments[Jt];(yt=Ie.onClick)===null||yt===void 0||yt.call.apply(yt,[Ie,st].concat(vn))});var It=yR(Ge,Nn,me,we,S,E,ke,Ce),nn=En.has("hover"),Ut=mn.has("hover"),Xt,Xn;nn&&(mt("onMouseEnter",!0,h,function(st){St(st)}),mt("onPointerEnter",!0,h,function(st){St(st)}),Xt=function(yt){(Ge||Qe)&&we!==null&&we!==void 0&&we.contains(yt.target)&&Ce(!0,h)},K&&(De.onMouseMove=function(st){var yt;(yt=Ie.onMouseMove)===null||yt===void 0||yt.call(Ie,st)})),Ut&&(mt("onMouseLeave",!1,b),mt("onPointerLeave",!1,b),Xn=function(){Ce(!1,b)}),En.has("focus")&&mt("onFocus",!0,y),mn.has("focus")&&mt("onBlur",!1,C),En.has("contextMenu")&&(De.onContextMenu=function(st){var yt;dt.current&&mn.has("contextMenu")?Ce(!1):(St(st),Ce(!0)),st.preventDefault();for(var Yt=arguments.length,vn=new Array(Yt>1?Yt-1:0),Jt=1;Jt<Yt;Jt++)vn[Jt-1]=arguments[Jt];(yt=Ie.onContextMenu)===null||yt===void 0||yt.call.apply(yt,[Ie,st].concat(vn))}),X&&(De.className=F(Ie.className,X));var On=a.useRef(!1);On.current||(On.current=O||Ge||Qe);var Tn=H(H({},Ie),De),rr={},jr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];jr.forEach(function(st){ee[st]&&(rr[st]=function(){for(var yt,Yt=arguments.length,vn=new Array(Yt),Jt=0;Jt<Yt;Jt++)vn[Jt]=arguments[Jt];(yt=Tn[st])===null||yt===void 0||yt.call.apply(yt,[Tn].concat(vn)),ee[st].apply(ee,vn)})});var vs=a.cloneElement(be,H(H({},Tn),rr)),gs={x:ft,y:Pt},ps=G?H({},G!==!0?G:{}):null;return a.createElement(a.Fragment,null,a.createElement(An,{disabled:!Ge,ref:Re,onResize:an},a.createElement(mR,{getTriggerDOMNode:oe},vs)),On.current&&a.createElement(Zm.Provider,{value:fe},a.createElement(fR,{portal:e,ref:Oe,prefixCls:i,popup:P,className:F(N,Lt),style:M,target:me,onMouseEnter:Xt,onMouseLeave:Xn,onPointerEnter:Xt,zIndex:_,open:Ge,keepDom:Qe,fresh:V,onClick:A,onPointerDownCapture:It,mask:S,motion:gt,maskMotion:ht,onVisibleChanged:Cn,onPrepare:Un,forceRender:O,autoDestroy:q,getPopupContainer:w,align:pt,arrow:ps,arrowPos:gs,ready:Ve,offsetX:ct,offsetY:lt,offsetR:nt,offsetB:Xe,onAlign:Dn,stretch:D,targetWidth:_t/He,targetHeight:bn/at})))});return t}const Xl=SR(gd);var xR=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],$R=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},wR=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,l=t.popupElement,s=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,v=t.placement,p=t.builtinPlacements,h=t.dropdownMatchSelectWidth,g=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,S=t.getTriggerDOMNode,x=t.onPopupVisibleChange,E=t.onPopupMouseEnter,w=it(t,xR),O="".concat(r,"-dropdown"),$=l;g&&($=g(l));var I=a.useMemo(function(){return p||$R(h)},[p,h]),P=s?"".concat(O,"-").concat(s):c,N=typeof h=="number",M=a.useMemo(function(){return N?null:h===!1?"minWidth":"width"},[h,N]),R=u;N&&(R=H(H({},R),{},{width:h}));var z=a.useRef(null);return a.useImperativeHandle(n,function(){return{getPopupElement:function(){var j;return(j=z.current)===null||j===void 0?void 0:j.popupElement}}}),a.createElement(Xl,ce({},w,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:v||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:O,popupTransitionName:P,popup:a.createElement("div",{onMouseEnter:E},$),ref:z,stretch:M,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:F(d,B({},"".concat(O,"-empty"),C)),popupStyle:R,getTriggerDOMNode:S,onPopupVisibleChange:x}),i)},ER=a.forwardRef(wR);function av(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function gu(e){return typeof e<"u"&&!Number.isNaN(e)}function A0(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,l=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:i||"options",groupLabel:l||s}}function OR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=A0(n,!1),l=i.label,s=i.value,c=i.options,u=i.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(v){if(m||!(c in v)){var p=v[s];o.push({key:av(v,o.length),groupOption:m,data:v,label:v[l],value:p})}else{var h=v[u];h===void 0&&r&&(h=v.label),o.push({key:av(v,o.length),group:!0,data:v,label:h}),d(v[c],!0)}})}return d(e,!1),o}function pu(e){var t=H({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Gt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var IR=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function s(c,u){var d=Fp(u),f=d[0],m=d.slice(1);if(!f)return[c];var v=c.split(f);return o=o||v.length>1,v.reduce(function(p,h){return[].concat(pe(p),pe(s(h,m)))},[]).filter(Boolean)},l=i(t,n);return o?typeof r<"u"?l.slice(0,r):l:null},Sd=a.createContext(null);function RR(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return a.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var i=o.label,l=o.value;return["number","string"].includes(Ke(i))?i:l}).join(", ")),n.length>r?", ...":null)}var PR=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],NR=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],hu=function(t){return t==="tags"||t==="multiple"},MR=a.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,l=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,v=e.notFoundContent,p=v===void 0?"Not Found":v,h=e.onClear,g=e.mode,b=e.disabled,y=e.loading,C=e.getInputElement,S=e.getRawInputElement,x=e.open,E=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,$=e.onActiveValueChange,I=e.activeDescendantId,P=e.searchValue,N=e.autoClearSearchValue,M=e.onSearch,R=e.onSearchSplit,z=e.tokenSeparators,T=e.allowClear,j=e.prefix,_=e.suffixIcon,D=e.clearIcon,k=e.OptionList,V=e.animation,K=e.transitionName,A=e.dropdownStyle,W=e.dropdownClassName,G=e.dropdownMatchSelectWidth,Y=e.dropdownRender,ne=e.dropdownAlign,Q=e.placement,J=e.builtinPlacements,ie=e.getPopupContainer,re=e.showAction,X=re===void 0?[]:re,oe=e.onFocus,ee=e.onBlur,q=e.onKeyUp,Z=e.onKeyDown,le=e.onMouseDown,se=it(e,PR),ve=hu(g),ge=(l!==void 0?l:ve)||g==="combobox",ae=H({},se);NR.forEach(function(rt){delete ae[rt]}),u==null||u.forEach(function(rt){delete ae[rt]});var fe=a.useState(!1),ue=te(fe,2),de=ue[0],xe=ue[1];a.useEffect(function(){xe(ql())},[]);var we=a.useRef(null),Le=a.useRef(null),je=a.useRef(null),Oe=a.useRef(null),Te=a.useRef(null),he=a.useRef(!1),me=BI(),$e=te(me,3),Se=$e[0],Re=$e[1],be=$e[2];a.useImperativeHandle(t,function(){var rt,et;return{focus:(rt=Oe.current)===null||rt===void 0?void 0:rt.focus,blur:(et=Oe.current)===null||et===void 0?void 0:et.blur,scrollTo:function(zt){var Ft;return(Ft=Te.current)===null||Ft===void 0?void 0:Ft.scrollTo(zt)},nativeElement:we.current||Le.current}});var Ie=a.useMemo(function(){var rt;if(g!=="combobox")return P;var et=(rt=d[0])===null||rt===void 0?void 0:rt.value;return typeof et=="string"||typeof et=="number"?String(et):""},[P,g,d]),De=g==="combobox"&&typeof C=="function"&&C()||null,ke=typeof S=="function"&&S(),gt=Tr(Le,ke==null||(n=ke.props)===null||n===void 0?void 0:n.ref),ht=a.useState(!1),Pe=te(ht,2),We=Pe[0],Ye=Pe[1];wt(function(){Ye(!0)},[]);var _e=Wt(!1,{defaultValue:E,value:x}),Ge=te(_e,2),vt=Ge[0],dt=Ge[1],Ae=We?vt:!1,Je=!p&&m;(b||Je&&Ae&&g==="combobox")&&(Ae=!1);var Ue=Je?!1:Ae,Ee=a.useCallback(function(rt){var et=rt!==void 0?rt:!Ae;b||(dt(et),Ae!==et&&(w==null||w(et)))},[b,Ae,dt,w]),Ce=a.useMemo(function(){return(z||[]).some(function(rt){return[`
185
+ `,`\r
186
+ `].includes(rt)})},[z]),ye=a.useContext(Sd)||{},Ne=ye.maxCount,Qe=ye.rawValues,Ze=function(et,_t,zt){if(!(ve&&gu(Ne)&&(Qe==null?void 0:Qe.size)>=Ne)){var Ft=!0,Kt=et;$==null||$(null);var bn=IR(et,z,gu(Ne)?Ne-Qe.size:void 0),tn=zt?null:bn;return g!=="combobox"&&tn&&(Kt="",R==null||R(tn),Ee(!1),Ft=!1),M&&Ie!==Kt&&M(Kt,{source:_t?"typing":"effect"}),Ft}},bt=function(et){!et||!et.trim()||M(et,{source:"submit"})};a.useEffect(function(){!Ae&&!ve&&g!=="combobox"&&Ze("",!1,!1)},[Ae]),a.useEffect(function(){vt&&b&&dt(!1),b&&!he.current&&Re(!1)},[b]);var Fe=T0(),ze=te(Fe,2),ot=ze[0],$t=ze[1],Rt=a.useRef(!1),Mt=function(et){var _t=ot(),zt=et.key,Ft=zt==="Enter";if(Ft&&(g!=="combobox"&&et.preventDefault(),Ae||Ee(!0)),$t(!!Ie),zt==="Backspace"&&!_t&&ve&&!Ie&&d.length){for(var Kt=pe(d),bn=null,tn=Kt.length-1;tn>=0;tn-=1){var yn=Kt[tn];if(!yn.disabled){Kt.splice(tn,1),bn=yn;break}}bn&&f(Kt,{type:"remove",values:[bn]})}for(var an=arguments.length,Cn=new Array(an>1?an-1:0),Un=1;Un<an;Un++)Cn[Un-1]=arguments[Un];if(Ae&&(!Ft||!Rt.current)){var mt;Ft&&(Rt.current=!0),(mt=Te.current)===null||mt===void 0||mt.onKeyDown.apply(mt,[et].concat(Cn))}Z==null||Z.apply(void 0,[et].concat(Cn))},Dt=function(et){for(var _t=arguments.length,zt=new Array(_t>1?_t-1:0),Ft=1;Ft<_t;Ft++)zt[Ft-1]=arguments[Ft];if(Ae){var Kt;(Kt=Te.current)===null||Kt===void 0||Kt.onKeyUp.apply(Kt,[et].concat(zt))}et.key==="Enter"&&(Rt.current=!1),q==null||q.apply(void 0,[et].concat(zt))},St=function(et){var _t=d.filter(function(zt){return zt!==et});f(_t,{type:"remove",values:[et]})},jt=function(){Rt.current=!1},Me=a.useRef(!1),Ve=function(){Re(!0),b||(oe&&!Me.current&&oe.apply(void 0,arguments),X.includes("focus")&&Ee(!0)),Me.current=!0},ct=function(){he.current=!0,Re(!1,function(){Me.current=!1,he.current=!1,Ee(!1)}),!b&&(Ie&&(g==="tags"?M(Ie,{source:"submit"}):g==="multiple"&&M("",{source:"blur"})),ee&&ee.apply(void 0,arguments))},lt=[];a.useEffect(function(){return function(){lt.forEach(function(rt){return clearTimeout(rt)}),lt.splice(0,lt.length)}},[]);var nt=function(et){var _t,zt=et.target,Ft=(_t=je.current)===null||_t===void 0?void 0:_t.getPopupElement();if(Ft&&Ft.contains(zt)){var Kt=setTimeout(function(){var an=lt.indexOf(Kt);if(an!==-1&&lt.splice(an,1),be(),!de&&!Ft.contains(document.activeElement)){var Cn;(Cn=Oe.current)===null||Cn===void 0||Cn.focus()}});lt.push(Kt)}for(var bn=arguments.length,tn=new Array(bn>1?bn-1:0),yn=1;yn<bn;yn++)tn[yn-1]=arguments[yn];le==null||le.apply(void 0,[et].concat(tn))},Xe=a.useState({}),ft=te(Xe,2),Pt=ft[1];function He(){Pt({})}var at;ke&&(at=function(et){Ee(et)}),DI(function(){var rt;return[we.current,(rt=je.current)===null||rt===void 0?void 0:rt.getPopupElement()]},Ue,Ee,!!ke);var pt=a.useMemo(function(){return H(H({},e),{},{notFoundContent:p,open:Ae,triggerOpen:Ue,id:r,showSearch:ge,multiple:ve,toggleOpen:Ee})},[e,p,Ue,Ae,r,ge,ve,Ee]),qt=!!_||y,en;qt&&(en=a.createElement(Ul,{className:F("".concat(o,"-arrow"),B({},"".concat(o,"-arrow-loading"),y)),customizeIcon:_,customizeIconProps:{loading:y,searchValue:Ie,open:Ae,focused:Se,showSearch:ge}}));var wn=function(){var et;h==null||h(),(et=Oe.current)===null||et===void 0||et.focus(),f([],{type:"clear",values:d}),Ze("",!1,!1)},En=zI(o,wn,d,T,D,b,Ie,g),mn=En.allowClear,Pn=En.clearIcon,Nn=a.createElement(k,{ref:Te}),Dn=F(o,i,B(B(B(B(B(B(B(B(B(B({},"".concat(o,"-focused"),Se),"".concat(o,"-multiple"),ve),"".concat(o,"-single"),!ve),"".concat(o,"-allow-clear"),T),"".concat(o,"-show-arrow"),qt),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),y),"".concat(o,"-open"),Ae),"".concat(o,"-customize-input"),De),"".concat(o,"-show-search"),ge)),Mn=a.createElement(ER,{ref:je,disabled:b,prefixCls:o,visible:Ue,popupElement:Nn,animation:V,transitionName:K,dropdownStyle:A,dropdownClassName:W,direction:c,dropdownMatchSelectWidth:G,dropdownRender:Y,dropdownAlign:ne,placement:Q,builtinPlacements:J,getPopupContainer:ie,empty:m,getTriggerDOMNode:function(et){return Le.current||et},onPopupVisibleChange:at,onPopupMouseEnter:He},ke?a.cloneElement(ke,{ref:gt}):a.createElement(sR,ce({},e,{domRef:Le,prefixCls:o,inputElement:De,ref:Oe,id:r,prefix:j,showSearch:ge,autoClearSearchValue:N,mode:g,activeDescendantId:I,tagRender:s,values:d,open:Ae,onToggleOpen:Ee,activeValue:O,searchValue:Ie,onSearch:Ze,onSearchSubmit:bt,onRemove:St,tokenWithEnter:Ce,onInputBlur:jt}))),Lt;return ke?Lt=Mn:Lt=a.createElement("div",ce({className:Dn},ae,{ref:we,onMouseDown:nt,onKeyDown:Mt,onKeyUp:Dt,onFocus:Ve,onBlur:ct}),a.createElement(RR,{visible:Se&&!Ae,values:d}),Mn,en,mn&&Pn),a.createElement(M0.Provider,{value:pt},Lt)}),xd=function(){return null};xd.isSelectOptGroup=!0;var $d=function(){return null};$d.isSelectOption=!0;var H0=a.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,l=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},m=H(H({},m),{},B(B(B(B(B({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),a.createElement("div",{style:f},a.createElement(An,{onResize:function(p){var h=p.offsetHeight;h&&s&&s()}},a.createElement("div",ce({style:m,className:F(B({},"".concat(l,"-holder-inner"),l)),ref:t},c),i,d)))});H0.displayName="Filler";function TR(e){var t=e.children,n=e.setRef,r=a.useCallback(function(o){n(o)},[]);return a.cloneElement(t,{ref:r})}function jR(e,t,n,r,o,i,l,s){var c=s.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,m=l(u,f,{style:{width:r},offsetX:o}),v=c(u);return a.createElement(TR,{key:v,setRef:function(h){return i(u,h)}},m)})}function zR(e,t,n){var r=e.length,o=t.length,i,l;if(r===0&&o===0)return null;r<o?(i=e,l=t):(i=t,l=e);var s={__EMPTY_ITEM__:!0};function c(p){return p!==void 0?n(p):s}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<l.length;f+=1){var m=c(i[f]),v=c(l[f]);if(m!==v){u=f,d=d||m!==c(l[f+1]);break}}return u===null?null:{index:u,multiple:d}}function _R(e,t,n){var r=a.useState(e),o=te(r,2),i=o[0],l=o[1],s=a.useState(null),c=te(s,2),u=c[0],d=c[1];return a.useEffect(function(){var f=zR(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),l(e)},[e]),[u]}var iv=(typeof navigator>"u"?"undefined":Ke(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const F0=(function(e,t,n,r){var o=a.useRef(!1),i=a.useRef(null);function l(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=a.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&l(),!o.current&&f}});function BR(e,t,n,r,o,i,l){var s=a.useRef(0),c=a.useRef(null),u=a.useRef(null),d=a.useRef(!1),f=F0(t,n,r,o);function m(y,C){if(Ot.cancel(c.current),!f(!1,C)){var S=y;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=C,u.current=C,iv||S.preventDefault(),c.current=Ot(function(){var x=d.current?10:1;l(s.current*x,!1),s.current=0})}}function v(y,C){l(C,!0),iv||y.preventDefault()}var p=a.useRef(null),h=a.useRef(null);function g(y){if(e){Ot.cancel(h.current),h.current=Ot(function(){p.current=null},2);var C=y.deltaX,S=y.deltaY,x=y.shiftKey,E=C,w=S;(p.current==="sx"||!p.current&&x&&S&&!C)&&(E=S,w=0,p.current="sx");var O=Math.abs(E),$=Math.abs(w);p.current===null&&(p.current=i&&O>$?"x":"y"),p.current==="y"?m(y,w):v(y,E)}}function b(y){e&&(d.current=y.detail===u.current)}return[g,b]}function DR(e,t,n,r){var o=a.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=te(o,2),l=i[0],s=i[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=l.get(d),v=l.get(f);if(m===void 0||v===void 0)for(var p=e.length,h=s.length;h<p;h+=1){var g,b=e[h],y=t(b);l.set(y,h);var C=(g=n.get(y))!==null&&g!==void 0?g:r;if(s[h]=(s[h-1]||0)+C,y===d&&(m=h),y===f&&(v=h),m!==void 0&&v!==void 0)break}return{top:s[m-1]||0,bottom:s[v]}};return c}var LR=(function(){function e(){Qt(this,e),B(this,"maps",void 0),B(this,"id",0),B(this,"diffRecords",new Map),this.maps=Object.create(null)}return Zt(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function lv(e){var t=parseFloat(e);return isNaN(t)?0:t}function AR(e,t,n){var r=a.useState(0),o=te(r,2),i=o[0],l=o[1],s=a.useRef(new Map),c=a.useRef(new LR),u=a.useRef(0);function d(){u.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var p=function(){var b=!1;s.current.forEach(function(y,C){if(y&&y.offsetParent){var S=y.offsetHeight,x=getComputedStyle(y),E=x.marginTop,w=x.marginBottom,O=lv(E),$=lv(w),I=S+O+$;c.current.get(C)!==I&&(c.current.set(C,I),b=!0)}}),b&&l(function(y){return y+1})};if(v)p();else{u.current+=1;var h=u.current;Promise.resolve().then(function(){h===u.current&&p()})}}function m(v,p){var h=e(v);s.current.get(h),p?(s.current.set(h,p),f()):s.current.delete(h)}return a.useEffect(function(){return d},[]),[m,f,c.current,i]}var sv=14/15;function HR(e,t,n){var r=a.useRef(!1),o=a.useRef(0),i=a.useRef(0),l=a.useRef(null),s=a.useRef(null),c,u=function(v){if(r.current){var p=Math.ceil(v.touches[0].pageX),h=Math.ceil(v.touches[0].pageY),g=o.current-p,b=i.current-h,y=Math.abs(g)>Math.abs(b);y?o.current=p:i.current=h;var C=n(y,y?g:b,!1,v);C&&v.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){y?g*=sv:b*=sv;var S=Math.floor(y?g:b);(!n(y,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,c()},f=function(v){c(),v.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(v.touches[0].pageX),i.current=Math.ceil(v.touches[0].pageY),l.current=v.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};c=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},wt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}function cv(e){return Math.floor(Math.pow(e,.5))}function bu(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function FR(e,t,n){a.useEffect(function(){var r=t.current;if(e&&r){var o=!1,i,l,s=function(){Ot.cancel(i)},c=function m(){s(),i=Ot(function(){n(l),m()})},u=function(){o=!1,s()},d=function(v){if(!(v.target.draggable||v.button!==0)){var p=v;p._virtualHandled||(p._virtualHandled=!0,o=!0)}},f=function(v){if(o){var p=bu(v,!1),h=r.getBoundingClientRect(),g=h.top,b=h.bottom;if(p<=g){var y=g-p;l=-cv(y),c()}else if(p>=b){var C=p-b;l=cv(C),c()}else s()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),s()}}},[e])}var kR=10;function VR(e,t,n,r,o,i,l,s){var c=a.useRef(),u=a.useState(null),d=te(u,2),f=d[0],m=d[1];return wt(function(){if(f&&f.times<kR){if(!e.current){m(function(D){return H({},D)});return}i();var v=f.targetAlign,p=f.originAlign,h=f.index,g=f.offset,b=e.current.clientHeight,y=!1,C=v,S=null;if(b){for(var x=v||p,E=0,w=0,O=0,$=Math.min(t.length-1,h),I=0;I<=$;I+=1){var P=o(t[I]);w=E;var N=n.get(P);O=w+(N===void 0?r:N),E=O}for(var M=x==="top"?g:b-g,R=$;R>=0;R-=1){var z=o(t[R]),T=n.get(z);if(T===void 0){y=!0;break}if(M-=T,M<=0)break}switch(x){case"top":S=w-g;break;case"bottom":S=O-b+g;break;default:{var j=e.current.scrollTop,_=j+b;w<j?C="top":O>_&&(C="bottom")}}S!==null&&l(S),S!==f.lastTop&&(y=!0)}y&&m(H(H({},f),{},{times:f.times+1,targetAlign:C,lastTop:S}))}},[f,e.current]),function(v){if(v==null){s();return}if(Ot.cancel(c.current),typeof v=="number")l(v);else if(v&&Ke(v)==="object"){var p,h=v.align;"index"in v?p=v.index:p=t.findIndex(function(y){return o(y)===v.key});var g=v.offset,b=g===void 0?0:g;m({times:0,index:p,offset:b,originAlign:h})}}}var uv=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,l=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,v=e.thumbStyle,p=e.showScrollBar,h=a.useState(!1),g=te(h,2),b=g[0],y=g[1],C=a.useState(null),S=te(C,2),x=S[0],E=S[1],w=a.useState(null),O=te(w,2),$=O[0],I=O[1],P=!r,N=a.useRef(),M=a.useRef(),R=a.useState(p),z=te(R,2),T=z[0],j=z[1],_=a.useRef(),D=function(){p===!0||p===!1||(clearTimeout(_.current),j(!0),_.current=setTimeout(function(){j(!1)},3e3))},k=i-f||0,V=f-d||0,K=a.useMemo(function(){if(o===0||k===0)return 0;var re=o/k;return re*V},[o,k,V]),A=function(X){X.stopPropagation(),X.preventDefault()},W=a.useRef({top:K,dragging:b,pageY:x,startTop:$});W.current={top:K,dragging:b,pageY:x,startTop:$};var G=function(X){y(!0),E(bu(X,u)),I(W.current.top),l(),X.stopPropagation(),X.preventDefault()};a.useEffect(function(){var re=function(q){q.preventDefault()},X=N.current,oe=M.current;return X.addEventListener("touchstart",re,{passive:!1}),oe.addEventListener("touchstart",G,{passive:!1}),function(){X.removeEventListener("touchstart",re),oe.removeEventListener("touchstart",G)}},[]);var Y=a.useRef();Y.current=k;var ne=a.useRef();ne.current=V,a.useEffect(function(){if(b){var re,X=function(q){var Z=W.current,le=Z.dragging,se=Z.pageY,ve=Z.startTop;Ot.cancel(re);var ge=N.current.getBoundingClientRect(),ae=f/(u?ge.width:ge.height);if(le){var fe=(bu(q,u)-se)*ae,ue=ve;!P&&u?ue-=fe:ue+=fe;var de=Y.current,xe=ne.current,we=xe?ue/xe:0,Le=Math.ceil(we*de);Le=Math.max(Le,0),Le=Math.min(Le,de),re=Ot(function(){c(Le,u)})}},oe=function(){y(!1),s()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),Ot.cancel(re)}}},[b]),a.useEffect(function(){return D(),function(){clearTimeout(_.current)}},[o]),a.useImperativeHandle(t,function(){return{delayHidden:D}});var Q="".concat(n,"-scrollbar"),J={position:"absolute",visibility:T?null:"hidden"},ie={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(J,{height:8,left:0,right:0,bottom:0}),Object.assign(ie,B({height:"100%",width:d},P?"left":"right",K))):(Object.assign(J,B({width:8,top:0,bottom:0},P?"right":"left",0)),Object.assign(ie,{width:"100%",height:d,top:K})),a.createElement("div",{ref:N,className:F(Q,B(B(B({},"".concat(Q,"-horizontal"),u),"".concat(Q,"-vertical"),!u),"".concat(Q,"-visible"),T)),style:H(H({},J),m),onMouseDown:A,onMouseMove:D},a.createElement("div",{ref:M,className:F("".concat(Q,"-thumb"),B({},"".concat(Q,"-thumb-moving"),b)),style:H(H({},ie),v),onMouseDown:G}))}),WR=20;function dv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,WR),Math.floor(n)}var KR=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],GR=[],qR={overflowY:"auto",overflowAnchor:"none"};function UR(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,l=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,v=e.virtual,p=e.direction,h=e.scrollWidth,g=e.component,b=g===void 0?"div":g,y=e.onScroll,C=e.onVirtualScroll,S=e.onVisibleChange,x=e.innerProps,E=e.extraRender,w=e.styles,O=e.showScrollBar,$=O===void 0?"optional":O,I=it(e,KR),P=a.useCallback(function(Me){return typeof m=="function"?m(Me):Me==null?void 0:Me[m]},[m]),N=AR(P),M=te(N,4),R=M[0],z=M[1],T=M[2],j=M[3],_=!!(v!==!1&&i&&l),D=a.useMemo(function(){return Object.values(T.maps).reduce(function(Me,Ve){return Me+Ve},0)},[T.id,T.maps]),k=_&&d&&(Math.max(l*d.length,D)>i||!!h),V=p==="rtl",K=F(r,B({},"".concat(r,"-rtl"),V),o),A=d||GR,W=a.useRef(),G=a.useRef(),Y=a.useRef(),ne=a.useState(0),Q=te(ne,2),J=Q[0],ie=Q[1],re=a.useState(0),X=te(re,2),oe=X[0],ee=X[1],q=a.useState(!1),Z=te(q,2),le=Z[0],se=Z[1],ve=function(){se(!0)},ge=function(){se(!1)},ae={getKey:P};function fe(Me){ie(function(Ve){var ct;typeof Me=="function"?ct=Me(Ve):ct=Me;var lt=Ye(ct);return W.current.scrollTop=lt,lt})}var ue=a.useRef({start:0,end:A.length}),de=a.useRef(),xe=_R(A,P),we=te(xe,1),Le=we[0];de.current=Le;var je=a.useMemo(function(){if(!_)return{scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!k){var Me;return{scrollHeight:((Me=G.current)===null||Me===void 0?void 0:Me.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var Ve=0,ct,lt,nt,Xe=A.length,ft=0;ft<Xe;ft+=1){var Pt=A[ft],He=P(Pt),at=T.get(He),pt=Ve+(at===void 0?l:at);pt>=J&&ct===void 0&&(ct=ft,lt=Ve),pt>J+i&&nt===void 0&&(nt=ft),Ve=pt}return ct===void 0&&(ct=0,lt=0,nt=Math.ceil(i/l)),nt===void 0&&(nt=A.length-1),nt=Math.min(nt+1,A.length-1),{scrollHeight:Ve,start:ct,end:nt,offset:lt}},[k,_,J,A,j,i]),Oe=je.scrollHeight,Te=je.start,he=je.end,me=je.offset;ue.current.start=Te,ue.current.end=he,a.useLayoutEffect(function(){var Me=T.getRecord();if(Me.size===1){var Ve=Array.from(Me.keys())[0],ct=Me.get(Ve),lt=A[Te];if(lt&&ct===void 0){var nt=P(lt);if(nt===Ve){var Xe=T.get(Ve),ft=Xe-l;fe(function(Pt){return Pt+ft})}}}T.resetRecord()},[Oe]);var $e=a.useState({width:0,height:i}),Se=te($e,2),Re=Se[0],be=Se[1],Ie=function(Ve){be({width:Ve.offsetWidth,height:Ve.offsetHeight})},De=a.useRef(),ke=a.useRef(),gt=a.useMemo(function(){return dv(Re.width,h)},[Re.width,h]),ht=a.useMemo(function(){return dv(Re.height,Oe)},[Re.height,Oe]),Pe=Oe-i,We=a.useRef(Pe);We.current=Pe;function Ye(Me){var Ve=Me;return Number.isNaN(We.current)||(Ve=Math.min(Ve,We.current)),Ve=Math.max(Ve,0),Ve}var _e=J<=0,Ge=J>=Pe,vt=oe<=0,dt=oe>=h,Ae=F0(_e,Ge,vt,dt),Je=function(){return{x:V?-oe:oe,y:J}},Ue=a.useRef(Je()),Ee=At(function(Me){if(C){var Ve=H(H({},Je()),Me);(Ue.current.x!==Ve.x||Ue.current.y!==Ve.y)&&(C(Ve),Ue.current=Ve)}});function Ce(Me,Ve){var ct=Me;Ve?(uo.flushSync(function(){ee(ct)}),Ee()):fe(ct)}function ye(Me){var Ve=Me.currentTarget.scrollTop;Ve!==J&&fe(Ve),y==null||y(Me),Ee()}var Ne=function(Ve){var ct=Ve,lt=h?h-Re.width:0;return ct=Math.max(ct,0),ct=Math.min(ct,lt),ct},Qe=At(function(Me,Ve){Ve?(uo.flushSync(function(){ee(function(ct){var lt=ct+(V?-Me:Me);return Ne(lt)})}),Ee()):fe(function(ct){var lt=ct+Me;return lt})}),Ze=BR(_,_e,Ge,vt,dt,!!h,Qe),bt=te(Ze,2),Fe=bt[0],ze=bt[1];HR(_,W,function(Me,Ve,ct,lt){var nt=lt;return Ae(Me,Ve,ct)?!1:!nt||!nt._virtualHandled?(nt&&(nt._virtualHandled=!0),Fe({preventDefault:function(){},deltaX:Me?Ve:0,deltaY:Me?0:Ve}),!0):!1}),FR(k,W,function(Me){fe(function(Ve){return Ve+Me})}),wt(function(){function Me(ct){var lt=_e&&ct.detail<0,nt=Ge&&ct.detail>0;_&&!lt&&!nt&&ct.preventDefault()}var Ve=W.current;return Ve.addEventListener("wheel",Fe,{passive:!1}),Ve.addEventListener("DOMMouseScroll",ze,{passive:!0}),Ve.addEventListener("MozMousePixelScroll",Me,{passive:!1}),function(){Ve.removeEventListener("wheel",Fe),Ve.removeEventListener("DOMMouseScroll",ze),Ve.removeEventListener("MozMousePixelScroll",Me)}},[_,_e,Ge]),wt(function(){if(h){var Me=Ne(oe);ee(Me),Ee({x:Me})}},[Re.width,h]);var ot=function(){var Ve,ct;(Ve=De.current)===null||Ve===void 0||Ve.delayHidden(),(ct=ke.current)===null||ct===void 0||ct.delayHidden()},$t=VR(W,A,T,l,P,function(){return z(!0)},fe,ot);a.useImperativeHandle(t,function(){return{nativeElement:Y.current,getScrollInfo:Je,scrollTo:function(Ve){function ct(lt){return lt&&Ke(lt)==="object"&&("left"in lt||"top"in lt)}ct(Ve)?(Ve.left!==void 0&&ee(Ne(Ve.left)),$t(Ve.top)):$t(Ve)}}}),wt(function(){if(S){var Me=A.slice(Te,he+1);S(Me,A)}},[Te,he,A]);var Rt=DR(A,P,T,l),Mt=E==null?void 0:E({start:Te,end:he,virtual:k,offsetX:oe,offsetY:me,rtl:V,getSize:Rt}),Dt=jR(A,Te,he,h,oe,R,f,ae),St=null;i&&(St=H(B({},c?"height":"maxHeight",i),qR),_&&(St.overflowY="hidden",h&&(St.overflowX="hidden"),le&&(St.pointerEvents="none")));var jt={};return V&&(jt.dir="rtl"),a.createElement("div",ce({ref:Y,style:H(H({},u),{},{position:"relative"}),className:K},jt,I),a.createElement(An,{onResize:Ie},a.createElement(b,{className:"".concat(r,"-holder"),style:St,ref:W,onScroll:ye,onMouseEnter:ot},a.createElement(H0,{prefixCls:r,height:Oe,offsetX:oe,offsetY:me,scrollWidth:h,onInnerResize:z,ref:G,innerProps:x,rtl:V,extra:Mt},Dt))),k&&Oe>i&&a.createElement(uv,{ref:De,prefixCls:r,scrollOffset:J,scrollRange:Oe,rtl:V,onScroll:Ce,onStartMove:ve,onStopMove:ge,spinSize:ht,containerSize:Re.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb,showScrollBar:$}),k&&h>Re.width&&a.createElement(uv,{ref:ke,prefixCls:r,scrollOffset:oe,scrollRange:h,rtl:V,onScroll:Ce,onStartMove:ve,onStopMove:ge,spinSize:gt,containerSize:Re.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb,showScrollBar:$}))}var Yl=a.forwardRef(UR);Yl.displayName="List";function XR(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var YR=["disabled","title","children","style","className"];function fv(e){return typeof e=="string"||typeof e=="number"}var QR=function(t,n){var r=_I(),o=r.prefixCls,i=r.id,l=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,v=a.useContext(Sd),p=v.maxCount,h=v.flattenOptions,g=v.onActiveValue,b=v.defaultActiveFirstOption,y=v.onSelect,C=v.menuItemSelectedIcon,S=v.rawValues,x=v.fieldNames,E=v.virtual,w=v.direction,O=v.listHeight,$=v.listItemHeight,I=v.optionRender,P="".concat(o,"-item"),N=bo(function(){return h},[l,h],function(re,X){return X[0]&&re[1]!==X[1]}),M=a.useRef(null),R=a.useMemo(function(){return s&&gu(p)&&(S==null?void 0:S.size)>=p},[s,p,S==null?void 0:S.size]),z=function(X){X.preventDefault()},T=function(X){var oe;(oe=M.current)===null||oe===void 0||oe.scrollTo(typeof X=="number"?{index:X}:X)},j=a.useCallback(function(re){return c==="combobox"?!1:S.has(re)},[c,pe(S).toString(),S.size]),_=function(X){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=N.length,q=0;q<ee;q+=1){var Z=(X+q*oe+ee)%ee,le=N[Z]||{},se=le.group,ve=le.data;if(!se&&!(ve!=null&&ve.disabled)&&(j(ve.value)||!R))return Z}return-1},D=a.useState(function(){return _(0)}),k=te(D,2),V=k[0],K=k[1],A=function(X){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;K(X);var ee={source:oe?"keyboard":"mouse"},q=N[X];if(!q){g(null,-1,ee);return}g(q.value,X,ee)};a.useEffect(function(){A(b!==!1?_(0):-1)},[N.length,u]);var W=a.useCallback(function(re){return c==="combobox"?String(re).toLowerCase()===u.toLowerCase():S.has(re)},[c,u,pe(S).toString(),S.size]);a.useEffect(function(){var re=setTimeout(function(){if(!s&&l&&S.size===1){var oe=Array.from(S)[0],ee=N.findIndex(function(q){var Z=q.data;return u?String(Z.value).startsWith(u):Z.value===oe});ee!==-1&&(A(ee),T(ee))}});if(l){var X;(X=M.current)===null||X===void 0||X.scrollTo(void 0)}return function(){return clearTimeout(re)}},[l,u]);var G=function(X){X!==void 0&&y(X,{selected:!S.has(X)}),s||d(!1)};if(a.useImperativeHandle(n,function(){return{onKeyDown:function(X){var oe=X.which,ee=X.ctrlKey;switch(oe){case Be.N:case Be.P:case Be.UP:case Be.DOWN:{var q=0;if(oe===Be.UP?q=-1:oe===Be.DOWN?q=1:XR()&&ee&&(oe===Be.N?q=1:oe===Be.P&&(q=-1)),q!==0){var Z=_(V+q,q);T(Z),A(Z,!0)}break}case Be.TAB:case Be.ENTER:{var le,se=N[V];se&&!(se!=null&&(le=se.data)!==null&&le!==void 0&&le.disabled)&&!R?G(se.value):G(void 0),l&&X.preventDefault();break}case Be.ESC:d(!1),l&&X.stopPropagation()}},onKeyUp:function(){},scrollTo:function(X){T(X)}}}),N.length===0)return a.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(P,"-empty"),onMouseDown:z},f);var Y=Object.keys(x).map(function(re){return x[re]}),ne=function(X){return X.label};function Q(re,X){var oe=re.group;return{role:oe?"presentation":"option",id:"".concat(i,"_list_").concat(X)}}var J=function(X){var oe=N[X];if(!oe)return null;var ee=oe.data||{},q=ee.value,Z=oe.group,le=xn(ee,!0),se=ne(oe);return oe?a.createElement("div",ce({"aria-label":typeof se=="string"&&!Z?se:null},le,{key:X},Q(oe,X),{"aria-selected":W(q)}),q):null},ie={role:"listbox",id:"".concat(i,"_list")};return a.createElement(a.Fragment,null,E&&a.createElement("div",ce({},ie,{style:{height:0,width:0,overflow:"hidden"}}),J(V-1),J(V),J(V+1)),a.createElement(Yl,{itemKey:"key",ref:M,data:N,height:O,itemHeight:$,fullHeight:!1,onMouseDown:z,onScroll:m,virtual:E,direction:w,innerProps:E?null:ie},function(re,X){var oe=re.group,ee=re.groupOption,q=re.data,Z=re.label,le=re.value,se=q.key;if(oe){var ve,ge=(ve=q.title)!==null&&ve!==void 0?ve:fv(Z)?Z.toString():void 0;return a.createElement("div",{className:F(P,"".concat(P,"-group"),q.className),title:ge},Z!==void 0?Z:se)}var ae=q.disabled,fe=q.title;q.children;var ue=q.style,de=q.className,xe=it(q,YR),we=Ht(xe,Y),Le=j(le),je=ae||!Le&&R,Oe="".concat(P,"-option"),Te=F(P,Oe,de,B(B(B(B({},"".concat(Oe,"-grouped"),ee),"".concat(Oe,"-active"),V===X&&!je),"".concat(Oe,"-disabled"),je),"".concat(Oe,"-selected"),Le)),he=ne(re),me=!C||typeof C=="function"||Le,$e=typeof he=="number"?he:he||le,Se=fv($e)?$e.toString():void 0;return fe!==void 0&&(Se=fe),a.createElement("div",ce({},xn(we),E?{}:Q(re,X),{"aria-selected":W(le),className:Te,title:Se,onMouseMove:function(){V===X||je||A(X)},onClick:function(){je||G(le)},style:ue}),a.createElement("div",{className:"".concat(Oe,"-content")},typeof I=="function"?I(re,{index:X}):$e),a.isValidElement(C)||Le,me&&a.createElement(Ul,{className:"".concat(P,"-option-state"),customizeIcon:C,customizeIconProps:{value:le,disabled:je,isSelected:Le}},Le?"✓":null))}))},ZR=a.forwardRef(QR);const JR=(function(e,t){var n=a.useRef({values:new Map,options:new Map}),r=a.useMemo(function(){var i=n.current,l=i.values,s=i.options,c=e.map(function(f){if(f.label===void 0){var m;return H(H({},f),{},{label:(m=l.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=a.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]});function Us(e,t){return D0(e).join("").toUpperCase().includes(t)}const eP=(function(e,t,n,r,o){return a.useMemo(function(){if(!n||r===!1)return e;var i=t.options,l=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(v,p){return o?Us(p[o],d):p[i]?Us(p[l!=="children"?l:"label"],d):Us(p[s],d)},m=u?function(v){return pu(v)}:function(v){return v};return e.forEach(function(v){if(v[i]){var p=f(n,m(v));if(p)c.push(v);else{var h=v[i].filter(function(g){return f(n,m(g))});h.length&&c.push(H(H({},v),{},B({},i,h)))}return}f(n,m(v))&&c.push(v)}),c},[e,r,o,n,t])});var mv=0,tP=In();function nP(){var e;return tP?(e=mv,mv+=1):e="TEST_OR_SSR",e}function rP(e){var t=a.useState(),n=te(t,2),r=n[0],o=n[1];return a.useEffect(function(){o("rc_select_".concat(nP()))},[]),e||r}var oP=["children","value"],aP=["children"];function iP(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,l=it(r,oP);return H({key:n,value:i!==void 0?i:n,children:o},l)}function k0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return cn(e).map(function(n,r){if(!a.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,l=o.key,s=o.props,c=s.children,u=it(s,aP);return t||!i?iP(n):H(H({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},u),{},{options:k0(c)})}).filter(function(n){return n})}var lP=function(t,n,r,o,i){return a.useMemo(function(){var l=t,s=!t;s&&(l=k0(n));var c=new Map,u=new Map,d=function(v,p,h){h&&typeof h=="string"&&v.set(p[h],p)},f=function m(v){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<v.length;h+=1){var g=v[h];!g[r.options]||p?(c.set(g[r.value],g),d(u,g,r.label),d(u,g,o),d(u,g,i)):m(g[r.options],!0)}};return f(l),{options:l,valueOptions:c,labelOptions:u}},[t,n,r,o,i])};function vv(e){var t=a.useRef();t.current=e;var n=a.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var sP=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],cP=["inputValue"];function uP(e){return!e||Ke(e)!=="object"}var dP=a.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,l=e.backfill,s=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,v=e.onSelect,p=e.onDeselect,h=e.dropdownMatchSelectWidth,g=h===void 0?!0:h,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,S=e.optionLabelProp,x=e.options,E=e.optionRender,w=e.children,O=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,I=e.virtual,P=e.direction,N=e.listHeight,M=N===void 0?200:N,R=e.listItemHeight,z=R===void 0?20:R,T=e.labelRender,j=e.value,_=e.defaultValue,D=e.labelInValue,k=e.onChange,V=e.maxCount,K=it(e,sP),A=rP(n),W=hu(r),G=!!(!x&&w),Y=a.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),ne=a.useMemo(function(){return A0(s,G)},[JSON.stringify(s),G]),Q=Wt("",{value:u!==void 0?u:c,postState:function(Ce){return Ce||""}}),J=te(Q,2),ie=J[0],re=J[1],X=lP(x,w,ne,C,S),oe=X.valueOptions,ee=X.labelOptions,q=X.options,Z=a.useCallback(function(Ee){var Ce=D0(Ee);return Ce.map(function(ye){var Ne,Qe,Ze,bt,Fe;if(uP(ye))Ne=ye;else{var ze;Ze=ye.key,Qe=ye.label,Ne=(ze=ye.value)!==null&&ze!==void 0?ze:Ze}var ot=oe.get(Ne);if(ot){var $t;Qe===void 0&&(Qe=ot==null?void 0:ot[S||ne.label]),Ze===void 0&&(Ze=($t=ot==null?void 0:ot.key)!==null&&$t!==void 0?$t:Ne),bt=ot==null?void 0:ot.disabled,Fe=ot==null?void 0:ot.title}return{label:Qe,value:Ne,key:Ze,disabled:bt,title:Fe}})},[ne,S,oe]),le=Wt(_,{value:j}),se=te(le,2),ve=se[0],ge=se[1],ae=a.useMemo(function(){var Ee,Ce=W&&ve===null?[]:ve,ye=Z(Ce);return r==="combobox"&&nR((Ee=ye[0])===null||Ee===void 0?void 0:Ee.value)?[]:ye},[ve,Z,r,W]),fe=JR(ae,oe),ue=te(fe,2),de=ue[0],xe=ue[1],we=a.useMemo(function(){if(!r&&de.length===1){var Ee=de[0];if(Ee.value===null&&(Ee.label===null||Ee.label===void 0))return[]}return de.map(function(Ce){var ye;return H(H({},Ce),{},{label:(ye=typeof T=="function"?T(Ce):Ce.label)!==null&&ye!==void 0?ye:Ce.value})})},[r,de,T]),Le=a.useMemo(function(){return new Set(de.map(function(Ee){return Ee.value}))},[de]);a.useEffect(function(){if(r==="combobox"){var Ee,Ce=(Ee=de[0])===null||Ee===void 0?void 0:Ee.value;re(tR(Ce)?String(Ce):"")}},[de]);var je=vv(function(Ee,Ce){var ye=Ce??Ee;return B(B({},ne.value,Ee),ne.label,ye)}),Oe=a.useMemo(function(){if(r!=="tags")return q;var Ee=pe(q),Ce=function(Ne){return oe.has(Ne)};return pe(de).sort(function(ye,Ne){return ye.value<Ne.value?-1:1}).forEach(function(ye){var Ne=ye.value;Ce(Ne)||Ee.push(je(Ne,ye.label))}),Ee},[je,q,oe,de,r]),Te=eP(Oe,ne,ie,Y,C),he=a.useMemo(function(){return r!=="tags"||!ie||Te.some(function(Ee){return Ee[C||"value"]===ie})||Te.some(function(Ee){return Ee[ne.value]===ie})?Te:[je(ie)].concat(pe(Te))},[je,C,r,Te,ie,ne]),me=function Ee(Ce){var ye=pe(Ce).sort(function(Ne,Qe){return y(Ne,Qe,{searchValue:ie})});return ye.map(function(Ne){return Array.isArray(Ne.options)?H(H({},Ne),{},{options:Ne.options.length>0?Ee(Ne.options):Ne.options}):Ne})},$e=a.useMemo(function(){return y?me(he):he},[he,y,ie]),Se=a.useMemo(function(){return OR($e,{fieldNames:ne,childrenAsData:G})},[$e,ne,G]),Re=function(Ce){var ye=Z(Ce);if(ge(ye),k&&(ye.length!==de.length||ye.some(function(Ze,bt){var Fe;return((Fe=de[bt])===null||Fe===void 0?void 0:Fe.value)!==(Ze==null?void 0:Ze.value)}))){var Ne=D?ye:ye.map(function(Ze){return Ze.value}),Qe=ye.map(function(Ze){return pu(xe(Ze.value))});k(W?Ne:Ne[0],W?Qe:Qe[0])}},be=a.useState(null),Ie=te(be,2),De=Ie[0],ke=Ie[1],gt=a.useState(0),ht=te(gt,2),Pe=ht[0],We=ht[1],Ye=O!==void 0?O:r!=="combobox",_e=a.useCallback(function(Ee,Ce){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ne=ye.source,Qe=Ne===void 0?"keyboard":Ne;We(Ce),l&&r==="combobox"&&Ee!==null&&Qe==="keyboard"&&ke(String(Ee))},[l,r]),Ge=function(Ce,ye,Ne){var Qe=function(){var St,jt=xe(Ce);return[D?{label:jt==null?void 0:jt[ne.label],value:Ce,key:(St=jt==null?void 0:jt.key)!==null&&St!==void 0?St:Ce}:Ce,pu(jt)]};if(ye&&v){var Ze=Qe(),bt=te(Ze,2),Fe=bt[0],ze=bt[1];v(Fe,ze)}else if(!ye&&p&&Ne!=="clear"){var ot=Qe(),$t=te(ot,2),Rt=$t[0],Mt=$t[1];p(Rt,Mt)}},vt=vv(function(Ee,Ce){var ye,Ne=W?Ce.selected:!0;Ne?ye=W?[].concat(pe(de),[Ee]):[Ee]:ye=de.filter(function(Qe){return Qe.value!==Ee}),Re(ye),Ge(Ee,Ne),r==="combobox"?ke(""):(!hu||m)&&(re(""),ke(""))}),dt=function(Ce,ye){Re(Ce);var Ne=ye.type,Qe=ye.values;(Ne==="remove"||Ne==="clear")&&Qe.forEach(function(Ze){Ge(Ze.value,!1,Ne)})},Ae=function(Ce,ye){if(re(Ce),ke(null),ye.source==="submit"){var Ne=(Ce||"").trim();if(Ne){var Qe=Array.from(new Set([].concat(pe(Le),[Ne])));Re(Qe),Ge(Ne,!0),re("")}return}ye.source!=="blur"&&(r==="combobox"&&Re(Ce),d==null||d(Ce))},Je=function(Ce){var ye=Ce;r!=="tags"&&(ye=Ce.map(function(Qe){var Ze=ee.get(Qe);return Ze==null?void 0:Ze.value}).filter(function(Qe){return Qe!==void 0}));var Ne=Array.from(new Set([].concat(pe(Le),pe(ye))));Re(Ne),Ne.forEach(function(Qe){Ge(Qe,!0)})},Ue=a.useMemo(function(){var Ee=I!==!1&&g!==!1;return H(H({},X),{},{flattenOptions:Se,onActiveValue:_e,defaultActiveFirstOption:Ye,onSelect:vt,menuItemSelectedIcon:$,rawValues:Le,fieldNames:ne,virtual:Ee,direction:P,listHeight:M,listItemHeight:z,childrenAsData:G,maxCount:V,optionRender:E})},[V,X,Se,_e,Ye,vt,$,Le,ne,I,g,P,M,z,G,E]);return a.createElement(Sd.Provider,{value:Ue},a.createElement(MR,ce({},K,{id:A,prefixCls:i,ref:t,omitDomProps:cP,mode:r,displayValues:we,onDisplayValuesChange:dt,direction:P,searchValue:ie,onSearch:Ae,autoClearSearchValue:m,onSearchSplit:Je,dropdownMatchSelectWidth:g,OptionList:ZR,emptyOptions:!Se.length,activeValue:De,activeDescendantId:"".concat(A,"_list_").concat(Pe)})))}),wd=dP;wd.Option=$d;wd.OptGroup=xd;function Zo(e,t,n){return F({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ci=(e,t)=>t||e,fP=()=>{const[,e]=pn(),[t]=vr("Empty"),r=new Tt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return a.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,(t==null?void 0:t.description)||"Empty"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.67)"},a.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),a.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),a.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),a.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),a.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),a.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),a.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},a.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),a.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},mP=()=>{const[,e]=pn(),[t]=vr("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:l,shadowColor:s,contentColor:c}=a.useMemo(()=>({borderColor:new Tt(n).onBackground(i).toHexString(),shadowColor:new Tt(r).onBackground(i).toHexString(),contentColor:new Tt(o).onBackground(i).toHexString()}),[n,r,o,i]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,(t==null?void 0:t.description)||"Empty"),a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:l},a.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),a.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},vP=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},gP=Et("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Ct(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return vP(o)});var pP=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 V0=a.createElement(fP,null),W0=a.createElement(mP,null),Rr=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:i,description:l,children:s,imageStyle:c,style:u,classNames:d,styles:f}=e,m=pP(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:p,className:h,style:g,classNames:b,styles:y,image:C}=on("empty"),S=v("empty",o),[x,E,w]=gP(S),[O]=vr("Empty"),$=typeof l<"u"?l:O==null?void 0:O.description,I=typeof $=="string"?$:"empty",P=(t=i??C)!==null&&t!==void 0?t:V0;let N=null;return typeof P=="string"?N=a.createElement("img",{draggable:!1,alt:I,src:P}):N=P,x(a.createElement("div",Object.assign({className:F(E,w,S,h,{[`${S}-normal`]:P===W0,[`${S}-rtl`]:p==="rtl"},n,r,b.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),g),f==null?void 0:f.root),u)},m),a.createElement("div",{className:F(`${S}-image`,b.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},c),y.image),f==null?void 0:f.image)},N),$&&a.createElement("div",{className:F(`${S}-description`,b.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},y.description),f==null?void 0:f.description)},$),s&&a.createElement("div",{className:F(`${S}-footer`,b.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},y.footer),f==null?void 0:f.footer)},s)))};Rr.PRESENTED_IMAGE_DEFAULT=V0;Rr.PRESENTED_IMAGE_SIMPLE=W0;const K0=e=>{const{componentName:t}=e,{getPrefixCls:n}=a.useContext(tt),r=n("empty");switch(t){case"Table":case"List":return U.createElement(Rr,{image:Rr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return U.createElement(Rr,{image:Rr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return U.createElement(Rr,null)}},ui=(e,t,n)=>{var r,o;const{variant:i,[e]:l}=a.useContext(tt),s=a.useContext(c0),c=l==null?void 0:l.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(o=(r=s??c)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const d=Nx.includes(u);return[u,d]},hP=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function bP(e,t){return e||hP(t)}const gv=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},yP=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
187
+ ${o}${s}bottomLeft,
188
+ ${i}${s}bottomLeft
189
+ `]:{animationName:sd},[`
190
+ ${o}${s}topLeft,
191
+ ${i}${s}topLeft,
192
+ ${o}${s}topRight,
193
+ ${i}${s}topRight
194
+ `]:{animationName:ud},[`${l}${s}bottomLeft`]:{animationName:cd},[`
195
+ ${l}${s}topLeft,
196
+ ${l}${s}topRight
197
+ `]:{animationName:dd},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},gv(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Sr),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},gv(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Kr(e,"slide-up"),Kr(e,"slide-down"),ml(e,"move-up"),ml(e,"move-down")]},CP=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),l=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:l,itemHeight:L(t),itemLineHeight:L(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},SP=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},xP=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},yo()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},$P=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,l=SP(e),s=t?`${n}-${t}`:"",c=CP(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},xP(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${L(r)} 0`,lineHeight:L(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:L(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:L(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
198
+ ${n}-prefix + ${n}-selection-wrap
199
+ `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:L(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Xs(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
200
+ &${n}-show-arrow ${n}-selector,
201
+ &${n}-allow-clear ${n}-selector
202
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[$P(e,t),o]}const wP=e=>{const{componentCls:t}=e,n=Ct(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ct(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Xs(e),Xs(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Xs(r,"lg")]};function Ys(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Nt(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:L(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
203
+ ${n}-selection-item,
204
+ ${n}-selection-placeholder
205
+ `]:{display:"block",padding:0,lineHeight:L(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
206
+ &${n}-show-arrow ${n}-selection-item,
207
+ &${n}-show-arrow ${n}-selection-search,
208
+ &${n}-show-arrow ${n}-selection-placeholder
209
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${L(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:L(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${L(r)}`,"&:after":{display:"none"}}}}}}}function EP(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Ys(e),Ys(Ct(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${L(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
210
+ &${t}-show-arrow ${t}-selection-item,
211
+ &${t}-show-arrow ${t}-selection-placeholder
212
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Ys(Ct(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const OP=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:l,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:v,colorBgContainer:p,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:C,controlOutline:S}=e,x=s*2,E=r*2,w=Math.min(o-x,o-E),O=Math.min(i-x,i-E),$=Math.min(l-x,l-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:p,clearBg:p,singleItemHeightLG:l,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:O,multipleItemHeightLG:$,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:C,activeOutlineColor:S,selectAffixPadding:s}},G0=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${L(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${L(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},pv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},G0(e,t))}),IP=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},G0(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),pv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),pv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${L(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),q0=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${L(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},hv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},q0(e,t))}),RP=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},q0(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),hv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),hv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${L(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),PP=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${L(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${L(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),U0=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${L(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},bv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},U0(e,t))}),NP=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},U0(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),bv(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),bv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${L(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),MP=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},IP(e)),RP(e)),PP(e)),NP(e))}),TP=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},jP=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},zP=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},TP(e)),jP(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Sr),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Sr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},yo()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},_P=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},zP(e),EP(e),wP(e),yP(e),{[`${t}-rtl`]:{direction:"rtl"}},ri(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},BP=Et("Select",(e,{rootPrefixCls:t})=>{const n=Ct(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[_P(n),MP(n)]},OP,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var DP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},LP=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:DP}))},X0=a.forwardRef(LP),AP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},HP=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:AP}))},Ed=a.forwardRef(HP),FP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},kP=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:FP}))},Od=a.forwardRef(kP);function VP({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:i,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??a.createElement(Co,null),v=b=>e===null&&!l&&!d?null:a.createElement(a.Fragment,null,c!==!1&&b,l&&u);let p=null;if(e!==void 0)p=v(e);else if(o)p=v(a.createElement(xo,{spin:!0}));else{const b=`${s}-suffix`;p=({open:y,showSearch:C})=>v(y&&C?a.createElement(Od,{className:b}):a.createElement(Ed,{className:b}))}let h=null;n!==void 0?h=n:i?h=a.createElement(X0,null):h=null;let g=null;return r!==void 0?g=r:g=a.createElement(Xr,null),{clearIcon:m,suffixIcon:p,itemIcon:h,removeIcon:g}}function WP(e){return U.useMemo(()=>{if(e)return(...t)=>U.createElement(Gr,{space:!0},e.apply(void 0,t))},[e])}function KP(e,t){return t!==void 0?t:e!==null}var GP=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 Y0="SECRET_COMBOBOX_MODE_DO_NOT_USE",qP=(e,t)=>{var n,r,o,i,l;const{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:v,listHeight:p=256,placement:h,listItemHeight:g,size:b,disabled:y,notFoundContent:C,status:S,builtinPlacements:x,dropdownMatchSelectWidth:E,popupMatchSelectWidth:w,direction:O,style:$,allowClear:I,variant:P,dropdownStyle:N,transitionName:M,tagRender:R,maxCount:z,prefix:T,dropdownRender:j,popupRender:_,onDropdownVisibleChange:D,onOpenChange:k,styles:V,classNames:K}=e,A=GP(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:W,getPrefixCls:G,renderEmpty:Y,direction:ne,virtual:Q,popupMatchSelectWidth:J,popupOverflow:ie}=a.useContext(tt),{showSearch:re,style:X,styles:oe,className:ee,classNames:q}=on("select"),[,Z]=pn(),le=g??(Z==null?void 0:Z.controlHeight),se=G("select",s),ve=G(),ge=O??ne,{compactSize:ae,compactItemClassnames:fe}=Yr(se,ge),[ue,de]=ui("select",P,c),xe=fn(se),[we,Le,je]=BP(se,xe),Oe=a.useMemo(()=>{const{mode:Ne}=e;if(Ne!=="combobox")return Ne===Y0?"combobox":Ne},[e.mode]),Te=Oe==="multiple"||Oe==="tags",he=KP(e.suffixIcon,e.showArrow),me=(n=w??E)!==null&&n!==void 0?n:J,$e=((r=V==null?void 0:V.popup)===null||r===void 0?void 0:r.root)||((o=oe.popup)===null||o===void 0?void 0:o.root)||N,Se=WP(_||j),Re=k||D,{status:be,hasFeedback:Ie,isFormItemInput:De,feedbackIcon:ke}=a.useContext(Rn),gt=ci(be,S);let ht;C!==void 0?ht=C:Oe==="combobox"?ht=null:ht=(Y==null?void 0:Y("Select"))||a.createElement(K0,{componentName:"Select"});const{suffixIcon:Pe,itemIcon:We,removeIcon:Ye,clearIcon:_e}=VP(Object.assign(Object.assign({},A),{multiple:Te,hasFeedback:Ie,feedbackIcon:ke,showSuffixIcon:he,prefixCls:se,componentName:"Select"})),Ge=I===!0?{clearIcon:_e}:I,vt=Ht(A,["suffixIcon","itemIcon"]),dt=F(((i=K==null?void 0:K.popup)===null||i===void 0?void 0:i.root)||((l=q==null?void 0:q.popup)===null||l===void 0?void 0:l.root)||m||v,{[`${se}-dropdown-${ge}`]:ge==="rtl"},d,q.root,K==null?void 0:K.root,je,xe,Le),Ae=hn(Ne=>{var Qe;return(Qe=b??ae)!==null&&Qe!==void 0?Qe:Ne}),Je=a.useContext(kn),Ue=y??Je,Ee=F({[`${se}-lg`]:Ae==="large",[`${se}-sm`]:Ae==="small",[`${se}-rtl`]:ge==="rtl",[`${se}-${ue}`]:de,[`${se}-in-form-item`]:De},Zo(se,gt,Ie),fe,ee,u,q.root,K==null?void 0:K.root,d,je,xe,Le),Ce=a.useMemo(()=>h!==void 0?h:ge==="rtl"?"bottomRight":"bottomLeft",[h,ge]),[ye]=ia("SelectLike",$e==null?void 0:$e.zIndex);return we(a.createElement(wd,Object.assign({ref:t,virtual:Q,showSearch:re},vt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},oe.root),V==null?void 0:V.root),X),$),dropdownMatchSelectWidth:me,transitionName:Wr(ve,"slide-up",M),builtinPlacements:bP(x,ie),listHeight:p,listItemHeight:le,mode:Oe,prefixCls:se,placement:Ce,direction:ge,prefix:T,suffixIcon:Pe,menuItemSelectedIcon:We,removeIcon:Ye,allowClear:Ge,notFoundContent:ht,className:Ee,getPopupContainer:f||W,dropdownClassName:dt,disabled:Ue,dropdownStyle:Object.assign(Object.assign({},$e),{zIndex:ye}),maxCount:Te?z:void 0,tagRender:Te?R:void 0,dropdownRender:Se,onDropdownVisibleChange:Re})))},$r=a.forwardRef(qP),UP=Cd($r,"dropdownAlign");$r.SECRET_COMBOBOX_MODE_DO_NOT_USE=Y0;$r.Option=$d;$r.OptGroup=xd;$r._InternalPanelDoNotUseOrYouWillBeFired=UP;const{Option:yv}=$r;function Cv(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const XP=(e,t)=>{var n,r;const{prefixCls:o,className:i,popupClassName:l,dropdownClassName:s,children:c,dataSource:u,dropdownStyle:d,dropdownRender:f,popupRender:m,onDropdownVisibleChange:v,onOpenChange:p,styles:h,classNames:g}=e,b=cn(c),y=((n=h==null?void 0:h.popup)===null||n===void 0?void 0:n.root)||d,C=((r=g==null?void 0:g.popup)===null||r===void 0?void 0:r.root)||l||s,S=m||f,x=p||v;let E;b.length===1&&a.isValidElement(b[0])&&!Cv(b[0])&&([E]=b);const w=E?()=>E:void 0;let O;b.length&&Cv(b[0])?O=c:O=u?u.map(N=>{if(a.isValidElement(N))return N;switch(typeof N){case"string":return a.createElement(yv,{key:N,value:N},N);case"object":{const{value:M}=N;return a.createElement(yv,{key:M,value:M},N.text)}default:return}}):[];const{getPrefixCls:$}=a.useContext(tt),I=$("select",o),[P]=ia("SelectLike",y==null?void 0:y.zIndex);return a.createElement($r,Object.assign({ref:t,suffixIcon:null},Ht(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:I,classNames:{popup:{root:C},root:g==null?void 0:g.root},styles:{popup:{root:Object.assign(Object.assign({},y),{zIndex:P})},root:h==null?void 0:h.root},className:F(`${I}-auto-complete`,i),mode:$r.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:S,onOpenChange:x,getInputElement:w}),O)},Q0=a.forwardRef(XP),{Option:YP}=$r,QP=Cd(Q0,"dropdownAlign",e=>Ht(e,["visible"])),Z0=Q0;Z0.Option=YP;Z0._InternalPanelDoNotUseOrYouWillBeFired=QP;const J0=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},eb=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Jo=["xxl","xl","lg","md","sm","xs"],ZP=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),JP=e=>{const t=e,n=[].concat(Jo).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),l=`screen${i}Min`,s=`screen${i}`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);if(o<n.length-1){const c=`screen${i}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`)}}),e},tb=(e,t)=>{if(t){for(const n of Jo)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},eN=()=>{const[,e]=pn(),t=ZP(JP(e));return U.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(l=>l(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,l])=>{const s=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},c=window.matchMedia(l);J0(c,s),this.matchHandlers[l]={mql:c,listener:s},s(c)})},unregister(){Object.values(t).forEach(i=>{const l=this.matchHandlers[i];eb(l==null?void 0:l.mql,l==null?void 0:l.listener)}),n.clear()}}},[t])};function Ql(e=!0,t={}){const n=a.useRef(t),[,r]=Nh(),o=eN();return wt(()=>{const i=o.subscribe(l=>{n.current=l,e&&r()});return()=>o.unsubscribe(i)},[]),n.current}const ea=e=>e?typeof e=="function"?e():e:null;function Id(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,l=e.className,s=e.style;return a.createElement("div",{className:F("".concat(n,"-content"),l),style:s},a.createElement("div",{className:F("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var No={shiftX:64,adjustY:1},Mo={adjustX:1,shiftY:!0},Zn=[0,0],tN={left:{points:["cr","cl"],overflow:Mo,offset:[-4,0],targetOffset:Zn},right:{points:["cl","cr"],overflow:Mo,offset:[4,0],targetOffset:Zn},top:{points:["bc","tc"],overflow:No,offset:[0,-4],targetOffset:Zn},bottom:{points:["tc","bc"],overflow:No,offset:[0,4],targetOffset:Zn},topLeft:{points:["bl","tl"],overflow:No,offset:[0,-4],targetOffset:Zn},leftTop:{points:["tr","tl"],overflow:Mo,offset:[-4,0],targetOffset:Zn},topRight:{points:["br","tr"],overflow:No,offset:[0,-4],targetOffset:Zn},rightTop:{points:["tl","tr"],overflow:Mo,offset:[4,0],targetOffset:Zn},bottomRight:{points:["tr","br"],overflow:No,offset:[0,4],targetOffset:Zn},rightBottom:{points:["bl","br"],overflow:Mo,offset:[4,0],targetOffset:Zn},bottomLeft:{points:["tl","bl"],overflow:No,offset:[0,4],targetOffset:Zn},leftBottom:{points:["br","bl"],overflow:Mo,offset:[-4,0],targetOffset:Zn}},nN=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],rN=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,l=t.mouseEnterDelay,s=l===void 0?0:l,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,v=t.children,p=t.onVisibleChange,h=t.afterVisibleChange,g=t.transitionName,b=t.animation,y=t.motion,C=t.placement,S=C===void 0?"right":C,x=t.align,E=x===void 0?{}:x,w=t.destroyTooltipOnHide,O=w===void 0?!1:w,$=t.defaultVisible,I=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,M=t.id,R=t.showArrow,z=R===void 0?!0:R,T=t.classNames,j=t.styles,_=it(t,nN),D=ai(M),k=a.useRef(null);a.useImperativeHandle(n,function(){return k.current});var V=H({},_);"visible"in t&&(V.popupVisible=t.visible);var K=function(){return a.createElement(Id,{key:"content",prefixCls:m,id:D,bodyClassName:T==null?void 0:T.body,overlayInnerStyle:H(H({},P),j==null?void 0:j.body)},N)},A=function(){var G=a.Children.only(v),Y=(G==null?void 0:G.props)||{},ne=H(H({},Y),{},{"aria-describedby":N?D:null});return a.cloneElement(v,ne)};return a.createElement(Xl,ce({popupClassName:F(r,T==null?void 0:T.root),prefixCls:m,popup:K,action:i,builtinPlacements:tN,popupPlacement:S,ref:k,popupAlign:E,getPopupContainer:I,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:b,popupMotion:y,defaultPopupVisible:$,autoDestroy:O,mouseLeaveDelay:u,popupStyle:H(H({},d),j==null?void 0:j.root),mouseEnterDelay:s,arrow:z},V),A())};const oN=a.forwardRef(rN);function Rd(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,l=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,v=2*o-s,p=c,h=2*o-i,g=l,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),C=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${i} ${l} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${v} ${p} A ${r} ${r} 0 0 0 ${h} ${g} Z')`;return{arrowShadowWidth:b,arrowPath:S,arrowPolygon:C}}const aN=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:l,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${L(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},nb=8;function Zl(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?nb:r}}function Mi(e,t){return e?t:{}}function Pd(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:l}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},aN(e,t,o)),{"&:before":{background:t}})]},Mi(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${L(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),Mi(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${L(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),Mi(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Mi(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function iN(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.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const l=Object.assign(Object.assign({},i),o);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const Sv={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"]}},lN={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"]}},sN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function rb(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:l}=e,s=t/2,c={},u=Zl({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Sv).forEach(d=>{const f=r&&lN[d]||Sv[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[d]=m,sN.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=s+o;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-s;break}m.overflow=iN(d,u,t,n),l&&(m.htmlRegion="visibleFirst")}),c}const cN=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:l,zIndexPopup:s,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:v}=e,p=t(l).add(v).add(m).equal(),h=t(l).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:h,minHeight:c,padding:`${L(e.calc(d).div(2).equal())} ${L(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:l,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(l,nb)}},[`${n}-content`]:{position:"relative"}}),Ml(e,(g,{darkColor:b})=>({[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},Pd(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},uN=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Zl({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Rd(Ct(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ob=(e,t=!0)=>Et("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:l}=r,s=Ct(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:l});return[cN(s),ni(r,"zoom-big-fast")]},uN,{resetStyle:!1,injectStyle:t})(e),dN=kr.map(e=>`${e}-inverse`),fN=["success","processing","error","default","warning"];function Jl(e,t=!0){return t?[].concat(pe(dN),pe(kr)).includes(e):kr.includes(e)}function mN(e){return fN.includes(e)}function ab(e,t){const n=Jl(t),r=F({[`${e}-${t}`]:t&&n}),o={},i={},l=PE(t).toRgb(),c=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=c,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const vN=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:l}=e,{getPrefixCls:s}=a.useContext(tt),c=s("tooltip",t),[u,d,f]=ob(c),m=ab(c,i),v=m.arrowStyle,p=Object.assign(Object.assign({},l),m.overlayStyle),h=F(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(a.createElement("div",{className:h,style:v},a.createElement("div",{className:`${c}-arrow`}),a.createElement(Id,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:p}),o)))};var gN=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 pN=a.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:v,arrow:p=!0,title:h,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0,motion:S,getPopupContainer:x,placement:E="top",mouseEnterDelay:w=.1,mouseLeaveDelay:O=.1,overlayStyle:$,rootClassName:I,overlayClassName:P,styles:N,classNames:M}=e,R=gN(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),z=!!p,[,T]=pn(),{getPopupContainer:j,getPrefixCls:_,direction:D,className:k,style:V,classNames:K,styles:A}=on("tooltip"),W=Er(),G=a.useRef(null),Y=()=>{var he;(he=G.current)===null||he===void 0||he.forceAlign()};a.useImperativeHandle(t,()=>{var he,me;return{forceAlign:Y,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),Y()},nativeElement:(he=G.current)===null||he===void 0?void 0:he.nativeElement,popupElement:(me=G.current)===null||me===void 0?void 0:me.popupElement}});const[ne,Q]=Wt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),J=!h&&!g&&h!==0,ie=he=>{var me,$e;Q(J?!1:he),J||((me=e.onOpenChange)===null||me===void 0||me.call(e,he),($e=e.onVisibleChange)===null||$e===void 0||$e.call(e,he))},re=a.useMemo(()=>{var he,me;let $e=y;return typeof p=="object"&&($e=(me=(he=p.pointAtCenter)!==null&&he!==void 0?he:p.arrowPointAtCenter)!==null&&me!==void 0?me:y),b||rb({arrowPointAtCenter:$e,autoAdjustOverflow:C,arrowWidth:z?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})},[y,p,b,T]),X=a.useMemo(()=>h===0?h:g||h||"",[g,h]),oe=a.createElement(Gr,{space:!0},typeof X=="function"?X():X),ee=_("tooltip",o),q=_(),Z=e["data-popover-inject"];let le=ne;!("open"in e)&&!("visible"in e)&&J&&(le=!1);const se=a.isValidElement(u)&&!$h(u)?u:a.createElement("span",null,u),ve=se.props,ge=!ve.className||typeof ve.className=="string"?F(ve.className,i||`${ee}-open`):ve.className,[ae,fe,ue]=ob(ee,!Z),de=ab(ee,s),xe=de.arrowStyle,we=F(P,{[`${ee}-rtl`]:D==="rtl"},de.className,I,fe,ue,k,K.root,M==null?void 0:M.root),Le=F(K.body,M==null?void 0:M.body),[je,Oe]=ia("Tooltip",R.zIndex),Te=a.createElement(oN,Object.assign({},R,{zIndex:je,showArrow:z,placement:E,mouseEnterDelay:w,mouseLeaveDelay:O,prefixCls:ee,classNames:{root:we,body:Le},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),A.root),V),$),N==null?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},A.body),c),N==null?void 0:N.body),de.overlayStyle)},getTooltipContainer:x||l||j,ref:G,builtinPlacements:re,overlay:oe,visible:le,onVisibleChange:ie,afterVisibleChange:d??f,arrowContent:a.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:Wr(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!m}),le?un(se,{className:ge}):se);return ae(a.createElement(jl.Provider,{value:Oe},Te))}),Mr=pN;Mr._InternalPanelDoNotUseOrYouWillBeFired=vN;const hN=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:v,innerContentPadding:p,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:l,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:v,padding:h},[`${t}-inner-content`]:{color:n,padding:p}})},Pd(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},bN=e=>{const{componentCls:t}=e;return{[t]:kr.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},yN=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:l,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,v=m/2,p=m/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:l+30},Rd(e)),Zl({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${v}px ${h}px ${p}px`:0,titleBorderBottom:i?`${t}px ${u} ${d}`:"none",innerContentPadding:i?`${f}px ${h}px`:0})},ib=Et("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ct(e,{popoverBg:t,popoverColor:n});return[hN(r),bN(r),ni(r,"zoom-big")]},yN,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var CN=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 lb=({title:e,content:t,prefixCls:n})=>!e&&!t?null:a.createElement(a.Fragment,null,e&&a.createElement("div",{className:`${n}-title`},e),t&&a.createElement("div",{className:`${n}-inner-content`},t)),SN=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:l,content:s,children:c}=e,u=ea(l),d=ea(s),f=F(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return a.createElement("div",{className:f,style:o},a.createElement("div",{className:`${n}-arrow`}),a.createElement(Id,Object.assign({},e,{className:t,prefixCls:n}),c||a.createElement(lb,{prefixCls:n,title:u,content:d})))},sb=e=>{const{prefixCls:t,className:n}=e,r=CN(e,["prefixCls","className"]),{getPrefixCls:o}=a.useContext(tt),i=o("popover",t),[l,s,c]=ib(i);return l(a.createElement(SN,Object.assign({},r,{prefixCls:i,hashId:s,className:F(n,c)})))};var xN=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 $N=a.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:l,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:v,overlayStyle:p={},styles:h,classNames:g}=e,b=xN(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:C,style:S,classNames:x,styles:E}=on("popover"),w=y("popover",o),[O,$,I]=ib(w),P=y(),N=F(s,$,I,C,x.root,g==null?void 0:g.root),M=F(x.body,g==null?void 0:g.body),[R,z]=Wt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),T=(V,K)=>{z(V,!0),v==null||v(V,K)},j=V=>{V.keyCode===Be.ESC&&T(!1,V)},_=V=>{T(V)},D=ea(i),k=ea(l);return O(a.createElement(Mr,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},b,{prefixCls:w,classNames:{root:N,body:M},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),S),p),h==null?void 0:h.root),body:Object.assign(Object.assign({},E.body),h==null?void 0:h.body)},ref:t,open:R,onOpenChange:_,overlay:D||k?a.createElement(lb,{prefixCls:w,title:D,content:k}):null,transitionName:Wr(P,"zoom-big",b.transitionName),"data-popover-inject":!0}),un(d,{onKeyDown:V=>{var K,A;a.isValidElement(d)&&((A=d==null?void 0:(K=d.props).onKeyDown)===null||A===void 0||A.call(K,V)),j(V)}})))}),cb=$N;cb._InternalPanelDoNotUseOrYouWillBeFired=sb;const wN=new xt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),EN=new xt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),ON=new xt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),IN=new xt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),RN=new xt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),PN=new xt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),NN=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:l,statusSize:s,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:m,calc:v}=e,p=`${r}-scroll-number`,h=Ml(e,(g,{darkColor:b})=>({[`&${t} ${t}-color-${g}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:L(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(d).div(2).equal(),boxShadow:`0 0 0 ${L(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:l,lineHeight:L(f),borderRadius:v(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${L(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${L(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${p}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:PN,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:wN,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),h),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:EN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:ON,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:IN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:RN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${p}-custom-component, ${t}-count`]:{transform:"none"},[`${p}-custom-component, ${p}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[p]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${p}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${p}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${p}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${p}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},ub=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,l=n,s=e.colorTextLightSolid,c=e.colorError,u=e.colorErrorHover;return Ct(e,{badgeFontHeight:i,badgeShadowSize:l,badgeTextColor:s,badgeColor:c,badgeColorHover:u,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},db=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},MN=Et("Badge",e=>{const t=ub(e);return NN(t)},db),TN=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,l=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=Ml(e,(u,{darkColor:d})=>({[`&${l}-color-${u}`]:{background:d,color:d}}));return{[s]:{position:"relative"},[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:r,padding:`0 ${L(e.paddingXS)}`,color:e.colorPrimary,lineHeight:L(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${l}-text`]:{color:e.badgeTextColor},[`${l}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${L(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${l}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${l}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${l}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${l}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},jN=Et(["Badge","Ribbon"],e=>{const t=ub(e);return TN(t)},db),zN=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:l,placement:s="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=a.useContext(tt),f=u("ribbon",n),m=`${f}-wrapper`,[v,p,h]=jN(f,m),g=Jl(o,!1),b=F(f,`${f}-placement-${s}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:g},t),y={},C={};return o&&!g&&(y.background=o,C.color=o),v(a.createElement("div",{className:F(m,c,p,h)},i,a.createElement("div",{className:F(b,p),style:Object.assign(Object.assign({},y),r)},a.createElement("span",{className:`${f}-text`},l),a.createElement("div",{className:`${f}-corner`,style:C}))))},xv=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),a.createElement("span",{style:i,className:F(`${t}-only-unit`,{current:r})},n)};function _N(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const BN=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[l,s]=a.useState(o),[c,u]=a.useState(i),d=()=>{s(o),u(i)};a.useEffect(()=>{const v=setTimeout(d,1e3);return()=>clearTimeout(v)},[o]);let f,m;if(l===o||Number.isNaN(o)||Number.isNaN(l))f=[a.createElement(xv,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else{f=[];const v=o+10,p=[];for(let y=o;y<=v;y+=1)p.push(y);const h=c<i?1:-1,g=p.findIndex(y=>y%10===l);f=(h<0?p.slice(0,g+1):p.slice(g)).map((y,C)=>{const S=y%10;return a.createElement(xv,Object.assign({},e,{key:y,value:S,offset:h<0?C-g:C,current:C===g}))}),m={transform:`translateY(${-_N(l,o,h)}00%)`}}return a.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:d},f)};var DN=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 LN=a.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:l,title:s,show:c,component:u="sup",children:d}=e,f=DN(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=a.useContext(tt),v=m("scroll-number",n),p=Object.assign(Object.assign({},f),{"data-show":c,style:l,className:F(v,o,i),title:s});let h=r;if(r&&Number(r)%1===0){const g=String(r).split("");h=a.createElement("bdi",null,g.map((b,y)=>a.createElement(BN,{prefixCls:v,count:Number(r),value:b,key:g.length-y})))}return l!=null&&l.borderColor&&(p.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),d?un(d,g=>({className:F(`${v}-custom-component`,g==null?void 0:g.className,i)})):a.createElement(u,Object.assign({},p,{ref:t}),h)});var AN=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 HN=a.forwardRef((e,t)=>{var n,r,o,i,l;const{prefixCls:s,scrollNumberPrefixCls:c,children:u,status:d,text:f,color:m,count:v=null,overflowCount:p=99,dot:h=!1,size:g="default",title:b,offset:y,style:C,className:S,rootClassName:x,classNames:E,styles:w,showZero:O=!1}=e,$=AN(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:I,direction:P,badge:N}=a.useContext(tt),M=I("badge",s),[R,z,T]=MN(M),j=v>p?`${p}+`:v,_=j==="0"||j===0||f==="0"||f===0,D=v===null||_&&!O,k=(d!=null||m!=null)&&D,V=d!=null||!_,K=h&&!_,A=K?"":j,W=a.useMemo(()=>((A==null||A==="")&&(f==null||f==="")||_&&!O)&&!K,[A,_,O,K,f]),G=a.useRef(v);W||(G.current=v);const Y=G.current,ne=a.useRef(A);W||(ne.current=A);const Q=ne.current,J=a.useRef(K);W||(J.current=K);const ie=a.useMemo(()=>{if(!y)return Object.assign(Object.assign({},N==null?void 0:N.style),C);const ve={marginTop:y[1]};return P==="rtl"?ve.left=Number.parseInt(y[0],10):ve.right=-Number.parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},ve),N==null?void 0:N.style),C)},[P,y,C,N==null?void 0:N.style]),re=b??(typeof Y=="string"||typeof Y=="number"?Y:void 0),X=!W&&(f===0?O:!!f&&f!==!0),oe=X?a.createElement("span",{className:`${M}-status-text`},f):null,ee=!Y||typeof Y!="object"?void 0:un(Y,ve=>({style:Object.assign(Object.assign({},ie),ve.style)})),q=Jl(m,!1),Z=F(E==null?void 0:E.indicator,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.indicator,{[`${M}-status-dot`]:k,[`${M}-status-${d}`]:!!d,[`${M}-color-${m}`]:q}),le={};m&&!q&&(le.color=m,le.background=m);const se=F(M,{[`${M}-status`]:k,[`${M}-not-a-wrapper`]:!u,[`${M}-rtl`]:P==="rtl"},S,x,N==null?void 0:N.className,(r=N==null?void 0:N.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,z,T);if(!u&&k&&(f||V||!D)){const ve=ie.color;return R(a.createElement("span",Object.assign({},$,{className:se,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.root),(o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.root),ie)}),a.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(i=N==null?void 0:N.styles)===null||i===void 0?void 0:i.indicator),le)}),X&&a.createElement("span",{style:{color:ve},className:`${M}-status-text`},f)))}return R(a.createElement("span",Object.assign({ref:t},$,{className:se,style:Object.assign(Object.assign({},(l=N==null?void 0:N.styles)===null||l===void 0?void 0:l.root),w==null?void 0:w.root)}),u,a.createElement(Hn,{visible:!W,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:ve})=>{var ge,ae;const fe=I("scroll-number",c),ue=J.current,de=F(E==null?void 0:E.indicator,(ge=N==null?void 0:N.classNames)===null||ge===void 0?void 0:ge.indicator,{[`${M}-dot`]:ue,[`${M}-count`]:!ue,[`${M}-count-sm`]:g==="small",[`${M}-multiple-words`]:!ue&&Q&&Q.toString().length>1,[`${M}-status-${d}`]:!!d,[`${M}-color-${m}`]:q});let xe=Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(ae=N==null?void 0:N.styles)===null||ae===void 0?void 0:ae.indicator),ie);return m&&!q&&(xe=xe||{},xe.background=m),a.createElement(LN,{prefixCls:fe,show:!W,motionClassName:ve,className:de,count:Q,title:re,style:xe,key:"scrollNumber"},ee)}),oe))}),FN=HN;FN.Ribbon=zN;var kN={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"},VN=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:kN}))},Ka=a.forwardRef(VN),WN=Be.ESC,KN=Be.TAB;function GN(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,l=a.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),l.current=!0,!0):!1},u=function(f){switch(f.keyCode){case WN:s();break;case KN:{var m=!1;l.current||(m=c()),m?f.preventDefault():s();break}}};a.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Ot(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[t])}var qN=a.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=a.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),l=dn(t,Ur(i));return U.createElement(U.Fragment,null,r&&U.createElement("div",{className:"".concat(o,"-arrow")}),U.cloneElement(i,{ref:sr(i)?l:void 0}))}),To={adjustX:1,adjustY:1},jo=[0,0],UN={topLeft:{points:["bl","tl"],overflow:To,offset:[0,-4],targetOffset:jo},top:{points:["bc","tc"],overflow:To,offset:[0,-4],targetOffset:jo},topRight:{points:["br","tr"],overflow:To,offset:[0,-4],targetOffset:jo},bottomLeft:{points:["tl","bl"],overflow:To,offset:[0,4],targetOffset:jo},bottom:{points:["tc","bc"],overflow:To,offset:[0,4],targetOffset:jo},bottomRight:{points:["tr","br"],overflow:To,offset:[0,4],targetOffset:jo}},XN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function YN(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,l=i===void 0?"rc-dropdown":i,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,v=m===void 0?UN:m,p=e.getPopupContainer,h=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,S=e.trigger,x=S===void 0?["hover"]:S,E=e.autoFocus,w=e.overlay,O=e.children,$=e.onVisibleChange,I=it(e,XN),P=U.useState(),N=te(P,2),M=N[0],R=N[1],z="visible"in e?C:M,T=U.useRef(null),j=U.useRef(null),_=U.useRef(null);U.useImperativeHandle(t,function(){return T.current});var D=function(Q){R(Q),$==null||$(Q)};GN({visible:z,triggerRef:_,onVisibleChange:D,autoFocus:E,overlayRef:j});var k=function(Q){var J=e.onOverlayClick;R(!1),J&&J(Q)},V=function(){return U.createElement(qN,{ref:j,overlay:w,prefixCls:l,arrow:o})},K=function(){return typeof w=="function"?V:V()},A=function(){var Q=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!J},W=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(l,"-open")},G=U.cloneElement(O,{className:F((n=O.props)===null||n===void 0?void 0:n.className,z&&W()),ref:sr(O)?dn(_,Ur(O)):void 0}),Y=g;return!Y&&x.indexOf("contextMenu")!==-1&&(Y=["click"]),U.createElement(Xl,ce({builtinPlacements:v},I,{prefixCls:l,ref:T,popupClassName:F(b,B({},"".concat(l,"-show-arrow"),o)),popupStyle:y,action:x,showAction:h,hideAction:Y,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:z,stretch:A()?"minWidth":"",popup:K(),onPopupVisibleChange:D,onPopupClick:k,getPopupContainer:p}),G)}const fb=U.forwardRef(YN),QN=e=>typeof e!="object"&&typeof e!="function"||e===null;var mb=a.createContext(null);function vb(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function gb(e){var t=a.useContext(mb);return vb(t,e)}var ZN=["children","locked"],fr=a.createContext(null);function JN(e,t){var n=H({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Ga(e){var t=e.children,n=e.locked,r=it(e,ZN),o=a.useContext(fr),i=bo(function(){return JN(o,r)},[o,r],function(l,s){return!n&&(l[0]!==s[0]||!Cr(l[1],s[1],!0))});return a.createElement(fr.Provider,{value:i},t)}var e4=[],pb=a.createContext(null);function es(){return a.useContext(pb)}var hb=a.createContext(e4);function ca(e){var t=a.useContext(hb);return a.useMemo(function(){return e!==void 0?[].concat(pe(t),[e]):t},[t,e])}var bb=a.createContext(null),Nd=a.createContext({});function $v(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ei(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),l=null;return o&&!Number.isNaN(i)?l=i:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function t4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=pe(e.querySelectorAll("*")).filter(function(r){return $v(r,t)});return $v(e,t)&&n.unshift(e),n}var yu=Be.LEFT,Cu=Be.RIGHT,Su=Be.UP,Xi=Be.DOWN,Yi=Be.ENTER,yb=Be.ESC,Sa=Be.HOME,xa=Be.END,wv=[Su,Xi,yu,Cu];function n4(e,t,n,r){var o,i="prev",l="next",s="children",c="parent";if(e==="inline"&&r===Yi)return{inlineTrigger:!0};var u=B(B({},Su,i),Xi,l),d=B(B(B(B({},yu,n?l:i),Cu,n?i:l),Xi,s),Yi,s),f=B(B(B(B(B(B({},Su,i),Xi,l),Yi,s),yb,c),yu,n?s:c),Cu,n?c:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},v=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(v){case i:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function r4(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function o4(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Md(e,t){var n=t4(e,!0);return n.filter(function(r){return t.has(r)})}function Ev(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Md(e,t),i=o.length,l=o.findIndex(function(s){return n===s});return r<0?l===-1?l=i-1:l-=1:r>0&&(l+=1),l=(l+i)%i,o[l]}var xu=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(vb(n,l),"']"));s&&(r.add(s),i.set(s,l),o.set(l,s))}),{elements:r,key2element:o,element2key:i}};function a4(e,t,n,r,o,i,l,s,c,u){var d=a.useRef(),f=a.useRef();f.current=t;var m=function(){Ot.cancel(d.current)};return a.useEffect(function(){return function(){m()}},[]),function(v){var p=v.which;if([].concat(wv,[Yi,yb,Sa,xa]).includes(p)){var h=i(),g=xu(h,r),b=g,y=b.elements,C=b.key2element,S=b.element2key,x=C.get(t),E=o4(x,y),w=S.get(E),O=n4(e,l(w,!0).length===1,n,p);if(!O&&p!==Sa&&p!==xa)return;(wv.includes(p)||[Sa,xa].includes(p))&&v.preventDefault();var $=function(j){if(j){var _=j,D=j.querySelector("a");D!=null&&D.getAttribute("href")&&(_=D);var k=S.get(j);s(k),m(),d.current=Ot(function(){f.current===k&&_.focus()})}};if([Sa,xa].includes(p)||O.sibling||!E){var I;!E||e==="inline"?I=o.current:I=r4(E);var P,N=Md(I,y);p===Sa?P=N[0]:p===xa?P=N[N.length-1]:P=Ev(I,y,E,O.offset),$(P)}else if(O.inlineTrigger)c(w);else if(O.offset>0)c(w,!0),m(),d.current=Ot(function(){g=xu(h,r);var T=E.getAttribute("aria-controls"),j=document.getElementById(T),_=Ev(j,g.elements);$(_)},5);else if(O.offset<0){var M=l(w,!0),R=M[M.length-2],z=C.get(R);c(R,!1),$(z)}}u==null||u(v)}}function i4(e){Promise.resolve().then(e)}var Td="__RC_UTIL_PATH_SPLIT__",Ov=function(t){return t.join(Td)},l4=function(t){return t.split(Td)},$u="rc-menu-more";function s4(){var e=a.useState({}),t=te(e,2),n=t[1],r=a.useRef(new Map),o=a.useRef(new Map),i=a.useState([]),l=te(i,2),s=l[0],c=l[1],u=a.useRef(0),d=a.useRef(!1),f=function(){d.current||n({})},m=a.useCallback(function(C,S){var x=Ov(S);o.current.set(x,C),r.current.set(C,x),u.current+=1;var E=u.current;i4(function(){E===u.current&&f()})},[]),v=a.useCallback(function(C,S){var x=Ov(S);o.current.delete(x),r.current.delete(C)},[]),p=a.useCallback(function(C){c(C)},[]),h=a.useCallback(function(C,S){var x=r.current.get(C)||"",E=l4(x);return S&&s.includes(E[0])&&E.unshift($u),E},[s]),g=a.useCallback(function(C,S){return C.filter(function(x){return x!==void 0}).some(function(x){var E=h(x,!0);return E.includes(S)})},[h]),b=function(){var S=pe(r.current.keys());return s.length&&S.push($u),S},y=a.useCallback(function(C){var S="".concat(r.current.get(C)).concat(Td),x=new Set;return pe(o.current.keys()).forEach(function(E){E.startsWith(S)&&x.add(o.current.get(E))}),x},[]);return a.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:h,getKeys:b,getSubPathKeys:y}}function Oa(e){var t=a.useRef(e);t.current=e;var n=a.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var c4=Math.random().toFixed(5).toString().slice(2),Iv=0;function u4(e){var t=Wt(e,{value:e}),n=te(t,2),r=n[0],o=n[1];return a.useEffect(function(){Iv+=1;var i="".concat(c4,"-").concat(Iv);o("rc-menu-uuid-".concat(i))},[]),r}function Cb(e,t,n,r){var o=a.useContext(fr),i=o.activeKey,l=o.onActive,s=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),l(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),c}function Sb(e){var t=a.useContext(fr),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 xb(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=a.createElement(t,H({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var d4=["item"];function gl(e){var t=e.item,n=it(e,d4);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 f4=["title","attribute","elementRef"],m4=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],v4=["active"],g4=(function(e){mr(n,e);var t=wr(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"render",value:function(){var o=this.props,i=o.title,l=o.attribute,s=o.elementRef,c=it(o,f4),u=Ht(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Gt(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(yr.Item,ce({},l,{title:typeof i=="string"?i:void 0},u,{ref:s}))}}]),n})(a.Component),p4=a.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var i=e.disabled,l=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,m=e.onKeyDown,v=e.onFocus,p=it(e,m4),h=gb(o),g=a.useContext(fr),b=g.prefixCls,y=g.onItemClick,C=g.disabled,S=g.overflowDisabled,x=g.itemIcon,E=g.selectedKeys,w=g.onActive,O=a.useContext(Nd),$=O._internalRenderMenuItem,I="".concat(b,"-item"),P=a.useRef(),N=a.useRef(),M=C||i,R=Tr(t,N),z=ca(o),T=function(J){return{key:o,keyPath:pe(z).reverse(),item:P.current,domEvent:J}},j=l||x,_=Cb(o,M,u,d),D=_.active,k=it(_,v4),V=E.includes(o),K=Sb(z.length),A=function(J){if(!M){var ie=T(J);f==null||f(gl(ie)),y(ie)}},W=function(J){if(m==null||m(J),J.which===Be.ENTER){var ie=T(J);f==null||f(gl(ie)),y(ie)}},G=function(J){w(o),v==null||v(J)},Y={};e.role==="option"&&(Y["aria-selected"]=V);var ne=a.createElement(g4,ce({ref:P,elementRef:R,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":S&&h?null:h},Ht(p,["extra"]),k,Y,{component:"li","aria-disabled":i,style:H(H({},K),n),className:F(I,B(B(B({},"".concat(I,"-active"),D),"".concat(I,"-selected"),V),"".concat(I,"-disabled"),M),r),onClick:A,onKeyDown:W,onFocus:G}),s,a.createElement(xb,{props:H(H({},e),{},{isSelected:V}),icon:j}));return $&&(ne=$(ne,e,{selected:V})),ne});function h4(e,t){var n=e.eventKey,r=es(),o=ca(n);return a.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:a.createElement(p4,ce({},e,{ref:t}))}const di=a.forwardRef(h4);var b4=["className","children"],y4=function(t,n){var r=t.className,o=t.children,i=it(t,b4),l=a.useContext(fr),s=l.prefixCls,c=l.mode,u=l.rtl;return a.createElement("ul",ce({className:F(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},jd=a.forwardRef(y4);jd.displayName="SubMenuList";function zd(e,t){return cn(e).map(function(n,r){if(a.isValidElement(n)){var o,i,l=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:l,c=s==null;c&&(s="tmp_key-".concat([].concat(pe(t),[r]).join("-")));var u={key:s,eventKey:s};return a.cloneElement(n,u)}return n})}var zn={adjustX:1,adjustY:1},C4={topLeft:{points:["bl","tl"],overflow:zn},topRight:{points:["br","tr"],overflow:zn},bottomLeft:{points:["tl","bl"],overflow:zn},bottomRight:{points:["tr","br"],overflow:zn},leftTop:{points:["tr","tl"],overflow:zn},leftBottom:{points:["br","bl"],overflow:zn},rightTop:{points:["tl","tr"],overflow:zn},rightBottom:{points:["bl","br"],overflow:zn}},S4={topLeft:{points:["bl","tl"],overflow:zn},topRight:{points:["br","tr"],overflow:zn},bottomLeft:{points:["tl","bl"],overflow:zn},bottomRight:{points:["tr","br"],overflow:zn},rightTop:{points:["tr","tl"],overflow:zn},rightBottom:{points:["br","bl"],overflow:zn},leftTop:{points:["tl","tr"],overflow:zn},leftBottom:{points:["bl","br"],overflow:zn}};function $b(e,t,n){if(t)return t;if(n)return n[e]||n.other}var x4={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function $4(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,l=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=a.useContext(fr),m=f.getPopupContainer,v=f.rtl,p=f.subMenuOpenDelay,h=f.subMenuCloseDelay,g=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,C=f.rootClassName,S=f.motion,x=f.defaultMotions,E=a.useState(!1),w=te(E,2),O=w[0],$=w[1],I=H(v?H({},S4):H({},C4),g),P=x4[u],N=$b(u,S,x),M=a.useRef(N);u!=="inline"&&(M.current=N);var R=H(H({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),z=a.useRef();return a.useEffect(function(){return z.current=Ot(function(){$(n)}),function(){Ot.cancel(z.current)}},[n]),a.createElement(Xl,{prefixCls:t,popupClassName:F("".concat(t,"-popup"),B({},"".concat(t,"-rtl"),v),l,C),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:P,popupVisible:O,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:p,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:y,popupMotion:R,fresh:!0},r)}function w4(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",l=a.useContext(fr),s=l.prefixCls,c=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,m=a.useRef(!1);m.current=f===i;var v=a.useState(!m.current),p=te(v,2),h=p[0],g=p[1],b=m.current?n:!1;a.useEffect(function(){m.current&&g(!1)},[f]);var y=H({},$b(i,u,d));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!m.current&&!S&&g(!0),C==null?void 0:C(S)},h?null:a.createElement(Ga,{mode:i,locked:!m.current},a.createElement(Hn,ce({visible:b},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var x=S.className,E=S.style;return a.createElement(jd,{id:t,className:x,style:E},o)}))}var E4=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],O4=["active"],I4=a.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,v=e.popupStyle,p=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,C=e.onTitleMouseLeave,S=it(e,E4),x=gb(i),E=a.useContext(fr),w=E.prefixCls,O=E.mode,$=E.openKeys,I=E.disabled,P=E.overflowDisabled,N=E.activeKey,M=E.selectedKeys,R=E.itemIcon,z=E.expandIcon,T=E.onItemClick,j=E.onOpenChange,_=E.onActive,D=a.useContext(Nd),k=D._internalRenderSubMenuItem,V=a.useContext(bb),K=V.isSubPathKey,A=ca(),W="".concat(w,"-submenu"),G=I||l,Y=a.useRef(),ne=a.useRef(),Q=u??R,J=d??z,ie=$.includes(i),re=!P&&ie,X=K(M,i),oe=Cb(i,G,y,C),ee=oe.active,q=it(oe,O4),Z=a.useState(!1),le=te(Z,2),se=le[0],ve=le[1],ge=function(be){G||ve(be)},ae=function(be){ge(!0),h==null||h({key:i,domEvent:be})},fe=function(be){ge(!1),g==null||g({key:i,domEvent:be})},ue=a.useMemo(function(){return ee||(O!=="inline"?se||K([N],i):!1)},[O,ee,N,se,i,K]),de=Sb(A.length),xe=function(be){G||(b==null||b({key:i,domEvent:be}),O==="inline"&&j(i,!ie))},we=Oa(function(Re){p==null||p(gl(Re)),T(Re)}),Le=function(be){O!=="inline"&&j(i,be)},je=function(){_(i)},Oe=x&&"".concat(x,"-popup"),Te=a.useMemo(function(){return a.createElement(xb,{icon:O!=="horizontal"?J:void 0,props:H(H({},e),{},{isOpen:re,isSubMenu:!0})},a.createElement("i",{className:"".concat(W,"-arrow")}))},[O,J,e,re,W]),he=a.createElement("div",ce({role:"menuitem",style:de,className:"".concat(W,"-title"),tabIndex:G?null:-1,ref:Y,title:typeof o=="string"?o:null,"data-menu-id":P&&x?null:x,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":Oe,"aria-disabled":G,onClick:xe,onFocus:je},q),o,Te),me=a.useRef(O);if(O!=="inline"&&A.length>1?me.current="vertical":me.current=O,!P){var $e=me.current;he=a.createElement($4,{mode:$e,prefixCls:W,visible:!s&&re&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:v,popup:a.createElement(Ga,{mode:$e==="horizontal"?"vertical":$e},a.createElement(jd,{id:Oe,ref:ne},c)),disabled:G,onVisibleChange:Le},he)}var Se=a.createElement(yr.Item,ce({ref:t,role:"none"},S,{component:"li",style:n,className:F(W,"".concat(W,"-").concat(O),r,B(B(B(B({},"".concat(W,"-open"),re),"".concat(W,"-active"),ue),"".concat(W,"-selected"),X),"".concat(W,"-disabled"),G)),onMouseEnter:ae,onMouseLeave:fe}),he,!P&&a.createElement(w4,{id:Oe,open:re,keyPath:A},c));return k&&(Se=k(Se,e,{selected:X,active:ue,open:re,disabled:G})),a.createElement(Ga,{onItemClick:we,mode:O==="horizontal"?"vertical":O,itemIcon:Q,expandIcon:J},Se)}),ts=a.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ca(n),i=zd(r,o),l=es();a.useEffect(function(){if(l)return l.registerPath(n,o),function(){l.unregisterPath(n,o)}},[o]);var s;return l?s=i:s=a.createElement(I4,ce({ref:t},e),i),a.createElement(hb.Provider,{value:o},s)});function _d(e){var t=e.className,n=e.style,r=a.useContext(fr),o=r.prefixCls,i=es();return i?null:a.createElement("li",{role:"separator",className:F("".concat(o,"-item-divider"),t),style:n})}var R4=["className","title","eventKey","children"],P4=a.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=it(e,R4),l=a.useContext(fr),s=l.prefixCls,c="".concat(s,"-item-group");return a.createElement("li",ce({ref:t,role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:F(c,n)}),a.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),a.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),Bd=a.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=ca(n),i=zd(r,o),l=es();return l?i:a.createElement(P4,ce({ref:t},Ht(e,["warnKey"])),i)}),N4=["label","children","key","type","extra"];function wu(e,t,n){var r=t.item,o=t.group,i=t.submenu,l=t.divider;return(e||[]).map(function(s,c){if(s&&Ke(s)==="object"){var u=s,d=u.label,f=u.children,m=u.key,v=u.type,p=u.extra,h=it(u,N4),g=m??"tmp-".concat(c);return f||v==="group"?v==="group"?a.createElement(o,ce({key:g},h,{title:d}),wu(f,t,n)):a.createElement(i,ce({key:g},h,{title:d}),wu(f,t,n)):v==="divider"?a.createElement(l,ce({key:g},h)):a.createElement(r,ce({key:g},h,{extra:p}),d,(!!p||p===0)&&a.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null}).filter(function(s){return s})}function Rv(e,t,n,r,o){var i=e,l=H({divider:_d,item:di,group:Bd,submenu:ts},r);return t&&(i=wu(t,l,o)),zd(i,n)}var M4=["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","_internalComponents"],eo=[],T4=a.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,l=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,v=r.direction,p=r.id,h=r.mode,g=h===void 0?"vertical":h,b=r.inlineCollapsed,y=r.disabled,C=r.disabledOverflow,S=r.subMenuOpenDelay,x=S===void 0?.1:S,E=r.subMenuCloseDelay,w=E===void 0?.1:E,O=r.forceSubMenuRender,$=r.defaultOpenKeys,I=r.openKeys,P=r.activeKey,N=r.defaultActiveFirst,M=r.selectable,R=M===void 0?!0:M,z=r.multiple,T=z===void 0?!1:z,j=r.defaultSelectedKeys,_=r.selectedKeys,D=r.onSelect,k=r.onDeselect,V=r.inlineIndent,K=V===void 0?24:V,A=r.motion,W=r.defaultMotions,G=r.triggerSubMenuAction,Y=G===void 0?"hover":G,ne=r.builtinPlacements,Q=r.itemIcon,J=r.expandIcon,ie=r.overflowedIndicator,re=ie===void 0?"...":ie,X=r.overflowedIndicatorPopupClassName,oe=r.getPopupContainer,ee=r.onClick,q=r.onOpenChange,Z=r.onKeyDown;r.openAnimation,r.openTransitionName;var le=r._internalRenderMenuItem,se=r._internalRenderSubMenuItem,ve=r._internalComponents,ge=it(r,M4),ae=a.useMemo(function(){return[Rv(m,f,eo,ve,i),Rv(m,f,eo,{},i)]},[m,f,ve]),fe=te(ae,2),ue=fe[0],de=fe[1],xe=a.useState(!1),we=te(xe,2),Le=we[0],je=we[1],Oe=a.useRef(),Te=u4(p),he=v==="rtl",me=Wt($,{value:I,postState:function(rt){return rt||eo}}),$e=te(me,2),Se=$e[0],Re=$e[1],be=function(rt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function _t(){Re(rt),q==null||q(rt)}et?uo.flushSync(_t):_t()},Ie=a.useState(Se),De=te(Ie,2),ke=De[0],gt=De[1],ht=a.useRef(!1),Pe=a.useMemo(function(){return(g==="inline"||g==="vertical")&&b?["vertical",b]:[g,!1]},[g,b]),We=te(Pe,2),Ye=We[0],_e=We[1],Ge=Ye==="inline",vt=a.useState(Ye),dt=te(vt,2),Ae=dt[0],Je=dt[1],Ue=a.useState(_e),Ee=te(Ue,2),Ce=Ee[0],ye=Ee[1];a.useEffect(function(){Je(Ye),ye(_e),ht.current&&(Ge?Re(ke):be(eo))},[Ye,_e]);var Ne=a.useState(0),Qe=te(Ne,2),Ze=Qe[0],bt=Qe[1],Fe=Ze>=ue.length-1||Ae!=="horizontal"||C;a.useEffect(function(){Ge&&gt(Se)},[Se]),a.useEffect(function(){return ht.current=!0,function(){ht.current=!1}},[]);var ze=s4(),ot=ze.registerPath,$t=ze.unregisterPath,Rt=ze.refreshOverflowKeys,Mt=ze.isSubPathKey,Dt=ze.getKeyPath,St=ze.getKeys,jt=ze.getSubPathKeys,Me=a.useMemo(function(){return{registerPath:ot,unregisterPath:$t}},[ot,$t]),Ve=a.useMemo(function(){return{isSubPathKey:Mt}},[Mt]);a.useEffect(function(){Rt(Fe?eo:ue.slice(Ze+1).map(function(Lt){return Lt.key}))},[Ze,Fe]);var ct=Wt(P||N&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:P}),lt=te(ct,2),nt=lt[0],Xe=lt[1],ft=Oa(function(Lt){Xe(Lt)}),Pt=Oa(function(){Xe(void 0)});a.useImperativeHandle(t,function(){return{list:Oe.current,focus:function(rt){var et,_t=St(),zt=xu(_t,Te),Ft=zt.elements,Kt=zt.key2element,bn=zt.element2key,tn=Md(Oe.current,Ft),yn=nt??(tn[0]?bn.get(tn[0]):(et=ue.find(function(Un){return!Un.props.disabled}))===null||et===void 0?void 0:et.key),an=Kt.get(yn);if(yn&&an){var Cn;an==null||(Cn=an.focus)===null||Cn===void 0||Cn.call(an,rt)}}}});var He=Wt(j||[],{value:_,postState:function(rt){return Array.isArray(rt)?rt:rt==null?eo:[rt]}}),at=te(He,2),pt=at[0],qt=at[1],en=function(rt){if(R){var et=rt.key,_t=pt.includes(et),zt;T?_t?zt=pt.filter(function(Kt){return Kt!==et}):zt=[].concat(pe(pt),[et]):zt=[et],qt(zt);var Ft=H(H({},rt),{},{selectedKeys:zt});_t?k==null||k(Ft):D==null||D(Ft)}!T&&Se.length&&Ae!=="inline"&&be(eo)},wn=Oa(function(Lt){ee==null||ee(gl(Lt)),en(Lt)}),En=Oa(function(Lt,rt){var et=Se.filter(function(zt){return zt!==Lt});if(rt)et.push(Lt);else if(Ae!=="inline"){var _t=jt(Lt);et=et.filter(function(zt){return!_t.has(zt)})}Cr(Se,et,!0)||be(et,!0)}),mn=function(rt,et){var _t=et??!Se.includes(rt);En(rt,_t)},Pn=a4(Ae,nt,he,Te,Oe,St,Dt,Xe,mn,Z);a.useEffect(function(){je(!0)},[]);var Nn=a.useMemo(function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:se}},[le,se]),Dn=Ae!=="horizontal"||C?ue:ue.map(function(Lt,rt){return a.createElement(Ga,{key:Lt.key,overflowDisabled:rt>Ze},Lt)}),Mn=a.createElement(yr,ce({id:p,ref:Oe,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:di,className:F(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ae),c,B(B({},"".concat(i,"-inline-collapsed"),Ce),"".concat(i,"-rtl"),he),l),dir:v,style:s,role:"menu",tabIndex:d,data:Dn,renderRawItem:function(rt){return rt},renderRawRest:function(rt){var et=rt.length,_t=et?ue.slice(-et):null;return a.createElement(ts,{eventKey:$u,title:re,disabled:Fe,internalPopupClose:et===0,popupClassName:X},_t)},maxCount:Ae!=="horizontal"||C?yr.INVALIDATE:yr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(rt){bt(rt)},onKeyDown:Pn},ge));return a.createElement(Nd.Provider,{value:Nn},a.createElement(mb.Provider,{value:Te},a.createElement(Ga,{prefixCls:i,rootClassName:l,mode:Ae,openKeys:Se,rtl:he,disabled:y,motion:Le?A:null,defaultMotions:Le?W:null,activeKey:nt,onActive:ft,onInactive:Pt,selectedKeys:pt,inlineIndent:K,subMenuOpenDelay:x,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:ne,triggerSubMenuAction:Y,getPopupContainer:oe,itemIcon:Q,expandIcon:J,onItemClick:wn,onOpenChange:En},a.createElement(bb.Provider,{value:Ve},Mn),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(pb.Provider,{value:Me},de)))))}),ua=T4;ua.Item=di;ua.SubMenu=ts;ua.ItemGroup=Bd;ua.Divider=_d;var j4={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"},z4=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:j4}))},_4=a.forwardRef(z4);const wb=a.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),B4=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:l,headerColor:s,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:l,color:s,lineHeight:L(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Eb=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:l,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+l*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},Ob=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Ib=Et("Layout",B4,Eb,{deprecatedTokens:Ob}),D4=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:l,triggerColor:s,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:v,lightTriggerColor:p,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:l},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:l,color:s,lineHeight:L(l),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${L(m)} ${L(m)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${L(m)} 0 0 ${L(m)}`}},"&-light":{background:v,[`${t}-trigger`]:{color:p,background:h},[`${t}-zero-width-trigger`]:{color:p,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},L4=Et(["Layout","Sider"],D4,Eb,{deprecatedTokens:Ob});var A4=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 Pv={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},H4=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),ns=a.createContext({}),F4=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Rb=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:l=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:p,onCollapse:h,onBreakpoint:g}=e,b=A4(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=a.useContext(wb),[C,S]=a.useState("collapsed"in e?e.collapsed:l),[x,E]=a.useState(!1);a.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(Q,J)=>{"collapsed"in e||S(Q),h==null||h(Q,J)},{getPrefixCls:O,direction:$}=a.useContext(tt),I=O("layout-sider",n),[P,N,M]=L4(I),R=a.useRef(null);R.current=Q=>{E(Q.matches),g==null||g(Q.matches),C!==Q.matches&&w(Q.matches,"responsive")},a.useEffect(()=>{function Q(ie){var re;return(re=R.current)===null||re===void 0?void 0:re.call(R,ie)}let J;return typeof(window==null?void 0:window.matchMedia)<"u"&&p&&p in Pv&&(J=window.matchMedia(`screen and (max-width: ${Pv[p]})`),J0(J,Q),Q(J)),()=>{eb(J,Q)}},[p]),a.useEffect(()=>{const Q=F4("ant-sider-");return y.addSider(Q),()=>y.removeSider(Q)},[]);const z=()=>{w(!C,"clickTrigger")},T=Ht(b,["collapsed"]),j=C?m:f,_=H4(j)?`${j}px`:String(j),D=Number.parseFloat(String(m||0))===0?a.createElement("span",{onClick:z,className:F(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${d?"right":"left"}`),style:v},o||a.createElement(_4,null)):null,k=$==="rtl"==!d,A={expanded:k?a.createElement(Qo,null):a.createElement(Ka,null),collapsed:k?a.createElement(Ka,null):a.createElement(Qo,null)}[C?"collapsed":"expanded"],W=o!==null?D||a.createElement("div",{className:`${I}-trigger`,onClick:z,style:{width:_}},o||A):null,G=Object.assign(Object.assign({},c),{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}),Y=F(I,`${I}-${s}`,{[`${I}-collapsed`]:!!C,[`${I}-has-trigger`]:u&&o!==null&&!D,[`${I}-below`]:!!x,[`${I}-zero-width`]:Number.parseFloat(_)===0},r,N,M),ne=a.useMemo(()=>({siderCollapsed:C}),[C]);return P(a.createElement(ns.Provider,{value:ne},a.createElement("aside",Object.assign({className:Y},T,{style:G,ref:t}),a.createElement("div",{className:`${I}-children`},i),u||x&&D?W:null)))});var k4={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"},V4=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:k4}))},Dd=a.forwardRef(V4);const pl=a.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var W4=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 Pb=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=W4(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=a.useContext(tt),l=i("menu",t),s=F({[`${l}-item-divider-dashed`]:!!r},n);return a.createElement(_d,Object.assign({className:s},o))},Nb=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:l,extra:s}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=a.useContext(pl),v=C=>{const S=r==null?void 0:r[0],x=a.createElement("span",{className:F(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},r);return(!o||a.isValidElement(r)&&r.type==="span")&&r&&C&&u&&typeof S=="string"?a.createElement("div",{className:`${c}-inline-collapsed-noicon`},S.charAt(0)):x},{siderCollapsed:p}=a.useContext(ns);let h=i;typeof i>"u"?h=u?r:"":i===!1&&(h="");const g={title:h};!p&&!m&&(g.title=null,g.open=!1);const b=cn(r).length;let y=a.createElement(di,Object.assign({},Ht(e,["title","icon","danger"]),{className:F({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:(o?b+1:b)===1},n),title:typeof i=="string"?i:void 0}),un(o,{className:F(a.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),v(m));return f||(y=a.createElement(Mr,Object.assign({},g,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),y)),y};var K4=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 hl=a.createContext(null),Mb=a.forwardRef((e,t)=>{const{children:n}=e,r=K4(e,["children"]),o=a.useContext(hl),i=a.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=jC(n),s=Tr(t,l?Ur(n):null);return a.createElement(hl.Provider,{value:i},a.createElement(Gr,{space:!0},l?a.cloneElement(n,{ref:s}):n))}),G4=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:l,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${L(i)} ${l} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
213
+ > ${t}-item-active,
214
+ > ${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"}}}},q4=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
215
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${L(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${L(t)})`}}}}),Nv=e=>ur(e),Mv=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:l,itemBg:s,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:v,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:b,itemHoverColor:y,lineType:C,colorSplit:S,itemDisabledColor:x,dangerItemColor:E,dangerItemHoverColor:w,dangerItemSelectedColor:O,dangerItemActiveBg:$,dangerItemSelectedBg:I,popupBg:P,itemHoverBg:N,itemActiveBg:M,menuSubMenuBg:R,horizontalItemSelectedColor:z,horizontalItemSelectedBg:T,horizontalItemBorderRadius:j,horizontalItemHoverBg:_}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Nv(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:l}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Nv(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:I}},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${L(d)} solid transparent`,transition:`border-color ${v} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:_,"&::after":{borderBottomWidth:d,borderBottomColor:z}},"&-selected":{color:z,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:d,borderBottomColor:z}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${L(m)} ${C} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${L(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${h}`,`opacity ${b} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${p}`,`opacity ${b} ${p}`].join(",")}}}}}},Tv=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:l,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(i).add(o).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:L(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
216
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:L(n)},[`${t}-item-group-list ${t}-submenu-title,
217
+ ${t}-submenu-title`]:{paddingInlineEnd:d}}},U4=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:p,collapsedWidth:h,collapsedIconSize:g}=e,b={height:r,lineHeight:L(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Tv(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Tv(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${L(e.calc(l).mul(2.5).equal())})`,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 ${f} ${s}`].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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
218
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
219
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
220
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${L(e.calc(g).div(2).equal())} - ${L(u)})`,textOverflow:"clip",[`
221
+ ${t}-submenu-arrow,
222
+ ${t}-submenu-expand-icon
223
+ `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:L(r),"+ 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({},Sr),{paddingInline:v})}}]},jv=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:l,iconSize:s,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 calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:s,fontSize:s,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({},yo()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zv=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:l}=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:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${L(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${L(l)})`}}}}},X4=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:l,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:p,menuArrowOffset:h,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},Vr()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),Vr()),{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(s)} ${L(c)}`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`,`padding ${i} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${l}`,`padding ${o} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),jv(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${L(e.calc(r).mul(2).equal())} ${L(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},jv(e)),zv(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${l}`}})},"\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}}}),zv(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
224
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${L(h)})`},"&::after":{transform:`rotate(45deg) translateX(${L(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${L(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${L(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${L(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Y4=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:l,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:p,controlItemBgActive:h,colorBgTextHover:g,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:S,padding:x,fontSize:E,controlHeightSM:w,fontSizeLG:O,colorTextLightSolid:$,colorErrorHover:I}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,N=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,M=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,R=new Tt($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:v,activeBarBorderWidth:N,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:C,itemMarginBlock:S,itemPaddingInline:x,horizontalLineHeight:`${b*1.15}px`,iconSize:E,iconMarginInlineEnd:w-E,collapsedIconSize:O,groupTitleFontSize:E,darkItemDisabledColor:new Tt($).setA(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:$,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:P?`calc(100% + ${N}px)`:`calc(100% - ${M*2}px)`}},Q4=(e,t=e,n=!0)=>Et("Menu",o=>{const{colorBgElevated:i,controlHeightLG:l,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:v,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:b,darkItemDisabledColor:y,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:x,popupBg:E,darkPopupBg:w}=o,O=o.calc(s).div(7).mul(5).equal(),$=Ct(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(l).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:E}),I=Ct($,{itemColor:c,itemHoverColor:b,groupTitleColor:g,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:w,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:y,dangerItemColor:u,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:x,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:v});return[X4($),G4($),U4($),Mv($,"light"),Mv(I,"dark"),q4($),Dl($),Kr($,"slide-up"),Kr($,"slide-down"),ni($,"zoom-big")]},Y4,{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"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),Tb=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,l=a.useContext(pl),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=ca();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?a.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):a.createElement("span",{className:`${s}-title-content`},o);else{const p=a.isValidElement(o)&&o.type==="span";f=a.createElement(a.Fragment,null,un(r,{className:F(a.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),p?o:a.createElement("span",{className:`${s}-title-content`},o))}const m=a.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[v]=ia("Menu");return a.createElement(pl.Provider,{value:m},a.createElement(ts,Object.assign({},Ht(e,["icon"]),{title:f,popupClassName:F(s,n,`${s}-${i||u}`),popupStyle:Object.assign({zIndex:v},e.popupStyle)})))};var Z4=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 Qs(e){return e===null||e===!1}const J4={item:Nb,submenu:Tb,divider:Pb},eM=a.forwardRef((e,t)=>{var n;const r=a.useContext(hl),o=r||{},{getPrefixCls:i,getPopupContainer:l,direction:s,menu:c}=a.useContext(tt),u=i(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:g,siderCollapsed:b,rootClassName:y,mode:C,selectable:S,onClick:x,overflowedIndicatorPopupClassName:E}=e,w=Z4(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Ht(w,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:C});const $=At((...K)=>{var A;x==null||x.apply(void 0,K),(A=o.onClick)===null||A===void 0||A.call(o)}),I=o.mode||C,P=S??o.selectable,N=g??b,M={horizontal:{motionName:`${u}-slide-up`},inline:Fa(u),other:{motionName:`${u}-zoom-big`}},R=i("menu",d||o.prefixCls),z=fn(R),[T,j,_]=Q4(R,z,!r),D=F(`${R}-${v}`,c==null?void 0:c.className,f),k=a.useMemo(()=>{var K,A;if(typeof p=="function"||Qs(p))return p||null;if(typeof o.expandIcon=="function"||Qs(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||Qs(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const W=(K=p??(o==null?void 0:o.expandIcon))!==null&&K!==void 0?K:c==null?void 0:c.expandIcon;return un(W,{className:F(`${R}-submenu-expand-icon`,a.isValidElement(W)?(A=W.props)===null||A===void 0?void 0:A.className:void 0)})},[p,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,R]),V=a.useMemo(()=>({prefixCls:R,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:v,mode:I,disableMenuItemTitleTooltip:h}),[R,N,s,h,v]);return T(a.createElement(hl.Provider,{value:null},a.createElement(pl.Provider,{value:V},a.createElement(ua,Object.assign({getPopupContainer:l,overflowedIndicator:a.createElement(Dd,null),overflowedIndicatorPopupClassName:F(R,`${R}-${v}`,E),mode:I,selectable:P,onClick:$},O,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:D,prefixCls:R,direction:s,defaultMotions:M,expandIcon:k,ref:t,rootClassName:F(y,j,o.rootClassName,_,z),_internalComponents:J4})))))}),da=a.forwardRef((e,t)=>{const n=a.useRef(null),r=a.useContext(ns);return a.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),a.createElement(eM,Object.assign({ref:n},e,r))});da.Item=Nb;da.SubMenu=Tb;da.Divider=Pb;da.ItemGroup=Bd;const tM=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}}}}}},nM=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:l,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:p,colorBgElevated:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${l}-btn`]:{[`& > ${s}-down, & > ${l}-btn-icon > ${s}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
225
+ &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
226
+ &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
227
+ &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
228
+ &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
229
+ &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:sd},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
230
+ &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
231
+ &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
232
+ &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
233
+ &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
234
+ &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ud},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
235
+ &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
236
+ &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:cd},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
237
+ &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
238
+ &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:dd}}},Pd(e,h,{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`]:Object.assign(Object.assign({},Nt(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},qn(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${L(u)} ${L(p)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${L(u)} ${L(p)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},qn(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${L(e.marginXXS)} 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.colorIcon,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${L(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Kr(e,"slide-up"),Kr(e,"slide-down"),ml(e,"move-up"),ml(e,"move-down"),ni(e,"zoom-big")]]},rM=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Zl({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Rd(e)),oM=Et("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=Ct(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[nM(i),tM(i)]},rM,{resetStyle:!1}),rs=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:l,disabled:s,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:v,open:p,onOpenChange:h,visible:g,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:S=!0,placement:x="",overlay:E,transitionName:w,destroyOnHidden:O,destroyPopupOnHide:$}=e,{getPopupContainer:I,getPrefixCls:P,direction:N,dropdown:M}=a.useContext(tt),R=u||c;Er();const z=a.useMemo(()=>{const le=P();return w!==void 0?w:x.includes("top")?`${le}-slide-down`:`${le}-slide-up`},[P,x,w]),T=a.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:N==="rtl"?"bottomRight":"bottomLeft",[x,N]),j=P("dropdown",o),_=fn(j),[D,k,V]=oM(j,_),[,K]=pn(),A=a.Children.only(QN(i)?a.createElement("span",null,i):i),W=un(A,{className:F(`${j}-trigger`,{[`${j}-rtl`]:N==="rtl"},A.props.className),disabled:(t=A.props.disabled)!==null&&t!==void 0?t:s}),G=s?[]:l,Y=!!(G!=null&&G.includes("contextMenu")),[ne,Q]=Wt(!1,{value:p??g}),J=At(le=>{h==null||h(le,{source:"trigger"}),b==null||b(le),Q(le)}),ie=F(f,m,k,V,_,M==null?void 0:M.className,{[`${j}-rtl`]:N==="rtl"}),re=rb({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:K.marginXXS,arrowWidth:r?K.sizePopupArrow:0,borderRadius:K.borderRadius}),X=At(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),Q(!1))}),oe=()=>{let le;return n!=null&&n.items?le=a.createElement(da,Object.assign({},n)):typeof E=="function"?le=E():le=E,R&&(le=R(le)),le=a.Children.only(typeof le=="string"?a.createElement("span",null,le):le),a.createElement(Mb,{prefixCls:`${j}-menu`,rootClassName:F(V,_),expandIcon:a.createElement("span",{className:`${j}-menu-submenu-arrow`},N==="rtl"?a.createElement(Ka,{className:`${j}-menu-submenu-arrow-icon`}):a.createElement(Qo,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:({mode:se})=>{}},le)},[ee,q]=ia("Dropdown",v==null?void 0:v.zIndex);let Z=a.createElement(fb,Object.assign({alignPoint:Y},Ht(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:C,visible:ne,builtinPlacements:re,arrow:!!r,overlayClassName:ie,prefixCls:j,getPopupContainer:d||I,transitionName:z,trigger:G,overlay:oe,placement:T,onVisibleChange:J,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),v),{zIndex:ee}),autoDestroy:O??$}),W);return ee&&(Z=a.createElement(jl.Provider,{value:q},Z)),D(Z)},aM=Cd(rs,"align",void 0,"dropdown",e=>e),iM=e=>a.createElement(aM,Object.assign({},e),a.createElement("span",null));rs._InternalPanelDoNotUseOrYouWillBeFired=iM;const jb=a.createContext(null),lM=jb.Provider,zb=a.createContext(null),sM=zb.Provider;var cM=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],_b=a.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,l=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,v=e.onChange,p=it(e,cM),h=a.useRef(null),g=a.useRef(null),b=Wt(u,{value:l}),y=te(b,2),C=y[0],S=y[1];a.useImperativeHandle(t,function(){return{focus:function(O){var $;($=h.current)===null||$===void 0||$.focus(O)},blur:function(){var O;(O=h.current)===null||O===void 0||O.blur()},input:h.current,nativeElement:g.current}});var x=F(r,o,B(B({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),s)),E=function(O){s||("checked"in e||S(O.target.checked),v==null||v({target:H(H({},e),{},{type:f,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return a.createElement("span",{className:x,title:m,style:i,ref:g},a.createElement("input",ce({},p,{className:"".concat(r,"-input"),ref:h,onChange:E,disabled:s,checked:!!C,type:f})),a.createElement("span",{className:"".concat(r,"-inner")}))});function Bb(e){const t=U.useRef(null),n=()=>{Ot.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ot(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const uM=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Nt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},dM=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:l,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:v,dotColorDisabled:p,lineType:h,radioColor:g,radioBgColor:b,calc:y}=e,C=`${t}-inner`,x=y(o).sub(y(4).mul(2)),E=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Nt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${L(d)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
239
+ &:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:ur(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${y(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},fM=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:v,paddingXS:p,borderRadius:h,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:C,colorTextDisabled:S,colorBgContainerDisabled:x,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:w,colorPrimary:O,colorPrimaryHover:$,colorPrimaryActive:I,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:M,calc:R}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:L(R(n).sub(R(o).mul(2)).equal()),background:d,border:`${L(o)} ${i} ${l}`,borderBlockStartWidth:R(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:R(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${L(o)} ${i} ${l}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:L(R(m).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:R(p).sub(o).equal(),paddingBlock:0,lineHeight:L(R(v).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":ur(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:y,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:$,borderColor:$,"&::before":{backgroundColor:$}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:P,borderColor:P,"&:hover":{color:C,background:N,borderColor:N},"&:active":{color:C,background:M,borderColor:M}},"&-disabled":{color:S,backgroundColor:x,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:x,borderColor:l}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:E,borderColor:l,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},mM=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:l,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:v,colorWhite:p}=e,h=4,g=i,b=t?g-h*2:g-(h+o)*2;return{radioSize:g,dotSize:b,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:l,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?s:f}},Db=Et("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${L(n)} ${t}`,i=Ct(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[uM(i),dM(i),fM(i)]},mM,{unitless:{radioSize:!0,dotSize:!0}});var vM=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 gM=(e,t)=>{var n,r;const o=a.useContext(jb),i=a.useContext(zb),{getPrefixCls:l,direction:s,radio:c}=a.useContext(tt),u=a.useRef(null),d=dn(t,u),{isFormItemInput:f}=a.useContext(Rn),m=T=>{var j,_;(j=e.onChange)===null||j===void 0||j.call(e,T),(_=o==null?void 0:o.onChange)===null||_===void 0||_.call(o,T)},{prefixCls:v,className:p,rootClassName:h,children:g,style:b,title:y}=e,C=vM(e,["prefixCls","className","rootClassName","children","style","title"]),S=l("radio",v),x=((o==null?void 0:o.optionType)||i)==="button",E=x?`${S}-button`:S,w=fn(S),[O,$,I]=Db(S,w),P=Object.assign({},C),N=a.useContext(kn);o&&(P.name=o.name,P.onChange=m,P.checked=e.value===o.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:o.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:N;const M=F(`${E}-wrapper`,{[`${E}-wrapper-checked`]:P.checked,[`${E}-wrapper-disabled`]:P.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,p,h,$,I,w),[R,z]=Bb(P.onClick);return O(a.createElement(ti,{component:"Radio",disabled:P.disabled},a.createElement("label",{className:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:R},a.createElement(_b,Object.assign({},P,{className:F(P.className,{[_l]:!x}),type:"radio",prefixCls:E,ref:d,onClick:z})),g!==void 0?a.createElement("span",{className:`${E}-label`},g):null)))},bl=a.forwardRef(gM),pM=["parentNode"],hM="form_item";function Na(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Lb(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:pM.includes(n)?`${hM}_${n}`:n}function Ab(e,t,n,r,o,i){let l=r;return i!==void 0?l=i:n.validating?l="validating":e.length?l="error":t.length?l="warning":(n.touched||o&&n.validated)&&(l="success"),l}var bM=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 Eu(e){return Na(e).join("_")}function _v(e,t){const n=t.getFieldInstance(e),r=Ya(n);if(r)return r;const o=Lb(Na(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Hb(e){const[t]=bd(),n=a.useRef({}),r=a.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const l=Eu(o);i?n.current[l]=i:delete n.current[l]}},scrollToField:(o,i={})=>{const{focus:l}=i,s=bM(i,["focus"]),c=_v(o,r);c&&(C$(c,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),l&&r.focusField(o))},focusField:o=>{var i,l;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(l=(i=_v(o,r))===null||i===void 0?void 0:i.focus)===null||l===void 0||l.call(i)},getFieldInstance:o=>{const i=Eu(o);return n.current[i]}}),[e,t]);return[r]}const yM=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(tt),{name:o}=a.useContext(Rn),i=ai(Eu(o)),{prefixCls:l,className:s,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:m,size:v,style:p,id:h,optionType:g,name:b=i,defaultValue:y,value:C,block:S=!1,onChange:x,onMouseEnter:E,onMouseLeave:w,onFocus:O,onBlur:$}=e,[I,P]=Wt(y,{value:C}),N=a.useCallback(A=>{const W=I,G=A.target.value;"value"in e||P(G),G!==W&&(x==null||x(A))},[I,P,x]),M=n("radio",l),R=`${M}-group`,z=fn(M),[T,j,_]=Db(M,z);let D=m;u&&u.length>0&&(D=u.map(A=>typeof A=="string"||typeof A=="number"?a.createElement(bl,{key:A.toString(),prefixCls:M,disabled:f,value:A,checked:I===A},A):a.createElement(bl,{key:`radio-group-value-options-${A.value}`,prefixCls:M,disabled:A.disabled||f,value:A.value,checked:I===A.value,title:A.title,style:A.style,className:A.className,id:A.id,required:A.required},A.label)));const k=hn(v),V=F(R,`${R}-${d}`,{[`${R}-${k}`]:k,[`${R}-rtl`]:r==="rtl",[`${R}-block`]:S},s,c,j,_,z),K=a.useMemo(()=>({onChange:N,value:I,disabled:f,name:b,optionType:g,block:S}),[N,I,f,b,g,S]);return T(a.createElement("div",Object.assign({},xn(e,{aria:!0,data:!0}),{className:V,style:p,onMouseEnter:E,onMouseLeave:w,onFocus:O,onBlur:$,id:h,ref:t}),a.createElement(lM,{value:K},D)))}),CM=a.memo(yM);var SM=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 xM=(e,t)=>{const{getPrefixCls:n}=a.useContext(tt),{prefixCls:r}=e,o=SM(e,["prefixCls"]),i=n("radio",r);return a.createElement(sM,{value:"button"},a.createElement(bl,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},$M=a.forwardRef(xM),fi=bl;fi.Button=$M;fi.Group=CM;fi.__ANT_RADIO=!0;function fa(e){return Ct(e,{inputAffixPadding:e.paddingXXS})}const ma=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:l,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:p,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:C,inputFontSize:S,inputFontSizeLG:x,inputFontSizeSM:E}=e,w=S||n,O=E||w,$=x||s,I=Math.round((t-w*r)/2*10)/10-o,P=Math.round((i-O*r)/2*10)/10-o,N=Math.ceil((l-$*c)/2*10)/10-o;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(N,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:p,hoverBorderColor:v,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${b}`,warningActiveShadow:`0 0 0 ${h}px ${y}`,hoverBg:C,activeBg:C,inputFontSize:w,inputFontSizeLG:$,inputFontSizeSM:O}},wM=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),os=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},wM(Ct(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ld=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Bv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ld(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Fb=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ld(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},os(e))}),Bv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Bv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Dv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),kb=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Dv(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Dv(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},os(e))}})}),Vb=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Wb=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Lv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Wb(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Kb=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wb(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},os(e))}),Lv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Lv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Av=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Gb=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Av(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Av(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),qb=(e,t)=>({background:e.colorBgContainer,borderWidth:`${L(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Hv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qb(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Ub=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Hv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Hv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Xb=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Yb=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${L(t)} ${L(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Ad=e=>({padding:`${L(e.paddingBlockSM)} ${L(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),mi=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${L(e.paddingBlock)} ${L(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Xb(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Yb(e)),"&-sm":Object.assign({},Ad(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Qb=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Yb(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Ad(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${L(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${L(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${L(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${L(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${L(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Vr()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
240
+ & > ${t}-affix-wrapper,
241
+ & > ${t}-number-affix-wrapper,
242
+ & > ${n}-picker-range
243
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
244
+ & > ${n}-select-auto-complete ${t},
245
+ & > ${n}-cascader-picker ${t},
246
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
247
+ & > ${n}-select:first-child > ${n}-select-selector,
248
+ & > ${n}-select-auto-complete:first-child ${t},
249
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
250
+ & > ${n}-select:last-child > ${n}-select-selector,
251
+ & > ${n}-cascader-picker:last-child ${t},
252
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},EM=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,l=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),mi(e)),Fb(e)),Kb(e)),Vb(e)),Ub(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},OM=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${L(e.inputAffixPadding)}`}}}},IM=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:l,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},mi(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),OM(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:l}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},RM=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Nt(e)),Qb(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},kb(e)),Gb(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},PM=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
253
+ > ${t},
254
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},NM=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Zb=Et(["Input","Shared"],e=>{const t=Ct(e,fa(e));return[EM(t),IM(t)]},ma,{resetFont:!1}),Jb=Et(["Input","Component"],e=>{const t=Ct(e,fa(e));return[RM(t),PM(t),NM(t),ri(t)]},ma,{resetFont:!1});var MM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},TM=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:MM}))},jM=a.forwardRef(TM);const as=a.createContext(null);var zM=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,l=i===void 0?{}:i,s=l.size,c=l.align,u=c===void 0?"center":c,d=a.useState(),f=te(d,2),m=f[0],v=f[1],p=a.useRef(),h=U.useCallback(function(b){return typeof s=="function"?s(b):typeof s=="number"?s:b},[s]);function g(){Ot.cancel(p.current)}return a.useEffect(function(){var b={};if(n)if(r){b.width=h(n.width);var y=o?"right":"left";u==="start"&&(b[y]=n[y]),u==="center"&&(b[y]=n[y]+n.width/2,b.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(b[y]=n[y]+n.width,b.transform="translateX(-100%)")}else b.height=h(n.height),u==="start"&&(b.top=n.top),u==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),u==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return g(),p.current=Ot(function(){var C=m&&b&&Object.keys(b).every(function(S){var x=b[S],E=m[S];return typeof x=="number"&&typeof E=="number"?Math.round(x)===Math.round(E):x===E});C||v(b)}),g},[JSON.stringify(n),r,o,u,h]),{style:m}},Fv={width:0,height:0,left:0,top:0};function _M(e,t,n){return a.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Fv,l=i.left+i.width,s=0;s<e.length;s+=1){var c=e[s].key,u=t.get(c);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||Fv}var f=o.get(c)||H({},u);f.right=l-f.left-f.width,o.set(c,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function kv(e,t){var n=a.useRef(e),r=a.useState({}),o=te(r,2),i=o[1];function l(s){var c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,i({})}return[n.current,l]}var BM=.1,Vv=.01,Qi=20,Wv=Math.pow(.995,Qi);function DM(e,t){var n=a.useState(),r=te(n,2),o=r[0],i=r[1],l=a.useState(0),s=te(l,2),c=s[0],u=s[1],d=a.useState(0),f=te(d,2),m=f[0],v=f[1],p=a.useState(),h=te(p,2),g=h[0],b=h[1],y=a.useRef();function C($){var I=$.touches[0],P=I.screenX,N=I.screenY;i({x:P,y:N}),window.clearInterval(y.current)}function S($){if(o){var I=$.touches[0],P=I.screenX,N=I.screenY;i({x:P,y:N});var M=P-o.x,R=N-o.y;t(M,R);var z=Date.now();u(z),v(z-c),b({x:M,y:R})}}function x(){if(o&&(i(null),b(null),g)){var $=g.x/m,I=g.y/m,P=Math.abs($),N=Math.abs(I);if(Math.max(P,N)<BM)return;var M=$,R=I;y.current=window.setInterval(function(){if(Math.abs(M)<Vv&&Math.abs(R)<Vv){window.clearInterval(y.current);return}M*=Wv,R*=Wv,t(M*Qi,R*Qi)},Qi)}}var E=a.useRef();function w($){var I=$.deltaX,P=$.deltaY,N=0,M=Math.abs(I),R=Math.abs(P);M===R?N=E.current==="x"?I:P:M>R?(N=I,E.current="x"):(N=P,E.current="y"),t(-N,-N)&&$.preventDefault()}var O=a.useRef(null);O.current={onTouchStart:C,onTouchMove:S,onTouchEnd:x,onWheel:w},a.useEffect(function(){function $(M){O.current.onTouchStart(M)}function I(M){O.current.onTouchMove(M)}function P(M){O.current.onTouchEnd(M)}function N(M){O.current.onWheel(M)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",N,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",P)}},[])}function ey(e){var t=a.useState(0),n=te(t,2),r=n[0],o=n[1],i=a.useRef(0),l=a.useRef();return l.current=e,Ho(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function LM(e){var t=a.useRef([]),n=a.useState({}),r=te(n,2),o=r[1],i=a.useRef(typeof e=="function"?e():e),l=ey(function(){var c=i.current;t.current.forEach(function(u){c=u(c)}),t.current=[],i.current=c,o({})});function s(c){t.current.push(c),l()}return[i.current,s]}var Kv={width:0,height:0,left:0,top:0,right:0};function AM(e,t,n,r,o,i,l){var s=l.tabs,c=l.tabPosition,u=l.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),a.useMemo(function(){if(!s.length)return[0,0];for(var v=s.length,p=v,h=0;h<v;h+=1){var g=e.get(s[h].key)||Kv;if(Math.floor(g[f]+g[d])>Math.floor(m+t)){p=h-1;break}}for(var b=0,y=v-1;y>=0;y-=1){var C=e.get(s[y].key)||Kv;if(C[f]<m){b=y+1;break}}return b>p?[0,-1]:[b,p]},[e,t,r,o,i,m,c,s.map(function(v){return v.key}).join("_"),u])}function Gv(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var HM="TABS_DQ";function ty(e){return String(e).replace(/"/g,HM)}function Hd(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var ny=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),qv=a.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,l={};return Ke(o)==="object"&&!a.isValidElement(o)?l=o:l.right=o,n==="right"&&(i=l.right),n==="left"&&(i=l.left),i?a.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),FM=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,l=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,v=e.rtl,p=e.removeAriaLabel,h=e.onTabClick,g=e.getPopupContainer,b=e.popupClassName,y=a.useState(!1),C=te(y,2),S=C[0],x=C[1],E=a.useState(null),w=te(E,2),O=w[0],$=w[1],I=c.icon,P=I===void 0?"More":I,N="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),R=O!==null?"".concat(N,"-").concat(O):null,z=i==null?void 0:i.dropdownAriaLabel;function T(A,W){A.preventDefault(),A.stopPropagation(),f.onEdit("remove",{key:W,event:A})}var j=a.createElement(ua,{onClick:function(W){var G=W.key,Y=W.domEvent;h(G,Y),x(!1)},prefixCls:"".concat(M,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[O],"aria-label":z!==void 0?z:"expanded dropdown"},o.map(function(A){var W=A.closable,G=A.disabled,Y=A.closeIcon,ne=A.key,Q=A.label,J=Hd(W,Y,f,G);return a.createElement(di,{key:ne,id:"".concat(N,"-").concat(ne),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ne),disabled:G},a.createElement("span",null,Q),J&&a.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),T(re,ne)}},Y||f.removeIcon||"×"))}));function _(A){for(var W=o.filter(function(J){return!J.disabled}),G=W.findIndex(function(J){return J.key===O})||0,Y=W.length,ne=0;ne<Y;ne+=1){G=(G+A+Y)%Y;var Q=W[G];if(!Q.disabled){$(Q.key);return}}}function D(A){var W=A.which;if(!S){[Be.DOWN,Be.SPACE,Be.ENTER].includes(W)&&(x(!0),A.preventDefault());return}switch(W){case Be.UP:_(-1),A.preventDefault();break;case Be.DOWN:_(1),A.preventDefault();break;case Be.ESC:x(!1);break;case Be.SPACE:case Be.ENTER:O!==null&&h(O,A);break}}a.useEffect(function(){var A=document.getElementById(R);A&&A.scrollIntoView&&A.scrollIntoView(!1)},[O]),a.useEffect(function(){S||$(null)},[S]);var k=B({},v?"marginRight":"marginLeft",m);o.length||(k.visibility="hidden",k.order=1);var V=F(B({},"".concat(M,"-rtl"),v)),K=l?null:a.createElement(fb,ce({prefixCls:M,overlay:j,visible:o.length?S:!1,onVisibleChange:x,overlayClassName:F(V,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},c),a.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:k,"aria-haspopup":"listbox","aria-controls":N,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:D},P));return a.createElement("div",{className:F("".concat(n,"-nav-operations"),d),style:u,ref:t},K,a.createElement(ny,{prefixCls:n,locale:i,editable:f}))});const kM=a.memo(FM,function(e,t){return t.tabMoving});var VM=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.focus,l=t.tab,s=l.key,c=l.label,u=l.disabled,d=l.closeIcon,f=l.icon,m=t.closable,v=t.renderWrapper,p=t.removeAriaLabel,h=t.editable,g=t.onClick,b=t.onFocus,y=t.onBlur,C=t.onKeyDown,S=t.onMouseDown,x=t.onMouseUp,E=t.style,w=t.tabCount,O=t.currentPosition,$="".concat(n,"-tab"),I=Hd(m,d,h,u);function P(T){u||g(T)}function N(T){T.preventDefault(),T.stopPropagation(),h.onEdit("remove",{key:s,event:T})}var M=a.useMemo(function(){return f&&typeof c=="string"?a.createElement("span",null,c):c},[c,f]),R=a.useRef(null);a.useEffect(function(){i&&R.current&&R.current.focus()},[i]);var z=a.createElement("div",{key:s,"data-node-key":ty(s),className:F($,B(B(B(B({},"".concat($,"-with-remove"),I),"".concat($,"-active"),o),"".concat($,"-disabled"),u),"".concat($,"-focus"),i)),style:E,onClick:P},a.createElement("div",{ref:R,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat($,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(j){j.stopPropagation(),P(j)},onKeyDown:C,onMouseDown:S,onMouseUp:x,onFocus:b,onBlur:y},i&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(O," of ").concat(w)),f&&a.createElement("span",{className:"".concat($,"-icon")},f),c&&M),I&&a.createElement("button",{type:"button",role:"tab","aria-label":p||"remove",tabIndex:o?0:-1,className:"".concat($,"-remove"),onClick:function(j){j.stopPropagation(),N(j)}},d||h.removeIcon||"×"));return v?v(z):z},WM=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,l=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,u=s.height,d=s.left,f=s.top;return Math.abs(c-r)<1?[c,u,d-n.left,f-n.top]:[r,o,l,i]},zo=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,l=i===void 0?0:i;if(t.current){var s=t.current.getBoundingClientRect(),c=s.width,u=s.height;if(Math.abs(c-o)<1)return[c,u]}return[o,l]},Ti=function(t,n){return t[n?0:1]},Uv=a.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,l=e.activeKey,s=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,v=e.children,p=e.onTabClick,h=e.onTabScroll,g=e.indicator,b=a.useContext(as),y=b.prefixCls,C=b.tabs,S=a.useRef(null),x=a.useRef(null),E=a.useRef(null),w=a.useRef(null),O=a.useRef(null),$=a.useRef(null),I=a.useRef(null),P=f==="top"||f==="bottom",N=kv(0,function(nt,Xe){P&&h&&h({direction:nt>Xe?"left":"right"})}),M=te(N,2),R=M[0],z=M[1],T=kv(0,function(nt,Xe){!P&&h&&h({direction:nt>Xe?"top":"bottom"})}),j=te(T,2),_=j[0],D=j[1],k=a.useState([0,0]),V=te(k,2),K=V[0],A=V[1],W=a.useState([0,0]),G=te(W,2),Y=G[0],ne=G[1],Q=a.useState([0,0]),J=te(Q,2),ie=J[0],re=J[1],X=a.useState([0,0]),oe=te(X,2),ee=oe[0],q=oe[1],Z=LM(new Map),le=te(Z,2),se=le[0],ve=le[1],ge=_M(C,se,Y[0]),ae=Ti(K,P),fe=Ti(Y,P),ue=Ti(ie,P),de=Ti(ee,P),xe=Math.floor(ae)<Math.floor(fe+ue),we=xe?ae-de:ae-ue,Le="".concat(y,"-nav-operations-hidden"),je=0,Oe=0;P&&s?(je=0,Oe=Math.max(0,fe-we)):(je=Math.min(0,we-fe),Oe=0);function Te(nt){return nt<je?je:nt>Oe?Oe:nt}var he=a.useRef(null),me=a.useState(),$e=te(me,2),Se=$e[0],Re=$e[1];function be(){Re(Date.now())}function Ie(){he.current&&clearTimeout(he.current)}DM(w,function(nt,Xe){function ft(Pt,He){Pt(function(at){var pt=Te(at+He);return pt})}return xe?(P?ft(z,nt):ft(D,Xe),Ie(),be(),!0):!1}),a.useEffect(function(){return Ie(),Se&&(he.current=setTimeout(function(){Re(0)},100)),Ie},[Se]);var De=AM(ge,we,P?R:_,fe,ue,de,H(H({},e),{},{tabs:C})),ke=te(De,2),gt=ke[0],ht=ke[1],Pe=At(function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,Xe=ge.get(nt)||{width:0,height:0,left:0,right:0,top:0};if(P){var ft=R;s?Xe.right<R?ft=Xe.right:Xe.right+Xe.width>R+we&&(ft=Xe.right+Xe.width-we):Xe.left<-R?ft=-Xe.left:Xe.left+Xe.width>-R+we&&(ft=-(Xe.left+Xe.width-we)),D(0),z(Te(ft))}else{var Pt=_;Xe.top<-_?Pt=-Xe.top:Xe.top+Xe.height>-_+we&&(Pt=-(Xe.top+Xe.height-we)),z(0),D(Te(Pt))}}),We=a.useState(),Ye=te(We,2),_e=Ye[0],Ge=Ye[1],vt=a.useState(!1),dt=te(vt,2),Ae=dt[0],Je=dt[1],Ue=C.filter(function(nt){return!nt.disabled}).map(function(nt){return nt.key}),Ee=function(Xe){var ft=Ue.indexOf(_e||l),Pt=Ue.length,He=(ft+Xe+Pt)%Pt,at=Ue[He];Ge(at)},Ce=function(Xe,ft){var Pt=Ue.indexOf(Xe),He=C.find(function(pt){return pt.key===Xe}),at=Hd(He==null?void 0:He.closable,He==null?void 0:He.closeIcon,u,He==null?void 0:He.disabled);at&&(ft.preventDefault(),ft.stopPropagation(),u.onEdit("remove",{key:Xe,event:ft}),Pt===Ue.length-1?Ee(-1):Ee(1))},ye=function(Xe,ft){Je(!0),ft.button===1&&Ce(Xe,ft)},Ne=function(Xe){var ft=Xe.code,Pt=s&&P,He=Ue[0],at=Ue[Ue.length-1];switch(ft){case"ArrowLeft":{P&&Ee(Pt?1:-1);break}case"ArrowRight":{P&&Ee(Pt?-1:1);break}case"ArrowUp":{Xe.preventDefault(),P||Ee(-1);break}case"ArrowDown":{Xe.preventDefault(),P||Ee(1);break}case"Home":{Xe.preventDefault(),Ge(He);break}case"End":{Xe.preventDefault(),Ge(at);break}case"Enter":case"Space":{Xe.preventDefault(),p(_e??l,Xe);break}case"Backspace":case"Delete":{Ce(_e,Xe);break}}},Qe={};P?Qe[s?"marginRight":"marginLeft"]=m:Qe.marginTop=m;var Ze=C.map(function(nt,Xe){var ft=nt.key;return a.createElement(VM,{id:o,prefixCls:y,key:ft,tab:nt,style:Xe===0?void 0:Qe,closable:nt.closable,editable:u,active:ft===l,focus:ft===_e,renderWrapper:v,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:Ue.length,currentPosition:Xe+1,onClick:function(He){p(ft,He)},onKeyDown:Ne,onFocus:function(){Ae||Ge(ft),Pe(ft),be(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:function(){Ge(void 0)},onMouseDown:function(He){return ye(ft,He)},onMouseUp:function(){Je(!1)}})}),bt=function(){return ve(function(){var Xe,ft=new Map,Pt=(Xe=O.current)===null||Xe===void 0?void 0:Xe.getBoundingClientRect();return C.forEach(function(He){var at,pt=He.key,qt=(at=O.current)===null||at===void 0?void 0:at.querySelector('[data-node-key="'.concat(ty(pt),'"]'));if(qt){var en=WM(qt,Pt),wn=te(en,4),En=wn[0],mn=wn[1],Pn=wn[2],Nn=wn[3];ft.set(pt,{width:En,height:mn,left:Pn,top:Nn})}}),ft})};a.useEffect(function(){bt()},[C.map(function(nt){return nt.key}).join("_")]);var Fe=ey(function(){var nt=zo(S),Xe=zo(x),ft=zo(E);A([nt[0]-Xe[0]-ft[0],nt[1]-Xe[1]-ft[1]]);var Pt=zo(I);re(Pt);var He=zo($);q(He);var at=zo(O);ne([at[0]-Pt[0],at[1]-Pt[1]]),bt()}),ze=C.slice(0,gt),ot=C.slice(ht+1),$t=[].concat(pe(ze),pe(ot)),Rt=ge.get(l),Mt=zM({activeTabOffset:Rt,horizontal:P,indicator:g,rtl:s}),Dt=Mt.style;a.useEffect(function(){Pe()},[l,je,Oe,Gv(Rt),Gv(ge),P]),a.useEffect(function(){Fe()},[s]);var St=!!$t.length,jt="".concat(y,"-nav-wrap"),Me,Ve,ct,lt;return P?s?(Ve=R>0,Me=R!==Oe):(Me=R<0,Ve=R!==je):(ct=_<0,lt=_!==je),a.createElement(An,{onResize:Fe},a.createElement("div",{ref:Tr(t,S),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:F("".concat(y,"-nav"),n),style:r,onKeyDown:function(){be()}},a.createElement(qv,{ref:x,position:"left",extra:c,prefixCls:y}),a.createElement(An,{onResize:Fe},a.createElement("div",{className:F(jt,B(B(B(B({},"".concat(jt,"-ping-left"),Me),"".concat(jt,"-ping-right"),Ve),"".concat(jt,"-ping-top"),ct),"".concat(jt,"-ping-bottom"),lt)),ref:w},a.createElement(An,{onResize:Fe},a.createElement("div",{ref:O,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(_,"px)"),transition:Se?"none":void 0}},Ze,a.createElement(ny,{ref:I,prefixCls:y,locale:d,editable:u,style:H(H({},Ze.length===0?void 0:Qe),{},{visibility:St?"hidden":null})}),a.createElement("div",{className:F("".concat(y,"-ink-bar"),B({},"".concat(y,"-ink-bar-animated"),i.inkBar)),style:Dt}))))),a.createElement(kM,ce({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:$,prefixCls:y,tabs:$t,className:!St&&Le,tabMoving:!!Se})),a.createElement(qv,{ref:E,position:"right",extra:c,prefixCls:y})))}),ry=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,l=e.active,s=e.tabKey,c=e.children;return a.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:o,className:F(n,l&&"".concat(n,"-active"),r),ref:t},c)}),KM=["renderTabBar"],GM=["label","key"],qM=function(t){var n=t.renderTabBar,r=it(t,KM),o=a.useContext(as),i=o.tabs;if(n){var l=H(H({},r),{},{panes:i.map(function(s){var c=s.label,u=s.key,d=it(s,GM);return a.createElement(ry,ce({tab:c,key:u,tabKey:u},d))})});return n(l,Uv)}return a.createElement(Uv,r)},UM=["key","forceRender","style","className","destroyInactiveTabPane"],XM=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,l=t.destroyInactiveTabPane,s=a.useContext(as),c=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return a.createElement("div",{className:F("".concat(c,"-content-holder"))},a.createElement("div",{className:F("".concat(c,"-content"),"".concat(c,"-content-").concat(i),B({},"".concat(c,"-content-animated"),d))},u.map(function(m){var v=m.key,p=m.forceRender,h=m.style,g=m.className,b=m.destroyInactiveTabPane,y=it(m,UM),C=v===r;return a.createElement(Hn,ce({key:v,visible:C,forceRender:p,removeOnLeave:!!(l||b),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,x){var E=S.style,w=S.className;return a.createElement(ry,ce({},y,{prefixCls:f,id:n,tabKey:v,animated:d,active:C,style:H(H({},h),E),className:F(g,w),ref:x}))})})))};function YM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=H({inkBar:!0},Ke(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var QM=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Xv=0,ZM=a.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,l=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,v=m===void 0?"top":m,p=e.tabBarGutter,h=e.tabBarStyle,g=e.tabBarExtraContent,b=e.locale,y=e.more,C=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,E=e.onTabClick,w=e.onTabScroll,O=e.getPopupContainer,$=e.popupClassName,I=e.indicator,P=it(e,QM),N=a.useMemo(function(){return(l||[]).filter(function(ee){return ee&&Ke(ee)==="object"&&"key"in ee})},[l]),M=s==="rtl",R=YM(f),z=a.useState(!1),T=te(z,2),j=T[0],_=T[1];a.useEffect(function(){_(ql())},[]);var D=Wt(function(){var ee;return(ee=N[0])===null||ee===void 0?void 0:ee.key},{value:c,defaultValue:u}),k=te(D,2),V=k[0],K=k[1],A=a.useState(function(){return N.findIndex(function(ee){return ee.key===V})}),W=te(A,2),G=W[0],Y=W[1];a.useEffect(function(){var ee=N.findIndex(function(Z){return Z.key===V});if(ee===-1){var q;ee=Math.max(0,Math.min(G,N.length-1)),K((q=N[ee])===null||q===void 0?void 0:q.key)}Y(ee)},[N.map(function(ee){return ee.key}).join("_"),V,G]);var ne=Wt(null,{value:n}),Q=te(ne,2),J=Q[0],ie=Q[1];a.useEffect(function(){n||(ie("rc-tabs-".concat(Xv)),Xv+=1)},[]);function re(ee,q){E==null||E(ee,q);var Z=ee!==V;K(ee),Z&&(x==null||x(ee))}var X={id:J,activeKey:V,animated:R,tabPosition:v,rtl:M,mobile:j},oe=H(H({},X),{},{editable:d,locale:b,more:y,tabBarGutter:p,onTabClick:re,onTabScroll:w,extra:g,style:h,panes:null,getPopupContainer:O,popupClassName:$,indicator:I});return a.createElement(as.Provider,{value:{tabs:N,prefixCls:o}},a.createElement("div",ce({ref:t,id:n,className:F(o,"".concat(o,"-").concat(v),B(B(B({},"".concat(o,"-mobile"),j),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),M),i)},P),a.createElement(qM,ce({},oe,{renderTabBar:S})),a.createElement(XM,ce({destroyInactiveTabPane:C},X,{animated:R}))))});const JM={motionAppear:!1,motionEnter:!0,motionLeave:!0};function e3(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},JM),{motionName:Wr(e,"switch")})),n}var t3=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 n3(e){return e.filter(t=>t)}function r3(e,t){if(e)return e.map(r=>{var o;const i=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=cn(t).map(r=>{if(a.isValidElement(r)){const{key:o,props:i}=r,l=i||{},{tab:s}=l,c=t3(l,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return n3(n)}const o3=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Kr(e,"slide-up"),Kr(e,"slide-down")]]},a3=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${L(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ur(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:L(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:L(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${L(e.borderRadiusLG)} 0 0 ${L(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},i3=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${L(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Sr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${L(e.paddingXXS)} ${L(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},l3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${L(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
255
+ right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
256
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:L(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},s3=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:l,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${L(e.borderRadius)} ${L(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${L(e.borderRadius)} ${L(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${L(e.borderRadius)} ${L(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${L(e.borderRadius)} 0 0 ${L(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},c3=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:l,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},qn(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:ur(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:i}}}},u3=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:L(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:L(e.marginXS)},marginLeft:{_skip_check_:!0,value:L(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},d3=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${L(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:l}},qn(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),c3(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},qn(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},f3=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,l=t||i,s=n||o,c=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:l,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},m3=Et("Tabs",e=>{const t=Ct(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${L(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${L(e.horizontalItemGutter)}`});return[s3(t),u3(t),l3(t),i3(t),a3(t),d3(t),o3(t)]},f3),v3=()=>null;var g3=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 p3=a.forwardRef((e,t)=>{var n,r,o,i,l,s,c,u,d,f,m;const{type:v,className:p,rootClassName:h,size:g,onEdit:b,hideAdd:y,centered:C,addIcon:S,removeIcon:x,moreIcon:E,more:w,popupClassName:O,children:$,items:I,animated:P,style:N,indicatorSize:M,indicator:R,destroyInactiveTabPane:z,destroyOnHidden:T}=e,j=g3(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:_}=j,{direction:D,tabs:k,getPrefixCls:V,getPopupContainer:K}=a.useContext(tt),A=V("tabs",_),W=fn(A),[G,Y,ne]=m3(A,W),Q=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:Q.current}));let J;v==="editable-card"&&(J={onEdit:(Z,{key:le,event:se})=>{b==null||b(Z==="add"?se:le,Z)},removeIcon:(n=x??(k==null?void 0:k.removeIcon))!==null&&n!==void 0?n:a.createElement(Xr,null),addIcon:(S??(k==null?void 0:k.addIcon))||a.createElement(jM,null),showAdd:y!==!0});const ie=V(),re=hn(g),X=r3(I,$),oe=e3(A,P),ee=Object.assign(Object.assign({},k==null?void 0:k.style),N),q={align:(r=R==null?void 0:R.align)!==null&&r!==void 0?r:(o=k==null?void 0:k.indicator)===null||o===void 0?void 0:o.align,size:(c=(l=(i=R==null?void 0:R.size)!==null&&i!==void 0?i:M)!==null&&l!==void 0?l:(s=k==null?void 0:k.indicator)===null||s===void 0?void 0:s.size)!==null&&c!==void 0?c:k==null?void 0:k.indicatorSize};return G(a.createElement(ZM,Object.assign({ref:Q,direction:D,getPopupContainer:K},j,{items:X,className:F({[`${A}-${re}`]:re,[`${A}-card`]:["card","editable-card"].includes(v),[`${A}-editable-card`]:v==="editable-card",[`${A}-centered`]:C},k==null?void 0:k.className,p,h,Y,ne,W),popupClassName:F(O,Y,ne,W),style:ee,editable:J,more:Object.assign({icon:(m=(f=(d=(u=k==null?void 0:k.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:k==null?void 0:k.moreIcon)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:a.createElement(Dd,null),transitionName:`${ie}-slide-up`},w),prefixCls:A,animated:oe,indicator:q,destroyInactiveTabPane:T??z})))}),oy=p3;oy.TabPane=v3;var h3=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 ay=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=h3(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=a.useContext(tt),l=i("card",t),s=F(`${l}-grid`,n,{[`${l}-grid-hoverable`]:r});return a.createElement("div",Object.assign({},o,{className:s}))},b3=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${L(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)} 0 0`},Vr()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Sr),{[`
257
+ > ${n}-typography,
258
+ > ${n}-typography-edit-content
259
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},y3=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
260
+ ${L(o)} 0 0 0 ${n},
261
+ 0 ${L(o)} 0 0 ${n},
262
+ ${L(o)} ${L(o)} 0 0 ${n},
263
+ ${L(o)} 0 0 0 ${n} inset,
264
+ 0 ${L(o)} 0 0 ${n} inset;
265
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},C3=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${L(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)}`},Vr()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:L(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:L(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${L(e.lineWidth)} ${e.lineType} ${i}`}}})},S3=e=>Object.assign(Object.assign({margin:`${L(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Vr()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Sr),"&-description":{color:e.colorTextDescription}}),x3=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${L(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${L(e.padding)} ${L(o)}`}}},$3=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},w3=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:l,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Nt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:b3(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:l,borderRadius:`0 0 ${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)}`},[`${t}-grid`]:y3(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:C3(e),[`${t}-meta`]:S3(e)}),[`${t}-bordered`]:{border:`${L(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${L(e.borderRadiusLG)} ${L(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:x3(e),[`${t}-loading`]:$3(e),[`${t}-rtl`]:{direction:"rtl"}}},E3=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${L(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},O3=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},I3=Et("Card",e=>{const t=Ct(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[w3(t),E3(t)]},O3);var Yv=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 R3=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return a.createElement("ul",{className:t,style:r},n.map((o,i)=>{const l=`action-${i}`;return a.createElement("li",{style:{width:`${100/n.length}%`},key:l},a.createElement("span",null,o))}))},P3=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:l,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:m,size:v,type:p,cover:h,actions:g,tabList:b,children:y,activeTabKey:C,defaultActiveTabKey:S,tabBarExtraContent:x,hoverable:E,tabProps:w={},classNames:O,styles:$}=e,I=Yv(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:N,card:M}=a.useContext(tt),[R]=ui("card",m,f),z=ge=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,ge)},T=ge=>{var ae;return F((ae=M==null?void 0:M.classNames)===null||ae===void 0?void 0:ae[ge],O==null?void 0:O[ge])},j=ge=>{var ae;return Object.assign(Object.assign({},(ae=M==null?void 0:M.styles)===null||ae===void 0?void 0:ae[ge]),$==null?void 0:$[ge])},_=a.useMemo(()=>{let ge=!1;return a.Children.forEach(y,ae=>{(ae==null?void 0:ae.type)===ay&&(ge=!0)}),ge},[y]),D=P("card",n),[k,V,K]=I3(D),A=a.createElement(Qr,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),W=C!==void 0,G=Object.assign(Object.assign({},w),{[W?"activeKey":"defaultActiveKey"]:W?C:S,tabBarExtraContent:x});let Y;const ne=hn(v),Q=!ne||ne==="default"?"large":ne,J=b?a.createElement(oy,Object.assign({size:Q},G,{className:`${D}-head-tabs`,onChange:z,items:b.map(ge=>{var{tab:ae}=ge,fe=Yv(ge,["tab"]);return Object.assign({label:ae},fe)})})):null;if(u||l||J){const ge=F(`${D}-head`,T("header")),ae=F(`${D}-head-title`,T("title")),fe=F(`${D}-extra`,T("extra")),ue=Object.assign(Object.assign({},s),j("header"));Y=a.createElement("div",{className:ge,style:ue},a.createElement("div",{className:`${D}-head-wrapper`},u&&a.createElement("div",{className:ae,style:j("title")},u),l&&a.createElement("div",{className:fe,style:j("extra")},l)),J)}const ie=F(`${D}-cover`,T("cover")),re=h?a.createElement("div",{className:ie,style:j("cover")},h):null,X=F(`${D}-body`,T("body")),oe=Object.assign(Object.assign({},c),j("body")),ee=a.createElement("div",{className:X,style:oe},d?A:y),q=F(`${D}-actions`,T("actions")),Z=g!=null&&g.length?a.createElement(R3,{actionClasses:q,actionStyle:j("actions"),actions:g}):null,le=Ht(I,["onTabChange"]),se=F(D,M==null?void 0:M.className,{[`${D}-loading`]:d,[`${D}-bordered`]:R!=="borderless",[`${D}-hoverable`]:E,[`${D}-contain-grid`]:_,[`${D}-contain-tabs`]:b==null?void 0:b.length,[`${D}-${ne}`]:ne,[`${D}-type-${p}`]:!!p,[`${D}-rtl`]:N==="rtl"},r,o,V,K),ve=Object.assign(Object.assign({},M==null?void 0:M.style),i);return k(a.createElement("div",Object.assign({ref:t},le,{className:se,style:ve}),Y,re,ee,Z))});var N3=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 M3=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,l=N3(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=a.useContext(tt),c=s("card",t),u=F(`${c}-meta`,n),d=r?a.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?a.createElement("div",{className:`${c}-meta-title`},o):null,m=i?a.createElement("div",{className:`${c}-meta-description`},i):null,v=f||m?a.createElement("div",{className:`${c}-meta-detail`},f,m):null;return a.createElement("div",Object.assign({},l,{className:u}),d,v)},iy=P3;iy.Grid=ay;iy.Meta=M3;function T3(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,l=r.noLeading,s=l===void 0?!1:l,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function v(){d&&clearTimeout(d)}function p(g){var b=g||{},y=b.upcomingOnly,C=y===void 0?!1:y;v(),f=!C}function h(){for(var g=arguments.length,b=new Array(g),y=0;y<g;y++)b[y]=arguments[y];var C=this,S=Date.now()-m;if(f)return;function x(){m=Date.now(),t.apply(C,b)}function E(){d=void 0}!s&&u&&!d&&x(),v(),u===void 0&&S>e?s?(m=Date.now(),i||(d=setTimeout(u?E:x,e))):x():i!==!0&&(d=setTimeout(u?E:x,u===void 0?e-S:e))}return h.cancel=p,h}function j3(e,t,n){var r={},o=r.atBegin,i=o===void 0?!1:o;return T3(e,t,{debounceMode:i!==!1})}function Fn(e,t){return e[t]}var z3=["children"];function ly(e,t){return"".concat(e,"-").concat(t)}function _3(e){return e&&e.type&&e.type.isTreeNode}function vi(e,t){return e??t}function ta(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,l=n||"title";return{title:l,_title:r||[l],key:o||"key",children:i||"children"}}function sy(e){function t(n){var r=cn(n);return r.map(function(o){if(!_3(o))return Gt(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,l=o.props,s=l.children,c=it(l,z3),u=H({key:i},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function Zs(e,t,n){var r=ta(n),o=r._title,i=r.key,l=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,v){for(var p=ly(f?f.pos:"0",v),h=vi(m[i],p),g,b=0;b<o.length;b+=1){var y=o[b];if(m[y]!==void 0){g=m[y];break}}var C=Object.assign(Ht(m,[].concat(pe(o),[i,l])),{title:g,key:h,parent:f,pos:p,children:null,data:m,isStart:[].concat(pe(f?f.isStart:[]),[v===0]),isEnd:[].concat(pe(f?f.isEnd:[]),[v===d.length-1])});return c.push(C),t===!0||s.has(h)?C.children=u(m[l]||[],C):C.children=[],C})}return u(e),c}function B3(e,t,n){var r={};Ke(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,l=o.externalGetKey,s=o.fieldNames,c=ta(s),u=c.key,d=c.children,f=i||d,m;l?typeof l=="string"?m=function(h){return h[l]}:typeof l=="function"&&(m=function(h){return l(h)}):m=function(h,g){return vi(h[u],g)};function v(p,h,g,b){var y=p?p[f]:e,C=p?ly(g.pos,h):"0",S=p?[].concat(pe(b),[p]):[];if(p){var x=m(p,C),E={node:p,index:h,pos:C,key:x,parentPos:g.node?g.pos:null,level:g.level+1,nodes:S};t(E)}y&&y.forEach(function(w,O){v(w,O,{node:p,pos:C,level:g?g.level+1:-1},S)})}v(null)}function Fd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,l=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=i||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),B3(e,function(v){var p=v.node,h=v.index,g=v.pos,b=v.key,y=v.parentPos,C=v.level,S=v.nodes,x={node:p,nodes:S,index:h,key:b,pos:g,level:C},E=vi(b,g);d[g]=x,f[E]=x,x.parent=d[y],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),r&&r(x,m)},{externalGetKey:u,childrenPropName:l,fieldNames:s}),o&&o(m),m}function Ma(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,l=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Fn(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:l.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function ln(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,l=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,v=e.eventKey,p=H(H({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:l,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:v});return"props"in p||Object.defineProperty(p,"props",{get:function(){return Gt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function cy(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function D3(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function L3(e,t,n,r){for(var o=new Set(e),i=new Set,l=0;l<=n;l+=1){var s=t.get(l)||new Set;s.forEach(function(f){var m=f.key,v=f.node,p=f.children,h=p===void 0?[]:p;o.has(m)&&!r(v)&&h.filter(function(g){return!r(g.node)}).forEach(function(g){o.add(g.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,v=f.node;if(!(r(v)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var p=!0,h=!1;(m.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var b=g.key,y=o.has(b);p&&!y&&(p=!1),!h&&(y||i.has(b))&&(h=!0)}),p&&o.add(m.key),h&&i.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(cy(i,o))}}function A3(e,t,n,r,o){for(var i=new Set(e),l=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(m){var v=m.key,p=m.node,h=m.children,g=h===void 0?[]:h;!i.has(v)&&!l.has(v)&&!o(p)&&g.filter(function(b){return!o(b.node)}).forEach(function(b){i.delete(b.key)})})}l=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var v=m.parent,p=m.node;if(!(o(p)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(v.key);return}var h=!0,g=!1;(v.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var y=b.key,C=i.has(y);h&&!C&&(h=!1),!g&&(C||l.has(y))&&(g=!0)}),h||i.delete(v.key),g&&l.add(v.key),u.add(v.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(cy(l,i))}}function Wo(e,t,n,r){var o=[],i;r?i=r:i=D3;var l=new Set(e.filter(function(d){var f=!!Fn(n,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,v=s.get(m);v||(v=new Set,s.set(m,v)),v.add(f),c=Math.max(c,m)}),Gt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=L3(l,s,c,i):u=A3(l,t.halfCheckedKeys,s,c,i),u}const H3=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Nt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Nt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Nt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:ur(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${L(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
266
+ ${n}:not(${n}-disabled),
267
+ ${t}:not(${t}-disabled)
268
+ `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
269
+ ${n}-checked:not(${n}-disabled),
270
+ ${t}-checked:not(${t}-disabled)
271
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function uy(e,t){const n=Ct(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return H3(n)}const dy=Et("Checkbox",(e,{prefixCls:t})=>[uy(t,e)]),fy=U.createContext(null);var F3=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 k3=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:l,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,v=F3(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:h,checkbox:g}=a.useContext(tt),b=a.useContext(fy),{isFormItemInput:y}=a.useContext(Rn),C=a.useContext(kn),S=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:C,x=a.useRef(v.value),E=a.useRef(null),w=dn(t,E);a.useEffect(()=>{b==null||b.registerValue(v.value)},[]),a.useEffect(()=>{if(!f)return v.value!==x.current&&(b==null||b.cancelValue(x.current),b==null||b.registerValue(v.value),x.current=v.value),()=>b==null?void 0:b.cancelValue(v.value)},[v.value]),a.useEffect(()=>{var _;!((_=E.current)===null||_===void 0)&&_.input&&(E.current.input.indeterminate=s)},[s]);const O=p("checkbox",r),$=fn(O),[I,P,N]=dy(O,$),M=Object.assign({},v);b&&!f&&(M.onChange=(..._)=>{v.onChange&&v.onChange.apply(v,_),b.toggleOption&&b.toggleOption({label:l,value:v.value})},M.name=b.name,M.checked=b.value.includes(v.value));const R=F(`${O}-wrapper`,{[`${O}-rtl`]:h==="rtl",[`${O}-wrapper-checked`]:M.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:y},g==null?void 0:g.className,o,i,N,$,P),z=F({[`${O}-indeterminate`]:s},_l,P),[T,j]=Bb(M.onClick);return I(a.createElement(ti,{component:"Checkbox",disabled:S},a.createElement("label",{className:R,style:Object.assign(Object.assign({},g==null?void 0:g.style),c),onMouseEnter:u,onMouseLeave:d,onClick:T},a.createElement(_b,Object.assign({},M,{onClick:j,prefixCls:O,className:z,disabled:S,ref:w})),l!=null&&a.createElement("span",{className:`${O}-label`},l))))},my=a.forwardRef(k3);var V3=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 W3=a.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:l,rootClassName:s,style:c,onChange:u}=e,d=V3(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=a.useContext(tt),[v,p]=a.useState(d.value||n||[]),[h,g]=a.useState([]);a.useEffect(()=>{"value"in d&&p(d.value||[])},[d.value]);const b=a.useMemo(()=>o.map(z=>typeof z=="string"||typeof z=="number"?{label:z,value:z}:z),[o]),y=z=>{g(T=>T.filter(j=>j!==z))},C=z=>{g(T=>[].concat(pe(T),[z]))},S=z=>{const T=v.indexOf(z.value),j=pe(v);T===-1?j.push(z.value):j.splice(T,1),"value"in d||p(j),u==null||u(j.filter(_=>h.includes(_)).sort((_,D)=>{const k=b.findIndex(K=>K.value===_),V=b.findIndex(K=>K.value===D);return k-V}))},x=f("checkbox",i),E=`${x}-group`,w=fn(x),[O,$,I]=dy(x,w),P=Ht(d,["value","disabled"]),N=o.length?b.map(z=>a.createElement(my,{prefixCls:x,key:z.value.toString(),disabled:"disabled"in z?z.disabled:d.disabled,value:z.value,checked:v.includes(z.value),onChange:z.onChange,className:F(`${E}-item`,z.className),style:z.style,title:z.title,id:z.id,required:z.required},z.label)):r,M=a.useMemo(()=>({toggleOption:S,value:v,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:y}),[S,v,d.disabled,d.name,C,y]),R=F(E,{[`${E}-rtl`]:m==="rtl"},l,s,I,w,$);return O(a.createElement("div",Object.assign({className:R,style:c},P,{ref:t}),a.createElement(fy.Provider,{value:M},N)))}),na=my;na.Group=W3;na.__ANT_CHECKBOX=!0;const vy=a.createContext({});var K3=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 Qv(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const G3=["xs","sm","md","lg","xl","xxl"],gy=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(tt),{gutter:o,wrap:i}=a.useContext(vy),{prefixCls:l,span:s,order:c,offset:u,push:d,pull:f,className:m,children:v,flex:p,style:h}=e,g=K3(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",l),[y,C,S]=HO(b),x={};let E={};G3.forEach($=>{let I={};const P=e[$];typeof P=="number"?I.span=P:typeof P=="object"&&(I=P||{}),delete g[$],E=Object.assign(Object.assign({},E),{[`${b}-${$}-${I.span}`]:I.span!==void 0,[`${b}-${$}-order-${I.order}`]:I.order||I.order===0,[`${b}-${$}-offset-${I.offset}`]:I.offset||I.offset===0,[`${b}-${$}-push-${I.push}`]:I.push||I.push===0,[`${b}-${$}-pull-${I.pull}`]:I.pull||I.pull===0,[`${b}-rtl`]:r==="rtl"}),I.flex&&(E[`${b}-${$}-flex`]=!0,x[`--${b}-${$}-flex`]=Qv(I.flex))});const w=F(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},m,E,C,S),O={};if(o!=null&&o[0]){const $=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;O.paddingLeft=$,O.paddingRight=$}return p&&(O.flex=Qv(p),i===!1&&!O.minWidth&&(O.minWidth=0)),y(a.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},O),h),x),className:w,ref:t}),v))});function q3(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((i,l)=>{if(typeof i=="object"&&i!==null)for(let s=0;s<Jo.length;s++){const c=Jo[s];if(o[c]&&i[c]!==void 0){n[l]=i[c];break}}else n[l]=i}),n}var U3=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 Zv(e,t){const[n,r]=a.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<Jo.length;i++){const l=Jo[i];if(!t||!t[l])continue;const s=e[l];if(s!==void 0){r(s);return}}};return a.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const X3=a.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:l,children:s,gutter:c=0,wrap:u}=e,d=U3(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=a.useContext(tt),v=Ql(!0,null),p=Zv(o,v),h=Zv(r,v),g=f("row",n),[b,y,C]=AO(g),S=q3(c,v),x=F(g,{[`${g}-no-wrap`]:u===!1,[`${g}-${h}`]:h,[`${g}-${p}`]:p,[`${g}-rtl`]:m==="rtl"},i,y,C),E={};if(S!=null&&S[0]){const I=typeof S[0]=="number"?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;E.marginLeft=I,E.marginRight=I}const[w,O]=S;E.rowGap=O;const $=a.useMemo(()=>({gutter:[w,O],wrap:u}),[w,O,u]);return b(a.createElement(vy.Provider,{value:$},a.createElement("div",Object.assign({},d,{className:x,style:Object.assign(Object.assign({},E),l),ref:t}),s)))}),Y3=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Q3=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:l,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Nt(e)),{borderBlockStart:`${L(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${L(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${L(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${L(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${L(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${L(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${L(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Z3=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),J3=Et("Divider",e=>{const t=Ct(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Q3(t),Y3(t)]},Z3,{unitless:{orientationMargin:!0}});var e6=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 t6={small:"sm",middle:"md"},cL=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=on("divider"),{prefixCls:i,type:l="horizontal",orientation:s="center",orientationMargin:c,className:u,rootClassName:d,children:f,dashed:m,variant:v="solid",plain:p,style:h,size:g}=e,b=e6(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),y=t("divider",i),[C,S,x]=J3(y),E=hn(g),w=t6[E],O=!!f,$=a.useMemo(()=>s==="left"?n==="rtl"?"end":"start":s==="right"?n==="rtl"?"start":"end":s,[n,s]),I=$==="start"&&c!=null,P=$==="end"&&c!=null,N=F(y,r,S,x,`${y}-${l}`,{[`${y}-with-text`]:O,[`${y}-with-text-${$}`]:O,[`${y}-dashed`]:!!m,[`${y}-${v}`]:v!=="solid",[`${y}-plain`]:!!p,[`${y}-rtl`]:n==="rtl",[`${y}-no-default-orientation-margin-start`]:I,[`${y}-no-default-orientation-margin-end`]:P,[`${y}-${w}`]:!!w},u,d),M=a.useMemo(()=>typeof c=="number"?c:/^\d+$/.test(c)?Number(c):c,[c]),R={marginInlineStart:I?M:void 0,marginInlineEnd:P?M:void 0};return C(a.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},o),h)},b,{role:"separator"}),f&&l!=="vertical"&&a.createElement("span",{className:`${y}-inner-text`,style:R},f)))};var Jv=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},pr=function(t){return t!==void 0?"".concat(t,"px"):void 0};function n6(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,l=e.onMotionStart,s=e.onMotionEnd,c=e.direction,u=e.vertical,d=u===void 0?!1:u,f=a.useRef(null),m=a.useState(r),v=te(m,2),p=v[0],h=v[1],g=function(z){var T,j=o(z),_=(T=n.current)===null||T===void 0?void 0:T.querySelectorAll(".".concat(t,"-item"))[j];return(_==null?void 0:_.offsetParent)&&_},b=a.useState(null),y=te(b,2),C=y[0],S=y[1],x=a.useState(null),E=te(x,2),w=E[0],O=E[1];wt(function(){if(p!==r){var R=g(p),z=g(r),T=Jv(R,d),j=Jv(z,d);h(r),S(T),O(j),R&&z?l():s()}},[r]);var $=a.useMemo(function(){if(d){var R;return pr((R=C==null?void 0:C.top)!==null&&R!==void 0?R:0)}return pr(c==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[d,c,C]),I=a.useMemo(function(){if(d){var R;return pr((R=w==null?void 0:w.top)!==null&&R!==void 0?R:0)}return pr(c==="rtl"?-(w==null?void 0:w.right):w==null?void 0:w.left)},[d,c,w]),P=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},N=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},M=function(){S(null),O(null),s()};return!C||!w?null:a.createElement(Hn,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:P,onAppearActive:N,onVisibleChanged:M},function(R,z){var T=R.className,j=R.style,_=H(H({},j),{},{"--thumb-start-left":$,"--thumb-start-width":pr(C==null?void 0:C.width),"--thumb-active-left":I,"--thumb-active-width":pr(w==null?void 0:w.width),"--thumb-start-top":$,"--thumb-start-height":pr(C==null?void 0:C.height),"--thumb-active-top":I,"--thumb-active-height":pr(w==null?void 0:w.height)}),D={ref:dn(f,z),style:_,className:F("".concat(t,"-thumb"),T)};return a.createElement("div",D)})}var r6=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function o6(e){if(typeof e.title<"u")return e.title;if(Ke(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function a6(e){return e.map(function(t){if(Ke(t)==="object"&&t!==null){var n=o6(t);return H(H({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var i6=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,i=t.checked,l=t.label,s=t.title,c=t.value,u=t.name,d=t.onChange,f=t.onFocus,m=t.onBlur,v=t.onKeyDown,p=t.onKeyUp,h=t.onMouseDown,g=function(y){o||d(y,c)};return a.createElement("label",{className:F(r,B({},"".concat(n,"-item-disabled"),o)),onMouseDown:h},a.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:i,onChange:g,onFocus:f,onBlur:m,onKeyDown:v,onKeyUp:p}),a.createElement("div",{className:"".concat(n,"-item-label"),title:s},l))},l6=a.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-segmented":r,i=e.direction,l=e.vertical,s=e.options,c=s===void 0?[]:s,u=e.disabled,d=e.defaultValue,f=e.value,m=e.name,v=e.onChange,p=e.className,h=p===void 0?"":p,g=e.motionName,b=g===void 0?"thumb-motion":g,y=it(e,r6),C=a.useRef(null),S=a.useMemo(function(){return dn(C,t)},[C,t]),x=a.useMemo(function(){return a6(c)},[c]),E=Wt((n=x[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),w=te(E,2),O=w[0],$=w[1],I=a.useState(!1),P=te(I,2),N=P[0],M=P[1],R=function(re,X){$(X),v==null||v(X)},z=Ht(y,["children"]),T=a.useState(!1),j=te(T,2),_=j[0],D=j[1],k=a.useState(!1),V=te(k,2),K=V[0],A=V[1],W=function(){A(!0)},G=function(){A(!1)},Y=function(){D(!1)},ne=function(re){re.key==="Tab"&&D(!0)},Q=function(re){var X=x.findIndex(function(Z){return Z.value===O}),oe=x.length,ee=(X+re+oe)%oe,q=x[ee];q&&($(q.value),v==null||v(q.value))},J=function(re){switch(re.key){case"ArrowLeft":case"ArrowUp":Q(-1);break;case"ArrowRight":case"ArrowDown":Q(1);break}};return a.createElement("div",ce({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0,"aria-orientation":l?"vertical":"horizontal"},z,{className:F(o,B(B(B({},"".concat(o,"-rtl"),i==="rtl"),"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),l),h),ref:S}),a.createElement("div",{className:"".concat(o,"-group")},a.createElement(n6,{vertical:l,prefixCls:o,value:O,containerRef:C,motionName:"".concat(o,"-").concat(b),direction:i,getValueIndex:function(re){return x.findIndex(function(X){return X.value===re})},onMotionStart:function(){M(!0)},onMotionEnd:function(){M(!1)}}),x.map(function(ie){return a.createElement(i6,ce({},ie,{name:m,key:ie.value,prefixCls:o,className:F(ie.className,"".concat(o,"-item"),B(B({},"".concat(o,"-item-selected"),ie.value===O&&!N),"".concat(o,"-item-focused"),K&&_&&ie.value===O)),checked:ie.value===O,onChange:R,onFocus:W,onBlur:G,onKeyDown:J,onKeyUp:ne,onMouseDown:Y,disabled:!!u||!!ie.disabled}))})))}),s6=l6;function eg(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function tg(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const c6=Object.assign({overflow:"hidden"},Sr),u6=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),qn(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${L(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},tg(e)),{color:e.itemSelectedColor}),"&-focused":ur(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:L(n),padding:`0 ${L(e.segmentedPaddingHorizontal)}`},c6),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},tg(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${L(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:L(r),padding:`0 ${L(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:L(o),padding:`0 ${L(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),eg(`&-disabled ${t}-item`,e)),eg(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},d6=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:l,colorBgLayout:s}=e;return{trackPadding:l,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}},f6=Et("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Ct(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return u6(r)},d6);var ng=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 m6(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const v6=a.forwardRef((e,t)=>{const n=ai(),{prefixCls:r,className:o,rootClassName:i,block:l,options:s=[],size:c="middle",style:u,vertical:d,shape:f="default",name:m=n}=e,v=ng(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:p,direction:h,className:g,style:b}=on("segmented"),y=p("segmented",r),[C,S,x]=f6(y),E=hn(c),w=a.useMemo(()=>s.map(I=>{if(m6(I)){const{icon:P,label:N}=I,M=ng(I,["icon","label"]);return Object.assign(Object.assign({},M),{label:a.createElement(a.Fragment,null,a.createElement("span",{className:`${y}-item-icon`},P),N&&a.createElement("span",null,N))})}return I}),[s,y]),O=F(o,i,g,{[`${y}-block`]:l,[`${y}-sm`]:E==="small",[`${y}-lg`]:E==="large",[`${y}-vertical`]:d,[`${y}-shape-${f}`]:f==="round"},S,x),$=Object.assign(Object.assign({},b),u);return C(a.createElement(s6,Object.assign({},v,{name:m,className:O,style:$,options:w,ref:t,prefixCls:y,direction:h,vertical:d})))}),uL=v6;var g6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},p6=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:g6}))},h6=a.forwardRef(p6);function Ou(){return typeof BigInt=="function"}function py(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function co(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",l=o[1]||"0";i==="0"&&l==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:l,fullStr:"".concat(s).concat(r)}}function kd(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function io(e){var t=String(e);if(kd(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Vd(t)?t.length-t.indexOf(".")-1:0}function is(e){var t=String(e);if(kd(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ou()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ou()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(io(t))}return co(t).fullStr}function Vd(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var b6=(function(){function e(t){if(Qt(this,e),B(this,"origin",""),B(this,"negative",void 0),B(this,"integer",void 0),B(this,"decimal",void 0),B(this,"decimalLen",void 0),B(this,"empty",void 0),B(this,"nan",void 0),py(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(kd(n)&&(n=Number(n)),n=typeof n=="string"?n:is(n),Vd(n)){var r=co(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return Zt(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),l=this.alignDecimal(i),s=n.alignDecimal(i),c=r(l,s).toString(),u=o(i),d=co(c),f=d.negativeStr,m=d.trimStr,v="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(v.slice(0,-u),".").concat(v.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(o,i){return o+i},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,i){return o*i},function(o){return o*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":co("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),y6=(function(){function e(t){if(Qt(this,e),B(this,"origin",""),B(this,"number",void 0),B(this,"empty",void 0),py(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Zt(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(io(this.number),io(r));return new e(o.toFixed(i))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(io(this.number),io(r));return new e(o.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":is(this.number):this.origin}}]),e})();function or(e){return Ou()?new b6(e):new y6(e)}function Zi(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=co(e),i=o.negativeStr,l=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),u="".concat(i).concat(l);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=or(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-d));return Zi(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function C6(e){return!!(e.addonBefore||e.addonAfter)}function S6(e){return!!(e.prefix||e.suffix||e.allowClear)}function rg(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function yl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=rg(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=rg(t,e,r),n(o);return}n(o)}}function Wd(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Kd=U.forwardRef(function(e,t){var n,r,o,i=e.inputElement,l=e.children,s=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,v=e.style,p=e.disabled,h=e.readOnly,g=e.focused,b=e.triggerFocus,y=e.allowClear,C=e.value,S=e.handleReset,x=e.hidden,E=e.classes,w=e.classNames,O=e.dataAttrs,$=e.styles,I=e.components,P=e.onClear,N=l??i,M=(I==null?void 0:I.affixWrapper)||"span",R=(I==null?void 0:I.groupWrapper)||"span",z=(I==null?void 0:I.wrapper)||"span",T=(I==null?void 0:I.groupAddon)||"span",j=a.useRef(null),_=function(q){var Z;(Z=j.current)!==null&&Z!==void 0&&Z.contains(q.target)&&(b==null||b())},D=S6(e),k=a.cloneElement(N,{value:C,className:F((n=N.props)===null||n===void 0?void 0:n.className,!D&&(w==null?void 0:w.variant))||null}),V=a.useRef(null);if(U.useImperativeHandle(t,function(){return{nativeElement:V.current||j.current}}),D){var K=null;if(y){var A=!p&&!h&&C,W="".concat(s,"-clear-icon"),G=Ke(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";K=U.createElement("button",{type:"button",tabIndex:-1,onClick:function(q){S==null||S(q),P==null||P()},onMouseDown:function(q){return q.preventDefault()},className:F(W,B(B({},"".concat(W,"-hidden"),!A),"".concat(W,"-has-suffix"),!!u))},G)}var Y="".concat(s,"-affix-wrapper"),ne=F(Y,B(B(B(B(B({},"".concat(s,"-disabled"),p),"".concat(Y,"-disabled"),p),"".concat(Y,"-focused"),g),"".concat(Y,"-readonly"),h),"".concat(Y,"-input-with-clear-btn"),u&&y&&C),E==null?void 0:E.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),Q=(u||y)&&U.createElement("span",{className:F("".concat(s,"-suffix"),w==null?void 0:w.suffix),style:$==null?void 0:$.suffix},K,u);k=U.createElement(M,ce({className:ne,style:$==null?void 0:$.affixWrapper,onClick:_},O==null?void 0:O.affixWrapper,{ref:j}),c&&U.createElement("span",{className:F("".concat(s,"-prefix"),w==null?void 0:w.prefix),style:$==null?void 0:$.prefix},c),k,Q)}if(C6(e)){var J="".concat(s,"-group"),ie="".concat(J,"-addon"),re="".concat(J,"-wrapper"),X=F("".concat(s,"-wrapper"),J,E==null?void 0:E.wrapper,w==null?void 0:w.wrapper),oe=F(re,B({},"".concat(re,"-disabled"),p),E==null?void 0:E.group,w==null?void 0:w.groupWrapper);k=U.createElement(R,{className:oe,ref:V},U.createElement(z,{className:X},d&&U.createElement(T,{className:ie},d),k,f&&U.createElement(T,{className:ie},f)))}return U.cloneElement(k,{className:F((r=k.props)===null||r===void 0?void 0:r.className,m)||null,style:H(H({},(o=k.props)===null||o===void 0?void 0:o.style),v),hidden:x})}),x6=["show"];function hy(e,t){return a.useMemo(function(){var n={};t&&(n.show=Ke(t)==="object"&&t.formatter?t.formatter:!!t),n=H(H({},n),e);var r=n,o=r.show,i=it(r,x6);return H(H({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(l){return l.length}})},[e,t])}var $6=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],w6=a.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,l=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,v=e.className,p=e.maxLength,h=e.suffix,g=e.showCount,b=e.count,y=e.type,C=y===void 0?"text":y,S=e.classes,x=e.classNames,E=e.styles,w=e.onCompositionStart,O=e.onCompositionEnd,$=it(e,$6),I=a.useState(!1),P=te(I,2),N=P[0],M=P[1],R=a.useRef(!1),z=a.useRef(!1),T=a.useRef(null),j=a.useRef(null),_=function(de){T.current&&Wd(T.current,de)},D=Wt(e.defaultValue,{value:e.value}),k=te(D,2),V=k[0],K=k[1],A=V==null?"":String(V),W=a.useState(null),G=te(W,2),Y=G[0],ne=G[1],Q=hy(b,g),J=Q.max||p,ie=Q.strategy(A),re=!!J&&ie>J;a.useImperativeHandle(t,function(){var ue;return{focus:_,blur:function(){var xe;(xe=T.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,we,Le){var je;(je=T.current)===null||je===void 0||je.setSelectionRange(xe,we,Le)},select:function(){var xe;(xe=T.current)===null||xe===void 0||xe.select()},input:T.current,nativeElement:((ue=j.current)===null||ue===void 0?void 0:ue.nativeElement)||T.current}}),a.useEffect(function(){z.current&&(z.current=!1),M(function(ue){return ue&&f?!1:ue})},[f]);var X=function(de,xe,we){var Le=xe;if(!R.current&&Q.exceedFormatter&&Q.max&&Q.strategy(xe)>Q.max){if(Le=Q.exceedFormatter(xe,{max:Q.max}),xe!==Le){var je,Oe;ne([((je=T.current)===null||je===void 0?void 0:je.selectionStart)||0,((Oe=T.current)===null||Oe===void 0?void 0:Oe.selectionEnd)||0])}}else if(we.source==="compositionEnd")return;K(Le),T.current&&yl(T.current,de,r,Le)};a.useEffect(function(){if(Y){var ue;(ue=T.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,pe(Y))}},[Y]);var oe=function(de){X(de,de.target.value,{source:"change"})},ee=function(de){R.current=!1,X(de,de.currentTarget.value,{source:"compositionEnd"}),O==null||O(de)},q=function(de){l&&de.key==="Enter"&&!z.current&&(z.current=!0,l(de)),s==null||s(de)},Z=function(de){de.key==="Enter"&&(z.current=!1),c==null||c(de)},le=function(de){M(!0),o==null||o(de)},se=function(de){z.current&&(z.current=!1),M(!1),i==null||i(de)},ve=function(de){K(""),_(),T.current&&yl(T.current,de,r)},ge=re&&"".concat(d,"-out-of-range"),ae=function(){var de=Ht(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return U.createElement("input",ce({autoComplete:n},de,{onChange:oe,onFocus:le,onBlur:se,onKeyDown:q,onKeyUp:Z,className:F(d,B({},"".concat(d,"-disabled"),f),x==null?void 0:x.input),style:E==null?void 0:E.input,ref:T,size:m,type:C,onCompositionStart:function(we){R.current=!0,w==null||w(we)},onCompositionEnd:ee}))},fe=function(){var de=Number(J)>0;if(h||Q.show){var xe=Q.showFormatter?Q.showFormatter({value:A,count:ie,maxLength:J}):"".concat(ie).concat(de?" / ".concat(J):"");return U.createElement(U.Fragment,null,Q.show&&U.createElement("span",{className:F("".concat(d,"-show-count-suffix"),B({},"".concat(d,"-show-count-has-suffix"),!!h),x==null?void 0:x.count),style:H({},E==null?void 0:E.count)},xe),h)}return null};return U.createElement(Kd,ce({},$,{prefixCls:d,className:F(v,ge),handleReset:ve,value:A,focused:N,triggerFocus:_,suffix:fe(),disabled:f,classes:S,classNames:x,styles:E,ref:j}),ae())});function E6(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var i=r[o];return typeof i=="function"?i.bind(r):i}}):e}function O6(e,t){var n=a.useRef(null);function r(){try{var i=e.selectionStart,l=e.selectionEnd,s=e.value,c=s.substring(0,i),u=s.substring(l);n.current={start:i,end:l,value:s,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,l=n.current,s=l.beforeTxt,c=l.afterTxt,u=l.start,d=i.length;if(i.startsWith(s))d=s.length;else if(i.endsWith(c))d=i.length-n.current.afterTxt.length;else{var f=s[u-1],m=i.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(v){Gt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message))}}return[r,o]}var I6=function(){var t=a.useState(!1),n=te(t,2),r=n[0],o=n[1];return wt(function(){o(ql())},[]),r},R6=200,P6=600;function N6(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,l=e.onStep,s=a.useRef(),c=a.useRef([]),u=a.useRef();u.current=l;var d=function(){clearTimeout(s.current)},f=function(C,S){C.preventDefault(),d(),u.current(S);function x(){u.current(S),s.current=setTimeout(x,R6)}s.current=setTimeout(x,P6)};a.useEffect(function(){return function(){d(),c.current.forEach(function(y){return Ot.cancel(y)})}},[]);var m=I6();if(m)return null;var v="".concat(t,"-handler"),p=F(v,"".concat(v,"-up"),B({},"".concat(v,"-up-disabled"),o)),h=F(v,"".concat(v,"-down"),B({},"".concat(v,"-down-disabled"),i)),g=function(){return c.current.push(Ot(d))},b={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return a.createElement("div",{className:"".concat(v,"-wrap")},a.createElement("span",ce({},b,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":o,className:p}),n||a.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),a.createElement("span",ce({},b,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:h}),r||a.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function og(e){var t=typeof e=="number"?is(e):co(e).fullStr,n=t.includes(".");return n?co(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const M6=(function(){var e=a.useRef(0),t=function(){Ot.cancel(e.current)};return a.useEffect(function(){return t},[]),function(n){t(),e.current=Ot(function(){n()})}});var T6=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],j6=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ag=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},ig=function(t){var n=or(t);return n.isInvalidate()?null:n},z6=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.min,l=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,v=e.upHandler,p=e.downHandler,h=e.keyboard,g=e.changeOnWheel,b=g===void 0?!1:g,y=e.controls,C=y===void 0?!0:y;e.classNames;var S=e.stringMode,x=e.parser,E=e.formatter,w=e.precision,O=e.decimalSeparator,$=e.onChange,I=e.onInput,P=e.onPressEnter,N=e.onStep,M=e.changeOnBlur,R=M===void 0?!0:M,z=e.domRef,T=it(e,T6),j="".concat(n,"-input"),_=a.useRef(null),D=a.useState(!1),k=te(D,2),V=k[0],K=k[1],A=a.useRef(!1),W=a.useRef(!1),G=a.useRef(!1),Y=a.useState(function(){return or(d??u)}),ne=te(Y,2),Q=ne[0],J=ne[1];function ie(Pe){d===void 0&&J(Pe)}var re=a.useCallback(function(Pe,We){if(!We)return w>=0?w:Math.max(io(Pe),io(c))},[w,c]),X=a.useCallback(function(Pe){var We=String(Pe);if(x)return x(We);var Ye=We;return O&&(Ye=Ye.replace(O,".")),Ye.replace(/[^\w.-]+/g,"")},[x,O]),oe=a.useRef(""),ee=a.useCallback(function(Pe,We){if(E)return E(Pe,{userTyping:We,input:String(oe.current)});var Ye=typeof Pe=="number"?is(Pe):Pe;if(!We){var _e=re(Ye,We);if(Vd(Ye)&&(O||_e>=0)){var Ge=O||".";Ye=Zi(Ye,Ge,_e)}}return Ye},[E,re,O]),q=a.useState(function(){var Pe=u??d;return Q.isInvalidate()&&["string","number"].includes(Ke(Pe))?Number.isNaN(Pe)?"":Pe:ee(Q.toString(),!1)}),Z=te(q,2),le=Z[0],se=Z[1];oe.current=le;function ve(Pe,We){se(ee(Pe.isInvalidate()?Pe.toString(!1):Pe.toString(!We),We))}var ge=a.useMemo(function(){return ig(l)},[l,w]),ae=a.useMemo(function(){return ig(i)},[i,w]),fe=a.useMemo(function(){return!ge||!Q||Q.isInvalidate()?!1:ge.lessEquals(Q)},[ge,Q]),ue=a.useMemo(function(){return!ae||!Q||Q.isInvalidate()?!1:Q.lessEquals(ae)},[ae,Q]),de=O6(_.current,V),xe=te(de,2),we=xe[0],Le=xe[1],je=function(We){return ge&&!We.lessEquals(ge)?ge:ae&&!ae.lessEquals(We)?ae:null},Oe=function(We){return!je(We)},Te=function(We,Ye){var _e=We,Ge=Oe(_e)||_e.isEmpty();if(!_e.isEmpty()&&!Ye&&(_e=je(_e)||_e,Ge=!0),!m&&!f&&Ge){var vt=_e.toString(),dt=re(vt,Ye);return dt>=0&&(_e=or(Zi(vt,".",dt)),Oe(_e)||(_e=or(Zi(vt,".",dt,!0)))),_e.equals(Q)||(ie(_e),$==null||$(_e.isEmpty()?null:ag(S,_e)),d===void 0&&ve(_e,Ye)),_e}return Q},he=M6(),me=function Pe(We){if(we(),oe.current=We,se(We),!W.current){var Ye=X(We),_e=or(Ye);_e.isNaN()||Te(_e,!0)}I==null||I(We),he(function(){var Ge=We;x||(Ge=We.replace(/。/g,".")),Ge!==We&&Pe(Ge)})},$e=function(){W.current=!0},Se=function(){W.current=!1,me(_.current.value)},Re=function(We){me(We.target.value)},be=function(We){var Ye;if(!(We&&fe||!We&&ue)){A.current=!1;var _e=or(G.current?og(c):c);We||(_e=_e.negate());var Ge=(Q||or(0)).add(_e.toString()),vt=Te(Ge,!1);N==null||N(ag(S,vt),{offset:G.current?og(c):c,type:We?"up":"down"}),(Ye=_.current)===null||Ye===void 0||Ye.focus()}},Ie=function(We){var Ye=or(X(le)),_e;Ye.isNaN()?_e=Te(Q,We):_e=Te(Ye,We),d!==void 0?ve(Q,!1):_e.isNaN()||ve(_e,!1)},De=function(){A.current=!0},ke=function(We){var Ye=We.key,_e=We.shiftKey;A.current=!0,G.current=_e,Ye==="Enter"&&(W.current||(A.current=!1),Ie(!1),P==null||P(We)),h!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ye)&&(be(Ye==="Up"||Ye==="ArrowUp"),We.preventDefault())},gt=function(){A.current=!1,G.current=!1};a.useEffect(function(){if(b&&V){var Pe=function(_e){be(_e.deltaY<0),_e.preventDefault()},We=_.current;if(We)return We.addEventListener("wheel",Pe,{passive:!1}),function(){return We.removeEventListener("wheel",Pe)}}});var ht=function(){R&&Ie(!1),K(!1),A.current=!1};return Ho(function(){Q.isInvalidate()||ve(Q,!1)},[w,E]),Ho(function(){var Pe=or(d);J(Pe);var We=or(X(le));(!Pe.equals(We)||!A.current||E)&&ve(Pe,A.current)},[d]),Ho(function(){E&&Le()},[le]),a.createElement("div",{ref:z,className:F(n,r,B(B(B(B(B({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),Q.isNaN()),"".concat(n,"-out-of-range"),!Q.isInvalidate()&&!Oe(Q))),style:o,onFocus:function(){K(!0)},onBlur:ht,onKeyDown:ke,onKeyUp:gt,onCompositionStart:$e,onCompositionEnd:Se,onBeforeInput:De},C&&a.createElement(N6,{prefixCls:n,upNode:v,downNode:p,upDisabled:fe,downDisabled:ue,onStep:be}),a.createElement("div",{className:"".concat(j,"-wrap")},a.createElement("input",ce({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:c},T,{ref:dn(_,t),className:j,value:le,onChange:Re,disabled:f,readOnly:m}))))}),_6=a.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,l=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,v=it(e,j6),p=a.useRef(null),h=a.useRef(null),g=a.useRef(null),b=function(C){g.current&&Wd(g.current,C)};return a.useImperativeHandle(t,function(){return E6(g.current,{focus:b,nativeElement:p.current.nativeElement||h.current})}),a.createElement(Kd,{className:f,triggerFocus:b,prefixCls:i,value:l,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},a.createElement(z6,ce({prefixCls:i,disabled:n,ref:g,domRef:h,className:m==null?void 0:m.input},v)))});const B6=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},ma(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Tt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},lg=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},D6=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:l,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:v,colorIcon:p,motionDurationMid:h,handleHoverColor:g,handleOpacity:b,paddingInline:y,paddingBlock:C,handleBg:S,handleActiveBg:x,colorTextDisabled:E,borderRadiusSM:w,borderRadiusLG:O,controlWidth:$,handleBorderColor:I,filledHandleBg:P,lineHeightLG:N,calc:M}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),mi(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:o}),Fb(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${L(n)} ${r} ${I}`}}})),Kb(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${L(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),Ub(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${L(n)} ${r} ${I}`}}})),Vb(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,lineHeight:N,borderRadius:O,[`input${t}-input`]:{height:M(s).sub(M(n).mul(2)).equal(),padding:`${L(m)} ${L(v)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:M(c).sub(M(n).mul(2)).equal(),padding:`${L(f)} ${L(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},Nt(e)),Qb(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},kb(e)),Gb(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{width:"100%",padding:`${L(C)} ${L(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),Xb(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${h}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
272
+ ${t}-handler-up-inner,
273
+ ${t}-handler-down-inner
274
+ `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${L(n)} ${r} ${I}`,transition:`all ${h} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`
275
+ ${t}-handler-up-inner,
276
+ ${t}-handler-down-inner
277
+ `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},yo()),{color:p,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},lg(e,"lg")),lg(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
278
+ ${t}-handler-up-disabled,
279
+ ${t}-handler-down-disabled
280
+ `]:{cursor:"not-allowed"},[`
281
+ ${t}-handler-up-disabled:hover &-handler-up-inner,
282
+ ${t}-handler-down-disabled:hover &-handler-down-inner
283
+ `]:{color:E}})}]},L6=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:l,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${L(n)} 0`}},mi(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${L(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${L(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},A6=Et("InputNumber",e=>{const t=Ct(e,fa(e));return[D6(t),L6(t),ri(t)]},B6,{unitless:{handleOpacity:!0},resetFont:!1});var H6=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 by=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(tt),o=a.useRef(null);a.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:l,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:v,bordered:p,readOnly:h,status:g,controls:b,variant:y}=e,C=H6(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",u),x=fn(S),[E,w,O]=A6(S,x),{compactSize:$,compactItemClassnames:I}=Yr(S,r);let P=a.createElement(h6,{className:`${S}-handler-up-inner`}),N=a.createElement(Ed,{className:`${S}-handler-down-inner`});const M=typeof b=="boolean"?b:void 0;typeof b=="object"&&(P=typeof b.upIcon>"u"?P:a.createElement("span",{className:`${S}-handler-up-inner`},b.upIcon),N=typeof b.downIcon>"u"?N:a.createElement("span",{className:`${S}-handler-down-inner`},b.downIcon));const{hasFeedback:R,status:z,isFormItemInput:T,feedbackIcon:j}=a.useContext(Rn),_=ci(z,g),D=hn(Q=>{var J;return(J=s??$)!==null&&J!==void 0?J:Q}),k=a.useContext(kn),V=c??k,[K,A]=ui("inputNumber",y,p),W=R&&a.createElement(a.Fragment,null,j),G=F({[`${S}-lg`]:D==="large",[`${S}-sm`]:D==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:T},w),Y=`${S}-group`,ne=a.createElement(_6,Object.assign({ref:o,disabled:V,className:F(O,x,i,l,I),upHandler:P,downHandler:N,prefixCls:S,readOnly:h,controls:M,prefix:m,suffix:W||v,addonBefore:d&&a.createElement(Gr,{form:!0,space:!0},d),addonAfter:f&&a.createElement(Gr,{form:!0,space:!0},f),classNames:{input:G,variant:F({[`${S}-${K}`]:A},Zo(S,_,R)),affixWrapper:F({[`${S}-affix-wrapper-sm`]:D==="small",[`${S}-affix-wrapper-lg`]:D==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:b===!1||V||h},w),wrapper:F({[`${Y}-rtl`]:r==="rtl"},w),groupWrapper:F({[`${S}-group-wrapper-sm`]:D==="small",[`${S}-group-wrapper-lg`]:D==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${K}`]:A},Zo(`${S}-group-wrapper`,_,R),w)}},C));return E(ne)}),F6=by,k6=e=>a.createElement(gr,{theme:{components:{InputNumber:{handleVisible:!0}}}},a.createElement(by,Object.assign({},e)));F6._InternalPanelDoNotUseOrYouWillBeFired=k6;const yy=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:U.createElement(Co,null)}),t};function Cy(e,t){const n=a.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,l,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((l=e.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return a.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function V6(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var W6=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 gi=a.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:v,style:p,styles:h,rootClassName:g,onChange:b,classNames:y,variant:C,_skipAddonWarning:S}=e,x=W6(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:E,direction:w,allowClear:O,autoComplete:$,className:I,style:P,classNames:N,styles:M}=on("input"),R=E("input",n),z=a.useRef(null),T=fn(R),[j,_,D]=Zb(R,g),[k]=Jb(R,T),{compactSize:V,compactItemClassnames:K}=Yr(R,w),A=hn(ve=>{var ge;return(ge=i??V)!==null&&ge!==void 0?ge:ve}),W=U.useContext(kn),G=l??W,{status:Y,hasFeedback:ne,feedbackIcon:Q}=a.useContext(Rn),J=ci(Y,o),ie=V6(e)||!!ne;a.useRef(ie);const re=Cy(z,!0),X=ve=>{re(),s==null||s(ve)},oe=ve=>{re(),c==null||c(ve)},ee=ve=>{re(),b==null||b(ve)},q=(ne||u)&&U.createElement(U.Fragment,null,u,ne&&Q),Z=yy(d??O),[le,se]=ui("input",C,r);return j(k(U.createElement(w6,Object.assign({ref:dn(t,z),prefixCls:R,autoComplete:$},x,{disabled:G,onBlur:X,onFocus:oe,style:Object.assign(Object.assign({},P),p),styles:Object.assign(Object.assign({},M),h),suffix:q,allowClear:Z,className:F(v,g,D,T,K,I),onChange:ee,addonBefore:m&&U.createElement(Gr,{form:!0,space:!0},m),addonAfter:f&&U.createElement(Gr,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},y),N),{input:F({[`${R}-sm`]:A==="small",[`${R}-lg`]:A==="large",[`${R}-rtl`]:w==="rtl"},y==null?void 0:y.input,N.input,_),variant:F({[`${R}-${le}`]:se},Zo(R,J)),affixWrapper:F({[`${R}-affix-wrapper-sm`]:A==="small",[`${R}-affix-wrapper-lg`]:A==="large",[`${R}-affix-wrapper-rtl`]:w==="rtl"},_),wrapper:F({[`${R}-group-rtl`]:w==="rtl"},_),groupWrapper:F({[`${R}-group-wrapper-sm`]:A==="small",[`${R}-group-wrapper-lg`]:A==="large",[`${R}-group-wrapper-rtl`]:w==="rtl",[`${R}-group-wrapper-${le}`]:se},Zo(`${R}-group-wrapper`,J,ne),_)})}))))}),K6={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},Gd=U.createContext({});var G6=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 q6=e=>cn(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function U6(e,t,n){const r=a.useMemo(()=>t||q6(n),[t,n]);return a.useMemo(()=>r.map(i=>{var{span:l}=i,s=G6(i,["span"]);return l==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof l=="number"?l:tb(e,l)})}),[r,e])}var X6=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 Y6(e,t){let n=[],r=[],o=!1,i=0;return e.filter(l=>l).forEach(l=>{const{filled:s}=l,c=X6(l,["filled"]);if(s){r.push(c),n.push(r),r=[],i=0;return}const u=t-i;i+=l.span||1,i>=t?(i>t?(o=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],i=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(l=>{const s=l.reduce((c,u)=>c+(u.span||1),0);if(s<t){const c=l[l.length-1];return c.span=t-(s-(c.span||1)),l}return l}),[n,o]}const Q6=(e,t)=>{const[n,r]=a.useMemo(()=>Y6(t,e),[t,e]);return n},Z6=({children:e})=>e,ji=e=>e!=null,Js=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:i,labelStyle:l,contentStyle:s,bordered:c,label:u,content:d,colon:f,type:m,styles:v}=e,p=n,{classNames:h}=a.useContext(Gd),g=Object.assign(Object.assign({},l),v==null?void 0:v.label),b=Object.assign(Object.assign({},s),v==null?void 0:v.content);return c?a.createElement(p,{colSpan:r,style:i,className:F(o,{[`${t}-item-${m}`]:m==="label"||m==="content",[h==null?void 0:h.label]:(h==null?void 0:h.label)&&m==="label",[h==null?void 0:h.content]:(h==null?void 0:h.content)&&m==="content"})},ji(u)&&a.createElement("span",{style:g},u),ji(d)&&a.createElement("span",{style:b},d)):a.createElement(p,{colSpan:r,style:i,className:F(`${t}-item`,o)},a.createElement("div",{className:`${t}-item-container`},ji(u)&&a.createElement("span",{style:g,className:F(`${t}-item-label`,h==null?void 0:h.label,{[`${t}-item-no-colon`]:!f})},u),ji(d)&&a.createElement("span",{style:b,className:F(`${t}-item-content`,h==null?void 0:h.content)},d)))};function ec(e,{colon:t,prefixCls:n,bordered:r},{component:o,type:i,showLabel:l,showContent:s,labelStyle:c,contentStyle:u,styles:d}){return e.map(({label:f,children:m,prefixCls:v=n,className:p,style:h,labelStyle:g,contentStyle:b,span:y=1,key:C,styles:S},x)=>typeof o=="string"?a.createElement(Js,{key:`${i}-${C||x}`,className:p,style:h,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),g),S==null?void 0:S.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),b),S==null?void 0:S.content)},span:y,colon:t,component:o,itemPrefixCls:v,bordered:r,label:l?f:null,content:s?m:null,type:i}):[a.createElement(Js,{key:`label-${C||x}`,className:p,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),h),g),S==null?void 0:S.label),span:1,colon:t,component:o[0],itemPrefixCls:v,bordered:r,label:f,type:"label"}),a.createElement(Js,{key:`content-${C||x}`,className:p,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),h),b),S==null?void 0:S.content),span:y*2-1,component:o[1],itemPrefixCls:v,bordered:r,content:m,type:"content"})])}const J6=e=>{const t=a.useContext(Gd),{prefixCls:n,vertical:r,row:o,index:i,bordered:l}=e;return r?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${i}`,className:`${n}-row`},ec(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),a.createElement("tr",{key:`content-${i}`,className:`${n}-row`},ec(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):a.createElement("tr",{key:i,className:`${n}-row`},ec(o,e,Object.assign({component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},eT=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${L(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${L(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${L(e.padding)} ${L(e.paddingLG)}`,borderInlineEnd:`${L(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${L(e.paddingSM)} ${L(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${L(e.paddingXS)} ${L(e.padding)}`}}}}}},tT=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:l,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Nt(e)),eT(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},Sr),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${L(l)} ${L(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},nT=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),rT=Et("Descriptions",e=>{const t=Ct(e,{});return tT(t)},nT);var oT=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 aT=e=>{const{prefixCls:t,title:n,extra:r,column:o,colon:i=!0,bordered:l,layout:s,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:v,contentStyle:p,styles:h,items:g,classNames:b}=e,y=oT(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:C,direction:S,className:x,style:E,classNames:w,styles:O}=on("descriptions"),$=C("descriptions",t),I=Ql(),P=a.useMemo(()=>{var D;return typeof o=="number"?o:(D=tb(I,Object.assign(Object.assign({},K6),o)))!==null&&D!==void 0?D:3},[I,o]),N=U6(I,g,c),M=hn(m),R=Q6(P,N),[z,T,j]=rT($),_=a.useMemo(()=>({labelStyle:v,contentStyle:p,styles:{content:Object.assign(Object.assign({},O.content),h==null?void 0:h.content),label:Object.assign(Object.assign({},O.label),h==null?void 0:h.label)},classNames:{label:F(w.label,b==null?void 0:b.label),content:F(w.content,b==null?void 0:b.content)}}),[v,p,h,b,w,O]);return z(a.createElement(Gd.Provider,{value:_},a.createElement("div",Object.assign({className:F($,x,w.root,b==null?void 0:b.root,{[`${$}-${M}`]:M&&M!=="default",[`${$}-bordered`]:!!l,[`${$}-rtl`]:S==="rtl"},u,d,T,j),style:Object.assign(Object.assign(Object.assign(Object.assign({},E),O.root),h==null?void 0:h.root),f)},y),(n||r)&&a.createElement("div",{className:F(`${$}-header`,w.header,b==null?void 0:b.header),style:Object.assign(Object.assign({},O.header),h==null?void 0:h.header)},n&&a.createElement("div",{className:F(`${$}-title`,w.title,b==null?void 0:b.title),style:Object.assign(Object.assign({},O.title),h==null?void 0:h.title)},n),r&&a.createElement("div",{className:F(`${$}-extra`,w.extra,b==null?void 0:b.extra),style:Object.assign(Object.assign({},O.extra),h==null?void 0:h.extra)},r)),a.createElement("div",{className:`${$}-view`},a.createElement("table",null,a.createElement("tbody",null,R.map((D,k)=>a.createElement(J6,{key:k,index:k,colon:i,prefixCls:$,vertical:s==="vertical",bordered:l,row:D}))))))))};aT.Item=Z6;function sg(e){return["small","middle","large"].includes(e)}function cg(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const iT=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:l,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:l,borderRadius:c},"&-small":{paddingInline:i,borderRadius:u,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},ri(e,{focus:!1})]}},lT=Et(["Space","Addon"],e=>[iT(e)]);var sT=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 cT=U.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:i}=e,l=sT(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:c}=U.useContext(tt),u=s("space-addon",i),[d,f,m]=lT(u),{compactItemClassnames:v,compactSize:p}=Yr(u,c),h=F(u,f,v,m,{[`${u}-${p}`]:p},n);return d(U.createElement("div",Object.assign({ref:t,className:h,style:o},l),r))}),Sy=U.createContext({latestIndex:0}),uT=Sy.Provider,dT=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:i}=a.useContext(Sy);return n==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:e,style:o},n),t<i&&r&&a.createElement("span",{className:`${e}-split`},r))},fT=e=>{const{componentCls:t,antCls:n}=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"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},mT=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}}}},vT=Et("Space",e=>{const t=Ct(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[fT(t),mT(t)]},()=>({}),{resetStyle:!1});var gT=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 pT=a.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:l,style:s,classNames:c,styles:u}=on("space"),{size:d=i??"small",align:f,className:m,rootClassName:v,children:p,direction:h="horizontal",prefixCls:g,split:b,style:y,wrap:C=!1,classNames:S,styles:x}=e,E=gT(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,O]=Array.isArray(d)?d:[d,d],$=sg(O),I=sg(w),P=cg(O),N=cg(w),M=cn(p,{keepEmpty:!0}),R=f===void 0&&h==="horizontal"?"center":f,z=r("space",g),[T,j,_]=vT(z),D=F(z,l,j,`${z}-${h}`,{[`${z}-rtl`]:o==="rtl",[`${z}-align-${R}`]:R,[`${z}-gap-row-${O}`]:$,[`${z}-gap-col-${w}`]:I},m,v,_),k=F(`${z}-item`,(n=S==null?void 0:S.item)!==null&&n!==void 0?n:c.item),V=Object.assign(Object.assign({},u.item),x==null?void 0:x.item),K=M.map((G,Y)=>{const ne=(G==null?void 0:G.key)||`${k}-${Y}`;return a.createElement(dT,{className:k,key:ne,index:Y,split:b,style:V},G)}),A=a.useMemo(()=>({latestIndex:M.reduce((Y,ne,Q)=>ne!=null?Q:Y,0)}),[M]);if(M.length===0)return null;const W={};return C&&(W.flexWrap="wrap"),!I&&N&&(W.columnGap=w),!$&&P&&(W.rowGap=O),T(a.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},W),s),y)},E),a.createElement(uT,{value:A},K)))}),qd=pT;qd.Compact=ww;qd.Addon=cT;var hT=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 xy=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=a.useContext(tt),{prefixCls:o,type:i="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:v,arrow:p,autoFocus:h,overlay:g,trigger:b,align:y,open:C,onOpenChange:S,placement:x,getPopupContainer:E,href:w,icon:O=a.createElement(Dd,null),title:$,buttonsRender:I=re=>re,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:M,overlayStyle:R,destroyOnHidden:z,destroyPopupOnHide:T,dropdownRender:j,popupRender:_}=e,D=hT(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","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),k=n("dropdown",o),V=`${k}-button`,A={menu:v,arrow:p,autoFocus:h,align:y,disabled:s,trigger:s?[]:b,onOpenChange:S,getPopupContainer:E||t,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:M,overlayStyle:R,destroyOnHidden:z,popupRender:_||j},{compactSize:W,compactItemClassnames:G}=Yr(k,r),Y=F(V,G,m);"destroyPopupOnHide"in e&&(A.destroyPopupOnHide=T),"overlay"in e&&(A.overlay=g),"open"in e&&(A.open=C),"placement"in e?A.placement=x:A.placement=r==="rtl"?"bottomLeft":"bottomRight";const ne=a.createElement(dr,{type:i,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:w,title:$},f),Q=a.createElement(dr,{type:i,danger:l,icon:O}),[J,ie]=I([ne,Q]);return a.createElement(qd.Compact,Object.assign({className:Y,size:W,block:!0},D),J,a.createElement(rs,Object.assign({},A),ie))};xy.__ANT_BUTTON=!0;const Ud=rs;Ud.Button=xy;function bT(e){return e==null?null:typeof e=="object"&&!a.isValidElement(e)?e:{title:e}}function Cl(e){const[t,n]=a.useState(e);return a.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const yT=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
284
+ opacity ${e.motionDurationFast} ${e.motionEaseInOut},
285
+ transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},CT=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${L(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ug=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},ST=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Nt(e)),CT(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},ug(e,e.controlHeightSM)),"&-large":Object.assign({},ug(e,e.controlHeightLG))})}},xT=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Nt(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
286
+ &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:fd,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ro=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),$T=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
287
+ ${t}-col-xl-24${n}-label`]:ro(e)}}},wT=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
288
+ > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ET=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ro(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},OT=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
289
+ ${r}-col-24${n}-label,
290
+ ${r}-col-xl-24${n}-label`]:ro(e)},[`@media (max-width: ${L(e.screenXSMax)})`]:[ET(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ro(e)}}}],[`@media (max-width: ${L(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ro(e)}}},[`@media (max-width: ${L(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ro(e)}}},[`@media (max-width: ${L(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ro(e)}}}}},IT=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),$y=(e,t)=>Ct(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Xd=Et("Form",(e,{rootPrefixCls:t})=>{const n=$y(e,t);return[ST(n),xT(n),yT(n),$T(n),wT(n),OT(n),Dl(n),fd]},IT,{order:-1e3}),dg=[];function tc(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const wy=({help:e,helpStatus:t,errors:n=dg,warnings:r=dg,className:o,fieldId:i,onVisibleChanged:l})=>{const{prefixCls:s}=a.useContext(yd),c=`${s}-item-explain`,u=fn(s),[d,f,m]=Xd(s,u),v=a.useMemo(()=>Fa(s),[s]),p=Cl(n),h=Cl(r),g=a.useMemo(()=>e!=null?[tc(e,"help",t)]:[].concat(pe(p.map((C,S)=>tc(C,"error","error",S))),pe(h.map((C,S)=>tc(C,"warning","warning",S)))),[e,t,p,h]),b=a.useMemo(()=>{const C={};return g.forEach(({key:S})=>{C[S]=(C[S]||0)+1}),g.map((S,x)=>Object.assign(Object.assign({},S),{key:C[S.key]>1?`${S.key}-fallback-${x}`:S.key}))},[g]),y={};return i&&(y.id=`${i}_help`),d(a.createElement(Hn,{motionDeadline:v.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:l},C=>{const{className:S,style:x}=C;return a.createElement("div",Object.assign({},y,{className:F(c,S,m,u,o,f),style:x}),a.createElement(vh,Object.assign({keys:b},Fa(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:w,error:O,errorStatus:$,className:I,style:P}=E;return a.createElement("div",{key:w,className:F(I,{[`${c}-${$}`]:$}),style:P},O)}))}))};var RT=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 PT=(e,t)=>{const n=a.useContext(kn),{getPrefixCls:r,direction:o,requiredMark:i,colon:l,scrollToFirstError:s,className:c,style:u}=on("form"),{prefixCls:d,className:f,rootClassName:m,size:v,disabled:p=n,form:h,colon:g,labelAlign:b,labelWrap:y,labelCol:C,wrapperCol:S,hideRequiredMark:x,layout:E="horizontal",scrollToFirstError:w,requiredMark:O,onFinishFailed:$,name:I,style:P,feedbackIcons:N,variant:M}=e,R=RT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),z=hn(v),T=a.useContext(Vp),j=a.useMemo(()=>O!==void 0?O:x?!1:i!==void 0?i:!0,[x,O,i]),_=g??l,D=r("form",d),k=fn(D),[V,K,A]=Xd(D,k),W=F(D,`${D}-${E}`,{[`${D}-hide-required-mark`]:j===!1,[`${D}-rtl`]:o==="rtl",[`${D}-${z}`]:z},A,k,K,c,f,m),[G]=Hb(h),{__INTERNAL__:Y}=G;Y.name=I;const ne=a.useMemo(()=>({name:I,labelAlign:b,labelCol:C,labelWrap:y,wrapperCol:S,layout:E,colon:_,requiredMark:j,itemRef:Y.itemRef,form:G,feedbackIcons:N}),[I,b,C,S,E,_,j,G,N]),Q=a.useRef(null);a.useImperativeHandle(t,()=>{var re;return Object.assign(Object.assign({},G),{nativeElement:(re=Q.current)===null||re===void 0?void 0:re.nativeElement})});const J=(re,X)=>{if(re){let oe={block:"nearest"};typeof re=="object"&&(oe=Object.assign(Object.assign({},oe),re)),G.scrollToField(X,oe)}},ie=re=>{if($==null||$(re),re.errorFields.length){const X=re.errorFields[0].name;if(w!==void 0){J(w,X);return}s!==void 0&&J(s,X)}};return V(a.createElement(c0.Provider,{value:M},a.createElement(Qu,{disabled:p},a.createElement(vo.Provider,{value:z},a.createElement(l0,{validateMessages:T},a.createElement(Nr.Provider,{value:ne},a.createElement(s0,{status:!0},a.createElement(la,Object.assign({id:I},R,{name:I,onFinishFailed:ie,form:G,ref:Q,style:Object.assign(Object.assign({},u),P),className:W})))))))))},NT=a.forwardRef(PT);function MT(e){if(typeof e=="function")return e;const t=cn(e);return t.length<=1?t[0]:t}const Ey=()=>{const{status:e,errors:t=[],warnings:n=[]}=a.useContext(Rn);return{status:e,errors:t,warnings:n}};Ey.Context=Rn;function TT(e){const[t,n]=a.useState(e),r=a.useRef(null),o=a.useRef([]),i=a.useRef(!1);a.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ot.cancel(r.current),r.current=null}),[]);function l(s){i.current||(r.current===null&&(o.current=[],r.current=Ot(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,l]}function jT(){const{itemRef:e}=a.useContext(Nr),t=a.useRef({});function n(r,o){const i=o&&typeof o=="object"&&Ur(o),l=r.join("_");return(t.current.name!==l||t.current.originRef!==i)&&(t.current.name=l,t.current.originRef=i,t.current.ref=dn(e(r),i)),t.current.ref}return n}const zT=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},_T=oa(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=$y(e,t);return zT(n)});var BT=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 DT=24,LT=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:l,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:v,label:p}=e,h=`${t}-item`,g=a.useContext(Nr),b=a.useMemo(()=>{let R=Object.assign({},o||g.wrapperCol||{});return p===null&&!r&&!o&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(T=>{const j=T?[T]:[],_=Ln(g.labelCol,j),D=typeof _=="object"?_:{},k=Ln(R,j),V=typeof k=="object"?k:{};"span"in D&&!("offset"in V)&&D.span<DT&&(R=tr(R,[].concat(j,["offset"]),D.span))}),R},[o,g.wrapperCol,g.labelCol,p,r]),y=F(`${h}-control`,b.className),C=a.useMemo(()=>{const{labelCol:R,wrapperCol:z}=g;return BT(g,["labelCol","wrapperCol"])},[g]),S=a.useRef(null),[x,E]=a.useState(0);wt(()=>{u&&S.current?E(S.current.clientHeight):E(0)},[u]);const w=a.createElement("div",{className:`${h}-control-input`},a.createElement("div",{className:`${h}-control-input-content`},i)),O=a.useMemo(()=>({prefixCls:t,status:n}),[t,n]),$=m!==null||l.length||s.length?a.createElement(yd.Provider,{value:O},a.createElement(wy,{fieldId:f,errors:l,warnings:s,help:d,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:v})):null,I={};f&&(I.id=`${f}_extra`);const P=u?a.createElement("div",Object.assign({},I,{className:`${h}-extra`,ref:S}),u):null,N=$||P?a.createElement("div",{className:`${h}-additional`,style:m?{minHeight:m+x}:{}},$,P):null,M=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:w,errorList:$,extra:P}):a.createElement(a.Fragment,null,w,N);return a.createElement(Nr.Provider,{value:C},a.createElement(gy,Object.assign({},b,{className:y}),M),a.createElement(_T,{prefixCls:t}))};var AT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},HT=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:AT}))},FT=a.forwardRef(HT),kT=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 VT=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:i,required:l,requiredMark:s,tooltip:c,vertical:u})=>{var d;const[f]=vr("Form"),{labelAlign:m,labelCol:v,labelWrap:p,colon:h}=a.useContext(Nr);if(!t)return null;const g=r||v||{},b=o||m,y=`${e}-item-label`,C=F(y,b==="left"&&`${y}-left`,g.className,{[`${y}-wrap`]:!!p});let S=t;const x=i===!0||h!==!1&&i!==!1;x&&!u&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const w=bT(c);if(w){const{icon:M=a.createElement(FT,null)}=w,R=kT(w,["icon"]),z=a.createElement(Mr,Object.assign({},R),a.cloneElement(M,{className:`${e}-item-tooltip`,title:"",onClick:T=>{T.preventDefault()},tabIndex:null}));S=a.createElement(a.Fragment,null,S,z)}const O=s==="optional",$=typeof s=="function",I=s===!1;$?S=s(S,{required:!!l}):O&&!l&&(S=a.createElement(a.Fragment,null,S,a.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=cr.Form)===null||d===void 0?void 0:d.optional))));let P;I?P="hidden":(O||$)&&(P="optional");const N=F({[`${e}-item-required`]:l,[`${e}-item-required-mark-${P}`]:P,[`${e}-item-no-colon`]:!x});return a.createElement(gy,Object.assign({},g,{className:C}),a.createElement("label",{htmlFor:n,className:N,title:typeof t=="string"?t:""},S))},WT={success:Za,warning:So,error:Co,validating:xo};function Oy({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:i,meta:l,noStyle:s,name:c}){const u=`${i}-item`,{feedbackIcons:d}=a.useContext(Nr),f=Ab(t,n,l,null,!!r,o),{isFormItemInput:m,status:v,hasFeedback:p,feedbackIcon:h,name:g}=a.useContext(Rn),b=a.useMemo(()=>{var y;let C;if(r){const x=r!==!0&&r.icons||d,E=f&&((y=x==null?void 0:x({status:f,errors:t,warnings:n}))===null||y===void 0?void 0:y[f]),w=f?WT[f]:null;C=E!==!1&&w?a.createElement("span",{className:F(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},E||a.createElement(w,null)):null}const S={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:C,isFormItemInput:!0,name:c};return s&&(S.status=(f??v)||"",S.isFormItemInput=m,S.hasFeedback=!!(r??p),S.feedbackIcon=r!==void 0?S.feedbackIcon:h,S.name=c??g),S},[f,r,s,m,v]);return a.createElement(Rn.Provider,{value:b},e)}var KT=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 GT(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:l,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:v,required:p,isRequired:h,onSubItemMetaChange:g,layout:b,name:y}=e,C=KT(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),S=`${t}-item`,{requiredMark:x,layout:E}=a.useContext(Nr),w=b||E,O=w==="vertical",$=a.useRef(null),I=Cl(l),P=Cl(s),N=i!=null,M=!!(N||l.length||s.length),R=!!$.current&&ei($.current),[z,T]=a.useState(null);wt(()=>{if(M&&$.current){const V=getComputedStyle($.current);T(Number.parseInt(V.marginBottom,10))}},[M,R]);const j=V=>{V||T(null)},D=((V=!1)=>{const K=V?I:u.errors,A=V?P:u.warnings;return Ab(K,A,u,"",!!d,c)})(),k=F(S,n,r,{[`${S}-with-help`]:N||I.length||P.length,[`${S}-has-feedback`]:D&&d,[`${S}-has-success`]:D==="success",[`${S}-has-warning`]:D==="warning",[`${S}-has-error`]:D==="error",[`${S}-is-validating`]:D==="validating",[`${S}-hidden`]:f,[`${S}-${w}`]:w});return a.createElement("div",{className:k,style:o,ref:$},a.createElement(X3,Object.assign({className:`${S}-row`},Ht(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),a.createElement(VT,Object.assign({htmlFor:v},e,{requiredMark:x,required:p??h,prefixCls:t,vertical:O})),a.createElement(LT,Object.assign({},e,u,{errors:I,warnings:P,prefixCls:t,status:D,help:i,marginBottom:z,onErrorVisibleChanged:j}),a.createElement(i0.Provider,{value:g},a.createElement(Oy,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:D,name:y},m)))),!!z&&a.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-z}}))}const qT="__SPLIT__";function UT(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],l=t[o];return i===l||typeof i=="function"||typeof l=="function"})}const XT=a.memo(({children:e})=>e,(e,t)=>UT(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function fg(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function YT(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:l,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:v,hidden:p,help:h,layout:g}=e,{getPrefixCls:b}=a.useContext(tt),{name:y}=a.useContext(Nr),C=MT(c),S=typeof C=="function",x=a.useContext(i0),{validateTrigger:E}=a.useContext(po),w=v!==void 0?v:E,O=t!=null,$=b("form",i),I=fn($),[P,N,M]=Xd($,I);Er();const R=a.useContext(Va),z=a.useRef(null),[T,j]=TT({}),[_,D]=go(()=>fg()),k=ne=>{const Q=R==null?void 0:R.getKey(ne.name);if(D(ne.destroy?fg():ne,!0),n&&h!==!1&&x){let J=ne.name;if(ne.destroy)J=z.current||J;else if(Q!==void 0){const[ie,re]=Q;J=[ie].concat(pe(re)),z.current=J}x(ne,J)}},V=(ne,Q)=>{j(J=>{const ie=Object.assign({},J),X=[].concat(pe(ne.name.slice(0,-1)),pe(Q)).join(qT);return ne.destroy?delete ie[X]:ie[X]=ne,ie})},[K,A]=a.useMemo(()=>{const ne=pe(_.errors),Q=pe(_.warnings);return Object.values(T).forEach(J=>{ne.push.apply(ne,pe(J.errors||[])),Q.push.apply(Q,pe(J.warnings||[]))}),[ne,Q]},[T,_.errors,_.warnings]),W=jT();function G(ne,Q,J){return n&&!p?a.createElement(Oy,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:_,errors:K,warnings:A,noStyle:!0,name:t},ne):a.createElement(GT,Object.assign({key:"row"},e,{className:F(r,M,I,N),prefixCls:$,fieldId:Q,isRequired:J,errors:K,warnings:A,meta:_,onSubItemMetaChange:V,layout:g,name:t}),ne)}if(!O&&!S&&!o)return P(G(C));let Y={};return typeof d=="string"?Y.label=d:t&&(Y.label=String(t)),f&&(Y=Object.assign(Object.assign({},Y),f)),P(a.createElement(hd,Object.assign({},e,{messageVariables:Y,trigger:m,validateTrigger:w,onMetaChange:k}),(ne,Q,J)=>{const ie=Na(t).length&&Q?Q.name:[],re=Lb(ie,y),X=u!==void 0?u:!!(s!=null&&s.some(q=>{if(q&&typeof q=="object"&&q.required&&!q.warningOnly)return!0;if(typeof q=="function"){const Z=q(J);return(Z==null?void 0:Z.required)&&!(Z!=null&&Z.warningOnly)}return!1})),oe=Object.assign({},ne);let ee=null;if(Array.isArray(C)&&O)ee=C;else if(!(S&&(!(l||o)||O))){if(!(o&&!S&&!O))if(a.isValidElement(C)){const q=Object.assign(Object.assign({},C.props),oe);if(q.id||(q.id=re),h||K.length>0||A.length>0||e.extra){const se=[];(h||K.length>0)&&se.push(`${re}_help`),e.extra&&se.push(`${re}_extra`),q["aria-describedby"]=se.join(" ")}K.length>0&&(q["aria-invalid"]="true"),X&&(q["aria-required"]="true"),sr(C)&&(q.ref=W(ie,C)),new Set([].concat(pe(Na(m)),pe(Na(w)))).forEach(se=>{q[se]=(...ve)=>{var ge,ae,fe,ue,de;(fe=oe[se])===null||fe===void 0||(ge=fe).call.apply(ge,[oe].concat(ve)),(de=(ue=C.props)[se])===null||de===void 0||(ae=de).call.apply(ae,[ue].concat(ve))}});const le=[q["aria-required"],q["aria-invalid"],q["aria-describedby"]];ee=a.createElement(XT,{control:oe,update:C,childProps:le},un(C,q))}else S&&(l||o)&&!O?ee=C(J):ee=C}return G(ee,re,X)}))}const Iy=YT;Iy.useStatus=Ey;var QT=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 ZT=e=>{var{prefixCls:t,children:n}=e,r=QT(e,["prefixCls","children"]);const{getPrefixCls:o}=a.useContext(tt),i=o("form",t),l=a.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return a.createElement(n0,Object.assign({},r),(s,c,u)=>a.createElement(yd.Provider,{value:l},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function JT(){const{form:e}=a.useContext(Nr);return e}const Zr=NT;Zr.Item=Iy;Zr.List=ZT;Zr.ErrorList=wy;Zr.useForm=Hb;Zr.useFormInstance=JT;Zr.useWatch=a0;Zr.Provider=l0;Zr.create=()=>{};var e5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},t5=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:e5}))},n5=a.forwardRef(t5);function mg(e,t,n,r){var o=el.unstable_batchedUpdates?function(l){el.unstable_batchedUpdates(n,l)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var r5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},o5=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:r5}))},dL=a.forwardRef(o5);const a5=e=>{const{getPrefixCls:t,direction:n}=a.useContext(tt),{prefixCls:r,className:o}=e,i=t("input-group",r),l=t("input"),[s,c,u]=Jb(l),d=F(i,u,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},c,o),f=a.useContext(Rn),m=a.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(a.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},a.createElement(Rn.Provider,{value:m},e.children)))},i5=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},l5=Et(["Input","OTP"],e=>{const t=Ct(e,fa(e));return i5(t)},ma);var s5=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 c5=a.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:l,mask:s}=e,c=s5(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=a.useContext(tt),d=u("otp"),f=typeof s=="string"?s:r,m=a.useRef(null);a.useImperativeHandle(t,()=>m.current);const v=g=>{o(l,g.target.value)},p=()=>{Ot(()=>{var g;const b=(g=m.current)===null||g===void 0?void 0:g.input;document.activeElement===b&&b&&b.select()})},h=g=>{const{key:b,ctrlKey:y,metaKey:C}=g;b==="ArrowLeft"?i(l-1):b==="ArrowRight"?i(l+1):b==="z"&&(y||C)?g.preventDefault():b==="Backspace"&&!r&&i(l-1),p()};return a.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&a.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),a.createElement(gi,Object.assign({"aria-label":`OTP Input ${l+1}`,type:s===!0?"password":"text"},c,{ref:m,value:r,onInput:v,onFocus:p,onKeyDown:h,onMouseDown:p,onMouseUp:p,className:F(n,{[`${d}-mask-input`]:s})})))});var u5=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 zi(e){return(e||"").split("")}const d5=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?a.createElement("span",{className:`${n}-separator`},o):null},f5=a.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:l,onChange:s,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:v,mask:p,type:h,onInput:g,inputMode:b}=e,y=u5(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:S}=a.useContext(tt),x=C("otp",n),E=xn(y,{aria:!0,data:!0,attr:!0}),[w,O,$]=l5(x),I=hn(W=>o??W),P=a.useContext(Rn),N=ci(P.status,m),M=a.useMemo(()=>Object.assign(Object.assign({},P),{status:N,hasFeedback:!1,feedbackIcon:null}),[P,N]),R=a.useRef(null),z=a.useRef({});a.useImperativeHandle(t,()=>({focus:()=>{var W;(W=z.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let G=0;G<r;G+=1)(W=z.current[G])===null||W===void 0||W.blur()},nativeElement:R.current}));const T=W=>c?c(W):W,[j,_]=a.useState(()=>zi(T(i||"")));a.useEffect(()=>{l!==void 0&&_(zi(l))},[l]);const D=At(W=>{_(W),g&&g(W),s&&W.length===r&&W.every(G=>G)&&W.some((G,Y)=>j[Y]!==G)&&s(W.join(""))}),k=At((W,G)=>{let Y=pe(j);for(let Q=0;Q<W;Q+=1)Y[Q]||(Y[Q]="");G.length<=1?Y[W]=G:Y=Y.slice(0,W).concat(zi(G)),Y=Y.slice(0,r);for(let Q=Y.length-1;Q>=0&&!Y[Q];Q-=1)Y.pop();const ne=T(Y.map(Q=>Q||" ").join(""));return Y=zi(ne).map((Q,J)=>Q===" "&&!Y[J]?Y[J]:Q),Y}),V=(W,G)=>{var Y;const ne=k(W,G),Q=Math.min(W+G.length,r-1);Q!==W&&ne[W]!==void 0&&((Y=z.current[Q])===null||Y===void 0||Y.focus()),D(ne)},K=W=>{var G;(G=z.current[W])===null||G===void 0||G.focus()},A={variant:d,disabled:f,status:N,mask:p,type:h,inputMode:b};return w(a.createElement("div",Object.assign({},E,{ref:R,className:F(x,{[`${x}-sm`]:I==="small",[`${x}-lg`]:I==="large",[`${x}-rtl`]:S==="rtl"},$,O),role:"group"}),a.createElement(Rn.Provider,{value:M},Array.from({length:r}).map((W,G)=>{const Y=`otp-${G}`,ne=j[G]||"";return a.createElement(a.Fragment,{key:Y},a.createElement(c5,Object.assign({ref:Q=>{z.current[G]=Q},index:G,size:I,htmlSize:1,className:`${x}-input`,onChange:V,value:ne,onActiveChange:K,autoFocus:G===0&&v},A)),G<r-1&&a.createElement(d5,{separator:u,index:G,prefixCls:x}))}))))});var m5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},v5=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:m5}))},g5=a.forwardRef(v5),p5=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 h5=e=>e?a.createElement(n5,null):a.createElement(g5,null),b5={click:"onClick",hover:"onMouseOver"},y5=a.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=h5,suffix:l}=e,s=a.useContext(kn),c=n??s,u=typeof o=="object"&&o.visible!==void 0,[d,f]=a.useState(()=>u?o.visible:!1),m=a.useRef(null);a.useEffect(()=>{u&&f(o.visible)},[u,o]);const v=Cy(m),p=()=>{var P;if(c)return;d&&v();const N=!d;f(N),typeof o=="object"&&((P=o.onVisibleChange)===null||P===void 0||P.call(o,N))},h=P=>{const N=b5[r]||"",M=i(d),R={[N]:p,className:`${P}-icon`,key:"passwordIcon",onMouseDown:z=>{z.preventDefault()},onMouseUp:z=>{z.preventDefault()}};return a.cloneElement(a.isValidElement(M)?M:a.createElement("span",null,M),R)},{className:g,prefixCls:b,inputPrefixCls:y,size:C}=e,S=p5(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=a.useContext(tt),E=x("input",y),w=x("input-password",b),O=o&&h(w),$=F(w,g,{[`${w}-${C}`]:!!C}),I=Object.assign(Object.assign({},Ht(S,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:$,prefixCls:E,suffix:a.createElement(a.Fragment,null,O,l)});return C&&(I.size=C),a.createElement(gi,Object.assign({ref:dn(t,m)},I))});var C5=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 S5=a.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:p,variant:h,onPressEnter:g}=e,b=C5(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:C}=a.useContext(tt),S=a.useRef(!1),x=y("input-search",n),E=y("input",r),{compactSize:w}=Yr(x,C),O=hn(A=>{var W;return(W=i??w)!==null&&W!==void 0?W:A}),$=a.useRef(null),I=A=>{A!=null&&A.target&&A.type==="click"&&f&&f(A.target.value,A,{source:"clear"}),m==null||m(A)},P=A=>{var W;document.activeElement===((W=$.current)===null||W===void 0?void 0:W.input)&&A.preventDefault()},N=A=>{var W,G;f&&f((G=(W=$.current)===null||W===void 0?void 0:W.input)===null||G===void 0?void 0:G.value,A,{source:"input"})},M=A=>{S.current||u||(g==null||g(A),N(A))},R=typeof s=="boolean"?a.createElement(Od,null):null,z=`${x}-button`;let T;const j=s||{},_=j.type&&j.type.__ANT_BUTTON===!0;_||j.type==="button"?T=un(j,Object.assign({onMouseDown:P,onClick:A=>{var W,G;(G=(W=j==null?void 0:j.props)===null||W===void 0?void 0:W.onClick)===null||G===void 0||G.call(W,A),N(A)},key:"enterButton"},_?{className:z,size:O}:{})):T=a.createElement(dr,{className:z,color:s?"primary":"default",size:O,disabled:d,key:"enterButton",onMouseDown:P,onClick:N,loading:u,icon:R,variant:h==="borderless"||h==="filled"||h==="underlined"?"text":s?"solid":void 0},s),c&&(T=[T,un(c,{key:"addonAfter"})]);const D=F(x,{[`${x}-rtl`]:C==="rtl",[`${x}-${O}`]:!!O,[`${x}-with-button`]:!!s},o),k=A=>{S.current=!0,v==null||v(A)},V=A=>{S.current=!1,p==null||p(A)},K=Object.assign(Object.assign({},b),{className:D,prefixCls:E,type:"search",size:O,variant:h,onPressEnter:M,onCompositionStart:k,onCompositionEnd:V,addonAfter:T,suffix:l,onChange:I,disabled:d,_skipAddonWarning:!0});return a.createElement(gi,Object.assign({ref:dn($,t)},K))});var x5=`
291
+ min-height:0 !important;
292
+ max-height:none !important;
293
+ height:0 !important;
294
+ visibility:hidden !important;
295
+ overflow:hidden !important;
296
+ position:absolute !important;
297
+ z-index:-1000 !important;
298
+ top:0 !important;
299
+ right:0 !important;
300
+ pointer-events: none !important;
301
+ `,$5=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],nc={},Kn;function w5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&nc[n])return nc[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=$5.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:i,borderSize:l,boxSizing:o};return t&&n&&(nc[n]=c),c}function E5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Kn||(Kn=document.createElement("textarea"),Kn.setAttribute("tab-index","-1"),Kn.setAttribute("aria-hidden","true"),Kn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Kn)),e.getAttribute("wrap")?Kn.setAttribute("wrap",e.getAttribute("wrap")):Kn.removeAttribute("wrap");var o=w5(e,t),i=o.paddingSize,l=o.borderSize,s=o.boxSizing,c=o.sizingStyle;Kn.setAttribute("style","".concat(c,";").concat(x5)),Kn.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Kn.scrollHeight;if(s==="border-box"?m+=l:s==="content-box"&&(m-=i),n!==null||r!==null){Kn.value=" ";var v=Kn.scrollHeight-i;n!==null&&(u=v*n,s==="border-box"&&(u=u+i+l),m=Math.max(u,m)),r!==null&&(d=v*r,s==="border-box"&&(d=d+i+l),f=m>d?"":"hidden",m=Math.min(d,m))}var p={height:m,overflowY:f,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var O5=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],rc=0,oc=1,ac=2,I5=a.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,l=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=it(n,O5),v=Wt(o,{value:i,postState:function(A){return A??""}}),p=te(v,2),h=p[0],g=p[1],b=function(A){g(A.target.value),f==null||f(A)},y=a.useRef();a.useImperativeHandle(t,function(){return{textArea:y.current}});var C=a.useMemo(function(){return l&&Ke(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),S=te(C,2),x=S[0],E=S[1],w=!!l,O=a.useState(ac),$=te(O,2),I=$[0],P=$[1],N=a.useState(),M=te(N,2),R=M[0],z=M[1],T=function(){P(rc)};wt(function(){w&&T()},[i,x,E,w]),wt(function(){if(I===rc)P(oc);else if(I===oc){var K=E5(y.current,!1,x,E);P(ac),z(K)}},[I]);var j=a.useRef(),_=function(){Ot.cancel(j.current)},D=function(A){I===ac&&(s==null||s(A),l&&(_(),j.current=Ot(function(){T()})))};a.useEffect(function(){return _},[]);var k=w?R:null,V=H(H({},u),k);return(I===rc||I===oc)&&(V.overflowY="hidden",V.overflowX="hidden"),a.createElement(An,{onResize:D,disabled:!(l||s)},a.createElement("textarea",ce({},m,{ref:y,style:V,className:F(r,c,B({},"".concat(r,"-disabled"),d)),disabled:d,value:h,onChange:b})))}),R5=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],P5=U.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,p=v===void 0?"rc-textarea":v,h=e.showCount,g=e.count,b=e.className,y=e.style,C=e.disabled,S=e.hidden,x=e.classNames,E=e.styles,w=e.onResize,O=e.onClear,$=e.onPressEnter,I=e.readOnly,P=e.autoSize,N=e.onKeyDown,M=it(e,R5),R=Wt(r,{value:o,defaultValue:r}),z=te(R,2),T=z[0],j=z[1],_=T==null?"":String(T),D=U.useState(!1),k=te(D,2),V=k[0],K=k[1],A=U.useRef(!1),W=U.useState(null),G=te(W,2),Y=G[0],ne=G[1],Q=a.useRef(null),J=a.useRef(null),ie=function(){var Se;return(Se=J.current)===null||Se===void 0?void 0:Se.textArea},re=function(){ie().focus()};a.useImperativeHandle(t,function(){var $e;return{resizableTextArea:J.current,focus:re,blur:function(){ie().blur()},nativeElement:(($e=Q.current)===null||$e===void 0?void 0:$e.nativeElement)||ie()}}),a.useEffect(function(){K(function($e){return!C&&$e})},[C]);var X=U.useState(null),oe=te(X,2),ee=oe[0],q=oe[1];U.useEffect(function(){if(ee){var $e;($e=ie()).setSelectionRange.apply($e,pe(ee))}},[ee]);var Z=hy(g,h),le=(n=Z.max)!==null&&n!==void 0?n:u,se=Number(le)>0,ve=Z.strategy(_),ge=!!le&&ve>le,ae=function(Se,Re){var be=Re;!A.current&&Z.exceedFormatter&&Z.max&&Z.strategy(Re)>Z.max&&(be=Z.exceedFormatter(Re,{max:Z.max}),Re!==be&&q([ie().selectionStart||0,ie().selectionEnd||0])),j(be),yl(Se.currentTarget,Se,s,be)},fe=function(Se){A.current=!0,d==null||d(Se)},ue=function(Se){A.current=!1,ae(Se,Se.currentTarget.value),f==null||f(Se)},de=function(Se){ae(Se,Se.target.value)},xe=function(Se){Se.key==="Enter"&&$&&$(Se),N==null||N(Se)},we=function(Se){K(!0),i==null||i(Se)},Le=function(Se){K(!1),l==null||l(Se)},je=function(Se){j(""),re(),yl(ie(),Se,s)},Oe=m,Te;Z.show&&(Z.showFormatter?Te=Z.showFormatter({value:_,count:ve,maxLength:le}):Te="".concat(ve).concat(se?" / ".concat(le):""),Oe=U.createElement(U.Fragment,null,Oe,U.createElement("span",{className:F("".concat(p,"-data-count"),x==null?void 0:x.count),style:E==null?void 0:E.count},Te)));var he=function(Se){var Re;w==null||w(Se),(Re=ie())!==null&&Re!==void 0&&Re.style.height&&ne(!0)},me=!P&&!h&&!c;return U.createElement(Kd,{ref:Q,value:_,allowClear:c,handleReset:je,suffix:Oe,prefixCls:p,classNames:H(H({},x),{},{affixWrapper:F(x==null?void 0:x.affixWrapper,B(B({},"".concat(p,"-show-count"),h),"".concat(p,"-textarea-allow-clear"),c))}),disabled:C,focused:V,className:F(b,ge&&"".concat(p,"-out-of-range")),style:H(H({},y),Y&&!me?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Te=="string"?Te:void 0}},hidden:S,readOnly:I,onClear:O},U.createElement(I5,ce({},M,{autoSize:P,maxLength:u,onKeyDown:xe,onChange:de,onFocus:we,onBlur:Le,onCompositionStart:fe,onCompositionEnd:ue,className:F(x==null?void 0:x.textarea),style:H(H({},E==null?void 0:E.textarea),{},{resize:y==null?void 0:y.resize}),disabled:C,prefixCls:p,onResize:he,ref:J,readOnly:I})))});const N5=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
302
+ &-allow-clear > ${t},
303
+ &-affix-wrapper${r}-has-feedback ${t}
304
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},M5=Et(["Input","TextArea"],e=>{const t=Ct(e,fa(e));return N5(t)},ma,{resetFont:!1});var T5=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 Ry=a.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:v,variant:p,showCount:h,onMouseDown:g,onResize:b}=e,y=T5(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:C,direction:S,allowClear:x,autoComplete:E,className:w,style:O,classNames:$,styles:I}=on("textArea"),P=a.useContext(kn),N=l??P,{status:M,hasFeedback:R,feedbackIcon:z}=a.useContext(Rn),T=ci(M,s),j=a.useRef(null);a.useImperativeHandle(t,()=>{var Z;return{resizableTextArea:(Z=j.current)===null||Z===void 0?void 0:Z.resizableTextArea,focus:le=>{var se,ve;Wd((ve=(se=j.current)===null||se===void 0?void 0:se.resizableTextArea)===null||ve===void 0?void 0:ve.textArea,le)},blur:()=>{var le;return(le=j.current)===null||le===void 0?void 0:le.blur()}}});const _=C("input",r),D=fn(_),[k,V,K]=Zb(_,d),[A]=M5(_,D),{compactSize:W,compactItemClassnames:G}=Yr(_,S),Y=hn(Z=>{var le;return(le=i??W)!==null&&le!==void 0?le:Z}),[ne,Q]=ui("textArea",p,o),J=yy(c??x),[ie,re]=a.useState(!1),[X,oe]=a.useState(!1),ee=Z=>{re(!0),g==null||g(Z);const le=()=>{re(!1),document.removeEventListener("mouseup",le)};document.addEventListener("mouseup",le)},q=Z=>{var le,se;if(b==null||b(Z),ie&&typeof getComputedStyle=="function"){const ve=(se=(le=j.current)===null||le===void 0?void 0:le.nativeElement)===null||se===void 0?void 0:se.querySelector("textarea");ve&&getComputedStyle(ve).resize==="both"&&oe(!0)}};return k(A(a.createElement(P5,Object.assign({autoComplete:E},y,{style:Object.assign(Object.assign({},O),m),styles:Object.assign(Object.assign({},I),v),disabled:N,allowClear:J,className:F(K,D,f,d,G,w,X&&`${_}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),$),{textarea:F({[`${_}-sm`]:Y==="small",[`${_}-lg`]:Y==="large"},V,u==null?void 0:u.textarea,$.textarea,ie&&`${_}-mouse-active`),variant:F({[`${_}-${ne}`]:Q},Zo(_,T)),affixWrapper:F(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:S==="rtl",[`${_}-affix-wrapper-sm`]:Y==="small",[`${_}-affix-wrapper-lg`]:Y==="large",[`${_}-textarea-show-count`]:h||((n=e.count)===null||n===void 0?void 0:n.show)},V)}),prefixCls:_,suffix:R&&a.createElement("span",{className:`${_}-textarea-suffix`},z),showCount:h,ref:j,onResize:q,onMouseDown:ee}))))}),pi=gi;pi.Group=a5;pi.Search=S5;pi.TextArea=Ry;pi.Password=y5;pi.OTP=f5;function j5(e,t,n){return typeof n=="boolean"?n:e.length?!0:cn(t).some(o=>o.type===Rb)}var Py=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 ls({suffixCls:e,tagName:t,displayName:n}){return r=>a.forwardRef((i,l)=>a.createElement(r,Object.assign({ref:l,suffixCls:e,tagName:t},i)))}const Yd=a.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,l=Py(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=a.useContext(tt),c=s("layout",n),[u,d,f]=Ib(c),m=r?`${c}-${r}`:c;return u(a.createElement(i,Object.assign({className:F(n||m,o,d,f),ref:t},l)))}),z5=a.forwardRef((e,t)=>{const{direction:n}=a.useContext(tt),[r,o]=a.useState([]),{prefixCls:i,className:l,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,m=Py(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),v=Ht(m,["suffixCls"]),{getPrefixCls:p,className:h,style:g}=on("layout"),b=p("layout",i),y=j5(r,c,u),[C,S,x]=Ib(b),E=F(b,{[`${b}-has-sider`]:y,[`${b}-rtl`]:n==="rtl"},h,l,s,S,x),w=a.useMemo(()=>({siderHook:{addSider:O=>{o($=>[].concat(pe($),[O]))},removeSider:O=>{o($=>$.filter(I=>I!==O))}}}),[]);return C(a.createElement(wb.Provider,{value:w},a.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g),f)},v),c)))}),_5=ls({tagName:"div",displayName:"Layout"})(z5),B5=ls({suffixCls:"header",tagName:"header",displayName:"Header"})(Yd),D5=ls({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Yd),L5=ls({suffixCls:"content",tagName:"main",displayName:"Content"})(Yd),hi=_5;hi.Header=B5;hi.Footer=D5;hi.Content=L5;hi.Sider=Rb;hi._InternalSiderContext=ns;var A5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},H5=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:A5}))},vg=a.forwardRef(H5),F5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},k5=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:F5}))},gg=a.forwardRef(k5),V5={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},W5=[10,20,50,100],K5=function(t){var n=t.pageSizeOptions,r=n===void 0?W5:n,o=t.locale,i=t.changeSize,l=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,v=t.sizeChangerRender,p=U.useState(""),h=te(p,2),g=h[0],b=h[1],y=function(){return!g||Number.isNaN(g)?void 0:Number(g)},C=typeof f=="function"?f:function(N){return"".concat(N," ").concat(o.items_per_page)},S=function(M){b(M.target.value)},x=function(M){s||g===""||(b(""),!(M.relatedTarget&&(M.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||M.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(y())))},E=function(M){g!==""&&(M.keyCode===Be.ENTER||M.type==="click")&&(b(""),c==null||c(y()))},w=function(){return r.some(function(M){return M.toString()===l.toString()})?r:r.concat([l]).sort(function(M,R){var z=Number.isNaN(Number(M))?0:Number(M),T=Number.isNaN(Number(R))?0:Number(R);return z-T})},O="".concat(u,"-options");if(!m&&!c)return null;var $=null,I=null,P=null;return m&&v&&($=v({disabled:d,size:l,onSizeChange:function(M){i==null||i(Number(M))},"aria-label":o.page_size,className:"".concat(O,"-size-changer"),options:w().map(function(N){return{label:C(N),value:N}})})),c&&(s&&(P=typeof s=="boolean"?U.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:d,className:"".concat(O,"-quick-jumper-button")},o.jump_to_confirm):U.createElement("span",{onClick:E,onKeyUp:E},s)),I=U.createElement("div",{className:"".concat(O,"-quick-jumper")},o.jump_to,U.createElement("input",{disabled:d,type:"text",value:g,onChange:S,onKeyUp:E,onBlur:x,"aria-label":o.page}),o.page,P)),U.createElement("li",{className:O},$,I)},$a=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,i=t.className,l=t.showTitle,s=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=F(d,"".concat(d,"-").concat(r),B(B({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),i),m=function(){s(r)},v=function(g){c(g,s,r)},p=u(r,"page",U.createElement("a",{rel:"nofollow"},r));return p?U.createElement("li",{title:l?String(r):null,className:f,onClick:m,onKeyDown:v,tabIndex:0},p):null},G5=function(t,n,r){return r};function pg(){}function hg(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function to(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var q5=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,i=o===void 0?"rc-select":o,l=t.className,s=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,v=t.defaultPageSize,p=v===void 0?10:v,h=t.onChange,g=h===void 0?pg:h,b=t.hideOnSinglePage,y=t.align,C=t.showPrevNextJumpers,S=C===void 0?!0:C,x=t.showQuickJumper,E=t.showLessItems,w=t.showTitle,O=w===void 0?!0:w,$=t.onShowSizeChange,I=$===void 0?pg:$,P=t.locale,N=P===void 0?V5:P,M=t.style,R=t.totalBoundaryShowSizeChanger,z=R===void 0?50:R,T=t.disabled,j=t.simple,_=t.showTotal,D=t.showSizeChanger,k=D===void 0?f>z:D,V=t.sizeChangerRender,K=t.pageSizeOptions,A=t.itemRender,W=A===void 0?G5:A,G=t.jumpPrevIcon,Y=t.jumpNextIcon,ne=t.prevIcon,Q=t.nextIcon,J=U.useRef(null),ie=Wt(10,{value:m,defaultValue:p}),re=te(ie,2),X=re[0],oe=re[1],ee=Wt(1,{value:s,defaultValue:u,postState:function(at){return Math.max(1,Math.min(at,to(void 0,X,f)))}}),q=te(ee,2),Z=q[0],le=q[1],se=U.useState(Z),ve=te(se,2),ge=ve[0],ae=ve[1];a.useEffect(function(){ae(Z)},[Z]);var fe=Math.max(1,Z-(E?3:5)),ue=Math.min(to(void 0,X,f),Z+(E?3:5));function de(He,at){var pt=He||U.createElement("button",{type:"button","aria-label":at,className:"".concat(r,"-item-link")});return typeof He=="function"&&(pt=U.createElement(He,H({},t))),pt}function xe(He){var at=He.target.value,pt=to(void 0,X,f),qt;return at===""?qt=at:Number.isNaN(Number(at))?qt=ge:at>=pt?qt=pt:qt=Number(at),qt}function we(He){return hg(He)&&He!==Z&&hg(f)&&f>0}var Le=f>X?x:!1;function je(He){(He.keyCode===Be.UP||He.keyCode===Be.DOWN)&&He.preventDefault()}function Oe(He){var at=xe(He);switch(at!==ge&&ae(at),He.keyCode){case Be.ENTER:me(at);break;case Be.UP:me(at-1);break;case Be.DOWN:me(at+1);break}}function Te(He){me(xe(He))}function he(He){var at=to(He,X,f),pt=Z>at&&at!==0?at:Z;oe(He),ae(pt),I==null||I(Z,He),le(pt),g==null||g(pt,He)}function me(He){if(we(He)&&!T){var at=to(void 0,X,f),pt=He;return He>at?pt=at:He<1&&(pt=1),pt!==ge&&ae(pt),le(pt),g==null||g(pt,X),pt}return Z}var $e=Z>1,Se=Z<to(void 0,X,f);function Re(){$e&&me(Z-1)}function be(){Se&&me(Z+1)}function Ie(){me(fe)}function De(){me(ue)}function ke(He,at){if(He.key==="Enter"||He.charCode===Be.ENTER||He.keyCode===Be.ENTER){for(var pt=arguments.length,qt=new Array(pt>2?pt-2:0),en=2;en<pt;en++)qt[en-2]=arguments[en];at.apply(void 0,qt)}}function gt(He){ke(He,Re)}function ht(He){ke(He,be)}function Pe(He){ke(He,Ie)}function We(He){ke(He,De)}function Ye(He){var at=W(He,"prev",de(ne,"prev page"));return U.isValidElement(at)?U.cloneElement(at,{disabled:!$e}):at}function _e(He){var at=W(He,"next",de(Q,"next page"));return U.isValidElement(at)?U.cloneElement(at,{disabled:!Se}):at}function Ge(He){(He.type==="click"||He.keyCode===Be.ENTER)&&me(ge)}var vt=null,dt=xn(t,{aria:!0,data:!0}),Ae=_&&U.createElement("li",{className:"".concat(r,"-total-text")},_(f,[f===0?0:(Z-1)*X+1,Z*X>f?f:Z*X])),Je=null,Ue=to(void 0,X,f);if(b&&f<=X)return null;var Ee=[],Ce={rootPrefixCls:r,onClick:me,onKeyPress:ke,showTitle:O,itemRender:W,page:-1},ye=Z-1>0?Z-1:0,Ne=Z+1<Ue?Z+1:Ue,Qe=x&&x.goButton,Ze=Ke(j)==="object"?j.readOnly:!j,bt=Qe,Fe=null;j&&(Qe&&(typeof Qe=="boolean"?bt=U.createElement("button",{type:"button",onClick:Ge,onKeyUp:Ge},N.jump_to_confirm):bt=U.createElement("span",{onClick:Ge,onKeyUp:Ge},Qe),bt=U.createElement("li",{title:O?"".concat(N.jump_to).concat(Z,"/").concat(Ue):null,className:"".concat(r,"-simple-pager")},bt)),Fe=U.createElement("li",{title:O?"".concat(Z,"/").concat(Ue):null,className:"".concat(r,"-simple-pager")},Ze?ge:U.createElement("input",{type:"text","aria-label":N.jump_to,value:ge,disabled:T,onKeyDown:je,onKeyUp:Oe,onChange:Oe,onBlur:Te,size:3}),U.createElement("span",{className:"".concat(r,"-slash")},"/"),Ue));var ze=E?1:2;if(Ue<=3+ze*2){Ue||Ee.push(U.createElement($a,ce({},Ce,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ot=1;ot<=Ue;ot+=1)Ee.push(U.createElement($a,ce({},Ce,{key:ot,page:ot,active:Z===ot})))}else{var $t=E?N.prev_3:N.prev_5,Rt=E?N.next_3:N.next_5,Mt=W(fe,"jump-prev",de(G,"prev page")),Dt=W(ue,"jump-next",de(Y,"next page"));S&&(vt=Mt?U.createElement("li",{title:O?$t:null,key:"prev",onClick:Ie,tabIndex:0,onKeyDown:Pe,className:F("".concat(r,"-jump-prev"),B({},"".concat(r,"-jump-prev-custom-icon"),!!G))},Mt):null,Je=Dt?U.createElement("li",{title:O?Rt:null,key:"next",onClick:De,tabIndex:0,onKeyDown:We,className:F("".concat(r,"-jump-next"),B({},"".concat(r,"-jump-next-custom-icon"),!!Y))},Dt):null);var St=Math.max(1,Z-ze),jt=Math.min(Z+ze,Ue);Z-1<=ze&&(jt=1+ze*2),Ue-Z<=ze&&(St=Ue-ze*2);for(var Me=St;Me<=jt;Me+=1)Ee.push(U.createElement($a,ce({},Ce,{key:Me,page:Me,active:Z===Me})));if(Z-1>=ze*2&&Z!==3&&(Ee[0]=U.cloneElement(Ee[0],{className:F("".concat(r,"-item-after-jump-prev"),Ee[0].props.className)}),Ee.unshift(vt)),Ue-Z>=ze*2&&Z!==Ue-2){var Ve=Ee[Ee.length-1];Ee[Ee.length-1]=U.cloneElement(Ve,{className:F("".concat(r,"-item-before-jump-next"),Ve.props.className)}),Ee.push(Je)}St!==1&&Ee.unshift(U.createElement($a,ce({},Ce,{key:1,page:1}))),jt!==Ue&&Ee.push(U.createElement($a,ce({},Ce,{key:Ue,page:Ue})))}var ct=Ye(ye);if(ct){var lt=!$e||!Ue;ct=U.createElement("li",{title:O?N.prev_page:null,onClick:Re,tabIndex:lt?null:0,onKeyDown:gt,className:F("".concat(r,"-prev"),B({},"".concat(r,"-disabled"),lt)),"aria-disabled":lt},ct)}var nt=_e(Ne);if(nt){var Xe,ft;j?(Xe=!Se,ft=$e?0:null):(Xe=!Se||!Ue,ft=Xe?null:0),nt=U.createElement("li",{title:O?N.next_page:null,onClick:be,tabIndex:ft,onKeyDown:ht,className:F("".concat(r,"-next"),B({},"".concat(r,"-disabled"),Xe)),"aria-disabled":Xe},nt)}var Pt=F(r,l,B(B(B(B(B({},"".concat(r,"-start"),y==="start"),"".concat(r,"-center"),y==="center"),"".concat(r,"-end"),y==="end"),"".concat(r,"-simple"),j),"".concat(r,"-disabled"),T));return U.createElement("ul",ce({className:Pt,style:M,ref:J},dt),Ae,ct,j?Fe:Ee,nt,U.createElement(K5,{locale:N,rootPrefixCls:r,disabled:T,selectPrefixCls:i,changeSize:he,pageSize:X,pageSizeOptions:K,quickGo:Le?me:null,goButton:bt,showSizeChanger:k,sizeChangerRender:V}))};const U5=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},X5=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:L(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:L(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:L(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
305
+ &${t}-mini ${t}-prev ${t}-item-link,
306
+ &${t}-mini ${t}-next ${t}-item-link
307
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:L(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:L(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:L(e.itemSizeSM),input:Object.assign(Object.assign({},Ad(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Y5=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:L(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:L(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${L(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${L(e.inputOutlineOffset)} 0 ${L(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:L(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:L(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Q5=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
308
+ ${t}-prev,
309
+ ${t}-jump-prev,
310
+ ${t}-jump-next
311
+ `]:{marginInlineEnd:e.marginXS},[`
312
+ ${t}-prev,
313
+ ${t}-next,
314
+ ${t}-jump-prev,
315
+ ${t}-jump-next
316
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:L(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${L(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:L(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},mi(e)),Ld(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},os(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Z5=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:L(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${L(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${L(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},J5=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:L(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Z5(e)),Q5(e)),Y5(e)),X5(e)),U5(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},e8=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},qn(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ur(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ur(e)}}}},Ny=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},ma(e)),My=e=>Ct(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},fa(e)),t8=Et("Pagination",e=>{const t=My(e);return[J5(t),e8(t)]},Ny),n8=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},r8=oa(["Pagination","bordered"],e=>{const t=My(e);return n8(t)},Ny);function bg(e){return a.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var o8=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 a8=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:l,size:s,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,v=o8(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:p}=Ql(u),[,h]=pn(),{getPrefixCls:g,direction:b,showSizeChanger:y,className:C,style:S}=on("pagination"),x=g("pagination",n),[E,w,O]=t8(x),$=hn(s),I=$==="small"||!!(p&&!$&&u),[P]=vr("Pagination",Wp),N=Object.assign(Object.assign({},P),c),[M,R]=bg(d),[z,T]=bg(y),j=M??z,_=R??T,D=f||$r,k=a.useMemo(()=>m?m.map(Y=>Number(Y)):void 0,[m]),V=Y=>{var ne;const{disabled:Q,size:J,onSizeChange:ie,"aria-label":re,className:X,options:oe}=Y,{className:ee,onChange:q}=_||{},Z=(ne=oe.find(le=>String(le.value)===String(J)))===null||ne===void 0?void 0:ne.value;return a.createElement(D,Object.assign({disabled:Q,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:le=>le.parentNode,"aria-label":re,options:oe},_,{value:Z,onChange:(le,se)=>{ie==null||ie(le),q==null||q(le,se)},size:I?"small":"middle",className:F(X,ee)}))},K=a.useMemo(()=>{const Y=a.createElement("span",{className:`${x}-item-ellipsis`},"•••"),ne=a.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},b==="rtl"?a.createElement(Qo,null):a.createElement(Ka,null)),Q=a.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},b==="rtl"?a.createElement(Ka,null):a.createElement(Qo,null)),J=a.createElement("a",{className:`${x}-item-link`},a.createElement("div",{className:`${x}-item-container`},b==="rtl"?a.createElement(gg,{className:`${x}-item-link-icon`}):a.createElement(vg,{className:`${x}-item-link-icon`}),Y)),ie=a.createElement("a",{className:`${x}-item-link`},a.createElement("div",{className:`${x}-item-container`},b==="rtl"?a.createElement(vg,{className:`${x}-item-link-icon`}):a.createElement(gg,{className:`${x}-item-link-icon`}),Y));return{prevIcon:ne,nextIcon:Q,jumpPrevIcon:J,jumpNextIcon:ie}},[b,x]),A=g("select",r),W=F({[`${x}-${t}`]:!!t,[`${x}-mini`]:I,[`${x}-rtl`]:b==="rtl",[`${x}-bordered`]:h.wireframe},C,o,i,w,O),G=Object.assign(Object.assign({},S),l);return E(a.createElement(a.Fragment,null,h.wireframe&&a.createElement(r8,{prefixCls:x}),a.createElement(q5,Object.assign({},K,v,{style:G,prefixCls:x,selectPrefixCls:A,className:W,locale:N,pageSizeOptions:k,showSizeChanger:j,sizeChangerRender:V}))))},Sl=100,Ty=Sl/5,jy=Sl/2-Ty/2,ic=jy*2*Math.PI,yg=50,Cg=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return a.createElement("circle",{className:F(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:jy,cx:yg,cy:yg,strokeWidth:Ty,style:n})},i8=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[i,l]=a.useState(!1);wt(()=>{e!==0&&l(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!i)return null;const c={strokeDashoffset:`${ic/4}`,strokeDasharray:`${ic*s/100} ${ic*(100-s)/100}`};return a.createElement("span",{className:F(r,`${n}-progress`,s<=0&&o)},a.createElement("svg",{viewBox:`0 0 ${Sl} ${Sl}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},a.createElement(Cg,{dotClassName:n,hasCircleCls:!0}),a.createElement(Cg,{dotClassName:n,style:c})))};function l8(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return a.createElement(a.Fragment,null,a.createElement("span",{className:F(o,n>0&&i)},a.createElement("span",{className:F(r,`${t}-dot-spin`)},[1,2,3,4].map(l=>a.createElement("i",{className:`${t}-dot-item`,key:l})))),a.createElement(i8,{prefixCls:t,percent:n}))}function s8(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,i=`${n}-dot`;return r&&a.isValidElement(r)?un(r,{className:F((t=r.props)===null||t===void 0?void 0:t.className,i),percent:o}):a.createElement(l8,{prefixCls:n,percent:o})}const c8=new xt("antSpinMove",{to:{opacity:1}}),u8=new xt("antRotate",{to:{transform:"rotate(405deg)"}}),d8=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:c8,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:u8,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},f8=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},m8=Et("Spin",e=>{const t=Ct(e,{spinDotDefault:e.colorTextDescription});return d8(t)},f8),v8=200,Sg=[[30,.05],[70,.03],[96,.01]];function g8(e,t){const[n,r]=a.useState(0),o=a.useRef(null),i=t==="auto";return a.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(l=>{const s=100-l;for(let c=0;c<Sg.length;c+=1){const[u,d]=Sg[c];if(l<=u)return l+s*d}return l})},v8)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[i,e]),i?n:t}var p8=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 zy;function h8(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const _y=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:l,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:v,percent:p}=e,h=p8(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:b,className:y,style:C,indicator:S}=on("spin"),x=g("spin",n),[E,w,O]=m8(x),[$,I]=a.useState(()=>r&&!h8(r,o)),P=g8($,p);a.useEffect(()=>{if(r){const _=j3(o,()=>{I(!0)});return _(),()=>{var D;(D=_==null?void 0:_.cancel)===null||D===void 0||D.call(_)}}I(!1)},[o,r]);const N=a.useMemo(()=>typeof f<"u"&&!m,[f,m]),M=F(x,y,{[`${x}-sm`]:s==="small",[`${x}-lg`]:s==="large",[`${x}-spinning`]:$,[`${x}-show-text`]:!!c,[`${x}-rtl`]:b==="rtl"},i,!m&&l,w,O),R=F(`${x}-container`,{[`${x}-blur`]:$}),z=(t=v??S)!==null&&t!==void 0?t:zy,T=Object.assign(Object.assign({},C),d),j=a.createElement("div",Object.assign({},h,{style:T,className:M,"aria-live":"polite","aria-busy":$}),a.createElement(s8,{prefixCls:x,indicator:z,percent:P}),c&&(N||m)?a.createElement("div",{className:`${x}-text`},c):null);return E(N?a.createElement("div",Object.assign({},h,{className:F(`${x}-nested-loading`,u,w,O)}),$&&a.createElement("div",{key:"loading"},j),a.createElement("div",{className:R,key:"container"},f)):m?a.createElement("div",{className:F(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:$},l,w,O)},j):j)};_y.setDefaultIndicator=e=>{zy=e};const b8=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let er=null,lo=e=>e(),qa=[],Ua={};function xg(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ua,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const y8=U.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=a.useContext(tt),i=Ua.prefixCls||o("message"),l=a.useContext(mu),[s,c]=zh(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),l.message));return U.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),s[d].apply(s,f))}),{instance:u,sync:r}}),c}),C8=U.forwardRef((e,t)=>{const[n,r]=U.useState(xg),o=()=>{r(xg)};U.useEffect(o,[]);const i=bh(),l=i.getRootPrefixCls(),s=i.getIconPrefixCls(),c=i.getTheme(),u=U.createElement(y8,{ref:t,sync:o,messageConfig:n});return U.createElement(gr,{prefixCls:l,iconPrefixCls:s,theme:c},i.holderRender?i.holderRender(u):u)}),ss=()=>{if(!er){const e=document.createDocumentFragment(),t={fragment:e};er=t,lo(()=>{ad()(U.createElement(C8,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,ss())})}}),e)});return}er.instance&&(qa.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{lo(()=>{const r=er.instance.open(Object.assign(Object.assign({},Ua),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":lo(()=>{er==null||er.instance.destroy(e.key)});break;default:lo(()=>{var r;const o=(r=er.instance)[t].apply(r,pe(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),qa=[])};function S8(e){Ua=Object.assign(Object.assign({},Ua),e),lo(()=>{var t;(t=er==null?void 0:er.sync)===null||t===void 0||t.call(er)})}function x8(e){const t=rd(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return qa.push(o),()=>{r?lo(()=>{r()}):o.skipped=!0}});return ss(),t}function $8(e,t){const n=rd(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:l=>{o=l}};return qa.push(i),()=>{o?lo(()=>{o()}):i.skipped=!0}});return ss(),n}const w8=e=>{qa.push({type:"destroy",key:e}),ss()},E8=["success","info","warning","error","loading"],O8={open:x8,destroy:w8,config:S8,useMessage:_h,_InternalPanelDoNotUseOrYouWillBeFired:G$},I8=O8;E8.forEach(e=>{I8[e]=(...t)=>$8(e,t)});var R8=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 P8=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:l,children:s,footer:c}=e,u=R8(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=a.useContext(tt),f=d(),m=t||d("modal"),v=fn(f),[p,h,g]=p0(m,v),b=`${m}-confirm`;let y={};return i?y={closable:o??!1,title:"",footer:"",children:a.createElement(b0,Object.assign({},e,{prefixCls:m,confirmPrefixCls:b,rootPrefixCls:f,content:s}))}:y={closable:o??!0,title:l,footer:c!==null&&a.createElement(f0,Object.assign({},e)),children:s},p(a.createElement(Yh,Object.assign({prefixCls:m,className:F(h,`${m}-pure-panel`,i&&b,i&&`${b}-${i}`,n,g,v)},u,{closeIcon:d0(m,r),closable:o},y)))},N8=N0(P8);function By(e){return li(x0(e))}const Or=h0;Or.useModal=I0;Or.info=function(t){return li($0(t))};Or.success=function(t){return li(w0(t))};Or.error=function(t){return li(E0(t))};Or.warning=By;Or.warn=By;Or.confirm=function(t){return li(O0(t))};Or.destroyAll=function(){for(;ao.length;){const t=ao.pop();t&&t()}};Or.config=ZO;Or._InternalPanelDoNotUseOrYouWillBeFired=N8;const M8=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:l,marginXXS:s,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:l,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},T8=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},Dy=Et("Popconfirm",e=>M8(e),T8,{resetStyle:!1});var j8=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 Ly=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:l,okText:s,okType:c="primary",icon:u=a.createElement(So,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:v,onPopupClick:p}=e,{getPrefixCls:h}=a.useContext(tt),[g]=vr("Popconfirm",cr.Popconfirm),b=ea(o),y=ea(i);return a.createElement("div",{className:`${t}-inner-content`,onClick:p},a.createElement("div",{className:`${t}-message`},u&&a.createElement("span",{className:`${t}-message-icon`},u),a.createElement("div",{className:`${t}-message-text`},b&&a.createElement("div",{className:`${t}-title`},b),y&&a.createElement("div",{className:`${t}-description`},y))),a.createElement("div",{className:`${t}-buttons`},d&&a.createElement(dr,Object.assign({onClick:v,size:"small"},r),l||(g==null?void 0:g.cancelText)),a.createElement(vd,{buttonProps:Object.assign(Object.assign({size:"small"},id(c)),n),actionFn:m,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(g==null?void 0:g.okText))))},z8=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=j8(e,["prefixCls","placement","className","style"]),{getPrefixCls:l}=a.useContext(tt),s=l("popconfirm",t),[c]=Dy(s);return c(a.createElement(sb,{placement:n,className:F(s,r),style:o,content:a.createElement(Ly,Object.assign({prefixCls:s},i))}))};var _8=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 B8=a.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:l="click",okType:s="primary",icon:c=a.createElement(So,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m,overlayStyle:v,styles:p,classNames:h}=e,g=_8(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:y,style:C,classNames:S,styles:x}=on("popconfirm"),[E,w]=Wt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(j,_)=>{w(j,!0),m==null||m(j),f==null||f(j,_)},$=j=>{O(!1,j)},I=j=>{var _;return(_=e.onConfirm)===null||_===void 0?void 0:_.call(void 0,j)},P=j=>{var _;O(!1,j),(_=e.onCancel)===null||_===void 0||_.call(void 0,j)},N=(j,_)=>{const{disabled:D=!1}=e;D||O(j,_)},M=b("popconfirm",o),R=F(M,y,d,S.root,h==null?void 0:h.root),z=F(S.body,h==null?void 0:h.body),[T]=Dy(M);return T(a.createElement(cb,Object.assign({},Ht(g,["title"]),{trigger:l,placement:i,onOpenChange:N,open:E,ref:t,classNames:{root:R,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),C),v),p==null?void 0:p.root),body:Object.assign(Object.assign({},x.body),p==null?void 0:p.body)},content:a.createElement(Ly,Object.assign({okType:s,icon:c},e,{prefixCls:M,close:$,onConfirm:I,onCancel:P})),"data-popover-inject":!0}),u))}),D8=B8;D8._InternalPanelDoNotUseOrYouWillBeFired=z8;const L8=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:o,groupSeparator:i="",prefixCls:l}=e;let s;if(typeof n=="function")s=n(t);else{const c=String(t),u=c.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u||c==="-")s=c;else{const d=u[1];let f=u[2]||"0",m=u[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof r=="number"&&(m=m.padEnd(r,"0").slice(0,r>0?r:0)),m&&(m=`${o}${m}`),s=[a.createElement("span",{key:"int",className:`${l}-content-value-int`},d,f),m&&a.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},m)]}}return a.createElement("span",{className:`${l}-content-value`},s)},A8=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:i,colorTextHeading:l,contentFontSize:s,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},Nt(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:l,fontSize:s,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},H8=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},F8=Et("Statistic",e=>{const t=Ct(e,{});return A8(t)},H8);var k8=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 Qd=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,valueStyle:l,value:s=0,title:c,valueRender:u,prefix:d,suffix:f,loading:m=!1,formatter:v,precision:p,decimalSeparator:h=".",groupSeparator:g=",",onMouseEnter:b,onMouseLeave:y}=e,C=k8(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:S,direction:x,className:E,style:w}=on("statistic"),O=S("statistic",n),[$,I,P]=F8(O),N=a.createElement(L8,{decimalSeparator:h,groupSeparator:g,prefixCls:O,formatter:v,precision:p,value:s}),M=F(O,{[`${O}-rtl`]:x==="rtl"},E,r,o,I,P),R=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:R.current}));const z=xn(C,{aria:!0,data:!0});return $(a.createElement("div",Object.assign({},z,{ref:R,className:M,style:Object.assign(Object.assign({},w),i),onMouseEnter:b,onMouseLeave:y}),c&&a.createElement("div",{className:`${O}-title`},c),a.createElement(Qr,{paragraph:!1,loading:m,className:`${O}-skeleton`,active:!0},a.createElement("div",{style:l,className:`${O}-content`},d&&a.createElement("span",{className:`${O}-content-prefix`},d),u?u(N):N,f&&a.createElement("span",{className:`${O}-content-suffix`},f)))))}),V8=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function W8(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map(c=>c.slice(1,-1)),i=t.replace(r,"[]"),l=V8.reduce((c,[u,d])=>{if(c.includes(u)){const f=Math.floor(n/d);return n-=f*d,c.replace(new RegExp(`${u}+`,"g"),m=>{const v=m.length;return f.toString().padStart(v,"0")})}return c},i);let s=0;return l.replace(r,()=>{const c=o[s];return s+=1,c})}function K8(e,t,n){const{format:r=""}=t,o=new Date(e).getTime(),i=Date.now(),l=Math.max(n?o-i:i-o,0);return W8(l,r)}var G8=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 q8(e){return new Date(e).getTime()}const Ay=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:o,type:i}=e,l=G8(e,["value","format","onChange","onFinish","type"]),s=i==="countdown",[c,u]=a.useState(null),d=At(()=>{const v=Date.now(),p=q8(t);u({});const h=s?p-v:v-p;return r==null||r(h),s&&p<v?(o==null||o(),!1):!0});a.useEffect(()=>{let v;const p=()=>Ot.cancel(v),h=()=>{v=Ot(()=>{d()&&h()})};return h(),p},[t,s]),a.useEffect(()=>{u({})},[]);const f=(v,p)=>c?K8(v,Object.assign(Object.assign({},p),{format:n}),s):"-",m=v=>un(v,{title:void 0});return a.createElement(Qd,Object.assign({},l,{value:t,valueRender:m,formatter:f}))},U8=e=>a.createElement(Ay,Object.assign({},e,{type:"countdown"})),X8=a.memo(U8);Qd.Timer=Ay;Qd.Countdown=X8;var Y8=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Hy=a.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,l=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,v=e.onChange,p=e.onKeyDown,h=it(e,Y8),g=Wt(!1,{value:l,defaultValue:s}),b=te(g,2),y=b[0],C=b[1];function S(O,$){var I=y;return c||(I=O,C(I),v==null||v(I,$)),I}function x(O){O.which===Be.LEFT?S(!1,O):O.which===Be.RIGHT&&S(!0,O),p==null||p(O)}function E(O){var $=S(!y,O);m==null||m($,O)}var w=F(o,i,(n={},B(n,"".concat(o,"-checked"),y),B(n,"".concat(o,"-disabled"),c),n));return a.createElement("button",ce({},h,{type:"button",role:"switch","aria-checked":y,disabled:c,className:w,ref:t,onKeyDown:x,onClick:E}),u,a.createElement("span",{className:"".concat(o,"-inner")},a.createElement("span",{className:"".concat(o,"-inner-checked")},d),a.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Hy.displayName="Switch";const Q8=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:l,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=L(c(s).add(c(r).mul(2)).equal()),f=L(c(l).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:L(n),[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:i,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:l,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${L(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Z8=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},J8=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:l}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:l(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${L(l(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ej=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:l,calc:s}=e,c=`${t}-inner`,u=L(s(l).add(s(r).mul(2)).equal()),d=L(s(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},tj=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:L(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),qn(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},nj=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,l=r/2,s=2,c=i-s*2,u=l-s*2;return{trackHeight:i,trackHeightSM:l,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Tt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},rj=Et("Switch",e=>{const t=Ct(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[tj(t),ej(t),J8(t),Z8(t),Q8(t)]},nj);var oj=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 aj=a.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:l,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:v}=e,p=oj(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,g]=Wt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:b,direction:y,switch:C}=a.useContext(tt),S=a.useContext(kn),x=(o??S)||i,E=b("switch",n),w=a.createElement("div",{className:`${E}-handle`},i&&a.createElement(xo,{className:`${E}-loading-icon`})),[O,$,I]=rj(E),P=hn(r),N=F(C==null?void 0:C.className,{[`${E}-small`]:P==="small",[`${E}-loading`]:i,[`${E}-rtl`]:y==="rtl"},l,s,$,I),M=Object.assign(Object.assign({},C==null?void 0:C.style),c),R=(...z)=>{g(z[0]),v==null||v.apply(void 0,z)};return O(a.createElement(ti,{component:"Switch",disabled:x},a.createElement(Hy,Object.assign({},p,{checked:h,onChange:R,prefixCls:E,className:N,style:M,disabled:x,ref:t,loadingIcon:w}))))}),ij=aj;ij.__ANT_SWITCH=!0;var Lr={},bi="rc-table-internal-hook";function Zd(e){var t=a.createContext(void 0),n=function(o){var i=o.value,l=o.children,s=a.useRef(i);s.current=i;var c=a.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=te(c,1),d=u[0];return wt(function(){uo.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),a.createElement(t.Provider,{value:d},l)};return{Context:t,Provider:n,defaultValue:e}}function $n(e,t){var n=At(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(v){m[v]=f[v]}),m}),r=a.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,l=o.getValue,s=a.useRef();s.current=n(r?l():e==null?void 0:e.defaultValue);var c=a.useState({}),u=te(c,2),d=u[1];return wt(function(){if(!r)return;function f(m){var v=n(m);Cr(s.current,v,!0)||d({})}return i.add(f),function(){i.delete(f)}},[r]),s.current}function lj(){var e=a.createContext(null);function t(){return a.useContext(e)}function n(o,i){var l=sr(o),s=function(u,d){var f=l?{ref:d}:{},m=a.useRef(0),v=a.useRef(u),p=t();return p!==null?a.createElement(o,ce({},u,f)):((!i||i(v.current,u))&&(m.current+=1),v.current=u,a.createElement(e.Provider,{value:m.current},a.createElement(o,ce({},u,f))))};return l?a.forwardRef(s):s}function r(o,i){var l=sr(o),s=function(u,d){var f=l?{ref:d}:{};return t(),a.createElement(o,ce({},u,f))};return l?a.memo(a.forwardRef(s),i):a.memo(s,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var Jd=lj(),Fy=Jd.makeImmutable,va=Jd.responseImmutable,sj=Jd.useImmutableMark,Bn=Zd(),ky=a.createContext({renderWithProps:!1}),cj="RC_TABLE_KEY";function uj(e){return e==null?[]:Array.isArray(e)?e:[e]}function cs(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,l=o.dataIndex,s=i||uj(l).join("-")||cj;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function Iu(e){return e!=null}function dj(e){return typeof e=="number"&&!Number.isNaN(e)}function fj(e){return e&&Ke(e)==="object"&&!Array.isArray(e)&&!a.isValidElement(e)}function mj(e,t,n,r,o,i){var l=a.useContext(ky),s=sj(),c=bo(function(){if(Iu(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Ln(e,u),f=d,m=void 0;if(o){var v=o(d,e,n);fj(v)?(f=v.children,m=v.props,l.renderWithProps=!0):f=v}return[f,m]},[s,e,r,t,o,n],function(u,d){if(i){var f=te(u,2),m=f[1],v=te(d,2),p=v[1];return i(p,m)}return l.renderWithProps?!0:!Cr(u,d,!0)});return c}function vj(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function gj(e,t){return $n(Bn,function(n){var r=vj(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var pj=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,l=n===!0?{showTitle:!0}:n;return l&&(l.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():a.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function hj(e){var t,n,r,o,i,l,s,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,v=e.prefixCls,p=e.className,h=e.align,g=e.record,b=e.render,y=e.dataIndex,C=e.renderIndex,S=e.shouldCellUpdate,x=e.index,E=e.rowType,w=e.colSpan,O=e.rowSpan,$=e.fixLeft,I=e.fixRight,P=e.firstFixLeft,N=e.lastFixLeft,M=e.firstFixRight,R=e.lastFixRight,z=e.appendNode,T=e.additionalProps,j=T===void 0?{}:T,_=e.isSticky,D="".concat(v,"-cell"),k=$n(Bn,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=k.supportSticky,K=k.allColumnsFixedLeft,A=k.rowHoverable,W=mj(g,y,C,d,b,S),G=te(W,2),Y=G[0],ne=G[1],Q={},J=typeof $=="number"&&V,ie=typeof I=="number"&&V;J&&(Q.position="sticky",Q.left=$),ie&&(Q.position="sticky",Q.right=I);var re=(t=(n=(r=ne==null?void 0:ne.colSpan)!==null&&r!==void 0?r:j.colSpan)!==null&&n!==void 0?n:w)!==null&&t!==void 0?t:1,X=(o=(i=(l=ne==null?void 0:ne.rowSpan)!==null&&l!==void 0?l:j.rowSpan)!==null&&i!==void 0?i:O)!==null&&o!==void 0?o:1,oe=gj(x,X),ee=te(oe,2),q=ee[0],Z=ee[1],le=At(function(de){var xe;g&&Z(x,x+X-1),j==null||(xe=j.onMouseEnter)===null||xe===void 0||xe.call(j,de)}),se=At(function(de){var xe;g&&Z(-1,-1),j==null||(xe=j.onMouseLeave)===null||xe===void 0||xe.call(j,de)});if(re===0||X===0)return null;var ve=(s=j.title)!==null&&s!==void 0?s:pj({rowType:E,ellipsis:f,children:Y}),ge=F(D,p,(c={},B(B(B(B(B(B(B(B(B(B(c,"".concat(D,"-fix-left"),J&&V),"".concat(D,"-fix-left-first"),P&&V),"".concat(D,"-fix-left-last"),N&&V),"".concat(D,"-fix-left-all"),N&&K&&V),"".concat(D,"-fix-right"),ie&&V),"".concat(D,"-fix-right-first"),M&&V),"".concat(D,"-fix-right-last"),R&&V),"".concat(D,"-ellipsis"),f),"".concat(D,"-with-append"),z),"".concat(D,"-fix-sticky"),(J||ie)&&_&&V),B(c,"".concat(D,"-row-hover"),!ne&&q)),j.className,ne==null?void 0:ne.className),ae={};h&&(ae.textAlign=h);var fe=H(H(H(H({},ne==null?void 0:ne.style),Q),ae),j.style),ue=Y;return Ke(ue)==="object"&&!Array.isArray(ue)&&!a.isValidElement(ue)&&(ue=null),f&&(N||M)&&(ue=a.createElement("span",{className:"".concat(D,"-content")},ue)),a.createElement(u,ce({},ne,j,{className:ge,style:fe,title:ve,scope:m,onMouseEnter:A?le:void 0,onMouseLeave:A?se:void 0,colSpan:re!==1?re:null,rowSpan:X!==1?X:null}),z,ue)}const ga=a.memo(hj);function ef(e,t,n,r,o){var i=n[e]||{},l=n[t]||{},s,c;i.fixed==="left"?s=r.left[o==="rtl"?t:e]:l.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,v=n[t+1],p=n[e-1],h=v&&!v.fixed||p&&!p.fixed||n.every(function(S){return S.fixed==="left"});if(o==="rtl"){if(s!==void 0){var g=p&&p.fixed==="left";m=!g&&h}else if(c!==void 0){var b=v&&v.fixed==="right";f=!b&&h}}else if(s!==void 0){var y=v&&v.fixed==="left";u=!y&&h}else if(c!==void 0){var C=p&&p.fixed==="right";d=!C&&h}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var Vy=a.createContext({});function bj(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,l=e.rowSpan,s=e.align,c=$n(Bn,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=a.useContext(Vy),m=f.scrollColumnIndex,v=f.stickyOffsets,p=f.flattenColumns,h=n+i-1,g=h+1===m?i+1:i,b=ef(n,n+g-1,p,v,d);return a.createElement(ga,ce({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:l,render:function(){return r}},b))}var yj=["children"];function Cj(e){var t=e.children,n=it(e,yj);return a.createElement("tr",n,t)}function us(e){var t=e.children;return t}us.Row=Cj;us.Cell=bj;function Sj(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=$n(Bn,"prefixCls"),i=r.length-1,l=r[i],s=a.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?i:null}},[l,r,i,n]);return a.createElement(Vy.Provider,{value:s},a.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const _i=va(Sj);var Wy=us;function xj(e){return null}function $j(e){return null}function Ky(e,t,n,r,o,i,l){var s=i(t,l);e.push({record:t,indent:n,index:l,rowKey:s});var c=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)Ky(e,t[r][u],n+1,r,o,i,u)}function Gy(e,t,n,r){var o=a.useMemo(function(){if(n!=null&&n.size){for(var i=[],l=0;l<(e==null?void 0:e.length);l+=1){var s=e[l];Ky(i,s,0,t,n,r,l)}return i}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u,rowKey:r(c,u)}})},[e,t,n,r]);return o}function qy(e,t,n,r){var o=$n(Bn,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=o.flattenColumns,l=o.expandableType,s=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,v=o.rowClassName,p=l==="nest",h=l==="row"&&(!d||d(e)),g=h||p,b=s&&s.has(t),y=c&&e&&e[c],C=At(u),S=f==null?void 0:f(e,n),x=S==null?void 0:S.onClick,E=function(I){m&&g&&u(e,I);for(var P=arguments.length,N=new Array(P>1?P-1:0),M=1;M<P;M++)N[M-1]=arguments[M];x==null||x.apply(void 0,[I].concat(N))},w;typeof v=="string"?w=v:typeof v=="function"&&(w=v(e,n,r));var O=cs(i);return H(H({},o),{},{columnsKey:O,nestExpandable:p,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:C,rowSupportExpand:h,expandable:g,rowProps:H(H({},S),{},{className:F(w,S==null?void 0:S.className),onClick:E})})}function Uy(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,l=e.expanded,s=e.colSpan,c=e.isEmpty,u=e.stickyOffset,d=u===void 0?0:u,f=$n(Bn,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=f.scrollbarSize,v=f.fixHeader,p=f.fixColumn,h=f.componentWidth,g=f.horizonScroll,b=n;return(c?g&&h:p)&&(b=a.createElement("div",{style:{width:h-d-(v&&!c?m:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),a.createElement(r,{className:i,style:{display:l?null:"none"}},a.createElement(ga,{component:o,prefixCls:t,colSpan:s},b))}function wj(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,i=e.expandable,l="".concat(t,"-row-expand-icon");if(!i)return a.createElement("span",{className:F(l,"".concat(t,"-row-spaced"))});var s=function(u){r(n,u),u.stopPropagation()};return a.createElement("span",{className:F(l,B(B({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function Ej(e,t,n){var r=[];function o(i){(i||[]).forEach(function(l,s){r.push(t(l,s)),o(l[n])})}return o(e),r}function Xy(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function Yy(e,t,n,r,o){var i,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,v=e.nestExpandable,p=e.indentSize,h=e.expandIcon,g=e.expanded,b=e.hasNestChildren,y=e.onTriggerExpand,C=e.expandable,S=e.expandedKeys,x=d[n],E=f[n],w;n===(m||0)&&v&&(w=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:"".concat(p*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),h({prefixCls:u,expanded:g,expandable:b,record:c,onExpand:y})));var O=((i=t.onCell)===null||i===void 0?void 0:i.call(t,c,o))||{};if(s){var $=O.rowSpan,I=$===void 0?1:$;if(C&&I&&n<s){for(var P=I,N=o;N<o+I;N+=1){var M=l[N];S.has(M)&&(P+=1)}O.rowSpan=P}}return{key:x,fixedInfo:E,appendCellNode:w,additionalCellProps:O}}function Oj(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,l=e.rowKey,s=e.rowKeys,c=e.indent,u=c===void 0?0:c,d=e.rowComponent,f=e.cellComponent,m=e.scopeCellComponent,v=e.expandedRowInfo,p=qy(r,l,o,u),h=p.prefixCls,g=p.flattenColumns,b=p.expandedRowClassName,y=p.expandedRowRender,C=p.rowProps,S=p.expanded,x=p.rowSupportExpand,E=a.useRef(!1);E.current||(E.current=S);var w=Xy(b,r,o,u),O=a.createElement(d,ce({},C,{"data-row-key":l,className:F(t,"".concat(h,"-row"),"".concat(h,"-row-level-").concat(u),C==null?void 0:C.className,B({},w,u>=1)),style:H(H({},n),C==null?void 0:C.style)}),g.map(function(P,N){var M=P.render,R=P.dataIndex,z=P.className,T=Yy(p,P,N,u,o,s,v==null?void 0:v.offset),j=T.key,_=T.fixedInfo,D=T.appendCellNode,k=T.additionalCellProps;return a.createElement(ga,ce({className:z,ellipsis:P.ellipsis,align:P.align,scope:P.rowScope,component:P.rowScope?m:f,prefixCls:h,key:j,record:r,index:o,renderIndex:i,dataIndex:R,render:M,shouldCellUpdate:P.shouldCellUpdate},_,{appendNode:D,additionalProps:k}))})),$;if(x&&(E.current||S)){var I=y(r,o,u+1,S);$=a.createElement(Uy,{expanded:S,className:F("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(u+1),w),prefixCls:h,component:d,cellComponent:f,colSpan:v?v.colSpan:g.length,stickyOffset:v==null?void 0:v.sticky,isEmpty:!1},I)}return a.createElement(a.Fragment,null,O,$)}const Ij=va(Oj);function Rj(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,o=e.title,i=a.useRef();return wt(function(){i.current&&n(t,i.current.offsetWidth)},[]),a.createElement(An,{data:t},a.createElement("th",{ref:i,className:"".concat(r,"-measure-cell")},a.createElement("div",{className:"".concat(r,"-measure-cell-content")},o||" ")))}function Pj(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=e.columns,i=a.useRef(null),l=$n(Bn,["measureRowRender"]),s=l.measureRowRender,c=a.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},a.createElement(An.Collection,{onBatchResize:function(d){ei(i.current)&&d.forEach(function(f){var m=f.data,v=f.size;r(m,v.offsetWidth)})}},n.map(function(u){var d=o.find(function(v){return v.key===u}),f=d==null?void 0:d.title,m=a.isValidElement(f)?a.cloneElement(f,{ref:null}):f;return a.createElement(Rj,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return s?s(c):c}function Nj(e){var t=e.data,n=e.measureColumnWidth,r=$n(Bn,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),o=r.prefixCls,i=r.getComponent,l=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,v=m===void 0?0:m,p=r.colWidths,h=Gy(t,d,u,c),g=a.useMemo(function(){return h.map(function($){return $.rowKey})},[h]),b=a.useRef({renderWithProps:!1}),y=a.useMemo(function(){for(var $=s.length-v,I=0,P=0;P<v;P+=1)I+=p[P]||0;return{offset:v,colSpan:$,sticky:I}},[s.length,v,p]),C=i(["body","wrapper"],"tbody"),S=i(["body","row"],"tr"),x=i(["body","cell"],"td"),E=i(["body","cell"],"th"),w;t.length?w=h.map(function($,I){var P=$.record,N=$.indent,M=$.index,R=$.rowKey;return a.createElement(Ij,{key:R,rowKey:R,rowKeys:g,record:P,index:I,renderIndex:M,rowComponent:S,cellComponent:x,scopeCellComponent:E,indent:N,expandedRowInfo:y})}):w=a.createElement(Uy,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:S,cellComponent:x,colSpan:s.length,isEmpty:!0},f);var O=cs(s);return a.createElement(ky.Provider,{value:b.current},a.createElement(C,{className:"".concat(o,"-tbody")},n&&a.createElement(Pj,{prefixCls:o,columnsKey:O,onColumnResize:l,columns:s}),w))}const Mj=va(Nj);var Tj=["expandable"],Ta="RC_TABLE_INTERNAL_COL_DEFINE";function jj(e){var t=e.expandable,n=it(e,Tj),r;return"expandable"in e?r=H(H({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var zj=["columnType"];function Qy(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=$n(Bn,["tableLayout"]),i=o.tableLayout,l=[],s=r||n.length,c=!1,u=s-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,v=void 0;if(f&&(m=f[Ta],i==="auto"&&(v=f.minWidth)),d||v||m||c){var p=m||{};p.columnType;var h=it(p,zj);l.unshift(a.createElement("col",ce({key:u,style:{width:d,minWidth:v}},h))),c=!0}}return l.length>0?a.createElement("colgroup",null,l):null}var _j=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function Bj(e,t){return a.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var Dj=a.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,l=e.colWidths,s=e.colGroup,c=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,m=e.stickyTopOffset,v=e.stickyBottomOffset,p=e.stickyClassName,h=e.scrollX,g=e.tableLayout,b=g===void 0?"fixed":g,y=e.onScroll,C=e.children,S=it(e,_j),x=$n(Bn,["prefixCls","scrollbarSize","isSticky","getComponent"]),E=x.prefixCls,w=x.scrollbarSize,O=x.isSticky,$=x.getComponent,I=$(["header","table"],"table"),P=O&&!f?0:w,N=a.useRef(null),M=a.useCallback(function(V){za(t,V),za(N,V)},[]);a.useEffect(function(){function V(A){var W=A,G=W.currentTarget,Y=W.deltaX;Y&&(y({currentTarget:G,scrollLeft:G.scrollLeft+Y}),A.preventDefault())}var K=N.current;return K==null||K.addEventListener("wheel",V,{passive:!1}),function(){K==null||K.removeEventListener("wheel",V)}},[]);var R=i[i.length-1],z={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},T=a.useMemo(function(){return P?[].concat(pe(o),[z]):o},[P,o]),j=a.useMemo(function(){return P?[].concat(pe(i),[z]):i},[P,i]),_=a.useMemo(function(){var V=u.right,K=u.left;return H(H({},u),{},{left:d==="rtl"?[].concat(pe(K.map(function(A){return A+P})),[0]):K,right:d==="rtl"?V:[].concat(pe(V.map(function(A){return A+P})),[0]),isSticky:O})},[P,u,O]),D=Bj(l,c),k=a.useMemo(function(){var V=!D||!D.length||D.every(function(K){return!K});return r||V},[r,D]);return a.createElement("div",{style:H({overflow:"hidden"},O?{top:m,bottom:v}:{}),ref:M,className:F(n,B({},p,!!p))},a.createElement(I,{style:{tableLayout:b,minWidth:"100%",width:h}},k?s:a.createElement(Qy,{colWidths:[].concat(pe(D),[P]),columCount:c+1,columns:j}),C(H(H({},S),{},{stickyOffsets:_,columns:T,flattenColumns:j}))))});const $g=a.memo(Dj);var Lj=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,i=t.rowComponent,l=t.cellComponent,s=t.onHeaderRow,c=t.index,u=$n(Bn,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;s&&(m=s(n.map(function(p){return p.column}),c));var v=cs(n.map(function(p){return p.column}));return a.createElement(i,m,n.map(function(p,h){var g=p.column,b=ef(p.colStart,p.colEnd,o,r,f),y;return g&&g.onHeaderCell&&(y=p.column.onHeaderCell(g)),a.createElement(ga,ce({},p,{scope:g.title?p.colSpan>1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:l,prefixCls:d,key:v[h]},b,{additionalProps:y,rowType:"header"}))}))};function Aj(e){var t=[];function n(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=l.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},v=1,p=f.children;return p&&p.length>0&&(v=n(p,u,c+1).reduce(function(h,g){return h+g},0),m.hasSubColumns=!0),"colSpan"in f&&(v=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=v,m.colEnd=m.colStart+v-1,t[c].push(m),u+=v,v});return d}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},i=0;i<r;i+=1)o(i);return t}var Hj=function(t){var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,i=t.onHeaderRow,l=$n(Bn,["prefixCls","getComponent"]),s=l.prefixCls,c=l.getComponent,u=a.useMemo(function(){return Aj(r)},[r]),d=c(["header","wrapper"],"thead"),f=c(["header","row"],"tr"),m=c(["header","cell"],"th");return a.createElement(d,{className:"".concat(s,"-thead")},u.map(function(v,p){var h=a.createElement(Lj,{key:p,flattenColumns:o,cells:v,stickyOffsets:n,rowComponent:f,cellComponent:m,onHeaderRow:i,index:p});return h}))};const wg=va(Hj);function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Fj(e,t,n){return a.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var v=Eg(t,m.width);v?r+=v:o+=1});var i=Math.max(t,n),l=Math.max(i-r,o),s=o,c=l/o,u=0,d=e.map(function(m){var v=H({},m),p=Eg(t,v.width);if(p)v.width=p;else{var h=Math.floor(c);v.width=s===1?l:h,l-=h,s-=1}return u+=v.width,v});if(u<i){var f=i/u;l=i,d.forEach(function(m,v){var p=Math.floor(m.width*f);m.width=v===d.length-1?l:p,l-=p})}return[d,Math.max(u,i)]}return[e,t]},[e,t,n])}var kj=["children"],Vj=["fixed"];function tf(e){return cn(e).filter(function(t){return a.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,i=it(r,kj),l=H({key:n},i);return o&&(l.children=tf(o)),l})}function Zy(e){return e.filter(function(t){return t&&Ke(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?H(H({},t),{},{children:Zy(n)}):t})}function Ru(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Ke(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,l=i===!0?"left":i,s="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(pe(n),pe(Ru(c,s).map(function(u){var d;return H(H({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:l})}))):[].concat(pe(n),[H(H({key:s},r),{},{fixed:l})])},[])}function Wj(e){return e.map(function(t){var n=t.fixed,r=it(t,Vj),o=n;return n==="left"?o="right":n==="right"&&(o="left"),H({fixed:o},r)})}function Kj(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,l=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,v=e.expandedRowOffset,p=v===void 0?0:v,h=e.direction,g=e.expandRowByClick,b=e.columnWidth,y=e.fixed,C=e.scrollWidth,S=e.clientWidth,x=a.useMemo(function(){var R=r||tf(o)||[];return Zy(R.slice())},[r,o]),E=a.useMemo(function(){if(i){var R=x.slice();if(!R.includes(Lr)){var z=m||0,T=z===0&&y==="right"?x.length:z;T>=0&&R.splice(T,0,Lr)}var j=R.indexOf(Lr);R=R.filter(function(V,K){return V!==Lr||K===j});var _=x[j],D;y?D=y:D=_?_.fixed:null;var k=B(B(B(B(B(B({},Ta,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",D),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",function(K,A,W){var G=c(A,W),Y=l.has(G),ne=f?f(A):!0,Q=d({prefixCls:n,expanded:Y,expandable:ne,record:A,onExpand:u});return g?a.createElement("span",{onClick:function(ie){return ie.stopPropagation()}},Q):Q});return R.map(function(V,K){var A=V===Lr?k:V;return K<p?H(H({},A),{},{fixed:A.fixed||"left"}):A})}return x.filter(function(V){return V!==Lr})},[i,x,c,l,d,h,p]),w=a.useMemo(function(){var R=E;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,E,h]),O=a.useMemo(function(){return h==="rtl"?Wj(Ru(w)):Ru(w)},[w,h,C]),$=a.useMemo(function(){for(var R=-1,z=O.length-1;z>=0;z-=1){var T=O[z].fixed;if(T==="left"||T===!0){R=z;break}}if(R>=0)for(var j=0;j<=R;j+=1){var _=O[j].fixed;if(_!=="left"&&_!==!0)return!0}var D=O.findIndex(function(K){var A=K.fixed;return A==="right"});if(D>=0)for(var k=D;k<O.length;k+=1){var V=O[k].fixed;if(V!=="right")return!0}return!1},[O]),I=Fj(O,C,S),P=te(I,2),N=P[0],M=P[1];return[w,N,M,$]}function Gj(e,t,n){var r=jj(e),o=r.expandIcon,i=r.expandedRowKeys,l=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||wj,v=f||"children",p=a.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===bi&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(x){return x&&Ke(x)==="object"&&x[v]})?"nest":!1},[!!c,t]),h=a.useState(function(){return l||(s?Ej(t,n,v):[])}),g=te(h,2),b=g[0],y=g[1],C=a.useMemo(function(){return new Set(i||b||[])},[i,b]),S=a.useCallback(function(x){var E=n(x,t.indexOf(x)),w,O=C.has(E);O?(C.delete(E),w=pe(C)):w=[].concat(pe(C),[E]),y(w),u&&u(!O,x),d&&d(w)},[n,C,t,u,d]);return[r,p,C,m,v,S]}function qj(e,t,n){var r=e.map(function(o,i){return ef(i,i,e,t,n)});return bo(function(){return r},[r],function(o,i){return!Cr(o,i)})}function Uj(e){var t=a.useRef(e),n=a.useState({}),r=te(n,2),o=r[1],i=a.useRef(null),l=a.useRef([]);function s(c){l.current.push(c);var u=Promise.resolve();i.current=u,u.then(function(){if(i.current===u){var d=l.current,f=t.current;l.current=[],d.forEach(function(m){t.current=m(t.current)}),i.current=null,f!==t.current&&o({})}})}return a.useEffect(function(){return function(){i.current=null}},[]),[t.current,s]}function Xj(e){var t=a.useRef(null),n=a.useRef();function r(){window.clearTimeout(n.current)}function o(l){t.current=l,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return a.useEffect(function(){return r},[]),[o,i]}function Yj(){var e=a.useState(-1),t=te(e,2),n=t[0],r=t[1],o=a.useState(-1),i=te(o,2),l=i[0],s=i[1],c=a.useCallback(function(u,d){r(u),s(d)},[]);return[n,l,c]}var Og=In()?window:null;function Qj(e,t){var n=Ke(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,l=i===void 0?0:i,s=n.offsetScroll,c=s===void 0?0:s,u=n.getContainer,d=u===void 0?function(){return Og}:u,f=d()||Og,m=!!e;return a.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:l,offsetScroll:c,container:f}},[m,c,o,l,t,f])}function Zj(e,t,n){var r=a.useMemo(function(){var o=t.length,i=function(u,d,f){for(var m=[],v=0,p=u;p!==d;p+=f)m.push(v),t[p].fixed&&(v+=e[p]||0);return m},l=i(0,o,1),s=i(o-1,-1,-1).reverse();return n==="rtl"?{left:s,right:l}:{left:l,right:s}},[e,t,n]);return r}function Ig(e){var t=e.className,n=e.children;return a.createElement("div",{className:t},n)}function Rg(e){var t=Ya(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var Jj=function(t,n){var r,o,i=t.scrollBodyRef,l=t.onScroll,s=t.offsetScroll,c=t.container,u=t.direction,d=$n(Bn,"prefixCls"),f=((r=i.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,v=f&&m*(m/f),p=a.useRef(),h=Uj({scrollLeft:0,isHiddenScrollBar:!0}),g=te(h,2),b=g[0],y=g[1],C=a.useRef({delta:0,x:0}),S=a.useState(!1),x=te(S,2),E=x[0],w=x[1],O=a.useRef(null);a.useEffect(function(){return function(){Ot.cancel(O.current)}},[]);var $=function(){w(!1)},I=function(z){z.persist(),C.current.delta=z.pageX-b.scrollLeft,C.current.x=0,w(!0),z.preventDefault()},P=function(z){var T,j=z||((T=window)===null||T===void 0?void 0:T.event),_=j.buttons;if(!E||_===0){E&&w(!1);return}var D=C.current.x+z.pageX-C.current.x-C.current.delta,k=u==="rtl";D=Math.max(k?v-m:0,Math.min(k?0:m-v,D));var V=!k||Math.abs(D)+Math.abs(v)<m;V&&(l({scrollLeft:D/m*(f+2)}),C.current.x=z.pageX)},N=function(){Ot.cancel(O.current),O.current=Ot(function(){if(i.current){var z=Rg(i.current).top,T=z+i.current.offsetHeight,j=c===window?document.documentElement.scrollTop+window.innerHeight:Rg(c).top+c.clientHeight;y(function(_){return H(H({},_),{},{isHiddenScrollBar:T-Om()<=j||z>=j-s})})}})},M=function(z){y(function(T){return H(H({},T),{},{scrollLeft:f?z/f*m:0})})};return a.useImperativeHandle(n,function(){return{setScrollLeft:M,checkScrollBarVisible:N}}),a.useEffect(function(){var R=mg(document.body,"mouseup",$,!1),z=mg(document.body,"mousemove",P,!1);return N(),function(){R.remove(),z.remove()}},[v,E]),a.useEffect(function(){if(i.current){for(var R=[],z=Ya(i.current);z;)R.push(z),z=z.parentElement;return R.forEach(function(T){return T.addEventListener("scroll",N,!1)}),window.addEventListener("resize",N,!1),window.addEventListener("scroll",N,!1),c.addEventListener("scroll",N,!1),function(){R.forEach(function(T){return T.removeEventListener("scroll",N)}),window.removeEventListener("resize",N),window.removeEventListener("scroll",N),c.removeEventListener("scroll",N)}}},[c]),a.useEffect(function(){b.isHiddenScrollBar||y(function(R){var z=i.current;return z?H(H({},R),{},{scrollLeft:z.scrollLeft/z.scrollWidth*z.clientWidth}):R})},[b.isHiddenScrollBar]),f<=m||!v||b.isHiddenScrollBar?null:a.createElement("div",{style:{height:Om(),width:m,bottom:s},className:"".concat(d,"-sticky-scroll")},a.createElement("div",{onMouseDown:I,ref:p,className:F("".concat(d,"-sticky-scroll-bar"),B({},"".concat(d,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const ez=a.forwardRef(Jj);var Jy="rc-table",tz=[],nz={};function rz(){return"No Data"}function oz(e,t){var n=H({rowKey:"key",prefixCls:Jy,emptyText:rz},e),r=n.prefixCls,o=n.className,i=n.rowClassName,l=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,v=n.footer,p=n.summary,h=n.caption,g=n.id,b=n.showHeader,y=n.components,C=n.emptyText,S=n.onRow,x=n.onHeaderRow,E=n.measureRowRender,w=n.onScroll,O=n.internalHooks,$=n.transformColumns,I=n.internalRefs,P=n.tailor,N=n.getContainerWidth,M=n.sticky,R=n.rowHoverable,z=R===void 0?!0:R,T=s||tz,j=!!T.length,_=O===bi,D=a.useCallback(function(mt,It){return Ln(y,mt)||It},[y]),k=a.useMemo(function(){return typeof c=="function"?c:function(mt){var It=mt&&mt[c];return It}},[c]),V=D(["body"]),K=Yj(),A=te(K,3),W=A[0],G=A[1],Y=A[2],ne=Gj(n,T,k),Q=te(ne,6),J=Q[0],ie=Q[1],re=Q[2],X=Q[3],oe=Q[4],ee=Q[5],q=u==null?void 0:u.x,Z=a.useState(0),le=te(Z,2),se=le[0],ve=le[1],ge=Kj(H(H(H({},n),J),{},{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:re,getRowKey:k,onTriggerExpand:ee,expandIcon:X,expandIconColumnIndex:J.expandIconColumnIndex,direction:f,scrollWidth:_&&P&&typeof q=="number"?q:null,clientWidth:se}),_?$:null),ae=te(ge,4),fe=ae[0],ue=ae[1],de=ae[2],xe=ae[3],we=de??q,Le=a.useMemo(function(){return{columns:fe,flattenColumns:ue}},[fe,ue]),je=a.useRef(),Oe=a.useRef(),Te=a.useRef(),he=a.useRef();a.useImperativeHandle(t,function(){return{nativeElement:je.current,scrollTo:function(It){var nn;if(Te.current instanceof HTMLElement){var Ut=It.index,Xt=It.top,Xn=It.key;if(dj(Xt)){var On;(On=Te.current)===null||On===void 0||On.scrollTo({top:Xt})}else{var Tn,rr=Xn??k(T[Ut]);(Tn=Te.current.querySelector('[data-row-key="'.concat(rr,'"]')))===null||Tn===void 0||Tn.scrollIntoView()}}else(nn=Te.current)!==null&&nn!==void 0&&nn.scrollTo&&Te.current.scrollTo(It)}}});var me=a.useRef(),$e=a.useState(!1),Se=te($e,2),Re=Se[0],be=Se[1],Ie=a.useState(!1),De=te(Ie,2),ke=De[0],gt=De[1],ht=a.useState(new Map),Pe=te(ht,2),We=Pe[0],Ye=Pe[1],_e=cs(ue),Ge=_e.map(function(mt){return We.get(mt)}),vt=a.useMemo(function(){return Ge},[Ge.join("_")]),dt=Zj(vt,ue,f),Ae=u&&Iu(u.y),Je=u&&Iu(we)||!!J.fixed,Ue=Je&&ue.some(function(mt){var It=mt.fixed;return It}),Ee=a.useRef(),Ce=Qj(M,r),ye=Ce.isSticky,Ne=Ce.offsetHeader,Qe=Ce.offsetSummary,Ze=Ce.offsetScroll,bt=Ce.stickyClassName,Fe=Ce.container,ze=a.useMemo(function(){return p==null?void 0:p(T)},[p,T]),ot=(Ae||ye)&&a.isValidElement(ze)&&ze.type===us&&ze.props.fixed,$t,Rt,Mt;Ae&&(Rt={overflowY:j?"scroll":"auto",maxHeight:u.y}),Je&&($t={overflowX:"auto"},Ae||(Rt={overflowY:"hidden"}),Mt={width:we===!0?"auto":we,minWidth:"100%"});var Dt=a.useCallback(function(mt,It){Ye(function(nn){if(nn.get(mt)!==It){var Ut=new Map(nn);return Ut.set(mt,It),Ut}return nn})},[]),St=Xj(),jt=te(St,2),Me=jt[0],Ve=jt[1];function ct(mt,It){It&&(typeof It=="function"?It(mt):It.scrollLeft!==mt&&(It.scrollLeft=mt,It.scrollLeft!==mt&&setTimeout(function(){It.scrollLeft=mt},0)))}var lt=At(function(mt){var It=mt.currentTarget,nn=mt.scrollLeft,Ut=f==="rtl",Xt=typeof nn=="number"?nn:It.scrollLeft,Xn=It||nz;if(!Ve()||Ve()===Xn){var On;Me(Xn),ct(Xt,Oe.current),ct(Xt,Te.current),ct(Xt,me.current),ct(Xt,(On=Ee.current)===null||On===void 0?void 0:On.setScrollLeft)}var Tn=It||Oe.current;if(Tn){var rr=_&&P&&typeof we=="number"?we:Tn.scrollWidth,jr=Tn.clientWidth;if(rr===jr){be(!1),gt(!1);return}Ut?(be(-Xt<rr-jr),gt(-Xt>0)):(be(Xt>0),gt(Xt<rr-jr))}}),nt=At(function(mt){lt(mt),w==null||w(mt)}),Xe=function(){if(Je&&Te.current){var It;lt({currentTarget:Ya(Te.current),scrollLeft:(It=Te.current)===null||It===void 0?void 0:It.scrollLeft})}else be(!1),gt(!1)},ft=function(It){var nn,Ut=It.width;(nn=Ee.current)===null||nn===void 0||nn.checkScrollBarVisible();var Xt=je.current?je.current.offsetWidth:Ut;_&&N&&je.current&&(Xt=N(je.current,Xt)||Xt),Xt!==se&&(Xe(),ve(Xt))},Pt=a.useRef(!1);a.useEffect(function(){Pt.current&&Xe()},[Je,s,fe.length]),a.useEffect(function(){Pt.current=!0},[]);var He=a.useState(0),at=te(He,2),pt=at[0],qt=at[1],en=a.useState(!0),wn=te(en,2),En=wn[0],mn=wn[1];wt(function(){(!P||!_)&&(Te.current instanceof Element?qt(Jc(Te.current).width):qt(Jc(he.current).width)),mn(uu("position","sticky"))},[]),a.useEffect(function(){_&&I&&(I.body.current=Te.current)});var Pn=a.useCallback(function(mt){return a.createElement(a.Fragment,null,a.createElement(wg,mt),ot==="top"&&a.createElement(_i,mt,ze))},[ot,ze]),Nn=a.useCallback(function(mt){return a.createElement(_i,mt,ze)},[ze]),Dn=D(["table"],"table"),Mn=a.useMemo(function(){return d||(Ue?we==="max-content"?"auto":"fixed":Ae||ye||ue.some(function(mt){var It=mt.ellipsis;return It})?"fixed":"auto")},[Ae,Ue,ue,d,ye]),Lt,rt={colWidths:vt,columCount:ue.length,stickyOffsets:dt,onHeaderRow:x,fixHeader:Ae,scroll:u},et=a.useMemo(function(){return j?null:typeof C=="function"?C():C},[j,C]),_t=a.createElement(Mj,{data:T,measureColumnWidth:Ae||Je||ye}),zt=a.createElement(Qy,{colWidths:ue.map(function(mt){var It=mt.width;return It}),columns:ue}),Ft=h!=null?a.createElement("caption",{className:"".concat(r,"-caption")},h):void 0,Kt=xn(n,{data:!0}),bn=xn(n,{aria:!0});if(Ae||ye){var tn;typeof V=="function"?(tn=V(T,{scrollbarSize:pt,ref:Te,onScroll:lt}),rt.colWidths=ue.map(function(mt,It){var nn=mt.width,Ut=It===ue.length-1?nn-pt:nn;return typeof Ut=="number"&&!Number.isNaN(Ut)?Ut:0})):tn=a.createElement("div",{style:H(H({},$t),Rt),onScroll:nt,ref:Te,className:F("".concat(r,"-body"))},a.createElement(Dn,ce({style:H(H({},Mt),{},{tableLayout:Mn})},bn),Ft,zt,_t,!ot&&ze&&a.createElement(_i,{stickyOffsets:dt,flattenColumns:ue},ze)));var yn=H(H(H({noData:!T.length},rt),Le),{},{direction:f,stickyClassName:bt,scrollX:we,tableLayout:Mn,onScroll:lt});Lt=a.createElement(a.Fragment,null,b!==!1&&a.createElement($g,ce({},yn,{stickyTopOffset:Ne,className:"".concat(r,"-header"),ref:Oe,colGroup:zt}),Pn),tn,ot&&ot!=="top"&&a.createElement($g,ce({},yn,{stickyBottomOffset:Qe,className:"".concat(r,"-summary"),ref:me,colGroup:zt}),Nn),ye&&Te.current&&Te.current instanceof Element&&a.createElement(ez,{ref:Ee,offsetScroll:Ze,scrollBodyRef:Te,onScroll:lt,container:Fe,direction:f}))}else Lt=a.createElement("div",{style:H(H({},$t),Rt),className:F("".concat(r,"-content")),onScroll:lt,ref:Te},a.createElement(Dn,ce({style:H(H({},Mt),{},{tableLayout:Mn})},bn),Ft,zt,b!==!1&&a.createElement(wg,ce({},rt,Le)),_t,ze&&a.createElement(_i,{stickyOffsets:dt,flattenColumns:ue},ze)));var an=a.createElement("div",ce({className:F(r,o,B(B(B(B(B(B(B(B(B(B({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),Re),"".concat(r,"-ping-right"),ke),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),Ae),"".concat(r,"-fixed-column"),Ue),"".concat(r,"-fixed-column-gapped"),Ue&&xe),"".concat(r,"-scroll-horizontal"),Je),"".concat(r,"-has-fix-left"),ue[0]&&ue[0].fixed),"".concat(r,"-has-fix-right"),ue[ue.length-1]&&ue[ue.length-1].fixed==="right")),style:l,id:g,ref:je},Kt),m&&a.createElement(Ig,{className:"".concat(r,"-title")},m(T)),a.createElement("div",{ref:he,className:"".concat(r,"-container")},Lt),v&&a.createElement(Ig,{className:"".concat(r,"-footer")},v(T)));Je&&(an=a.createElement(An,{onResize:ft},an));var Cn=qj(ue,dt,f),Un=a.useMemo(function(){return{scrollX:we,prefixCls:r,getComponent:D,scrollbarSize:pt,direction:f,fixedInfoList:Cn,isSticky:ye,supportSticky:En,componentWidth:se,fixHeader:Ae,fixColumn:Ue,horizonScroll:Je,tableLayout:Mn,rowClassName:i,expandedRowClassName:J.expandedRowClassName,expandIcon:X,expandableType:ie,expandRowByClick:J.expandRowByClick,expandedRowRender:J.expandedRowRender,expandedRowOffset:J.expandedRowOffset,onTriggerExpand:ee,expandIconColumnIndex:J.expandIconColumnIndex,indentSize:J.indentSize,allColumnsFixedLeft:ue.every(function(mt){return mt.fixed==="left"}),emptyNode:et,columns:fe,flattenColumns:ue,onColumnResize:Dt,colWidths:vt,hoverStartRow:W,hoverEndRow:G,onHover:Y,rowExpandable:J.rowExpandable,onRow:S,getRowKey:k,expandedKeys:re,childrenColumnName:oe,rowHoverable:z,measureRowRender:E}},[we,r,D,pt,f,Cn,ye,En,se,Ae,Ue,Je,Mn,i,J.expandedRowClassName,X,ie,J.expandRowByClick,J.expandedRowRender,J.expandedRowOffset,ee,J.expandIconColumnIndex,J.indentSize,et,fe,ue,Dt,vt,W,G,Y,J.rowExpandable,S,k,re,oe,z,E]);return a.createElement(Bn.Provider,{value:Un},an)}var az=a.forwardRef(oz);function eC(e){return Fy(az,e)}var pa=eC();pa.EXPAND_COLUMN=Lr;pa.INTERNAL_HOOKS=bi;pa.Column=xj;pa.ColumnGroup=$j;pa.Summary=Wy;var nf=Zd(null),tC=Zd(null);function iz(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function lz(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,l=e.component,s=e.renderIndex,c=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,v=n.render,p=n.dataIndex,h=n.className,g=n.width,b=$n(tC,["columnsOffset"]),y=b.columnsOffset,C=Yy(t,n,r,o,i),S=C.key,x=C.fixedInfo,E=C.appendCellNode,w=C.additionalCellProps,O=w.style,$=w.colSpan,I=$===void 0?1:$,P=w.rowSpan,N=P===void 0?1:P,M=r-1,R=iz(M,I,y),z=I>1?g-R:0,T=H(H(H({},O),u),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:z,pointerEvents:"auto"}),j=a.useMemo(function(){return f?N<=1:I===0||N===0||N>1},[N,I,f]);j?T.visibility="hidden":f&&(T.height=m==null?void 0:m(N));var _=j?function(){return null}:v,D={};return(N===0||I===0)&&(D.rowSpan=1,D.colSpan=1),a.createElement(ga,ce({className:F(h,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:S,record:c,index:i,renderIndex:s,dataIndex:p,render:_,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:E,additionalProps:H(H({},w),{},{style:T},D)}))}var sz=["data","index","className","rowKey","style","extra","getHeight"],cz=a.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,l=e.style,s=e.extra,c=e.getHeight,u=it(e,sz),d=n.record,f=n.indent,m=n.index,v=$n(Bn,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=v.scrollX,h=v.flattenColumns,g=v.prefixCls,b=v.fixColumn,y=v.componentWidth,C=$n(nf,["getComponent"]),S=C.getComponent,x=qy(d,i,r,f),E=S(["body","row"],"div"),w=S(["body","cell"],"div"),O=x.rowSupportExpand,$=x.expanded,I=x.rowProps,P=x.expandedRowRender,N=x.expandedRowClassName,M;if(O&&$){var R=P(d,r,f+1,$),z=Xy(N,d,r,f),T={};b&&(T={style:B({},"--virtual-width","".concat(y,"px"))});var j="".concat(g,"-expanded-row-cell");M=a.createElement(E,{className:F("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(f+1),z)},a.createElement(ga,{component:w,prefixCls:g,className:F(j,B({},"".concat(j,"-fixed"),b)),additionalProps:T},R))}var _=H(H({},l),{},{width:p});s&&(_.position="absolute",_.pointerEvents="none");var D=a.createElement(E,ce({},I,u,{"data-row-key":i,ref:O?null:t,className:F(o,"".concat(g,"-row"),I==null?void 0:I.className,B({},"".concat(g,"-row-extra"),s)),style:H(H({},_),I==null?void 0:I.style)}),h.map(function(k,V){return a.createElement(lz,{key:V,component:w,rowInfo:x,column:k,colIndex:V,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:c})}));return O?a.createElement("div",{ref:t},D,M):D}),Pg=va(cz),uz=a.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=$n(Bn,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,l=o.onColumnResize,s=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,m=o.direction,v=$n(nf),p=v.sticky,h=v.scrollY,g=v.listItemHeight,b=v.getComponent,y=v.onScroll,C=a.useRef(),S=Gy(n,d,c,s),x=a.useMemo(function(){var M=0;return i.map(function(R){var z=R.width,T=R.minWidth,j=R.key,_=Math.max(z||0,T||0);return M+=_,[j,_,M]})},[i]),E=a.useMemo(function(){return x.map(function(M){return M[2]})},[x]);a.useEffect(function(){x.forEach(function(M){var R=te(M,2),z=R[0],T=R[1];l(z,T)})},[x]),a.useImperativeHandle(t,function(){var M,R={scrollTo:function(T){var j;(j=C.current)===null||j===void 0||j.scrollTo(T)},nativeElement:(M=C.current)===null||M===void 0?void 0:M.nativeElement};return Object.defineProperty(R,"scrollLeft",{get:function(){var T;return((T=C.current)===null||T===void 0?void 0:T.getScrollInfo().x)||0},set:function(T){var j;(j=C.current)===null||j===void 0||j.scrollTo({left:T})}}),Object.defineProperty(R,"scrollTop",{get:function(){var T;return((T=C.current)===null||T===void 0?void 0:T.getScrollInfo().y)||0},set:function(T){var j;(j=C.current)===null||j===void 0||j.scrollTo({top:T})}}),R});var w=function(R,z){var T,j=(T=S[z])===null||T===void 0?void 0:T.record,_=R.onCell;if(_){var D,k=_(j,z);return(D=k==null?void 0:k.rowSpan)!==null&&D!==void 0?D:1}return 1},O=function(R){var z=R.start,T=R.end,j=R.getSize,_=R.offsetY;if(T<0)return null;for(var D=i.filter(function(re){return w(re,z)===0}),k=z,V=function(X){if(D=D.filter(function(oe){return w(oe,X)===0}),!D.length)return k=X,1},K=z;K>=0&&!V(K);K-=1);for(var A=i.filter(function(re){return w(re,T)!==1}),W=T,G=function(X){if(A=A.filter(function(oe){return w(oe,X)!==1}),!A.length)return W=Math.max(X-1,T),1},Y=T;Y<S.length&&!G(Y);Y+=1);for(var ne=[],Q=function(X){var oe=S[X];if(!oe)return 1;i.some(function(ee){return w(ee,X)>1})&&ne.push(X)},J=k;J<=W;J+=1)Q(J);var ie=ne.map(function(re){var X=S[re],oe=s(X.record,re),ee=function(le){var se=re+le-1,ve=s(S[se].record,se),ge=j(oe,ve);return ge.bottom-ge.top},q=j(oe);return a.createElement(Pg,{key:re,data:X,rowKey:oe,index:re,style:{top:-_+q.top},extra:!0,getHeight:ee})});return ie},$=a.useMemo(function(){return{columnsOffset:E}},[E]),I="".concat(u,"-tbody"),P=b(["body","wrapper"]),N={};return p&&(N.position="sticky",N.bottom=0,Ke(p)==="object"&&p.offsetScroll&&(N.bottom=p.offsetScroll)),a.createElement(tC.Provider,{value:$},a.createElement(Yl,{fullHeight:!1,ref:C,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:N},className:I,height:h,itemHeight:g||24,data:S,itemKey:function(R){return s(R.record)},component:P,scrollWidth:f,direction:m,onVirtualScroll:function(R){var z,T=R.x;r({currentTarget:(z=C.current)===null||z===void 0?void 0:z.nativeElement,scrollLeft:T})},onScroll:y,extraRender:O},function(M,R,z){var T=s(M.record,R);return a.createElement(Pg,{data:M,rowKey:T,index:R,style:z.style})}))}),dz=va(uz),fz=function(t,n){var r=n.ref,o=n.onScroll;return a.createElement(dz,{ref:r,data:t,onScroll:o})};function mz(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,l=e.prefixCls,s=l===void 0?Jy:l,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=o||{},v=m.x,p=m.y;typeof v!="number"&&(v=1),typeof p!="number"&&(p=500);var h=At(function(y,C){return Ln(d,y)||C}),g=At(f),b=a.useMemo(function(){return{sticky:i,scrollY:p,listItemHeight:u,getComponent:h,onScroll:g}},[i,p,u,h,g]);return a.createElement(nf.Provider,{value:b},a.createElement(pa,ce({},e,{className:F(c,"".concat(s,"-virtual")),scroll:H(H({},o),{},{x:v}),components:H(H({},d),{},{body:n!=null&&n.length?fz:void 0}),columns:r,internalHooks:bi,tailor:!0,ref:t})))}var vz=a.forwardRef(mz);function nC(e){return Fy(vz,e)}nC();const gz=e=>null,pz=e=>null;var rf=a.createContext(null),hz=a.createContext({}),bz=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,l="".concat(n,"-indent-unit"),s=[],c=0;c<r;c+=1)s.push(a.createElement("span",{key:c,className:F(l,B(B({},"".concat(l,"-start"),o[c]),"".concat(l,"-end"),i[c]))}));return a.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const yz=a.memo(bz);var Cz=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ng="open",Mg="close",Sz="---",Xa=function(t){var n,r,o,i=t.eventKey,l=t.className,s=t.style,c=t.dragOver,u=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,m=t.isStart,v=t.isEnd,p=t.expanded,h=t.selected,g=t.checked,b=t.halfChecked,y=t.loading,C=t.domRef,S=t.active,x=t.data,E=t.onMouseMove,w=t.selectable,O=it(t,Cz),$=U.useContext(rf),I=U.useContext(hz),P=U.useRef(null),N=U.useState(!1),M=te(N,2),R=M[0],z=M[1],T=!!($.disabled||t.disabled||(n=I.nodeDisabled)!==null&&n!==void 0&&n.call(I,x)),j=U.useMemo(function(){return!$.checkable||t.checkable===!1?!1:$.checkable},[$.checkable,t.checkable]),_=function(me){T||$.onNodeSelect(me,ln(t))},D=function(me){T||!j||t.disableCheckbox||$.onNodeCheck(me,ln(t),!g)},k=U.useMemo(function(){return typeof w=="boolean"?w:$.selectable},[w,$.selectable]),V=function(me){$.onNodeClick(me,ln(t)),k?_(me):D(me)},K=function(me){$.onNodeDoubleClick(me,ln(t))},A=function(me){$.onNodeMouseEnter(me,ln(t))},W=function(me){$.onNodeMouseLeave(me,ln(t))},G=function(me){$.onNodeContextMenu(me,ln(t))},Y=U.useMemo(function(){return!!($.draggable&&(!$.draggable.nodeDraggable||$.draggable.nodeDraggable(x)))},[$.draggable,x]),ne=function(me){me.stopPropagation(),z(!0),$.onNodeDragStart(me,t);try{me.dataTransfer.setData("text/plain","")}catch{}},Q=function(me){me.preventDefault(),me.stopPropagation(),$.onNodeDragEnter(me,t)},J=function(me){me.preventDefault(),me.stopPropagation(),$.onNodeDragOver(me,t)},ie=function(me){me.stopPropagation(),$.onNodeDragLeave(me,t)},re=function(me){me.stopPropagation(),z(!1),$.onNodeDragEnd(me,t)},X=function(me){me.preventDefault(),me.stopPropagation(),z(!1),$.onNodeDrop(me,t)},oe=function(me){y||$.onNodeExpand(me,ln(t))},ee=U.useMemo(function(){var he=Fn($.keyEntities,i)||{},me=he.children;return!!(me||[]).length},[$.keyEntities,i]),q=U.useMemo(function(){return f===!1?!1:f||!$.loadData&&!ee||$.loadData&&t.loaded&&!ee},[f,$.loadData,ee,t.loaded]);U.useEffect(function(){y||typeof $.loadData=="function"&&p&&!q&&!t.loaded&&$.onNodeLoad(ln(t))},[y,$.loadData,$.onNodeLoad,p,q,t]);var Z=U.useMemo(function(){var he;return(he=$.draggable)!==null&&he!==void 0&&he.icon?U.createElement("span",{className:"".concat($.prefixCls,"-draggable-icon")},$.draggable.icon):null},[$.draggable]),le=function(me){var $e=t.switcherIcon||$.switcherIcon;return typeof $e=="function"?$e(H(H({},t),{},{isLeaf:me})):$e},se=function(){if(q){var me=le(!0);return me!==!1?U.createElement("span",{className:F("".concat($.prefixCls,"-switcher"),"".concat($.prefixCls,"-switcher-noop"))},me):null}var $e=le(!1);return $e!==!1?U.createElement("span",{onClick:oe,className:F("".concat($.prefixCls,"-switcher"),"".concat($.prefixCls,"-switcher_").concat(p?Ng:Mg))},$e):null},ve=U.useMemo(function(){if(!j)return null;var he=typeof j!="boolean"?j:null;return U.createElement("span",{className:F("".concat($.prefixCls,"-checkbox"),B(B(B({},"".concat($.prefixCls,"-checkbox-checked"),g),"".concat($.prefixCls,"-checkbox-indeterminate"),!g&&b),"".concat($.prefixCls,"-checkbox-disabled"),T||t.disableCheckbox)),onClick:D,role:"checkbox","aria-checked":b?"mixed":g,"aria-disabled":T||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},he)},[j,g,b,T,t.disableCheckbox,t.title]),ge=U.useMemo(function(){return q?null:p?Ng:Mg},[q,p]),ae=U.useMemo(function(){return U.createElement("span",{className:F("".concat($.prefixCls,"-iconEle"),"".concat($.prefixCls,"-icon__").concat(ge||"docu"),B({},"".concat($.prefixCls,"-icon_loading"),y))})},[$.prefixCls,ge,y]),fe=U.useMemo(function(){var he=!!$.draggable,me=!t.disabled&&he&&$.dragOverNodeKey===i;return me?$.dropIndicatorRender({dropPosition:$.dropPosition,dropLevelOffset:$.dropLevelOffset,indent:$.indent,prefixCls:$.prefixCls,direction:$.direction}):null},[$.dropPosition,$.dropLevelOffset,$.indent,$.prefixCls,$.direction,$.draggable,$.dragOverNodeKey,$.dropIndicatorRender]),ue=U.useMemo(function(){var he=t.title,me=he===void 0?Sz:he,$e="".concat($.prefixCls,"-node-content-wrapper"),Se;if($.showIcon){var Re=t.icon||$.icon;Se=Re?U.createElement("span",{className:F("".concat($.prefixCls,"-iconEle"),"".concat($.prefixCls,"-icon__customize"))},typeof Re=="function"?Re(t):Re):ae}else $.loadData&&y&&(Se=ae);var be;return typeof me=="function"?be=me(x):$.titleRender?be=$.titleRender(x):be=me,U.createElement("span",{ref:P,title:typeof me=="string"?me:"",className:F($e,"".concat($e,"-").concat(ge||"normal"),B({},"".concat($.prefixCls,"-node-selected"),!T&&(h||R))),onMouseEnter:A,onMouseLeave:W,onContextMenu:G,onClick:V,onDoubleClick:K},Se,U.createElement("span",{className:"".concat($.prefixCls,"-title")},be),fe)},[$.prefixCls,$.showIcon,t,$.icon,ae,$.titleRender,x,ge,A,W,G,V,K]),de=xn(O,{aria:!0,data:!0}),xe=Fn($.keyEntities,i)||{},we=xe.level,Le=v[v.length-1],je=!T&&Y,Oe=$.draggingNodeKey===i,Te=w!==void 0?{"aria-selected":!!w}:void 0;return U.createElement("div",ce({ref:C,role:"treeitem","aria-expanded":f?void 0:p,className:F(l,"".concat($.prefixCls,"-treenode"),(o={},B(B(B(B(B(B(B(B(B(B(o,"".concat($.prefixCls,"-treenode-disabled"),T),"".concat($.prefixCls,"-treenode-switcher-").concat(p?"open":"close"),!f),"".concat($.prefixCls,"-treenode-checkbox-checked"),g),"".concat($.prefixCls,"-treenode-checkbox-indeterminate"),b),"".concat($.prefixCls,"-treenode-selected"),h),"".concat($.prefixCls,"-treenode-loading"),y),"".concat($.prefixCls,"-treenode-active"),S),"".concat($.prefixCls,"-treenode-leaf-last"),Le),"".concat($.prefixCls,"-treenode-draggable"),Y),"dragging",Oe),B(B(B(B(B(B(B(o,"drop-target",$.dropTargetKey===i),"drop-container",$.dropContainerKey===i),"drag-over",!T&&c),"drag-over-gap-top",!T&&u),"drag-over-gap-bottom",!T&&d),"filter-node",(r=$.filterTreeNode)===null||r===void 0?void 0:r.call($,ln(t))),"".concat($.prefixCls,"-treenode-leaf"),q))),style:s,draggable:je,onDragStart:je?ne:void 0,onDragEnter:Y?Q:void 0,onDragOver:Y?J:void 0,onDragLeave:Y?ie:void 0,onDrop:Y?X:void 0,onDragEnd:Y?re:void 0,onMouseMove:E},Te,de),U.createElement(yz,{prefixCls:$.prefixCls,level:we,isStart:m,isEnd:v}),Z,se(),ve,ue)};Xa.isTreeNode=1;function hr(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Ir(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function of(e){return e.split("-")}function xz(e,t){var n=[],r=Fn(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(l){var s=l.key,c=l.children;n.push(s),o(c)})}return o(r.children),n}function $z(e){if(e.parent){var t=of(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function wz(e){var t=of(e.pos);return Number(t[t.length-1])===0}function Tg(e,t,n,r,o,i,l,s,c,u){var d,f=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),p=v.top,h=v.height,g=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),b=(g-12)/r,y=c.filter(function(T){var j;return(j=s[T])===null||j===void 0||(j=j.children)===null||j===void 0?void 0:j.length}),C=Fn(s,n.eventKey);if(m<p+h/2){var S=l.findIndex(function(T){return T.key===C.key}),x=S<=0?0:S-1,E=l[x].key;C=Fn(s,E)}var w=C.key,O=C,$=C.key,I=0,P=0;if(!y.includes(w))for(var N=0;N<b&&$z(C);N+=1)C=C.parent,P+=1;var M=t.data,R=C.node,z=!0;return wz(C)&&C.level===0&&m<p+h/2&&i({dragNode:M,dropNode:R,dropPosition:-1})&&C.key===n.eventKey?I=-1:(O.children||[]).length&&y.includes($)?i({dragNode:M,dropNode:R,dropPosition:0})?I=0:z=!1:P===0?b>-1.5?i({dragNode:M,dropNode:R,dropPosition:1})?I=1:z=!1:i({dragNode:M,dropNode:R,dropPosition:0})?I=0:i({dragNode:M,dropNode:R,dropPosition:1})?I=1:z=!1:i({dragNode:M,dropNode:R,dropPosition:1})?I=1:z=!1,{dropPosition:I,dropLevelOffset:P,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:$,dropContainerKey:I===0?null:((d=C.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:z}}function jg(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function lc(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ke(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Gt(!1,"`checkedKeys` is not an array or an object"),null;return t}function Pu(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=Fn(t,o);if(i){n.add(o);var l=i.parent,s=i.node;s.disabled||l&&r(l.key)}}}return(e||[]).forEach(function(o){r(o)}),pe(n)}const Dr={},Nu="SELECT_ALL",Mu="SELECT_INVERT",Tu="SELECT_NONE",zg=[],rC=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&rC(e,r[e],n)}),n),Ez=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,getTitleCheckboxProps:l,onChange:s,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:v,type:p,selections:h,fixed:g,renderCell:b,hideSelectAll:y,checkStrictly:C=!0}=t||{},{prefixCls:S,data:x,pageData:E,getRecordByKey:w,getRowKey:O,expandType:$,childrenColumnName:I,locale:P,getPopupContainer:N}=e,M=Er(),[R,z]=z$(X=>X),[T,j]=Wt(r||o||zg,{value:r}),_=a.useRef(new Map),D=a.useCallback(X=>{if(n){const oe=new Map;X.forEach(ee=>{let q=w(ee);!q&&_.current.has(ee)&&(q=_.current.get(ee)),oe.set(ee,q)}),_.current=oe}},[w,n]);a.useEffect(()=>{D(T)},[T]);const k=a.useMemo(()=>rC(I,E),[I,E]),{keyEntities:V}=a.useMemo(()=>{if(C)return{keyEntities:null};let X=x;if(n){const oe=new Set(k.map((q,Z)=>O(q,Z))),ee=Array.from(_.current).reduce((q,[Z,le])=>oe.has(Z)?q:q.concat(le),[]);X=[].concat(pe(X),pe(ee))}return Fd(X,{externalGetKey:O,childrenPropName:I})},[x,O,C,I,n,k]),K=a.useMemo(()=>{const X=new Map;return k.forEach((oe,ee)=>{const q=O(oe,ee),Z=(i?i(oe):null)||{};X.set(q,Z)}),X},[k,O,i]),A=a.useCallback(X=>{const oe=O(X);let ee;return K.has(oe)?ee=K.get(O(X)):ee=i?i(X):void 0,!!(ee!=null&&ee.disabled)},[K,O]),[W,G]=a.useMemo(()=>{if(C)return[T||[],[]];const{checkedKeys:X,halfCheckedKeys:oe}=Wo(T,!0,V,A);return[X||[],oe]},[T,C,V,A]),Y=a.useMemo(()=>{const X=p==="radio"?W.slice(0,1):W;return new Set(X)},[W,p]),ne=a.useMemo(()=>p==="radio"?new Set:new Set(G),[G,p]);a.useEffect(()=>{t||j(zg)},[!!t]);const Q=a.useCallback((X,oe)=>{let ee,q;D(X),n?(ee=X,q=X.map(Z=>_.current.get(Z))):(ee=[],q=[],X.forEach(Z=>{const le=w(Z);le!==void 0&&(ee.push(Z),q.push(le))})),j(ee),s==null||s(ee,q,{type:oe})},[j,w,s,n]),J=a.useCallback((X,oe,ee,q)=>{if(c){const Z=ee.map(le=>w(le));c(w(X),oe,Z,q)}Q(ee,"single")},[c,w,Q]),ie=a.useMemo(()=>!h||y?null:(h===!0?[Nu,Mu,Tu]:h).map(oe=>oe===Nu?{key:"all",text:P.selectionAll,onSelect(){Q(x.map((ee,q)=>O(ee,q)).filter(ee=>{const q=K.get(ee);return!(q!=null&&q.disabled)||Y.has(ee)}),"all")}}:oe===Mu?{key:"invert",text:P.selectInvert,onSelect(){const ee=new Set(Y);E.forEach((Z,le)=>{const se=O(Z,le),ve=K.get(se);ve!=null&&ve.disabled||(ee.has(se)?ee.delete(se):ee.add(se))});const q=Array.from(ee);d&&(M.deprecated(!1,"onSelectInvert","onChange"),d(q)),Q(q,"invert")}}:oe===Tu?{key:"none",text:P.selectNone,onSelect(){f==null||f(),Q(Array.from(Y).filter(ee=>{const q=K.get(ee);return q==null?void 0:q.disabled}),"none")}}:oe).map(oe=>Object.assign(Object.assign({},oe),{onSelect:(...ee)=>{var q,Z;(Z=oe.onSelect)===null||Z===void 0||(q=Z).call.apply(q,[oe].concat(ee)),z(null)}})),[h,Y,E,O,d,Q]);return[a.useCallback(X=>{var oe;if(!t)return X.filter(he=>he!==Dr);let ee=pe(X);const q=new Set(Y),Z=k.map(O).filter(he=>!K.get(he).disabled),le=Z.every(he=>q.has(he)),se=Z.some(he=>q.has(he)),ve=()=>{const he=[];le?Z.forEach($e=>{q.delete($e),he.push($e)}):Z.forEach($e=>{q.has($e)||(q.add($e),he.push($e))});const me=Array.from(q);u==null||u(!le,me.map($e=>w($e)),he.map($e=>w($e))),Q(me,"all"),z(null)};let ge,ae;if(p!=="radio"){let he;if(ie){const ke={getPopupContainer:N,items:ie.map((gt,ht)=>{const{key:Pe,text:We,onSelect:Ye}=gt;return{key:Pe??ht,onClick:()=>{Ye==null||Ye(Z)},label:We}})};he=a.createElement("div",{className:`${S}-selection-extra`},a.createElement(Ud,{menu:ke,getPopupContainer:N},a.createElement("span",null,a.createElement(Ed,null))))}const me=k.map((ke,gt)=>{const ht=O(ke,gt),Pe=K.get(ht)||{};return Object.assign({checked:q.has(ht)},Pe)}).filter(({disabled:ke})=>ke),$e=!!me.length&&me.length===k.length,Se=$e&&me.every(({checked:ke})=>ke),Re=$e&&me.some(({checked:ke})=>ke),be=(l==null?void 0:l())||{},{onChange:Ie,disabled:De}=be;ae=a.createElement(na,Object.assign({"aria-label":he?"Custom selection":"Select all"},be,{checked:$e?Se:!!k.length&&le,indeterminate:$e?!Se&&Re:!le&&se,onChange:ke=>{ve(),Ie==null||Ie(ke)},disabled:De??(k.length===0||$e),skipGroup:!0})),ge=!y&&a.createElement("div",{className:`${S}-selection`},ae,he)}let fe;p==="radio"?fe=(he,me,$e)=>{const Se=O(me,$e),Re=q.has(Se),be=K.get(Se);return{node:a.createElement(fi,Object.assign({},be,{checked:Re,onClick:Ie=>{var De;Ie.stopPropagation(),(De=be==null?void 0:be.onClick)===null||De===void 0||De.call(be,Ie)},onChange:Ie=>{var De;q.has(Se)||J(Se,!0,[Se],Ie.nativeEvent),(De=be==null?void 0:be.onChange)===null||De===void 0||De.call(be,Ie)}})),checked:Re}}:fe=(he,me,$e)=>{var Se;const Re=O(me,$e),be=q.has(Re),Ie=ne.has(Re),De=K.get(Re);let ke;return $==="nest"?ke=Ie:ke=(Se=De==null?void 0:De.indeterminate)!==null&&Se!==void 0?Se:Ie,{node:a.createElement(na,Object.assign({},De,{indeterminate:ke,checked:be,skipGroup:!0,onClick:gt=>{var ht;gt.stopPropagation(),(ht=De==null?void 0:De.onClick)===null||ht===void 0||ht.call(De,gt)},onChange:gt=>{var ht;const{nativeEvent:Pe}=gt,{shiftKey:We}=Pe,Ye=Z.indexOf(Re),_e=W.some(Ge=>Z.includes(Ge));if(We&&C&&_e){const Ge=R(Ye,Z,q),vt=Array.from(q);m==null||m(!be,vt.map(dt=>w(dt)),Ge.map(dt=>w(dt))),Q(vt,"multiple")}else{const Ge=W;if(C){const vt=be?hr(Ge,Re):Ir(Ge,Re);J(Re,!be,vt,Pe)}else{const vt=Wo([].concat(pe(Ge),[Re]),!0,V,A),{checkedKeys:dt,halfCheckedKeys:Ae}=vt;let Je=dt;if(be){const Ue=new Set(dt);Ue.delete(Re),Je=Wo(Array.from(Ue),{halfCheckedKeys:Ae},V,A).checkedKeys}J(Re,!be,Je,Pe)}}z(be?null:Ye),(ht=De==null?void 0:De.onChange)===null||ht===void 0||ht.call(De,gt)}})),checked:be}};const ue=(he,me,$e)=>{const{node:Se,checked:Re}=fe(he,me,$e);return b?b(Re,me,$e,Se):Se};if(!ee.includes(Dr))if(ee.findIndex(he=>{var me;return((me=he[Ta])===null||me===void 0?void 0:me.columnType)==="EXPAND_COLUMN"})===0){const[he,...me]=ee;ee=[he,Dr].concat(pe(me))}else ee=[Dr].concat(pe(ee));const de=ee.indexOf(Dr);ee=ee.filter((he,me)=>he!==Dr||me===de);const xe=ee[de-1],we=ee[de+1];let Le=g;Le===void 0&&((we==null?void 0:we.fixed)!==void 0?Le=we.fixed:(xe==null?void 0:xe.fixed)!==void 0&&(Le=xe.fixed)),Le&&xe&&((oe=xe[Ta])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"&&xe.fixed===void 0&&(xe.fixed=Le);const je=F(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:h&&p==="checkbox"}),Oe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ae):t.columnTitle:ge,Te={fixed:Le,width:v,className:`${S}-selection-column`,title:Oe(),render:ue,onCell:t.onCell,align:t.align,[Ta]:{className:je}};return ee.map(he=>he===Dr?Te:he)},[O,k,t,W,Y,ne,v,ie,$,K,m,J,A]),Y]};function Oz(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:l}=t,s=`${n}-row-expand-icon`;return a.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:F(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&i,[`${s}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function Iz(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const l=getComputedStyle(o),s=Number.parseInt(l.borderLeftWidth,10),c=Number.parseInt(l.borderRightWidth,10);i=r-s-c}return i}}const qr=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function ha(e,t){return t?`${t}-${e}`:`${e}`}const ds=(e,t)=>typeof e=="function"?e(t):e,Rz=(e,t)=>{const n=ds(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var Pz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Nz=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:Pz}))},Mz=a.forwardRef(Nz),Tz=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o;break}return U.createElement("div",{style:i})};function oC(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function jz(e,t){var n=a.useState(!1),r=te(n,2),o=r[0],i=r[1];wt(function(){if(o)return e(),function(){t()}},[o]),wt(function(){return i(!0),function(){i(!1)}},[])}var zz=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_z=a.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,l=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=it(e,zz),m=a.useState(!0),v=te(m,2),p=v[0],h=v[1],g=a.useContext(rf),b=g.prefixCls,y=i&&l!=="hide";wt(function(){i&&y!==p&&h(y)},[i]);var C=function(){i&&s()},S=a.useRef(!1),x=function(){i&&!S.current&&(S.current=!0,c())};jz(C,x);var E=function(O){y===O&&x()};return i?a.createElement(Hn,ce({ref:t,visible:p},o,{motionAppear:l==="show",onVisibleChanged:E}),function(w,O){var $=w.className,I=w.style;return a.createElement("div",{ref:O,className:F("".concat(b,"-treenode-motion"),$),style:I},i.map(function(P){var N=Object.assign({},(oC(P.data),P.data)),M=P.title,R=P.key,z=P.isStart,T=P.isEnd;delete N.children;var j=Ma(R,d);return a.createElement(Xa,ce({},N,j,{title:M,active:u,data:P.data,key:R,isStart:z,isEnd:T}))}))}):a.createElement(Xa,ce({domRef:t,className:n,style:r},f,{active:u}))});function Bz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,l){var s=new Map;i.forEach(function(u){s.set(u,!0)});var c=l.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function _g(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],i=t.findIndex(function(s){return s.key===n});if(o){var l=t.findIndex(function(s){return s.key===o.key});return t.slice(i+1,l)}return t.slice(i+1)}var Dz=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Bg={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Lz=function(){},ho="RC_TREE_MOTION_".concat(Math.random()),ju={key:ho},aC={key:ho,level:0,index:0,pos:"0",node:ju,nodes:[ju]},Dg={parent:null,children:[],pos:aC.pos,data:ju,title:null,key:ho,isStart:[],isEnd:[]};function Lg(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Ag(e){var t=e.key,n=e.pos;return vi(t,n)}function Az(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var Hz=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,l=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,v=e.dragOverNodeKey,p=e.dropPosition,h=e.motion,g=e.height,b=e.itemHeight,y=e.virtual,C=e.scrollWidth,S=e.focusable,x=e.activeItem,E=e.focused,w=e.tabIndex,O=e.onKeyDown,$=e.onFocus,I=e.onBlur,P=e.onActiveChange,N=e.onListChangeStart,M=e.onListChangeEnd,R=it(e,Dz),z=a.useRef(null),T=a.useRef(null);a.useImperativeHandle(t,function(){return{scrollTo:function(fe){z.current.scrollTo(fe)},getIndentWidth:function(){return T.current.offsetWidth}}});var j=a.useState(o),_=te(j,2),D=_[0],k=_[1],V=a.useState(r),K=te(V,2),A=K[0],W=K[1],G=a.useState(r),Y=te(G,2),ne=Y[0],Q=Y[1],J=a.useState([]),ie=te(J,2),re=ie[0],X=ie[1],oe=a.useState(null),ee=te(oe,2),q=ee[0],Z=ee[1],le=a.useRef(r);le.current=r;function se(){var ae=le.current;W(ae),Q(ae),X([]),Z(null),M()}wt(function(){k(o);var ae=Bz(D,o);if(ae.key!==null)if(ae.add){var fe=A.findIndex(function(je){var Oe=je.key;return Oe===ae.key}),ue=Lg(_g(A,r,ae.key),y,g,b),de=A.slice();de.splice(fe+1,0,Dg),Q(de),X(ue),Z("show")}else{var xe=r.findIndex(function(je){var Oe=je.key;return Oe===ae.key}),we=Lg(_g(r,A,ae.key),y,g,b),Le=r.slice();Le.splice(xe+1,0,Dg),Q(Le),X(we),Z("hide")}else A!==r&&(W(r),Q(r))},[o,r]),a.useEffect(function(){m||se()},[m]);var ve=h?ne:r,ge={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:c,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:v,dropPosition:p,keyEntities:d};return a.createElement(a.Fragment,null,E&&x&&a.createElement("span",{style:Bg,"aria-live":"assertive"},Az(x)),a.createElement("div",null,a.createElement("input",{style:Bg,disabled:S===!1||f,tabIndex:S!==!1?w:null,onKeyDown:O,onFocus:$,onBlur:I,value:"",onChange:Lz,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(n,"-indent")},a.createElement("div",{ref:T,className:"".concat(n,"-indent-unit")}))),a.createElement(Yl,ce({},R,{data:ve,itemKey:Ag,height:g,fullHeight:!1,virtual:y,itemHeight:b,scrollWidth:C,prefixCls:"".concat(n,"-list"),ref:z,role:"tree",onVisibleChange:function(fe){fe.every(function(ue){return Ag(ue)!==ho})&&se()}}),function(ae){var fe=ae.pos,ue=Object.assign({},(oC(ae.data),ae.data)),de=ae.title,xe=ae.key,we=ae.isStart,Le=ae.isEnd,je=vi(xe,fe);delete ue.key,delete ue.children;var Oe=Ma(je,ge);return a.createElement(_z,ce({},ue,Oe,{title:de,active:!!x&&xe===x.key,pos:fe,data:ae.data,isStart:we,isEnd:Le,motion:h,motionNodes:xe===ho?re:null,motionType:q,onMotionStart:N,onMotionEnd:se,treeNodeRequiredProps:ge,onMouseMove:function(){P(null)}}))}))}),Fz=10,af=(function(e){mr(n,e);var t=wr(n);function n(){var r;Qt(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=t.call.apply(t,[this].concat(i)),B(qe(r),"destroyed",!1),B(qe(r),"delayedDragEnterLogic",void 0),B(qe(r),"loadingRetryTimes",{}),B(qe(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:ta()}),B(qe(r),"dragStartMousePosition",null),B(qe(r),"dragNodeProps",null),B(qe(r),"currentMouseOverDroppableNodeKey",null),B(qe(r),"listRef",a.createRef()),B(qe(r),"onNodeDragStart",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,v=c.eventKey;r.dragNodeProps=c,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var p=hr(d,v);r.setState({draggingNodeKey:v,dragChildrenKeys:xz(v,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(p),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:s,node:ln(c)})}),B(qe(r),"onNodeDragEnter",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,v=u.flattenNodes,p=u.indent,h=r.props,g=h.onDragEnter,b=h.onExpand,y=h.allowDrop,C=h.direction,S=c.pos,x=c.eventKey;if(r.currentMouseOverDroppableNodeKey!==x&&(r.currentMouseOverDroppableNodeKey=x),!r.dragNodeProps){r.resetDragState();return}var E=Tg(s,r.dragNodeProps,c,p,r.dragStartMousePosition,y,v,f,d,C),w=E.dropPosition,O=E.dropLevelOffset,$=E.dropTargetKey,I=E.dropContainerKey,P=E.dropTargetPos,N=E.dropAllowed,M=E.dragOverNodeKey;if(m.includes($)||!N){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(R){clearTimeout(r.delayedDragEnterLogic[R])}),r.dragNodeProps.eventKey!==c.eventKey&&(s.persist(),r.delayedDragEnterLogic[S]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var R=pe(d),z=Fn(f,c.eventKey);z&&(z.children||[]).length&&(R=Ir(d,c.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(R),b==null||b(R,{node:ln(c),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===$&&O===0){r.resetDragState();return}r.setState({dragOverNodeKey:M,dropPosition:w,dropLevelOffset:O,dropTargetKey:$,dropContainerKey:I,dropTargetPos:P,dropAllowed:N}),g==null||g({event:s,node:ln(c),expandedKeys:d})}),B(qe(r),"onNodeDragOver",function(s,c){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,v=u.expandedKeys,p=u.indent,h=r.props,g=h.onDragOver,b=h.allowDrop,y=h.direction;if(r.dragNodeProps){var C=Tg(s,r.dragNodeProps,c,p,r.dragStartMousePosition,b,f,m,v,y),S=C.dropPosition,x=C.dropLevelOffset,E=C.dropTargetKey,w=C.dropContainerKey,O=C.dropTargetPos,$=C.dropAllowed,I=C.dragOverNodeKey;d.includes(E)||!$||(r.dragNodeProps.eventKey===E&&x===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():S===r.state.dropPosition&&x===r.state.dropLevelOffset&&E===r.state.dropTargetKey&&w===r.state.dropContainerKey&&O===r.state.dropTargetPos&&$===r.state.dropAllowed&&I===r.state.dragOverNodeKey||r.setState({dropPosition:S,dropLevelOffset:x,dropTargetKey:E,dropContainerKey:w,dropTargetPos:O,dropAllowed:$,dragOverNodeKey:I}),g==null||g({event:s,node:ln(c)}))}}),B(qe(r),"onNodeDragLeave",function(s,c){r.currentMouseOverDroppableNodeKey===c.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:s,node:ln(c)})}),B(qe(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),B(qe(r),"onNodeDragEnd",function(s,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:s,node:ln(c)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),B(qe(r),"onNodeDrop",function(s,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,v=f.dropPosition,p=f.dropTargetKey,h=f.dropTargetPos,g=f.dropAllowed;if(g){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),p!==null){var y=H(H({},Ma(p,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===p,data:Fn(r.state.keyEntities,p).node}),C=m.includes(p);Gt(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=of(h),x={event:s,node:ln(y),dragNode:r.dragNodeProps?ln(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:v!==0,dropPosition:v+Number(S[S.length-1])};d||b==null||b(x),r.dragNodeProps=null}}}),B(qe(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),B(qe(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,v=c.key,p=c.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var h=f.filter(function(b){return b.key===v})[0],g=ln(H(H({},Ma(v,r.getTreeNodeRequiredProps())),{},{data:h.data}));r.setExpandedKeys(m?hr(d,v):Ir(d,v)),r.onNodeExpand(s,g)}}),B(qe(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),B(qe(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),B(qe(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,v=r.props,p=v.onSelect,h=v.multiple,g=c.selected,b=c[m.key],y=!g;y?h?u=Ir(u,b):u=[b]:u=hr(u,b);var C=u.map(function(S){var x=Fn(f,S);return x?x.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),p==null||p(u,{event:"select",selected:y,node:c,selectedNodes:C,nativeEvent:s.nativeEvent})}),B(qe(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,v=d.halfCheckedKeys,p=r.props,h=p.checkStrictly,g=p.onCheck,b=c.key,y,C={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(h){var S=u?Ir(m,b):hr(m,b),x=hr(v,b);y={checked:S,halfChecked:x},C.checkedNodes=S.map(function(P){return Fn(f,P)}).filter(Boolean).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:S})}else{var E=Wo([].concat(pe(m),[b]),!0,f),w=E.checkedKeys,O=E.halfCheckedKeys;if(!u){var $=new Set(w);$.delete(b);var I=Wo(Array.from($),{halfCheckedKeys:O},f);w=I.checkedKeys,O=I.halfCheckedKeys}y=w,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=O,w.forEach(function(P){var N=Fn(f,P);if(N){var M=N.node,R=N.pos;C.checkedNodes.push(M),C.checkedNodesPositions.push({node:M,pos:R})}}),r.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:O})}g==null||g(y,C)}),B(qe(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=Fn(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(v,p){r.setState(function(h){var g=h.loadedKeys,b=g===void 0?[]:g,y=h.loadingKeys,C=y===void 0?[]:y,S=r.props,x=S.loadData,E=S.onLoad;if(!x||b.includes(u)||C.includes(u))return null;var w=x(s);return w.then(function(){var O=r.state.loadedKeys,$=Ir(O,u);E==null||E($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(I){return{loadingKeys:hr(I.loadingKeys,u)}}),v()}).catch(function(O){if(r.setState(function(I){return{loadingKeys:hr(I.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=Fz){var $=r.state.loadedKeys;Gt(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ir($,u)}),v()}p(O)}),{loadingKeys:Ir(C,u)}})});return m.catch(function(){}),m}}),B(qe(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),B(qe(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),B(qe(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),B(qe(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),B(qe(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),B(qe(r),"getTreeNodeRequiredProps",function(){var s=r.state,c=s.expandedKeys,u=s.selectedKeys,d=s.loadedKeys,f=s.loadingKeys,m=s.checkedKeys,v=s.halfCheckedKeys,p=s.dragOverNodeKey,h=s.dropPosition,g=s.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:v||[],dragOverNodeKey:p,dropPosition:h,keyEntities:g}}),B(qe(r),"setExpandedKeys",function(s){var c=r.state,u=c.treeData,d=c.fieldNames,f=Zs(u,s,d);r.setUncontrolledState({expandedKeys:s,flattenNodes:f},!0)}),B(qe(r),"onNodeExpand",function(s,c){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,v=r.props,p=v.onExpand,h=v.loadData,g=c.expanded,b=c[m.key];if(!f){var y=u.includes(b),C=!g;if(Gt(g&&y||!g&&!y,"Expand state not sync with index check"),u=C?Ir(u,b):hr(u,b),r.setExpandedKeys(u),p==null||p(u,{node:c,expanded:C,nativeEvent:s.nativeEvent}),C&&h){var S=r.onNodeLoad(c);S&&S.then(function(){var x=Zs(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:x})}).catch(function(){var x=r.state.expandedKeys,E=hr(x,b);r.setExpandedKeys(E)})}}}),B(qe(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),B(qe(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),B(qe(r),"onActiveChange",function(s){var c=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;c!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:m}),d==null||d(s))}),B(qe(r),"getActiveItem",function(){var s=r.state,c=s.activeKey,u=s.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),B(qe(r),"offsetActiveKey",function(s){var c=r.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(p){var h=p.key;return h===d});f===-1&&s<0&&(f=u.length),f=(f+s+u.length)%u.length;var m=u[f];if(m){var v=m.key;r.onActiveChange(v)}else r.onActiveChange(null)}),B(qe(r),"onKeyDown",function(s){var c=r.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,m=c.fieldNames,v=r.props,p=v.onKeyDown,h=v.checkable,g=v.selectable;switch(s.which){case Be.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Be.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var b=r.getActiveItem();if(b&&b.data){var y=r.getTreeNodeRequiredProps(),C=b.data.isLeaf===!1||!!(b.data[m.children]||[]).length,S=ln(H(H({},Ma(u,y)),{},{data:b.data,active:!0}));switch(s.which){case Be.LEFT:{C&&d.includes(u)?r.onNodeExpand({},S):b.parent&&r.onActiveChange(b.parent.key),s.preventDefault();break}case Be.RIGHT:{C&&!d.includes(u)?r.onNodeExpand({},S):b.children&&b.children.length&&r.onActiveChange(b.children[0].key),s.preventDefault();break}case Be.ENTER:case Be.SPACE:{h&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!f.includes(u)):!h&&g&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}p==null||p(s)}),B(qe(r),"setUncontrolledState",function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(v){if(r.props.hasOwnProperty(v)){f=!1;return}d=!0,m[v]=s[v]}),d&&(!c||f)&&r.setState(H(H({},m),u))}}),B(qe(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Zt(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,l=o.itemScrollOffset,s=l===void 0?0:l;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,i=o.focused,l=o.flattenNodes,s=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,v=o.dropPosition,p=o.dragOverNodeKey,h=o.indent,g=this.props,b=g.prefixCls,y=g.className,C=g.style,S=g.showLine,x=g.focusable,E=g.tabIndex,w=E===void 0?0:E,O=g.selectable,$=g.showIcon,I=g.icon,P=g.switcherIcon,N=g.draggable,M=g.checkable,R=g.checkStrictly,z=g.disabled,T=g.motion,j=g.loadData,_=g.filterTreeNode,D=g.height,k=g.itemHeight,V=g.scrollWidth,K=g.virtual,A=g.titleRender,W=g.dropIndicatorRender,G=g.onContextMenu,Y=g.onScroll,ne=g.direction,Q=g.rootClassName,J=g.rootStyle,ie=xn(this.props,{aria:!0,data:!0}),re;N&&(Ke(N)==="object"?re=N:typeof N=="function"?re={nodeDraggable:N}:re={});var X={prefixCls:b,selectable:O,showIcon:$,icon:I,switcherIcon:P,draggable:re,draggingNodeKey:c,checkable:M,checkStrictly:R,disabled:z,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:v,dragOverNodeKey:p,indent:h,direction:ne,dropIndicatorRender:W,loadData:j,filterTreeNode:_,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return a.createElement(rf.Provider,{value:X},a.createElement("div",{className:F(b,y,Q,B(B(B({},"".concat(b,"-show-line"),S),"".concat(b,"-focused"),i),"".concat(b,"-active-focused"),u!==null)),style:J},a.createElement(Hz,ce({ref:this.listRef,prefixCls:b,style:C,data:l,disabled:z,selectable:O,checkable:!!M,motion:T,dragging:c!==null,height:D,itemHeight:k,virtual:K,focusable:x,focused:i,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:G,onScroll:Y,scrollWidth:V},this.getTreeNodeRequiredProps(),ie))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var l=i.prevProps,s={prevProps:o};function c(w){return!l&&o.hasOwnProperty(w)||l&&l[w]!==o[w]}var u,d=i.fieldNames;if(c("fieldNames")&&(d=ta(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Gt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=sy(o.children)),u){s.treeData=u;var f=Fd(u,{fieldNames:d});s.keyEntities=H(B({},ho,aC),f.keyEntities)}var m=s.keyEntities||i.keyEntities;if(c("expandedKeys")||l&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!l&&o.defaultExpandParent?Pu(o.expandedKeys,m):o.expandedKeys;else if(!l&&o.defaultExpandAll){var v=H({},m);delete v[ho];var p=[];Object.keys(v).forEach(function(w){var O=v[w];O.children&&O.children.length&&p.push(O.key)}),s.expandedKeys=p}else!l&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Pu(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var h=Zs(u||i.treeData,s.expandedKeys||i.expandedKeys,d);s.flattenNodes=h}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=jg(o.selectedKeys,o):!l&&o.defaultSelectedKeys&&(s.selectedKeys=jg(o.defaultSelectedKeys,o))),o.checkable){var g;if(c("checkedKeys")?g=lc(o.checkedKeys)||{}:!l&&o.defaultCheckedKeys?g=lc(o.defaultCheckedKeys)||{}:u&&(g=lc(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),g){var b=g,y=b.checkedKeys,C=y===void 0?[]:y,S=b.halfCheckedKeys,x=S===void 0?[]:S;if(!o.checkStrictly){var E=Wo(C,!0,m);C=E.checkedKeys,x=E.halfCheckedKeys}s.checkedKeys=C,s.halfCheckedKeys=x}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n})(a.Component);B(af,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Tz,allowDrop:function(){return!0},expandAction:!1});B(af,"TreeNode",Xa);var kz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Vz=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:kz}))},iC=a.forwardRef(Vz),Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Kz=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:Wz}))},Gz=a.forwardRef(Kz),qz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Uz=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:qz}))},Xz=a.forwardRef(Uz),Yz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Qz=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:Yz}))},Zz=a.forwardRef(Qz);const Jz=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:i,controlItemBgHover:l})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:i},"&:hover:before":{background:l}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),e_=new xt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),t_=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),n_=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${L(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),r_=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:l,nodeSelectedBg:s,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},Nt(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:ur(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:e_,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:L(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},t_(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},n_(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${L(t.calc(i).div(2).equal())} !important`}})}},o_=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),l=Ct(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[r_(e,l),n&&Jz(l)].filter(Boolean)},a_=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},i_=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},a_(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},l_=Et("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:uy(`${t}-checkbox`,e)},o_(t,e),Dl(e)],i_),Hg=4;function s_(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,l=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",c={[l]:-n*o+Hg,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=o+Hg;break}return U.createElement("div",{style:c,className:`${r}-drop-indicator`})}var c_={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},u_=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:c_}))},d_=a.forwardRef(u_),f_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},m_=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:f_}))},v_=a.forwardRef(m_),g_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},p_=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:g_}))},h_=a.forwardRef(p_);const b_=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:i,showLine:l,switcherLoadingIcon:s}=e,{isLeaf:c,expanded:u,loading:d}=i;if(d)return a.isValidElement(s)?s:a.createElement(xo,{className:`${r}-switcher-loading-icon`});let f;if(l&&typeof l=="object"&&(f=l.showLeafIcon),c){if(!l)return null;if(typeof f!="boolean"&&f){const p=typeof f=="function"?f(i):f,h=`${r}-switcher-line-custom-icon`;return a.isValidElement(p)?un(p,{className:F((t=p.props)===null||t===void 0?void 0:t.className,h)}):p}return f?a.createElement(iC,{className:`${r}-switcher-line-icon`}):a.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,v=typeof o=="function"?o(i):o;return a.isValidElement(v)?un(v,{className:F((n=v.props)===null||n===void 0?void 0:n.className,m)}):v!==void 0?v:l?u?a.createElement(v_,{className:`${r}-switcher-line-icon`}):a.createElement(h_,{className:`${r}-switcher-line-icon`}):a.createElement(d_,{className:m})},lC=U.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:l}=U.useContext(tt),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:v=!1,children:p,checkable:h=!1,selectable:g=!0,draggable:b,disabled:y,motion:C,style:S}=e,x=r("tree",s),E=r(),w=U.useContext(kn),O=y??w,$=C??Object.assign(Object.assign({},Fa(E)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:h,selectable:g,showIcon:u,motion:$,blockNode:v,disabled:O,showLine:!!d,dropIndicatorRender:s_}),[P,N,M]=l_(x),[,R]=pn(),z=R.paddingXS/2+(((n=R.Tree)===null||n===void 0?void 0:n.titleHeight)||R.controlHeightSM),T=U.useMemo(()=>{if(!b)return!1;let _={};switch(typeof b){case"function":_.nodeDraggable=b;break;case"object":_=Object.assign({},b);break}return _.icon!==!1&&(_.icon=_.icon||U.createElement(Zz,null)),_},[b]),j=_=>U.createElement(b_,{prefixCls:x,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:_,showLine:d});return P(U.createElement(af,Object.assign({itemHeight:z,ref:t,virtual:i},I,{style:Object.assign(Object.assign({},l==null?void 0:l.style),S),prefixCls:x,className:F({[`${x}-icon-hide`]:!u,[`${x}-block-node`]:v,[`${x}-unselectable`]:!g,[`${x}-rtl`]:o==="rtl",[`${x}-disabled`]:O},l==null?void 0:l.className,c,N,M),direction:o,checkable:h&&U.createElement("span",{className:`${x}-checkbox-inner`}),selectable:g,switcherIcon:j,draggable:T}),p))}),Fg=0,sc=1,kg=2;function lf(e,t,n){const{key:r,children:o}=n;function i(l){const s=l[r],c=l[o];t(s,l)!==!1&&lf(c||[],t,n)}e.forEach(i)}function y_({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const i=[];let l=Fg;if(n&&n===r)return[n];if(!n||!r)return[];function s(c){return c===n||c===r}return lf(e,c=>{if(l===kg)return!1;if(s(c)){if(i.push(c),l===Fg)l=sc;else if(l===sc)return l=kg,!1}else l===sc&&i.push(c);return t.includes(c)},ta(o)),i}function cc(e,t,n){const r=pe(t),o=[];return lf(e,(i,l)=>{const s=r.indexOf(i);return s!==-1&&(o.push(l),r.splice(s,1)),!!r.length},ta(n)),o}var Vg=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 C_(e){const{isLeaf:t,expanded:n}=e;return t?a.createElement(iC,null):n?a.createElement(Gz,null):a.createElement(Xz,null)}function Wg({treeData:e,children:t}){return e||sy(t)}const S_=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=Vg(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=a.useRef(null),s=a.useRef(null),c=()=>{const{keyEntities:O}=Fd(Wg(i),{fieldNames:i.fieldNames});let $;return n?$=Object.keys(O):r?$=Pu(i.expandedKeys||o||[],O):$=i.expandedKeys||o||[],$},[u,d]=a.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=a.useState(()=>c());a.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),a.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const v=(O,$)=>{var I;return"expandedKeys"in i||m(O),(I=i.onExpand)===null||I===void 0?void 0:I.call(i,O,$)},p=(O,$)=>{var I;const{multiple:P,fieldNames:N}=i,{node:M,nativeEvent:R}=$,{key:z=""}=M,T=Wg(i),j=Object.assign(Object.assign({},$),{selected:!0}),_=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),D=R==null?void 0:R.shiftKey;let k;P&&_?(k=O,l.current=z,s.current=k,j.selectedNodes=cc(T,k,N)):P&&D?(k=Array.from(new Set([].concat(pe(s.current||[]),pe(y_({treeData:T,expandedKeys:f,startKey:z,endKey:l.current,fieldNames:N}))))),j.selectedNodes=cc(T,k,N)):(k=[z],l.current=z,s.current=k,j.selectedNodes=cc(T,k,N)),(I=i.onSelect)===null||I===void 0||I.call(i,k,j),"selectedKeys"in i||d(k)},{getPrefixCls:h,direction:g}=a.useContext(tt),{prefixCls:b,className:y,showIcon:C=!0,expandAction:S="click"}=i,x=Vg(i,["prefixCls","className","showIcon","expandAction"]),E=h("tree",b),w=F(`${E}-directory`,{[`${E}-directory-rtl`]:g==="rtl"},y);return a.createElement(lC,Object.assign({icon:C_,ref:t,blockNode:!0},x,{showIcon:C,expandAction:S,prefixCls:E,className:w,expandedKeys:f,selectedKeys:u,onSelect:p,onExpand:v}))},x_=a.forwardRef(S_),sf=lC;sf.DirectoryTree=x_;sf.TreeNode=Xa;const Kg=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?a.createElement("div",{className:`${r}-filter-dropdown-search`},a.createElement(gi,{prefix:a.createElement(Od,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},$_=e=>{const{keyCode:t}=e;t===Be.ENTER&&e.stopPropagation()},w_=a.forwardRef((e,t)=>a.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:$_,ref:t},e.children));function Ko(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(pe(t),pe(Ko(r))))}),t}function E_(e){return e.some(({children:t})=>t)}function sC(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function cC({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:i}){return e.map((l,s)=>{const c=String(l.value);if(l.children)return{key:c||s,label:l.text,popupClassName:`${t}-dropdown-submenu`,children:cC({filters:l.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:i})};const u=r?na:fi,d={key:l.value!==void 0?c:s,label:a.createElement(a.Fragment,null,a.createElement(u,{checked:n.includes(c)}),a.createElement("span",null,l.text))};return o.trim()?typeof i=="function"?i(o,l)?d:null:sC(o,l.text)?d:null:d})}function uc(e){return e||[]}const O_=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:l,column:s,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:v=!1,filterState:p,triggerFilter:h,locale:g,children:b,getPopupContainer:y,rootClassName:C}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:x,filterDropdownProps:E={},filterDropdownOpen:w,filterDropdownVisible:O,onFilterDropdownVisibleChange:$,onFilterDropdownOpenChange:I}=s,[P,N]=a.useState(!1),M=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),R=ae=>{var fe;N(ae),(fe=E.onOpenChange)===null||fe===void 0||fe.call(E,ae),I==null||I(ae),$==null||$(ae)},z=(o=(r=(n=E.open)!==null&&n!==void 0?n:w)!==null&&r!==void 0?r:O)!==null&&o!==void 0?o:P,T=p==null?void 0:p.filteredKeys,[j,_]=L$(uc(T)),D=({selectedKeys:ae})=>{_(ae)},k=(ae,{node:fe,checked:ue})=>{D(f?{selectedKeys:ae}:{selectedKeys:ue&&fe.key?[fe.key]:[]})};a.useEffect(()=>{P&&D({selectedKeys:uc(T)})},[T]);const[V,K]=a.useState([]),A=ae=>{K(ae)},[W,G]=a.useState(""),Y=ae=>{const{value:fe}=ae.target;G(fe)};a.useEffect(()=>{P||G("")},[P]);const ne=ae=>{const fe=ae!=null&&ae.length?ae:null;if(fe===null&&(!p||!p.filteredKeys)||Cr(fe,p==null?void 0:p.filteredKeys,!0))return null;h({column:s,key:u,filteredKeys:fe})},Q=()=>{R(!1),ne(j())},J=({confirm:ae,closeDropdown:fe}={confirm:!1,closeDropdown:!1})=>{ae&&ne([]),fe&&R(!1),G(""),_(S?(x||[]).map(ue=>String(ue)):[])},ie=({closeDropdown:ae}={closeDropdown:!0})=>{ae&&R(!1),ne(j())},re=(ae,fe)=>{fe.source==="trigger"&&(ae&&T!==void 0&&_(uc(T)),R(ae),!ae&&!s.filterDropdown&&d&&Q())},X=F({[`${c}-menu-without-submenu`]:!E_(s.filters||[])}),oe=ae=>{if(ae.target.checked){const fe=Ko(s==null?void 0:s.filters).map(ue=>String(ue));_(fe)}else _([])},ee=({filters:ae})=>(ae||[]).map((fe,ue)=>{const de=String(fe.value),xe={title:fe.text,key:fe.value!==void 0?de:String(ue)};return fe.children&&(xe.children=ee({filters:fe.children})),xe}),q=ae=>{var fe;return Object.assign(Object.assign({},ae),{text:ae.title,value:ae.key,children:((fe=ae.children)===null||fe===void 0?void 0:fe.map(ue=>q(ue)))||[]})};let Z;const{direction:le,renderEmpty:se}=a.useContext(tt);if(typeof s.filterDropdown=="function")Z=s.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:ae=>D({selectedKeys:ae}),selectedKeys:j(),confirm:ie,clearFilters:J,filters:s.filters,visible:z,close:()=>{R(!1)}});else if(s.filterDropdown)Z=s.filterDropdown;else{const ae=j()||[],fe=()=>{var de,xe;const we=(de=se==null?void 0:se("Table.filter"))!==null&&de!==void 0?de:a.createElement(Rr,{image:Rr.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return we;if(m==="tree")return a.createElement(a.Fragment,null,a.createElement(Kg,{filterSearch:v,value:W,onChange:Y,tablePrefixCls:i,locale:g}),a.createElement("div",{className:`${i}-filter-dropdown-tree`},f?a.createElement(na,{checked:ae.length===Ko(s.filters).length,indeterminate:ae.length>0&&ae.length<Ko(s.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:oe},(xe=g==null?void 0:g.filterCheckall)!==null&&xe!==void 0?xe:g==null?void 0:g.filterCheckAll):null,a.createElement(sf,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:k,checkedKeys:ae,selectedKeys:ae,showIcon:!1,treeData:ee({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?Oe=>typeof v=="function"?v(W,q(Oe)):sC(W,Oe.title):void 0})));const Le=cC({filters:s.filters||[],filterSearch:v,prefixCls:l,filteredKeys:j(),filterMultiple:f,searchValue:W}),je=Le.every(Oe=>Oe===null);return a.createElement(a.Fragment,null,a.createElement(Kg,{filterSearch:v,value:W,onChange:Y,tablePrefixCls:i,locale:g}),je?we:a.createElement(da,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:X,onSelect:D,onDeselect:D,selectedKeys:ae,getPopupContainer:y,openKeys:V,onOpenChange:A,items:Le}))},ue=()=>S?Cr((x||[]).map(de=>String(de)),ae,!0):ae.length===0;Z=a.createElement(a.Fragment,null,fe(),a.createElement("div",{className:`${l}-dropdown-btns`},a.createElement(dr,{type:"link",size:"small",disabled:ue(),onClick:()=>J()},g.filterReset),a.createElement(dr,{type:"primary",size:"small",onClick:Q},g.filterConfirm)))}s.filterDropdown&&(Z=a.createElement(Mb,{selectable:void 0},Z)),Z=a.createElement(w_,{className:`${l}-dropdown`},Z);const ge=cl({trigger:["click"],placement:le==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ae;return typeof s.filterIcon=="function"?ae=s.filterIcon(M):s.filterIcon?ae=s.filterIcon:ae=a.createElement(Mz,null),a.createElement("span",{role:"button",tabIndex:-1,className:F(`${l}-trigger`,{active:M}),onClick:fe=>{fe.stopPropagation()}},ae)})(),getPopupContainer:y},Object.assign(Object.assign({},E),{rootClassName:F(C,E.rootClassName),open:z,onOpenChange:re,popupRender:()=>typeof(E==null?void 0:E.dropdownRender)=="function"?E.dropdownRender(Z):Z}));return a.createElement("div",{className:`${l}-column`},a.createElement("span",{className:`${i}-column-title`},b),a.createElement(Ud,Object.assign({},ge)))},zu=(e,t,n)=>{let r=[];return(e||[]).forEach((o,i)=>{var l;const s=ha(i,n),c=o.filterDropdown!==void 0;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;c||(u=(l=u==null?void 0:u.map(String))!==null&&l!==void 0?l:u),r.push({column:o,key:qr(o,s),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:qr(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(pe(r),pe(zu(o.children,t,s))))}),r};function uC(e,t,n,r,o,i,l,s,c){return n.map((u,d)=>{const f=ha(d,s),{filterOnClose:m=!0,filterMultiple:v=!0,filterMode:p,filterSearch:h}=u;let g=u;if(g.filters||g.filterDropdown){const b=qr(g,f),y=r.find(({key:C})=>b===C);g=Object.assign(Object.assign({},g),{title:C=>a.createElement(O_,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:b,filterState:y,filterOnClose:m,filterMultiple:v,filterMode:p,filterSearch:h,triggerFilter:i,locale:o,getPopupContainer:l,rootClassName:c},ds(u.title,C))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:uC(e,t,g.children,r,o,i,l,f,c)})),g})}const Gg=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const i=n,{filters:l,filterDropdown:s}=o;if(s)t[i]=r||null;else if(Array.isArray(r)){const c=Ko(l);t[i]=c.filter(u=>r.includes(String(u)))}else t[i]=null}),t},_u=(e,t,n)=>t.reduce((o,i)=>{const{column:{onFilter:l,filters:s},filteredKeys:c}=i;return l&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Ko(s),m=f.findIndex(p=>String(p)===String(d)),v=m!==-1?f[m]:d;return u[n]&&(u[n]=_u(u[n],t,n)),l(v,u)})):o},e),dC=e=>e.flatMap(t=>"children"in t?[t].concat(pe(dC(t.children||[]))):[t]),I_=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:l,rootClassName:s}=e;Er();const c=a.useMemo(()=>dC(r||[]),[r]),[u,d]=a.useState(()=>zu(c,!0)),f=a.useMemo(()=>{const h=zu(c,!1);if(h.length===0)return h;let g=!0;if(h.forEach(({filteredKeys:b})=>{b!==void 0&&(g=!1)}),g){const b=(c||[]).map((y,C)=>qr(y,ha(C)));return u.filter(({key:y})=>b.includes(y)).map(y=>{const C=c[b.indexOf(y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),C),forceFiltered:C.filtered})})}return h},[c,u]),m=a.useMemo(()=>Gg(f),[f]),v=h=>{const g=f.filter(({key:b})=>b!==h.key);g.push(h),d(g),o(Gg(g),g)};return[h=>uC(t,n,h,f,l,v,i,void 0,s),f,m]},R_=(e,t,n)=>{const r=a.useRef({});function o(i){var l;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let c=function(u){u.forEach((d,f)=>{const m=n(d,f);s.set(m,d),d&&typeof d=="object"&&t in d&&c(d[t]||[])})};const s=new Map;c(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(l=r.current.kvMap)===null||l===void 0?void 0:l.get(i)}return[o]};var P_=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 fC=10;function N_(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function M_(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=P_(r,["total"]),[l,s]=a.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:fC})),c=cl(l,i,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,v)=>{s({current:m??1,pageSize:v||c.pageSize})},f=(m,v)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,m,v)),d(m,v),t(m,v||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var T_={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},j_=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:T_}))},z_=a.forwardRef(j_),__={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},B_=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:__}))},D_=a.forwardRef(B_);const Ji="ascend",dc="descend",xl=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,qg=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,L_=(e,t)=>t?e[e.indexOf(t)+1]:e[0],Bu=(e,t,n)=>{let r=[];const o=(i,l)=>{r.push({column:i,key:qr(i,l),multiplePriority:xl(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,l)=>{const s=ha(l,n);i.children?("sortOrder"in i&&o(i,s),r=[].concat(pe(r),pe(Bu(i.children,t,s)))):i.sorter&&("sortOrder"in i?o(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:qr(i,s),multiplePriority:xl(i),sortOrder:i.defaultSortOrder}))}),r},mC=(e,t,n,r,o,i,l,s)=>(t||[]).map((u,d)=>{const f=ha(d,s);let m=u;if(m.sorter){const v=m.sortDirections||o,p=m.showSorterTooltip===void 0?l:m.showSorterTooltip,h=qr(m,f),g=n.find(({key:$})=>$===h),b=g?g.sortOrder:null,y=L_(v,b);let C;if(u.sortIcon)C=u.sortIcon({sortOrder:b});else{const $=v.includes(Ji)&&a.createElement(D_,{className:F(`${e}-column-sorter-up`,{active:b===Ji})}),I=v.includes(dc)&&a.createElement(z_,{className:F(`${e}-column-sorter-down`,{active:b===dc})});C=a.createElement("span",{className:F(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!($&&I)})},a.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},$,I))}const{cancelSort:S,triggerAsc:x,triggerDesc:E}=i||{};let w=S;y===dc?w=E:y===Ji&&(w=x);const O=typeof p=="object"?Object.assign({title:w},p):{title:w};m=Object.assign(Object.assign({},m),{className:F(m.className,{[`${e}-column-sort`]:b}),title:$=>{const I=`${e}-column-sorters`,P=a.createElement("span",{className:`${e}-column-title`},ds(u.title,$)),N=a.createElement("div",{className:I},P,C);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?a.createElement("div",{className:F(I,`${I}-tooltip-target-sorter`)},P,a.createElement(Mr,Object.assign({},O),C)):a.createElement(Mr,Object.assign({},O),N):N},onHeaderCell:$=>{var I;const P=((I=u.onHeaderCell)===null||I===void 0?void 0:I.call(u,$))||{},N=P.onClick,M=P.onKeyDown;P.onClick=T=>{r({column:u,key:h,sortOrder:y,multiplePriority:xl(u)}),N==null||N(T)},P.onKeyDown=T=>{T.keyCode===Be.ENTER&&(r({column:u,key:h,sortOrder:y,multiplePriority:xl(u)}),M==null||M(T))};const R=Rz(u.title,{}),z=R==null?void 0:R.toString();return b&&(P["aria-sort"]=b==="ascend"?"ascending":"descending"),P["aria-label"]=z||"",P.className=F(P.className,`${e}-column-has-sorters`),P.tabIndex=0,u.ellipsis&&(P.title=(R??"").toString()),P}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:mC(e,m.children,n,r,o,i,l,f)})),m}),Ug=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Xg=e=>{const t=e.filter(({sortOrder:n})=>n).map(Ug);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},Ug(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Du=(e,t,n)=>{const r=t.slice().sort((l,s)=>s.multiplePriority-l.multiplePriority),o=e.slice(),i=r.filter(({column:{sorter:l},sortOrder:s})=>qg(l)&&s);return i.length?o.sort((l,s)=>{for(let c=0;c<i.length;c+=1){const u=i[c],{column:{sorter:d},sortOrder:f}=u,m=qg(d);if(m&&f){const v=m(l,s,f);if(v!==0)return f===Ji?v:-v}}return 0}).map(l=>{const s=l[n];return s?Object.assign(Object.assign({},l),{[n]:Du(s,t,n)}):l}):o},A_=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:l}=e,[s,c]=a.useState(()=>Bu(n,!0)),u=(h,g)=>{const b=[];return h.forEach((y,C)=>{const S=ha(C,g);if(b.push(qr(y,S)),Array.isArray(y.children)){const x=u(y.children,S);b.push.apply(b,pe(x))}}),b},d=a.useMemo(()=>{let h=!0;const g=Bu(n,!1);if(!g.length){const S=u(n);return s.filter(({key:x})=>S.includes(x))}const b=[];function y(S){h?b.push(S):b.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let C=null;return g.forEach(S=>{C===null?(y(S),S.sortOrder&&(S.multiplePriority===!1?h=!1:C=!0)):(C&&S.multiplePriority!==!1||(h=!1),y(S))}),b},[n,s]),f=a.useMemo(()=>{var h,g;const b=d.map(({column:y,sortOrder:C})=>({column:y,order:C}));return{sortColumns:b,sortColumn:(h=b[0])===null||h===void 0?void 0:h.column,sortOrder:(g=b[0])===null||g===void 0?void 0:g.order}},[d]),m=h=>{let g;h.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?g=[h]:g=[].concat(pe(d.filter(({key:b})=>b!==h.key)),[h]),c(g),l(Xg(g),g)};return[h=>mC(t,h,d,m,r,o,i),d,f,()=>Xg(d)]},vC=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=ds(r.title,t),"children"in o&&(o.children=vC(o.children,t)),o}),H_=e=>[a.useCallback(n=>vC(n,e),[e])],F_=eC((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),k_=nC((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),V_=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:l,tablePaddingHorizontal:s,calc:c}=e,u=`${L(n)} ${r} ${o}`,d=(f,m,v)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${L(c(m).mul(-1).equal())}
317
+ ${L(c(c(v).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
318
+ > ${t}-content,
319
+ > ${t}-header,
320
+ > ${t}-body,
321
+ > ${t}-summary
322
+ `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${L(c(l).mul(-1).equal())} ${L(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
323
+ > tr${t}-expanded-row,
324
+ > tr${t}-placeholder
325
+ `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${L(n)} 0 ${L(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},W_=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Sr),{wordBreak:"keep-all",[`
326
+ &${t}-cell-fix-left-last,
327
+ &${t}-cell-fix-right-first
328
+ `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},K_=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},G_=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:l,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:p,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:b,expandIconScale:y,calc:C}=e,S=`${L(o)} ${l} ${s}`,x=C(p).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Ju(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:L(g),background:c,border:S,borderRadius:d,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:x,insetInlineStart:x,height:o},"&::after":{top:x,bottom:x,insetInlineStart:b,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${L(C(f).mul(-1).equal())} ${L(C(m).mul(-1).equal())}`,padding:`${L(f)} ${L(m)}`}}}},q_=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:l,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:v,tablePaddingHorizontal:p,borderRadius:h,motionDurationSlow:g,colorIcon:b,colorPrimary:y,tableHeaderFilterActiveBg:C,colorTextDisabled:S,tableFilterDropdownBg:x,tableFilterDropdownHeight:E,controlItemBgHover:w,controlItemBgActive:O,boxShadowSecondary:$,filterDropdownMenuBg:I,calc:P}=e,N=`${n}-dropdown`,M=`${t}-filter-dropdown`,R=`${n}-tree`,z=`${L(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:P(l).mul(-1).equal(),marginInline:`${L(l)} ${L(P(p).div(2).mul(-1).equal())}`,padding:`0 ${L(l)}`,color:m,fontSize:v,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:b,background:C},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},Nt(e)),{minWidth:o,backgroundColor:x,borderRadius:h,boxShadow:$,overflow:"hidden",[`${N}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${L(s)} 0`,color:S,fontSize:v,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${L(s)} 0`,paddingInline:s,[R]:{padding:0},[`${R}-treenode ${R}-node-content-wrapper:hover`]:{backgroundColor:w},[`${R}-treenode-checkbox-checked ${R}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${M}-search`]:{padding:s,borderBottom:z,"&-input":{input:{minWidth:i},[r]:{color:S}}},[`${M}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${L(P(s).sub(u).equal())} ${L(s)}`,overflow:"hidden",borderTop:z}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},U_=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:l,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
329
+ ${t}-cell-fix-left,
330
+ ${t}-cell-fix-right
331
+ `]:{position:"sticky !important",zIndex:i,background:l},[`
332
+ ${t}-cell-fix-left-first::after,
333
+ ${t}-cell-fix-left-last::after
334
+ `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
335
+ ${t}-cell-fix-right-first::after,
336
+ ${t}-cell-fix-right-last::after
337
+ `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
338
+ ${t}-cell-fix-left-first::after,
339
+ ${t}-cell-fix-left-last::after
340
+ `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
341
+ ${t}-cell-fix-right-first::after,
342
+ ${t}-cell-fix-right-last::after
343
+ `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
344
+ ${t}-cell-fix-left-first::after,
345
+ ${t}-cell-fix-left-last::after,
346
+ ${t}-cell-fix-right-first::after,
347
+ ${t}-cell-fix-right-last::after
348
+ `]:{boxShadow:"none"}}}}},X_=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${L(r)} 0`}}},Y_=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${L(n)} ${L(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${L(n)} ${L(n)}`}}}}},Q_=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Z_=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:l,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:v,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:p(u).add(o).add(p(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(u).add(p(l).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(u).add(o).add(p(i).div(4)).add(p(l).mul(2)).equal()}},[`
349
+ table tr th${t}-selection-column,
350
+ table tr td${t}-selection-column,
351
+ ${t}-selection-column
352
+ `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:L(p(v).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},J_=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,l,s,c)=>({[`${t}${t}-${i}`]:{fontSize:c,[`
353
+ ${t}-title,
354
+ ${t}-footer,
355
+ ${t}-cell,
356
+ ${t}-thead > tr > th,
357
+ ${t}-tbody > tr > th,
358
+ ${t}-tbody > tr > td,
359
+ tfoot > tr > th,
360
+ tfoot > tr > td
361
+ `]:{padding:`${L(l)} ${L(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:L(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${L(r(l).mul(-1).equal())} ${L(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:L(r(l).mul(-1).equal()),marginInline:`${L(r(n).sub(s).equal())} ${L(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:L(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},eB=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
362
+ &${t}-cell-fix-left:hover,
363
+ &${t}-cell-fix-right:hover
364
+ `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},tB=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:l,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${L(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${L(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:l,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Yg=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${L(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${L(o(n).mul(-1).equal())} 0 ${r}`}}}},nB=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:l}=e,s=`${L(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
365
+ & > ${t}-row,
366
+ & > div:not(${t}-row) > ${t}-row
367
+ `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${L(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:l(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},rB=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:l,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:v,tableHeaderBg:p,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:b,calc:y}=e,C=`${L(l)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Vr()),{[t]:Object.assign(Object.assign({},Nt(e)),{fontSize:u,background:d,borderRadius:`${L(f)} ${L(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${L(f)} ${L(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
368
+ ${t}-cell,
369
+ ${t}-thead > tr > th,
370
+ ${t}-tbody > tr > th,
371
+ ${t}-tbody > tr > td,
372
+ tfoot > tr > th,
373
+ tfoot > tr > td
374
+ `]:{position:"relative",padding:`${L(r)} ${L(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${L(r)} ${L(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:C,transition:`background ${v} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${v}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${v}, border-color ${v}`,borderBottom:C,[`
375
+ > ${t}-wrapper:only-child,
376
+ > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
377
+ `]:{[t]:{marginBlock:L(y(r).mul(-1).equal()),marginInline:`${L(y(i).sub(o).equal())}
378
+ ${L(y(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:C,transition:`background ${v} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${L(r)} ${L(o)}`,color:g,background:b}})}},oB=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:l,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:v,colorTextPlaceholder:p,fontSize:h,fontSizeSM:g,lineHeight:b,lineWidth:y,colorIcon:C,colorIconHover:S,opacityLoading:x,controlInteractiveSize:E}=e,w=new Tt(o).onBackground(n).toHexString(),O=new Tt(i).onBackground(n).toHexString(),$=new Tt(t).onBackground(n).toHexString(),I=new Tt(C),P=new Tt(S),N=E/2-y,M=N*2+y*3;return{headerBg:$,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:O,bodySortBg:$,rowHoverBg:$,rowSelectedBg:l,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:$,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:f,fixedHeaderSortActiveBg:w,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:v,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*b-y*3)/2-Math.ceil((g*1.4-y*3)/2),headerIconColor:I.clone().setA(I.a*x).toRgbString(),headerIconHoverColor:P.clone().setA(P.a*x).toRgbString(),expandIconHalfInner:N,expandIconSize:M,expandIconScale:E/M}},Qg=2,aB=Et("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:l,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:v,cellPaddingBlock:p,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:b,cellPaddingBlockSM:y,cellPaddingInlineSM:C,borderColor:S,footerBg:x,footerColor:E,headerBorderRadius:w,cellFontSize:O,cellFontSizeMD:$,cellFontSizeSM:I,headerSplitColor:P,fixedHeaderSortActiveBg:N,headerFilterHoverBg:M,filterDropdownBg:R,expandIconBg:z,selectionColumnWidth:T,stickyScrollBarBg:j,calc:_}=e,D=Ct(e,{tableFontSize:O,tableBg:r,tableRadius:w,tablePaddingVertical:p,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:C,tableBorderColor:S,tableHeaderTextColor:l,tableHeaderBg:i,tableFooterTextColor:E,tableFooterBg:x,tableHeaderCellSplitColor:P,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:R,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:Qg,zIndexTableSticky:_(Qg).add(1).equal({unit:!1}),tableFontSizeMiddle:$,tableFontSizeSmall:I,tableSelectionColumnWidth:T,tableExpandIconBg:z,tableExpandColumnWidth:_(o).add(_(e.padding).mul(2)).equal(),tableExpandedRowBg:v,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:j,tableScrollThumbBgHover:t,tableScrollBg:n});return[rB(D),X_(D),Yg(D),eB(D),q_(D),V_(D),Y_(D),G_(D),Yg(D),K_(D),Z_(D),U_(D),tB(D),W_(D),J_(D),Q_(D),nB(D)]},oB,{unitless:{expandIconScale:!0}}),Zg=[],iB=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:l,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:v,rowKey:p="key",rowClassName:h,columns:g,children:b,childrenColumnName:y,onChange:C,getPopupContainer:S,loading:x,expandIcon:E,expandable:w,expandedRowRender:O,expandIconColumnIndex:$,indentSize:I,scroll:P,sortDirections:N,locale:M,showSorterTooltip:R={target:"full-header"},virtual:z}=e;Er();const T=a.useMemo(()=>g||tf(b),[g,b]),j=a.useMemo(()=>T.some(Fe=>Fe.responsive),[T]),_=Ql(j),D=a.useMemo(()=>{const Fe=new Set(Object.keys(_).filter(ze=>_[ze]));return T.filter(ze=>!ze.responsive||ze.responsive.some(ot=>Fe.has(ot)))},[T,_]),k=Ht(e,["className","style","columns"]),{locale:V=cr,direction:K,table:A,renderEmpty:W,getPrefixCls:G,getPopupContainer:Y}=a.useContext(tt),ne=hn(c),Q=Object.assign(Object.assign({},V.Table),M),J=f||Zg,ie=G("table",o),re=G("dropdown",d),[,X]=pn(),oe=fn(ie),[ee,q,Z]=aB(ie,oe),le=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:$},w),{expandIcon:(n=w==null?void 0:w.expandIcon)!==null&&n!==void 0?n:(r=A==null?void 0:A.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:se="children"}=le,ve=a.useMemo(()=>J.some(Fe=>Fe==null?void 0:Fe[se])?"nest":O||w!=null&&w.expandedRowRender?"row":null,[J]),ge={body:a.useRef(null)},ae=Iz(ie),fe=a.useRef(null),ue=a.useRef(null);D$(t,()=>Object.assign(Object.assign({},ue.current),{nativeElement:fe.current}));const de=a.useMemo(()=>typeof p=="function"?p:Fe=>Fe==null?void 0:Fe[p],[p]),[xe]=R_(J,se,de),we={},Le=(Fe,ze,ot=!1)=>{var $t,Rt,Mt,Dt;const St=Object.assign(Object.assign({},we),Fe);ot&&(($t=we.resetPagination)===null||$t===void 0||$t.call(we),!((Rt=St.pagination)===null||Rt===void 0)&&Rt.current&&(St.pagination.current=1),m&&((Mt=m.onChange)===null||Mt===void 0||Mt.call(m,1,(Dt=St.pagination)===null||Dt===void 0?void 0:Dt.pageSize))),P&&P.scrollToFirstRowOnChange!==!1&&ge.body.current&&$$(0,{getContainer:()=>ge.body.current}),C==null||C(St.pagination,St.filters,St.sorter,{currentDataSource:_u(Du(J,St.sorterStates,se),St.filterStates,se),action:ze})},je=(Fe,ze)=>{Le({sorter:Fe,sorterStates:ze},"sort",!1)},[Oe,Te,he,me]=A_({prefixCls:ie,mergedColumns:D,onSorterChange:je,sortDirections:N||["ascend","descend"],tableLocale:Q,showSorterTooltip:R}),$e=a.useMemo(()=>Du(J,Te,se),[J,Te]);we.sorter=me(),we.sorterStates=Te;const Se=(Fe,ze)=>{Le({filters:Fe,filterStates:ze},"filter",!0)},[Re,be,Ie]=I_({prefixCls:ie,locale:Q,dropdownPrefixCls:re,mergedColumns:D,onFilterChange:Se,getPopupContainer:S||Y,rootClassName:F(l,oe)}),De=_u($e,be,se);we.filters=Ie,we.filterStates=be;const ke=a.useMemo(()=>{const Fe={};return Object.keys(Ie).forEach(ze=>{Ie[ze]!==null&&(Fe[ze]=Ie[ze])}),Object.assign(Object.assign({},he),{filters:Fe})},[he,Ie]),[gt]=H_(ke),ht=(Fe,ze)=>{Le({pagination:Object.assign(Object.assign({},we.pagination),{current:Fe,pageSize:ze})},"paginate")},[Pe,We]=M_(De.length,ht,m);we.pagination=m===!1?{}:N_(Pe,m),we.resetPagination=We;const Ye=a.useMemo(()=>{if(m===!1||!Pe.pageSize)return De;const{current:Fe=1,total:ze,pageSize:ot=fC}=Pe;return De.length<ze?De.length>ot?De.slice((Fe-1)*ot,Fe*ot):De:De.slice((Fe-1)*ot,Fe*ot)},[!!m,De,Pe==null?void 0:Pe.current,Pe==null?void 0:Pe.pageSize,Pe==null?void 0:Pe.total]),[_e,Ge]=Ez({prefixCls:ie,data:De,pageData:Ye,getRowKey:de,getRecordByKey:xe,expandType:ve,childrenColumnName:se,locale:Q,getPopupContainer:S||Y},v),vt=(Fe,ze,ot)=>{let $t;return typeof h=="function"?$t=F(h(Fe,ze,ot)):$t=F(h),F({[`${ie}-row-selected`]:Ge.has(de(Fe,ze))},$t)};le.__PARENT_RENDER_ICON__=le.expandIcon,le.expandIcon=le.expandIcon||E||Oz(Q),ve==="nest"&&le.expandIconColumnIndex===void 0?le.expandIconColumnIndex=v?1:0:le.expandIconColumnIndex>0&&v&&(le.expandIconColumnIndex-=1),typeof le.indentSize!="number"&&(le.indentSize=typeof I=="number"?I:15);const dt=a.useCallback(Fe=>gt(_e(Re(Oe(Fe)))),[Oe,Re,_e]),Ae=()=>{if(m===!1||!(Pe!=null&&Pe.total))return{};const Fe=()=>Pe.size||(ne==="small"||ne==="middle"?"small":void 0),ze=lt=>{const nt=lt==="left"?"start":lt==="right"?"end":lt;return a.createElement(a8,Object.assign({},Pe,{align:Pe.align||nt,className:F(`${ie}-pagination`,Pe.className),size:Fe()}))},ot=K==="rtl"?"left":"right",$t=Pe.position;if($t===null||!Array.isArray($t))return{bottom:ze(ot)};const Rt=$t.find(lt=>typeof lt=="string"&&lt.toLowerCase().includes("top")),Mt=$t.find(lt=>typeof lt=="string"&&lt.toLowerCase().includes("bottom")),Dt=$t.every(lt=>`${lt}`=="none"),St=Rt?Rt.toLowerCase().replace("top",""):"",jt=Mt?Mt.toLowerCase().replace("bottom",""):"",Me=!Rt&&!Mt&&!Dt,Ve=()=>St?ze(St):void 0,ct=()=>{if(jt)return ze(jt);if(Me)return ze(ot)};return{top:Ve(),bottom:ct()}},Je=a.useMemo(()=>typeof x=="boolean"?{spinning:x}:typeof x=="object"&&x!==null?Object.assign({spinning:!0},x):void 0,[x]),Ue=F(Z,oe,`${ie}-wrapper`,A==null?void 0:A.className,{[`${ie}-wrapper-rtl`]:K==="rtl"},i,l,q),Ee=Object.assign(Object.assign({},A==null?void 0:A.style),s),Ce=a.useMemo(()=>Je!=null&&Je.spinning&&J===Zg?null:typeof(M==null?void 0:M.emptyText)<"u"?M.emptyText:(W==null?void 0:W("Table"))||a.createElement(K0,{componentName:"Table"}),[Je==null?void 0:Je.spinning,J,M==null?void 0:M.emptyText,W]),ye=z?k_:F_,Ne={},Qe=a.useMemo(()=>{const{fontSize:Fe,lineHeight:ze,lineWidth:ot,padding:$t,paddingXS:Rt,paddingSM:Mt}=X,Dt=Math.floor(Fe*ze);switch(ne){case"middle":return Mt*2+Dt+ot;case"small":return Rt*2+Dt+ot;default:return $t*2+Dt+ot}},[X,ne]);z&&(Ne.listItemHeight=Qe);const{top:Ze,bottom:bt}=Ae();return ee(a.createElement("div",{ref:fe,className:Ue,style:Ee},a.createElement(_y,Object.assign({spinning:!1},Je),Ze,a.createElement(ye,Object.assign({},Ne,k,{ref:ue,columns:D,direction:K,expandable:le,prefixCls:ie,className:F({[`${ie}-middle`]:ne==="middle",[`${ie}-small`]:ne==="small",[`${ie}-bordered`]:u,[`${ie}-empty`]:J.length===0},Z,oe,q),data:Ye,rowKey:de,rowClassName:vt,emptyText:Ce,internalHooks:bi,internalRefs:ge,transformColumns:dt,getContainerWidth:ae,measureRowRender:Fe=>a.createElement(gr,{getPopupContainer:ze=>ze},Fe)})),bt)))},lB=a.forwardRef(iB),sB=(e,t)=>{const n=a.useRef(0);return n.current+=1,a.createElement(lB,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Jr=a.forwardRef(sB);Jr.SELECTION_COLUMN=Dr;Jr.EXPAND_COLUMN=Lr;Jr.SELECTION_ALL=Nu;Jr.SELECTION_INVERT=Mu;Jr.SELECTION_NONE=Tu;Jr.Column=gz;Jr.ColumnGroup=pz;Jr.Summary=Wy;const cB=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,l=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Nt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${L(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},cf=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Ct(e,{tagFontSize:o,tagLineHeight:L(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},uf=e=>({defaultBg:new Tt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),gC=Et("Tag",e=>{const t=cf(e);return cB(t)},uf);var uB=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 dB=a.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,children:l,icon:s,onChange:c,onClick:u}=e,d=uB(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=a.useContext(tt),v=C=>{c==null||c(!i),u==null||u(C)},p=f("tag",n),[h,g,b]=gC(p),y=F(p,`${p}-checkable`,{[`${p}-checkable-checked`]:i},m==null?void 0:m.className,o,g,b);return h(a.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:y,onClick:v}),s,a.createElement("span",null,l)))}),fB=e=>Ml(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),mB=oa(["Tag","preset"],e=>{const t=cf(e);return fB(t)},uf);function vB(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Bi=(e,t,n)=>{const r=vB(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},gB=oa(["Tag","status"],e=>{const t=cf(e);return[Bi(t,"success","Success"),Bi(t,"processing","Info"),Bi(t,"error","Error"),Bi(t,"warning","Warning")]},uf);var pB=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 hB=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:l,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=pB(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:p,tag:h}=a.useContext(tt),[g,b]=a.useState(!0),y=Ht(m,["closeIcon","closable"]);a.useEffect(()=>{f!==void 0&&b(f)},[f]);const C=Jl(c),S=mN(c),x=C||S,E=Object.assign(Object.assign({backgroundColor:c&&!x?c:void 0},h==null?void 0:h.style),i),w=v("tag",n),[O,$,I]=gC(w),P=F(w,h==null?void 0:h.className,{[`${w}-${c}`]:x,[`${w}-has-color`]:c&&!x,[`${w}-hidden`]:!g,[`${w}-rtl`]:p==="rtl",[`${w}-borderless`]:!d},r,o,$,I),N=_=>{_.stopPropagation(),u==null||u(_),!_.defaultPrevented&&b(!1)},[,M]=Ph(ul(e),ul(h),{closable:!1,closeIconRender:_=>{const D=a.createElement("span",{className:`${w}-close-icon`,onClick:N},_);return td(_,D,k=>({onClick:V=>{var K;(K=k==null?void 0:k.onClick)===null||K===void 0||K.call(k,V),N(V)},className:F(k==null?void 0:k.className,`${w}-close-icon`)}))}}),R=typeof m.onClick=="function"||l&&l.type==="a",z=s||null,T=z?a.createElement(a.Fragment,null,z,l&&a.createElement("span",null,l)):l,j=a.createElement("span",Object.assign({},y,{ref:t,className:P,style:E}),T,M,C&&a.createElement(mB,{key:"preset",prefixCls:w}),S&&a.createElement(gB,{key:"status",prefixCls:w}));return O(R?a.createElement(ti,{component:"Tag"},j):j)}),bB=hB;bB.CheckableTag=dB;const yB=e=>{const t=e!=null&&e.algorithm?rl(e.algorithm):Xu,n=Object.assign(Object.assign({},Yo),e==null?void 0:e.token);return Ip(n,{override:e==null?void 0:e.token},t,Zu)};function CB(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const SB=(e,t)=>{const n=t??Pl(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),CB(t??e)),Qp(r)),{controlHeight:o}),Yp(Object.assign(Object.assign({},n),{controlHeight:o})))},Jn=(e,t)=>new Tt(e).setA(t).toRgbString(),_o=(e,t)=>new Tt(e).lighten(t).toHexString(),xB=e=>{const t=mo(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},$B=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Jn(r,.85),colorTextSecondary:Jn(r,.65),colorTextTertiary:Jn(r,.45),colorTextQuaternary:Jn(r,.25),colorFill:Jn(r,.18),colorFillSecondary:Jn(r,.12),colorFillTertiary:Jn(r,.08),colorFillQuaternary:Jn(r,.04),colorBgSolid:Jn(r,.95),colorBgSolidHover:Jn(r,1),colorBgSolidActive:Jn(r,.9),colorBgElevated:_o(n,12),colorBgContainer:_o(n,8),colorBgLayout:_o(n,0),colorBgSpotlight:_o(n,26),colorBgBlur:Jn(r,.04),colorBorder:_o(n,26),colorBorderSecondary:_o(n,19)}},wB=(e,t)=>{const n=Object.keys(Uu).map(i=>{const l=mo(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((s,c,u)=>(s[`${i}-${u+1}`]=l[u],s[`${i}${u+1}`]=l[u],s),{})}).reduce((i,l)=>(i=Object.assign(Object.assign({},i),l),i),{}),r=t??Pl(e),o=Xp(e,{generateColorPalettes:xB,generateNeutralColorPalettes:$B});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})};function EB(){const[e,t,n]=pn();return{theme:e,token:t,hashId:n}}const fL={defaultSeed:Aa.token,useToken:EB,defaultAlgorithm:Pl,darkAlgorithm:wB,compactAlgorithm:SB,getDesignToken:yB,defaultConfig:Aa,_internalContext:Yu};var OB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},IB=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:OB}))},mL=a.forwardRef(IB),RB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},PB=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:RB}))},NB=a.forwardRef(PB),MB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},TB=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:MB}))},jB=a.forwardRef(TB);const zB=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},_B=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
379
+ h${r}&,
380
+ div&-h${r},
381
+ div&-h${r} > textarea,
382
+ h${r}
383
+ `]=zB(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},BB=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Ju(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},DB=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:al[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),LB=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},AB=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),HB=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),FB=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},_B(e)),{[`
384
+ & + h1${t},
385
+ & + h2${t},
386
+ & + h3${t},
387
+ & + h4${t},
388
+ & + h5${t}
389
+ `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),DB(e)),BB(e)),{[`
390
+ ${t}-expand,
391
+ ${t}-collapse,
392
+ ${t}-edit,
393
+ ${t}-copy
394
+ `]:Object.assign(Object.assign({},Ju(e)),{marginInlineStart:e.marginXXS})}),LB(e)),AB(e)),HB()),{"&-rtl":{direction:"rtl"}})}},kB=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),pC=Et("Typography",FB,kB),VB=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:l,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:v=a.createElement(jB,null)}=e,p=a.useRef(null),h=a.useRef(!1),g=a.useRef(null),[b,y]=a.useState(c);a.useEffect(()=>{y(c)},[c]),a.useEffect(()=>{var R;if(!((R=p.current)===null||R===void 0)&&R.resizableTextArea){const{textArea:z}=p.current.resizableTextArea;z.focus();const{length:T}=z.value;z.setSelectionRange(T,T)}},[]);const C=({target:R})=>{y(R.value.replace(/[\n\r]/g,""))},S=()=>{h.current=!0},x=()=>{h.current=!1},E=({keyCode:R})=>{h.current||(g.current=R)},w=()=>{u(b.trim())},O=({keyCode:R,ctrlKey:z,altKey:T,metaKey:j,shiftKey:_})=>{g.current!==R||h.current||z||T||j||_||(R===Be.ENTER?(w(),f==null||f()):R===Be.ESC&&d())},$=()=>{w()},[I,P,N]=pC(t),M=F(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,P,N);return I(a.createElement("div",{className:M,style:o},a.createElement(Ry,{ref:p,maxLength:l,value:b,onChange:C,onKeyDown:E,onKeyUp:O,onCompositionStart:S,onCompositionEnd:x,onBlur:$,"aria-label":n,rows:1,autoSize:s}),v!==null?un(v,{className:`${t}-edit-content-confirm`}):null))};var fc,Jg;function WB(){return Jg||(Jg=1,fc=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),fc}var mc,ep;function KB(){if(ep)return mc;ep=1;var e=WB(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(i){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,l)}function o(i,l){var s,c,u,d,f,m,v=!1;l||(l={}),s=l.debug||!1;try{u=e(),d=document.createRange(),f=document.getSelection(),m=document.createElement("span"),m.textContent=i,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(h){if(h.stopPropagation(),l.format)if(h.preventDefault(),typeof h.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=t[l.format]||t.default;window.clipboardData.setData(g,i)}else h.clipboardData.clearData(),h.clipboardData.setData(l.format,i);l.onCopy&&(h.preventDefault(),l.onCopy(h.clipboardData))}),document.body.appendChild(m),d.selectNodeContents(m),f.addRange(d);var p=document.execCommand("copy");if(!p)throw new Error("copy command was unsuccessful");v=!0}catch(h){s&&console.error("unable to copy using execCommand: ",h),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",i),l.onCopy&&l.onCopy(window.clipboardData),v=!0}catch(g){s&&console.error("unable to copy using clipboardData: ",g),s&&console.error("falling back to prompt"),c=r("message"in l?l.message:n),window.prompt(c,i)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),m&&document.body.removeChild(m),u()}return v}return mc=o,mc}var GB=KB();const qB=ap(GB);var UB=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function s(d){try{u(r.next(d))}catch(f){l(f)}}function c(d){try{u(r.throw(d))}catch(f){l(f)}}function u(d){d.done?i(d.value):o(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const XB=({copyConfig:e,children:t})=>{const[n,r]=a.useState(!1),[o,i]=a.useState(!1),l=a.useRef(null),s=()=>{l.current&&clearTimeout(l.current)},c={};e.format&&(c.format=e.format),a.useEffect(()=>s,[]);const u=At(d=>UB(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),i(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;qB(m||b8(t,!0).join("")||"",c),i(!1),r(!0),s(),l.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(m){throw i(!1),m}}));return{copied:n,copyLoading:o,onClick:u}};function vc(e,t){return a.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const YB=e=>{const t=a.useRef(void 0);return a.useEffect(()=>{t.current=e}),t.current},QB=(e,t,n)=>a.useMemo(()=>e===!0?{title:t??n}:a.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var ZB=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 hC=a.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:l,children:s,direction:c,style:u}=e,d=ZB(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:v,style:p}=on("typography"),h=c??m,g=l?dn(t,l):t,b=f("typography",n),[y,C,S]=pC(b),x=F(b,v,{[`${b}-rtl`]:h==="rtl"},o,i,C,S),E=Object.assign(Object.assign({},p),u);return y(a.createElement(r,Object.assign({className:x,style:E,ref:g},d),s))});var JB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},eD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:JB}))},tD=a.forwardRef(eD);function tp(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function gc(e,t,n){return e===!0||e===void 0?t:e||n&&t}function nD(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const df=e=>["string","number"].includes(typeof e),rD=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:i,tabIndex:l,onCopy:s,loading:c})=>{const u=tp(o),d=tp(i),{copied:f,copy:m}=n??{},v=t?f:m,p=gc(u[t?1:0],v),h=typeof p=="string"?p:v;return a.createElement(Mr,{title:p},a.createElement("button",{type:"button",className:F(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":h,tabIndex:l},t?gc(d[1],a.createElement(X0,null),!0):gc(d[0],c?a.createElement(xo,null):a.createElement(tD,null),!0)))},Di=a.forwardRef(({style:e,children:t},n)=>{const r=a.useRef(null);return a.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),oD=e=>e.reduce((t,n)=>t+(df(n)?String(n).length:1),0);function np(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],s=df(i)?String(i).length:1,c=n+s;if(c>t){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=c}return e}const pc=0,hc=1,bc=2,yc=3,rp=4,Li={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function aD(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:l,miscDeps:s,onEllipsis:c}=e,u=a.useMemo(()=>cn(r),[r]),d=a.useMemo(()=>oD(u),[r]),f=a.useMemo(()=>o(u,!1),[r]),[m,v]=a.useState(null),p=a.useRef(null),h=a.useRef(null),g=a.useRef(null),b=a.useRef(null),y=a.useRef(null),[C,S]=a.useState(!1),[x,E]=a.useState(pc),[w,O]=a.useState(0),[$,I]=a.useState(null);wt(()=>{E(t&&n&&d?hc:pc)},[n,r,i,t,u]),wt(()=>{var R,z,T,j;if(x===hc){E(bc);const _=h.current&&getComputedStyle(h.current).whiteSpace;I(_)}else if(x===bc){const _=!!(!((R=g.current)===null||R===void 0)&&R.isExceed());E(_?yc:rp),v(_?[0,d]:null),S(_);const D=((z=g.current)===null||z===void 0?void 0:z.getHeight())||0,k=i===1?0:((T=b.current)===null||T===void 0?void 0:T.getHeight())||0,V=((j=y.current)===null||j===void 0?void 0:j.getHeight())||0,K=Math.max(D,k+V);O(K+1),c(_)}},[x]);const P=m?Math.ceil((m[0]+m[1])/2):0;wt(()=>{var R;const[z,T]=m||[0,0];if(z!==T){const _=(((R=p.current)===null||R===void 0?void 0:R.getHeight())||0)>w;let D=P;T-z===1&&(D=_?z:T),v(_?[z,D]:[D,T])}},[m,P]);const N=a.useMemo(()=>{if(!t)return o(u,!1);if(x!==yc||!m||m[0]!==m[1]){const R=o(u,!1);return[rp,pc].includes(x)?R:a.createElement("span",{style:Object.assign(Object.assign({},Li),{WebkitLineClamp:i})},R)}return o(l?u:np(u,m[0]),C)},[l,x,m,u].concat(pe(s))),M={width:n,margin:0,padding:0,whiteSpace:$==="nowrap"?"normal":"inherit"};return a.createElement(a.Fragment,null,N,x===bc&&a.createElement(a.Fragment,null,a.createElement(Di,{style:Object.assign(Object.assign(Object.assign({},M),Li),{WebkitLineClamp:i}),ref:g},f),a.createElement(Di,{style:Object.assign(Object.assign(Object.assign({},M),Li),{WebkitLineClamp:i-1}),ref:b},f),a.createElement(Di,{style:Object.assign(Object.assign(Object.assign({},M),Li),{WebkitLineClamp:1}),ref:y},o([],!0))),x===yc&&m&&m[0]!==m[1]&&a.createElement(Di,{style:Object.assign(Object.assign({},M),{top:400}),ref:p},o(np(u,P),!0)),x===hc&&a.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const iD=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:a.createElement(Mr,Object.assign({open:t?void 0:!1},r),n);var lD=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 sD({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:i,italic:l},s){let c=s;function u(d,f){f&&(c=a.createElement(d,{},c))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",i),u("i",l),c}const cD="...",op=["delete","mark","code","underline","strong","keyboard","italic"],fs=a.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:l,disabled:s,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:v}=e,p=lD(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:h,direction:g}=a.useContext(tt),[b]=vr("Text"),y=a.useRef(null),C=a.useRef(null),S=h("typography",r),x=Ht(p,op),[E,w]=vc(d),[O,$]=Wt(!1,{value:w.editing}),{triggerType:I=["icon"]}=w,P=be=>{var Ie;be&&((Ie=w.onStart)===null||Ie===void 0||Ie.call(w)),$(be)},N=YB(O);wt(()=>{var be;!O&&N&&((be=C.current)===null||be===void 0||be.focus())},[O]);const M=be=>{be==null||be.preventDefault(),P(!0)},R=be=>{var Ie;(Ie=w.onChange)===null||Ie===void 0||Ie.call(w,be),P(!1)},z=()=>{var be;(be=w.onCancel)===null||be===void 0||be.call(w),P(!1)},[T,j]=vc(f),{copied:_,copyLoading:D,onClick:k}=XB({copyConfig:j,children:c}),[V,K]=a.useState(!1),[A,W]=a.useState(!1),[G,Y]=a.useState(!1),[ne,Q]=a.useState(!1),[J,ie]=a.useState(!0),[re,X]=vc(u,{expandable:!1,symbol:be=>be?b==null?void 0:b.collapse:b==null?void 0:b.expand}),[oe,ee]=Wt(X.defaultExpanded||!1,{value:X.expanded}),q=re&&(!oe||X.expandable==="collapsible"),{rows:Z=1}=X,le=a.useMemo(()=>q&&(X.suffix!==void 0||X.onEllipsis||X.expandable||E||T),[q,X,E,T]);wt(()=>{re&&!le&&(K(uu("webkitLineClamp")),W(uu("textOverflow")))},[le,re]);const[se,ve]=a.useState(q),ge=a.useMemo(()=>le?!1:Z===1?A:V,[le,A,V]);wt(()=>{ve(ge&&q)},[ge,q]);const ae=q&&(se?ne:G),fe=q&&Z===1&&se,ue=q&&Z>1&&se,de=(be,Ie)=>{var De;ee(Ie.expanded),(De=X.onExpand)===null||De===void 0||De.call(X,be,Ie)},[xe,we]=a.useState(0),Le=({offsetWidth:be})=>{we(be)},je=be=>{var Ie;Y(be),G!==be&&((Ie=X.onEllipsis)===null||Ie===void 0||Ie.call(X,be))};a.useEffect(()=>{const be=y.current;if(re&&se&&be){const Ie=nD(be);ne!==Ie&&Q(Ie)}},[re,se,c,ue,J,xe]),a.useEffect(()=>{const be=y.current;if(typeof IntersectionObserver>"u"||!be||!se||!q)return;const Ie=new IntersectionObserver(()=>{ie(!!be.offsetParent)});return Ie.observe(be),()=>{Ie.disconnect()}},[se,q]);const Oe=QB(X.tooltip,w.text,c),Te=a.useMemo(()=>{if(!(!re||se))return[w.text,c,v,Oe.title].find(df)},[re,se,v,Oe.title,ae]);if(O)return a.createElement(VB,{value:(n=w.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:R,onCancel:z,onEnd:w.onEnd,prefixCls:S,className:o,style:i,direction:g,component:m,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const he=()=>{const{expandable:be,symbol:Ie}=X;return be?a.createElement("button",{type:"button",key:"expand",className:`${S}-${oe?"collapse":"expand"}`,onClick:De=>de(De,{expanded:!oe}),"aria-label":oe?b.collapse:b==null?void 0:b.expand},typeof Ie=="function"?Ie(oe):Ie):null},me=()=>{if(!E)return;const{icon:be,tooltip:Ie,tabIndex:De}=w,ke=cn(Ie)[0]||(b==null?void 0:b.edit),gt=typeof ke=="string"?ke:"";return I.includes("icon")?a.createElement(Mr,{key:"edit",title:Ie===!1?"":ke},a.createElement("button",{type:"button",ref:C,className:`${S}-edit`,onClick:M,"aria-label":gt,tabIndex:De},be||a.createElement(NB,{role:"button"}))):null},$e=()=>T?a.createElement(rD,Object.assign({key:"copy"},j,{prefixCls:S,copied:_,locale:b,onCopy:k,loading:D,iconOnly:c==null})):null,Se=be=>[be&&he(),me(),$e()],Re=be=>[be&&!oe&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},cD),X.suffix,Se(be)];return a.createElement(An,{onResize:Le,disabled:!q},be=>a.createElement(iD,{tooltipProps:Oe,enableEllipsis:q,isEllipsis:ae},a.createElement(hC,Object.assign({className:F({[`${S}-${l}`]:l,[`${S}-disabled`]:s,[`${S}-ellipsis`]:re,[`${S}-ellipsis-single-line`]:fe,[`${S}-ellipsis-multiple-line`]:ue},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ue?Z:void 0}),component:m,ref:dn(be,y,t),direction:g,onClick:I.includes("text")?M:void 0,"aria-label":Te==null?void 0:Te.toString(),title:v},x),a.createElement(aD,{enableMeasure:q&&!se,text:c,rows:Z,width:xe,onEllipsis:je,expanded:oe,miscDeps:[_,oe,D,E,T,b].concat(pe(op.map(Ie=>e[Ie])))},(Ie,De)=>sD(e,a.createElement(a.Fragment,null,Ie.length>0&&De&&!oe&&Te?a.createElement("span",{key:"show-content","aria-hidden":!0},Ie):Ie,Re(De)))))))});var uD=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 dD=a.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:i}=e,l=uD(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},l),{rel:r===void 0&&l.target==="_blank"?"noopener noreferrer":r});return a.createElement(fs,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}),o)});var fD=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 mD=a.forwardRef((e,t)=>{const{children:n}=e,r=fD(e,["children"]);return a.createElement(fs,Object.assign({ref:t},r,{component:"div"}),n)});var vD=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 gD=(e,t)=>{const{ellipsis:n,children:r}=e,o=vD(e,["ellipsis","children"]),i=a.useMemo(()=>n&&typeof n=="object"?Ht(n,["expandable","rows"]):n,[n]);return a.createElement(fs,Object.assign({ref:t},o,{ellipsis:i,component:"span"}),r)},pD=a.forwardRef(gD);var hD=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 bD=[1,2,3,4,5],yD=a.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=hD(e,["level","children"]),i=bD.includes(n)?`h${n}`:"h1";return a.createElement(fs,Object.assign({ref:t},o,{component:i}),r)}),ms=hC;ms.Text=pD;ms.Link=dD;ms.Title=yD;ms.Paragraph=mD;var CD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},SD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:CD}))},vL=a.forwardRef(SD),xD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},$D=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:xD}))},gL=a.forwardRef($D),wD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},ED=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:wD}))},pL=a.forwardRef(ED),OD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},ID=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:OD}))},hL=a.forwardRef(ID),RD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z"}}]},name:"diff",theme:"outlined"},PD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:RD}))},bL=a.forwardRef(PD),ND={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 00-11.3 0L209.4 249a8.03 8.03 0 000 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z"}}]},name:"disconnect",theme:"outlined"},MD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:ND}))},yL=a.forwardRef(MD),TD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},jD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:TD}))},CL=a.forwardRef(jD),zD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},_D=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:zD}))},SL=a.forwardRef(_D),BD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},DD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:BD}))},xL=a.forwardRef(DD),LD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},AD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:LD}))},$L=a.forwardRef(AD),HD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"},FD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:HD}))},wL=a.forwardRef(FD),kD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},VD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:kD}))},EL=a.forwardRef(VD),WD={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},KD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:WD}))},OL=a.forwardRef(KD),GD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-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-568H336c-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 284H336c-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-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},qD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:GD}))},IL=a.forwardRef(qD),UD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},XD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:UD}))},RL=a.forwardRef(XD),YD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},QD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:YD}))},PL=a.forwardRef(QD),ZD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},JD=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:ZD}))},NL=a.forwardRef(JD),eL={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},tL=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:eL}))},ML=a.forwardRef(tL),nL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},rL=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:nL}))},TL=a.forwardRef(rL),oL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},aL=function(t,n){return a.createElement(ut,ce({},t,{ref:n,icon:oL}))},jL=a.forwardRef(aL);export{na as $,h$ as A,dr as B,gy as C,Ud as D,Rr as E,jL as F,yL as G,ij as H,ML as I,OL as J,Xz as K,hi as L,da as M,mL as N,Jr as O,D8 as P,iy as Q,$L as R,qd as S,ms as T,aT as U,hL as V,Zr as W,pi as X,$r as Y,Z0 as Z,cL as _,jM as a,F6 as a0,fi as a1,sL as a2,jI as a3,wL as a4,vL as a5,uL as a6,CL as a7,PL as a8,n5 as a9,gr as aa,iC as b,IL as c,xL as d,NL as e,Qo as f,Ka as g,bB as h,dL as i,EL as j,RL as k,NB as l,Or as m,TL as n,bL as o,FN as p,_y as q,gL as r,X3 as s,fL as t,ad as u,Qd as v,I8 as w,pL as x,SL as y,Mr as z};
395
+ //# sourceMappingURL=vendor-antd-BBx18Sww.js.map