@akinon/ui-transfer 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,265 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pv=require("react/jsx-runtime"),O=require("react"),lr=require("react-dom");function ku(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=ku(O),Nv=ku(lr);function Mv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wu={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var l=n.apply(null,i);l&&r.push(l)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Wu);var Tv=Wu.exports;const ne=Mv(Tv);function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(this,arguments)}var ja={exports:{}},st={};/**
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 ks;function _v(){if(ks)return st;ks=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function p(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 l:case a:case c:case m:case f:case i:return g;default:return b}}case t:return b}}}return st.ContextConsumer=a,st.ContextProvider=i,st.Element=e,st.ForwardRef=c,st.Fragment=n,st.Lazy=m,st.Memo=f,st.Portal=t,st.Profiler=o,st.StrictMode=r,st.Suspense=u,st.SuspenseList=d,st.isAsyncMode=function(){return!1},st.isConcurrentMode=function(){return!1},st.isContextConsumer=function(g){return p(g)===a},st.isContextProvider=function(g){return p(g)===i},st.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},st.isForwardRef=function(g){return p(g)===c},st.isFragment=function(g){return p(g)===n},st.isLazy=function(g){return p(g)===m},st.isMemo=function(g){return p(g)===f},st.isPortal=function(g){return p(g)===t},st.isProfiler=function(g){return p(g)===o},st.isStrictMode=function(g){return p(g)===r},st.isSuspense=function(g){return p(g)===u},st.isSuspenseList=function(g){return p(g)===d},st.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===a||g.$$typeof===c||g.$$typeof===h||g.getModuleId!==void 0)},st.typeOf=p,st}var ct={};/**
14
+ * @license React
15
+ * react-is.development.js
16
+ *
17
+ * Copyright (c) Facebook, Inc. and its affiliates.
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */var Ws;function Av(){return Ws||(Ws=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h=!1,p=!1,g=!1,b=!1,y=!1,S;S=Symbol.for("react.module.reference");function x(U){return!!(typeof U=="string"||typeof U=="function"||U===n||U===o||y||U===r||U===u||U===d||b||U===v||h||p||g||typeof U=="object"&&U!==null&&(U.$$typeof===m||U.$$typeof===f||U.$$typeof===i||U.$$typeof===a||U.$$typeof===c||U.$$typeof===S||U.getModuleId!==void 0))}function w(U){if(typeof U=="object"&&U!==null){var ve=U.$$typeof;switch(ve){case e:var te=U.type;switch(te){case n:case o:case r:case u:case d:return te;default:var ue=te&&te.$$typeof;switch(ue){case l:case a:case c:case m:case f:case i:return ue;default:return ve}}case t:return ve}}}var E=a,C=i,$=e,P=c,R=n,z=m,_=f,N=t,D=o,L=r,T=u,I=d,M=!1,j=!1;function F(U){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(U){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(U){return w(U)===a}function Y(U){return w(U)===i}function W(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function k(U){return w(U)===c}function oe(U){return w(U)===n}function ie(U){return w(U)===m}function Z(U){return w(U)===f}function q(U){return w(U)===t}function K(U){return w(U)===o}function ae(U){return w(U)===r}function re(U){return w(U)===u}function ee(U){return w(U)===d}ct.ContextConsumer=E,ct.ContextProvider=C,ct.Element=$,ct.ForwardRef=P,ct.Fragment=R,ct.Lazy=z,ct.Memo=_,ct.Portal=N,ct.Profiler=D,ct.StrictMode=L,ct.Suspense=T,ct.SuspenseList=I,ct.isAsyncMode=F,ct.isConcurrentMode=B,ct.isContextConsumer=H,ct.isContextProvider=Y,ct.isElement=W,ct.isForwardRef=k,ct.isFragment=oe,ct.isLazy=ie,ct.isMemo=Z,ct.isPortal=q,ct.isProfiler=K,ct.isStrictMode=ae,ct.isSuspense=re,ct.isSuspenseList=ee,ct.isValidElementType=x,ct.typeOf=w}()),ct}process.env.NODE_ENV==="production"?ja.exports=_v():ja.exports=Av();var Wl=ja.exports;function En(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return O.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(En(r)):Wl.isFragment(r)&&r.props?n=n.concat(En(r.props.children,t)):n.push(r))}),n}var Ba={},Kl=[],Dv=function(t){Kl.push(t)};function sr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Kl.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function zv(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Kl.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Ku(){Ba={}}function Uu(e,t,n){!t&&!Ba[n]&&(e(!1,n),Ba[n]=!0)}function Ue(e,t){Uu(sr,e,t)}function Ha(e,t){Uu(zv,e,t)}Ue.preMessage=Dv;Ue.resetWarned=Ku;Ue.noteOnce=Ha;function Ze(e){"@babel/helpers - typeof";return Ze=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},Ze(e)}function Lv(e,t){if(Ze(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ze(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gu(e){var t=Lv(e,"string");return Ze(t)==="symbol"?t:String(t)}function A(e,t,n){return t=Gu(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ks(Object(n),!0).forEach(function(r){A(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ks(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fi(e){return e instanceof HTMLElement||e instanceof SVGElement}function fo(e){return fi(e)?e:e instanceof O.Component?lr.findDOMNode(e):null}function Ro(e,t,n){var r=s.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Ul(e,t){typeof e=="function"?e(t):Ze(e)==="object"&&e&&"current"in e&&(e.current=t)}function Nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Ul(i,o)})}}function Gr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ro(function(){return Nn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})}function Xn(e){var t,n,r=Wl.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function Fv(e){return!O.isValidElement(e)||Wl.isFragment(e)?!1:Xn(e)}var Va=s.createContext(null);function jv(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),i=s.useContext(Va),a=s.useCallback(function(l,c,u){r.current+=1;var d=r.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,c,u)},[n,i]);return s.createElement(Va.Provider,{value:a},t)}var qu=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),ka=typeof window<"u"&&typeof document<"u"&&window.document===document,mi=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")()}(),Bv=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(mi):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Hv=2;function Vv(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Bv(i)}function l(){var c=Date.now();if(n){if(c-o<Hv)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=c}return l}var kv=20,Wv=["top","right","bottom","left","width","height","size","weight"],Kv=typeof MutationObserver<"u",Uv=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Vv(this.refresh.bind(this),kv)}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(){!ka||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Kv?(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(){!ka||!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=Wv.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}(),Xu=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},Hr=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||mi},Yu=Ti(0,0,0,0);function vi(e){return parseFloat(e)||0}function Us(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+vi(i)},0)}function Gv(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=vi(a)}return n}function qv(e){var t=e.getBBox();return Ti(0,0,t.width,t.height)}function Xv(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Yu;var r=Hr(e).getComputedStyle(e),o=Gv(r),i=o.left+o.right,a=o.top+o.bottom,l=vi(r.width),c=vi(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=Us(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Us(r,"top","bottom")+a)),!Qv(e)){var u=Math.round(l+i)-t,d=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return Ti(o.left,o.top,l,c)}var Yv=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Hr(e).SVGGraphicsElement}:function(e){return e instanceof Hr(e).SVGElement&&typeof e.getBBox=="function"}}();function Qv(e){return e===Hr(e).document.documentElement}function Zv(e){return ka?Yv(e)?qv(e):Xv(e):Yu}function Jv(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Xu(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Ti(e,t,n,r){return{x:e,y:t,width:n,height:r}}var eg=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ti(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Zv(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}(),tg=function(){function e(t,n){var r=Jv(n);Xu(this,{target:t,contentRect:r})}return e}(),ng=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new qu,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 Hr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new eg(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 Hr(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 tg(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}(),Qu=typeof WeakMap<"u"?new WeakMap:new qu,Zu=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=Uv.getInstance(),r=new ng(t,n,this);Qu.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Zu.prototype[e]=function(){var t;return(t=Qu.get(this))[e].apply(t,arguments)}});var rg=function(){return typeof mi.ResizeObserver<"u"?mi.ResizeObserver:Zu}(),Ln=new Map;function Ju(e){e.forEach(function(t){var n,r=t.target;(n=Ln.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var ed=new rg(Ju);process.env.NODE_ENV;process.env.NODE_ENV;function og(e,t){Ln.has(e)||(Ln.set(e,new Set),ed.observe(e)),Ln.get(e).add(t)}function ig(e,t){Ln.has(e)&&(Ln.get(e).delete(t),Ln.get(e).size||(ed.unobserve(e),Ln.delete(e)))}function Xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gs(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,Gu(r.key),r)}}function Yt(e,t,n){return t&&Gs(e.prototype,t),n&&Gs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wa(e,t){return Wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Wa(e,t)}function fr(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&&Wa(e,t)}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gi(e)}function ag(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function we(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lg(e,t){if(t&&(Ze(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return we(e)}function mr(e){var t=ag();return function(){var r=gi(e),o;if(t){var i=gi(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return lg(this,o)}}var sg=function(e){fr(n,e);var t=mr(n);function n(){return Xt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function cg(e,t){var n=e.children,r=e.disabled,o=s.useRef(null),i=s.useRef(null),a=s.useContext(Va),l=typeof n=="function",c=l?n(o):n,u=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&s.isValidElement(c)&&Xn(c),f=d?c.ref:null,m=Gr(f,o),v=function(){var b;return fo(o.current)||(o.current&&Ze(o.current)==="object"?fo((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||fo(i.current)};s.useImperativeHandle(t,function(){return v()});var h=s.useRef(e);h.current=e;var p=s.useCallback(function(g){var b=h.current,y=b.onResize,S=b.data,x=g.getBoundingClientRect(),w=x.width,E=x.height,C=g.offsetWidth,$=g.offsetHeight,P=Math.floor(w),R=Math.floor(E);if(u.current.width!==P||u.current.height!==R||u.current.offsetWidth!==C||u.current.offsetHeight!==$){var z={width:P,height:R,offsetWidth:C,offsetHeight:$};u.current=z;var _=C===Math.round(w)?w:C,N=$===Math.round(E)?E:$,D=V(V({},z),{},{offsetWidth:_,offsetHeight:N});a==null||a(D,g,S),y&&Promise.resolve().then(function(){y(D,g)})}},[]);return s.useEffect(function(){var g=v();return g&&!r&&og(g,p),function(){return ig(g,p)}},[o.current,r]),s.createElement(sg,{ref:i},d?s.cloneElement(c,{ref:m}):c)}var td=s.forwardRef(cg);process.env.NODE_ENV!=="production"&&(td.displayName="SingleObserver");var ug="rc-observer-key";function dg(e,t){var n=e.children,r=typeof n=="function"?[n]:En(n);return process.env.NODE_ENV!=="production"&&(r.length>1?sr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&sr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(ug,"-").concat(i);return s.createElement(td,Me({},e,{key:a,ref:i===0?t:void 0}),o)})}var Hn=s.forwardRef(dg);process.env.NODE_ENV!=="production"&&(Hn.displayName="ResizeObserver");Hn.Collection=jv;function Qt(e,t){var n=V({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Ka(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fg(e){if(Array.isArray(e))return Ka(e)}function nd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gl(e,t){if(e){if(typeof e=="string")return Ka(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ka(e,t)}}function mg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(e){return fg(e)||nd(e)||Gl(e)||mg()}var rd=function(t){return+setTimeout(t,16)},od=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(rd=function(t){return window.requestAnimationFrame(t)},od=function(t){return window.cancelAnimationFrame(t)});var qs=0,ql=new Map;function id(e){ql.delete(e)}var gt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;qs+=1;var r=qs;function o(i){if(i===0)id(r),t();else{var a=rd(function(){o(i-1)});ql.set(r,a)}}return o(n),r};gt.cancel=function(e){var t=ql.get(e);return id(t),od(t)};function Xl(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 vg(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function et(e,t){if(e==null)return{};var n=vg(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _i(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(i);if(Ue(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],u))return!1;return!0}if(i&&a&&Ze(i)==="object"&&Ze(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],u)})}return!1}return o(e,t)}var Xs="%",gg=function(){function e(t){Xt(this,e),A(this,"instanceId",void 0),A(this,"cache",new Map),this.instanceId=t}return Yt(e,[{key:"get",value:function(n){return this.cache.get(n.join(Xs))||null}},{key:"update",value:function(n,r){var o=n.join(Xs),i=this.cache.get(o),a=r(i);a===null?this.cache.delete(o):this.cache.set(o,a)}}]),e}(),Ua="data-token-hash",rr="data-css-hash",pg="data-cache-path",Dr="__cssinjs_instance__";function hg(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(rr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Dr]=o[Dr]||e,o[Dr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(rr,"]"))).forEach(function(o){var i=o.getAttribute(rr);if(r[i]){if(o[Dr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new gg(e)}var bg=s.createContext({hashPriority:"low",cache:hg(),defaultCache:!0});const Yl=bg;function Ht(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function yg(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 Ys="data-rc-order",Qs="data-rc-priority",Sg="rc-util-key",Ga=new Map;function ad(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Sg}function Ai(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Cg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ld(e){return Array.from((Ga.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function sd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ht())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=Cg(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(Ys,a),l&&i&&c.setAttribute(Qs,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Ai(t),d=u.firstChild;if(r){if(l){var f=ld(u).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Ys)))return!1;var v=Number(m.getAttribute(Qs)||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 cd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ai(t);return ld(n).find(function(r){return r.getAttribute(ad(t))===e})}function pi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=cd(e,t);if(n){var r=Ai(t);r.removeChild(n)}}function xg(e,t){var n=Ga.get(e);if(!n||!yg(document,n)){var r=sd("",t),o=r.parentNode;Ga.set(e,o),e.removeChild(r)}}function ho(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ai(n);xg(r,n);var o=cd(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=sd(e,n);return c.setAttribute(ad(n),t),c}function ud(e){if(Array.isArray(e))return e}function wg(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function dd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X(e,t){return ud(e)||wg(e,t)||Gl(e,t)||dd()}function Eg(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 Ql=function(){function e(){Xt(this,e),A(this,"cache",void 0),A(this,"keys",void 0),A(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Yt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var c,u;a=(c=a)===null||c===void 0||(u=c.map)===null||u===void 0?void 0:u.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,d){var f=X(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=X(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Eg(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();A(Ql,"MAX_CACHE_SIZE",20);A(Ql,"MAX_CACHE_OFFSET",5);var Zs=0,fd=function(){function e(t){Xt(this,e),A(this,"derivatives",void 0),A(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Zs,t.length===0&&sr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Zs+=1}return Yt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),sa=new Ql;function qa(e){var t=Array.isArray(e)?e:[e];return sa.has(t)||sa.set(t,new fd(t)),sa.get(t)}var $g=new WeakMap,ca={};function Og(e,t){for(var n=$g,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(ca)||n.set(ca,e()),n.get(ca)}var Js=new WeakMap;function hi(e){var t=Js.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof fd?t+=r.id:r&&Ze(r)==="object"?t+=hi(r):t+=r}),Js.set(e,t)),t}function Ig(e,t){return Xl("".concat(t,"_").concat(hi(e)))}var mo="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),md="_bAmBoO_";function Rg(e,t,n){if(Ht()){var r,o;ho(e,mo);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(md);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),pi(mo),a}return!1}var ua=void 0;function Pg(){return ua===void 0&&(ua=Rg("@layer ".concat(mo," { .").concat(mo,' { content: "').concat(md,'"!important; } }'),function(e){e.className=mo})),ua}var ec=process.env.NODE_ENV!=="test"&&Ht()?s.useLayoutEffect:s.useEffect,St=function(t,n){var r=s.useRef(!0);ec(function(){return t(r.current)},n),ec(function(){return r.current=!1,function(){r.current=!0}},[])},tc=function(t,n){St(function(r){if(!r)return t()},n)},Ng=V({},s),nc=Ng.useInsertionEffect,Mg=function(t,n,r){s.useMemo(t,r),St(function(){return n(!0)},r)},Tg=nc?function(e,t,n){return nc(function(){return e(),t()},n)}:Mg;const _g=Tg;var Ag=V({},s),Dg=Ag.useInsertionEffect,zg=function(t){var n=[],r=!1;function o(i){if(r){process.env.NODE_ENV!=="production"&&sr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},Lg=function(){return function(t){t()}},Fg=typeof Dg<"u"?zg:Lg;const jg=Fg;function Bg(){return!1}var Xa=!1;function Hg(){return Xa}const Vg=process.env.NODE_ENV==="production"?Bg:Hg;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var da=window;if(typeof da.webpackHotUpdate=="function"){var kg=da.webpackHotUpdate;da.webpackHotUpdate=function(){return Xa=!0,setTimeout(function(){Xa=!1},0),kg.apply(void 0,arguments)}}}function vd(e,t,n,r,o){var i=s.useContext(Yl),a=i.cache,l=[e].concat(be(t)),c=l.join("_"),u=jg([c]),d=Vg(),f=function(p){a.update(l,function(g){var b=g||[],y=X(b,2),S=y[0],x=S===void 0?0:S,w=y[1],E=w;process.env.NODE_ENV!=="production"&&w&&d&&(r==null||r(E,d),E=null);var C=E||n(),$=[x,C];return p?p($):$})};s.useMemo(function(){f()},[c]);var m=a.get(l);process.env.NODE_ENV!=="production"&&!m&&(f(),m=a.get(l));var v=m[1];return _g(function(){o==null||o(v)},function(h){return f(function(p){var g=X(p,2),b=g[0],y=g[1];return h&&b===0&&(o==null||o(v)),[b+1,y]}),function(){a.update(l,function(p){var g=p||[],b=X(g,2),y=b[0],S=y===void 0?0:y,x=b[1],w=S-1;return w===0?(u(function(){return r==null?void 0:r(x,!1)}),null):[S-1,x]})}},[c]),v}var Wg={},Kg=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Jn=new Map;function Ug(e){Jn.set(e,(Jn.get(e)||0)+1)}function Gg(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ua,'="').concat(e,'"]'));n.forEach(function(r){if(r[Dr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var qg=0;function Xg(e,t){Jn.set(e,(Jn.get(e)||0)-1);var n=Array.from(Jn.keys()),r=n.filter(function(o){var i=Jn.get(o)||0;return i<=0});n.length-r.length>qg&&r.forEach(function(o){Gg(o,t),Jn.delete(o)})}var Yg=function(t,n,r,o){var i=r.getDerivativeToken(t),a=V(V({},i),n);return o&&(a=o(a)),a};function Qg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=O.useContext(Yl),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,l=n.override,c=l===void 0?Wg:l,u=n.formatToken,d=n.getComputedToken,f=Og(function(){return Object.assign.apply(Object,[{}].concat(be(t)))},t),m=hi(f),v=hi(c),h=vd("token",[a,e.id,m,v],function(){var p=d?d(f,c,e):Yg(f,c,e,u),g=Ig(p,a);p._tokenKey=g,Ug(g);var b="".concat(Kg,"-").concat(Xl(g));return p._hashId=b,[p,b]},function(p){Xg(p[0]._tokenKey,o)});return h}var Zg={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},gd="comm",pd="rule",hd="decl",Jg="@import",ep="@keyframes",tp="@layer",np=Math.abs,Zl=String.fromCharCode;function bd(e){return e.trim()}function oi(e,t,n){return e.replace(t,n)}function rp(e,t){return e.indexOf(t)}function bo(e,t){return e.charCodeAt(t)|0}function yo(e,t,n){return e.slice(t,n)}function zn(e){return e.length}function op(e){return e.length}function Ko(e,t){return t.push(e),e}var Di=1,Vr=1,yd=0,pn=0,Mt=0,qr="";function Jl(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Di,column:Vr,length:a,return:"",siblings:l}}function ip(){return Mt}function ap(){return Mt=pn>0?bo(qr,--pn):0,Vr--,Mt===10&&(Vr=1,Di--),Mt}function wn(){return Mt=pn<yd?bo(qr,pn++):0,Vr++,Mt===10&&(Vr=1,Di++),Mt}function or(){return bo(qr,pn)}function ii(){return pn}function zi(e,t){return yo(qr,e,t)}function Ya(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 lp(e){return Di=Vr=1,yd=zn(qr=e),pn=0,[]}function sp(e){return qr="",e}function fa(e){return bd(zi(pn-1,Qa(e===91?e+2:e===40?e+1:e)))}function cp(e){for(;(Mt=or())&&Mt<33;)wn();return Ya(e)>2||Ya(Mt)>3?"":" "}function up(e,t){for(;--t&&wn()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return zi(e,ii()+(t<6&&or()==32&&wn()==32))}function Qa(e){for(;wn();)switch(Mt){case e:return pn;case 34:case 39:e!==34&&e!==39&&Qa(Mt);break;case 40:e===41&&Qa(e);break;case 92:wn();break}return pn}function dp(e,t){for(;wn()&&e+Mt!==47+10;)if(e+Mt===42+42&&or()===47)break;return"/*"+zi(t,pn-1)+"*"+Zl(e===47?e:wn())}function fp(e){for(;!Ya(or());)wn();return zi(e,pn)}function mp(e){return sp(ai("",null,null,null,[""],e=lp(e),0,[0],e))}function ai(e,t,n,r,o,i,a,l,c){for(var u=0,d=0,f=a,m=0,v=0,h=0,p=1,g=1,b=1,y=0,S="",x=o,w=i,E=r,C=S;g;)switch(h=y,y=wn()){case 40:if(h!=108&&bo(C,f-1)==58){rp(C+=oi(fa(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=fa(y);break;case 9:case 10:case 13:case 32:C+=cp(h);break;case 92:C+=up(ii()-1,7);continue;case 47:switch(or()){case 42:case 47:Ko(vp(dp(wn(),ii()),t,n,c),c);break;default:C+="/"}break;case 123*p:l[u++]=zn(C)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+d:b==-1&&(C=oi(C,/\f/g,"")),v>0&&zn(C)-f&&Ko(v>32?oc(C+";",r,n,f-1,c):oc(oi(C," ","")+";",r,n,f-2,c),c);break;case 59:C+=";";default:if(Ko(E=rc(C,t,n,u,d,o,l,S,x=[],w=[],f,i),i),y===123)if(d===0)ai(C,t,E,E,x,i,f,l,w);else switch(m===99&&bo(C,3)===110?100:m){case 100:case 108:case 109:case 115:ai(e,E,E,r&&Ko(rc(e,E,E,0,0,o,l,S,o,x=[],f,w),w),o,w,f,l,r?x:w);break;default:ai(C,E,E,E,[""],w,0,l,w)}}u=d=v=0,p=b=1,S=C="",f=a;break;case 58:f=1+zn(C),v=h;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&ap()==125)continue}switch(C+=Zl(y),y*p){case 38:b=d>0?1:(C+="\f",-1);break;case 44:l[u++]=(zn(C)-1)*b,b=1;break;case 64:or()===45&&(C+=fa(wn())),m=or(),d=f=zn(S=C+=fp(ii())),y++;break;case 45:h===45&&zn(C)==2&&(p=0)}}return i}function rc(e,t,n,r,o,i,a,l,c,u,d,f){for(var m=o-1,v=o===0?i:[""],h=op(v),p=0,g=0,b=0;p<r;++p)for(var y=0,S=yo(e,m+1,m=np(g=a[p])),x=e;y<h;++y)(x=bd(g>0?v[y]+" "+S:oi(S,/&\f/g,v[y])))&&(c[b++]=x);return Jl(e,t,n,o===0?pd:l,c,u,d,f)}function vp(e,t,n,r){return Jl(e,t,n,gd,Zl(ip()),yo(e,2,-2),0,r)}function oc(e,t,n,r,o){return Jl(e,t,n,hd,yo(e,0,r),yo(e,r+1,-1),r,o)}function Za(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function gp(e,t,n,r){switch(e.type){case tp:if(e.children.length)break;case Jg:case hd:return e.return=e.return||e.value;case gd:return"";case ep:return e.return=e.value+"{"+Za(e.children,r)+"}";case pd:if(!zn(e.value=e.props.join(",")))return""}return zn(n=Za(e.children,r))?e.return=e.value+"{"+n+"}":""}function Sd(e,t){var n=t.path,r=t.parentSelectors;Ue(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var pp=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Sd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},hp=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Sd("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},ic="data-ant-cssinjs-cache-path",Cd="_FILE_STYLE__",ir,xd=!0;function bp(){if(!ir&&(ir={},Ht())){var e=document.createElement("div");e.className=ic,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=X(i,2),l=a[0],c=a[1];ir[l]=c});var n=document.querySelector("style[".concat(ic,"]"));if(n){var r;xd=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function yp(e){return bp(),!!ir[e]}function Sp(e){var t=ir[e],n=null;if(t&&Ht())if(xd)n=Cd;else{var r=document.querySelector("style[".concat(rr,'="').concat(ir[e],'"]'));r?n=r.innerHTML:delete ir[e]}return[n,t]}var ac=Ht(),wd="_skip_check_",Ed="_multi_value_";function lc(e){var t=Za(mp(e),gp);return t.replace(/\{%%%\:[^;];}/g,";")}function Cp(e){return Ze(e)==="object"&&e&&(wd in e||Ed in e)}function xp(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,c=a.trim().split(/\s+/),u=c[0]||"",d=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(be(c.slice(1))).join(" ")});return i.join(",")}var wp=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,u=n.path,d=n.hashPriority,f=n.transformers,m=f===void 0?[]:f,v=n.linters,h=v===void 0?[]:v,p="",g={};function b(E){var C=E.getName(l);if(!g[C]){var $=e(E.style,n,{root:!1,parentSelectors:a}),P=X($,1),R=P[0];g[C]="@keyframes ".concat(E.getName(l)).concat(R)}}function y(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function($){Array.isArray($)?y($,C):$&&C.push($)}),C}var S=y(Array.isArray(t)?t:[t]);if(S.forEach(function(E){var C=typeof E=="string"&&!o?{}:E;if(typeof C=="string")p+="".concat(C,`
24
+ `);else if(C._keyframe)b(C);else{var $=m.reduce(function(P,R){var z;return(R==null||(z=R.visit)===null||z===void 0?void 0:z.call(R,P))||P},C);Object.keys($).forEach(function(P){var R=$[P];if(Ze(R)==="object"&&R&&(P!=="animationName"||!R._keyframe)&&!Cp(R)){var z=!1,_=P.trim(),N=!1;(o||i)&&l?_.startsWith("@")?z=!0:_=xp(P,l,d):o&&!l&&(_==="&"||_==="")&&(_="",N=!0);var D=e(R,n,{root:N,injectHash:z,parentSelectors:[].concat(be(a),[_])}),L=X(D,2),T=L[0],I=L[1];g=V(V({},g),I),p+="".concat(_).concat(T)}else{let F=function(B,H){process.env.NODE_ENV!=="production"&&(Ze(R)!=="object"||!(R!=null&&R[wd]))&&[pp,hp].concat(be(h)).forEach(function(k){return k(B,H,{path:u,hashId:l,parentSelectors:a})});var Y=B.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),W=H;!Zg[B]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),B==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(b(H),W=H.getName(l)),p+="".concat(Y,":").concat(W,";")};var M,j=(M=R==null?void 0:R.value)!==null&&M!==void 0?M:R;Ze(R)==="object"&&R!==null&&R!==void 0&&R[Ed]&&Array.isArray(j)?j.forEach(function(B){F(P,B)}):F(P,j)}})}}),!o)p="{".concat(p,"}");else if(c&&Pg()){var x=c.split(","),w=x[x.length-1].trim();p="@layer ".concat(w," {").concat(p,"}"),x.length>1&&(p="@layer ".concat(c,"{%%%:%}").concat(p))}return[p,g]};function Ep(e,t){return Xl("".concat(e.join("%")).concat(t))}function $p(){return null}function Ja(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(Yl),f=d.autoClear,m=d.mock,v=d.defaultCache,h=d.hashPriority,p=d.container,g=d.ssrInline,b=d.transformers,y=d.linters,S=d.cache,x=n._tokenKey,w=[x].concat(be(r)),E=ac;process.env.NODE_ENV!=="production"&&m!==void 0&&(E=m==="client");var C=vd("style",w,function(){var _=w.join("|");if(yp(_)){var N=Sp(_),D=X(N,2),L=D[0],T=D[1];if(L)return[L,x,T,{},l,u]}var I=t(),M=wp(I,{hashId:o,hashPriority:h,layer:i,path:r.join("-"),transformers:b,linters:y}),j=X(M,2),F=j[0],B=j[1],H=lc(F),Y=Ep(w,H);return[H,x,Y,B,l,u]},function(_,N){var D=X(_,3),L=D[2];(N||f)&&ac&&pi(L,{mark:rr})},function(_){var N=X(_,4),D=N[0];N[1];var L=N[2],T=N[3];if(E&&D!==Cd){var I={mark:rr,prepend:"queue",attachTo:p,priority:u},M=typeof a=="function"?a():a;M&&(I.csp={nonce:M});var j=ho(D,L,I);j[Dr]=S.instanceId,j.setAttribute(Ua,x),process.env.NODE_ENV!=="production"&&j.setAttribute(pg,w.join("|")),Object.keys(T).forEach(function(F){ho(lc(T[F]),"_effect-".concat(F),I)})}}),$=X(C,3),P=$[0],R=$[1],z=$[2];return function(_){var N;if(!g||E||!v)N=s.createElement($p,null);else{var D;N=s.createElement("style",Me({},(D={},A(D,Ua,R),A(D,rr,z),D),{dangerouslySetInnerHTML:{__html:P}}))}return s.createElement(s.Fragment,null,N,_)}}var pt=function(){function e(t,n){Xt(this,e),A(this,"name",void 0),A(this,"style",void 0),A(this,"_keyframe",!0),this.name=t,this.style=n}return Yt(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 Cr(e){return e.notSplit=!0,e}Cr(["borderTop","borderBottom"]),Cr(["borderTop"]),Cr(["borderBottom"]),Cr(["borderLeft","borderRight"]),Cr(["borderLeft"]),Cr(["borderRight"]);var Op=O.createContext({});const es=Op;function $d(e){return ud(e)||nd(e)||Gl(e)||dd()}function xn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Od(e,t,n,r){if(!t.length)return n;var o=$d(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=be(e):l=V({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=Od(l[i],a,n,r),l}function Sn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!xn(e,t.slice(0,-1))?e:Od(e,t,n,r)}function Ip(e){return Ze(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function sc(e){return Array.isArray(e)?[]:{}}var Rp=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function zr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=sc(t[0]);return t.forEach(function(o){function i(a,l){var c=new Set(l),u=xn(o,a),d=Array.isArray(u);if(d||Ip(u)){if(!c.has(u)){c.add(u);var f=xn(r,a);d?r=Sn(r,a,[]):(!f||Ze(f)!=="object")&&(r=Sn(r,a,sc(u))),Rp(u).forEach(function(m){i([].concat(be(a),[m]),c)})}}else r=Sn(r,a,u)}i([])}),r}function Id(){}let Dn=null;function Pp(){Dn=null,Ku()}let ts=Id;process.env.NODE_ENV!=="production"&&(ts=(e,t,n)=>{Ue(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&Pp()});const Rd=s.createContext({}),ln=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=s.useContext(Rd),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=Dn;Dn||(Dn={}),Dn[e]=Dn[e]||[],Dn[e].includes(i||"")||Dn[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Dn)}else process.env.NODE_ENV!=="production"&&ts(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Id,e},Li=ts,Np=O.createContext(void 0),Pd={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var Mp={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const Tp={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Nd=Tp,_p={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"]},Mp),timePickerLocale:Object.assign({},Nd)},cc=_p,tn="${label} is not a valid ${type}",Ap={locale:"en",Pagination:Pd,DatePicker:cc,TimePicker:Nd,Calendar:cc,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:tn,method:tn,array:tn,object:tn,number:tn,date:tn,boolean:tn,integer:tn,float:tn,regexp:tn,email:tn,url:tn,hex:tn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},qn=Ap;Object.assign({},qn.Modal);let li=[];const uc=()=>li.reduce((e,t)=>Object.assign(Object.assign({},e),t),qn.Modal);function Dp(e){if(e){const t=Object.assign({},e);return li.push(t),uc(),()=>{li=li.filter(n=>n!==t),uc()}}Object.assign({},qn.Modal)}const zp=O.createContext(void 0),ns=zp,Lp=(e,t)=>{const n=s.useContext(ns),r=s.useMemo(()=>{var i;const a=t||qn[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=s.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?qn.locale:i},[n]);return[r,o]},Fi=Lp,Md="internalMark",Td=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=ln("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===Md,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}s.useEffect(()=>Dp(t&&t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(ns.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(Td.displayName="LocaleProvider");const Fp=Td;function jt(e,t){jp(e)&&(e="100%");var n=Bp(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Uo(e){return Math.min(1,Math.max(0,e))}function jp(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Bp(e){return typeof e=="string"&&e.indexOf("%")!==-1}function _d(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Go(e){return e<=1?"".concat(Number(e)*100,"%"):e}function er(e){return e.length===1?"0"+e:String(e)}function Hp(e,t,n){return{r:jt(e,255)*255,g:jt(t,255)*255,b:jt(n,255)*255}}function dc(e,t,n){e=jt(e,255),t=jt(t,255),n=jt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:a,l}}function ma(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Vp(e,t,n){var r,o,i;if(e=jt(e,360),t=jt(t,100),n=jt(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=ma(l,a,e+1/3),o=ma(l,a,e),i=ma(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function el(e,t,n){e=jt(e,255),t=jt(t,255),n=jt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:c,v:a}}function kp(e,t,n){e=jt(e,360)*6,t=jt(t,100),n=jt(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6,u=[n,a,i,i,l,n][c],d=[l,n,n,a,i,i][c],f=[i,i,l,n,n,a][c];return{r:u*255,g:d*255,b:f*255}}function tl(e,t,n,r){var o=[er(Math.round(e).toString(16)),er(Math.round(t).toString(16)),er(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Wp(e,t,n,r,o){var i=[er(Math.round(e).toString(16)),er(Math.round(t).toString(16)),er(Math.round(n).toString(16)),er(Kp(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Kp(e){return Math.round(parseFloat(e)*255).toString(16)}function fc(e){return rn(e)/255}function rn(e){return parseInt(e,16)}function Up(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var nl={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ar(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=Xp(e)),typeof e=="object"&&(_n(e.r)&&_n(e.g)&&_n(e.b)?(t=Hp(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_n(e.h)&&_n(e.s)&&_n(e.v)?(r=Go(e.s),o=Go(e.v),t=kp(e.h,r,o),a=!0,l="hsv"):_n(e.h)&&_n(e.s)&&_n(e.l)&&(r=Go(e.s),i=Go(e.l),t=Vp(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=_d(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Gp="[-\\+]?\\d+%?",qp="[-\\+]?\\d*\\.\\d+%?",Un="(?:".concat(qp,")|(?:").concat(Gp,")"),va="[\\s|\\(]+(".concat(Un,")[,|\\s]+(").concat(Un,")[,|\\s]+(").concat(Un,")\\s*\\)?"),ga="[\\s|\\(]+(".concat(Un,")[,|\\s]+(").concat(Un,")[,|\\s]+(").concat(Un,")[,|\\s]+(").concat(Un,")\\s*\\)?"),yn={CSS_UNIT:new RegExp(Un),rgb:new RegExp("rgb"+va),rgba:new RegExp("rgba"+ga),hsl:new RegExp("hsl"+va),hsla:new RegExp("hsla"+ga),hsv:new RegExp("hsv"+va),hsva:new RegExp("hsva"+ga),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Xp(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(nl[e])e=nl[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=yn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=yn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=yn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yn.hex8.exec(e),n?{r:rn(n[1]),g:rn(n[2]),b:rn(n[3]),a:fc(n[4]),format:t?"name":"hex8"}:(n=yn.hex6.exec(e),n?{r:rn(n[1]),g:rn(n[2]),b:rn(n[3]),format:t?"name":"hex"}:(n=yn.hex4.exec(e),n?{r:rn(n[1]+n[1]),g:rn(n[2]+n[2]),b:rn(n[3]+n[3]),a:fc(n[4]+n[4]),format:t?"name":"hex8"}:(n=yn.hex3.exec(e),n?{r:rn(n[1]+n[1]),g:rn(n[2]+n[2]),b:rn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function _n(e){return!!yn.CSS_UNIT.exec(String(e))}var _t=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Up(t)),this.originalInput=t;var o=Ar(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=_d(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=el(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=el(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=dc(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=dc(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),tl(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Wp(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(jt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(jt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+tl(this.r,this.g,this.b,!1),n=0,r=Object.entries(nl);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Uo(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Uo(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Uo(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Uo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),qo=2,mc=.16,Yp=.05,Qp=.05,Zp=.15,Ad=5,Dd=4,Jp=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function vc(e){var t=e.r,n=e.g,r=e.b,o=el(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Xo(e){var t=e.r,n=e.g,r=e.b;return"#".concat(tl(t,n,r,!1))}function eh(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function gc(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-qo*t:Math.round(e.h)+qo*t:r=n?Math.round(e.h)+qo*t:Math.round(e.h)-qo*t,r<0?r+=360:r>=360&&(r-=360),r}function pc(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-mc*t:t===Dd?r=e.s+mc:r=e.s+Yp*t,r>1&&(r=1),n&&t===Ad&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function hc(e,t,n){var r;return n?r=e.v+Qp*t:r=e.v-Zp*t,r>1&&(r=1),Number(r.toFixed(2))}function cr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ar(e),o=Ad;o>0;o-=1){var i=vc(r),a=Xo(Ar({h:gc(i,o,!0),s:pc(i,o,!0),v:hc(i,o,!0)}));n.push(a)}n.push(Xo(r));for(var l=1;l<=Dd;l+=1){var c=vc(r),u=Xo(Ar({h:gc(c,l),s:pc(c,l),v:hc(c,l)}));n.push(u)}return t.theme==="dark"?Jp.map(function(d){var f=d.index,m=d.opacity,v=Xo(eh(Ar(t.backgroundColor||"#141414"),Ar(n[f]),m*100));return v}):n}var pa={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"},si={},ha={};Object.keys(pa).forEach(function(e){si[e]=cr(pa[e]),si[e].primary=si[e][5],ha[e]=cr(pa[e],{theme:"dark",backgroundColor:"#141414"}),ha[e].primary=ha[e][5]});var th=si.blue;const nh=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},rh=nh;function oh(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 zd={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"},ih=Object.assign(Object.assign({},zd),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
25
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
26
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),So=ih;function ah(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),m=n(o),v=n(i),h=n(a),p=n(l),g=r(u,d),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new _t("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const lh=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}},sh=lh;function ch(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},sh(r))}const An=(e,t)=>new _t(e).setAlpha(t).toRgbString(),to=(e,t)=>new _t(e).darken(t).toHexString(),uh=e=>{const t=cr(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]}},dh=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:An(r,.88),colorTextSecondary:An(r,.65),colorTextTertiary:An(r,.45),colorTextQuaternary:An(r,.25),colorFill:An(r,.15),colorFillSecondary:An(r,.06),colorFillTertiary:An(r,.04),colorFillQuaternary:An(r,.02),colorBgLayout:to(n,4),colorBgContainer:to(n,0),colorBgElevated:to(n,0),colorBgSpotlight:An(r,.85),colorBgBlur:"transparent",colorBorder:to(n,15),colorBorderSecondary:to(n,6)}};function fh(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const mh=e=>{const t=fh(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},vh=mh;function gh(e){const t=Object.keys(zd).map(n=>{const r=cr(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),ah(e,{generateColorPalettes:uh,generateNeutralColorPalettes:dh})),vh(e.fontSize)),oh(e)),rh(e)),ch(e))}const Ld=qa(gh),Fd={token:So,override:{override:So},hashed:!0},jd=O.createContext(Fd),Bd="anticon",ph=(e,t)=>t||(e?`ant-${e}`:"ant"),ut=s.createContext({getPrefixCls:ph,iconPrefixCls:Bd}),hh=`-ant-${Date.now()}-${Math.random()}`;function bh(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(a,l)=>{const c=new _t(a),u=cr(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new _t(t.primaryColor),l=cr(a.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const c=new _t(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
27
+ :root {
28
+ ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
29
+ `)}
30
+ }
31
+ `.trim()}function yh(e,t){const n=bh(e,t);Ht()?ho(n,`${hh}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Li(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const rl=s.createContext(!1),Sh=e=>{let{children:t,disabled:n}=e;const r=s.useContext(rl);return s.createElement(rl.Provider,{value:n??r},t)},Xr=rl,ol=s.createContext(void 0),Ch=e=>{let{children:t,size:n}=e;const r=s.useContext(ol);return s.createElement(ol.Provider,{value:n||r},t)},ji=ol;function xh(){const e=O.useContext(Xr),t=O.useContext(ji);return{componentDisabled:e,componentSize:t}}const bi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],wh="5.11.0";function ba(e){return e>=0&&e<=255}function Yo(e,t){const{r:n,g:r,b:o,a:i}=new _t(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new _t(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(ba(d)&&ba(f)&&ba(m))return new _t({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new _t({r:n,g:r,b:o,a:1}).toRgbString()}var Eh=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Hd(e){const{override:t}=e,n=Eh(e,["override"]),r=Object.assign({},t);Object.keys(So).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Yo(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:Yo(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Yo(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Yo(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
32
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
33
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
34
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
35
+ `,boxShadowSecondary:`
36
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
37
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
38
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
39
+ `,boxShadowTertiary:`
40
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
41
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
42
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
43
+ `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
44
+ 0 1px 2px -2px ${new _t("rgba(0, 0, 0, 0.16)").toRgbString()},
45
+ 0 3px 6px 0 ${new _t("rgba(0, 0, 0, 0.12)").toRgbString()},
46
+ 0 5px 12px 4px ${new _t("rgba(0, 0, 0, 0.09)").toRgbString()}
47
+ `,boxShadowDrawerRight:`
48
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
49
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
50
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
51
+ `,boxShadowDrawerLeft:`
52
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
53
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
54
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
55
+ `,boxShadowDrawerUp:`
56
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
57
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
58
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
59
+ `,boxShadowDrawerDown:`
60
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
61
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
62
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
63
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var bc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vd=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=bc(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Hd(a),i&&Object.entries(i).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=bc(u,["theme"]);let m=f;d&&(m=Vd(Object.assign(Object.assign({},a),f),{override:f},d)),a[c]=m}),a};function On(){const{token:e,hashed:t,theme:n,override:r}=O.useContext(jd),o=`${wh}-${t||""}`,i=n||Ld,[a,l]=Qg(i,[So,e],{salt:o,override:r,getComputedToken:Vd,formatToken:Hd});return[i,a,t?l:""]}function kt(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function jr(e){var t=s.useRef(!1),n=s.useState(e),r=X(n,2),o=r[0],i=r[1];s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||i(l)}return[o,a]}function ya(e){return e!==void 0}function Wt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=jr(function(){return ya(o)?o:ya(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=X(l,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=a?a(f):f,v=kt(i),h=jr([f]),p=X(h,2),g=p[0],b=p[1];tc(function(){var S=g[0];u!==S&&v(u,S)},[g]),tc(function(){ya(o)||d(o)},[o]);var y=kt(function(S,x){d(S,x),b([f],x)});return[m,y]}const $h=(e,t,n,r,o)=>{const i=e/2,a=0,l=i,c=n*1/Math.sqrt(2),u=i-n*(1-1/Math.sqrt(2)),d=i-t*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-d,v=f,h=2*i-c,p=u,g=2*i-a,b=l,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${c} ${u} L ${d} ${f} A ${t} ${t} 0 0 1 ${m} ${v} L ${h} ${p} A ${n} ${n} 0 0 0 ${g} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},kr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},an=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Po=()=>({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"}}),il=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Oh=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ih=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Co=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),yi=e=>({"&:focus-visible":Object.assign({},Co(e))}),kd=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let al=!0;function dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!kd)return Object.assign.apply(Object,[{}].concat(t));al=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),al=!0,r}const yc={};function Rh(){}function Ph(e){let t,n=e,r=Rh;return kd&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return al&&t.add(i),o[i]}}),r=(o,i)=>{var a;yc[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=yc[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}}const Nh=(e,t)=>{const[n,r]=On();return Ja({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Po()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Wd=Nh;function sn(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return l=>{const[c,u,d]=On(),{getPrefixCls:f,iconPrefixCls:m,csp:v}=O.useContext(ut),h=f(),p={theme:c,token:u,hashId:d,nonce:()=>v==null?void 0:v.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Ja(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":Oh(u)}]),Wd(m,v),[Ja(Object.assign(Object.assign({},p),{path:[a,l,m]}),()=>{const{token:g,flush:b}=Ph(u),y=Object.assign({},u[i]);if(r.deprecatedTokens){const{deprecatedTokens:$}=r;$.forEach(P=>{let[R,z]=P;var _;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Ue(!(y!=null&&y[R]),`The token '${String(R)}' of ${i} had deprecated, use '${String(z)}' instead.`),(y!=null&&y[R]||y!=null&&y[z])&&((_=y[z])!==null&&_!==void 0||(y[z]=y==null?void 0:y[R]))})}const S=typeof n=="function"?n(dt(g,y??{})):n,x=Object.assign(Object.assign({},S),y),w=`.${l}`,E=dt(g,{componentCls:w,prefixCls:l,iconCls:`.${m}`,antCls:`.${h}`},x),C=t(E,{hashId:d,prefixCls:l,rootPrefixCls:h,iconPrefixCls:m,overrideComponentToken:y});return b(i,x),[r.resetStyle===!1?null:Ih(u,l),C]}),d]}}const Mh=(e,t,n,r)=>{const o=sn(e,t,n,Object.assign({resetStyle:!1,order:-998},r)),i=a=>{let{prefixCls:l}=a;return o(l),null};return process.env.NODE_ENV!=="production"&&(i.displayName=`SubStyle_${Array.isArray(e)?e.join("."):e}`),i};function Th(e,t){return bi.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}function _h(e,t){const n=e||{},r=n.inherit===!1||!t?Fd:t;return Ro(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,i)=>o.some((a,l)=>{const c=i[l];return!_i(a,c,!0)}))}var Ah=["children"],Kd=s.createContext({});function Dh(e){var t=e.children,n=et(e,Ah);return s.createElement(Kd.Provider,{value:n},t)}var zh=function(e){fr(n,e);var t=mr(n);function n(){return Xt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),Qn="none",Qo="appear",Zo="enter",Jo="leave",Sc="none",Cn="prepare",Lr="start",Fr="active",rs="end",Ud="prepared";function Cc(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 Lh(e,t){var n={animationend:Cc("Animation","AnimationEnd"),transitionend:Cc("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Fh=Lh(Ht(),typeof window<"u"?window:{}),Gd={};if(Ht()){var jh=document.createElement("div");Gd=jh.style}var ei={};function qd(e){if(ei[e])return ei[e];var t=Fh[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 Gd)return ei[e]=t[i],ei[e]}return""}var Xd=qd("animationend"),Yd=qd("transitionend"),Qd=!!(Xd&&Yd),xc=Xd||"animationend",wc=Yd||"transitionend";function Ec(e,t){if(!e)return null;if(Ze(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Bh=function(e){var t=O.useRef(),n=O.useRef(e);n.current=e;var r=s.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener(wc,r),a.removeEventListener(xc,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(wc,r),a.addEventListener(xc,r),t.current=a)}return s.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};var Zd=Ht()?O.useLayoutEffect:O.useEffect;const Hh=function(){var e=s.useRef(null);function t(){gt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=gt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return s.useEffect(function(){return function(){t()}},[]),[n,t]};var Vh=[Cn,Lr,Fr,rs],kh=[Cn,Ud],Jd=!1,Wh=!0;function ef(e){return e===Fr||e===rs}const Kh=function(e,t,n){var r=jr(Sc),o=X(r,2),i=o[0],a=o[1],l=Hh(),c=X(l,2),u=c[0],d=c[1];function f(){a(Cn,!0)}var m=t?kh:Vh;return Zd(function(){if(i!==Sc&&i!==rs){var v=m.indexOf(i),h=m[v+1],p=n(i);p===Jd?a(h,!0):h&&u(function(g){function b(){g.isCanceled()||a(h,!0)}p===!0?b():Promise.resolve(p).then(b)})}},[e,i]),s.useEffect(function(){return function(){d()}},[]),[f,i]};function Uh(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,h=r.onLeavePrepare,p=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,x=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,C=r.onLeaveEnd,$=r.onVisibleChanged,P=jr(),R=X(P,2),z=R[0],_=R[1],N=jr(Qn),D=X(N,2),L=D[0],T=D[1],I=jr(null),M=X(I,2),j=M[0],F=M[1],B=O.useRef(!1),H=O.useRef(null);function Y(){return n()}var W=O.useRef(!1);function k(){T(Qn,!0),F(null,!0)}function oe(le){var Q=Y();if(!(le&&!le.deadline&&le.target!==Q)){var ge=W.current,fe;L===Qo&&ge?fe=w==null?void 0:w(Q,le):L===Zo&&ge?fe=E==null?void 0:E(Q,le):L===Jo&&ge&&(fe=C==null?void 0:C(Q,le)),L!==Qn&&ge&&fe!==!1&&k()}}var ie=Bh(oe),Z=X(ie,1),q=Z[0],K=function(Q){var ge,fe,Se;switch(Q){case Qo:return ge={},A(ge,Cn,m),A(ge,Lr,p),A(ge,Fr,y),ge;case Zo:return fe={},A(fe,Cn,v),A(fe,Lr,g),A(fe,Fr,S),fe;case Jo:return Se={},A(Se,Cn,h),A(Se,Lr,b),A(Se,Fr,x),Se;default:return{}}},ae=s.useMemo(function(){return K(L)},[L]),re=Kh(L,!e,function(le){if(le===Cn){var Q=ae[Cn];return Q?Q(Y()):Jd}if(ve in ae){var ge;F(((ge=ae[ve])===null||ge===void 0?void 0:ge.call(ae,Y(),null))||null)}return ve===Fr&&(q(Y()),d>0&&(clearTimeout(H.current),H.current=setTimeout(function(){oe({deadline:!0})},d))),ve===Ud&&k(),Wh}),ee=X(re,2),U=ee[0],ve=ee[1],te=ef(ve);W.current=te,Zd(function(){_(t);var le=B.current;B.current=!0;var Q;!le&&t&&l&&(Q=Qo),le&&t&&i&&(Q=Zo),(le&&!t&&u||!le&&f&&!t&&u)&&(Q=Jo);var ge=K(Q);Q&&(e||ge[Cn])?(T(Q),U()):T(Qn)},[t]),O.useEffect(function(){(L===Qo&&!l||L===Zo&&!i||L===Jo&&!u)&&T(Qn)},[l,i,u]),O.useEffect(function(){return function(){B.current=!1,clearTimeout(H.current)}},[]);var ue=s.useRef(!1);O.useEffect(function(){z&&(ue.current=!0),z!==void 0&&L===Qn&&((ue.current||z)&&($==null||$(z)),ue.current=!0)},[z,L]);var se=j;return ae[Cn]&&ve===Lr&&(se=V({transition:"none"},se)),[L,ve,se,z??t]}function Gh(e){var t=e;Ze(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=s.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,h=o.eventProps,p=s.useContext(Kd),g=p.motion,b=n(o,g),y=O.useRef(),S=O.useRef();function x(){try{return y.current instanceof HTMLElement?y.current:fo(S.current)}catch{return null}}var w=Uh(b,l,x,o),E=X(w,4),C=E[0],$=E[1],P=E[2],R=E[3],z=s.useRef(R);R&&(z.current=!0);var _=s.useCallback(function(F){y.current=F,Ul(i,F)},[i]),N,D=V(V({},h),{},{visible:l});if(!f)N=null;else if(C===Qn)R?N=f(V({},D),_):!u&&z.current&&v?N=f(V(V({},D),{},{className:v}),_):d||!u&&!v?N=f(V(V({},D),{},{style:{display:"none"}}),_):N=null;else{var L,T;$===Cn?T="prepare":ef($)?T="active":$===Lr&&(T="start");var I=Ec(m,"".concat(C,"-").concat(T));N=f(V(V({},D),{},{className:ne(Ec(m,C),(L={},A(L,I,I&&T),A(L,m,typeof m=="string"),L)),style:P}),_)}if(s.isValidElement(N)&&Xn(N)){var M=N,j=M.ref;j||(N=s.cloneElement(N,{ref:_}))}return s.createElement(zh,{ref:S},N)});return r.displayName="CSSMotion",r}const Yr=Gh(Qd);var ll="add",sl="keep",cl="remove",Sa="removed";function qh(e){var t;return e&&Ze(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function ul(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(qh)}function Xh(){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=ul(e),a=ul(t);i.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===u.key){r<f&&(n=n.concat(a.slice(r,f).map(function(v){return V(V({},v),{},{status:ll})})),r=f),n.push(V(V({},m),{},{status:sl})),r+=1,d=!0;break}}d||n.push(V(V({},u),{},{status:cl}))}),r<o&&(n=n.concat(a.slice(r).map(function(u){return V(V({},u),{},{status:ll})})));var l={};n.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==cl}),n.forEach(function(d){d.key===u&&(d.status=sl)})}),n}var Yh=["component","children","onVisibleChanged","onAllRemoved"],Qh=["status"],Zh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Jh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yr,n=function(r){fr(i,r);var o=mr(i);function i(){var a;Xt(this,i);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return a=o.call.apply(o,[this].concat(c)),A(we(a),"state",{keyEntities:[]}),A(we(a),"removeKey",function(d){var f=a.state.keyEntities,m=f.map(function(v){return v.key!==d?v:V(V({},v),{},{status:Sa})});return a.setState({keyEntities:m}),m.filter(function(v){var h=v.status;return h!==Sa}).length}),a}return Yt(i,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged,v=u.onAllRemoved,h=et(u,Yh),p=d||s.Fragment,g={};return Zh.forEach(function(b){g[b]=h[b],delete h[b]}),delete h.keys,s.createElement(p,h,c.map(function(b,y){var S=b.status,x=et(b,Qh),w=S===ll||S===sl;return s.createElement(t,Me({},g,{key:x.key,visible:w,eventProps:x,onVisibleChanged:function(C){if(m==null||m(C,{key:x.key}),!C){var $=l.removeKey(x.key);$===0&&v&&v()}}}),function(E,C){return f(V(V({},E),{},{index:y}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,d=c.keyEntities,f=ul(u),m=Xh(d,f);return{keyEntities:m.filter(function(v){var h=d.find(function(p){var g=p.key;return v.key===g});return!(h&&h.status===Sa&&v.status===cl)})}}}]),i}(s.Component);return A(n,"defaultProps",{component:"div"}),n}Jh(Qd);function e0(e){const{children:t}=e,[,n]=On(),{motion:r}=n,o=s.useRef(!1);return o.current=o.current||r===!1,o.current?s.createElement(Dh,{motion:r},t):t}const tf=s.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return ln("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(tf.displayName="PropWarning");const t0=process.env.NODE_ENV!=="production"?tf:()=>null;var n0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let dl=!1;process.env.NODE_ENV;const r0=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],o0="ant";let nf;function i0(){return nf||o0}function a0(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const l0=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(nf=t),r&&a0(r)&&(process.env.NODE_ENV!=="production"&&Li(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),yh(i0(),r))},s0=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:v,popupOverflow:h,legacyLocale:p,parentContext:g,iconPrefixCls:b,theme:y,componentDisabled:S,segmented:x,statistic:w,spin:E,calendar:C,carousel:$,cascader:P,collapse:R,typography:z,checkbox:_,descriptions:N,divider:D,drawer:L,skeleton:T,steps:I,image:M,layout:j,list:F,mentions:B,modal:H,progress:Y,result:W,slider:k,breadcrumb:oe,menu:ie,pagination:Z,input:q,empty:K,badge:ae,radio:re,rate:ee,switch:U,transfer:ve,avatar:te,message:ue,tag:se,table:le,card:Q,tabs:ge,timeline:fe,timePicker:Se,upload:Le,notification:De,tree:Ce,colorPicker:ot,datePicker:Ie,rangePicker:Te,flex:Re,wave:he,dropdown:Ye,warning:Be}=e,ht=s.useCallback(($e,qe)=>{const{prefixCls:ye}=e;if(qe)return qe;const J=ye||g.getPrefixCls("");return $e?`${J}-${$e}`:J},[g.getPrefixCls,e.prefixCls]),rt=b||g.iconPrefixCls||Bd,Ke=n||g.csp;Wd(rt,Ke);const He=_h(y,g.theme);process.env.NODE_ENV!=="production"&&(dl=dl||!!He);const it={csp:Ke,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||p,direction:u,space:d,virtual:f,popupMatchSelectWidth:v??m,popupOverflow:h,getPrefixCls:ht,iconPrefixCls:rt,theme:He,segmented:x,statistic:w,spin:E,calendar:C,carousel:$,cascader:P,collapse:R,typography:z,checkbox:_,descriptions:N,divider:D,drawer:L,skeleton:T,steps:I,image:M,input:q,layout:j,list:F,mentions:B,modal:H,progress:Y,result:W,slider:k,breadcrumb:oe,menu:ie,pagination:Z,empty:K,badge:ae,radio:re,rate:ee,switch:U,transfer:ve,avatar:te,message:ue,tag:se,table:le,card:Q,tabs:ge,timeline:fe,timePicker:Se,upload:Le,notification:De,tree:Ce,colorPicker:ot,datePicker:Ie,rangePicker:Te,flex:Re,wave:he,dropdown:Ye,warning:Be},Qe=Object.assign({},g);Object.keys(it).forEach($e=>{it[$e]!==void 0&&(Qe[$e]=it[$e])}),r0.forEach($e=>{const qe=e[$e];qe&&(Qe[$e]=qe)});const bt=Ro(()=>Qe,Qe,($e,qe)=>{const ye=Object.keys($e),J=Object.keys(qe);return ye.length!==J.length||ye.some(G=>$e[G]!==qe[G])}),Ct=s.useMemo(()=>({prefixCls:rt,csp:Ke}),[rt,Ke]);let Ve=s.createElement(s.Fragment,null,s.createElement(t0,{dropdownMatchSelectWidth:m}),t);const ke=s.useMemo(()=>{var $e,qe,ye,J;return zr((($e=qn.Form)===null||$e===void 0?void 0:$e.defaultValidateMessages)||{},((ye=(qe=bt.locale)===null||qe===void 0?void 0:qe.Form)===null||ye===void 0?void 0:ye.defaultValidateMessages)||{},((J=bt.form)===null||J===void 0?void 0:J.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[bt,a==null?void 0:a.validateMessages]);Object.keys(ke).length>0&&(Ve=s.createElement(Np.Provider,{value:ke},Ve)),l&&(Ve=s.createElement(Fp,{locale:l,_ANT_MARK__:Md},Ve)),(rt||Ke)&&(Ve=s.createElement(es.Provider,{value:Ct},Ve)),c&&(Ve=s.createElement(Ch,{size:c},Ve)),Ve=s.createElement(e0,null,Ve);const Ge=s.useMemo(()=>{const $e=He||{},{algorithm:qe,token:ye,components:J}=$e,G=n0($e,["algorithm","token","components"]),de=qe&&(!Array.isArray(qe)||qe.length>0)?qa(qe):Ld,me={};Object.entries(J||{}).forEach(_e=>{let[ze,at]=_e;const tt=Object.assign({},at);"algorithm"in tt&&(tt.algorithm===!0?tt.theme=de:(Array.isArray(tt.algorithm)||typeof tt.algorithm=="function")&&(tt.theme=qa(tt.algorithm)),delete tt.algorithm),me[ze]=tt});const pe=Object.assign(Object.assign({},So),ye);return Object.assign(Object.assign({},G),{theme:de,token:pe,components:me,override:Object.assign({override:pe},me)})},[He]);return y&&(Ve=s.createElement(jd.Provider,{value:Ge},Ve)),bt.warning&&(Ve=s.createElement(Rd.Provider,{value:bt.warning},Ve)),S!==void 0&&(Ve=s.createElement(Sh,{disabled:S},Ve)),s.createElement(ut.Provider,{value:bt},Ve)},vr=e=>{const t=s.useContext(ut),n=s.useContext(ns);return s.createElement(s0,Object.assign({parentContext:t,legacyLocale:n},e))};vr.ConfigContext=ut;vr.SizeContext=ji;vr.config=l0;vr.useConfig=xh;Object.defineProperty(vr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Li(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ji)});process.env.NODE_ENV!=="production"&&(vr.displayName="ConfigProvider");function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lt.apply(this,arguments)}function c0(e){if(Array.isArray(e))return e}function u0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function $c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d0(e,t){if(e){if(typeof e=="string")return $c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $c(e,t)}}function f0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rf(e,t){return c0(e)||u0(e,t)||d0(e,t)||f0()}function ur(e){"@babel/helpers - typeof";return ur=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},ur(e)}function m0(e,t){if(ur(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ur(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v0(e){var t=m0(e,"string");return ur(t)==="symbol"?t:String(t)}function fl(e,t,n){return t=v0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g0(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function of(e,t){if(e==null)return{};var n=g0(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oc(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 Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Oc(Object(n),!0).forEach(function(r){fl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p0(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function h0(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 Ic="data-rc-order",Rc="data-rc-priority",b0="rc-util-key",ml=new Map;function af(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):b0}function os(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function y0(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function lf(e){return Array.from((ml.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function sf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!p0())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=y0(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(Ic,a),l&&i&&c.setAttribute(Rc,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=os(t),d=u.firstChild;if(r){if(l){var f=lf(u).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Ic)))return!1;var v=Number(m.getAttribute(Rc)||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 S0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=os(t);return lf(n).find(function(r){return r.getAttribute(af(t))===e})}function C0(e,t){var n=ml.get(e);if(!n||!h0(document,n)){var r=sf("",t),o=r.parentNode;ml.set(e,o),e.removeChild(r)}}function x0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=os(n);C0(r,n);var o=S0(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=sf(e,n);return c.setAttribute(af(n),t),c}function cf(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function w0(e){return cf(e)instanceof ShadowRoot}function E0(e){return w0(e)?cf(e):null}var vl={},is=[],$0=function(t){is.push(t)};function O0(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=is.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function I0(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=is.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function R0(){vl={}}function uf(e,t,n){!t&&!vl[n]&&(e(!1,n),vl[n]=!0)}function Bi(e,t){uf(O0,e,t)}function P0(e,t){uf(I0,e,t)}Bi.preMessage=$0;Bi.resetWarned=R0;Bi.noteOnce=P0;function N0(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function M0(e,t){Bi(e,"[@ant-design/icons] ".concat(t))}function Pc(e){return ur(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ur(e.icon)==="object"||typeof e.icon=="function")}function Nc(){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[N0(n)]=r}return t},{})}function gl(e,t,n){return n?O.createElement(e.tag,Gn(Gn({key:t},Nc(e.attrs)),n),(e.children||[]).map(function(r,o){return gl(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):O.createElement(e.tag,Gn({key:t},Nc(e.attrs)),(e.children||[]).map(function(r,o){return gl(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function df(e){return cr(e)[0]}function ff(e){return e?Array.isArray(e)?e:[e]:[]}var T0=`
65
+ .anticon {
66
+ display: inline-block;
67
+ color: inherit;
68
+ font-style: normal;
69
+ line-height: 0;
70
+ text-align: center;
71
+ text-transform: none;
72
+ vertical-align: -0.125em;
73
+ text-rendering: optimizeLegibility;
74
+ -webkit-font-smoothing: antialiased;
75
+ -moz-osx-font-smoothing: grayscale;
76
+ }
77
+
78
+ .anticon > * {
79
+ line-height: 1;
80
+ }
81
+
82
+ .anticon svg {
83
+ display: inline-block;
84
+ }
85
+
86
+ .anticon::before {
87
+ display: none;
88
+ }
89
+
90
+ .anticon .anticon-icon {
91
+ display: block;
92
+ }
93
+
94
+ .anticon[tabindex] {
95
+ cursor: pointer;
96
+ }
97
+
98
+ .anticon-spin::before,
99
+ .anticon-spin {
100
+ display: inline-block;
101
+ -webkit-animation: loadingCircle 1s infinite linear;
102
+ animation: loadingCircle 1s infinite linear;
103
+ }
104
+
105
+ @-webkit-keyframes loadingCircle {
106
+ 100% {
107
+ -webkit-transform: rotate(360deg);
108
+ transform: rotate(360deg);
109
+ }
110
+ }
111
+
112
+ @keyframes loadingCircle {
113
+ 100% {
114
+ -webkit-transform: rotate(360deg);
115
+ transform: rotate(360deg);
116
+ }
117
+ }
118
+ `,_0=function(t){var n=O.useContext(es),r=n.csp,o=n.prefixCls,i=T0;o&&(i=i.replace(/anticon/g,o)),O.useEffect(function(){var a=t.current,l=E0(a);x0(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},A0=["icon","className","onClick","style","primaryColor","secondaryColor"],vo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function D0(e){var t=e.primaryColor,n=e.secondaryColor;vo.primaryColor=t,vo.secondaryColor=n||df(t),vo.calculated=!!n}function z0(){return Gn({},vo)}var Hi=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,c=of(t,A0),u=s.useRef(),d=vo;if(a&&(d={primaryColor:a,secondaryColor:l||df(a)}),_0(u),M0(Pc(n),"icon should be icon definiton, but got ".concat(n)),!Pc(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Gn(Gn({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),gl(f.icon,"svg-".concat(f.name),Gn(Gn({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Hi.displayName="IconReact";Hi.getTwoToneColors=z0;Hi.setTwoToneColors=D0;const as=Hi;function mf(e){var t=ff(e),n=rf(t,2),r=n[0],o=n[1];return as.setTwoToneColors({primaryColor:r,secondaryColor:o})}function L0(){var e=as.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var F0=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];mf(th.primary);var Vi=s.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=of(e,F0),f=s.useContext(es),m=f.prefixCls,v=m===void 0?"anticon":m,h=f.rootClassName,p=ne(h,v,(n={},fl(n,"".concat(v,"-").concat(o.name),!!o.name),fl(n,"".concat(v,"-spin"),!!i||o.name==="loading"),n),r),g=l;g===void 0&&c&&(g=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=ff(u),S=rf(y,2),x=S[0],w=S[1];return s.createElement("span",Lt({role:"img","aria-label":o.name},d,{ref:t,tabIndex:g,onClick:c,className:p}),s.createElement(as,{icon:o,primaryColor:x,secondaryColor:w,style:b}))});Vi.displayName="AntdIcon";Vi.getTwoToneColor=L0;Vi.setTwoToneColor=mf;const Ut=Vi;var j0={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"};const B0=j0;var vf=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:B0}))};process.env.NODE_ENV!=="production"&&(vf.displayName="CloseCircleFilled");const ls=s.forwardRef(vf);var H0={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"};const V0=H0;var gf=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:V0}))};process.env.NODE_ENV!=="production"&&(gf.displayName="CloseOutlined");const k0=s.forwardRef(gf);var W0=`accept acceptCharset accessKey action allowFullScreen allowTransparency
119
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
120
+ charSet checked classID className colSpan cols content contentEditable contextMenu
121
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
122
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
123
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
124
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
125
+ mediaGroup method min minLength multiple muted name noValidate nonce open
126
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
127
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
128
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
129
+ summary tabIndex target title type useMap value width wmode wrap`,K0=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
130
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
131
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
132
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
133
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
134
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
135
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,U0="".concat(W0," ").concat(K0).split(/[\s\n]+/),G0="aria-",q0="data-";function Mc(e,t){return e.indexOf(t)===0}function xo(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=V({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Mc(o,G0))||n.data&&Mc(o,q0)||n.attr&&U0.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:Fn}=s;function pf(e){return e&&Fn(e)&&e.type===s.Fragment}function X0(e,t,n){return Fn(e)?s.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function jn(e,t){return X0(e,e,t)}var ce={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ce.F1&&n<=ce.F12)return!1;switch(n){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Y0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Q0=Y0;var hf=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:Q0}))};process.env.NODE_ENV!=="production"&&(hf.displayName="LoadingOutlined");const bf=s.forwardRef(hf);function Kt(){Kt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(T,I,M){T[I]=M.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(T,I,M){return Object.defineProperty(T,I,{value:M,enumerable:!0,configurable:!0,writable:!0}),T[I]}try{u({},"")}catch{u=function(M,j,F){return M[j]=F}}function d(T,I,M,j){var F=I&&I.prototype instanceof b?I:b,B=Object.create(F.prototype),H=new D(j||[]);return o(B,"_invoke",{value:R(T,M,H)}),B}function f(T,I,M){try{return{type:"normal",arg:T.call(I,M)}}catch(j){return{type:"throw",arg:j}}}t.wrap=d;var m="suspendedStart",v="suspendedYield",h="executing",p="completed",g={};function b(){}function y(){}function S(){}var x={};u(x,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(L([])));E&&E!==n&&r.call(E,a)&&(x=E);var C=S.prototype=b.prototype=Object.create(x);function $(T){["next","throw","return"].forEach(function(I){u(T,I,function(M){return this._invoke(I,M)})})}function P(T,I){function M(F,B,H,Y){var W=f(T[F],T,B);if(W.type!=="throw"){var k=W.arg,oe=k.value;return oe&&Ze(oe)=="object"&&r.call(oe,"__await")?I.resolve(oe.__await).then(function(ie){M("next",ie,H,Y)},function(ie){M("throw",ie,H,Y)}):I.resolve(oe).then(function(ie){k.value=ie,H(k)},function(ie){return M("throw",ie,H,Y)})}Y(W.arg)}var j;o(this,"_invoke",{value:function(B,H){function Y(){return new I(function(W,k){M(B,H,W,k)})}return j=j?j.then(Y,Y):Y()}})}function R(T,I,M){var j=m;return function(F,B){if(j===h)throw new Error("Generator is already running");if(j===p){if(F==="throw")throw B;return{value:e,done:!0}}for(M.method=F,M.arg=B;;){var H=M.delegate;if(H){var Y=z(H,M);if(Y){if(Y===g)continue;return Y}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(j===m)throw j=p,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);j=h;var W=f(T,I,M);if(W.type==="normal"){if(j=M.done?p:v,W.arg===g)continue;return{value:W.arg,done:M.done}}W.type==="throw"&&(j=p,M.method="throw",M.arg=W.arg)}}}function z(T,I){var M=I.method,j=T.iterator[M];if(j===e)return I.delegate=null,M==="throw"&&T.iterator.return&&(I.method="return",I.arg=e,z(T,I),I.method==="throw")||M!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+M+"' method")),g;var F=f(j,T.iterator,I.arg);if(F.type==="throw")return I.method="throw",I.arg=F.arg,I.delegate=null,g;var B=F.arg;return B?B.done?(I[T.resultName]=B.value,I.next=T.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,g):B:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,g)}function _(T){var I={tryLoc:T[0]};1 in T&&(I.catchLoc=T[1]),2 in T&&(I.finallyLoc=T[2],I.afterLoc=T[3]),this.tryEntries.push(I)}function N(T){var I=T.completion||{};I.type="normal",delete I.arg,T.completion=I}function D(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(_,this),this.reset(!0)}function L(T){if(T||T===""){var I=T[a];if(I)return I.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var M=-1,j=function F(){for(;++M<T.length;)if(r.call(T,M))return F.value=T[M],F.done=!1,F;return F.value=e,F.done=!0,F};return j.next=j}}throw new TypeError(Ze(T)+" is not iterable")}return y.prototype=S,o(C,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:y,configurable:!0}),y.displayName=u(S,c,"GeneratorFunction"),t.isGeneratorFunction=function(T){var I=typeof T=="function"&&T.constructor;return!!I&&(I===y||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,S):(T.__proto__=S,u(T,c,"GeneratorFunction")),T.prototype=Object.create(C),T},t.awrap=function(T){return{__await:T}},$(P.prototype),u(P.prototype,l,function(){return this}),t.AsyncIterator=P,t.async=function(T,I,M,j,F){F===void 0&&(F=Promise);var B=new P(d(T,I,M,j),F);return t.isGeneratorFunction(I)?B:B.next().then(function(H){return H.done?H.value:B.next()})},$(C),u(C,c,"Generator"),u(C,a,function(){return this}),u(C,"toString",function(){return"[object Generator]"}),t.keys=function(T){var I=Object(T),M=[];for(var j in I)M.push(j);return M.reverse(),function F(){for(;M.length;){var B=M.pop();if(B in I)return F.value=B,F.done=!1,F}return F.done=!0,F}},t.values=L,D.prototype={constructor:D,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!I)for(var M in this)M.charAt(0)==="t"&&r.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var M=this;function j(k,oe){return H.type="throw",H.arg=I,M.next=k,oe&&(M.method="next",M.arg=e),!!oe}for(var F=this.tryEntries.length-1;F>=0;--F){var B=this.tryEntries[F],H=B.completion;if(B.tryLoc==="root")return j("end");if(B.tryLoc<=this.prev){var Y=r.call(B,"catchLoc"),W=r.call(B,"finallyLoc");if(Y&&W){if(this.prev<B.catchLoc)return j(B.catchLoc,!0);if(this.prev<B.finallyLoc)return j(B.finallyLoc)}else if(Y){if(this.prev<B.catchLoc)return j(B.catchLoc,!0)}else{if(!W)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return j(B.finallyLoc)}}}},abrupt:function(I,M){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var B=F;break}}B&&(I==="break"||I==="continue")&&B.tryLoc<=M&&M<=B.finallyLoc&&(B=null);var H=B?B.completion:{};return H.type=I,H.arg=M,B?(this.method="next",this.next=B.finallyLoc,g):this.complete(H)},complete:function(I,M){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&M&&(this.next=M),g},finish:function(I){for(var M=this.tryEntries.length-1;M>=0;--M){var j=this.tryEntries[M];if(j.finallyLoc===I)return this.complete(j.completion,j.afterLoc),N(j),g}},catch:function(I){for(var M=this.tryEntries.length-1;M>=0;--M){var j=this.tryEntries[M];if(j.tryLoc===I){var F=j.completion;if(F.type==="throw"){var B=F.arg;N(j)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(I,M,j){return this.delegate={iterator:L(I),resultName:M,nextLoc:j},this.method==="next"&&(this.arg=e),g}},t}function Tc(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(u){n(u);return}l.done?t(c):Promise.resolve(c).then(r,o)}function gr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){Tc(i,r,o,a,l,"next",c)}function l(c){Tc(i,r,o,a,l,"throw",c)}a(void 0)})}}var No=V({},Nv),Z0=No.version,J0=No.render,eb=No.unmountComponentAtNode,ki;try{var tb=Number((Z0||"").split(".")[0]);tb>=18&&(ki=No.createRoot)}catch{}function _c(e){var t=No.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ze(t)==="object"&&(t.usingClientEntryPoint=e)}var Si="__rc_react_root__";function nb(e,t){_c(!0);var n=t[Si]||ki(t);_c(!1),n.render(e),t[Si]=n}function rb(e,t){J0(e,t)}function ob(e,t){if(ki){nb(e,t);return}rb(e,t)}function ib(e){return pl.apply(this,arguments)}function pl(){return pl=gr(Kt().mark(function e(t){return Kt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Si])===null||o===void 0||o.unmount(),delete t[Si]}));case 1:case"end":return r.stop()}},e)})),pl.apply(this,arguments)}function ab(e){eb(e)}function lb(e){return hl.apply(this,arguments)}function hl(){return hl=gr(Kt().mark(function e(t){return Kt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(ki===void 0){r.next=2;break}return r.abrupt("return",ib(t));case 2:ab(t);case 3:case"end":return r.stop()}},e)})),hl.apply(this,arguments)}const Ca=()=>({height:0,opacity:0}),Ac=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},sb=e=>({height:e?e.offsetHeight:0}),xa=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",cb=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Ca,onEnterStart:Ca,onAppearActive:Ac,onEnterActive:Ac,onLeaveStart:sb,onLeaveActive:Ca,onAppearEnd:xa,onEnterEnd:xa,onLeaveEnd:xa,motionDeadline:500}},yf=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ub=cb,ss=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},db=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},fb=sn("Wave",e=>[db(e)]);function mb(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function wa(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&mb(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function vb(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return wa(t)?t:wa(n)?n:wa(r)?r:null}const cs="ant-wave-target";function Ea(e){return Number.isNaN(e)?0:e}const gb=e=>{const{className:t,target:n,component:r}=e,o=s.useRef(null),[i,a]=s.useState(null),[l,c]=s.useState([]),[u,d]=s.useState(0),[f,m]=s.useState(0),[v,h]=s.useState(0),[p,g]=s.useState(0),[b,y]=s.useState(!1),S={left:u,top:f,width:v,height:p,borderRadius:l.map(E=>`${E}px`).join(" ")};i&&(S["--wave-color"]=i);function x(){const E=getComputedStyle(n);a(vb(n));const C=E.position==="static",{borderLeftWidth:$,borderTopWidth:P}=E;d(C?n.offsetLeft:Ea(-parseFloat($))),m(C?n.offsetTop:Ea(-parseFloat(P))),h(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:z,borderBottomLeftRadius:_,borderBottomRightRadius:N}=E;c([R,z,N,_].map(D=>Ea(parseFloat(D))))}if(s.useEffect(()=>{if(n){const E=gt(()=>{x(),y(!0)});let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(n)),()=>{gt.cancel(E),C==null||C.disconnect()}}},[]),!b)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(cs));return s.createElement(Yr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,C)=>{var $;if(C.deadline||C.propertyName==="opacity"){const P=($=o.current)===null||$===void 0?void 0:$.parentElement;lb(P).then(()=>{P==null||P.remove()})}return!1}},E=>{let{className:C}=E;return s.createElement("div",{ref:o,className:ne(t,{"wave-quick":w},C),style:S})})},pb=(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),ob(s.createElement(gb,Object.assign({},t,{target:e})),o)},hb=pb;function bb(e,t,n){const{wave:r}=s.useContext(ut),[,o,i]=On(),a=kt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${cs}`)||d,{showEffect:m}=r||{};(m||hb)(f,{className:t,token:o,component:n,event:u,hashId:i})}),l=s.useRef();return u=>{gt.cancel(l.current),l.current=gt(()=>{a(u)})}}const Sf=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=O.useContext(ut),i=O.useRef(null),a=o("wave"),[,l]=fb(a),c=bb(i,ne(a,l),r);if(O.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!ss(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!O.isValidElement(t))return t??null;const u=Xn(t)?Nn(t.ref,i):i;return jn(t,{ref:u})};process.env.NODE_ENV!=="production"&&(Sf.displayName="Wave");const Cf=Sf,yb=e=>{const t=O.useContext(ji);return O.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},pr=yb,Sb=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Cb=Sb,xb=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},wb=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}}}},xf=sn("Space",e=>{const t=dt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[xb(t),wb(t),Cb(t)]},()=>({}),{resetStyle:!1});var wf=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Wi=s.createContext(null),Mo=(e,t)=>{const n=s.useContext(Wi),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return ne(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Ci=e=>{let{children:t}=e;return s.createElement(Wi.Provider,{value:null},t)},Eb=e=>{var{children:t}=e,n=wf(e,["children"]);return s.createElement(Wi.Provider,{value:n},t)},$b=e=>{const{getPrefixCls:t,direction:n}=s.useContext(ut),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:c,children:u}=e,d=wf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=pr(S=>r??S),m=t("space-compact",a),[v,h]=xf(m),p=ne(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,c),g=s.useContext(Wi),b=En(u),y=s.useMemo(()=>b.map((S,x)=>{const w=S&&S.key||`${m}-item-${x}`;return s.createElement(Eb,{key:w,compactSize:f,compactDirection:o,isFirstItem:x===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:x===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},S)}),[r,b,g]);return b.length===0?null:v(s.createElement("div",Object.assign({className:p},d),y))};var Ob=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ef=s.createContext(void 0),Ib=e=>{const{getPrefixCls:t,direction:n}=s.useContext(ut),{prefixCls:r,size:o,className:i}=e,a=Ob(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=On();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}if(process.env.NODE_ENV!=="production"){const f=ln("Button.Group");process.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const d=ne(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},i,c);return s.createElement(Ef.Provider,{value:o},s.createElement("div",Object.assign({},a,{className:d})))},Rb=Ib,Dc=/^[\u4e00-\u9fa5]{2}$/,bl=Dc.test.bind(Dc);function zc(e){return typeof e=="string"}function ti(e){return e==="text"||e==="link"}function Pb(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&zc(e.type)&&bl(e.props.children)?jn(e,{children:e.props.children.split("").join(n)}):zc(e)?bl(e)?O.createElement("span",null,e.split("").join(n)):O.createElement("span",null,e):pf(e)?O.createElement("span",null,e):e}function Nb(e,t){let n=!1;const r=[];return O.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,c=r[l];r[l]=`${c}${o}`}else r.push(o);n=a}),O.Children.map(r,o=>Pb(o,t))}const Mb=O.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ne(`${i}-icon`,n);return O.createElement("span",{ref:t,className:a,style:r},o)}),$f=Mb,Lc=O.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=ne(`${n}-loading-icon`,r);return O.createElement($f,{prefixCls:n,className:a,style:o,ref:t},O.createElement(bf,{className:i}))}),$a=()=>({width:0,opacity:0,transform:"scale(0)"}),Oa=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Tb=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?O.createElement(Lc,{prefixCls:t,className:o,style:i}):O.createElement(Yr,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:$a,onAppearActive:Oa,onEnterStart:$a,onEnterActive:Oa,onLeaveStart:Oa,onLeaveActive:$a},(l,c)=>{let{className:u,style:d}=l;return O.createElement(Lc,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:c,iconClassName:u})})},_b=Tb,Fc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ab=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Fc(`${t}-primary`,o),Fc(`${t}-danger`,i)]}},Db=Ab,zb=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},yi(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Bn=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Lb=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Fb=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),jb=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),wo=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},Bn(e,Object.assign({backgroundColor:t},a),Object.assign({backgroundColor:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),us=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},jb(e))}),Of=e=>Object.assign({},us(e)),xi=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),If=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Of(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Bn(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),wo(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Bn(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wo(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),us(e))}),Bb=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Of(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),Bn(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),wo(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Bn(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),wo(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),us(e))}),Hb=e=>Object.assign(Object.assign({},If(e)),{borderStyle:"dashed"}),Vb=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Bn(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),xi(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Bn(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),xi(e))}),kb=e=>Object.assign(Object.assign(Object.assign({},Bn(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),xi(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},xi(e)),Bn(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Wb=e=>{const{componentCls:t}=e;return{[`${t}-default`]:If(e),[`${t}-primary`]:Bb(e),[`${t}-dashed`]:Hb(e),[`${t}-link`]:Vb(e),[`${t}-text`]:kb(e),[`${t}-ghost`]:wo(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ds=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e,d=Math.max(0,(r-o*i)/2-a),f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${d}px ${c}px`,borderRadius:l,[`&${f}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Lb(e)},{[`${n}${n}-round${t}`]:Fb(e)}]},Kb=e=>ds(dt(e,{fontSize:e.contentFontSize})),Ub=e=>{const t=dt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ds(t,`${e.componentCls}-sm`)},Gb=e=>{const t=dt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ds(t,`${e.componentCls}-lg`)},qb=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Rf=e=>{const{paddingInline:t,onlyIconSize:n}=e;return dt(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},Pf=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),Xb=sn("Button",e=>{const t=Rf(e);return[zb(t),Ub(t),Kb(t),Gb(t),qb(t),Wb(t),Db(t)]},Pf);function Yb(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Qb(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 fs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Yb(e,r,t)),Qb(n,r,t))}}function Zb(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Jb(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 ey(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Zb(e,t)),Jb(e.componentCls,t))}}const ty=Mh(["Button","compact"],e=>{const t=Rf(e);return[fs(t),ey(t)]},Pf);var ny=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ry(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 oy=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:c="default",size:u,styles:d,disabled:f,className:m,rootClassName:v,children:h,icon:p,ghost:g=!1,block:b=!1,htmlType:y="button",classNames:S,style:x={}}=e,w=ny(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:E,autoInsertSpaceInButton:C,direction:$,button:P}=O.useContext(ut),R=E("btn",i),[z,_]=Xb(R),N=O.useContext(Xr),D=f??N,L=O.useContext(Ef),T=O.useMemo(()=>ry(o),[o]),[I,M]=O.useState(T.loading),[j,F]=O.useState(!1),H=Nn(t,O.createRef()),Y=O.Children.count(h)===1&&!p&&!ti(a);O.useEffect(()=>{let Q=null;T.delay>0?Q=setTimeout(()=>{Q=null,M(!0)},T.delay):M(T.loading);function ge(){Q&&(clearTimeout(Q),Q=null)}return ge},[T]),O.useEffect(()=>{if(!H||!H.current||C===!1)return;const Q=H.current.textContent;Y&&bl(Q)?j||F(!0):j&&F(!1)},[H]);const W=Q=>{const{onClick:ge}=e;if(I||D){Q.preventDefault();return}ge==null||ge(Q)};if(process.env.NODE_ENV!=="production"){const Q=ln("Button");process.env.NODE_ENV!=="production"&&Q(!(typeof p=="string"&&p.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${p}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&Q(!(g&&ti(a)),"usage","`link` or `text` button can't be a `ghost` button.")}const k=C!==!1,{compactSize:oe,compactItemClassnames:ie}=Mo(R,$),Z={large:"lg",small:"sm",middle:void 0},q=pr(Q=>{var ge,fe;return(fe=(ge=u??oe)!==null&&ge!==void 0?ge:L)!==null&&fe!==void 0?fe:Q}),K=q&&Z[q]||"",ae=I?"loading":p,re=Qt(w,["navigate"]),ee=ne(R,_,{[`${R}-${c}`]:c!=="default"&&c,[`${R}-${a}`]:a,[`${R}-${K}`]:K,[`${R}-icon-only`]:!h&&h!==0&&!!ae,[`${R}-background-ghost`]:g&&!ti(a),[`${R}-loading`]:I,[`${R}-two-chinese-chars`]:j&&k&&!I,[`${R}-block`]:b,[`${R}-dangerous`]:!!l,[`${R}-rtl`]:$==="rtl"},ie,m,v,P==null?void 0:P.className),U=Object.assign(Object.assign({},P==null?void 0:P.style),x),ve=ne(S==null?void 0:S.icon,(n=P==null?void 0:P.classNames)===null||n===void 0?void 0:n.icon),te=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=P==null?void 0:P.styles)===null||r===void 0?void 0:r.icon)||{}),ue=p&&!I?O.createElement($f,{prefixCls:R,className:ve,style:te},p):O.createElement(_b,{existIcon:!!p,prefixCls:R,loading:!!I}),se=h||h===0?Nb(h,Y&&k):null;if(re.href!==void 0)return z(O.createElement("a",Object.assign({},re,{className:ne(ee,{[`${R}-disabled`]:D}),style:U,onClick:W,ref:H}),ue,se));let le=O.createElement("button",Object.assign({},w,{type:y,className:ee,style:U,onClick:W,disabled:D,ref:H}),ue,se,ie&&O.createElement(ty,{key:"compact",prefixCls:R}));return ti(a)||(le=O.createElement(Cf,{component:"Button",disabled:!!I},le)),z(le)},Ki=O.forwardRef(oy);process.env.NODE_ENV!=="production"&&(Ki.displayName="Button");Ki.Group=Rb;Ki.__ANT_BUTTON=!0;const Eo=Ki;var Nf=s.createContext(null),jc=[];function iy(e,t){var n=s.useState(function(){if(!Ht())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),r=X(n,1),o=r[0],i=s.useRef(!1),a=s.useContext(Nf),l=s.useState(jc),c=X(l,2),u=c[0],d=c[1],f=a||(i.current?void 0:function(h){d(function(p){var g=[h].concat(be(p));return g})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function v(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return St(function(){return e?a?a(m):m():v(),v},[e]),St(function(){u.length&&(u.forEach(function(h){return h()}),d(jc))},[u]),[o,f]}var Ia;function ay(e){if(typeof document>"u")return 0;if(e||Ia===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),Ia=o-i}return Ia}function Bc(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?ay():n}function ly(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:Bc(n),height:Bc(r)}}function sy(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cy="rc-util-locker-".concat(Date.now()),Hc=0;function uy(e){var t=!!e,n=s.useState(function(){return Hc+=1,"".concat(cy,"_").concat(Hc)}),r=X(n,1),o=r[0];St(function(){if(t){var i=ly(document.body).width,a=sy();ho(`
136
+ html body {
137
+ overflow-y: hidden;
138
+ `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
139
+ }`),o)}else pi(o);return function(){pi(o)}},[t,o])}var Vc=!1;function dy(e){return typeof e=="boolean"&&(Vc=e),Vc}var kc=function(t){return t===!1?!1:!Ht()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ms=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,c=e.children,u=s.useState(n),d=X(u,2),f=d[0],m=d[1],v=f||n;process.env.NODE_ENV!=="production"&&Ue(Ht()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),s.useEffect(function(){(l||n)&&m(n)},[n,l]);var h=s.useState(function(){return kc(o)}),p=X(h,2),g=p[0],b=p[1];s.useEffect(function(){var _=kc(o);b(_??null)});var y=iy(v&&!g,i),S=X(y,2),x=S[0],w=S[1],E=g??x;uy(r&&n&&Ht()&&(E===x||E===document.body));var C=null;if(c&&Xn(c)&&t){var $=c;C=$.ref}var P=Gr(C,t);if(!v||!Ht()||g===void 0)return null;var R=E===!1||dy(),z=c;return t&&(z=s.cloneElement(c,{ref:P})),s.createElement(Nf.Provider,{value:w},R?z:lr.createPortal(z,E))});process.env.NODE_ENV!=="production"&&(ms.displayName="Portal");function fy(){var e=V({},s);return e.useId}var Wc=0,Kc=fy();const my=Kc?function(t){var n=Kc();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=s.useState("ssr-id"),r=X(n,2),o=r[0],i=r[1];return s.useEffect(function(){var a=Wc;Wc+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},vy=O.createContext(void 0),vs=vy;var tr="RC_FORM_INTERNAL_HOOKS",vt=function(){Ue(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Wr=s.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}}}),wi=s.createContext(null);function yl(e){return e==null?[]:Array.isArray(e)?e:[e]}function gy(e){return e&&!!e._init}function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nr.apply(this,arguments)}function py(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$o(e,t)}function Sl(e){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sl(e)}function $o(e,t){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},$o(e,t)}function hy(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ci(e,t,n){return hy()?ci=Reflect.construct.bind():ci=function(o,i,a){var l=[null];l.push.apply(l,i);var c=Function.bind.apply(o,l),u=new c;return a&&$o(u,a.prototype),u},ci.apply(null,arguments)}function by(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Cl(e){var t=typeof Map=="function"?new Map:void 0;return Cl=function(r){if(r===null||!by(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ci(r,arguments,Sl(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),$o(o,r)},Cl(e)}var yy=/%[sdj%]/g,Mf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Mf=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function xl(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 on(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 a=e.replace(yy,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){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 l}});return a}return e}function Sy(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function At(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Sy(t)&&typeof e=="string"&&!e)}function Cy(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function Uc(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function xy(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Gc=function(e){py(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(Cl(Error));function wy(e,t,n,r,o){if(t.first){var i=new Promise(function(m,v){var h=function(b){return r(b),b.length?v(new Gc(b,xl(b))):m(o)},p=xy(e);Uc(p,n,h)});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,d=[],f=new Promise(function(m,v){var h=function(g){if(d.push.apply(d,g),u++,u===c)return r(d),d.length?v(new Gc(d,xl(d))):m(o)};l.length||(r(d),m(o)),l.forEach(function(p){var g=e[p];a.indexOf(p)!==-1?Uc(g,n,h):Cy(g,n,h)})});return f.catch(function(m){return m}),f}function Ey(e){return!!(e&&e.message!==void 0)}function $y(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function qc(e,t){return function(n){var r;return e.fullFields?r=$y(t,e.fullFields):r=t[n.field||e.fullField],Ey(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 Xc(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=nr({},e[n],r):e[n]=r}}return e}var Tf=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||At(n,a||t.type))&&o.push(on(i.messages.required,t.fullField))},Oy=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(on(i.messages.whitespace,t.fullField))},ni,Iy=function(){if(ni)return ni;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+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=(`
140
+ (?:
141
+ (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
142
+ (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
143
+ (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
144
+ (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
145
+ (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
146
+ (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
147
+ (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
148
+ (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
149
+ )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
150
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),c=function(x){return x&&x.exact?i:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+o+t(x)+")","g")};c.v4=function(S){return S&&S.exact?a:new RegExp(""+t(S)+n+t(S),"g")},c.v6=function(S){return S&&S.exact?l:new RegExp(""+t(S)+o+t(S),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=c.v4().source,m=c.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+m+"|"+v+h+p+")"+g+b;return ni=new RegExp("(?:^"+y+"$)","i"),ni},Yc={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},co={integer:function(t){return co.number(t)&&parseInt(t,10)===t},float:function(t){return co.number(t)&&!co.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 typeof t=="object"&&!co.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Yc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Iy())},hex:function(t){return typeof t=="string"&&!!t.match(Yc.hex)}},Ry=function(t,n,r,o,i){if(t.required&&n===void 0){Tf(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?co[l](n)||o.push(on(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(on(i.messages.types[l],t.fullField,t.type))},Py=function(t,n,r,o,i){var a=typeof t.len=="number",l=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",h=Array.isArray(n);if(m?f="number":v?f="string":h&&(f="array"),!f)return!1;h&&(d=n.length),v&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(on(i.messages[f].len,t.fullField,t.len)):l&&!c&&d<t.min?o.push(on(i.messages[f].min,t.fullField,t.min)):c&&!l&&d>t.max?o.push(on(i.messages[f].max,t.fullField,t.max)):l&&c&&(d<t.min||d>t.max)&&o.push(on(i.messages[f].range,t.fullField,t.min,t.max))},xr="enum",Ny=function(t,n,r,o,i){t[xr]=Array.isArray(t[xr])?t[xr]:[],t[xr].indexOf(n)===-1&&o.push(on(i.messages[xr],t.fullField,t[xr].join(", ")))},My=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(on(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(on(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},nt={required:Tf,whitespace:Oy,type:Ry,range:Py,enum:Ny,pattern:My},Ty=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n,"string")&&!t.required)return r();nt.required(t,n,o,a,i,"string"),At(n,"string")||(nt.type(t,n,o,a,i),nt.range(t,n,o,a,i),nt.pattern(t,n,o,a,i),t.whitespace===!0&&nt.whitespace(t,n,o,a,i))}r(a)},_y=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n)&&!t.required)return r();nt.required(t,n,o,a,i),n!==void 0&&nt.type(t,n,o,a,i)}r(a)},Ay=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),At(n)&&!t.required)return r();nt.required(t,n,o,a,i),n!==void 0&&(nt.type(t,n,o,a,i),nt.range(t,n,o,a,i))}r(a)},Dy=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n)&&!t.required)return r();nt.required(t,n,o,a,i),n!==void 0&&nt.type(t,n,o,a,i)}r(a)},zy=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n)&&!t.required)return r();nt.required(t,n,o,a,i),At(n)||nt.type(t,n,o,a,i)}r(a)},Ly=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n)&&!t.required)return r();nt.required(t,n,o,a,i),n!==void 0&&(nt.type(t,n,o,a,i),nt.range(t,n,o,a,i))}r(a)},Fy=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n)&&!t.required)return r();nt.required(t,n,o,a,i),n!==void 0&&(nt.type(t,n,o,a,i),nt.range(t,n,o,a,i))}r(a)},jy=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();nt.required(t,n,o,a,i,"array"),n!=null&&(nt.type(t,n,o,a,i),nt.range(t,n,o,a,i))}r(a)},By=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n)&&!t.required)return r();nt.required(t,n,o,a,i),n!==void 0&&nt.type(t,n,o,a,i)}r(a)},Hy="enum",Vy=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n)&&!t.required)return r();nt.required(t,n,o,a,i),n!==void 0&&nt[Hy](t,n,o,a,i)}r(a)},ky=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n,"string")&&!t.required)return r();nt.required(t,n,o,a,i),At(n,"string")||nt.pattern(t,n,o,a,i)}r(a)},Wy=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n,"date")&&!t.required)return r();if(nt.required(t,n,o,a,i),!At(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),nt.type(t,c,o,a,i),c&&nt.range(t,c.getTime(),o,a,i)}}r(a)},Ky=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;nt.required(t,n,o,a,i,l),r(a)},Ra=function(t,n,r,o,i){var a=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(At(n,a)&&!t.required)return r();nt.required(t,n,o,l,i,a),At(n,a)||nt.type(t,n,o,l,i)}r(l)},Uy=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(n)&&!t.required)return r();nt.required(t,n,o,a,i)}r(a)},go={string:Ty,method:_y,number:Ay,boolean:Dy,regexp:zy,integer:Ly,float:Fy,array:jy,object:By,enum:Vy,pattern:ky,date:Wy,url:Ra,hex:Ra,email:Ra,required:Ky,any:Uy};function wl(){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 El=wl(),To=function(){function e(n){this.rules=null,this._messages=El,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Xc(wl(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,c=o,u=i;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(p){var g=[],b={};function y(x){if(Array.isArray(x)){var w;g=(w=g).concat.apply(w,x)}else g.push(x)}for(var S=0;S<p.length;S++)y(p[S]);g.length?(b=xl(g),u(g,b)):u(null,l)}if(c.messages){var f=this.messages();f===El&&(f=wl()),Xc(f,c.messages),c.messages=f}else c.messages=this.messages();var m={},v=c.keys||Object.keys(this.rules);v.forEach(function(p){var g=a.rules[p],b=l[p];g.forEach(function(y){var S=y;typeof S.transform=="function"&&(l===r&&(l=nr({},l)),b=l[p]=S.transform(b)),typeof S=="function"?S={validator:S}:S=nr({},S),S.validator=a.getValidationMethod(S),S.validator&&(S.field=p,S.fullField=S.fullField||p,S.type=a.getType(S),m[p]=m[p]||[],m[p].push({rule:S,value:b,source:l,field:p}))})});var h={};return wy(m,c,function(p,g){var b=p.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&p.value),b.field=p.field;function S(E,C){return nr({},C,{fullField:b.fullField+"."+E,fullFields:b.fullFields?[].concat(b.fullFields,[E]):[E]})}function x(E){E===void 0&&(E=[]);var C=Array.isArray(E)?E:[E];!c.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&b.message!==void 0&&(C=[].concat(b.message));var $=C.map(qc(b,l));if(c.first&&$.length)return h[b.field]=1,g($);if(!y)g($);else{if(b.required&&!p.value)return b.message!==void 0?$=[].concat(b.message).map(qc(b,l)):c.error&&($=[c.error(b,on(c.messages.required,b.field))]),g($);var P={};b.defaultField&&Object.keys(p.value).map(function(_){P[_]=b.defaultField}),P=nr({},P,p.rule.fields);var R={};Object.keys(P).forEach(function(_){var N=P[_],D=Array.isArray(N)?N:[N];R[_]=D.map(S.bind(null,_))});var z=new e(R);z.messages(c.messages),p.rule.options&&(p.rule.options.messages=c.messages,p.rule.options.error=c.error),z.validate(p.value,p.rule.options||c,function(_){var N=[];$&&$.length&&N.push.apply(N,$),_&&_.length&&N.push.apply(N,_),g(N.length?N:null)})}}var w;if(b.asyncValidator)w=b.asyncValidator(b,p.value,x,p.source,c);else if(b.validator){try{w=b.validator(b,p.value,x,p.source,c)}catch(E){console.error==null||console.error(E),c.suppressValidatorError||setTimeout(function(){throw E},0),x(E.message)}w===!0?x():w===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):w instanceof Array?x(w):w instanceof Error&&x(w.message)}w&&w.then&&w.then(function(){return x()},function(E){return x(E)})},function(p){d(p)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!go.hasOwnProperty(r.type))throw new Error(on("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?go.required:go[this.getType(r)]||void 0},e}();To.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");go[t]=n};To.warning=Mf;To.messages=El;To.validators=go;var nn="'${name}' is not a valid ${type}",_f={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:nn,method:nn,array:nn,object:nn,number:nn,date:nn,boolean:nn,integer:nn,float:nn,regexp:nn,email:nn,url:nn,hex:nn},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}"}},Qc=To;function Gy(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Zc="CODE_LOGIC_ERROR";function $l(e,t,n,r,o){return Ol.apply(this,arguments)}function Ol(){return Ol=gr(Kt().mark(function e(t,n,r,o,i){var a,l,c,u,d,f,m,v,h;return Kt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=V({},r),delete a.ruleIndex,Qc.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Zc)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),u=new Qc(A({},t,[a])),d=zr(_f,o.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(A({},t,n),V({},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 S=b.message,x=S===Zc?d.default:S;return s.isValidElement(x)?s.cloneElement(x,{key:"error_".concat(y)}):x}));case 18:if(!(!f.length&&c)){g.next=23;break}return g.next=21,Promise.all(n.map(function(b,y){return $l("".concat(t,".").concat(y),b,c,o,i)}));case 21:return m=g.sent,g.abrupt("return",m.reduce(function(b,y){return[].concat(be(b),be(y))},[]));case 23:return v=V(V({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map(function(b){return typeof b=="string"?Gy(b,v):b}),g.abrupt("return",h);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Ol.apply(this,arguments)}function qy(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(d,f){var m=d.validator,v=V(V({},d),{},{ruleIndex:f});return m&&(v.validator=function(h,p,g){var b=!1,y=function(){for(var w=arguments.length,E=new Array(w),C=0;C<w;C++)E[C]=arguments[C];Promise.resolve().then(function(){Ue(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,E)})},S=m(h,p,y);b=S&&typeof S.then=="function"&&typeof S.catch=="function",Ue(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(function(){g()}).catch(function(x){g(x||" ")})}),v}).sort(function(d,f){var m=d.warningOnly,v=d.ruleIndex,h=f.warningOnly,p=f.ruleIndex;return!!m==!!h?v-p:m?1:-1}),c;if(o===!0)c=new Promise(function(){var d=gr(Kt().mark(function f(m,v){var h,p,g;return Kt().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<l.length)){y.next=12;break}return p=l[h],y.next=5,$l(a,t,p,r,i);case 5:if(g=y.sent,!g.length){y.next=9;break}return v([{errors:g,rule:p}]),y.abrupt("return");case 9:h+=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=l.map(function(d){return $l(a,t,d,r,i).then(function(f){return{errors:f,rule:d}})});c=(o?Yy(u):Xy(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function Xy(e){return Il.apply(this,arguments)}function Il(){return Il=gr(Kt().mark(function e(t){return Kt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,be(o));return a}));case 1:case"end":return r.stop()}},e)})),Il.apply(this,arguments)}function Yy(e){return Rl.apply(this,arguments)}function Rl(){return Rl=gr(Kt().mark(function e(t){var n;return Kt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Rl.apply(this,arguments)}function Rt(e){return yl(e)}function Jc(e,t){var n={};return t.forEach(function(r){var o=xn(e,r);n=Sn(n,r,o)}),n}function Br(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Af(t,r,n)})}function Af(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 Qy(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ze(e)!=="object"||Ze(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return be(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function Zy(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ze(t.target)==="object"&&e in t.target?t.target[e]:t}function eu(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(be(e.slice(0,n)),[o],be(e.slice(n,t)),be(e.slice(t+1,r))):i<0?[].concat(be(e.slice(0,t)),be(e.slice(t+1,n+1)),[o],be(e.slice(n+1,r))):e}var Jy=["name"],mn=[];function tu(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var gs=function(e){fr(n,e);var t=mr(n);function n(r){var o;if(Xt(this,n),o=t.call(this,r),A(we(o),"state",{resetCount:0}),A(we(o),"cancelRegisterFunc",null),A(we(o),"mounted",!1),A(we(o),"touched",!1),A(we(o),"dirty",!1),A(we(o),"validatePromise",void 0),A(we(o),"prevValidating",void 0),A(we(o),"errors",mn),A(we(o),"warnings",mn),A(we(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Rt(f)),o.cancelRegisterFunc=null}),A(we(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(be(m),be(u)):[]}),A(we(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})}),A(we(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),A(we(o),"metaCache",null),A(we(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=V(V({},o.getMeta()),{},{destroy:c});_i(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),A(we(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,v=f.dependencies,h=v===void 0?[]:v,p=f.onReset,g=d.store,b=o.getNamePath(),y=o.getValue(c),S=o.getValue(g),x=u&&Br(u,b);switch(d.type==="valueUpdate"&&d.source==="external"&&y!==S&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=mn,o.warnings=mn,o.triggerMetaEvent()),d.type){case"reset":if(!u||x){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=mn,o.warnings=mn,o.triggerMetaEvent(),p==null||p(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var w=d.data;if(x){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||mn),"warnings"in w&&(o.warnings=w.warnings||mn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Br(u,b,!0)){o.reRender();return}if(m&&!b.length&&tu(m,c,g,y,S,d)){o.reRender();return}break}case"dependenciesUpdate":{var E=h.map(Rt);if(E.some(function(C){return Br(d.relatedFields,C)})){o.reRender();return}break}default:if(x||(!h.length||b.length||m)&&tu(m,c,g,y,S,d)){o.reRender();return}break}m===!0&&o.reRender()}),A(we(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,v=f.validateOnly,h=v===void 0?!1:v,p=Promise.resolve().then(gr(Kt().mark(function g(){var b,y,S,x,w,E,C;return Kt().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,x=b.messageVariables,w=b.validateDebounce,E=o.getRules(),m&&(E=E.filter(function(R){return R}).filter(function(R){var z=R.validateTrigger;if(!z)return!0;var _=yl(z);return _.includes(m)})),!(w&&m)){P.next=10;break}return P.next=8,new Promise(function(R){setTimeout(R,w)});case 8:if(o.validatePromise===p){P.next=10;break}return P.abrupt("return",[]);case 10:return C=qy(u,d,E,c,S,x),C.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mn;if(o.validatePromise===p){var z;o.validatePromise=null;var _=[],N=[];(z=R.forEach)===null||z===void 0||z.call(R,function(D){var L=D.rule.warningOnly,T=D.errors,I=T===void 0?mn:T;L?N.push.apply(N,be(I)):_.push.apply(_,be(I))}),o.errors=_,o.warnings=N,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",C);case 13:case"end":return P.stop()}},g)})));return h||(o.validatePromise=p,o.dirty=!0,o.errors=mn,o.warnings=mn,o.triggerMetaEvent(),o.reRender()),p}),A(we(o),"isFieldValidating",function(){return!!o.validatePromise}),A(we(o),"isFieldTouched",function(){return o.touched}),A(we(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(tr),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),A(we(o),"getErrors",function(){return o.errors}),A(we(o),"getWarnings",function(){return o.warnings}),A(we(o),"isListField",function(){return o.props.isListField}),A(we(o),"isList",function(){return o.props.isList}),A(we(o),"isPreserve",function(){return o.props.preserve}),A(we(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}),A(we(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return V(V({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=En(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),A(we(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return xn(c||u(!0),d)}),A(we(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.trigger,f=u.validateTrigger,m=u.getValueFromEvent,v=u.normalize,h=u.valuePropName,p=u.getValueProps,g=u.fieldContext,b=f!==void 0?f:g.validateTrigger,y=o.getNamePath(),S=g.getInternalHooks,x=g.getFieldsValue,w=S(tr),E=w.dispatch,C=o.getValue(),$=p||function(_){return A({},h,_)},P=c[d],R=V(V({},c),$(C));R[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var _,N=arguments.length,D=new Array(N),L=0;L<N;L++)D[L]=arguments[L];m?_=m.apply(void 0,D):_=Zy.apply(void 0,[h].concat(D)),v&&(_=v(_,C,x(!0))),E({type:"updateValue",namePath:y,value:_}),P&&P.apply(void 0,D)};var z=yl(b||[]);return z.forEach(function(_){var N=R[_];R[_]=function(){N&&N.apply(void 0,arguments);var D=o.props.rules;D&&D.length&&E({type:"validateField",namePath:y,triggerName:_})}}),R}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(tr),l=a.initEntityValue;l(we(o))}return o}return Yt(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,c=l(tr),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,a=this.getOnlyChild(i),l=a.child,c=a.isFunction,u;return c?u=l:s.isValidElement(l)?u=s.cloneElement(l,this.getControlled(l.props)):(Ue(!l,"`children` of Field is not validate ReactElement."),u=l),s.createElement(s.Fragment,{key:o},u)}}]),n}(s.Component);A(gs,"contextType",Wr);A(gs,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Df(e){var t=e.name,n=et(e,Jy),r=s.useContext(Wr),o=s.useContext(wi),i=t!==void 0?Rt(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&i.length<=1&&Ue(!1,"`preserve` should not apply on Form.List fields."),s.createElement(gs,Me({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function eS(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=s.useContext(Wr),c=s.useContext(wi),u=s.useRef({keys:[],id:0}),d=u.current,f=s.useMemo(function(){var p=Rt(l.prefixName)||[];return[].concat(be(p),be(Rt(t)))},[l.prefixName,t]),m=s.useMemo(function(){return V(V({},l),{},{prefixName:f})},[l,f]),v=s.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 Ue(!1,"Form.List only accepts function as children."),null;var h=function(g,b,y){var S=y.source;return S==="internal"?!1:g!==b};return s.createElement(wi.Provider,{value:v},s.createElement(Wr.Provider,{value:m},s.createElement(Df,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!c},function(p,g){var b=p.value,y=b===void 0?[]:b,S=p.onChange,x=l.getFieldValue,w=function(){var P=x(f||[]);return P||[]},E={add:function(P,R){var z=w();R>=0&&R<=z.length?(d.keys=[].concat(be(d.keys.slice(0,R)),[d.id],be(d.keys.slice(R))),S([].concat(be(z.slice(0,R)),[P],be(z.slice(R))))):(process.env.NODE_ENV!=="production"&&(R<0||R>z.length)&&Ue(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(be(d.keys),[d.id]),S([].concat(be(z),[P]))),d.id+=1},remove:function(P){var R=w(),z=new Set(Array.isArray(P)?P:[P]);z.size<=0||(d.keys=d.keys.filter(function(_,N){return!z.has(N)}),S(R.filter(function(_,N){return!z.has(N)})))},move:function(P,R){if(P!==R){var z=w();P<0||P>=z.length||R<0||R>=z.length||(d.keys=eu(d.keys,P,R),S(eu(z,P,R)))}}},C=y||[];return Array.isArray(C)||(C=[],process.env.NODE_ENV!=="production"&&Ue(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(C.map(function($,P){var R=d.keys[P];return R===void 0&&(d.keys[P]=d.id,R=d.keys[P],d.id+=1),{name:P,key:R,isListField:!0}}),E,g)})))}function tS(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var zf="__@field_split__";function Pa(e){return e.map(function(t){return"".concat(Ze(t),":").concat(t)}).join(zf)}var wr=function(){function e(){Xt(this,e),A(this,"kvs",new Map)}return Yt(e,[{key:"set",value:function(n,r){this.kvs.set(Pa(n),r)}},{key:"get",value:function(n){return this.kvs.get(Pa(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(Pa(n))}},{key:"map",value:function(n){return be(this.kvs.entries()).map(function(r){var o=X(r,2),i=o[0],a=o[1],l=i.split(zf);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=X(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:a})})}},{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}(),nS=["name"],rS=Yt(function e(t){var n=this;Xt(this,e),A(this,"formHooked",!1),A(this,"forceRootUpdate",void 0),A(this,"subscribable",!0),A(this,"store",{}),A(this,"fieldEntities",[]),A(this,"initialValues",{}),A(this,"callbacks",{}),A(this,"validateMessages",null),A(this,"preserve",null),A(this,"lastValidatePromise",null),A(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}}),A(this,"getInternalHooks",function(r){return r===tr?(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}):(Ue(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),A(this,"useSubscribe",function(r){n.subscribable=r}),A(this,"prevWithoutPreserves",null),A(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=zr(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var c=l.key;a=Sn(a,c,xn(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),A(this,"destroyForm",function(){var r=new wr;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),A(this,"getInitialValue",function(r){var o=xn(n.initialValues,r);return r.length?zr(o):o}),A(this,"setCallbacks",function(r){n.callbacks=r}),A(this,"setValidateMessages",function(r){n.validateMessages=r}),A(this,"setPreserve",function(r){n.preserve=r}),A(this,"watchList",[]),A(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),A(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(a){a(o,i,r)})}}),A(this,"timeoutId",null),A(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||Ue(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),A(this,"updateStore",function(r){n.store=r}),A(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}),A(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new wr;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),A(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Rt(i);return o.get(a)||{INVALIDATE_NAME_PATH:Rt(i)}})}),A(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Ze(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)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(l){var h,p;if((h=(p=d).isList)!==null&&h!==void 0&&h.call(p))return}else if(!i&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!a)u.push(v);else{var g="getMeta"in d?d.getMeta():null;a(g)&&u.push(v)}}),Jc(n.store,u.map(Rt))}),A(this,"getFieldValue",function(r){n.warningUnhooked();var o=Rt(r);return xn(n.store,o)}),A(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Rt(r[a]),errors:[],warnings:[]}})}),A(this,"getFieldError",function(r){n.warningUnhooked();var o=Rt(r),i=n.getFieldsError([o])[0];return i.errors}),A(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Rt(r),i=n.getFieldsError([o])[0];return i.warnings}),A(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],l=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(a)?(c=a.map(Rt),u=!1):(c=null,u=a):(c=a.map(Rt),u=l);var d=n.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!c)return u?d.every(f):d.some(f);var m=new wr;c.forEach(function(p){m.set(p,[])}),d.forEach(function(p){var g=p.getNamePath();c.forEach(function(b){b.every(function(y,S){return g[S]===y})&&m.update(b,function(y){return[].concat(be(y),[p])})})});var v=function(g){return g.some(f)},h=m.map(function(p){var g=p.value;return g});return u?h.every(v):h.some(v)}),A(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),A(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Rt);return o.some(function(a){var l=a.getNamePath();return Br(i,l)&&a.isFieldValidating()})}),A(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),A(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new wr,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 a=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)Ue(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=o.get(m);if(h&&h.size>1)Ue(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=n.getFieldValue(m),g=d.isListField();!g&&(!r.skipExist||p===void 0)&&n.updateStore(Sn(n.store,m,be(h)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,be(be(u).map(function(f){return f.entity})))}})):l=i,a(l)}),A(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(zr(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Rt);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Sn(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),A(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,c=et(a,nS),u=Rt(l);i.push(u),"value"in c&&n.updateStore(Sn(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),A(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),c=V(V({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),A(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=xn(n.store,i);a===void 0&&n.updateStore(Sn(n.store,i,o))}}),A(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),A(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(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||c.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!Af(f.getNamePath(),o)})){var d=n.store;n.updateStore(Sn(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),A(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),A(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=V(V({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,o,a)})}else n.forceRootUpdate()}),A(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(be(i))}),i}),A(this,"updateValue",function(r,o){var i=Rt(r),a=n.store;n.updateStore(Sn(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),c=n.callbacks.onValuesChange;if(c){var u=Jc(n.store,[i]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(be(l)))}),A(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=zr(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),A(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),A(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new wr;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Rt(d);a.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=a.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 l(r),i}),A(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new wr;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=a.filter(function(u){var d=u.name;return Br(r,d)});c.length&&i(c,a)}}),A(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,c=l?i.map(Rt):[],u=[],d=String(Date.now()),f=new Set,m=a||{},v=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(l||c.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var S=y.getNamePath();if(f.add(S.join(d)),!l||Br(c,S,v)){var x=y.validateRules(V({validateMessages:V(V({},_f),n.validateMessages)},a));u.push(x.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(w){var E,C=[],$=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(P){var R=P.rule.warningOnly,z=P.errors;R?$.push.apply($,be(z)):C.push.apply(C,be(z))}),C.length?Promise.reject({name:S,errors:C,warnings:$}):{name:S,errors:C,warnings:$}}))}}});var p=tS(u);n.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var S=y.map(function(x){var w=x.name;return w});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,y)});var g=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(y){var S=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:S,outOfDate:n.lastValidatePromise!==p})});g.catch(function(y){return y});var b=c.filter(function(y){return f.has(y.join(d))});return n.triggerOnFieldsChange(b),g}),A(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 Lf(e){var t=s.useRef(),n=s.useState({}),r=X(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new rS(i);t.current=a.getForm()}return[t.current]}var Pl=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),oS=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=s.useContext(Pl),l=s.useRef({});return s.createElement(Pl.Provider,{value:V(V({},a),{},{validateMessages:V(V({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=V(V({},l.current),{},A({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=V({},l.current);delete d[u],l.current=d,a.unregisterForm(u)}})},i)},iS=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],aS=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=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,h=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,y=et(t,iS),S=s.useContext(Pl),x=Lf(a),w=X(x,1),E=w[0],C=E.getInternalHooks(tr),$=C.useSubscribe,P=C.setInitialValues,R=C.setCallbacks,z=C.setValidateMessages,_=C.setPreserve,N=C.destroyForm;s.useImperativeHandle(n,function(){return E}),s.useEffect(function(){return S.registerForm(r,E),function(){S.unregisterForm(r)}},[S,E,r]),z(V(V({},S.validateMessages),f)),R({onValuesChange:h,onFieldsChange:function(H){if(S.triggerFormChange(r,H),p){for(var Y=arguments.length,W=new Array(Y>1?Y-1:0),k=1;k<Y;k++)W[k-1]=arguments[k];p.apply(void 0,[H].concat(W))}},onFinish:function(H){S.triggerFormFinish(r,H),g&&g(H)},onFinishFailed:b}),_(l);var D=s.useRef(null);P(o,!D.current),D.current||(D.current=!0),s.useEffect(function(){return N},[]);var L,T=typeof c=="function";if(T){var I=E.getFieldsValue(!0);L=c(I,E)}else L=c;$(!T);var M=s.useRef();s.useEffect(function(){Qy(M.current||[],i||[])||E.setFields(i||[]),M.current=i},[i,E]);var j=s.useMemo(function(){return V(V({},E),{},{validateTrigger:v})},[E,v]),F=s.createElement(wi.Provider,{value:null},s.createElement(Wr.Provider,{value:j},L));return d===!1?F:s.createElement(d,Me({},y,{onSubmit:function(H){H.preventDefault(),H.stopPropagation(),E.submit()},onReset:function(H){var Y;H.preventDefault(),E.resetFields(),(Y=y.onReset)===null||Y===void 0||Y.call(y,H)}}),F)};function nu(e){try{return JSON.stringify(e)}catch{return Math.random()}}var lS=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=O.useRef(t);Ue(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function sS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,i=t[1],a=i===void 0?{}:i,l=gy(a)?{form:a}:a,c=l.form,u=O.useState(),d=X(u,2),f=d[0],m=d[1],v=O.useMemo(function(){return nu(f)},[f]),h=O.useRef(v);h.current=v;var p=O.useContext(Wr),g=c||p,b=g&&g._init;process.env.NODE_ENV!=="production"&&Ue(t.length===2?c?b:!0:b,"useWatch requires a form instance since it can not auto detect from context.");var y=Rt(o),S=O.useRef(y);return S.current=y,lS(y),O.useEffect(function(){if(b){var x=g.getFieldsValue,w=g.getInternalHooks,E=w(tr),C=E.registerWatch,$=C(function(R,z){var _=xn(l.preserve?z:R,S.current),N=nu(_);h.current!==N&&(h.current=N,m(_))}),P=xn(l.preserve?x(!0):x(),S.current);return f!==P&&m(P),$}},[b]),f}var cS=s.forwardRef(aS),_o=cS;_o.FormProvider=oS;_o.Field=Df;_o.List=eS;_o.useForm=Lf;_o.useWatch=sS;const Pn=s.createContext({});process.env.NODE_ENV!=="production"&&(Pn.displayName="FormItemInputContext");const ru=e=>{let{children:t,status:n,override:r}=e;const o=O.useContext(Pn),i=O.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return s.createElement(Pn.Provider,{value:i},t)},uS=e=>({animationDuration:e,animationFillMode:"both"}),dS=e=>({animationDuration:e,animationFillMode:"both"}),ps=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
151
+ ${i}${e}-enter,
152
+ ${i}${e}-appear
153
+ `]:Object.assign(Object.assign({},uS(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},dS(r)),{animationPlayState:"paused"}),[`
154
+ ${i}${e}-enter${e}-enter-active,
155
+ ${i}${e}-appear${e}-appear-active
156
+ `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},fS=new pt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mS=new pt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),vS=new pt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gS=new pt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pS=new pt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hS=new pt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bS=new pt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yS=new pt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),SS={"move-up":{inKeyframes:bS,outKeyframes:yS},"move-down":{inKeyframes:fS,outKeyframes:mS},"move-left":{inKeyframes:vS,outKeyframes:gS},"move-right":{inKeyframes:pS,outKeyframes:hS}},Ei=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=SS[t];return[ps(r,o,i,e.motionDurationMid),{[`
157
+ ${r}-enter,
158
+ ${r}-appear
159
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},hs=new pt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),bs=new pt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ys=new pt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ss=new pt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),CS=new pt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xS=new pt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),wS=new pt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ES=new pt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$S={"slide-up":{inKeyframes:hs,outKeyframes:bs},"slide-down":{inKeyframes:ys,outKeyframes:Ss},"slide-left":{inKeyframes:CS,outKeyframes:xS},"slide-right":{inKeyframes:wS,outKeyframes:ES}},Kr=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=$S[t];return[ps(r,o,i,e.motionDurationMid),{[`
160
+ ${r}-enter,
161
+ ${r}-appear
162
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},OS=new pt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),IS=new pt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ou=new pt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),iu=new pt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),RS=new pt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),PS=new pt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),NS=new pt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),MS=new pt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),TS=new pt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),_S=new pt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),AS=new pt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),DS=new pt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),zS={zoom:{inKeyframes:OS,outKeyframes:IS},"zoom-big":{inKeyframes:ou,outKeyframes:iu},"zoom-big-fast":{inKeyframes:ou,outKeyframes:iu},"zoom-left":{inKeyframes:NS,outKeyframes:MS},"zoom-right":{inKeyframes:TS,outKeyframes:_S},"zoom-up":{inKeyframes:RS,outKeyframes:PS},"zoom-down":{inKeyframes:AS,outKeyframes:DS}},Cs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=zS[t];return[ps(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
163
+ ${r}-enter,
164
+ ${r}-appear
165
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},LS=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
166
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
167
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),FS=LS,Ff={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},jS={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function BS(e){return e in Ff}function Ui(e,t){const[,n]=On(),r=O.useContext(vs),o=BS(e);let i=r??0;return o?i+=n.zIndexPopupBase+Ff[e]:i+=jS[e],[r===void 0?t:i,i]}function HS(e){return function(n){return s.createElement(vr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},n)))}}function jf(e,t,n,r){function o(i){const{prefixCls:a,style:l}=i,c=s.useRef(null),[u,d]=s.useState(0),[f,m]=s.useState(0),[v,h]=Wt(!1,{value:i.open}),{getPrefixCls:p}=s.useContext(ut),g=p(t||"select",a);s.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(x=>{const w=x[0].target;d(w.offsetHeight+8),m(w.offsetWidth)}),S=setInterval(()=>{var x;const w=n?`.${n(g)}`:`.${g}-dropdown`,E=(x=c.current)===null||x===void 0?void 0:x.querySelector(w);E&&(clearInterval(S),y.observe(E))},10);return()=>{clearInterval(S),y.disconnect()}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:v,visible:v,getPopupContainer:()=>c.current});return r&&(b=r(b)),s.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:f}},s.createElement(e,Object.assign({},b)))}return HS(o)}const Bf=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 Gi=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,l=t.children,c;return typeof r=="function"?c=r(o):c=r,s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i&&i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:ne(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},l))};function VS(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=O.useMemo(function(){if(Ze(r)==="object")return r.clearIcon;if(o)return o},[r,o]),u=O.useMemo(function(){return!!(!i&&r&&(n.length||a)&&!(l==="combobox"&&a===""))},[r,i,n.length,a,l]);return{allowClear:u,clearIcon:O.createElement(Gi,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}var Hf=s.createContext(null);function kS(){return s.useContext(Hf)}function WS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=X(t,2),r=n[0],o=n[1],i=s.useRef(null),a=function(){window.clearTimeout(i.current)};s.useEffect(function(){return a},[]);var l=function(u,d){a(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,a]}function Vf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.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 KS(e,t,n,r){var o=s.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.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)}},[])}var US=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Er=void 0;function GS(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,v=e.display,h=e.order,p=e.component,g=p===void 0?"div":p,b=et(e,US),y=a&&!v;function S($){c(u,$)}s.useEffect(function(){return function(){S(null)}},[]);var x=i&&o!==Er?i(o):m,w;r||(w={opacity:y?0:1,height:y?0:Er,overflowY:y?"hidden":Er,order:a?h:Er,pointerEvents:y?"none":Er,position:y?"absolute":Er});var E={};y&&(E["aria-hidden"]=!0);var C=s.createElement(g,Me({className:ne(!r&&n,d),style:V(V({},w),f)},E,b,{ref:t}),x);return a&&(C=s.createElement(Hn,{onResize:function(P){var R=P.offsetWidth;S(R)},disabled:l},C)),C}var po=s.forwardRef(GS);po.displayName="Item";function qS(e){if(typeof MessageChannel>"u")gt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function XS(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],qS(function(){lr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function no(e,t){var n=s.useState(t),r=X(n,2),o=r[0],i=r[1],a=kt(function(l){e(function(){i(l)})});return[o,a]}var $i=O.createContext(null),YS=["component"],QS=["className"],ZS=["className"],JS=function(t,n){var r=s.useContext($i);if(!r){var o=t.component,i=o===void 0?"div":o,a=et(t,YS);return s.createElement(i,Me({},a,{ref:n}))}var l=r.className,c=et(r,QS),u=t.className,d=et(t,ZS);return s.createElement($i.Provider,{value:null},s.createElement(po,Me({ref:n,className:ne(l,u)},c,d)))},kf=s.forwardRef(JS);kf.displayName="RawItem";var eC=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Wf="responsive",Kf="invalidate";function tC(e){return"+ ".concat(e.length," ...")}function nC(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,v=e.className,h=e.maxCount,p=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,x=e.itemComponent,w=e.onVisibleChange,E=et(e,eC),C=f==="full",$=XS(),P=no($,null),R=X(P,2),z=R[0],_=R[1],N=z||0,D=no($,new Map),L=X(D,2),T=L[0],I=L[1],M=no($,0),j=X(M,2),F=j[0],B=j[1],H=no($,0),Y=X(H,2),W=Y[0],k=Y[1],oe=no($,0),ie=X(oe,2),Z=ie[0],q=ie[1],K=O.useState(null),ae=X(K,2),re=ae[0],ee=ae[1],U=O.useState(null),ve=X(U,2),te=ve[0],ue=ve[1],se=s.useMemo(function(){return te===null&&C?Number.MAX_SAFE_INTEGER:te||0},[te,z]),le=O.useState(!1),Q=X(le,2),ge=Q[0],fe=Q[1],Se="".concat(r,"-item"),Le=Math.max(F,W),De=h===Wf,Ce=i.length&&De,ot=h===Kf,Ie=Ce||typeof h=="number"&&i.length>h,Te=O.useMemo(function(){var ye=i;return Ce?z===null&&C?ye=i:ye=i.slice(0,Math.min(i.length,N/d)):typeof h=="number"&&(ye=i.slice(0,h)),ye},[i,d,z,h,Ce]),Re=O.useMemo(function(){return Ce?i.slice(se+1):i.slice(Te.length)},[i,Te,Ce,se]),he=O.useCallback(function(ye,J){var G;return typeof c=="function"?c(ye):(G=c&&(ye==null?void 0:ye[c]))!==null&&G!==void 0?G:J},[c]),Ye=O.useCallback(a||function(ye){return ye},[a]);function Be(ye,J,G){te===ye&&(J===void 0||J===re)||(ue(ye),G||(fe(ye<i.length-1),w==null||w(ye)),J!==void 0&&ee(J))}function ht(ye,J){_(J.clientWidth)}function rt(ye,J){I(function(G){var de=new Map(G);return J===null?de.delete(ye):de.set(ye,J),de})}function Ke(ye,J){k(J),B(W)}function He(ye,J){q(J)}function it(ye){return T.get(he(Te[ye],ye))}St(function(){if(N&&typeof Le=="number"&&Te){var ye=Z,J=Te.length,G=J-1;if(!J){Be(0,null);return}for(var de=0;de<J;de+=1){var me=it(de);if(C&&(me=me||0),me===void 0){Be(de-1,void 0,!0);break}if(ye+=me,G===0&&ye<=N||de===G-1&&ye+it(G)<=N){Be(G,null);break}else if(ye+Le>N){Be(de-1,ye-me-Z+W);break}}b&&it(0)+Z>N&&ee(null)}},[N,T,W,Z,he,Te]);var Qe=ge&&!!Re.length,bt={};re!==null&&Ce&&(bt={position:"absolute",left:re,top:0});var Ct={prefixCls:Se,responsive:Ce,component:x,invalidate:ot},Ve=l?function(ye,J){var G=he(ye,J);return s.createElement($i.Provider,{key:G,value:V(V({},Ct),{},{order:J,item:ye,itemKey:G,registerSize:rt,display:J<=se})},l(ye,J))}:function(ye,J){var G=he(ye,J);return s.createElement(po,Me({},Ct,{order:J,key:G,item:ye,renderItem:Ye,itemKey:G,registerSize:rt,display:J<=se}))},ke,Ge={order:Qe?se:Number.MAX_SAFE_INTEGER,className:"".concat(Se,"-rest"),registerSize:Ke,display:Qe};if(g)g&&(ke=s.createElement($i.Provider,{value:V(V({},Ct),Ge)},g(Re)));else{var $e=p||tC;ke=s.createElement(po,Me({},Ct,Ge),typeof $e=="function"?$e(Re):$e)}var qe=s.createElement(S,Me({className:ne(!ot&&r,v),style:m,ref:t},E),Te.map(Ve),Ie?ke:null,b&&s.createElement(po,Me({},Ct,{responsive:De,responsiveDisabled:!Ce,order:se,className:"".concat(Se,"-suffix"),registerSize:He,display:!0,style:bt}),b));return De&&(qe=s.createElement(Hn,{onResize:ht,disabled:!Ce},qe)),qe}var Rn=s.forwardRef(nC);Rn.displayName="Overflow";Rn.Item=kf;Rn.RESPONSIVE=Wf;Rn.INVALIDATE=Kf;var rC=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,v=t.value,h=t.maxLength,p=t.onKeyDown,g=t.onMouseDown,b=t.onChange,y=t.onPaste,S=t.onCompositionStart,x=t.onCompositionEnd,w=t.open,E=t.attrs,C=a||s.createElement("input",null),$=C,P=$.ref,R=$.props,z=R.onKeyDown,_=R.onChange,N=R.onMouseDown,D=R.onCompositionStart,L=R.onCompositionEnd,T=R.style;return sr(!("maxLength"in C.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),C=s.cloneElement(C,V(V(V({type:"search"},R),{},{id:i,ref:Nn(n,P),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:ne("".concat(o,"-selection-search-input"),(r=C)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?m:void 0},E),{},{value:f?v:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:V(V({},T),{},{opacity:f?null:0}),onKeyDown:function(M){p(M),z&&z(M)},onMouseDown:function(M){g(M),N&&N(M)},onChange:function(M){b(M),_&&_(M)},onCompositionStart:function(M){S(M),D&&D(M)},onCompositionEnd:function(M){x(M),L&&L(M)},onPaste:y})),C},xs=s.forwardRef(rC);xs.displayName="Input";function ws(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var oC=typeof window<"u"&&window.document&&window.document.documentElement,iC=process.env.NODE_ENV!=="test"&&oC;function aC(e){return e!=null}function lC(e){return!e&&e!==0}function au(e){return["string","number"].includes(Ze(e))}function Uf(e){var t=void 0;return e&&(au(e.title)?t=e.title.toString():au(e.label)&&(t=e.label.toString())),t}function sC(e,t){iC?s.useLayoutEffect(e,t):s.useEffect(e,t)}function cC(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var lu=function(t){t.preventDefault(),t.stopPropagation()},uC=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,v=t.autoFocus,h=t.autoComplete,p=t.activeDescendantId,g=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,x=t.maxTagPlaceholder,w=x===void 0?function(ee){return"+ ".concat(ee.length," ...")}:x,E=t.tagRender,C=t.onToggleOpen,$=t.onRemove,P=t.onInputChange,R=t.onInputPaste,z=t.onInputKeyDown,_=t.onInputMouseDown,N=t.onInputCompositionStart,D=t.onInputCompositionEnd,L=s.useRef(null),T=O.useState(0),I=X(T,2),M=I[0],j=I[1],F=O.useState(!1),B=X(F,2),H=B[0],Y=B[1],W="".concat(r,"-selection"),k=i||f==="multiple"&&l===!1||f==="tags"?a:"",oe=f==="tags"||f==="multiple"&&l===!1||m&&(i||H);sC(function(){j(L.current.scrollWidth)},[k]);function ie(ee,U,ve,te,ue){return s.createElement("span",{className:ne("".concat(W,"-item"),A({},"".concat(W,"-item-disabled"),ve)),title:Uf(ee)},s.createElement("span",{className:"".concat(W,"-item-content")},U),te&&s.createElement(Gi,{className:"".concat(W,"-item-remove"),onMouseDown:lu,onClick:ue,customizeIcon:b},"×"))}function Z(ee,U,ve,te,ue){var se=function(Q){lu(Q),C(!i)};return s.createElement("span",{onMouseDown:se},E({label:U,value:ee,disabled:ve,closable:te,onClose:ue}))}function q(ee){var U=ee.disabled,ve=ee.label,te=ee.value,ue=!d&&!U,se=ve;if(typeof S=="number"&&(typeof ve=="string"||typeof ve=="number")){var le=String(se);le.length>S&&(se="".concat(le.slice(0,S),"..."))}var Q=function(fe){fe&&fe.stopPropagation(),$(ee)};return typeof E=="function"?Z(te,se,U,ue,Q):ie(ee,se,U,ue,Q)}function K(ee){var U=typeof w=="function"?w(ee):w;return ie({title:U},U,!1)}var ae=s.createElement("div",{className:"".concat(W,"-search"),style:{width:M},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},s.createElement(xs,{ref:c,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:v,autoComplete:h,editable:oe,activeDescendantId:p,value:k,onKeyDown:z,onMouseDown:_,onChange:P,onPaste:R,onCompositionStart:N,onCompositionEnd:D,tabIndex:g,attrs:xo(t,!0)}),s.createElement("span",{ref:L,className:"".concat(W,"-search-mirror"),"aria-hidden":!0},k," ")),re=s.createElement(Rn,{prefixCls:"".concat(W,"-overflow"),data:o,renderItem:q,renderRest:K,suffix:ae,itemKey:cC,maxCount:y});return s.createElement(s.Fragment,null,re,!o.length&&!k&&s.createElement("span",{className:"".concat(W,"-placeholder")},u))},dC=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,v=t.placeholder,h=t.tabIndex,p=t.showSearch,g=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,x=t.onInputMouseDown,w=t.onInputChange,E=t.onInputPaste,C=t.onInputCompositionStart,$=t.onInputCompositionEnd,P=t.title,R=s.useState(!1),z=X(R,2),_=z[0],N=z[1],D=d==="combobox",L=D||p,T=m[0],I=g||"";D&&b&&!_&&(I=b),s.useEffect(function(){D&&N(!1)},[D,b]);var M=d!=="combobox"&&!f&&!p?!1:!!I,j=P===void 0?Uf(T):P,F=function(){if(T)return null;var H=M?{visibility:"hidden"}:void 0;return s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:H},v)};return s.createElement(s.Fragment,null,s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(xs,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:L,activeDescendantId:u,value:I,onKeyDown:S,onMouseDown:x,onChange:function(H){N(!0),w(H)},onPaste:E,onCompositionStart:C,onCompositionEnd:$,tabIndex:h,attrs:xo(t,!0),maxLength:D?y:void 0})),!D&&T?s.createElement("span",{className:"".concat(r,"-selection-item"),title:j,style:M?{visibility:"hidden"}:void 0},T.label):null,F())};function fC(e){return![ce.ESC,ce.SHIFT,ce.BACKSPACE,ce.TAB,ce.WIN_KEY,ce.ALT,ce.META,ce.WIN_KEY_RIGHT,ce.CTRL,ce.SEMICOLON,ce.EQUALS,ce.CAPS_LOCK,ce.CONTEXT_MENU,ce.F1,ce.F2,ce.F3,ce.F4,ce.F5,ce.F6,ce.F7,ce.F8,ce.F9,ce.F10,ce.F11,ce.F12].includes(e)}var mC=function(t,n){var r=O.useRef(null),o=O.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,m=t.onSearchSubmit,v=t.onToggleOpen,h=t.onInputKeyDown,p=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var g=Vf(0),b=X(g,2),y=b[0],S=b[1],x=function(I){var M=I.which;(M===ce.UP||M===ce.DOWN)&&I.preventDefault(),h&&h(I),M===ce.ENTER&&l==="tags"&&!o.current&&!a&&(m==null||m(I.target.value)),fC(M)&&v(!0)},w=function(){S(!0)},E=O.useRef(null),C=function(I){f(I,!0,o.current)!==!1&&v(!0)},$=function(){o.current=!0},P=function(I){o.current=!1,l!=="combobox"&&C(I.target.value)},R=function(I){var M=I.target.value;if(u&&E.current&&/[\r\n]/.test(E.current)){var j=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");M=M.replace(j,E.current)}E.current=null,C(M)},z=function(I){var M=I.clipboardData,j=M.getData("text");E.current=j},_=function(I){var M=I.target;if(M!==r.current){var j=document.body.style.msTouchAction!==void 0;j?setTimeout(function(){r.current.focus()}):r.current.focus()}},N=function(I){var M=y();I.target!==r.current&&!M&&l!=="combobox"&&I.preventDefault(),(l!=="combobox"&&(!c||!M)||!a)&&(a&&d!==!1&&f("",!0,!1),v())},D={inputRef:r,onInputKeyDown:x,onInputMouseDown:w,onInputChange:R,onInputPaste:z,onInputCompositionStart:$,onInputCompositionEnd:P},L=l==="multiple"||l==="tags"?s.createElement(uC,Me({},t,D)):s.createElement(dC,Me({},t,D));return s.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:_,onMouseDown:N},L)},Gf=s.forwardRef(mC);Gf.displayName="Selector";function qf(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function vC(e){return qf(e)instanceof ShadowRoot}function Nl(e){return vC(e)?qf(e):null}function gC(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],p=n.points[1],g=h[0],b=h[1],y=p[0],S=p[1];g===y||!["t","b"].includes(g)?v.top=f:g==="t"?v.top=0:v.bottom=0,b===S||!["l","r"].includes(b)?v.left=u:b==="l"?v.left=0:v.right=0}return s.createElement("div",{ref:m,className:ne("".concat(t,"-arrow"),a),style:v},l)}function pC(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?s.createElement(Yr,Me({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return s.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),l)})}):null}var Xf=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Xf.displayName="PopupContent");var Yf=s.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,v=e.arrow,h=e.arrowPos,p=e.align,g=e.motion,b=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,x=e.autoDestroy,w=e.portal,E=e.zIndex,C=e.onMouseEnter,$=e.onMouseLeave,P=e.onPointerEnter,R=e.ready,z=e.offsetX,_=e.offsetY,N=e.offsetR,D=e.offsetB,L=e.onAlign,T=e.onPrepare,I=e.stretch,M=e.targetWidth,j=e.targetHeight,F=typeof n=="function"?n():n,B=c||u,H=(S==null?void 0:S.length)>0,Y=s.useState(!S||!H),W=X(Y,2),k=W[0],oe=W[1];if(St(function(){!k&&H&&a&&oe(!0)},[k,H,a]),!k)return null;var ie="auto",Z={left:"-1000vw",top:"-1000vh",right:ie,bottom:ie};if(R||!c){var q,K=p.points,ae=p.dynamicInset||((q=p._experimental)===null||q===void 0?void 0:q.dynamicInset),re=ae&&K[0][1]==="r",ee=ae&&K[0][0]==="b";re?(Z.right=N,Z.left=ie):(Z.left=z,Z.right=ie),ee?(Z.bottom=D,Z.top=ie):(Z.top=_,Z.bottom=ie)}var U={};return I&&(I.includes("height")&&j?U.height=j:I.includes("minHeight")&&j&&(U.minHeight=j),I.includes("width")&&M?U.width=M:I.includes("minWidth")&&M&&(U.minWidth=M)),c||(U.pointerEvents="none"),s.createElement(w,{open:y||B,getContainer:S&&function(){return S(a)},autoDestroy:x},s.createElement(pC,{prefixCls:o,open:c,zIndex:E,mask:m,motion:b}),s.createElement(Hn,{onResize:L,disabled:!c},function(ve){return s.createElement(Yr,Me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:T,onEnterPrepare:T,visible:c,onVisibleChanged:function(ue){var se;g==null||(se=g.onVisibleChanged)===null||se===void 0||se.call(g,ue),l(ue)}}),function(te,ue){var se=te.className,le=te.style,Q=ne(o,se,r);return s.createElement("div",{ref:Nn(ve,t,ue),className:Q,style:V(V(V(V({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Z),U),le),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:C,onMouseLeave:$,onPointerEnter:P,onClick:f},v&&s.createElement(gC,{prefixCls:o,arrow:v,arrowPos:h,align:p}),s.createElement(Xf,{cache:!c&&!d},F))})}))});process.env.NODE_ENV!=="production"&&(Yf.displayName="Popup");var Qf=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Xn(n),i=s.useCallback(function(l){Ul(t,r?r(l):l)},[r]),a=Gr(i,n.ref);return o?s.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(Qf.displayName="TriggerWrapper");var su=s.createContext(null);function cu(e){return e?Array.isArray(e)?e:[e]:[]}function hC(e,t,n,r){return s.useMemo(function(){var o=cu(n??t),i=cu(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function bC(){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 yC(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(bC((l=e[c])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function uu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ao(e){return e.ownerDocument.defaultView}function Ml(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ao(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function Oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ro(e){return Oo(parseFloat(e),0)}function du(e,t){var n=V({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ao(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,v=r.clientHeight,h=r.offsetWidth,p=r.clientWidth,g=ro(l),b=ro(c),y=ro(u),S=ro(d),x=Oo(Math.round(f.width/h*1e3)/1e3),w=Oo(Math.round(f.height/m*1e3)/1e3),E=(h-p-y-S)*x,C=(m-v-g-b)*w,$=g*w,P=b*w,R=y*x,z=S*x,_=0,N=0;if(i==="clip"){var D=ro(a);_=D*x,N=D*w}var L=f.x+R-_,T=f.y+$-N,I=L+f.width+2*_-R-z-E,M=T+f.height+2*N-$-P-C;n.left=Math.max(n.left,L),n.top=Math.max(n.top,T),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,M)}}),n}function fu(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 mu(e,t){var n=t||[],r=X(n,2),o=r[0],i=r[1];return[fu(e.width,o),fu(e.height,i)]}function vu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function $r(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 Wn(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 SC(e,t,n,r,o,i,a){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=X(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?Ml(t):[]},[t]),v=s.useRef({}),h=function(){v.current={}};e||h();var p=kt(function(){if(t&&n&&e){let dn=function(jo,fn){var yr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le,Bo=j.x+jo,Sr=j.y+fn,Ho=Bo+Z,eo=Sr+ie,Vo=Math.max(Bo,yr.left),oa=Math.max(Sr,yr.top),ia=Math.min(Ho,yr.right),aa=Math.min(eo,yr.bottom);return Math.max(0,(ia-Vo)*(aa-oa))},Fo=function(){wt=j.y+Ge,Je=wt+ie,ft=j.x+ke,xt=ft+Z};var y,S,x=t,w=x.ownerDocument,E=Ao(x),C=E.getComputedStyle(x),$=C.width,P=C.height,R=C.position,z=x.style.left,_=x.style.top,N=x.style.right,D=x.style.bottom,L=V(V({},o[r]),i),T=w.createElement("div");(y=x.parentElement)===null||y===void 0||y.appendChild(T),T.style.left="".concat(x.offsetLeft,"px"),T.style.top="".concat(x.offsetTop,"px"),T.style.position=R,T.style.height="".concat(x.offsetHeight,"px"),T.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto";var I;if(Array.isArray(n))I={x:n[0],y:n[1],width:0,height:0};else{var M=n.getBoundingClientRect();I={x:M.x,y:M.y,width:M.width,height:M.height}}var j=x.getBoundingClientRect(),F=w.documentElement,B=F.clientWidth,H=F.clientHeight,Y=F.scrollWidth,W=F.scrollHeight,k=F.scrollTop,oe=F.scrollLeft,ie=j.height,Z=j.width,q=I.height,K=I.width,ae={left:0,top:0,right:B,bottom:H},re={left:-oe,top:-k,right:Y-oe,bottom:W-k},ee=L.htmlRegion,U="visible",ve="visibleFirst";ee!=="scroll"&&ee!==ve&&(ee=U);var te=ee===ve,ue=du(re,m),se=du(ae,m),le=ee===U?se:ue,Q=te?se:le;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var ge=x.getBoundingClientRect();x.style.left=z,x.style.top=_,x.style.right=N,x.style.bottom=D,(S=x.parentElement)===null||S===void 0||S.removeChild(T);var fe=Oo(Math.round(Z/parseFloat($)*1e3)/1e3),Se=Oo(Math.round(ie/parseFloat(P)*1e3)/1e3);if(fe===0||Se===0||fi(n)&&!ss(n))return;var Le=L.offset,De=L.targetOffset,Ce=mu(j,Le),ot=X(Ce,2),Ie=ot[0],Te=ot[1],Re=mu(I,De),he=X(Re,2),Ye=he[0],Be=he[1];I.x-=Ye,I.y-=Be;var ht=L.points||[],rt=X(ht,2),Ke=rt[0],He=rt[1],it=vu(He),Qe=vu(Ke),bt=$r(I,it),Ct=$r(j,Qe),Ve=V({},L),ke=bt.x-Ct.x+Ie,Ge=bt.y-Ct.y+Te,$e=dn(ke,Ge),qe=dn(ke,Ge,se),ye=$r(I,["t","l"]),J=$r(j,["t","l"]),G=$r(I,["b","r"]),de=$r(j,["b","r"]),me=L.overflow||{},pe=me.adjustX,_e=me.adjustY,ze=me.shiftX,at=me.shiftY,tt=function(fn){return typeof fn=="boolean"?fn:fn>=0},wt,Je,ft,xt;Fo();var Gt=tt(_e),Oe=Qe[0]===it[0];if(Gt&&Qe[0]==="t"&&(Je>Q.bottom||v.current.bt)){var xe=Ge;Oe?xe-=ie-q:xe=ye.y-de.y-Te;var Ae=dn(ke,xe),mt=dn(ke,xe,se);Ae>$e||Ae===$e&&(!te||mt>=qe)?(v.current.bt=!0,Ge=xe,Te=-Te,Ve.points=[Wn(Qe,0),Wn(it,0)]):v.current.bt=!1}if(Gt&&Qe[0]==="b"&&(wt<Q.top||v.current.tb)){var yt=Ge;Oe?yt+=ie-q:yt=G.y-J.y-Te;var Pt=dn(ke,yt),Zt=dn(ke,yt,se);Pt>$e||Pt===$e&&(!te||Zt>=qe)?(v.current.tb=!0,Ge=yt,Te=-Te,Ve.points=[Wn(Qe,0),Wn(it,0)]):v.current.tb=!1}var In=tt(pe),hn=Qe[1]===it[1];if(In&&Qe[1]==="l"&&(xt>Q.right||v.current.rl)){var Dt=ke;hn?Dt-=Z-K:Dt=ye.x-de.x-Ie;var Vt=dn(Dt,Ge),Yn=dn(Dt,Ge,se);Vt>$e||Vt===$e&&(!te||Yn>=qe)?(v.current.rl=!0,ke=Dt,Ie=-Ie,Ve.points=[Wn(Qe,1),Wn(it,1)]):v.current.rl=!1}if(In&&Qe[1]==="r"&&(ft<Q.left||v.current.lr)){var cn=ke;hn?cn+=Z-K:cn=G.x-J.x-Ie;var Mn=dn(cn,Ge),Vn=dn(cn,Ge,se);Mn>$e||Mn===$e&&(!te||Vn>=qe)?(v.current.lr=!0,ke=cn,Ie=-Ie,Ve.points=[Wn(Qe,1),Wn(it,1)]):v.current.lr=!1}Fo();var zt=ze===!0?0:ze;typeof zt=="number"&&(ft<se.left&&(ke-=ft-se.left-Ie,I.x+K<se.left+zt&&(ke+=I.x-se.left+K-zt)),xt>se.right&&(ke-=xt-se.right-Ie,I.x>se.right-zt&&(ke+=I.x-se.right+zt)));var Jt=at===!0?0:at;typeof Jt=="number"&&(wt<se.top&&(Ge-=wt-se.top-Te,I.y+q<se.top+Jt&&(Ge+=I.y-se.top+q-Jt)),Je>se.bottom&&(Ge-=Je-se.bottom-Te,I.y>se.bottom-Jt&&(Ge+=I.y-se.bottom+Jt)));var Tn=j.x+ke,kn=Tn+Z,en=j.y+Ge,un=en+ie,bn=I.x,Fe=bn+K,Pe=I.y,$t=Pe+q,Xe=Math.max(Tn,bn),Ne=Math.min(kn,Fe),We=(Xe+Ne)/2,lt=We-Tn,Et=Math.max(en,Pe),Nt=Math.min(un,$t),Ft=(Et+Nt)/2,qt=Ft-en;a==null||a(t,Ve);var br=ge.right-j.x-(ke+j.width),Lo=ge.bottom-j.y-(Ge+j.height);d({ready:!0,offsetX:ke/fe,offsetY:Ge/Se,offsetR:br/fe,offsetB:Lo/Se,arrowX:lt/fe,arrowY:qt/Se,scaleX:fe,scaleY:Se,align:Ve})}}),g=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&p()})},b=function(){d(function(S){return V(V({},S),{},{ready:!1})})};return St(b,[r]),St(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 CC(e,t,n,r,o){St(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,l=Ml(i),c=Ml(a),u=Ao(a),d=new Set([u].concat(be(l),be(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 xC(e,t,n,r,o,i,a,l){var c=s.useRef(e),u=s.useRef(!1);c.current!==e&&(u.current=!0,c.current=e),s.useEffect(function(){var d=gt(function(){u.current=!1});return function(){gt.cancel(d)}},[e]),s.useEffect(function(){if(t&&r&&(!o||i)){var d=function(){var R=!1,z=function(D){var L=D.target;R=a(L)},_=function(D){var L=D.target;!u.current&&c.current&&!R&&!a(L)&&l(!1)};return[z,_]},f=d(),m=X(f,2),v=m[0],h=m[1],p=d(),g=X(p,2),b=g[0],y=g[1],S=Ao(r);S.addEventListener("mousedown",v,!0),S.addEventListener("click",h,!0),S.addEventListener("contextmenu",h,!0);var x=Nl(n);if(x&&(x.addEventListener("mousedown",b,!0),x.addEventListener("click",y,!0),x.addEventListener("contextmenu",y,!0)),process.env.NODE_ENV!=="production"){var w,E,C=n==null||(w=n.getRootNode)===null||w===void 0?void 0:w.call(n),$=(E=r.getRootNode)===null||E===void 0?void 0:E.call(r);sr(C===$,"trigger element and popup element should in same shadow root.")}return function(){S.removeEventListener("mousedown",v,!0),S.removeEventListener("click",h,!0),S.removeEventListener("contextmenu",h,!0),x&&(x.removeEventListener("mousedown",b,!0),x.removeEventListener("click",y,!0),x.removeEventListener("contextmenu",y,!0))}}},[t,n,r,o,i])}var wC=["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 EC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ms,t=s.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,v=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,p=n.mouseEnterDelay,g=n.mouseLeaveDelay,b=g===void 0?.1:g,y=n.focusDelay,S=n.blurDelay,x=n.mask,w=n.maskClosable,E=w===void 0?!0:w,C=n.getPopupContainer,$=n.forceRender,P=n.autoDestroy,R=n.destroyPopupOnHide,z=n.popup,_=n.popupClassName,N=n.popupStyle,D=n.popupPlacement,L=n.builtinPlacements,T=L===void 0?{}:L,I=n.popupAlign,M=n.zIndex,j=n.stretch,F=n.getPopupClassNameFromAlign,B=n.fresh,H=n.alignPoint,Y=n.onPopupClick,W=n.onPopupAlign,k=n.arrow,oe=n.popupMotion,ie=n.maskMotion,Z=n.popupTransitionName,q=n.popupAnimation,K=n.maskTransitionName,ae=n.maskAnimation,re=n.className,ee=n.getTriggerDOMNode,U=et(n,wC),ve=P||R||!1,te=s.useState(!1),ue=X(te,2),se=ue[0],le=ue[1];St(function(){le(Bf())},[]);var Q=s.useRef({}),ge=s.useContext(su),fe=s.useMemo(function(){return{registerSubPopup:function(je,Ot){Q.current[je]=Ot,ge==null||ge.registerSubPopup(je,Ot)}}},[ge]),Se=my(),Le=s.useState(null),De=X(Le,2),Ce=De[0],ot=De[1],Ie=kt(function(Ee){fi(Ee)&&Ce!==Ee&&ot(Ee),ge==null||ge.registerSubPopup(Se,Ee)}),Te=s.useState(null),Re=X(Te,2),he=Re[0],Ye=Re[1],Be=s.useRef(null),ht=kt(function(Ee){fi(Ee)&&he!==Ee&&(Ye(Ee),Be.current=Ee)}),rt=s.Children.only(a),Ke=(rt==null?void 0:rt.props)||{},He={},it=kt(function(Ee){var je,Ot,Tt=he;return(Tt==null?void 0:Tt.contains(Ee))||((je=Nl(Tt))===null||je===void 0?void 0:je.host)===Ee||Ee===Tt||(Ce==null?void 0:Ce.contains(Ee))||((Ot=Nl(Ce))===null||Ot===void 0?void 0:Ot.host)===Ee||Ee===Ce||Object.values(Q.current).some(function(It){return(It==null?void 0:It.contains(Ee))||Ee===It})}),Qe=uu(i,oe,q,Z),bt=uu(i,ie,ae,K),Ct=s.useState(m||!1),Ve=X(Ct,2),ke=Ve[0],Ge=Ve[1],$e=f??ke,qe=kt(function(Ee){f===void 0&&Ge(Ee)});St(function(){Ge(f||!1)},[f]);var ye=s.useRef($e);ye.current=$e;var J=s.useRef([]);J.current=[];var G=kt(function(Ee){var je;qe(Ee),((je=J.current[J.current.length-1])!==null&&je!==void 0?je:$e)!==Ee&&(J.current.push(Ee),v==null||v(Ee))}),de=s.useRef(),me=function(){clearTimeout(de.current)},pe=function(je){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;me(),Ot===0?G(je):de.current=setTimeout(function(){G(je)},Ot*1e3)};s.useEffect(function(){return me},[]);var _e=s.useState(!1),ze=X(_e,2),at=ze[0],tt=ze[1];St(function(Ee){(!Ee||$e)&&tt(!0)},[$e]);var wt=s.useState(null),Je=X(wt,2),ft=Je[0],xt=Je[1],Gt=s.useState([0,0]),Oe=X(Gt,2),xe=Oe[0],Ae=Oe[1],mt=function(je){Ae([je.clientX,je.clientY])},yt=SC($e,Ce,H?xe:he,D,T,I,W),Pt=X(yt,11),Zt=Pt[0],In=Pt[1],hn=Pt[2],Dt=Pt[3],Vt=Pt[4],Yn=Pt[5],cn=Pt[6],Mn=Pt[7],Vn=Pt[8],zt=Pt[9],Jt=Pt[10],Tn=hC(se,c,u,d),kn=X(Tn,2),en=kn[0],un=kn[1],bn=en.has("click"),Fe=un.has("click")||un.has("contextMenu"),Pe=kt(function(){at||Jt()}),$t=function(){ye.current&&H&&Fe&&pe(!1)};CC($e,he,Ce,Pe,$t),St(function(){Pe()},[xe,D]),St(function(){$e&&!(T!=null&&T[D])&&Pe()},[JSON.stringify(I)]);var Xe=s.useMemo(function(){var Ee=yC(T,i,zt,H);return ne(Ee,F==null?void 0:F(zt))},[zt,F,T,i,H]);s.useImperativeHandle(r,function(){return{nativeElement:Be.current,forceAlign:Pe}});var Ne=s.useState(0),We=X(Ne,2),lt=We[0],Et=We[1],Nt=s.useState(0),Ft=X(Nt,2),qt=Ft[0],br=Ft[1],Lo=function(){if(j&&he){var je=he.getBoundingClientRect();Et(je.width),br(je.height)}},dn=function(){Lo(),Pe()},Fo=function(je){tt(!1),Jt(),h==null||h(je)},jo=function(){return new Promise(function(je){Lo(),xt(function(){return je})})};St(function(){ft&&(Jt(),ft(),xt(null))},[ft]);function fn(Ee,je,Ot,Tt){He[Ee]=function(It){var ko;Tt==null||Tt(It),pe(je,Ot);for(var la=arguments.length,Vs=new Array(la>1?la-1:0),Wo=1;Wo<la;Wo++)Vs[Wo-1]=arguments[Wo];(ko=Ke[Ee])===null||ko===void 0||ko.call.apply(ko,[Ke,It].concat(Vs))}}(bn||Fe)&&(He.onClick=function(Ee){var je;ye.current&&Fe?pe(!1):!ye.current&&bn&&(mt(Ee),pe(!0));for(var Ot=arguments.length,Tt=new Array(Ot>1?Ot-1:0),It=1;It<Ot;It++)Tt[It-1]=arguments[It];(je=Ke.onClick)===null||je===void 0||je.call.apply(je,[Ke,Ee].concat(Tt))}),xC($e,Fe,he,Ce,x,E,it,pe);var yr=en.has("hover"),Bo=un.has("hover"),Sr,Ho;yr&&(fn("onMouseEnter",!0,p,function(Ee){mt(Ee)}),fn("onPointerEnter",!0,p,function(Ee){mt(Ee)}),Sr=function(){($e||at)&&pe(!0,p)},H&&(He.onMouseMove=function(Ee){var je;(je=Ke.onMouseMove)===null||je===void 0||je.call(Ke,Ee)})),Bo&&(fn("onMouseLeave",!1,b),fn("onPointerLeave",!1,b),Ho=function(){pe(!1,b)}),en.has("focus")&&fn("onFocus",!0,y),un.has("focus")&&fn("onBlur",!1,S),en.has("contextMenu")&&(He.onContextMenu=function(Ee){var je;ye.current&&un.has("contextMenu")?pe(!1):(mt(Ee),pe(!0)),Ee.preventDefault();for(var Ot=arguments.length,Tt=new Array(Ot>1?Ot-1:0),It=1;It<Ot;It++)Tt[It-1]=arguments[It];(je=Ke.onContextMenu)===null||je===void 0||je.call.apply(je,[Ke,Ee].concat(Tt))}),re&&(He.className=ne(Ke.className,re));var eo=V(V({},Ke),He),Vo={},oa=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];oa.forEach(function(Ee){U[Ee]&&(Vo[Ee]=function(){for(var je,Ot=arguments.length,Tt=new Array(Ot),It=0;It<Ot;It++)Tt[It]=arguments[It];(je=eo[Ee])===null||je===void 0||je.call.apply(je,[eo].concat(Tt)),U[Ee].apply(U,Tt)})});var ia=s.cloneElement(rt,V(V({},eo),Vo)),aa={x:Yn,y:cn},Rv=k?V({},k!==!0?k:{}):null;return s.createElement(s.Fragment,null,s.createElement(Hn,{disabled:!$e,ref:ht,onResize:dn},s.createElement(Qf,{getTriggerDOMNode:ee},ia)),s.createElement(su.Provider,{value:fe},s.createElement(Yf,{portal:e,ref:Ie,prefixCls:i,popup:z,className:ne(_,Xe),style:N,target:he,onMouseEnter:Sr,onMouseLeave:Ho,onPointerEnter:Sr,zIndex:M,open:$e,keepDom:at,fresh:B,onClick:Y,mask:x,motion:Qe,maskMotion:bt,onVisibleChanged:Fo,onPrepare:jo,forceRender:$,autoDestroy:ve,getPopupContainer:C,align:zt,arrow:Rv,arrowPos:aa,ready:Zt,offsetX:In,offsetY:hn,offsetR:Dt,offsetB:Vt,onAlign:Pe,stretch:j,targetWidth:lt/Mn,targetHeight:qt/Vn})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const qi=EC(ms);var $C=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],OC=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"}}},IC=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,v=t.placement,h=t.builtinPlacements,p=t.dropdownMatchSelectWidth,g=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,S=t.empty,x=t.getTriggerDOMNode,w=t.onPopupVisibleChange,E=t.onPopupMouseEnter,C=et(t,$C),$="".concat(r,"-dropdown"),P=a;g&&(P=g(a));var R=s.useMemo(function(){return h||OC(p)},[h,p]),z=l?"".concat($,"-").concat(l):c,_=typeof p=="number",N=s.useMemo(function(){return _?null:p===!1?"minWidth":"width"},[p,_]),D=u;_&&(D=V(V({},D),{},{width:p}));var L=s.useRef(null);return s.useImperativeHandle(n,function(){return{getPopupElement:function(){return L.current}}}),s.createElement(qi,Me({},C,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:v||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:$,popupTransitionName:z,popup:s.createElement("div",{ref:L,onMouseEnter:E},P),stretch:N,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:ne(d,A({},"".concat($,"-empty"),S)),popupStyle:D,getTriggerDOMNode:x,onPopupVisibleChange:w}),i)},Zf=s.forwardRef(IC);Zf.displayName="SelectTrigger";function gu(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 Jf(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function RC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Jf(n,!1),a=i.label,l=i.value,c=i.options,u=i.groupLabel;function d(f,m){f.forEach(function(v){if(m||!(c in v)){var h=v[l];o.push({key:gu(v,o.length),groupOption:m,data:v,label:v[a],value:h})}else{var p=v[u];p===void 0&&r&&(p=v.label),o.push({key:gu(v,o.length),group:!0,data:v,label:p}),d(v[c],!0)}})}return d(e,!1),o}function Tl(e){var t=V({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ue(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function PC(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var l=$d(a),c=l[0],u=l.slice(1);if(!c)return[i];var d=i.split(c);return n=n||d.length>1,d.reduce(function(f,m){return[].concat(be(f),be(r(m,u)))},[]).filter(function(f){return f})}var o=r(e,t);return n?o:null}var NC=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],MC=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Oi(e){return e==="tags"||e==="multiple"}var em=s.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,c=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,m=e.onDisplayValuesChange,v=e.emptyOptions,h=e.notFoundContent,p=h===void 0?"Not Found":h,g=e.onClear,b=e.mode,y=e.disabled,S=e.loading,x=e.getInputElement,w=e.getRawInputElement,E=e.open,C=e.defaultOpen,$=e.onDropdownVisibleChange,P=e.activeValue,R=e.onActiveValueChange,z=e.activeDescendantId,_=e.searchValue,N=e.autoClearSearchValue,D=e.onSearch,L=e.onSearchSplit,T=e.tokenSeparators,I=e.allowClear,M=e.suffixIcon,j=e.clearIcon,F=e.OptionList,B=e.animation,H=e.transitionName,Y=e.dropdownStyle,W=e.dropdownClassName,k=e.dropdownMatchSelectWidth,oe=e.dropdownRender,ie=e.dropdownAlign,Z=e.placement,q=e.builtinPlacements,K=e.getPopupContainer,ae=e.showAction,re=ae===void 0?[]:ae,ee=e.onFocus,U=e.onBlur,ve=e.onKeyUp,te=e.onKeyDown,ue=e.onMouseDown,se=et(e,NC),le=Oi(b),Q=(l!==void 0?l:le)||b==="combobox",ge=V({},se);MC.forEach(function(Fe){delete ge[Fe]}),d==null||d.forEach(function(Fe){delete ge[Fe]});var fe=s.useState(!1),Se=X(fe,2),Le=Se[0],De=Se[1];s.useEffect(function(){De(Bf())},[]);var Ce=s.useRef(null),ot=s.useRef(null),Ie=s.useRef(null),Te=s.useRef(null),Re=s.useRef(null),he=s.useRef(!1),Ye=WS(),Be=X(Ye,3),ht=Be[0],rt=Be[1],Ke=Be[2];s.useImperativeHandle(t,function(){var Fe,Pe;return{focus:(Fe=Te.current)===null||Fe===void 0?void 0:Fe.focus,blur:(Pe=Te.current)===null||Pe===void 0?void 0:Pe.blur,scrollTo:function(Xe){var Ne;return(Ne=Re.current)===null||Ne===void 0?void 0:Ne.scrollTo(Xe)}}});var He=s.useMemo(function(){var Fe;if(b!=="combobox")return _;var Pe=(Fe=f[0])===null||Fe===void 0?void 0:Fe.value;return typeof Pe=="string"||typeof Pe=="number"?String(Pe):""},[_,b,f]),it=b==="combobox"&&typeof x=="function"&&x()||null,Qe=typeof w=="function"&&w(),bt=Gr(ot,Qe==null||(n=Qe.props)===null||n===void 0?void 0:n.ref),Ct=s.useState(!1),Ve=X(Ct,2),ke=Ve[0],Ge=Ve[1];St(function(){Ge(!0)},[]);var $e=Wt(!1,{defaultValue:C,value:E}),qe=X($e,2),ye=qe[0],J=qe[1],G=ke?ye:!1,de=!p&&v;(y||de&&G&&b==="combobox")&&(G=!1);var me=de?!1:G,pe=s.useCallback(function(Fe){var Pe=Fe!==void 0?Fe:!G;y||(J(Pe),G!==Pe&&($==null||$(Pe)))},[y,G,J,$]),_e=s.useMemo(function(){return(T||[]).some(function(Fe){return[`
168
+ `,`\r
169
+ `].includes(Fe)})},[T]),ze=function(Pe,$t,Xe){var Ne=!0,We=Pe;R==null||R(null);var lt=Xe?null:PC(Pe,T);return b!=="combobox"&&lt&&(We="",L==null||L(lt),pe(!1),Ne=!1),D&&He!==We&&D(We,{source:$t?"typing":"effect"}),Ne},at=function(Pe){!Pe||!Pe.trim()||D(Pe,{source:"submit"})};s.useEffect(function(){!G&&!le&&b!=="combobox"&&ze("",!1,!1)},[G]),s.useEffect(function(){ye&&y&&J(!1),y&&!he.current&&rt(!1)},[y]);var tt=Vf(),wt=X(tt,2),Je=wt[0],ft=wt[1],xt=function(Pe){var $t=Je(),Xe=Pe.which;if(Xe===ce.ENTER&&(b!=="combobox"&&Pe.preventDefault(),G||pe(!0)),ft(!!He),Xe===ce.BACKSPACE&&!$t&&le&&!He&&f.length){for(var Ne=be(f),We=null,lt=Ne.length-1;lt>=0;lt-=1){var Et=Ne[lt];if(!Et.disabled){Ne.splice(lt,1),We=Et;break}}We&&m(Ne,{type:"remove",values:[We]})}for(var Nt=arguments.length,Ft=new Array(Nt>1?Nt-1:0),qt=1;qt<Nt;qt++)Ft[qt-1]=arguments[qt];if(G&&Re.current){var br;(br=Re.current).onKeyDown.apply(br,[Pe].concat(Ft))}te==null||te.apply(void 0,[Pe].concat(Ft))},Gt=function(Pe){for(var $t=arguments.length,Xe=new Array($t>1?$t-1:0),Ne=1;Ne<$t;Ne++)Xe[Ne-1]=arguments[Ne];if(G&&Re.current){var We;(We=Re.current).onKeyUp.apply(We,[Pe].concat(Xe))}ve==null||ve.apply(void 0,[Pe].concat(Xe))},Oe=function(Pe){var $t=f.filter(function(Xe){return Xe!==Pe});m($t,{type:"remove",values:[Pe]})},xe=s.useRef(!1),Ae=function(){rt(!0),y||(ee&&!xe.current&&ee.apply(void 0,arguments),re.includes("focus")&&pe(!0)),xe.current=!0},mt=function(){he.current=!0,rt(!1,function(){xe.current=!1,he.current=!1,pe(!1)}),!y&&(He&&(b==="tags"?D(He,{source:"submit"}):b==="multiple"&&D("",{source:"blur"})),U&&U.apply(void 0,arguments))},yt=[];s.useEffect(function(){return function(){yt.forEach(function(Fe){return clearTimeout(Fe)}),yt.splice(0,yt.length)}},[]);var Pt=function(Pe){var $t,Xe=Pe.target,Ne=($t=Ie.current)===null||$t===void 0?void 0:$t.getPopupElement();if(Ne&&Ne.contains(Xe)){var We=setTimeout(function(){var Ft=yt.indexOf(We);if(Ft!==-1&&yt.splice(Ft,1),Ke(),!Le&&!Ne.contains(document.activeElement)){var qt;(qt=Te.current)===null||qt===void 0||qt.focus()}});yt.push(We)}for(var lt=arguments.length,Et=new Array(lt>1?lt-1:0),Nt=1;Nt<lt;Nt++)Et[Nt-1]=arguments[Nt];ue==null||ue.apply(void 0,[Pe].concat(Et))},Zt=s.useState({}),In=X(Zt,2),hn=In[1];function Dt(){hn({})}var Vt;Qe&&(Vt=function(Pe){pe(Pe)}),KS(function(){var Fe;return[Ce.current,(Fe=Ie.current)===null||Fe===void 0?void 0:Fe.getPopupElement()]},me,pe,!!Qe);var Yn=s.useMemo(function(){return V(V({},e),{},{notFoundContent:p,open:G,triggerOpen:me,id:o,showSearch:Q,multiple:le,toggleOpen:pe})},[e,p,me,G,o,Q,le,pe]),cn=!!M||S,Mn;cn&&(Mn=s.createElement(Gi,{className:ne("".concat(i,"-arrow"),A({},"".concat(i,"-arrow-loading"),S)),customizeIcon:M,customizeIconProps:{loading:S,searchValue:He,open:G,focused:ht,showSearch:Q}}));var Vn=function(){var Pe;g==null||g(),(Pe=Te.current)===null||Pe===void 0||Pe.focus(),m([],{type:"clear",values:f}),ze("",!1,!1)},zt=VS(i,Vn,f,I,j,y,He,b),Jt=zt.allowClear,Tn=zt.clearIcon,kn=s.createElement(F,{ref:Re}),en=ne(i,a,(r={},A(r,"".concat(i,"-focused"),ht),A(r,"".concat(i,"-multiple"),le),A(r,"".concat(i,"-single"),!le),A(r,"".concat(i,"-allow-clear"),I),A(r,"".concat(i,"-show-arrow"),cn),A(r,"".concat(i,"-disabled"),y),A(r,"".concat(i,"-loading"),S),A(r,"".concat(i,"-open"),G),A(r,"".concat(i,"-customize-input"),it),A(r,"".concat(i,"-show-search"),Q),r)),un=s.createElement(Zf,{ref:Ie,disabled:y,prefixCls:i,visible:me,popupElement:kn,animation:B,transitionName:H,dropdownStyle:Y,dropdownClassName:W,direction:u,dropdownMatchSelectWidth:k,dropdownRender:oe,dropdownAlign:ie,placement:Z,builtinPlacements:q,getPopupContainer:K,empty:v,getTriggerDOMNode:function(){return ot.current},onPopupVisibleChange:Vt,onPopupMouseEnter:Dt},Qe?s.cloneElement(Qe,{ref:bt}):s.createElement(Gf,Me({},e,{domRef:ot,prefixCls:i,inputElement:it,ref:Te,id:o,showSearch:Q,autoClearSearchValue:N,mode:b,activeDescendantId:z,tagRender:c,values:f,open:G,onToggleOpen:pe,activeValue:P,searchValue:He,onSearch:ze,onSearchSubmit:at,onRemove:Oe,tokenWithEnter:_e}))),bn;return Qe?bn=un:bn=s.createElement("div",Me({className:en},ge,{ref:Ce,onMouseDown:Pt,onKeyDown:xt,onKeyUp:Gt,onFocus:Ae,onBlur:mt}),ht&&!G&&s.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(f.map(function(Fe){var Pe=Fe.label,$t=Fe.value;return["number","string"].includes(Ze(Pe))?Pe:$t}).join(", "))),un,Mn,Jt&&Tn),s.createElement(Hf.Provider,{value:Yn},bn)});process.env.NODE_ENV!=="production"&&(em.displayName="BaseSelect");var Es=function(){return null};Es.isSelectOptGroup=!0;var $s=function(){return null};$s.isSelectOption=!0;var tm=s.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};if(r!==void 0){var v;f={height:n,position:"relative",overflow:"hidden"},m=V(V({},m),{},(v={transform:"translateY(".concat(r,"px)")},A(v,u?"marginRight":"marginLeft",-o),A(v,"position","absolute"),A(v,"left",0),A(v,"right",0),A(v,"top",0),v))}return s.createElement("div",{style:f},s.createElement(Hn,{onResize:function(p){var g=p.offsetHeight;g&&l&&l()}},s.createElement("div",Me({style:m,className:ne(A({},"".concat(a,"-holder-inner"),a)),ref:t},c),i,d)))});tm.displayName="Filler";function pu(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var _l=s.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,c=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,m=e.containerSize,v=e.style,h=e.thumbStyle,p=s.useState(!1),g=X(p,2),b=g[0],y=g[1],S=s.useState(null),x=X(S,2),w=x[0],E=x[1],C=s.useState(null),$=X(C,2),P=$[0],R=$[1],z=!o,_=s.useRef(),N=s.useRef(),D=s.useState(!1),L=X(D,2),T=L[0],I=L[1],M=s.useRef(),j=function(){clearTimeout(M.current),I(!0),M.current=setTimeout(function(){I(!1)},3e3)},F=a-m||0,B=m-f||0,H=F>0,Y=s.useMemo(function(){if(i===0||F===0)return 0;var re=i/F;return re*B},[i,F,B]),W=function(ee){ee.stopPropagation(),ee.preventDefault()},k=s.useRef({top:Y,dragging:b,pageY:w,startTop:P});k.current={top:Y,dragging:b,pageY:w,startTop:P};var oe=function(ee){y(!0),E(pu(ee,d)),R(k.current.top),l(),ee.stopPropagation(),ee.preventDefault()};s.useEffect(function(){var re=function(te){te.preventDefault()},ee=_.current,U=N.current;return ee.addEventListener("touchstart",re),U.addEventListener("touchstart",oe),function(){ee.removeEventListener("touchstart",re),U.removeEventListener("touchstart",oe)}},[]);var ie=s.useRef();ie.current=F;var Z=s.useRef();Z.current=B,s.useEffect(function(){if(b){var re,ee=function(te){var ue=k.current,se=ue.dragging,le=ue.pageY,Q=ue.startTop;if(gt.cancel(re),se){var ge=pu(te,d)-le,fe=Q;!z&&d?fe-=ge:fe+=ge;var Se=ie.current,Le=Z.current,De=Le?fe/Le:0,Ce=Math.ceil(De*Se);Ce=Math.max(Ce,0),Ce=Math.min(Ce,Se),re=gt(function(){u(Ce,d)})}},U=function(){y(!1),c()};return window.addEventListener("mousemove",ee),window.addEventListener("touchmove",ee),window.addEventListener("mouseup",U),window.addEventListener("touchend",U),function(){window.removeEventListener("mousemove",ee),window.removeEventListener("touchmove",ee),window.removeEventListener("mouseup",U),window.removeEventListener("touchend",U),gt.cancel(re)}}},[b]),s.useEffect(function(){j()},[i]),s.useImperativeHandle(t,function(){return{delayHidden:j}});var q="".concat(r,"-scrollbar"),K={position:"absolute",visibility:T&&H?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(K.height=8,K.left=0,K.right=0,K.bottom=0,ae.height="100%",ae.width=f,z?ae.left=Y:ae.right=Y):(K.width=8,K.top=0,K.bottom=0,z?K.right=0:K.left=0,ae.width="100%",ae.height=f,ae.top=Y),s.createElement("div",{ref:_,className:ne(q,(n={},A(n,"".concat(q,"-horizontal"),d),A(n,"".concat(q,"-vertical"),!d),A(n,"".concat(q,"-visible"),T),n)),style:V(V({},K),v),onMouseDown:W,onMouseMove:j},s.createElement("div",{ref:N,className:ne("".concat(q,"-thumb"),A({},"".concat(q,"-thumb-moving"),b)),style:V(V({},ae),h),onMouseDown:oe}))});process.env.NODE_ENV!=="production"&&(_l.displayName="ScrollBar");function TC(e){var t=e.children,n=e.setRef,r=s.useCallback(function(o){n(o)},[]);return s.cloneElement(t,{ref:r})}function _C(e,t,n,r,o,i,a){var l=a.getKey;return e.slice(t,n+1).map(function(c,u){var d=t+u,f=i(c,d,{style:{width:r}}),m=l(c);return s.createElement(TC,{key:m,setRef:function(h){return o(c,h)}},f)})}var AC=function(){function e(){Xt(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Yt(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function DC(e,t,n){var r=s.useState(0),o=X(r,2),i=o[0],a=o[1],l=O.useRef(new Map),c=O.useRef(new AC),u=O.useRef();function d(){gt.cancel(u.current)}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){l.current.forEach(function(g,b){if(g&&g.offsetParent){var y=fo(g),S=y.offsetHeight;c.current.get(b)!==S&&c.current.set(b,y.offsetHeight)}}),a(function(g){return g+1})};v?h():u.current=gt(h)}function m(v,h){var p=e(v),g=l.current.get(p);h?(l.current.set(p,h),f()):l.current.delete(p),!g!=!h&&(h?t==null||t(v):n==null||n(v))}return O.useEffect(function(){return d},[]),[m,f,c.current,i]}var hu=10;function zC(e,t,n,r,o,i,a,l){var c=s.useRef(),u=s.useState(null),d=X(u,2),f=d[0],m=d[1];return St(function(){if(f&&f.times<hu){if(!e.current){m(function(j){return V({},j)});return}i();var v=f.targetAlign,h=f.originAlign,p=f.index,g=f.offset,b=e.current.clientHeight,y=!1,S=v,x=null;if(b){for(var w=v||h,E=0,C=0,$=0,P=Math.min(t.length-1,p),R=0;R<=P;R+=1){var z=o(t[R]);C=E;var _=n.get(z);$=C+(_===void 0?r:_),E=$}for(var N=w==="top"?g:b-g,D=P;D>=0;D-=1){var L=o(t[D]),T=n.get(L);if(T===void 0){y=!0;break}if(N-=T,N<=0)break}switch(w){case"top":x=C-g;break;case"bottom":x=$-b+g;break;default:{var I=e.current.scrollTop,M=I+b;C<I?S="top":$>M&&(S="bottom")}}x!==null&&a(x),x!==f.lastTop&&(y=!0)}y&&m(V(V({},f),{},{times:f.times+1,targetAlign:S,lastTop:x}))}else process.env.NODE_ENV!=="production"&&(f==null?void 0:f.times)===hu&&Ue(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(v){if(v==null){l();return}if(gt.cancel(c.current),typeof v=="number")a(v);else if(v&&Ze(v)==="object"){var h,p=v.align;"index"in v?h=v.index:h=t.findIndex(function(y){return o(y)===v.key});var g=v.offset,b=g===void 0?0:g;m({times:0,index:h,offset:b,originAlign:p})}}}function LC(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var l={__EMPTY_ITEM__:!0};function c(h){return h!==void 0?n(h):l}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var m=c(i[f]),v=c(a[f]);if(m!==v){u=f,d=d||m!==c(a[f+1]);break}}return u===null?null:{index:u,multiple:d}}function FC(e,t,n){var r=s.useState(e),o=X(r,2),i=o[0],a=o[1],l=s.useState(null),c=X(l,2),u=c[0],d=c[1];return s.useEffect(function(){var f=LC(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&(n==null||n(f.index),d(e[f.index])),a(e)},[e]),[u]}var bu=(typeof navigator>"u"?"undefined":Ze(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const nm=function(e,t){var n=O.useRef(!1),r=O.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=O.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=a<0&&i.current.top||a>0&&i.current.bottom;return l&&c?(clearTimeout(r.current),n.current=!1):(!c||n.current)&&o(),!n.current&&c}};function jC(e,t,n,r,o){var i=O.useRef(0),a=O.useRef(null),l=O.useRef(null),c=O.useRef(!1),u=nm(t,n);function d(g,b){gt.cancel(a.current),i.current+=b,l.current=b,!u(b)&&(bu||g.preventDefault(),a.current=gt(function(){var y=c.current?10:1;o(i.current*y),i.current=0}))}function f(g,b){o(b,!0),bu||g.preventDefault()}var m=O.useRef(null),v=O.useRef(null);function h(g){if(e){gt.cancel(v.current),v.current=gt(function(){m.current=null},2);var b=g.deltaX,y=g.deltaY,S=g.shiftKey,x=b,w=y;(m.current==="sx"||!m.current&&S&&y&&!b)&&(x=y,w=0,m.current="sx");var E=Math.abs(x),C=Math.abs(w);m.current===null&&(m.current=r&&E>C?"x":"y"),m.current==="y"?d(g,w):f(g,x)}}function p(g){e&&(c.current=g.detail===l.current)}return[h,p]}var BC=14/15;function HC(e,t,n){var r=O.useRef(!1),o=O.useRef(0),i=O.useRef(null),a=O.useRef(null),l,c=function(m){if(r.current){var v=Math.ceil(m.touches[0].pageY),h=o.current-v;o.current=v,n(h)&&m.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){h*=BC,(!n(h,!0)||Math.abs(h)<=.1)&&clearInterval(a.current)},16)}},u=function(){r.current=!1,l()},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),i.current=m.target,i.current.addEventListener("touchmove",c),i.current.addEventListener("touchend",u))};l=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",u))},St(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(a.current)}},[e])}var VC=20;function yu(){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*100;return isNaN(n)&&(n=0),n=Math.max(n,VC),n=Math.min(n,e/2),Math.floor(n)}function kC(e,t,n,r){var o=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=X(o,2),a=i[0],l=i[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=a.get(d),v=a.get(f);if(m===void 0||v===void 0)for(var h=e.length,p=l.length;p<h;p+=1){var g,b=e[p],y=t(b);a.set(y,p);var S=(g=n.get(y))!==null&&g!==void 0?g:r;if(l[p]=(l[p-1]||0)+S,y===d&&(m=p),y===f&&(v=p),m!==void 0&&v!==void 0)break}return{top:l[m-1]||0,bottom:l[v]}};return c}var WC=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],KC=[],UC={overflowY:"auto",overflowAnchor:"none"};function GC(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,m=e.itemKey,v=e.virtual,h=e.direction,p=e.scrollWidth,g=e.component,b=g===void 0?"div":g,y=e.onScroll,S=e.onVirtualScroll,x=e.onVisibleChange,w=e.innerProps,E=e.extraRender,C=e.styles,$=et(e,WC),P=!!(v!==!1&&i&&a),R=P&&d&&(a*d.length>i||!!p),z=h==="rtl",_=ne(r,A({},"".concat(r,"-rtl"),z),o),N=d||KC,D=O.useRef(),L=O.useRef(),T=O.useState(0),I=X(T,2),M=I[0],j=I[1],F=O.useState(0),B=X(F,2),H=B[0],Y=B[1],W=O.useState(!1),k=X(W,2),oe=k[0],ie=k[1],Z=function(){ie(!0)},q=function(){ie(!1)},K=s.useCallback(function(Oe){return typeof m=="function"?m(Oe):Oe==null?void 0:Oe[m]},[m]),ae={getKey:K};function re(Oe){j(function(xe){var Ae;typeof Oe=="function"?Ae=Oe(xe):Ae=Oe;var mt=bt(Ae);return D.current.scrollTop=mt,mt})}var ee=O.useRef({start:0,end:N.length}),U=O.useRef(),ve=FC(N,K),te=X(ve,1),ue=te[0];U.current=ue;var se=DC(K,null,null),le=X(se,4),Q=le[0],ge=le[1],fe=le[2],Se=le[3],Le=s.useMemo(function(){if(!P)return{scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!R){var Oe;return{scrollHeight:((Oe=L.current)===null||Oe===void 0?void 0:Oe.offsetHeight)||0,start:0,end:N.length-1,offset:void 0}}for(var xe=0,Ae,mt,yt,Pt=N.length,Zt=0;Zt<Pt;Zt+=1){var In=N[Zt],hn=K(In),Dt=fe.get(hn),Vt=xe+(Dt===void 0?a:Dt);Vt>=M&&Ae===void 0&&(Ae=Zt,mt=xe),Vt>M+i&&yt===void 0&&(yt=Zt),xe=Vt}return Ae===void 0&&(Ae=0,mt=0,yt=Math.ceil(i/a)),yt===void 0&&(yt=N.length-1),yt=Math.min(yt+1,N.length-1),{scrollHeight:xe,start:Ae,end:yt,offset:mt}},[R,P,M,N,Se,i]),De=Le.scrollHeight,Ce=Le.start,ot=Le.end,Ie=Le.offset;ee.current.start=Ce,ee.current.end=ot;var Te=s.useState({width:0,height:i}),Re=X(Te,2),he=Re[0],Ye=Re[1],Be=function(xe){Ye({width:xe.width||xe.offsetWidth,height:xe.height||xe.offsetHeight})},ht=O.useRef(),rt=O.useRef(),Ke=s.useMemo(function(){return yu(he.width,p)},[he.width,p]),He=s.useMemo(function(){return yu(he.height,De)},[he.height,De]),it=De-i,Qe=O.useRef(it);Qe.current=it;function bt(Oe){var xe=Oe;return Number.isNaN(Qe.current)||(xe=Math.min(xe,Qe.current)),xe=Math.max(xe,0),xe}var Ct=M<=0,Ve=M>=it,ke=nm(Ct,Ve),Ge=function(){return{x:z?-H:H,y:M}},$e=O.useRef(Ge()),qe=kt(function(){if(S){var Oe=Ge();($e.current.x!==Oe.x||$e.current.y!==Oe.y)&&(S(Oe),$e.current=Oe)}});function ye(Oe,xe){var Ae=Oe;xe?(lr.flushSync(function(){Y(Ae)}),qe()):re(Ae)}function J(Oe){var xe=Oe.currentTarget.scrollTop;xe!==M&&re(xe),y==null||y(Oe),qe()}var G=function(xe){var Ae=xe,mt=p-he.width;return Ae=Math.max(Ae,0),Ae=Math.min(Ae,mt),Ae},de=kt(function(Oe,xe){xe?(lr.flushSync(function(){Y(function(Ae){var mt=Ae+(z?-Oe:Oe);return G(mt)})}),qe()):re(function(Ae){var mt=Ae+Oe;return mt})}),me=jC(P,Ct,Ve,!!p,de),pe=X(me,2),_e=pe[0],ze=pe[1];HC(P,D,function(Oe,xe){return ke(Oe,xe)?!1:(_e({preventDefault:function(){},deltaY:Oe}),!0)}),St(function(){function Oe(Ae){P&&Ae.preventDefault()}var xe=D.current;return xe.addEventListener("wheel",_e),xe.addEventListener("DOMMouseScroll",ze),xe.addEventListener("MozMousePixelScroll",Oe),function(){xe.removeEventListener("wheel",_e),xe.removeEventListener("DOMMouseScroll",ze),xe.removeEventListener("MozMousePixelScroll",Oe)}},[P]),St(function(){p&&Y(function(Oe){return G(Oe)})},[he.width,p]);var at=function(){var xe,Ae;(xe=ht.current)===null||xe===void 0||xe.delayHidden(),(Ae=rt.current)===null||Ae===void 0||Ae.delayHidden()},tt=zC(D,N,fe,a,K,function(){return ge(!0)},re,at);s.useImperativeHandle(t,function(){return{getScrollInfo:Ge,scrollTo:function(xe){function Ae(mt){return mt&&Ze(mt)==="object"&&("left"in mt||"top"in mt)}Ae(xe)?(xe.left!==void 0&&Y(G(xe.left)),tt(xe.top)):tt(xe)}}}),St(function(){if(x){var Oe=N.slice(Ce,ot+1);x(Oe,N)}},[Ce,ot,N]);var wt=kC(N,K,fe,a),Je=E==null?void 0:E({start:Ce,end:ot,virtual:R,offsetX:H,offsetY:Ie,rtl:z,getSize:wt}),ft=_C(N,Ce,ot,p,Q,f,ae),xt=null;i&&(xt=V(A({},c?"height":"maxHeight",i),UC),P&&(xt.overflowY="hidden",p&&(xt.overflowX="hidden"),oe&&(xt.pointerEvents="none")));var Gt={};return z&&(Gt.dir="rtl"),s.createElement("div",Me({style:V(V({},u),{},{position:"relative"}),className:_},Gt,$),s.createElement(Hn,{onResize:Be},s.createElement(b,{className:"".concat(r,"-holder"),style:xt,ref:D,onScroll:J,onMouseEnter:at},s.createElement(tm,{prefixCls:r,height:De,offsetX:H,offsetY:Ie,scrollWidth:p,onInnerResize:ge,ref:L,innerProps:w,rtl:z,extra:Je},ft))),R&&De>i&&s.createElement(_l,{ref:ht,prefixCls:r,scrollOffset:M,scrollRange:De,rtl:z,onScroll:ye,onStartMove:Z,onStopMove:q,spinSize:He,containerSize:he.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb}),R&&p&&s.createElement(_l,{ref:rt,prefixCls:r,scrollOffset:H,scrollRange:p,rtl:z,onScroll:ye,onStartMove:Z,onStopMove:q,spinSize:Ke,containerSize:he.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb}))}var rm=s.forwardRef(GC);rm.displayName="List";var om=s.createContext(null);function qC(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var XC=["disabled","title","children","style","className"];function Su(e){return typeof e=="string"||typeof e=="number"}var YC=function(t,n){var r=kS(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,v=s.useContext(om),h=v.flattenOptions,p=v.onActiveValue,g=v.defaultActiveFirstOption,b=v.onSelect,y=v.menuItemSelectedIcon,S=v.rawValues,x=v.fieldNames,w=v.virtual,E=v.direction,C=v.listHeight,$=v.listItemHeight,P=v.optionRender,R="".concat(o,"-item"),z=Ro(function(){return h},[a,h],function(Z,q){return q[0]&&Z[1]!==q[1]}),_=s.useRef(null),N=function(q){q.preventDefault()},D=function(q){_.current&&_.current.scrollTo(typeof q=="number"?{index:q}:q)},L=function(q){for(var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ae=z.length,re=0;re<ae;re+=1){var ee=(q+re*K+ae)%ae,U=z[ee],ve=U.group,te=U.data;if(!ve&&!te.disabled)return ee}return-1},T=s.useState(function(){return L(0)}),I=X(T,2),M=I[0],j=I[1],F=function(q){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;j(q);var ae={source:K?"keyboard":"mouse"},re=z[q];if(!re){p(null,-1,ae);return}p(re.value,q,ae)};O.useEffect(function(){F(g!==!1?L(0):-1)},[z.length,u]);var B=s.useCallback(function(Z){return S.has(Z)&&c!=="combobox"},[c,be(S).toString(),S.size]);O.useEffect(function(){var Z=setTimeout(function(){if(!l&&a&&S.size===1){var K=Array.from(S)[0],ae=z.findIndex(function(re){var ee=re.data;return ee.value===K});ae!==-1&&(F(ae),D(ae))}});if(a){var q;(q=_.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[a,u]);var H=function(q){q!==void 0&&b(q,{selected:!S.has(q)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(q){var K=q.which,ae=q.ctrlKey;switch(K){case ce.N:case ce.P:case ce.UP:case ce.DOWN:{var re=0;if(K===ce.UP?re=-1:K===ce.DOWN?re=1:qC()&&ae&&(K===ce.N?re=1:K===ce.P&&(re=-1)),re!==0){var ee=L(M+re,re);D(ee),F(ee,!0)}break}case ce.ENTER:{var U=z[M];U&&!U.data.disabled?H(U.value):H(void 0),a&&q.preventDefault();break}case ce.ESC:d(!1),a&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){D(q)}}}),z.length===0)return s.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(R,"-empty"),onMouseDown:N},f);var Y=Object.keys(x).map(function(Z){return x[Z]}),W=function(q){return q.label};function k(Z,q){var K=Z.group;return{role:K?"presentation":"option",id:"".concat(i,"_list_").concat(q)}}var oe=function(q){var K=z[q];if(!K)return null;var ae=K.data||{},re=ae.value,ee=K.group,U=xo(ae,!0),ve=W(K);return K?s.createElement("div",Me({"aria-label":typeof ve=="string"&&!ee?ve:null},U,{key:q},k(K,q),{"aria-selected":B(re)}),re):null},ie={role:"listbox",id:"".concat(i,"_list")};return s.createElement(s.Fragment,null,w&&s.createElement("div",Me({},ie,{style:{height:0,width:0,overflow:"hidden"}}),oe(M-1),oe(M),oe(M+1)),s.createElement(rm,{itemKey:"key",ref:_,data:z,height:C,itemHeight:$,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:w,direction:E,innerProps:w?null:ie},function(Z,q){var K,ae=Z.group,re=Z.groupOption,ee=Z.data,U=Z.label,ve=Z.value,te=ee.key;if(ae){var ue,se=(ue=ee.title)!==null&&ue!==void 0?ue:Su(U)?U.toString():void 0;return s.createElement("div",{className:ne(R,"".concat(R,"-group")),title:se},U!==void 0?U:te)}var le=ee.disabled,Q=ee.title;ee.children;var ge=ee.style,fe=ee.className,Se=et(ee,XC),Le=Qt(Se,Y),De=B(ve),Ce="".concat(R,"-option"),ot=ne(R,Ce,fe,(K={},A(K,"".concat(Ce,"-grouped"),re),A(K,"".concat(Ce,"-active"),M===q&&!le),A(K,"".concat(Ce,"-disabled"),le),A(K,"".concat(Ce,"-selected"),De),K)),Ie=W(Z),Te=!y||typeof y=="function"||De,Re=typeof Ie=="number"?Ie:Ie||ve,he=Su(Re)?Re.toString():void 0;return Q!==void 0&&(he=Q),s.createElement("div",Me({},xo(Le),w?{}:k(Z,q),{"aria-selected":De,className:ot,title:he,onMouseMove:function(){M===q||le||F(q)},onClick:function(){le||H(ve)},style:ge}),s.createElement("div",{className:"".concat(Ce,"-content")},typeof P=="function"?P(Z,{index:q}):Re),s.isValidElement(y)||De,Te&&s.createElement(Gi,{className:"".concat(R,"-option-state"),customizeIcon:y,customizeIconProps:{value:ve,disabled:le,isSelected:De}},De?"✓":null))}))},im=s.forwardRef(YC);im.displayName="OptionList";const QC=function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var i=n.current,a=i.values,l=i.options,c=e.map(function(f){if(f.label===void 0){var m;return V(V({},f),{},{label:(m=a.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)||l.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=s.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function Na(e,t){return ws(e).join("").toUpperCase().includes(t)}const ZC=function(e,t,n,r,o){return s.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(v,h){return o?Na(h[o],d):h[i]?Na(h[a!=="children"?a:"label"],d):Na(h[l],d)},m=u?function(v){return Tl(v)}:function(v){return v};return e.forEach(function(v){if(v[i]){var h=f(n,m(v));if(h)c.push(v);else{var p=v[i].filter(function(g){return f(n,m(g))});p.length&&c.push(V(V({},v),{},A({},i,p)))}return}f(n,m(v))&&c.push(v)}),c},[e,r,o,n,t])};var Cu=0,JC=process.env.NODE_ENV!=="test"&&Ht();function e1(){var e;return JC?(e=Cu,Cu+=1):e="TEST_OR_SSR",e}function t1(e){var t=s.useState(),n=X(t,2),r=n[0],o=n[1];return s.useEffect(function(){o("rc_select_".concat(e1()))},[]),e||r}var n1=["children","value"],r1=["children"];function o1(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=et(r,n1);return V({key:n,value:i!==void 0?i:n,children:o},a)}function Os(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return En(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,u=et(l,r1);return t||!i?o1(n):V(V({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:Os(c)})}).filter(function(n){return n})}function i1(e,t,n,r,o){return s.useMemo(function(){var i=e,a=!e;a&&(i=Os(t));var l=new Map,c=new Map,u=function(m,v,h){h&&typeof h=="string"&&m.set(v[h],v)};function d(f){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<f.length;v+=1){var h=f[v];!h[n.options]||m?(l.set(h[n.value],h),u(c,h,n.label),u(c,h,r),u(c,h,o)):d(h[n.options],!0)}}return d(i),{options:i,valueOptions:l,labelOptions:c}},[e,t,n,r,o])}function xu(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function a1(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,l=e.getInputElement,c=e.showSearch,u=e.onSearch,d=e.defaultOpen,f=e.autoFocus,m=e.labelInValue,v=e.value,h=e.inputValue,p=e.optionLabelProp,g=Oi(t),b=c!==void 0?c:g||t==="combobox",y=n||Os(r);if(Ue(t!=="tags"||y.every(function(E){return!E.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var S=y.some(function(E){return E.options?E.options.some(function(C){return typeof("value"in C?C.value:C.key)=="number"}):typeof("value"in E?E.value:E.key)=="number"});Ue(!S,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Ue(t!=="combobox"||!p,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Ue(t==="combobox"||!o,"`backfill` only works with `combobox` mode."),Ue(t==="combobox"||!l,"`getInputElement` only work with `combobox` mode."),Ha(t!=="combobox"||!l||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&t!=="combobox"&&t!=="tags"&&Ue(!1,"`onSearch` should work with `showSearch` instead of use alone."),Ha(!d||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),v!=null){var x=ws(v);Ue(!m||x.every(function(E){return Ze(E)==="object"&&("key"in E||"value"in E)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Ue(!g||Array.isArray(v),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var w=null;En(r).some(function(E){if(!s.isValidElement(E)||!E.type)return!1;var C=E,$=C.type;if($.isSelectOption)return!1;if($.isSelectOptGroup){var P=En(E.props.children).every(function(R){return!s.isValidElement(R)||!E.type||R.type.isSelectOption?!0:(w=R.type,!1)});return!P}return w=$,!0}),w&&Ue(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(w.displayName||w.name||w,"`.")),Ue(h===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function l1(e,t){if(e){var n=function r(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;a<o.length;a++){var l=o[a];if(l[t==null?void 0:t.value]===null)return Ue(!1,"`value` in Select options should not be `null`."),!0;if(!i&&Array.isArray(l[t==null?void 0:t.options])&&r(l[t==null?void 0:t.options],!0))break}};n(e)}}var s1=["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","value","defaultValue","labelInValue","onChange"],c1=["inputValue"];function u1(e){return!e||Ze(e)!=="object"}var am=s.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,v=e.onSelect,h=e.onDeselect,p=e.dropdownMatchSelectWidth,g=p===void 0?!0:p,b=e.filterOption,y=e.filterSort,S=e.optionFilterProp,x=e.optionLabelProp,w=e.options,E=e.optionRender,C=e.children,$=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,R=e.virtual,z=e.direction,_=e.listHeight,N=_===void 0?200:_,D=e.listItemHeight,L=D===void 0?20:D,T=e.value,I=e.defaultValue,M=e.labelInValue,j=e.onChange,F=et(e,s1),B=t1(n),H=Oi(r),Y=!!(!w&&C),W=s.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),k=s.useMemo(function(){return Jf(l,Y)},[JSON.stringify(l),Y]),oe=Wt("",{value:u!==void 0?u:c,postState:function(de){return de||""}}),ie=X(oe,2),Z=ie[0],q=ie[1],K=i1(w,C,k,S,x),ae=K.valueOptions,re=K.labelOptions,ee=K.options,U=s.useCallback(function(G){var de=ws(G);return de.map(function(me){var pe,_e,ze,at,tt;if(u1(me))pe=me;else{var wt;ze=me.key,_e=me.label,pe=(wt=me.value)!==null&&wt!==void 0?wt:ze}var Je=ae.get(pe);if(Je){var ft;if(_e===void 0&&(_e=Je==null?void 0:Je[x||k.label]),ze===void 0&&(ze=(ft=Je==null?void 0:Je.key)!==null&&ft!==void 0?ft:pe),at=Je==null?void 0:Je.disabled,tt=Je==null?void 0:Je.title,process.env.NODE_ENV!=="production"&&!x){var xt=Je==null?void 0:Je[k.label];xt!==void 0&&!s.isValidElement(xt)&&!s.isValidElement(_e)&&xt!==_e&&Ue(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:_e,value:pe,key:ze,disabled:at,title:tt}})},[k,x,ae]),ve=Wt(I,{value:T}),te=X(ve,2),ue=te[0],se=te[1],le=s.useMemo(function(){var G,de=U(ue);return r==="combobox"&&lC((G=de[0])===null||G===void 0?void 0:G.value)?[]:de},[ue,U,r]),Q=QC(le,ae),ge=X(Q,2),fe=ge[0],Se=ge[1],Le=s.useMemo(function(){if(!r&&fe.length===1){var G=fe[0];if(G.value===null&&(G.label===null||G.label===void 0))return[]}return fe.map(function(de){var me;return V(V({},de),{},{label:(me=de.label)!==null&&me!==void 0?me:de.value})})},[r,fe]),De=s.useMemo(function(){return new Set(fe.map(function(G){return G.value}))},[fe]);s.useEffect(function(){if(r==="combobox"){var G,de=(G=fe[0])===null||G===void 0?void 0:G.value;q(aC(de)?String(de):"")}},[fe]);var Ce=xu(function(G,de){var me,pe=de??G;return me={},A(me,k.value,G),A(me,k.label,pe),me}),ot=s.useMemo(function(){if(r!=="tags")return ee;var G=be(ee),de=function(pe){return ae.has(pe)};return be(fe).sort(function(me,pe){return me.value<pe.value?-1:1}).forEach(function(me){var pe=me.value;de(pe)||G.push(Ce(pe,me.label))}),G},[Ce,ee,ae,fe,r]),Ie=ZC(ot,k,Z,W,S),Te=s.useMemo(function(){return r!=="tags"||!Z||Ie.some(function(G){return G[S||"value"]===Z})||Ie.some(function(G){return G[k.value]===Z})?Ie:[Ce(Z)].concat(be(Ie))},[Ce,S,r,Ie,Z,k]),Re=s.useMemo(function(){return y?be(Te).sort(function(G,de){return y(G,de)}):Te},[Te,y]),he=s.useMemo(function(){return RC(Re,{fieldNames:k,childrenAsData:Y})},[Re,k,Y]),Ye=function(de){var me=U(de);if(se(me),j&&(me.length!==fe.length||me.some(function(ze,at){var tt;return((tt=fe[at])===null||tt===void 0?void 0:tt.value)!==(ze==null?void 0:ze.value)}))){var pe=M?me:me.map(function(ze){return ze.value}),_e=me.map(function(ze){return Tl(Se(ze.value))});j(H?pe:pe[0],H?_e:_e[0])}},Be=s.useState(null),ht=X(Be,2),rt=ht[0],Ke=ht[1],He=s.useState(0),it=X(He,2),Qe=it[0],bt=it[1],Ct=$!==void 0?$:r!=="combobox",Ve=s.useCallback(function(G,de){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pe=me.source,_e=pe===void 0?"keyboard":pe;bt(de),a&&r==="combobox"&&G!==null&&_e==="keyboard"&&Ke(String(G))},[a,r]),ke=function(de,me,pe){var _e=function(){var xe,Ae=Se(de);return[M?{label:Ae==null?void 0:Ae[k.label],value:de,key:(xe=Ae==null?void 0:Ae.key)!==null&&xe!==void 0?xe:de}:de,Tl(Ae)]};if(me&&v){var ze=_e(),at=X(ze,2),tt=at[0],wt=at[1];v(tt,wt)}else if(!me&&h&&pe!=="clear"){var Je=_e(),ft=X(Je,2),xt=ft[0],Gt=ft[1];h(xt,Gt)}},Ge=xu(function(G,de){var me,pe=H?de.selected:!0;pe?me=H?[].concat(be(fe),[G]):[G]:me=fe.filter(function(_e){return _e.value!==G}),Ye(me),ke(G,pe),r==="combobox"?Ke(""):(!Oi||m)&&(q(""),Ke(""))}),$e=function(de,me){Ye(de);var pe=me.type,_e=me.values;(pe==="remove"||pe==="clear")&&_e.forEach(function(ze){ke(ze.value,!1,pe)})},qe=function(de,me){if(q(de),Ke(null),me.source==="submit"){var pe=(de||"").trim();if(pe){var _e=Array.from(new Set([].concat(be(De),[pe])));Ye(_e),ke(pe,!0),q("")}return}me.source!=="blur"&&(r==="combobox"&&Ye(de),d==null||d(de))},ye=function(de){var me=de;r!=="tags"&&(me=de.map(function(_e){var ze=re.get(_e);return ze==null?void 0:ze.value}).filter(function(_e){return _e!==void 0}));var pe=Array.from(new Set([].concat(be(De),be(me))));Ye(pe),pe.forEach(function(_e){ke(_e,!0)})},J=s.useMemo(function(){var G=R!==!1&&g!==!1;return V(V({},K),{},{flattenOptions:he,onActiveValue:Ve,defaultActiveFirstOption:Ct,onSelect:Ge,menuItemSelectedIcon:P,rawValues:De,fieldNames:k,virtual:G,direction:z,listHeight:N,listItemHeight:L,childrenAsData:Y,optionRender:E})},[K,he,Ve,Ct,Ge,P,De,k,R,g,N,L,Y,E]);return process.env.NODE_ENV!=="production"&&(a1(e),l1(ee,k)),s.createElement(om.Provider,{value:J},s.createElement(em,Me({},F,{id:B,prefixCls:i,ref:t,omitDomProps:c1,mode:r,displayValues:Le,onDisplayValuesChange:$e,direction:z,searchValue:Z,onSearch:qe,autoClearSearchValue:m,onSearchSplit:ye,dropdownMatchSelectWidth:g,OptionList:im,emptyOptions:!he.length,activeValue:rt,activeDescendantId:"".concat(B,"_list_").concat(Qe)})))});process.env.NODE_ENV!=="production"&&(am.displayName="Select");var Is=am;Is.Option=$s;Is.OptGroup=Es;function ar(e,t,n){return ne({[`${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 Xi=(e,t)=>t||e,lm=()=>{const[,e]=On(),n=new _t(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.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"}),s.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)"}),s.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"}),s.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"})),s.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"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(lm.displayName="EmptyImage");const d1=lm,sm=()=>{const[,e]=On(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=O.useMemo(()=>({borderColor:new _t(t).onBackground(o).toHexShortString(),shadowColor:new _t(n).onBackground(o).toHexShortString(),contentColor:new _t(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:i},s.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"}),s.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:l}))))};process.env.NODE_ENV!=="production"&&(sm.displayName="SimpleImage");const f1=sm,m1=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,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.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},v1=sn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=dt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[m1(r)]});var g1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cm=s.createElement(d1,null),um=s.createElement(f1,null),Yi=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=cm,description:i,children:a,imageStyle:l,style:c}=e,u=g1(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=s.useContext(ut),v=d("empty",r),[h,p]=v1(v),[g]=Fi("Empty"),b=typeof i<"u"?i:g==null?void 0:g.description,y=typeof b=="string"?b:"empty";let S=null;return typeof o=="string"?S=s.createElement("img",{alt:y,src:o}):S=o,h(s.createElement("div",Object.assign({className:ne(p,v,m==null?void 0:m.className,{[`${v}-normal`]:o===um,[`${v}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),s.createElement("div",{className:`${v}-image`,style:l},S),b&&s.createElement("div",{className:`${v}-description`},b),a&&s.createElement("div",{className:`${v}-footer`},a)))};Yi.PRESENTED_IMAGE_DEFAULT=cm;Yi.PRESENTED_IMAGE_SIMPLE=um;process.env.NODE_ENV!=="production"&&(Yi.displayName="Empty");const oo=Yi,p1=e=>{const{componentName:t}=e,{getPrefixCls:n}=O.useContext(ut),r=n("empty");switch(t){case"Table":case"List":return O.createElement(oo,{image:oo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return O.createElement(oo,{image:oo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return O.createElement(oo,null)}},dm=p1,h1=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"}},b1=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`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},an(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,[`
170
+ ${o}${l}bottomLeft,
171
+ ${i}${l}bottomLeft
172
+ `]:{animationName:hs},[`
173
+ ${o}${l}topLeft,
174
+ ${i}${l}topLeft,
175
+ ${o}${l}topRight,
176
+ ${i}${l}topRight
177
+ `]:{animationName:ys},[`${a}${l}bottomLeft`]:{animationName:bs},[`
178
+ ${a}${l}topLeft,
179
+ ${a}${l}topRight
180
+ `]:{animationName:Ss},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},h1(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"},kr),"&-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.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Kr(e,"slide-up"),Kr(e,"slide-down"),Ei(e,"move-up"),Ei(e,"move-down")]},y1=b1,Or=2,fm=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return[o,i]};function Ma(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,[a]=fm(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${a-Or}px ${Or*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Or}px 0`,lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`
181
+ &${n}-show-arrow ${n}-selector,
182
+ &${n}-allow-clear ${n}-selector
183
+ `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Or,marginBottom:Or,lineHeight:`${i-e.lineWidth*2}px`,background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:Or*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Po()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,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.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const S1=e=>{const{componentCls:t}=e,n=dt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=dt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=fm(e);return[Ma(e),Ma(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},Ma(r,"lg")]},C1=S1;function Ta(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},an(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
184
+ ${n}-selection-item,
185
+ ${n}-selection-placeholder
186
+ `]:{padding:0,lineHeight:`${i}px`,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"'}}),[`
187
+ &${n}-show-arrow ${n}-selection-item,
188
+ &${n}-show-arrow ${n}-selection-placeholder
189
+ `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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 ${r}px`,"&:after":{display:"none"}}}}}}}function x1(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Ta(e),Ta(dt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[`
190
+ &${t}-show-arrow ${t}-selection-item,
191
+ &${t}-show-arrow ${t}-selection-placeholder
192
+ `]:{paddingInlineEnd:e.fontSize*1.5}}}},Ta(dt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const w1=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},_a=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:i,borderActiveColor:a,outlineColor:l,controlOutlineWidth:c}=t,u=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},u),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${c}px ${l}`,outline:0}})}}},E1=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","-webkit-appearance":"none"}}}},$1=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},w1(e)),E1(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},kr),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},kr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Po()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[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}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},O1=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},$1(e),x1(e),C1(e),y1(e),{[`${t}-rtl`]:{direction:"rtl"}},_a(t,dt(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),_a(`${t}-status-error`,dt(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),_a(`${t}-status-warning`,dt(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),fs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},I1=sn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=dt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[O1(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:c,controlItemBgHover:u,colorBgContainer:d,colorFillSecondary:f,controlHeightLG:m,controlHeightSM:v,colorBgContainerDisabled:h,colorTextDisabled:p}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:c,optionActiveBg:u,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:d,clearBg:d,singleItemHeightLG:m,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:v,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:p,multipleItemBorderColorDisabled:"transparent"}}),R1=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 P1(e,t){return e||R1(t)}var N1={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"};const M1=N1;var mm=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:M1}))};process.env.NODE_ENV!=="production"&&(mm.displayName="CheckOutlined");const T1=s.forwardRef(mm);var _1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const A1=_1;var vm=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:A1}))};process.env.NODE_ENV!=="production"&&(vm.displayName="DownOutlined");const gm=s.forwardRef(vm);var D1={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"};const z1=D1;var pm=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:z1}))};process.env.NODE_ENV!=="production"&&(pm.displayName="SearchOutlined");const Rs=s.forwardRef(pm);function L1(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;process.env.NODE_ENV!=="production"&&ln(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const v=n??s.createElement(ls,null),h=y=>t===null&&!l&&!f?null:s.createElement(s.Fragment,null,u!==!1&&y,l&&d);let p=null;if(t!==void 0)p=h(t);else if(i)p=h(s.createElement(bf,{spin:!0}));else{const y=`${c}-suffix`;p=S=>{let{open:x,showSearch:w}=S;return h(x&&w?s.createElement(Rs,{className:y}):s.createElement(gm,{className:y}))}}let g=null;r!==void 0?g=r:a?g=s.createElement(T1,null):g=null;let b=null;return o!==void 0?b=o:b=s.createElement(k0,null),{clearIcon:v,suffixIcon:p,itemIcon:g,removeIcon:b}}function F1(e,t){return t!==void 0?t:e!==null}var j1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hm="SECRET_COMBOBOX_MODE_DO_NOT_USE",bm=(e,t)=>{var n,r,{prefixCls:o,bordered:i=!0,className:a,rootClassName:l,getPopupContainer:c,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:m,listItemHeight:v=24,size:h,disabled:p,notFoundContent:g,status:b,builtinPlacements:y,dropdownMatchSelectWidth:S,popupMatchSelectWidth:x,direction:w,style:E,allowClear:C}=e,$=j1(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:P,getPrefixCls:R,renderEmpty:z,direction:_,virtual:N,popupMatchSelectWidth:D,popupOverflow:L,select:T}=s.useContext(ut),I=R("select",o),M=R(),j=w??_,{compactSize:F,compactItemClassnames:B}=Mo(I,j),[H,Y]=I1(I),W=s.useMemo(()=>{const{mode:Ie}=$;if(Ie!=="combobox")return Ie===hm?"combobox":Ie},[$.mode]),k=W==="multiple"||W==="tags",oe=F1($.suffixIcon,$.showArrow),ie=(n=x??S)!==null&&n!==void 0?n:D,{status:Z,hasFeedback:q,isFormItemInput:K,feedbackIcon:ae}=s.useContext(Pn),re=Xi(Z,b);let ee;g!==void 0?ee=g:W==="combobox"?ee=null:ee=(z==null?void 0:z("Select"))||s.createElement(dm,{componentName:"Select"});const{suffixIcon:U,itemIcon:ve,removeIcon:te,clearIcon:ue}=L1(Object.assign(Object.assign({},$),{multiple:k,hasFeedback:q,feedbackIcon:ae,showSuffixIcon:oe,prefixCls:I,showArrow:$.showArrow,componentName:"Select"})),se=C===!0?{clearIcon:ue}:C,le=Qt($,["suffixIcon","itemIcon"]),Q=ne(u||d,{[`${I}-dropdown-${j}`]:j==="rtl"},l,Y),ge=pr(Ie=>{var Te;return(Te=h??F)!==null&&Te!==void 0?Te:Ie}),fe=s.useContext(Xr),Se=p??fe,Le=ne({[`${I}-lg`]:ge==="large",[`${I}-sm`]:ge==="small",[`${I}-rtl`]:j==="rtl",[`${I}-borderless`]:!i,[`${I}-in-form-item`]:K},ar(I,re,q),B,T==null?void 0:T.className,a,l,Y),De=s.useMemo(()=>m!==void 0?m:j==="rtl"?"bottomRight":"bottomLeft",[m,j]),Ce=P1(y,L);if(process.env.NODE_ENV!=="production"){const Ie=ln("Select");Ie.deprecated(!d,"dropdownClassName","popupClassName"),Ie.deprecated(S===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Ie(!("showArrow"in $),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null.")}const[ot]=Ui("SelectLike",(r=$.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return H(s.createElement(Is,Object.assign({ref:t,virtual:N,showSearch:T==null?void 0:T.showSearch},le,{style:Object.assign(Object.assign({},T==null?void 0:T.style),E),dropdownMatchSelectWidth:ie,builtinPlacements:Ce,transitionName:yf(M,"slide-up",$.transitionName),listHeight:f,listItemHeight:v,mode:W,prefixCls:I,placement:De,direction:j,suffixIcon:U,menuItemSelectedIcon:ve,removeIcon:te,allowClear:se,notFoundContent:ee,className:Le,getPopupContainer:c||P,dropdownClassName:Q,disabled:Se,dropdownStyle:Object.assign(Object.assign({},$==null?void 0:$.dropdownStyle),{zIndex:ot})})))};process.env.NODE_ENV!=="production"&&(bm.displayName="Select");const hr=s.forwardRef(bm),B1=jf(hr);hr.SECRET_COMBOBOX_MODE_DO_NOT_USE=hm;hr.Option=$s;hr.OptGroup=Es;hr._InternalPanelDoNotUseOrYouWillBeFired=B1;process.env.NODE_ENV!=="production"&&(hr.displayName="Select");const Qi=hr,H1=["xxl","xl","lg","md","sm","xs"],V1=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)`}),k1=e=>{const t=e,n=[].concat(H1).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const c=`screen${i}Max`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${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};function W1(){const[,e]=On(),t=V1(k1(e));return O.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(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()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}))},c=window.matchMedia(a);c.addListener(l),this.matchHandlers[a]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}function K1(){const[,e]=s.useReducer(t=>t+1,0);return e}function U1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=O.useRef({}),n=K1(),r=W1();return St(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}function ym(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return s.createElement("div",{className:ne("".concat(n,"-content"),i),style:a},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Ir={shiftX:64,adjustY:1},Rr={adjustX:1,shiftY:!0},vn=[0,0],G1={left:{points:["cr","cl"],overflow:Rr,offset:[-4,0],targetOffset:vn},right:{points:["cl","cr"],overflow:Rr,offset:[4,0],targetOffset:vn},top:{points:["bc","tc"],overflow:Ir,offset:[0,-4],targetOffset:vn},bottom:{points:["tc","bc"],overflow:Ir,offset:[0,4],targetOffset:vn},topLeft:{points:["bl","tl"],overflow:Ir,offset:[0,-4],targetOffset:vn},leftTop:{points:["tr","tl"],overflow:Rr,offset:[-4,0],targetOffset:vn},topRight:{points:["br","tr"],overflow:Ir,offset:[0,-4],targetOffset:vn},rightTop:{points:["tl","tr"],overflow:Rr,offset:[4,0],targetOffset:vn},bottomRight:{points:["tr","br"],overflow:Ir,offset:[0,4],targetOffset:vn},rightBottom:{points:["bl","br"],overflow:Rr,offset:[4,0],targetOffset:vn},bottomLeft:{points:["tl","bl"],overflow:Ir,offset:[0,4],targetOffset:vn},leftBottom:{points:["br","bl"],overflow:Rr,offset:[-4,0],targetOffset:vn}},q1=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],X1=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,v=t.children,h=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,b=t.animation,y=t.motion,S=t.placement,x=S===void 0?"right":S,w=t.align,E=w===void 0?{}:w,C=t.destroyTooltipOnHide,$=C===void 0?!1:C,P=t.defaultVisible,R=t.getTooltipContainer,z=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,N=t.id,D=t.showArrow,L=D===void 0?!0:D,T=et(t,q1),I=O.useRef(null);O.useImperativeHandle(n,function(){return I.current});var M=V({},T);"visible"in t&&(M.popupVisible=t.visible);var j=function(){return s.createElement(ym,{key:"content",prefixCls:m,id:N,overlayInnerStyle:z},_)};return s.createElement(qi,Me({popupClassName:r,prefixCls:m,popup:j,action:i,builtinPlacements:G1,popupPlacement:x,ref:I,popupAlign:E,getPopupContainer:R,onPopupVisibleChange:h,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:b,popupMotion:y,defaultPopupVisible:P,autoDestroy:$,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:L},M),v)};const Y1=O.forwardRef(X1),Sm=8;function Ps(e){const t=Sm,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function ri(e,t){return e?t:{}}function Cm(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:u,arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:v}=Ps({contentRadius:c,limitVerticalRadius:u});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},$h(r,o,i,l,a)),{"&:before":{background:l}})]},ri(!!f.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),ri(!!f.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),ri(!!f.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),ri(!!f.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function Q1(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const wu={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"]}},Z1={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"]}},J1=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function xm(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(wu).forEach(u=>{const d=r&&Z1[u]||wu[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,J1.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=Ps({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":f.offset[0]=m.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.dropdownArrowOffset+l;break}f.overflow=Q1(u,m,t,n),a&&(f.htmlRegion="visibleFirst")}),c}const ex=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,tooltipRadiusOuter:f}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${u/2}px ${d}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,Sm)}},[`${t}-content`]:{position:"relative"}}),Th(e,(m,v)=>{let{darkColor:h}=v;return{[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},Cm(dt(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},wm=(e,t)=>sn("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,c=dt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[ex(c),Cs(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),tx=bi.map(e=>`${e}-inverse`);function nx(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(be(tx),be(bi)).includes(e):bi.includes(e)}function Em(e,t){const n=nx(t),r=ne({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const rx=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=s.useContext(ut),c=l("tooltip",t),[u,d]=wm(c,!0),f=Em(c,i),m=f.arrowStyle,v=Object.assign(Object.assign({},a),f.overlayStyle),h=ne(d,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return u(s.createElement("div",{className:h,style:m},s.createElement("div",{className:`${c}-arrow`}),s.createElement(ym,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:v}),o)))},ox=rx;var ix=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ns=s.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:h=!0,title:p,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0}=e,x=!!h,[,w]=On(),{getPopupContainer:E,getPrefixCls:C,direction:$}=s.useContext(ut),P=ln("Tooltip"),R=s.useRef(null),z=()=>{var fe;(fe=R.current)===null||fe===void 0||fe.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:z,forcePopupAlign:()=>{P.deprecated(!1,"forcePopupAlign","forceAlign"),z()}})),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(fe=>{let[Se,Le]=fe;P.deprecated(!(Se in e),Se,Le)}),process.env.NODE_ENV!=="production"&&P(!v||typeof v=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&P(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[_,N]=Wt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=!p&&!g&&p!==0,L=fe=>{var Se,Le;N(D?!1:fe),D||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,fe),(Le=e.onVisibleChange)===null||Le===void 0||Le.call(e,fe))},T=s.useMemo(()=>{var fe,Se;let Le=y;return typeof h=="object"&&(Le=(Se=(fe=h.pointAtCenter)!==null&&fe!==void 0?fe:h.arrowPointAtCenter)!==null&&Se!==void 0?Se:y),b||xm({arrowPointAtCenter:Le,autoAdjustOverflow:S,arrowWidth:x?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[y,h,b,w]),I=s.useMemo(()=>p===0?p:g||p||"",[g,p]),M=s.createElement(Ci,null,typeof I=="function"?I():I),{getPopupContainer:j,placement:F="top",mouseEnterDelay:B=.1,mouseLeaveDelay:H=.1,overlayStyle:Y,rootClassName:W}=e,k=ix(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),oe=C("tooltip",o),ie=C(),Z=e["data-popover-inject"];let q=_;!("open"in e)&&!("visible"in e)&&D&&(q=!1);const K=Fn(d)&&!pf(d)?d:s.createElement("span",null,d),ae=K.props,re=!ae.className||typeof ae.className=="string"?ne(ae.className,i||`${oe}-open`):ae.className,[ee,U]=wm(oe,!Z),ve=Em(oe,c),te=ve.arrowStyle,ue=Object.assign(Object.assign({},u),ve.overlayStyle),se=ne(l,{[`${oe}-rtl`]:$==="rtl"},ve.className,W,U),[le,Q]=Ui("Tooltip",k.zIndex),ge=s.createElement(Y1,Object.assign({},k,{zIndex:Z?k.zIndex:le,showArrow:x,placement:F,mouseEnterDelay:B,mouseLeaveDelay:H,prefixCls:oe,overlayClassName:se,overlayStyle:Object.assign(Object.assign({},te),Y),getTooltipContainer:j||a||E,ref:R,builtinPlacements:T,overlay:M,visible:q,onVisibleChange:L,afterVisibleChange:f??m,overlayInnerStyle:ue,arrowContent:s.createElement("span",{className:`${oe}-arrow-content`}),motion:{motionName:yf(ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),q?jn(K,{className:re}):K);return ee(s.createElement(vs.Provider,{value:Q},ge))});process.env.NODE_ENV!=="production"&&(Ns.displayName="Tooltip");Ns._InternalPanelDoNotUseOrYouWillBeFired=ox;const ax=Ns;var lx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const sx=lx;var $m=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:sx}))};process.env.NODE_ENV!=="production"&&($m.displayName="RightOutlined");const dr=s.forwardRef($m);var cx=ce.ESC,ux=ce.TAB;function dx(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=s.useRef(!1),l=function(){if(t){var 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(),a.current=!0,!0):!1},u=function(f){switch(f.keyCode){case cx:l();break;case ux:{var m=!1;a.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&gt(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var fx=O.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=O.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Nn(t,i==null?void 0:i.ref);return O.createElement(O.Fragment,null,r&&O.createElement("div",{className:"".concat(o,"-arrow")}),O.cloneElement(i,{ref:Xn(i)?a:void 0}))}),Pr={adjustX:1,adjustY:1},Nr=[0,0],mx={topLeft:{points:["bl","tl"],overflow:Pr,offset:[0,-4],targetOffset:Nr},top:{points:["bc","tc"],overflow:Pr,offset:[0,-4],targetOffset:Nr},topRight:{points:["br","tr"],overflow:Pr,offset:[0,-4],targetOffset:Nr},bottomLeft:{points:["tl","bl"],overflow:Pr,offset:[0,4],targetOffset:Nr},bottom:{points:["tc","bc"],overflow:Pr,offset:[0,4],targetOffset:Nr},bottomRight:{points:["tr","br"],overflow:Pr,offset:[0,4],targetOffset:Nr}},vx=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function gx(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,v=m===void 0?mx:m,h=e.getPopupContainer,p=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,x=e.trigger,w=x===void 0?["hover"]:x,E=e.autoFocus,C=e.overlay,$=e.children,P=e.onVisibleChange,R=et(e,vx),z=O.useState(),_=X(z,2),N=_[0],D=_[1],L="visible"in e?S:N,T=O.useRef(null),I=O.useRef(null),M=O.useRef(null);O.useImperativeHandle(t,function(){return T.current});var j=function(Z){D(Z),P==null||P(Z)};dx({visible:L,triggerRef:M,onVisibleChange:j,autoFocus:E,overlayRef:I});var F=function(Z){var q=e.onOverlayClick;D(!1),q&&q(Z)},B=function(){return O.createElement(fx,{ref:I,overlay:C,prefixCls:a,arrow:o})},H=function(){return typeof C=="function"?B:B()},Y=function(){var Z=e.minOverlayWidthMatchTrigger,q=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Z:!q},W=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(a,"-open")},k=O.cloneElement($,{className:ne((n=$.props)===null||n===void 0?void 0:n.className,L&&W()),ref:Xn($)?Nn(M,$.ref):void 0}),oe=g;return!oe&&w.indexOf("contextMenu")!==-1&&(oe=["click"]),O.createElement(qi,Me({builtinPlacements:v},R,{prefixCls:a,ref:T,popupClassName:ne(b,A({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:w,showAction:p,hideAction:oe,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:L,stretch:Y()?"minWidth":"",popup:H(),onPopupVisibleChange:j,onPopupClick:F,getPopupContainer:h}),k)}const px=O.forwardRef(gx);var Om=s.createContext(null);function Ms(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Im(e){var t=s.useContext(Om);return Ms(t,e)}var hx=["children","locked"],$n=s.createContext(null);function bx(e,t){var n=V({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Io(e){var t=e.children,n=e.locked,r=et(e,hx),o=s.useContext($n),i=Ro(function(){return bx(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!_i(a[1],l[1],!0))});return s.createElement($n.Provider,{value:i},t)}var yx=[],Rm=s.createContext(null);function Zi(){return s.useContext(Rm)}var Pm=s.createContext(yx);function Qr(e){var t=s.useContext(Pm);return s.useMemo(function(){return e!==void 0?[].concat(be(t),[e]):t},[t,e])}var Nm=s.createContext(null),Ts=s.createContext({});function Eu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ss(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function Sx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=be(e.querySelectorAll("*")).filter(function(r){return Eu(r,t)});return Eu(e,t)&&n.unshift(e),n}var Al=ce.LEFT,Dl=ce.RIGHT,zl=ce.UP,ui=ce.DOWN,di=ce.ENTER,Mm=ce.ESC,io=ce.HOME,ao=ce.END,$u=[zl,ui,Al,Dl];function Cx(e,t,n,r){var o,i,a,l,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===di)return{inlineTrigger:!0};var m=(o={},A(o,zl,c),A(o,ui,u),o),v=(i={},A(i,Al,n?u:c),A(i,Dl,n?c:u),A(i,ui,d),A(i,di,d),i),h=(a={},A(a,zl,c),A(a,ui,u),A(a,di,d),A(a,Mm,f),A(a,Al,n?d:f),A(a,Dl,n?f:d),a),p={inline:m,horizontal:v,vertical:h,inlineSub:m,horizontalSub:h,verticalSub:h},g=(l=p["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(g){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function xx(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function wx(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Tm(e,t){var n=Sx(e,!0);return n.filter(function(r){return t.has(r)})}function Ou(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Tm(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function Ex(e,t,n,r,o,i,a,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){gt.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(v){var h=v.which;if([].concat($u,[di,Mm,io,ao]).includes(h)){var p,g,b,y=function(){p=new Set,g=new Map,b=new Map;var L=i();return L.forEach(function(T){var I=document.querySelector("[data-menu-id='".concat(Ms(r,T),"']"));I&&(p.add(I),b.set(I,T),g.set(T,I))}),p};y();var S=g.get(t),x=wx(S,p),w=b.get(x),E=Cx(e,a(w,!0).length===1,n,h);if(!E&&h!==io&&h!==ao)return;($u.includes(h)||[io,ao].includes(h))&&v.preventDefault();var C=function(L){if(L){var T=L,I=L.querySelector("a");I!=null&&I.getAttribute("href")&&(T=I);var M=b.get(L);l(M),m(),d.current=gt(function(){f.current===M&&T.focus()})}};if([io,ao].includes(h)||E.sibling||!x){var $;!x||e==="inline"?$=o.current:$=xx(x);var P,R=Tm($,p);h===io?P=R[0]:h===ao?P=R[R.length-1]:P=Ou($,p,x,E.offset),C(P)}else if(E.inlineTrigger)c(w);else if(E.offset>0)c(w,!0),m(),d.current=gt(function(){y();var D=x.getAttribute("aria-controls"),L=document.getElementById(D),T=Ou(L,p);C(T)},5);else if(E.offset<0){var z=a(w,!0),_=z[z.length-2],N=g.get(_);c(_,!1),C(N)}}u==null||u(v)}}function $x(e){Promise.resolve().then(e)}var _s="__RC_UTIL_PATH_SPLIT__",Iu=function(t){return t.join(_s)},Ox=function(t){return t.split(_s)},Ll="rc-menu-more";function Ix(){var e=s.useState({}),t=X(e,2),n=t[1],r=O.useRef(new Map),o=O.useRef(new Map),i=s.useState([]),a=X(i,2),l=a[0],c=a[1],u=O.useRef(0),d=O.useRef(!1),f=function(){d.current||n({})},m=O.useCallback(function(S,x){process.env.NODE_ENV!=="production"&&Ue(!r.current.has(S),"Duplicated key '".concat(S,"' used in Menu by path [").concat(x.join(" > "),"]"));var w=Iu(x);o.current.set(w,S),r.current.set(S,w),u.current+=1;var E=u.current;$x(function(){E===u.current&&f()})},[]),v=O.useCallback(function(S,x){var w=Iu(x);o.current.delete(w),r.current.delete(S)},[]),h=O.useCallback(function(S){c(S)},[]),p=O.useCallback(function(S,x){var w=r.current.get(S)||"",E=Ox(w);return x&&l.includes(E[0])&&E.unshift(Ll),E},[l]),g=O.useCallback(function(S,x){return S.some(function(w){var E=p(w,!0);return E.includes(x)})},[p]),b=function(){var x=be(r.current.keys());return l.length&&x.push(Ll),x},y=O.useCallback(function(S){var x="".concat(r.current.get(S)).concat(_s),w=new Set;return be(o.current.keys()).forEach(function(E){E.startsWith(x)&&w.add(o.current.get(E))}),w},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:h,isSubPathKey:g,getKeyPath:p,getKeys:b,getSubPathKeys:y}}function uo(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var Rx=Math.random().toFixed(5).toString().slice(2),Ru=0;function Px(e){var t=Wt(e,{value:e}),n=X(t,2),r=n[0],o=n[1];return s.useEffect(function(){Ru+=1;var i=process.env.NODE_ENV==="test"?"test":"".concat(Rx,"-").concat(Ru);o("rc-menu-uuid-".concat(i))},[]),r}function _m(e,t,n,r){var o=s.useContext($n),i=o.activeKey,a=o.onActive,l=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),c}function Am(e){var t=s.useContext($n),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 Dm(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=s.createElement(t,V({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Nx=["item"];function Ii(e){var t=e.item,n=et(e,Nx);return Object.defineProperty(n,"item",{get:function(){return Ue(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Mx=["title","attribute","elementRef"],Tx=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_x=["active"],Ax=function(e){fr(n,e);var t=mr(n);function n(){return Xt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,c=et(o,Mx),u=Qt(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ue(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(Rn.Item,Me({},a,{title:typeof i=="string"?i:void 0},u,{ref:l}))}}]),n}(s.Component),Dx=s.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,m=e.onMouseLeave,v=e.onClick,h=e.onKeyDown,p=e.onFocus,g=et(e,Tx),b=Im(i),y=s.useContext($n),S=y.prefixCls,x=y.onItemClick,w=y.disabled,E=y.overflowDisabled,C=y.itemIcon,$=y.selectedKeys,P=y.onActive,R=s.useContext(Ts),z=R._internalRenderMenuItem,_="".concat(S,"-item"),N=s.useRef(),D=s.useRef(),L=w||l,T=Gr(t,D),I=Qr(i);process.env.NODE_ENV!=="production"&&a&&Ue(!1,"MenuItem should not leave undefined `key`.");var M=function(ae){return{key:i,keyPath:be(I).reverse(),item:N.current,domEvent:ae}},j=c||C,F=_m(i,L,f,m),B=F.active,H=et(F,_x),Y=$.includes(i),W=Am(I.length),k=function(ae){if(!L){var re=M(ae);v==null||v(Ii(re)),x(re)}},oe=function(ae){if(h==null||h(ae),ae.which===ce.ENTER){var re=M(ae);v==null||v(Ii(re)),x(re)}},ie=function(ae){P(i),p==null||p(ae)},Z={};e.role==="option"&&(Z["aria-selected"]=Y);var q=s.createElement(Ax,Me({ref:N,elementRef:T,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":E&&b?null:b},g,H,Z,{component:"li","aria-disabled":l,style:V(V({},W),r),className:ne(_,(n={},A(n,"".concat(_,"-active"),B),A(n,"".concat(_,"-selected"),Y),A(n,"".concat(_,"-disabled"),L),n),o),onClick:k,onKeyDown:oe,onFocus:ie}),u,s.createElement(Dm,{props:V(V({},e),{},{isSelected:Y}),icon:j}));return z&&(q=z(q,e,{selected:Y})),q});function zx(e,t){var n=e.eventKey,r=Zi(),o=Qr(n);return s.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:s.createElement(Dx,Me({},e,{ref:t}))}const Ji=s.forwardRef(zx);var Lx=["className","children"],Fx=function(t,n){var r=t.className,o=t.children,i=et(t,Lx),a=s.useContext($n),l=a.prefixCls,c=a.mode,u=a.rtl;return s.createElement("ul",Me({className:ne(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},As=s.forwardRef(Fx);As.displayName="SubMenuList";function Ds(e,t){return En(e).map(function(n,r){if(s.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,c=l==null;c&&(l="tmp_key-".concat([].concat(be(t),[r]).join("-")));var u={key:l,eventKey:l};return process.env.NODE_ENV!=="production"&&c&&(u.warnKey=!0),s.cloneElement(n,u)}return n})}var Bt={adjustX:1,adjustY:1},jx={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},leftTop:{points:["tr","tl"],overflow:Bt},leftBottom:{points:["br","bl"],overflow:Bt},rightTop:{points:["tl","tr"],overflow:Bt},rightBottom:{points:["bl","br"],overflow:Bt}},Bx={topLeft:{points:["bl","tl"],overflow:Bt},topRight:{points:["br","tr"],overflow:Bt},bottomLeft:{points:["tl","bl"],overflow:Bt},bottomRight:{points:["tr","br"],overflow:Bt},rightTop:{points:["tr","tl"],overflow:Bt},rightBottom:{points:["br","bl"],overflow:Bt},leftTop:{points:["tl","tr"],overflow:Bt},leftBottom:{points:["bl","br"],overflow:Bt}};function zm(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Hx={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Vx(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=s.useContext($n),m=f.getPopupContainer,v=f.rtl,h=f.subMenuOpenDelay,p=f.subMenuCloseDelay,g=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,S=f.rootClassName,x=f.motion,w=f.defaultMotions,E=s.useState(!1),C=X(E,2),$=C[0],P=C[1],R=V(v?V({},Bx):V({},jx),g),z=Hx[u],_=zm(u,x,w),N=s.useRef(_);u!=="inline"&&(N.current=_);var D=V(V({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=s.useRef();return s.useEffect(function(){return L.current=gt(function(){P(n)}),function(){gt.cancel(L.current)}},[n]),s.createElement(qi,{prefixCls:t,popupClassName:ne("".concat(t,"-popup"),A({},"".concat(t,"-rtl"),v),a,S),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:R,popupPlacement:z,popupVisible:$,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:c?[]:[b],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:d,forceRender:y,popupMotion:D,fresh:!0},r)}function kx(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=s.useContext($n),l=a.prefixCls,c=a.forceSubMenuRender,u=a.motion,d=a.defaultMotions,f=a.mode,m=s.useRef(!1);m.current=f===i;var v=s.useState(!m.current),h=X(v,2),p=h[0],g=h[1],b=m.current?n:!1;s.useEffect(function(){m.current&&g(!1)},[f]);var y=V({},zm(i,u,d));r.length>1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(x){return!m.current&&!x&&g(!0),S==null?void 0:S(x)},p?null:s.createElement(Io,{mode:i,locked:!m.current},s.createElement(Yr,Me({visible:b},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(x){var w=x.className,E=x.style;return s.createElement(As,{id:t,className:w,style:E},o)}))}var Wx=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Kx=["active"],Ux=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey,l=t.warnKey,c=t.disabled,u=t.internalPopupClose,d=t.children,f=t.itemIcon,m=t.expandIcon,v=t.popupClassName,h=t.popupOffset,p=t.popupStyle,g=t.onClick,b=t.onMouseEnter,y=t.onMouseLeave,S=t.onTitleClick,x=t.onTitleMouseEnter,w=t.onTitleMouseLeave,E=et(t,Wx),C=Im(a),$=s.useContext($n),P=$.prefixCls,R=$.mode,z=$.openKeys,_=$.disabled,N=$.overflowDisabled,D=$.activeKey,L=$.selectedKeys,T=$.itemIcon,I=$.expandIcon,M=$.onItemClick,j=$.onOpenChange,F=$.onActive,B=s.useContext(Ts),H=B._internalRenderSubMenuItem,Y=s.useContext(Nm),W=Y.isSubPathKey,k=Qr(),oe="".concat(P,"-submenu"),ie=_||c,Z=s.useRef(),q=s.useRef();process.env.NODE_ENV!=="production"&&l&&Ue(!1,"SubMenu should not leave undefined `key`.");var K=f??T,ae=m??I,re=z.includes(a),ee=!N&&re,U=W(L,a),ve=_m(a,ie,x,w),te=ve.active,ue=et(ve,Kx),se=s.useState(!1),le=X(se,2),Q=le[0],ge=le[1],fe=function(He){ie||ge(He)},Se=function(He){fe(!0),b==null||b({key:a,domEvent:He})},Le=function(He){fe(!1),y==null||y({key:a,domEvent:He})},De=s.useMemo(function(){return te||(R!=="inline"?Q||W([D],a):!1)},[R,te,D,Q,a,W]),Ce=Am(k.length),ot=function(He){ie||(S==null||S({key:a,domEvent:He}),R==="inline"&&j(a,!re))},Ie=uo(function(Ke){g==null||g(Ii(Ke)),M(Ke)}),Te=function(He){R!=="inline"&&j(a,He)},Re=function(){F(a)},he=C&&"".concat(C,"-popup"),Ye=s.createElement("div",Me({role:"menuitem",style:Ce,className:"".concat(oe,"-title"),tabIndex:ie?null:-1,ref:Z,title:typeof i=="string"?i:null,"data-menu-id":N&&C?null:C,"aria-expanded":ee,"aria-haspopup":!0,"aria-controls":he,"aria-disabled":ie,onClick:ot,onFocus:Re},ue),i,s.createElement(Dm,{icon:R!=="horizontal"?ae:void 0,props:V(V({},t),{},{isOpen:ee,isSubMenu:!0})},s.createElement("i",{className:"".concat(oe,"-arrow")}))),Be=s.useRef(R);if(R!=="inline"&&k.length>1?Be.current="vertical":Be.current=R,!N){var ht=Be.current;Ye=s.createElement(Vx,{mode:ht,prefixCls:oe,visible:!u&&ee&&R!=="inline",popupClassName:v,popupOffset:h,popupStyle:p,popup:s.createElement(Io,{mode:ht==="horizontal"?"vertical":ht},s.createElement(As,{id:he,ref:q},d)),disabled:ie,onVisibleChange:Te},Ye)}var rt=s.createElement(Rn.Item,Me({role:"none"},E,{component:"li",style:r,className:ne(oe,"".concat(oe,"-").concat(R),o,(n={},A(n,"".concat(oe,"-open"),ee),A(n,"".concat(oe,"-active"),De),A(n,"".concat(oe,"-selected"),U),A(n,"".concat(oe,"-disabled"),ie),n)),onMouseEnter:Se,onMouseLeave:Le}),Ye,!N&&s.createElement(kx,{id:he,open:ee,keyPath:k},d));return H&&(rt=H(rt,t,{selected:U,active:De,open:ee,disabled:ie})),s.createElement(Io,{onItemClick:Ie,mode:R==="horizontal"?"vertical":R,itemIcon:K,expandIcon:ae},rt)};function ea(e){var t=e.eventKey,n=e.children,r=Qr(t),o=Ds(n,r),i=Zi();s.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=s.createElement(Ux,e,o),s.createElement(Pm.Provider,{value:r},a)}var Gx=["className","title","eventKey","children"],qx=["children"],Xx=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=et(t,Gx),a=s.useContext($n),l=a.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",Me({role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:ne(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function ta(e){var t=e.children,n=et(e,qx),r=Qr(n.eventKey),o=Ds(t,r),i=Zi();return i?o:s.createElement(Xx,Qt(n,["warnKey"]),o)}function zs(e){var t=e.className,n=e.style,r=s.useContext($n),o=r.prefixCls,i=Zi();return i?null:s.createElement("li",{role:"separator",className:ne("".concat(o,"-item-divider"),t),style:n})}var Yx=["label","children","key","type"];function Fl(e){return(e||[]).map(function(t,n){if(t&&Ze(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,l=r.type,c=et(r,Yx),u=a??"tmp-".concat(n);return i||l==="group"?l==="group"?s.createElement(ta,Me({key:u},c,{title:o}),Fl(i)):s.createElement(ea,Me({key:u},c,{title:o}),Fl(i)):l==="divider"?s.createElement(zs,Me({key:u},c)):s.createElement(Ji,Me({key:u},c),o)}return null}).filter(function(t){return t})}function Qx(e,t,n){var r=e;return t&&(r=Fl(t)),Ds(r,n)}var Zx=["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"],Mr=[],Jx=s.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,c=o.style,u=o.className,d=o.tabIndex,f=d===void 0?0:d,m=o.items,v=o.children,h=o.direction,p=o.id,g=o.mode,b=g===void 0?"vertical":g,y=o.inlineCollapsed,S=o.disabled,x=o.disabledOverflow,w=o.subMenuOpenDelay,E=w===void 0?.1:w,C=o.subMenuCloseDelay,$=C===void 0?.1:C,P=o.forceSubMenuRender,R=o.defaultOpenKeys,z=o.openKeys,_=o.activeKey,N=o.defaultActiveFirst,D=o.selectable,L=D===void 0?!0:D,T=o.multiple,I=T===void 0?!1:T,M=o.defaultSelectedKeys,j=o.selectedKeys,F=o.onSelect,B=o.onDeselect,H=o.inlineIndent,Y=H===void 0?24:H,W=o.motion,k=o.defaultMotions,oe=o.triggerSubMenuAction,ie=oe===void 0?"hover":oe,Z=o.builtinPlacements,q=o.itemIcon,K=o.expandIcon,ae=o.overflowedIndicator,re=ae===void 0?"...":ae,ee=o.overflowedIndicatorPopupClassName,U=o.getPopupContainer,ve=o.onClick,te=o.onOpenChange,ue=o.onKeyDown,se=o.openAnimation,le=o.openTransitionName,Q=o._internalRenderMenuItem,ge=o._internalRenderSubMenuItem,fe=et(o,Zx),Se=s.useMemo(function(){return Qx(v,m,Mr)},[v,m]),Le=s.useState(!1),De=X(Le,2),Ce=De[0],ot=De[1],Ie=s.useRef(),Te=Px(p),Re=h==="rtl";process.env.NODE_ENV!=="production"&&Ue(!se&&!le,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var he=Wt(R,{value:z,postState:function(Ne){return Ne||Mr}}),Ye=X(he,2),Be=Ye[0],ht=Ye[1],rt=function(Ne){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function lt(){ht(Ne),te==null||te(Ne)}We?lr.flushSync(lt):lt()},Ke=s.useState(Be),He=X(Ke,2),it=He[0],Qe=He[1],bt=s.useRef(!1),Ct=s.useMemo(function(){return(b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Ve=X(Ct,2),ke=Ve[0],Ge=Ve[1],$e=ke==="inline",qe=s.useState(ke),ye=X(qe,2),J=ye[0],G=ye[1],de=s.useState(Ge),me=X(de,2),pe=me[0],_e=me[1];s.useEffect(function(){G(ke),_e(Ge),bt.current&&($e?ht(it):rt(Mr))},[ke,Ge]);var ze=s.useState(0),at=X(ze,2),tt=at[0],wt=at[1],Je=tt>=Se.length-1||J!=="horizontal"||x;s.useEffect(function(){$e&&Qe(Be)},[Be]),s.useEffect(function(){return bt.current=!0,function(){bt.current=!1}},[]);var ft=Ix(),xt=ft.registerPath,Gt=ft.unregisterPath,Oe=ft.refreshOverflowKeys,xe=ft.isSubPathKey,Ae=ft.getKeyPath,mt=ft.getKeys,yt=ft.getSubPathKeys,Pt=s.useMemo(function(){return{registerPath:xt,unregisterPath:Gt}},[xt,Gt]),Zt=s.useMemo(function(){return{isSubPathKey:xe}},[xe]);s.useEffect(function(){Oe(Je?Mr:Se.slice(tt+1).map(function(Xe){return Xe.key}))},[tt,Je]);var In=Wt(_||N&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:_}),hn=X(In,2),Dt=hn[0],Vt=hn[1],Yn=uo(function(Xe){Vt(Xe)}),cn=uo(function(){Vt(void 0)});O.useImperativeHandle(t,function(){return{list:Ie.current,focus:function(Ne){var We,lt=Dt??((We=Se.find(function(qt){return!qt.props.disabled}))===null||We===void 0?void 0:We.key);if(lt){var Et,Nt,Ft;(Et=Ie.current)===null||Et===void 0||(Nt=Et.querySelector("li[data-menu-id='".concat(Ms(Te,lt),"']")))===null||Nt===void 0||(Ft=Nt.focus)===null||Ft===void 0||Ft.call(Nt,Ne)}}}});var Mn=Wt(M||[],{value:j,postState:function(Ne){return Array.isArray(Ne)?Ne:Ne==null?Mr:[Ne]}}),Vn=X(Mn,2),zt=Vn[0],Jt=Vn[1],Tn=function(Ne){if(L){var We=Ne.key,lt=zt.includes(We),Et;I?lt?Et=zt.filter(function(Ft){return Ft!==We}):Et=[].concat(be(zt),[We]):Et=[We],Jt(Et);var Nt=V(V({},Ne),{},{selectedKeys:Et});lt?B==null||B(Nt):F==null||F(Nt)}!I&&Be.length&&J!=="inline"&&rt(Mr)},kn=uo(function(Xe){ve==null||ve(Ii(Xe)),Tn(Xe)}),en=uo(function(Xe,Ne){var We=Be.filter(function(Et){return Et!==Xe});if(Ne)We.push(Xe);else if(J!=="inline"){var lt=yt(Xe);We=We.filter(function(Et){return!lt.has(Et)})}_i(Be,We,!0)||rt(We,!0)}),un=function(Ne,We){var lt=We??!Be.includes(Ne);en(Ne,lt)},bn=Ex(J,Dt,Re,Te,Ie,mt,Ae,Vt,un,ue);s.useEffect(function(){ot(!0)},[]);var Fe=s.useMemo(function(){return{_internalRenderMenuItem:Q,_internalRenderSubMenuItem:ge}},[Q,ge]),Pe=J!=="horizontal"||x?Se:Se.map(function(Xe,Ne){return s.createElement(Io,{key:Xe.key,overflowDisabled:Ne>tt},Xe)}),$t=s.createElement(Rn,Me({id:p,ref:Ie,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Ji,className:ne(a,"".concat(a,"-root"),"".concat(a,"-").concat(J),u,(r={},A(r,"".concat(a,"-inline-collapsed"),pe),A(r,"".concat(a,"-rtl"),Re),r),l),dir:h,style:c,role:"menu",tabIndex:f,data:Pe,renderRawItem:function(Ne){return Ne},renderRawRest:function(Ne){var We=Ne.length,lt=We?Se.slice(-We):null;return s.createElement(ea,{eventKey:Ll,title:re,disabled:Je,internalPopupClose:We===0,popupClassName:ee},lt)},maxCount:J!=="horizontal"||x?Rn.INVALIDATE:Rn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ne){wt(Ne)},onKeyDown:bn},fe));return s.createElement(Ts.Provider,{value:Fe},s.createElement(Om.Provider,{value:Te},s.createElement(Io,{prefixCls:a,rootClassName:l,mode:J,openKeys:Be,rtl:Re,disabled:S,motion:Ce?W:null,defaultMotions:Ce?k:null,activeKey:Dt,onActive:Yn,onInactive:cn,selectedKeys:zt,inlineIndent:Y,subMenuOpenDelay:E,subMenuCloseDelay:$,forceSubMenuRender:P,builtinPlacements:Z,triggerSubMenuAction:ie,getPopupContainer:U,itemIcon:q,expandIcon:K,onItemClick:kn,onOpenChange:en},s.createElement(Nm.Provider,{value:Zt},$t),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(Rm.Provider,{value:Pt},Se)))))}),Do=Jx;Do.Item=Ji;Do.SubMenu=ea;Do.ItemGroup=ta;Do.Divider=zs;var ew={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const tw=ew;var Lm=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:tw}))};process.env.NODE_ENV!=="production"&&(Lm.displayName="BarsOutlined");const nw=s.forwardRef(Lm);var rw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const ow=rw;var Fm=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:ow}))};process.env.NODE_ENV!=="production"&&(Fm.displayName="LeftOutlined");const Ur=s.forwardRef(Fm),iw=e=>!isNaN(parseFloat(e))&&isFinite(e),aw=iw,lw=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var sw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Pu={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ls=s.createContext({}),cw=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),uw=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:h,onCollapse:p,onBreakpoint:g}=e,b=sw(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=O.useContext(lw),[S,x]=O.useState("collapsed"in e?e.collapsed:a),[w,E]=O.useState(!1);O.useEffect(()=>{"collapsed"in e&&x(e.collapsed)},[e.collapsed]);const C=(N,D)=>{"collapsed"in e||x(N),p==null||p(N,D)},$=O.useRef();$.current=N=>{E(N.matches),g==null||g(N.matches),S!==N.matches&&C(N.matches,"responsive")},O.useEffect(()=>{function N(L){return $.current(L)}let D;if(typeof window<"u"){const{matchMedia:L}=window;if(L&&h&&h in Pu){D=L(`(max-width: ${Pu[h]})`);try{D.addEventListener("change",N)}catch{D.addListener(N)}N(D)}}return()=>{try{D==null||D.removeEventListener("change",N)}catch{D==null||D.removeListener(N)}}},[h]),O.useEffect(()=>{const N=cw("ant-sider-");return y.addSider(N),()=>y.removeSider(N)},[]);const P=()=>{C(!S,"clickTrigger")},{getPrefixCls:R}=O.useContext(ut),z=()=>{const N=R("layout-sider",n),D=Qt(b,["collapsed"]),L=S?m:f,T=aw(L)?`${L}px`:String(L),I=parseFloat(String(m||0))===0?s.createElement("span",{onClick:P,className:ne(`${N}-zero-width-trigger`,`${N}-zero-width-trigger-${d?"right":"left"}`),style:v},o||s.createElement(nw,null)):null,F={expanded:d?s.createElement(dr,null):s.createElement(Ur,null),collapsed:d?s.createElement(Ur,null):s.createElement(dr,null)}[S?"collapsed":"expanded"],B=o!==null?I||s.createElement("div",{className:`${N}-trigger`,onClick:P,style:{width:T}},o||F):null,H=Object.assign(Object.assign({},c),{flex:`0 0 ${T}`,maxWidth:T,minWidth:T,width:T}),Y=ne(N,`${N}-${l}`,{[`${N}-collapsed`]:!!S,[`${N}-has-trigger`]:u&&o!==null&&!I,[`${N}-below`]:!!w,[`${N}-zero-width`]:parseFloat(T)===0},r);return s.createElement("aside",Object.assign({className:Y},D,{style:H,ref:t}),s.createElement("div",{className:`${N}-children`},i),u||w&&I?B:null)},_=s.useMemo(()=>({siderCollapsed:S}),[S]);return s.createElement(Ls.Provider,{value:_},z())});process.env.NODE_ENV!=="production"&&(uw.displayName="Sider");var dw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fw=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=dw(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(ut),a=i("menu",t),l=ne({[`${a}-item-divider-dashed`]:!!r},n);return s.createElement(zs,Object.assign({className:l},o))},jm=fw,mw=O.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ri=mw,vw=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=s.useContext(Ri),m=y=>{const S=s.createElement("span",{className:`${l}-title-content`},r);return(!o||Fn(r)&&r.type==="span")&&r&&y&&c&&typeof r=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:v}=s.useContext(Ls);let h=i;typeof i>"u"?h=c?r:"":i===!1&&(h="");const p={title:h};!v&&!f&&(p.title=null,p.open=!1);const g=En(r).length;let b=s.createElement(Ji,Object.assign({},Qt(e,["title","icon","danger"]),{className:ne({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?g+1:g)===1},n),title:typeof i=="string"?i:void 0}),jn(o,{className:ne(Fn(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(b=s.createElement(ax,Object.assign({},p,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),b)),b},Bm=vw,gw=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=s.useContext(Ri),{prefixCls:l,inlineCollapsed:c,theme:u}=a,d=Qr();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${l}-title-content`},o);else{const h=Fn(o)&&o.type==="span";f=s.createElement(s.Fragment,null,jn(r,{className:ne(Fn(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h?o:s.createElement("span",{className:`${l}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[v]=Ui("Menu");return s.createElement(Ri.Provider,{value:m},s.createElement(ea,Object.assign({},Qt(e,["icon"]),{title:f,popupClassName:ne(l,n,`${l}-${i||u}`),popupStyle:{zIndex:v}})))},Hm=gw;var pw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const hw=pw;var Vm=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:hw}))};process.env.NODE_ENV!=="production"&&(Vm.displayName="EllipsisOutlined");const km=s.forwardRef(Vm);var bw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function jl(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,c=bw(r,["label","children","key","type"]),u=a??`tmp-${n}`;return i||l==="group"?l==="group"?s.createElement(ta,Object.assign({key:u},c,{title:o}),jl(i)):s.createElement(Hm,Object.assign({key:u},c,{title:o}),jl(i)):l==="divider"?s.createElement(jm,Object.assign({key:u},c)):s.createElement(Bm,Object.assign({key:u},c),o)}return null}).filter(t=>t)}function yw(e){return s.useMemo(()=>e&&jl(e),[e])}var Sw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Pi=s.createContext(null),Cw=s.forwardRef((e,t)=>{const{children:n}=e,r=Sw(e,["children"]),o=s.useContext(Pi),i=s.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),a=Fv(n),l=Gr(t,a?n.ref:null);return s.createElement(Pi.Provider,{value:i},s.createElement(Ci,null,a?s.cloneElement(n,{ref:l}):n))}),xw=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
193
+ > ${t}-item-active,
194
+ > ${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"}}}},ww=xw,Ew=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
195
+ ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},$w=Ew,Nu=e=>Object.assign({},Co(e)),Ow=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:v,motionEaseOut:h,itemPaddingInline:p,motionDurationMid:g,itemHoverColor:b,lineType:y,colorSplit:S,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:$,dangerItemSelectedBg:P,itemHoverBg:R,itemActiveBg:z,menuSubMenuBg:_,horizontalItemSelectedColor:N,horizontalItemSelectedBg:D,horizontalItemBorderRadius:L,horizontalItemHoverBg:T,popupBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Nu(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${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:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:z}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:z}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:P}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Nu(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${m} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:u,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:u,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${y} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:f&&d?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${v}`,`opacity ${g} ${v}`].join(",")}}}}}},Mu=Ow,Tu=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e,c=o+i+a;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${r*2}px)`},[`> ${t}-item,
196
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
197
+ ${t}-submenu-title`]:{paddingInlineEnd:c}}},Iw=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:h,collapsedWidth:p,collapsedIconSize:g}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Tu(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Tu(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:p,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item,
198
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
199
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
200
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${f/2}px - ${d}px)`,textOverflow:"clip",[`
201
+ ${t}-submenu-arrow,
202
+ ${t}-submenu-expand-icon
203
+ `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},kr),{paddingInline:v})}}]},Rw=Iw,_u=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Po()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Au=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},Pw=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:h,menuArrowOffset:p,lineType:g,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:S}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},il()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),il()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${c}px`,fontSize:S,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_u(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},_u(e)),Au(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Au(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
204
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${p})`},"&::after":{transform:`rotate(45deg) translateX(-${p})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${p})`},"&::before":{transform:`rotate(45deg) translateX(${p})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Nw=(e,t)=>sn("Menu",r=>{if(t===!1)return[];const{colorBgElevated:o,colorPrimary:i,colorTextLightSolid:a,controlHeightLG:l,fontSize:c,darkItemColor:u,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:m,darkItemSelectedColor:v,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:g,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:S,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:E}=r,C=c/7*5,$=dt(r,{menuArrowSize:C,menuHorizontalHeight:l*1.15,menuArrowOffset:`${C*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),P=dt($,{itemColor:u,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:v,itemBg:f,popupBg:f,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:S,dangerItemColor:d,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:E,dangerItemSelectedBg:p,menuSubMenuBg:m,horizontalItemSelectedColor:a,horizontalItemSelectedBg:i});return[Pw($),ww($),Rw($),Mu($,"light"),Mu(P,"dark"),$w($),FS($),Kr($,"slide-up"),Kr($,"slide-down"),Cs($,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:h,controlItemBgActive:p,colorBgTextHover:g,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:x,padding:w,fontSize:E,controlHeightSM:C,fontSizeLG:$,colorTextLightSolid:P,colorErrorHover:R}=r,z=new _t(P).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:v,activeBarBorderWidth:v,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:S,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:`${b*1.15}px`,iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:$,groupTitleFontSize:E,darkItemDisabledColor:new _t(P).setAlpha(.25).toRgbString(),darkItemColor:z,darkDangerItemColor:i,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:z,darkItemHoverColor:P,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:i}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e);var Mw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Tw=O.forwardRef((e,t)=>{var n,r;const o=s.useContext(Pi),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:u}=s.useContext(ut),d=a(),{prefixCls:f,className:m,style:v,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:b,siderCollapsed:y,items:S,children:x,rootClassName:w,mode:E,selectable:C,onClick:$,overflowedIndicatorPopupClassName:P}=e,R=Mw(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),z=Qt(R,["collapsedWidth"]),_=yw(S)||x;if(process.env.NODE_ENV!=="production"){const W=ln("Menu");process.env.NODE_ENV!=="production"&&W(!("inlineCollapsed"in e&&E!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),process.env.NODE_ENV!=="production"&&W(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),W.deprecated("items"in e&&!x,"children","items")}(n=i.validator)===null||n===void 0||n.call(i,{mode:E});const N=kt(function(){var W;$==null||$.apply(void 0,arguments),(W=i.onClick)===null||W===void 0||W.call(i)}),D=i.mode||E,L=C??i.selectable,T=s.useMemo(()=>y!==void 0?y:b,[b,y]),I={horizontal:{motionName:`${d}-slide-up`},inline:ub(d),other:{motionName:`${d}-zoom-big`}},M=a("menu",f||i.prefixCls),[j,F]=Nw(M,!o),B=ne(`${M}-${h}`,u==null?void 0:u.className,m);let H;if(typeof p=="function")H=p;else if(p===null||p===!1)H=null;else if(i.expandIcon===null||i.expandIcon===!1)H=null;else{const W=p??i.expandIcon;H=jn(W,{className:ne(`${M}-submenu-expand-icon`,Fn(W)?(r=W.props)===null||r===void 0?void 0:r.className:"")})}const Y=s.useMemo(()=>({prefixCls:M,inlineCollapsed:T||!1,direction:c,firstLevel:!0,theme:h,mode:D,disableMenuItemTitleTooltip:g}),[M,T,c,g,h]);return j(s.createElement(Pi.Provider,{value:null},s.createElement(Ri.Provider,{value:Y},s.createElement(Do,Object.assign({getPopupContainer:l,overflowedIndicator:s.createElement(km,null),overflowedIndicatorPopupClassName:ne(M,`${M}-${h}`,P),mode:D,selectable:L,onClick:N},z,{inlineCollapsed:T,style:Object.assign(Object.assign({},u==null?void 0:u.style),v),className:B,prefixCls:M,direction:c,defaultMotions:I,expandIcon:H,ref:t,rootClassName:ne(w,F)}),_))))}),_w=Tw,Zr=O.forwardRef((e,t)=>{const n=O.useRef(null),r=s.useContext(Ls);return O.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),s.createElement(_w,Object.assign({ref:n},e,r))});Zr.Item=Bm;Zr.SubMenu=Hm;Zr.Divider=jm;Zr.ItemGroup=ta;process.env.NODE_ENV!=="production"&&(Zr.displayName="Menu");const Aw=Zr,Dw=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}}}}}},zw=Dw,Lw=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:p}=e;return[{[t]:Object.assign(Object.assign({},an(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:v},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
205
+ &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
206
+ &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
207
+ &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
208
+ &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
209
+ &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:hs},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
210
+ &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
211
+ &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
212
+ &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
213
+ &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
214
+ &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ys},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
215
+ &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
216
+ &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:bs},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
217
+ &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
218
+ &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ss}})},Cm(e,{colorBg:p,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},yi(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${h}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},yi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Kr(e,"slide-up"),Kr(e,"slide-down"),Ei(e,"move-up"),Ei(e,"move-down"),Cs(e,"zoom-big")]]},Wm=sn("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:c,componentCls:u,borderRadiusLG:d}=e,f=(i-a*l)/2,{dropdownArrowOffset:m}=Ps({contentRadius:d}),v=dt(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:f,dropdownEdgeChildPadding:c});return[Lw(v),zw(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),na=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:m,onOpenChange:v,visible:h,onVisibleChange:p,mouseEnterDelay:g=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:S="",overlay:x,transitionName:w}=e,{getPopupContainer:E,getPrefixCls:C,direction:$,dropdown:P}=s.useContext(ut),R=ln("Dropdown");process.env.NODE_ENV!=="production"&&([["visible","open"],["onVisibleChange","onOpenChange"]].forEach(K=>{let[ae,re]=K;R.deprecated(!(ae in e),ae,re)}),R.deprecated(!("overlay"in e),"overlay","menu"));const z=s.useMemo(()=>{const K=C();return w!==void 0?w:S.includes("top")?`${K}-slide-down`:`${K}-slide-up`},[C,S,w]),_=s.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:$==="rtl"?"bottomRight":"bottomLeft",[S,$]);if(process.env.NODE_ENV!=="production"){if(S.includes("Center")){const K=S.slice(0,S.indexOf("Center"));process.env.NODE_ENV!=="production"&&R(!S.includes("Center"),"deprecated",`You are using '${S}' placement in Dropdown, which is deprecated. Try to use '${K}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(K=>{let[ae,re]=K;R.deprecated(!(ae in e),ae,re)})}const N=C("dropdown",r),[D,L]=Wm(N),[,T]=On(),I=s.Children.only(o),M=jn(I,{className:ne(`${N}-trigger`,{[`${N}-rtl`]:$==="rtl"},I.props.className),disabled:a}),j=a?[]:i;let F;j&&j.includes("contextMenu")&&(F=!0);const[B,H]=Wt(!1,{value:m??h}),Y=kt(K=>{v==null||v(K,{source:"trigger"}),p==null||p(K),H(K)}),W=ne(u,d,L,P==null?void 0:P.className,{[`${N}-rtl`]:$==="rtl"}),k=xm({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:T.marginXXS,arrowWidth:n?T.sizePopupArrow:0,borderRadius:T.borderRadius}),oe=s.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(v==null||v(!1,{source:"menu"}),H(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),ie=()=>{let K;return t!=null&&t.items?K=s.createElement(Aw,Object.assign({},t)):typeof x=="function"?K=x():K=x,l&&(K=l(K)),K=s.Children.only(typeof K=="string"?s.createElement("span",null,K):K),s.createElement(Cw,{prefixCls:`${N}-menu`,expandIcon:s.createElement("span",{className:`${N}-menu-submenu-arrow`},s.createElement(dr,{className:`${N}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:ae=>{let{mode:re}=ae;process.env.NODE_ENV!=="production"&&R(!re||re==="vertical","usage",`mode="${re}" is not supported for Dropdown's Menu.`)}},K)},[Z,q]=Ui("Dropdown",f==null?void 0:f.zIndex);return D(s.createElement(vs.Provider,{value:q},s.createElement(px,Object.assign({alignPoint:F},Qt(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:b,visible:B,builtinPlacements:k,arrow:!!n,overlayClassName:W,prefixCls:N,getPopupContainer:c||E,transitionName:z,trigger:j,overlay:ie,placement:_,onVisibleChange:Y,overlayStyle:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),f),{zIndex:Z})}),M)))};function Fw(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const jw=jf(na,"dropdown",e=>e,Fw),Bw=e=>s.createElement(jw,Object.assign({},e),s.createElement("span",null));na._InternalPanelDoNotUseOrYouWillBeFired=Bw;process.env.NODE_ENV!=="production"&&(na.displayName="Dropdown");const Km=na;var Hw=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Vw=O.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,c=e.disabled,u=e.defaultChecked,d=u===void 0?!1:u,f=e.type,m=f===void 0?"checkbox":f,v=e.title,h=e.onChange,p=et(e,Hw),g=O.useRef(null),b=Wt(d,{value:l}),y=X(b,2),S=y[0],x=y[1];O.useImperativeHandle(t,function(){return{focus:function(){var $;($=g.current)===null||$===void 0||$.focus()},blur:function(){var $;($=g.current)===null||$===void 0||$.blur()},input:g.current}});var w=ne(o,i,(n={},A(n,"".concat(o,"-checked"),S),A(n,"".concat(o,"-disabled"),c),n)),E=function($){c||("checked"in e||x($.target.checked),h==null||h({target:V(V({},e),{},{type:m,checked:$.target.checked}),stopPropagation:function(){$.stopPropagation()},preventDefault:function(){$.preventDefault()},nativeEvent:$.nativeEvent}))};return s.createElement("span",{className:w,title:v,style:a},s.createElement("input",Me({},p,{className:"".concat(o,"-input"),ref:g,onChange:E,disabled:c,checked:!!S,type:m})),s.createElement("span",{className:"".concat(o,"-inner")}))});const kw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Um=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Bl=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),Gm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Um(dt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),qm=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},Fs=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),Xm=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:i,warningActiveShadow:a,colorErrorBorderHover:l,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},Bl(dt(e,{activeBorderColor:r,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:c},"&:focus, &:focus-within":Object.assign({},Bl(dt(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},js=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},kw(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Um(e)),"&:focus, &:focus-within":Object.assign({},Bl(e)),"&-disabled, &[disabled]":Object.assign({},Gm(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},qm(e)),"&-sm":Object.assign({},Fs(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ww=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({},qm(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Fs(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 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${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"},il()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
219
+ & > ${t}-affix-wrapper,
220
+ & > ${t}-number-affix-wrapper,
221
+ & > ${n}-picker-range
222
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
223
+ & > ${n}-select-auto-complete ${t},
224
+ & > ${n}-cascader-picker ${t},
225
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
226
+ & > ${n}-select:first-child > ${n}-select-selector,
227
+ & > ${n}-select-auto-complete:first-child ${t},
228
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
229
+ & > ${n}-select:last-child > ${n}-select-selector,
230
+ & > ${n}-cascader-picker:last-child ${t},
231
+ & > ${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.lineWidth,[`${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}}}})}},Kw=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),js(e)),Xm(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Uw=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},Gw=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},js(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Uw(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Xm(e,`${t}-affix-wrapper`))}},qw=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},an(e)),Ww(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},Gm(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}}}})}},Xw=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
232
+ > ${t},
233
+ ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Yw=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,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"}}}}}},Qw=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function Ym(e){return dt(e,{inputAffixPadding:e.paddingXXS})}const Qm=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:h,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:b,colorWarningOutline:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:h,hoverBorderColor:v,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${b}`,warningActiveShadow:`0 0 0 ${p}px ${y}`,hoverBg:"",activeBg:""}},Bs=sn("Input",e=>{const t=dt(e,Ym(e));return[Kw(t),Yw(t),Gw(t),qw(t),Xw(t),Qw(t),fs(t)]},Qm),Zw=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},an(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},an(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({},an(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`]:Object.assign({},Co(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px 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}})},{[`
234
+ ${n}:not(${n}-disabled),
235
+ ${t}:not(${t}-disabled)
236
+ `]:{[`&: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}`}}},[`
237
+ ${n}-checked:not(${n}-disabled),
238
+ ${t}-checked:not(${t}-disabled)
239
+ `]:{[`&: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.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${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 Jw(e,t){const n=dt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Zw(n)]}const Zm=sn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Jw(n,e)]}),eE=O.createContext(null),Jm=eE;var tE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nE=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,v=tE(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:p,checkbox:g}=s.useContext(ut),b=s.useContext(Jm),{isFormItemInput:y}=s.useContext(Pn),S=s.useContext(Xr),x=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:S,w=s.useRef(v.value);if(process.env.NODE_ENV!=="production"){const N=ln("Checkbox");process.env.NODE_ENV!=="production"&&N("checked"in v||!!b||!("value"in v),"usage","`value` is not a valid prop, do you mean `checked`?")}s.useEffect(()=>{b==null||b.registerValue(v.value)},[]),s.useEffect(()=>{if(!f)return v.value!==w.current&&(b==null||b.cancelValue(w.current),b==null||b.registerValue(v.value),w.current=v.value),()=>b==null?void 0:b.cancelValue(v.value)},[v.value]);const E=h("checkbox",r),[C,$]=Zm(E),P=Object.assign({},v);b&&!f&&(P.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),b.toggleOption&&b.toggleOption({label:a,value:v.value})},P.name=b.name,P.checked=b.value.includes(v.value));const R=ne(`${E}-wrapper`,{[`${E}-rtl`]:p==="rtl",[`${E}-wrapper-checked`]:P.checked,[`${E}-wrapper-disabled`]:x,[`${E}-wrapper-in-form-item`]:y},g==null?void 0:g.className,o,i,$),z=ne({[`${E}-indeterminate`]:l},cs,$),_=l?"mixed":void 0;return C(s.createElement(Cf,{component:"Checkbox",disabled:x},s.createElement("label",{className:R,style:Object.assign(Object.assign({},g==null?void 0:g.style),c),onMouseEnter:u,onMouseLeave:d},s.createElement(Vw,Object.assign({"aria-checked":_},P,{prefixCls:E,className:z,disabled:x,ref:t})),a!==void 0&&s.createElement("span",null,a))))},ev=s.forwardRef(nE);process.env.NODE_ENV!=="production"&&(ev.displayName="Checkbox");const tv=ev;var rE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oE=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:c,onChange:u}=e,d=rE(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(ut),[v,h]=s.useState(d.value||n||[]),[p,g]=s.useState([]);s.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const b=s.useMemo(()=>o.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[o]),y=N=>{g(D=>D.filter(L=>L!==N))},S=N=>{g(D=>[].concat(be(D),[N]))},x=N=>{const D=v.indexOf(N.value),L=be(v);D===-1?L.push(N.value):L.splice(D,1),"value"in d||h(L),u==null||u(L.filter(T=>p.includes(T)).sort((T,I)=>{const M=b.findIndex(F=>F.value===T),j=b.findIndex(F=>F.value===I);return M-j}))},w=f("checkbox",i),E=`${w}-group`,[C,$]=Zm(w),P=Qt(d,["value","disabled"]),R=o.length?b.map(N=>s.createElement(tv,{prefixCls:w,key:N.value.toString(),disabled:"disabled"in N?N.disabled:d.disabled,value:N.value,checked:v.includes(N.value),onChange:N.onChange,className:`${E}-item`,style:N.style,title:N.title,id:N.id},N.label)):r,z={toggleOption:x,value:v,disabled:d.disabled,name:d.name,registerValue:S,cancelValue:y},_=ne(E,{[`${E}-rtl`]:m==="rtl"},a,l,$);return C(s.createElement("div",Object.assign({className:_,style:c},P,{ref:t}),s.createElement(Jm.Provider,{value:z},R)))},iE=s.forwardRef(oE),aE=s.memo(iE),ra=tv;ra.Group=aE;ra.__ANT_CHECKBOX=!0;process.env.NODE_ENV!=="production"&&(ra.displayName="Checkbox");const nv=ra;function Tr(e){return!!(e.addonBefore||e.addonAfter)}function Aa(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ni(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o)}}function lE(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 rv=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,l=t.suffix,c=t.addonBefore,u=t.addonAfter,d=t.className,f=t.style,m=t.disabled,v=t.readOnly,h=t.focused,p=t.triggerFocus,g=t.allowClear,b=t.value,y=t.handleReset,S=t.hidden,x=t.classes,w=t.classNames,E=t.dataAttrs,C=t.styles,$=t.components,P=($==null?void 0:$.affixWrapper)||"span",R=($==null?void 0:$.groupWrapper)||"span",z=($==null?void 0:$.wrapper)||"span",_=($==null?void 0:$.groupAddon)||"span",N=O.useRef(null),D=function(oe){var ie;(ie=N.current)!==null&&ie!==void 0&&ie.contains(oe.target)&&(p==null||p())},L=function(){var oe;if(!g)return null;var ie=!m&&!v&&b,Z="".concat(i,"-clear-icon"),q=Ze(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";return O.createElement("span",{onClick:y,onMouseDown:function(ae){return ae.preventDefault()},className:ne(Z,(oe={},A(oe,"".concat(Z,"-hidden"),!ie),A(oe,"".concat(Z,"-has-suffix"),!!l),oe)),role:"button",tabIndex:-1},q)},T=O.cloneElement(o,{value:b,hidden:S,className:ne((n=o.props)===null||n===void 0?void 0:n.className,!Aa(t)&&!Tr(t)&&d)||null,style:V(V({},(r=o.props)===null||r===void 0?void 0:r.style),!Aa(t)&&!Tr(t)?f:{})});if(Aa(t)){var I,M="".concat(i,"-affix-wrapper"),j=ne(M,(I={},A(I,"".concat(M,"-disabled"),m),A(I,"".concat(M,"-focused"),h),A(I,"".concat(M,"-readonly"),v),A(I,"".concat(M,"-input-with-clear-btn"),l&&g&&b),I),!Tr(t)&&d,x==null?void 0:x.affixWrapper,w==null?void 0:w.affixWrapper),F=(l||g)&&O.createElement("span",{className:ne("".concat(i,"-suffix"),w==null?void 0:w.suffix),style:C==null?void 0:C.suffix},L(),l);T=O.createElement(P,Me({className:j,style:V(V({},Tr(t)?void 0:f),C==null?void 0:C.affixWrapper),hidden:!Tr(t)&&S,onClick:D},E==null?void 0:E.affixWrapper,{ref:N}),a&&O.createElement("span",{className:ne("".concat(i,"-prefix"),w==null?void 0:w.prefix),style:C==null?void 0:C.prefix},a),O.cloneElement(o,{value:b,hidden:null}),F)}if(Tr(t)){var B="".concat(i,"-group"),H="".concat(B,"-addon"),Y=ne("".concat(i,"-wrapper"),B,x==null?void 0:x.wrapper),W=ne("".concat(i,"-group-wrapper"),d,x==null?void 0:x.group);return O.createElement(R,{className:W,style:f,hidden:S},O.createElement(z,{className:Y},c&&O.createElement(_,{className:H},c),O.cloneElement(T,{hidden:null}),u&&O.createElement(_,{className:H},u)))}return T},sE=["show"];function ov(e,t){return s.useMemo(function(){var n={};t&&(n.show=Ze(t)==="object"&&t.formatter?t.formatter:!!t),n=V(V({},n),e);var r=n,o=r.show,i=et(r,sE);return V(V({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var cE=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],uE=O.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,v=e.maxLength,h=e.suffix,p=e.showCount,g=e.count,b=e.type,y=b===void 0?"text":b,S=e.classes,x=e.classNames,w=e.styles,E=e.onCompositionStart,C=e.onCompositionEnd,$=et(e,cE),P=O.useState(!1),R=X(P,2),z=R[0],_=R[1],N=O.useRef(!1),D=O.useRef(null),L=function(Q){D.current&&lE(D.current,Q)},T=Wt(e.defaultValue,{value:e.value}),I=X(T,2),M=I[0],j=I[1],F=M==null?"":String(M),B=O.useState(null),H=X(B,2),Y=H[0],W=H[1],k=ov(g,p),oe=k.max||v,ie=k.strategy(F),Z=!!oe&&ie>oe;O.useImperativeHandle(t,function(){return{focus:L,blur:function(){var Q;(Q=D.current)===null||Q===void 0||Q.blur()},setSelectionRange:function(Q,ge,fe){var Se;(Se=D.current)===null||Se===void 0||Se.setSelectionRange(Q,ge,fe)},select:function(){var Q;(Q=D.current)===null||Q===void 0||Q.select()},input:D.current}}),O.useEffect(function(){_(function(le){return le&&d?!1:le})},[d]);var q=function(Q,ge){var fe=ge;if(!N.current&&k.exceedFormatter&&k.max&&k.strategy(ge)>k.max&&(fe=k.exceedFormatter(ge,{max:k.max}),ge!==fe)){var Se,Le;W([((Se=D.current)===null||Se===void 0?void 0:Se.selectionStart)||0,((Le=D.current)===null||Le===void 0?void 0:Le.selectionEnd)||0])}j(fe),D.current&&Ni(D.current,Q,r,fe)};O.useEffect(function(){if(Y){var le;(le=D.current)===null||le===void 0||le.setSelectionRange.apply(le,be(Y))}},[Y]);var K=function(Q){q(Q,Q.target.value)},ae=function(Q){N.current=!1,q(Q,Q.currentTarget.value),C==null||C(Q)},re=function(Q){a&&Q.key==="Enter"&&a(Q),l==null||l(Q)},ee=function(Q){_(!0),o==null||o(Q)},U=function(Q){_(!1),i==null||i(Q)},ve=function(Q){j(""),L(),D.current&&Ni(D.current,Q,r)},te=Z&&"".concat(u,"-out-of-range"),ue=function(){var Q=Qt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return O.createElement("input",Me({autoComplete:n},Q,{onChange:K,onFocus:ee,onBlur:U,onKeyDown:re,className:ne(u,A({},"".concat(u,"-disabled"),d),x==null?void 0:x.input),style:w==null?void 0:w.input,ref:D,size:f,type:y,onCompositionStart:function(fe){N.current=!0,E==null||E(fe)},onCompositionEnd:ae}))},se=function(){var Q=Number(oe)>0;if(h||k.show){var ge=k.showFormatter?k.showFormatter({value:F,count:ie,maxLength:oe}):"".concat(ie).concat(Q?" / ".concat(oe):"");return O.createElement(O.Fragment,null,k.show&&O.createElement("span",{className:ne("".concat(u,"-show-count-suffix"),A({},"".concat(u,"-show-count-has-suffix"),!!h),x==null?void 0:x.count),style:V({},w==null?void 0:w.count)},ge),h)}return null};return O.createElement(rv,Me({},$,{prefixCls:u,className:ne(m,te),inputElement:ue(),handleReset:ve,value:F,focused:z,triggerFocus:L,suffix:se(),disabled:d,classes:S,classNames:x,styles:w}))});const dE=e=>{const{getPrefixCls:t,direction:n}=O.useContext(ut),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,c]=Bs(a),u=ne(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},c,o),d=O.useContext(Pn),f=O.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return process.env.NODE_ENV!=="production"&&ln("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),l(s.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(Pn.Provider,{value:f},e.children)))},fE=dE;function iv(e,t){const n=O.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return O.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function mE(e){return!!(e.prefix||e.suffix||e.allowClear)}var vE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gE(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const pE=O.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:v,className:h,style:p,styles:g,rootClassName:b,onChange:y,classNames:S}=e,x=vE(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:w,direction:E,input:C}=O.useContext(ut),$=w("input",r),P=O.useRef(null),[R,z]=Bs($),{compactSize:_,compactItemClassnames:N}=Mo($,E),D=pr(q=>{var K;return(K=a??_)!==null&&K!==void 0?K:q}),L=O.useContext(Xr),T=l??L,{status:I,hasFeedback:M,feedbackIcon:j}=O.useContext(Pn),F=Xi(I,i),B=mE(e)||!!M,H=O.useRef(B);if(process.env.NODE_ENV!=="production"){const q=ln("Input");O.useEffect(()=>{var K;B&&!H.current&&process.env.NODE_ENV!=="production"&&q(document.activeElement===((K=P.current)===null||K===void 0?void 0:K.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),H.current=B},[B])}const Y=iv(P,!0),W=q=>{Y(),c==null||c(q)},k=q=>{Y(),u==null||u(q)},oe=q=>{Y(),y==null||y(q)},ie=(M||d)&&O.createElement(O.Fragment,null,d,M&&j);let Z;return typeof f=="object"&&(f!=null&&f.clearIcon)?Z=f:f&&(Z={clearIcon:O.createElement(ls,null)}),R(O.createElement(uE,Object.assign({ref:Nn(t,P),prefixCls:$,autoComplete:C==null?void 0:C.autoComplete},x,{disabled:T,onBlur:W,onFocus:k,style:Object.assign(Object.assign({},C==null?void 0:C.style),p),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),g),suffix:ie,allowClear:Z,className:ne(h,b,N,C==null?void 0:C.className),onChange:oe,addonAfter:m&&O.createElement(Ci,null,O.createElement(ru,{override:!0,status:!0},m)),addonBefore:v&&O.createElement(Ci,null,O.createElement(ru,{override:!0,status:!0},v)),classNames:Object.assign(Object.assign(Object.assign({},S),C==null?void 0:C.classNames),{input:ne({[`${$}-sm`]:D==="small",[`${$}-lg`]:D==="large",[`${$}-rtl`]:E==="rtl",[`${$}-borderless`]:!o},!B&&ar($,F),S==null?void 0:S.input,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.input,z)}),classes:{affixWrapper:ne({[`${$}-affix-wrapper-sm`]:D==="small",[`${$}-affix-wrapper-lg`]:D==="large",[`${$}-affix-wrapper-rtl`]:E==="rtl",[`${$}-affix-wrapper-borderless`]:!o},ar(`${$}-affix-wrapper`,F,M),z),wrapper:ne({[`${$}-group-rtl`]:E==="rtl"},z),group:ne({[`${$}-group-wrapper-sm`]:D==="small",[`${$}-group-wrapper-lg`]:D==="large",[`${$}-group-wrapper-rtl`]:E==="rtl",[`${$}-group-wrapper-disabled`]:T},ar(`${$}-group-wrapper`,F,M),z)}})))}),Hs=pE;var hE={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"};const bE=hE;var av=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:bE}))};process.env.NODE_ENV!=="production"&&(av.displayName="EyeInvisibleOutlined");const yE=s.forwardRef(av);var SE={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"};const CE=SE;var lv=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:CE}))};process.env.NODE_ENV!=="production"&&(lv.displayName="EyeOutlined");const xE=s.forwardRef(lv);var wE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const EE=e=>e?s.createElement(xE,null):s.createElement(yE,null),$E={click:"onClick",hover:"onMouseOver"},sv=s.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=O.useState(()=>r?n.visible:!1),a=O.useRef(null);s.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=iv(a),c=()=>{const{disabled:w}=e;w||(o&&l(),i(E=>{var C;const $=!E;return typeof n=="object"&&((C=n.onVisibleChange)===null||C===void 0||C.call(n,$)),$}))},u=w=>{const{action:E="click",iconRender:C=EE}=e,$=$E[E]||"",P=C(o),R={[$]:c,className:`${w}-icon`,key:"passwordIcon",onMouseDown:z=>{z.preventDefault()},onMouseUp:z=>{z.preventDefault()}};return s.cloneElement(s.isValidElement(P)?P:s.createElement("span",null,P),R)},{className:d,prefixCls:f,inputPrefixCls:m,size:v}=e,h=wE(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:p}=s.useContext(ut),g=p("input",m),b=p("input-password",f),y=n&&u(b),S=ne(b,d,{[`${b}-${v}`]:!!v}),x=Object.assign(Object.assign({},Qt(h,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:g,suffix:y});return v&&(x.size=v),s.createElement(Hs,Object.assign({ref:Nn(t,a)},x))});process.env.NODE_ENV!=="production"&&(sv.displayName="Password");const OE=sv;var IE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cv=s.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:h}=e,p=IE(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=s.useContext(ut),y=s.useRef(!1),S=g("input-search",n),x=g("input",r),{compactSize:w}=Mo(S,b),E=pr(F=>{var B;return(B=i??w)!==null&&B!==void 0?B:F}),C=s.useRef(null),$=F=>{F&&F.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),m&&m(F)},P=F=>{var B;document.activeElement===((B=C.current)===null||B===void 0?void 0:B.input)&&F.preventDefault()},R=F=>{var B,H;f&&f((H=(B=C.current)===null||B===void 0?void 0:B.input)===null||H===void 0?void 0:H.value,F,{source:"input"})},z=F=>{y.current||u||R(F)},_=typeof l=="boolean"?s.createElement(Rs,null):null,N=`${S}-button`;let D;const L=l||{},T=L.type&&L.type.__ANT_BUTTON===!0;T||L.type==="button"?D=jn(L,Object.assign({onMouseDown:P,onClick:F=>{var B,H;(H=(B=L==null?void 0:L.props)===null||B===void 0?void 0:B.onClick)===null||H===void 0||H.call(B,F),R(F)},key:"enterButton"},T?{className:N,size:E}:{})):D=s.createElement(Eo,{className:N,type:l?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:P,onClick:R,loading:u,icon:_},l),c&&(D=[D,jn(c,{key:"addonAfter"})]);const I=ne(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${E}`]:!!E,[`${S}-with-button`]:!!l},o),M=F=>{y.current=!0,v==null||v(F)},j=F=>{y.current=!1,h==null||h(F)};return s.createElement(Hs,Object.assign({ref:Nn(C,t),onPressEnter:z},p,{size:E,onCompositionStart:M,onCompositionEnd:j,prefixCls:x,addonAfter:D,suffix:a,onChange:$,className:I,disabled:d}))});process.env.NODE_ENV!=="production"&&(cv.displayName="Search");const RE=cv;var PE=`
240
+ min-height:0 !important;
241
+ max-height:none !important;
242
+ height:0 !important;
243
+ visibility:hidden !important;
244
+ overflow:hidden !important;
245
+ position:absolute !important;
246
+ z-index:-1000 !important;
247
+ top:0 !important;
248
+ right:0 !important;
249
+ pointer-events: none !important;
250
+ `,NE=["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"],Da={},gn;function ME(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&&Da[n])return Da[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")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=NE.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Da[n]=c),c}function TE(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;gn||(gn=document.createElement("textarea"),gn.setAttribute("tab-index","-1"),gn.setAttribute("aria-hidden","true"),document.body.appendChild(gn)),e.getAttribute("wrap")?gn.setAttribute("wrap",e.getAttribute("wrap")):gn.removeAttribute("wrap");var o=ME(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;gn.setAttribute("style","".concat(c,";").concat(PE)),gn.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=gn.scrollHeight;if(l==="border-box"?m+=a:l==="content-box"&&(m-=i),n!==null||r!==null){gn.value=" ";var v=gn.scrollHeight-i;n!==null&&(u=v*n,l==="border-box"&&(u=u+i+a),m=Math.max(u,m)),r!==null&&(d=v*r,l==="border-box"&&(d=d+i+a),f=m>d?"":"hidden",m=Math.min(d,m))}var h={height:m,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var _E=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],za=0,La=1,Fa=2,AE=s.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange,m=n.onInternalAutoSize,v=et(n,_E),h=Wt(o,{value:i,postState:function(k){return k??""}}),p=X(h,2),g=p[0],b=p[1],y=function(k){b(k.target.value),f==null||f(k)},S=s.useRef();s.useImperativeHandle(t,function(){return{textArea:S.current}});var x=s.useMemo(function(){return a&&Ze(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=X(x,2),E=w[0],C=w[1],$=!!a,P=function(){try{if(document.activeElement===S.current){var k=S.current,oe=k.selectionStart,ie=k.selectionEnd,Z=k.scrollTop;S.current.setSelectionRange(oe,ie),S.current.scrollTop=Z}}catch{}},R=s.useState(Fa),z=X(R,2),_=z[0],N=z[1],D=s.useState(),L=X(D,2),T=L[0],I=L[1],M=function(){N(za),process.env.NODE_ENV==="test"&&(m==null||m())};St(function(){$&&M()},[i,E,C,$]),St(function(){if(_===za)N(La);else if(_===La){var W=TE(S.current,!1,E,C);N(Fa),I(W)}else P()},[_]);var j=s.useRef(),F=function(){gt.cancel(j.current)},B=function(k){_===Fa&&(l==null||l(k),a&&(F(),j.current=gt(function(){M()})))};s.useEffect(function(){return F},[]);var H=$?T:null,Y=V(V({},u),H);return(_===za||_===La)&&(Y.overflowY="hidden",Y.overflowX="hidden"),s.createElement(Hn,{onResize:B,disabled:!(a||l)},s.createElement("textarea",Me({},v,{ref:S,style:Y,className:ne(r,c,A({},"".concat(r,"-disabled"),d)),disabled:d,value:g,onChange:y})))}),DE=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],zE=O.forwardRef(function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,v=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,g=e.classes,b=e.showCount,y=e.count,S=e.className,x=e.style,w=e.disabled,E=e.hidden,C=e.classNames,$=e.styles,P=e.onResize,R=et(e,DE),z=Wt(o,{value:i,defaultValue:o}),_=X(z,2),N=_[0],D=_[1],L=N==null?"":String(N),T=O.useState(!1),I=X(T,2),M=I[0],j=I[1],F=O.useRef(!1),B=O.useState(null),H=X(B,2),Y=H[0],W=H[1],k=O.useRef(null),oe=function(){var he;return(he=k.current)===null||he===void 0?void 0:he.textArea},ie=function(){oe().focus()};O.useImperativeHandle(t,function(){return{resizableTextArea:k.current,focus:ie,blur:function(){oe().blur()}}}),O.useEffect(function(){j(function(Re){return!w&&Re})},[w]);var Z=O.useState(null),q=X(Z,2),K=q[0],ae=q[1];O.useEffect(function(){if(K){var Re;(Re=oe()).setSelectionRange.apply(Re,be(K))}},[K]);var re=ov(y,b),ee=(n=re.max)!==null&&n!==void 0?n:d,U=Number(ee)>0,ve=re.strategy(L),te=!!ee&&ve>ee,ue=function(he,Ye){var Be=Ye;!F.current&&re.exceedFormatter&&re.max&&re.strategy(Ye)>re.max&&(Be=re.exceedFormatter(Ye,{max:re.max}),Ye!==Be&&ae([oe().selectionStart||0,oe().selectionEnd||0])),D(Be),Ni(he.currentTarget,he,c,Be)},se=function(he){F.current=!0,f==null||f(he)},le=function(he){F.current=!1,ue(he,he.currentTarget.value),m==null||m(he)},Q=function(he){ue(he,he.target.value)},ge=function(he){var Ye=R.onPressEnter,Be=R.onKeyDown;he.key==="Enter"&&Ye&&Ye(he),Be==null||Be(he)},fe=function(he){j(!0),a==null||a(he)},Se=function(he){j(!1),l==null||l(he)},Le=function(he){D(""),ie(),Ni(oe(),he,c)},De=v,Ce;re.show&&(re.showFormatter?Ce=re.showFormatter({value:L,count:ve,maxLength:ee}):Ce="".concat(ve).concat(U?" / ".concat(ee):""),De=O.createElement(O.Fragment,null,De,O.createElement("span",{className:ne("".concat(p,"-data-count"),C==null?void 0:C.count),style:$==null?void 0:$.count},Ce)));var ot=function(he){var Ye;P==null||P(he),(Ye=oe())!==null&&Ye!==void 0&&Ye.style.height&&W(!0)},Ie=!R.autoSize&&!b&&!u,Te=O.createElement(rv,{value:L,allowClear:u,handleReset:Le,suffix:De,prefixCls:p,classes:{affixWrapper:ne(g==null?void 0:g.affixWrapper,(r={},A(r,"".concat(p,"-show-count"),b),A(r,"".concat(p,"-textarea-allow-clear"),u),r))},disabled:w,focused:M,className:ne(S,te&&"".concat(p,"-out-of-range")),style:V(V({},x),Y&&!Ie?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:E,inputElement:O.createElement(AE,Me({},R,{onKeyDown:ge,onChange:Q,onFocus:fe,onBlur:Se,onCompositionStart:se,onCompositionEnd:le,className:ne(C==null?void 0:C.textarea),style:V(V({},$==null?void 0:$.textarea),{},{resize:x==null?void 0:x.resize}),disabled:w,prefixCls:p,onResize:ot,ref:k}))});return Te}),LE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FE=O.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:c,classNames:u,rootClassName:d,className:f}=e,m=LE(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:v,direction:h}=s.useContext(ut),p=pr(i),g=s.useContext(Xr),b=a??g,{status:y,hasFeedback:S,feedbackIcon:x}=s.useContext(Pn),w=Xi(y,l),E=s.useRef(null);s.useImperativeHandle(t,()=>{var z;return{resizableTextArea:(z=E.current)===null||z===void 0?void 0:z.resizableTextArea,focus:_=>{var N,D;gE((D=(N=E.current)===null||N===void 0?void 0:N.resizableTextArea)===null||D===void 0?void 0:D.textArea,_)},blur:()=>{var _;return(_=E.current)===null||_===void 0?void 0:_.blur()}}});const C=v("input",r);let $;typeof c=="object"&&(c!=null&&c.clearIcon)?$=c:c&&($={clearIcon:s.createElement(ls,null)});const[P,R]=Bs(C);return P(s.createElement(zE,Object.assign({},m,{disabled:b,allowClear:$,className:ne(f,d),classes:{affixWrapper:ne(`${C}-textarea-affix-wrapper`,{[`${C}-affix-wrapper-rtl`]:h==="rtl",[`${C}-affix-wrapper-borderless`]:!o,[`${C}-affix-wrapper-sm`]:p==="small",[`${C}-affix-wrapper-lg`]:p==="large",[`${C}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},ar(`${C}-affix-wrapper`,w),R)},classNames:Object.assign(Object.assign({},u),{textarea:ne({[`${C}-borderless`]:!o,[`${C}-sm`]:p==="small",[`${C}-lg`]:p==="large"},ar(C,w),R,u==null?void 0:u.textarea)}),prefixCls:C,suffix:S&&s.createElement("span",{className:`${C}-textarea-suffix`},x),ref:E})))}),jE=FE,Jr=Hs;process.env.NODE_ENV!=="production"&&(Jr.displayName="Input");Jr.Group=fE;Jr.Search=RE;Jr.TextArea=jE;Jr.Password=OE;const BE=Jr;function Du(e){return["small","middle","large"].includes(e)}function zu(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const uv=O.createContext({latestIndex:0}),HE=uv.Provider,VE=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=s.useContext(uv);return r==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:i},r),n<a&&o&&s.createElement("span",{className:`${t}-split`},o))},kE=VE;var WE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dv=s.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=s.useContext(ut),{size:l=(i==null?void 0:i.size)||"small",align:c,className:u,rootClassName:d,children:f,direction:m="horizontal",prefixCls:v,split:h,style:p,wrap:g=!1,classNames:b,styles:y}=e,S=WE(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,w]=Array.isArray(l)?l:[l,l],E=Du(w),C=Du(x),$=zu(w),P=zu(x),R=En(f,{keepEmpty:!0}),z=c===void 0&&m==="horizontal"?"center":c,_=o("space",v),[N,D]=xf(_),L=ne(_,i==null?void 0:i.className,D,`${_}-${m}`,{[`${_}-rtl`]:a==="rtl",[`${_}-align-${z}`]:z,[`${_}-gap-row-${w}`]:E,[`${_}-gap-col-${x}`]:C},u,d),T=ne(`${_}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item);let I=0;const M=R.map((B,H)=>{var Y,W;B!=null&&(I=H);const k=B&&B.key||`${T}-${H}`;return s.createElement(kE,{className:T,key:k,index:H,split:h,style:(Y=y==null?void 0:y.item)!==null&&Y!==void 0?Y:(W=i==null?void 0:i.styles)===null||W===void 0?void 0:W.item},B)}),j=s.useMemo(()=>({latestIndex:I}),[I]);if(R.length===0)return null;const F={};return g&&(F.flexWrap="wrap"),!C&&P&&(F.columnGap=x),!E&&$&&(F.rowGap=w),N(s.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},F),i==null?void 0:i.style),p)},S),s.createElement(HE,{value:j},M)))});process.env.NODE_ENV!=="production"&&(dv.displayName="Space");const fv=dv;fv.Compact=$b;const KE=fv;var UE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mv=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(ut),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:v,arrow:h,autoFocus:p,overlay:g,trigger:b,align:y,open:S,onOpenChange:x,placement:w,getPopupContainer:E,href:C,icon:$=s.createElement(km,null),title:P,buttonsRender:R=K=>K,mouseEnterDelay:z,mouseLeaveDelay:_,overlayClassName:N,overlayStyle:D,destroyPopupOnHide:L,dropdownRender:T}=e,I=UE(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),M=n("dropdown",o),j=`${M}-button`,[F,B]=Wm(M),H={menu:v,arrow:h,autoFocus:p,align:y,disabled:l,trigger:l?[]:b,onOpenChange:x,getPopupContainer:E||t,mouseEnterDelay:z,mouseLeaveDelay:_,overlayClassName:N,overlayStyle:D,destroyPopupOnHide:L,dropdownRender:T},{compactSize:Y,compactItemClassnames:W}=Mo(M,r),k=ne(j,W,m,B);"overlay"in e&&(H.overlay=g),"open"in e&&(H.open=S),"placement"in e?H.placement=w:H.placement=r==="rtl"?"bottomLeft":"bottomRight";const oe=s.createElement(Eo,{type:i,danger:a,disabled:l,loading:c,onClick:u,htmlType:d,href:C,title:P},f),ie=s.createElement(Eo,{type:i,danger:a,icon:$}),[Z,q]=R([oe,ie]);return F(s.createElement(KE.Compact,Object.assign({className:k,size:Y,block:!0},I),Z,s.createElement(Km,Object.assign({},H),q)))};mv.__ANT_BUTTON=!0;const GE=mv,vv=Km;vv.Button=GE;const qE=vv;var XE={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"};const YE=XE;var gv=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:YE}))};process.env.NODE_ENV!=="production"&&(gv.displayName="DoubleLeftOutlined");const Lu=s.forwardRef(gv);var QE={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"};const ZE=QE;var pv=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:ZE}))};process.env.NODE_ENV!=="production"&&(pv.displayName="DoubleRightOutlined");const Fu=s.forwardRef(pv);var Zn={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const JE={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:"页码"};var Hl=function(e){fr(n,e);var t=mr(n);function n(){var r;Xt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),A(we(r),"state",{goInputText:""}),A(we(r),"getValidValue",function(){var l=r.state.goInputText;return!l||Number.isNaN(l)?void 0:Number(l)}),A(we(r),"buildOptionText",function(l){return"".concat(l," ").concat(r.props.locale.items_per_page)}),A(we(r),"changeSize",function(l){r.props.changeSize(Number(l))}),A(we(r),"handleChange",function(l){r.setState({goInputText:l.target.value})}),A(we(r),"handleBlur",function(l){var c=r.props,u=c.goButton,d=c.quickGo,f=c.rootPrefixCls,m=r.state.goInputText;u||m===""||(r.setState({goInputText:""}),!(l.relatedTarget&&(l.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||l.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&d(r.getValidValue()))}),A(we(r),"go",function(l){var c=r.state.goInputText;c!==""&&(l.keyCode===Zn.ENTER||l.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))}),r}return Yt(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,i=o.pageSize,a=o.pageSizeOptions;return a.some(function(l){return l.toString()===i.toString()})?a:a.concat([i.toString()]).sort(function(l,c){var u=Number.isNaN(Number(l))?0:Number(l),d=Number.isNaN(Number(c))?0:Number(c);return u-d})}},{key:"render",value:function(){var o=this,i=this.props,a=i.pageSize,l=i.locale,c=i.rootPrefixCls,u=i.changeSize,d=i.quickGo,f=i.goButton,m=i.selectComponentClass,v=i.buildOptionText,h=i.selectPrefixCls,p=i.disabled,g=this.state.goInputText,b="".concat(c,"-options"),y=m,S=null,x=null,w=null;if(!u&&!d)return null;var E=this.getPageSizeOptions();if(u&&y){var C=E.map(function($,P){return O.createElement(y.Option,{key:P,value:$.toString()},(v||o.buildOptionText)($))});S=O.createElement(y,{disabled:p,prefixCls:h,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||E[0]).toString(),onChange:this.changeSize,getPopupContainer:function(P){return P.parentNode},"aria-label":l.page_size,defaultOpen:!1},C)}return d&&(f&&(w=typeof f=="boolean"?O.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(b,"-quick-jumper-button")},l.jump_to_confirm):O.createElement("span",{onClick:this.go,onKeyUp:this.go},f)),x=O.createElement("div",{className:"".concat(b,"-quick-jumper")},l.jump_to,O.createElement("input",{disabled:p,type:"text",value:g,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":l.page}),l.page,w)),O.createElement("li",{className:"".concat(b)},S,x)}}]),n}(O.Component);A(Hl,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var lo=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,l=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=ne(f,"".concat(f,"-").concat(o),(n={},A(n,"".concat(f,"-active"),i),A(n,"".concat(f,"-disabled"),!o),A(n,t.className,a),n)),v=function(){c(o)},h=function(b){u(b,c,o)},p=d(o,"page",O.createElement("a",{rel:"nofollow"},o));return p?O.createElement("li",{title:l?o.toString():null,className:m,onClick:v,onKeyPress:h,tabIndex:0},p):null};function Vl(){}function ju(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var e$=function(t,n,r){return r};function Kn(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var hv=function(e){fr(n,e);var t=mr(n);function n(r){var o;Xt(this,n),o=t.call(this,r),A(we(o),"paginationNode",O.createRef()),A(we(o),"getJumpPrevPage",function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))}),A(we(o),"getJumpNextPage",function(){return Math.min(Kn(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))}),A(we(o),"getItemIcon",function(u,d){var f=o.props.prefixCls,m=u||O.createElement("button",{type:"button","aria-label":d,className:"".concat(f,"-item-link")});return typeof u=="function"&&(m=O.createElement(u,V({},o.props))),m}),A(we(o),"isValid",function(u){var d=o.props.total;return ju(u)&&u!==o.state.current&&ju(d)&&d>0}),A(we(o),"shouldDisplayQuickJumper",function(){var u=o.props,d=u.showQuickJumper,f=u.total,m=o.state.pageSize;return f<=m?!1:d}),A(we(o),"handleKeyDown",function(u){(u.keyCode===Zn.ARROW_UP||u.keyCode===Zn.ARROW_DOWN)&&u.preventDefault()}),A(we(o),"handleKeyUp",function(u){var d=o.getValidValue(u),f=o.state.currentInputValue;d!==f&&o.setState({currentInputValue:d}),u.keyCode===Zn.ENTER?o.handleChange(d):u.keyCode===Zn.ARROW_UP?o.handleChange(d-1):u.keyCode===Zn.ARROW_DOWN&&o.handleChange(d+1)}),A(we(o),"handleBlur",function(u){var d=o.getValidValue(u);o.handleChange(d)}),A(we(o),"changePageSize",function(u){var d=o.state.current,f=Kn(u,o.state,o.props);d=d>f?f:d,f===0&&(d=o.state.current),typeof u=="number"&&("pageSize"in o.props||o.setState({pageSize:u}),"current"in o.props||o.setState({current:d,currentInputValue:d})),o.props.onShowSizeChange(d,u),"onChange"in o.props&&o.props.onChange&&o.props.onChange(d,u)}),A(we(o),"handleChange",function(u){var d=o.props,f=d.disabled,m=d.onChange,v=o.state,h=v.pageSize,p=v.current,g=v.currentInputValue;if(o.isValid(u)&&!f){var b=Kn(void 0,o.state,o.props),y=u;return u>b?y=b:u<1&&(y=1),"current"in o.props||o.setState({current:y}),y!==g&&o.setState({currentInputValue:y}),m(y,h),y}return p}),A(we(o),"prev",function(){o.hasPrev()&&o.handleChange(o.state.current-1)}),A(we(o),"next",function(){o.hasNext()&&o.handleChange(o.state.current+1)}),A(we(o),"jumpPrev",function(){o.handleChange(o.getJumpPrevPage())}),A(we(o),"jumpNext",function(){o.handleChange(o.getJumpNextPage())}),A(we(o),"hasPrev",function(){return o.state.current>1}),A(we(o),"hasNext",function(){return o.state.current<Kn(void 0,o.state,o.props)}),A(we(o),"runIfEnter",function(u,d){if(u.key==="Enter"||u.charCode===13){for(var f=arguments.length,m=new Array(f>2?f-2:0),v=2;v<f;v++)m[v-2]=arguments[v];d.apply(void 0,m)}}),A(we(o),"runIfEnterPrev",function(u){o.runIfEnter(u,o.prev)}),A(we(o),"runIfEnterNext",function(u){o.runIfEnter(u,o.next)}),A(we(o),"runIfEnterJumpPrev",function(u){o.runIfEnter(u,o.jumpPrev)}),A(we(o),"runIfEnterJumpNext",function(u){o.runIfEnter(u,o.jumpNext)}),A(we(o),"handleGoTO",function(u){(u.keyCode===Zn.ENTER||u.type==="click")&&o.handleChange(o.state.currentInputValue)}),A(we(o),"renderPrev",function(u){var d=o.props,f=d.prevIcon,m=d.itemRender,v=m(u,"prev",o.getItemIcon(f,"prev page")),h=!o.hasPrev();return O.isValidElement(v)?O.cloneElement(v,{disabled:h}):v}),A(we(o),"renderNext",function(u){var d=o.props,f=d.nextIcon,m=d.itemRender,v=m(u,"next",o.getItemIcon(f,"next page")),h=!o.hasNext();return O.isValidElement(v)?O.cloneElement(v,{disabled:h}):v});var i=r.onChange!==Vl,a="current"in r;a&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=r.defaultCurrent;"current"in r&&(l=r.current);var c=r.defaultPageSize;return"pageSize"in r&&(c=r.pageSize),l=Math.min(l,Kn(c,void 0,r)),o.state={current:l,currentInputValue:l,pageSize:c},o}return Yt(n,[{key:"componentDidUpdate",value:function(o,i){var a=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode.current){var l=this.paginationNode.current.querySelector(".".concat(a,"-item-").concat(i.current));if(l&&document.activeElement===l){var c;l==null||(c=l.blur)===null||c===void 0||c.call(l)}}}},{key:"getValidValue",value:function(o){var i=o.target.value,a=Kn(void 0,this.state,this.props),l=this.state.currentInputValue,c;return i===""?c=i:Number.isNaN(Number(i))?c=l:i>=a?c=a:c=Number(i),c}},{key:"getShowSizeChanger",value:function(){var o=this.props,i=o.showSizeChanger,a=o.total,l=o.totalBoundaryShowSizeChanger;return typeof i<"u"?i:a>l}},{key:"render",value:function(){var o=this.props,i=o.prefixCls,a=o.className,l=o.style,c=o.disabled,u=o.hideOnSinglePage,d=o.total,f=o.locale,m=o.showQuickJumper,v=o.showLessItems,h=o.showTitle,p=o.showTotal,g=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,S=o.jumpPrevIcon,x=o.jumpNextIcon,w=o.selectComponentClass,E=o.selectPrefixCls,C=o.pageSizeOptions,$=this.state,P=$.current,R=$.pageSize,z=$.currentInputValue;if(u===!0&&d<=R)return null;var _=Kn(void 0,this.state,this.props),N=[],D=null,L=null,T=null,I=null,M=null,j=m&&m.goButton,F=v?1:2,B=P-1>0?P-1:0,H=P+1<_?P+1:_,Y=xo(this.props,{aria:!0,data:!0}),W=p&&O.createElement("li",{className:"".concat(i,"-total-text")},p(d,[d===0?0:(P-1)*R+1,P*R>d?d:P*R]));if(g){j&&(typeof j=="boolean"?M=O.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},f.jump_to_confirm):M=O.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},j),M=O.createElement("li",{title:h?"".concat(f.jump_to).concat(P,"/").concat(_):null,className:"".concat(i,"-simple-pager")},M));var k=this.renderPrev(B);return O.createElement("ul",Me({className:ne(i,"".concat(i,"-simple"),A({},"".concat(i,"-disabled"),c),a),style:l,ref:this.paginationNode},Y),W,k?O.createElement("li",{title:h?f.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:ne("".concat(i,"-prev"),A({},"".concat(i,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},k):null,O.createElement("li",{title:h?"".concat(P,"/").concat(_):null,className:"".concat(i,"-simple-pager")},O.createElement("input",{type:"text",value:z,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),O.createElement("span",{className:"".concat(i,"-slash")},"/"),_),O.createElement("li",{title:h?f.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:ne("".concat(i,"-next"),A({},"".concat(i,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(H)),O.createElement(Hl,{disabled:c,locale:f,rootPrefixCls:i,selectComponentClass:w,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:P,pageSize:R,pageSizeOptions:C,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:M}))}if(_<=3+F*2){var oe={locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:h,itemRender:b};_||N.push(O.createElement(lo,Me({},oe,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var ie=1;ie<=_;ie+=1){var Z=P===ie;N.push(O.createElement(lo,Me({},oe,{key:ie,page:ie,active:Z})))}}else{var q=v?f.prev_3:f.prev_5,K=v?f.next_3:f.next_5,ae=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),re=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(x,"next page"));y&&(D=ae?O.createElement("li",{title:h?q:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:ne("".concat(i,"-jump-prev"),A({},"".concat(i,"-jump-prev-custom-icon"),!!S))},ae):null,L=re?O.createElement("li",{title:h?K:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:ne("".concat(i,"-jump-next"),A({},"".concat(i,"-jump-next-custom-icon"),!!x))},re):null),I=O.createElement(lo,{locale:f,last:!0,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:h,itemRender:b}),T=O.createElement(lo,{locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:h,itemRender:b});var ee=Math.max(1,P-F),U=Math.min(P+F,_);P-1<=F&&(U=1+F*2),_-P<=F&&(ee=_-F*2);for(var ve=ee;ve<=U;ve+=1){var te=P===ve;N.push(O.createElement(lo,{locale:f,rootPrefixCls:i,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ve,page:ve,active:te,showTitle:h,itemRender:b}))}P-1>=F*2&&P!==1+2&&(N[0]=O.cloneElement(N[0],{className:"".concat(i,"-item-after-jump-prev")}),N.unshift(D)),_-P>=F*2&&P!==_-2&&(N[N.length-1]=O.cloneElement(N[N.length-1],{className:"".concat(i,"-item-before-jump-next")}),N.push(L)),ee!==1&&N.unshift(T),U!==_&&N.push(I)}var ue=!this.hasPrev()||!_,se=!this.hasNext()||!_,le=this.renderPrev(B),Q=this.renderNext(H);return O.createElement("ul",Me({className:ne(i,a,A({},"".concat(i,"-disabled"),c)),style:l,ref:this.paginationNode},Y),W,le?O.createElement("li",{title:h?f.prev_page:null,onClick:this.prev,tabIndex:ue?null:0,onKeyPress:this.runIfEnterPrev,className:ne("".concat(i,"-prev"),A({},"".concat(i,"-disabled"),ue)),"aria-disabled":ue},le):null,N,Q?O.createElement("li",{title:h?f.next_page:null,onClick:this.next,tabIndex:se?null:0,onKeyPress:this.runIfEnterNext,className:ne("".concat(i,"-next"),A({},"".concat(i,"-disabled"),se)),"aria-disabled":se},Q):null,O.createElement(Hl,{disabled:c,locale:f,rootPrefixCls:i,selectComponentClass:w,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:P,pageSize:R,pageSizeOptions:C,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:j}))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a={};if("current"in o&&(a.current=o.current,o.current!==i.current&&(a.currentInputValue=a.current)),"pageSize"in o&&o.pageSize!==i.pageSize){var l=i.current,c=Kn(o.pageSize,i,o);l=l>c?c:l,"current"in o||(a.current=l,a.currentInputValue=l),a.pageSize=o.pageSize}return a}}]),n}(O.Component);A(hv,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:Vl,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Vl,locale:JE,style:{},itemRender:e$,totalBoundaryShowSizeChanger:50});const bv=e=>s.createElement(Qi,Object.assign({},e,{showSearch:!0,size:"small"})),yv=e=>s.createElement(Qi,Object.assign({},e,{showSearch:!0,size:"middle"}));bv.Option=Qi.Option;yv.Option=Qi.Option;const t$=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","&: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}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},n$=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${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"}}},[`
251
+ &${t}-mini ${t}-prev ${t}-item-link,
252
+ &${t}-mini ${t}-next ${t}-item-link
253
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},Fs(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},r$=e=>{const{componentCls:t}=e;return{[`
254
+ &${t}-simple ${t}-prev,
255
+ &${t}-simple ${t}-next
256
+ `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${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:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},o$=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,fontFamily:"Arial, Helvetica, sans-serif",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}}},[`
257
+ ${t}-prev,
258
+ ${t}-jump-prev,
259
+ ${t}-jump-next
260
+ `]:{marginInlineEnd:e.marginXS},[`
261
+ ${t}-prev,
262
+ ${t}-next,
263
+ ${t}-jump-prev,
264
+ ${t}-jump-next
265
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",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:`${e.lineWidth}px ${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.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},js(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},i$=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},a$=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{"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:`${e.itemSize-2}px`,verticalAlign:"middle"}}),i$(e)),o$(e)),r$(e)),n$(e)),t$(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"}}},l$=e=>{const{componentCls:t}=e;return{[`${t}${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}: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:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},s$=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},yi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Co(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Co(e))}}}},c$=sn("Pagination",e=>{const t=dt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ym(e),Qm(e));return[a$(t),s$(t),e.wireframe&&l$(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}));var u$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Sv=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:l,selectComponentClass:c,responsive:u,showSizeChanger:d}=e,f=u$(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=U1(u),{getPrefixCls:v,direction:h,pagination:p={}}=s.useContext(ut),g=v("pagination",t),[b,y]=c$(g),S=d??p.showSizeChanger,x=s.useMemo(()=>{const _=s.createElement("span",{className:`${g}-item-ellipsis`},"•••"),N=s.createElement("button",{className:`${g}-item-link`,type:"button",tabIndex:-1},h==="rtl"?s.createElement(dr,null):s.createElement(Ur,null)),D=s.createElement("button",{className:`${g}-item-link`,type:"button",tabIndex:-1},h==="rtl"?s.createElement(Ur,null):s.createElement(dr,null)),L=s.createElement("a",{className:`${g}-item-link`},s.createElement("div",{className:`${g}-item-container`},h==="rtl"?s.createElement(Fu,{className:`${g}-item-link-icon`}):s.createElement(Lu,{className:`${g}-item-link-icon`}),_)),T=s.createElement("a",{className:`${g}-item-link`},s.createElement("div",{className:`${g}-item-container`},h==="rtl"?s.createElement(Lu,{className:`${g}-item-link-icon`}):s.createElement(Fu,{className:`${g}-item-link-icon`}),_));return{prevIcon:N,nextIcon:D,jumpPrevIcon:L,jumpNextIcon:T}},[h,g]),[w]=Fi("Pagination",Pd),E=Object.assign(Object.assign({},w),l),C=pr(a),$=C==="small"||!!(m&&!C&&u),P=v("select",n),R=ne({[`${g}-mini`]:$,[`${g}-rtl`]:h==="rtl"},p==null?void 0:p.className,r,o,y),z=Object.assign(Object.assign({},p==null?void 0:p.style),i);return b(s.createElement(hv,Object.assign({},x,f,{style:z,prefixCls:g,selectPrefixCls:P,className:R,selectComponentClass:c||($?bv:yv),locale:E,showSizeChanger:S})))};process.env.NODE_ENV!=="production"&&(Sv.displayName="Pagination");const d$=Sv;function Bu(e){const[t,n]=O.useState(null);return[O.useCallback((i,a,l)=>{const c=t??i,u=Math.min(c||0,i),d=Math.max(c||0,i),f=a.slice(u,d+1).map(h=>e(h)),m=f.some(h=>!l.has(h)),v=[];return f.forEach(h=>{m?(l.has(h)||v.push(h),l.add(h)):(l.delete(h),v.push(h))}),n(m?d:null),v},[t]),i=>{n(i)}]}const Mi=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},f$=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:i}=n;o&&t.set(i,r)}),t};function m$(e,t,n){const r=s.useMemo(()=>(e||[]).map(a=>(t&&(a=Object.assign(Object.assign({},a),{key:t(a)})),a)),[e,t]),[o,i]=s.useMemo(()=>{const a=[],l=new Array((n||[]).length),c=Mi(n||[]);return r.forEach(u=>{c.has(u.key)?l[c.get(u.key)]=u:a.push(u)}),[a,l]},[r,n,t]);return[r,o,i]}const v$=[];function _r(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function Hu(e){return Array.from(e).join(";")}function g$(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v$;const[r,o]=s.useMemo(()=>[new Set(e.map(u=>u.key)),new Set(t.map(u=>u.key))],[e,t]),[i,a]=s.useState(()=>_r(n,r)),[l,c]=s.useState(()=>_r(n,o));return s.useEffect(()=>{a(_r(n,r)),c(_r(n,o))},[n]),s.useEffect(()=>{a(_r(i,r)),c(_r(l,o))},[Hu(r),Hu(o)]),[i,l,a,c]}var p$={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"};const h$=p$;var Cv=function(t,n){return s.createElement(Ut,Lt({},t,{ref:n,icon:h$}))};process.env.NODE_ENV!=="production"&&(Cv.displayName="DeleteOutlined");const b$=s.forwardRef(Cv);var y$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const S$={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},C$=s.forwardRef((e,t)=>{const n=u=>{const{keyCode:d}=u;d===ce.ENTER&&u.preventDefault()},r=u=>{const{keyCode:d}=u,{onClick:f}=e;d===ce.ENTER&&f&&f()},{style:o,noStyle:i,disabled:a}=e,l=y$(e,["style","noStyle","disabled"]);let c={};return i||(c=Object.assign({},S$)),a&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),s.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:c}))}),x$=C$,w$=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:i,prefixCls:a,onClick:l,onRemove:c,showRemove:u}=e,d=ne(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:o});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[m]=Fi("Transfer",qn.Transfer),v={className:d,title:f},h=s.createElement("span",{className:`${a}-content-item-text`},n);return u?s.createElement("li",Object.assign({},v),h,s.createElement(x$,{disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{c==null||c(r)}},s.createElement(b$,null))):(v.onClick=i||r.disabled?void 0:p=>l(r,p),s.createElement("li",Object.assign({},v),s.createElement(nv,{className:`${a}-checkbox`,checked:o,disabled:i||r.disabled}),h))},E$=s.memo(w$),$$=["handleFilter","handleClear","checkedKeys"],O$=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),xv=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:i,showRemove:a,pagination:l,onScroll:c,onItemSelect:u,onItemRemove:d}=e,[f,m]=s.useState(1),v=s.useMemo(()=>l?O$(typeof l=="object"?l:{}):null,[l]),[h,p]=Wt(10,{value:v==null?void 0:v.pageSize});s.useEffect(()=>{if(v){const C=Math.ceil(r.length/h);m(Math.min(f,C))}},[r,v,h]);const g=(C,$)=>{u(C.key,!o.includes(C.key),$)},b=C=>{d==null||d([C.key])},y=C=>{m(C)},S=(C,$)=>{m(C),p($)},x=s.useMemo(()=>v?r.slice((f-1)*h,f*h):r,[f,r,v,h]);s.useImperativeHandle(t,()=>({items:x}));const w=v?s.createElement(d$,{size:"small",disabled:i,simple:v.simple,pageSize:h,showLessItems:v.showLessItems,showSizeChanger:v.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:y,onShowSizeChange:S}):null,E=ne(`${n}-content`,{[`${n}-content-show-remove`]:a});return s.createElement(s.Fragment,null,s.createElement("ul",{className:E,onScroll:c},(x||[]).map(C=>{let{renderedEl:$,renderedText:P,item:R}=C;return s.createElement(E$,{key:R.key,item:R,renderedText:P,renderedEl:$,prefixCls:n,showRemove:a,onClick:g,onRemove:b,checked:o.includes(R.key),disabled:i||R.disabled})})),w)};process.env.NODE_ENV!=="production"&&(xv.displayName="TransferListBody");const I$=s.forwardRef(xv),wv=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:i,handleClear:a}=e,l=s.useCallback(c=>{i==null||i(c),c.target.value===""&&(a==null||a())},[i]);return s.createElement(BE,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:!0,prefix:s.createElement(Rs,null)})};process.env.NODE_ENV!=="production"&&(wv.displayName="Search");const Ev=wv,R$=()=>null;function P$(e){return!!(e&&!Fn(e)&&Object.prototype.toString.call(e)==="[object Object]")}function so(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const N$=e=>e!==void 0,$v=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:i,showSearch:a=!1,style:l,searchPlaceholder:c,notFoundContent:u,selectAll:d,selectCurrent:f,selectInvert:m,removeAll:v,removeCurrent:h,showSelectAll:p=!0,showRemove:g,pagination:b,direction:y,itemsUnit:S,itemUnit:x,selectAllLabel:w,selectionsIcon:E,footer:C,renderList:$,onItemSelectAll:P,onItemRemove:R,handleFilter:z,handleClear:_,filterOption:N,render:D=R$}=e,[L,T]=O.useState(""),I=O.useRef({}),M=te=>{T(te.target.value),z(te)},j=()=>{T(""),_()},F=(te,ue)=>N?N(L,ue,y):te.includes(L),B=te=>{let ue=$?$(Object.assign(Object.assign({},te),{onItemSelect:(le,Q)=>te.onItemSelect(le,Q)})):null;const se=!!ue;return se||(ue=O.createElement(I$,Object.assign({ref:I},te))),{customize:se,bodyContent:ue}},H=te=>{const ue=D(te),se=P$(ue);return{item:te,renderedEl:se?ue.label:ue,renderedText:se?ue.value:ue}},Y=O.useMemo(()=>Array.isArray(u)?u[y==="left"?0:1]:u,[u,y]),[W,k]=O.useMemo(()=>{const te=[],ue=[];return n.forEach(se=>{const le=H(se);L&&!F(le.renderedText,se)||(te.push(se),ue.push(le))}),[te,ue]},[n,L]),oe=O.useMemo(()=>{if(o.length===0)return"none";const te=Mi(o);return W.every(ue=>te.has(ue.key)||!!ue.disabled)?"all":"part"},[o,W]),ie=O.useMemo(()=>{const te=a?O.createElement("div",{className:`${t}-body-search-wrapper`},O.createElement(Ev,{prefixCls:`${t}-search`,onChange:M,handleClear:j,placeholder:c,value:L,disabled:i})):null,{customize:ue,bodyContent:se}=B(Object.assign(Object.assign({},Qt(e,$$)),{filteredItems:W,filteredRenderItems:k,selectedKeys:o}));let le;return ue?le=O.createElement("div",{className:`${t}-body-customize-wrapper`},se):le=W.length?se:O.createElement("div",{className:`${t}-body-not-found`},Y),O.createElement("div",{className:ne(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},te,le)},[a,t,c,L,i,o,W,k,Y]),Z=O.createElement(nv,{disabled:n.length===0||i,checked:oe==="all",indeterminate:oe==="part",className:`${t}-checkbox`,onChange:()=>{P==null||P(W.filter(te=>!te.disabled).map(te=>{let{key:ue}=te;return ue}),oe!=="all")}}),q=(te,ue)=>{if(w)return typeof w=="function"?w({selectedCount:te,totalCount:ue}):w;const se=ue>1?S:x;return O.createElement(O.Fragment,null,(te>0?`${te}/`:"")+ue," ",se)},K=C&&(C.length<2?C(e):C(e,{direction:y})),ae=ne(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!K}),re=K?O.createElement("div",{className:`${t}-footer`},K):null,ee=!g&&!b&&Z;let U;g?U=[b?{key:"removeCurrent",label:h,onClick(){var te;const ue=so((((te=I.current)===null||te===void 0?void 0:te.items)||[]).map(se=>se.item));R==null||R(ue)}}:null,{key:"removeAll",label:v,onClick(){R==null||R(so(W))}}].filter(Boolean):U=[{key:"selectAll",label:d,onClick(){const te=so(W);P==null||P(te,te.length!==o.length)}},b?{key:"selectCurrent",label:f,onClick(){var te;const ue=((te=I.current)===null||te===void 0?void 0:te.items)||[];P==null||P(so(ue.map(se=>se.item)),!0)}}:null,{key:"selectInvert",label:m,onClick(){var te;const ue=so(b?(((te=I.current)===null||te===void 0?void 0:te.items)||[]).map(Q=>Q.item):W),se=new Set(o),le=[];ue.forEach(Q=>{se.has(Q)||le.push(Q)}),P==null||P(le,"replace")}}];const ve=O.createElement(qE,{className:`${t}-header-dropdown`,menu:{items:U},disabled:i},N$(E)?E:O.createElement(gm,null));return O.createElement("div",{className:ae,style:l},O.createElement("div",{className:`${t}-header`},p?O.createElement(O.Fragment,null,ee,ve):null,O.createElement("span",{className:`${t}-header-selected`},q(o.length,W.length)),O.createElement("span",{className:`${t}-header-title`},r)),ie,re)};process.env.NODE_ENV!=="production"&&($v.displayName="TransferList");const kl=$v,Ov=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:i="",leftActive:a,rightActive:l,className:c,style:u,direction:d,oneWay:f}=e;return s.createElement("div",{className:c,style:u},s.createElement(Eo,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:d!=="rtl"?s.createElement(dr,null):s.createElement(Ur,null)},i),!f&&s.createElement(Eo,{type:"primary",size:"small",disabled:t||!a,onClick:n,icon:d!=="rtl"?s.createElement(Ur,null):s.createElement(dr,null)},o))};process.env.NODE_ENV!=="production"&&(Ov.displayName="Operation");const Iv=Ov,M$=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:i,margin:a}=e,l=`${t}-table`,c=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${l}-wrapper`]:{[`${l}-small`]:{border:0,borderRadius:0,[`${l}-selection-column`]:{width:o,minWidth:o}},[`${l}-pagination${l}-pagination`]:{margin:`${a}px 0 ${i}px`}},[`${c}[disabled]`]:{backgroundColor:"transparent"}}}},Vu=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},T$=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},Vu(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},Vu(e,e.colorWarning))}},_$=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:c,controlItemBgActive:u,colorTextDisabled:d,listHeight:f,listWidth:m,listWidthLG:v,fontSizeIcon:h,marginXS:p,paddingSM:g,lineType:b,antCls:y,iconCls:S,motionDurationSlow:x,controlItemBgHover:w,borderRadiusLG:E,colorBgContainer:C,colorText:$,controlItemBgActiveHover:P}=e;return{display:"flex",flexDirection:"column",width:m,height:f,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${S}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${l-o}px ${g}px ${l}px`,color:$,background:C,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${E}px ${E}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},kr),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},Po()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:g}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${c}px ${g}px`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:p},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},kr),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${c}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:P}},"&-checked":{backgroundColor:u},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${o}px ${b} ${r}`},"&-checkbox":{lineHeight:1}}},A$=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:i,marginXXS:a,fontSizeIcon:l,fontSize:c,lineHeight:u,colorBgContainerDisabled:d}=e;return{[r]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:d}},[`${r}-list`]:_$(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:a},[n]:{fontSize:l}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(c*u)}})}},D$=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},z$=sn("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,i=Math.round(t*n),a=dt(e,{transferHeaderVerticalPadding:Math.ceil((o-r-i)/2)});return[A$(a),M$(a),T$(a),D$(a)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,i=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-i)/2}}),zo=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:i=[],style:a={},listStyle:l={},locale:c={},titles:u,disabled:d,showSearch:f=!1,operationStyle:m,showSelectAll:v,oneWay:h,pagination:p,status:g,prefixCls:b,className:y,rootClassName:S,selectionsIcon:x,filterOption:w,render:E,footer:C,children:$,rowKey:P,onScroll:R,onChange:z,onSearch:_,onSelectChange:N}=e,{getPrefixCls:D,renderEmpty:L,direction:T,transfer:I}=O.useContext(ut),M=D("transfer",b),[j,F]=z$(M),[B,H,Y]=m$(t,P,n),[W,k,oe,ie]=g$(H,Y,r),[Z,q]=Bu(J=>J.key),[K,ae]=Bu(J=>J.key);if(process.env.NODE_ENV!=="production"){const J=ln("Transfer");process.env.NODE_ENV!=="production"&&J(!p||!$,"usage","`pagination` not support customize render list.")}const re=O.useCallback((J,G)=>{if(J==="left"){const de=typeof G=="function"?G(W||[]):G;oe(de)}else{const de=typeof G=="function"?G(k||[]):G;ie(de)}},[W,k]),ee=(J,G)=>{(J==="left"?q:ae)(G)},U=O.useCallback((J,G)=>{J==="left"?N==null||N(G,k):N==null||N(W,G)},[W,k]),ve=J=>{var G;return(G=u??J.titles)!==null&&G!==void 0?G:[]},te=J=>{R==null||R("left",J)},ue=J=>{R==null||R("right",J)},se=J=>{const G=J==="right"?W:k,de=f$(B),me=G.filter(at=>!de.has(at)),pe=Mi(me),_e=J==="right"?me.concat(n):n.filter(at=>!pe.has(at)),ze=J==="right"?"left":"right";re(ze,[]),U(ze,[]),z==null||z(_e,J,me)},le=()=>{se("left"),ee("left",null)},Q=()=>{se("right"),ee("right",null)},ge=(J,G,de)=>{re(J,me=>{let pe=[];if(de==="replace")pe=G;else if(de)pe=Array.from(new Set([].concat(be(me),be(G))));else{const _e=Mi(G);pe=me.filter(ze=>!_e.has(ze))}return U(J,pe),pe}),ee(J,null)},fe=(J,G)=>{ge("left",J,G)},Se=(J,G)=>{ge("right",J,G)},Le=J=>_==null?void 0:_("left",J.target.value),De=J=>_==null?void 0:_("right",J.target.value),Ce=()=>_==null?void 0:_("left",""),ot=()=>_==null?void 0:_("right",""),Ie=(J,G,de,me,pe)=>{G.has(de)&&(G.delete(de),ee(J,null)),me&&(G.add(de),ee(J,pe))},Te=(J,G,de,me)=>{(J==="left"?Z:K)(me,G,de)},Re=(J,G,de,me)=>{const pe=J==="left",_e=be(pe?W:k),ze=new Set(_e),at=be(pe?H:Y).filter(Je=>!Je.disabled),tt=at.findIndex(Je=>Je.key===G);me&&_e.length>0?Te(J,at,ze,tt):Ie(J,ze,G,de,tt);const wt=Array.from(ze);U(J,wt),e.selectedKeys||re(J,wt)},he=(J,G,de)=>{Re("left",J,G,de==null?void 0:de.shiftKey)},Ye=(J,G,de)=>{Re("right",J,G,de==null?void 0:de.shiftKey)},Be=J=>{re("right",[]),z==null||z(n.filter(G=>!J.includes(G)),"left",be(J))},ht=J=>typeof l=="function"?l({direction:J}):l||{},rt=O.useContext(Pn),{hasFeedback:Ke,status:He}=rt,it=J=>Object.assign(Object.assign(Object.assign({},J),{notFoundContent:(L==null?void 0:L("Transfer"))||O.createElement(dm,{componentName:"Transfer"})}),c),Qe=Xi(He,g),bt=!$&&p,Ct=k.length>0,Ve=W.length>0,ke=ne(M,{[`${M}-disabled`]:d,[`${M}-customize-list`]:!!$,[`${M}-rtl`]:T==="rtl"},ar(M,Qe,Ke),I==null?void 0:I.className,y,S,F),[Ge]=Fi("Transfer",qn.Transfer),$e=it(Ge),[qe,ye]=ve($e);return j(O.createElement("div",{className:ke,style:Object.assign(Object.assign({},I==null?void 0:I.style),a)},O.createElement(kl,Object.assign({prefixCls:`${M}-list`,titleText:qe,dataSource:H,filterOption:w,style:ht("left"),checkedKeys:W,handleFilter:Le,handleClear:Ce,onItemSelect:he,onItemSelectAll:fe,render:E,showSearch:f,renderList:$,footer:C,onScroll:te,disabled:d,direction:T==="rtl"?"right":"left",showSelectAll:v,selectAllLabel:o[0],pagination:bt,selectionsIcon:x},$e)),O.createElement(Iv,{className:`${M}-operation`,rightActive:Ve,rightArrowText:i[0],moveToRight:Q,leftActive:Ct,leftArrowText:i[1],moveToLeft:le,style:m,disabled:d,direction:T,oneWay:h}),O.createElement(kl,Object.assign({prefixCls:`${M}-list`,titleText:ye,dataSource:Y,filterOption:w,style:ht("right"),checkedKeys:k,handleFilter:De,handleClear:ot,onItemSelect:Ye,onItemSelectAll:Se,onItemRemove:Be,render:E,showSearch:f,renderList:$,footer:C,onScroll:ue,disabled:d,direction:T==="rtl"?"left":"right",showSelectAll:v,selectAllLabel:o[1],showRemove:h,pagination:bt,selectionsIcon:x},$e))))};process.env.NODE_ENV!=="production"&&(zo.displayName="Transfer");zo.List=kl;zo.Search=Ev;zo.Operation=Iv;const L$=zo,F$=({...e})=>Pv.jsx(L$,{...e});exports.Transfer=F$;