@akinon/ui-tree-select 0.0.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +21 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +17 -0
- package/package.json +18 -11
- package/dist/index.cjs +0 -195
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -15460
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
package/dist/index.cjs
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Id=require("react/jsx-runtime"),Q=require("react"),Fr=require("react-dom");function $d(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 d=$d(Q);function Td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var js={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=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var i=typeof o;if(i==="string"||i==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var l=n.apply(null,o);l&&r.push(l)}}else if(i==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var s in o)t.call(o,s)&&o[s]&&r.push(s)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(js);var Dd=js.exports;const Be=Td(Dd);function Ge(){return Ge=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},Ge.apply(this,arguments)}var wo={exports:{}},it={};/**
|
|
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 tl;function kd(){if(tl)return it;tl=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function p(h){if(typeof h=="object"&&h!==null){var m=h.$$typeof;switch(m){case e:switch(h=h.type,h){case n:case a:case r:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case l:case i:case s:case v:case f:case o:return h;default:return m}}case t:return m}}}return it.ContextConsumer=i,it.ContextProvider=o,it.Element=e,it.ForwardRef=s,it.Fragment=n,it.Lazy=v,it.Memo=f,it.Portal=t,it.Profiler=a,it.StrictMode=r,it.Suspense=c,it.SuspenseList=u,it.isAsyncMode=function(){return!1},it.isConcurrentMode=function(){return!1},it.isContextConsumer=function(h){return p(h)===i},it.isContextProvider=function(h){return p(h)===o},it.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},it.isForwardRef=function(h){return p(h)===s},it.isFragment=function(h){return p(h)===n},it.isLazy=function(h){return p(h)===v},it.isMemo=function(h){return p(h)===f},it.isPortal=function(h){return p(h)===t},it.isProfiler=function(h){return p(h)===a},it.isStrictMode=function(h){return p(h)===r},it.isSuspense=function(h){return p(h)===c},it.isSuspenseList=function(h){return p(h)===u},it.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===a||h===r||h===c||h===u||h===g||typeof h=="object"&&h!==null&&(h.$$typeof===v||h.$$typeof===f||h.$$typeof===o||h.$$typeof===i||h.$$typeof===s||h.$$typeof===y||h.getModuleId!==void 0)},it.typeOf=p,it}var lt={};/**
|
|
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 nl;function _d(){return nl||(nl=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"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=!1,p=!1,h=!1,m=!1,b=!1,S;S=Symbol.for("react.module.reference");function E(K){return!!(typeof K=="string"||typeof K=="function"||K===n||K===a||b||K===r||K===c||K===u||m||K===g||y||p||h||typeof K=="object"&&K!==null&&(K.$$typeof===v||K.$$typeof===f||K.$$typeof===o||K.$$typeof===i||K.$$typeof===s||K.$$typeof===S||K.getModuleId!==void 0))}function C(K){if(typeof K=="object"&&K!==null){var pe=K.$$typeof;switch(pe){case e:var Se=K.type;switch(Se){case n:case a:case r:case c:case u:return Se;default:var Ee=Se&&Se.$$typeof;switch(Ee){case l:case i:case s:case v:case f:case o:return Ee;default:return pe}}case t:return pe}}}var w=i,x=o,$=e,M=s,P=n,D=v,k=f,T=t,F=a,A=r,R=c,O=u,N=!1,L=!1;function j(K){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(K){return L||(L=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function z(K){return C(K)===i}function U(K){return C(K)===o}function re(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function ne(K){return C(K)===s}function Oe(K){return C(K)===n}function he(K){return C(K)===v}function G(K){return C(K)===f}function q(K){return C(K)===t}function Z(K){return C(K)===a}function ae(K){return C(K)===r}function se(K){return C(K)===c}function Y(K){return C(K)===u}lt.ContextConsumer=w,lt.ContextProvider=x,lt.Element=$,lt.ForwardRef=M,lt.Fragment=P,lt.Lazy=D,lt.Memo=k,lt.Portal=T,lt.Profiler=F,lt.StrictMode=A,lt.Suspense=R,lt.SuspenseList=O,lt.isAsyncMode=j,lt.isConcurrentMode=V,lt.isContextConsumer=z,lt.isContextProvider=U,lt.isElement=re,lt.isForwardRef=ne,lt.isFragment=Oe,lt.isLazy=he,lt.isMemo=G,lt.isPortal=q,lt.isProfiler=Z,lt.isStrictMode=ae,lt.isSuspense=se,lt.isSuspenseList=Y,lt.isValidElementType=E,lt.typeOf=C}()),lt}process.env.NODE_ENV==="production"?wo.exports=kd():wo.exports=_d();var zs=wo.exports;function Pn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Q.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Pn(r)):zs.isFragment(r)&&r.props?n=n.concat(Pn(r.props.children,t)):n.push(r))}),n}var xo={},Ei=[],Fd=function(t){Ei.push(t)};function Bn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Ei.reduce(function(r,a){return a(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Ld(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Ei.reduce(function(r,a){return a(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Ws(){xo={}}function Bs(e,t,n){!t&&!xo[n]&&(e(!1,n),xo[n]=!0)}function we(e,t){Bs(Bn,e,t)}function Oo(e,t){Bs(Ld,e,t)}we.preMessage=Fd;we.resetWarned=Ws;we.noteOnce=Oo;function Ue(e){"@babel/helpers - typeof";return Ue=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},Ue(e)}function Ad(e,t){if(Ue(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ue(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Us(e){var t=Ad(e,"string");return Ue(t)==="symbol"?t:String(t)}function I(e,t,n){return t=Us(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rl(Object(n),!0).forEach(function(r){I(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xa(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ir(e){return xa(e)?e:e instanceof Q.Component?Fr.findDOMNode(e):null}function Wr(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Ci(e,t){typeof e=="function"?e(t):Ue(e)==="object"&&e&&"current"in e&&(e.current=t)}function wi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(a){return a});return r.length<=1?r[0]:function(a){t.forEach(function(o){Ci(o,a)})}}function ka(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wr(function(){return wi.apply(void 0,t)},t,function(r,a){return r.length!==a.length||r.every(function(o,i){return o!==a[i]})})}function _a(e){var t,n,r=zs.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}var No=d.createContext(null);function Kd(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),a=d.useRef([]),o=d.useContext(No),i=d.useCallback(function(l,s,c){r.current+=1;var u=r.current;a.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(l,s,c)},[n,o]);return d.createElement(No.Provider,{value:i},t)}var qs=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!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),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,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 a=0,o=this.__entries__;a<o.length;a++){var i=o[a];n.call(r,i[1],i[0])}},t}()}(),Po=typeof window<"u"&&typeof document<"u"&&window.document===document,Oa=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")()}(),Vd=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Oa):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Hd=2;function jd(e,t){var n=!1,r=!1,a=0;function o(){n&&(n=!1,e()),r&&l()}function i(){Vd(o)}function l(){var s=Date.now();if(n){if(s-a<Hd)return;r=!0}else n=!0,r=!1,setTimeout(i,t);a=s}return l}var zd=20,Wd=["top","right","bottom","left","width","height","size","weight"],Bd=typeof MutationObserver<"u",Ud=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=jd(this.refresh.bind(this),zd)}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(){!Po||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Bd?(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(){!Po||!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,a=Wd.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Gs=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},hr=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Oa},Xs=Fa(0,0,0,0);function Na(e){return parseFloat(e)||0}function al(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var o=e["border-"+a+"-width"];return r+Na(o)},0)}function qd(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var o=a[r],i=e["padding-"+o];n[o]=Na(i)}return n}function Gd(e){var t=e.getBBox();return Fa(0,0,t.width,t.height)}function Xd(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Xs;var r=hr(e).getComputedStyle(e),a=qd(r),o=a.left+a.right,i=a.top+a.bottom,l=Na(r.width),s=Na(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==t&&(l-=al(r,"left","right")+o),Math.round(s+i)!==n&&(s-=al(r,"top","bottom")+i)),!Qd(e)){var c=Math.round(l+o)-t,u=Math.round(s+i)-n;Math.abs(c)!==1&&(l-=c),Math.abs(u)!==1&&(s-=u)}return Fa(a.left,a.top,l,s)}var Yd=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 Qd(e){return e===hr(e).document.documentElement}function Zd(e){return Po?Yd(e)?Gd(e):Xd(e):Xs}function Jd(e){var t=e.x,n=e.y,r=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return Gs(i,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),i}function Fa(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ef=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Fa(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Zd(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}(),tf=function(){function e(t,n){var r=Jd(n);Gs(this,{target:t,contentRect:r})}return e}(),nf=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new qs,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 ef(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 tf(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}(),Ys=typeof WeakMap<"u"?new WeakMap:new qs,Qs=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=Ud.getInstance(),r=new nf(t,n,this);Ys.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Qs.prototype[e]=function(){var t;return(t=Ys.get(this))[e].apply(t,arguments)}});var rf=function(){return typeof Oa.ResizeObserver<"u"?Oa.ResizeObserver:Qs}(),Nn=new Map;function Zs(e){e.forEach(function(t){var n,r=t.target;(n=Nn.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var Js=new rf(Zs);process.env.NODE_ENV;process.env.NODE_ENV;function af(e,t){Nn.has(e)||(Nn.set(e,new Set),Js.observe(e)),Nn.get(e).add(t)}function of(e,t){Nn.has(e)&&(Nn.get(e).delete(t),Nn.get(e).size||(Js.unobserve(e),Nn.delete(e)))}function Qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ol(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,Us(r.key),r)}}function Zt(e,t,n){return t&&ol(e.prototype,t),n&&ol(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ro(e,t){return Ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ro(e,t)}function Sr(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&&Ro(e,t)}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pa(e)}function lf(){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 Ke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sf(e,t){if(t&&(Ue(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ke(e)}function Er(e){var t=lf();return function(){var r=Pa(e),a;if(t){var o=Pa(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return sf(this,a)}}var cf=function(e){Sr(n,e);var t=Er(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function uf(e,t){var n=e.children,r=e.disabled,a=d.useRef(null),o=d.useRef(null),i=d.useContext(No),l=typeof n=="function",s=l?n(a):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&d.isValidElement(s)&&_a(s),f=u?s.ref:null,v=ka(f,a),g=function(){var m;return Ir(a.current)||(a.current&&Ue(a.current)==="object"?Ir((m=a.current)===null||m===void 0?void 0:m.nativeElement):null)||Ir(o.current)};d.useImperativeHandle(t,function(){return g()});var y=d.useRef(e);y.current=e;var p=d.useCallback(function(h){var m=y.current,b=m.onResize,S=m.data,E=h.getBoundingClientRect(),C=E.width,w=E.height,x=h.offsetWidth,$=h.offsetHeight,M=Math.floor(C),P=Math.floor(w);if(c.current.width!==M||c.current.height!==P||c.current.offsetWidth!==x||c.current.offsetHeight!==$){var D={width:M,height:P,offsetWidth:x,offsetHeight:$};c.current=D;var k=x===Math.round(C)?C:x,T=$===Math.round(w)?w:$,F=_(_({},D),{},{offsetWidth:k,offsetHeight:T});i==null||i(F,h,S),b&&Promise.resolve().then(function(){b(F,h)})}},[]);return d.useEffect(function(){var h=g();return h&&!r&&af(h,p),function(){return of(h,p)}},[a.current,r]),d.createElement(cf,{ref:o},u?d.cloneElement(s,{ref:v}):s)}var ec=d.forwardRef(uf);process.env.NODE_ENV!=="production"&&(ec.displayName="SingleObserver");var df="rc-observer-key";function ff(e,t){var n=e.children,r=typeof n=="function"?[n]:Pn(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Bn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Bn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(df,"-").concat(o);return d.createElement(ec,Ge({},e,{key:i,ref:o===0?t:void 0}),a)})}var Tn=d.forwardRef(ff);process.env.NODE_ENV!=="production"&&(Tn.displayName="ResizeObserver");Tn.Collection=Kd;function xi(e,t){var n=_({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Mo(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 vf(e){if(Array.isArray(e))return Mo(e)}function tc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oi(e,t){if(e){if(typeof e=="string")return Mo(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 Mo(e,t)}}function hf(){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 ue(e){return vf(e)||tc(e)||Oi(e)||hf()}var nc=function(t){return+setTimeout(t,16)},rc=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(nc=function(t){return window.requestAnimationFrame(t)},rc=function(t){return window.cancelAnimationFrame(t)});var il=0,Ni=new Map;function ac(e){Ni.delete(e)}var Vt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;il+=1;var r=il;function a(o){if(o===0)ac(r),t();else{var i=nc(function(){a(o-1)});Ni.set(r,i)}}return a(n),r};Vt.cancel=function(e){var t=Ni.get(e);return ac(t),rc(t)};function Pi(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 gf(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function vt(e,t){if(e==null)return{};var n=gf(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(o);if(we(!s,"Warning: There may be circular references"),s)return!1;if(o===i)return!0;if(n&&l>1)return!1;r.add(o);var c=l+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var u=0;u<o.length;u++)if(!a(o[u],i[u],c))return!1;return!0}if(o&&i&&Ue(o)==="object"&&Ue(i)==="object"){var f=Object.keys(o);return f.length!==Object.keys(i).length?!1:f.every(function(v){return a(o[v],i[v],c)})}return!1}return a(e,t)}var ll="%",pf=function(){function e(t){Qt(this,e),I(this,"instanceId",void 0),I(this,"cache",new Map),this.instanceId=t}return Zt(e,[{key:"get",value:function(n){return this.cache.get(n.join(ll))||null}},{key:"update",value:function(n,r){var a=n.join(ll),o=this.cache.get(a),i=r(o);i===null?this.cache.delete(a):this.cache.set(a,i)}}]),e}(),Io="data-token-hash",Hn="data-css-hash",mf="data-cache-path",lr="__cssinjs_instance__";function yf(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Hn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[lr]=a[lr]||e,a[lr]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Hn,"]"))).forEach(function(a){var o=a.getAttribute(Hn);if(r[o]){if(a[lr]===e){var i;(i=a.parentNode)===null||i===void 0||i.removeChild(a)}}else r[o]=!0})}return new pf(e)}var bf=d.createContext({hashPriority:"low",cache:yf(),defaultCache:!0});const Ri=bf;function Ht(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Sf(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 sl="data-rc-order",cl="data-rc-priority",Ef="rc-util-key",$o=new Map;function ic(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ef}function La(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Cf(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function lc(e){return Array.from(($o.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ht())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=Cf(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(sl,i),l&&o&&s.setAttribute(cl,"".concat(o)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=La(t),u=c.firstChild;if(r){if(l){var f=lc(c).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(sl)))return!1;var g=Number(v.getAttribute(cl)||0);return o>=g});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function cc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=La(t);return lc(n).find(function(r){return r.getAttribute(ic(t))===e})}function Ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=cc(e,t);if(n){var r=La(t);r.removeChild(n)}}function wf(e,t){var n=$o.get(e);if(!n||!Sf(document,n)){var r=sc("",t),a=r.parentNode;$o.set(e,a),e.removeChild(r)}}function Lr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=La(n);wf(r,n);var a=cc(t,n);if(a){var o,i;if((o=n.csp)!==null&&o!==void 0&&o.nonce&&a.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var l;a.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var s=sc(e,n);return s.setAttribute(ic(n),t),s}function uc(e){if(Array.isArray(e))return e}function xf(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,a=u}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}function dc(){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 H(e,t){return uc(e)||xf(e,t)||Oi(e,t)||dc()}function Of(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 Mi=function(){function e(){Qt(this,e),I(this,"cache",void 0),I(this,"keys",void 0),I(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Zt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var s,c;i=(s=i)===null||s===void 0||(c=s.map)===null||c===void 0?void 0:c.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.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 a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var f=H(c,2),v=f[1];return a.internalGet(u)[1]<v?[u,a.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=H(o,1),l=i[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(c,u){if(u===n.length-1)s.set(c,{value:[r,a.cacheCallTimes++]});else{var f=s.get(c);f?f.map||(f.map=new Map):s.set(c,{map:new Map}),s=s.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var o;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(o=a.value)===null||o===void 0?void 0:o[0]}var i=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Of(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();I(Mi,"MAX_CACHE_SIZE",20);I(Mi,"MAX_CACHE_OFFSET",5);var ul=0,fc=function(){function e(t){Qt(this,e),I(this,"derivatives",void 0),I(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ul,t.length===0&&Bn(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ul+=1}return Zt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),eo=new Mi;function To(e){var t=Array.isArray(e)?e:[e];return eo.has(t)||eo.set(t,new fc(t)),eo.get(t)}var Nf=new WeakMap,to={};function Pf(e,t){for(var n=Nf,r=0;r<t.length;r+=1){var a=t[r];n.has(a)||n.set(a,new WeakMap),n=n.get(a)}return n.has(to)||n.set(to,e()),n.get(to)}var dl=new WeakMap;function Ma(e){var t=dl.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof fc?t+=r.id:r&&Ue(r)==="object"?t+=Ma(r):t+=r}),dl.set(e,t)),t}function Rf(e,t){return Pi("".concat(t,"_").concat(Ma(e)))}var $r="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),vc="_bAmBoO_";function Mf(e,t,n){if(Ht()){var r,a;Lr(e,$r);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",t==null||t(o),document.body.appendChild(o),process.env.NODE_ENV!=="production"&&(o.innerHTML="Test",o.style.zIndex="9999999");var i=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(vc);return(a=o.parentNode)===null||a===void 0||a.removeChild(o),Ra($r),i}return!1}var no=void 0;function If(){return no===void 0&&(no=Mf("@layer ".concat($r," { .").concat($r,' { content: "').concat(vc,'"!important; } }'),function(e){e.className=$r})),no}var fl=process.env.NODE_ENV!=="test"&&Ht()?d.useLayoutEffect:d.useEffect,dt=function(t,n){var r=d.useRef(!0);fl(function(){return t(r.current)},n),fl(function(){return r.current=!1,function(){r.current=!0}},[])},vl=function(t,n){dt(function(r){if(!r)return t()},n)},$f=_({},d),hl=$f.useInsertionEffect,Tf=function(t,n,r){d.useMemo(t,r),dt(function(){return n(!0)},r)},Df=hl?function(e,t,n){return hl(function(){return e(),t()},n)}:Tf;const kf=Df;var _f=_({},d),Ff=_f.useInsertionEffect,Lf=function(t){var n=[],r=!1;function a(o){if(r){process.env.NODE_ENV!=="production"&&Bn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(o)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Af=function(){return function(t){t()}},Kf=typeof Ff<"u"?Lf:Af;const Vf=Kf;function Hf(){return!1}var Do=!1;function jf(){return Do}const zf=process.env.NODE_ENV==="production"?Hf:jf;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ro=window;if(typeof ro.webpackHotUpdate=="function"){var Wf=ro.webpackHotUpdate;ro.webpackHotUpdate=function(){return Do=!0,setTimeout(function(){Do=!1},0),Wf.apply(void 0,arguments)}}}function hc(e,t,n,r,a){var o=d.useContext(Ri),i=o.cache,l=[e].concat(ue(t)),s=l.join("_"),c=Vf([s]),u=zf(),f=function(p){i.update(l,function(h){var m=h||[],b=H(m,2),S=b[0],E=S===void 0?0:S,C=b[1],w=C;process.env.NODE_ENV!=="production"&&C&&u&&(r==null||r(w,u),w=null);var x=w||n(),$=[E,x];return p?p($):$})};d.useMemo(function(){f()},[s]);var v=i.get(l);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.get(l));var g=v[1];return kf(function(){a==null||a(g)},function(y){return f(function(p){var h=H(p,2),m=h[0],b=h[1];return y&&m===0&&(a==null||a(g)),[m+1,b]}),function(){i.update(l,function(p){var h=p||[],m=H(h,2),b=m[0],S=b===void 0?0:b,E=m[1],C=S-1;return C===0?(c(function(){return r==null?void 0:r(E,!1)}),null):[S-1,E]})}},[s]),g}var Bf={},Uf=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Ln=new Map;function qf(e){Ln.set(e,(Ln.get(e)||0)+1)}function Gf(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Io,'="').concat(e,'"]'));n.forEach(function(r){if(r[lr]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Xf=0;function Yf(e,t){Ln.set(e,(Ln.get(e)||0)-1);var n=Array.from(Ln.keys()),r=n.filter(function(a){var o=Ln.get(a)||0;return o<=0});n.length-r.length>Xf&&r.forEach(function(a){Gf(a,t),Ln.delete(a)})}var Qf=function(t,n,r,a){var o=r.getDerivativeToken(t),i=_(_({},o),n);return a&&(i=a(i)),i};function Zf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Q.useContext(Ri),a=r.cache.instanceId,o=n.salt,i=o===void 0?"":o,l=n.override,s=l===void 0?Bf:l,c=n.formatToken,u=n.getComputedToken,f=Pf(function(){return Object.assign.apply(Object,[{}].concat(ue(t)))},t),v=Ma(f),g=Ma(s),y=hc("token",[i,e.id,v,g],function(){var p=u?u(f,s,e):Qf(f,s,e,c),h=Rf(p,i);p._tokenKey=h,qf(h);var m="".concat(Uf,"-").concat(Pi(h));return p._hashId=m,[p,m]},function(p){Yf(p[0]._tokenKey,a)});return y}var Jf={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},gc="comm",pc="rule",mc="decl",ev="@import",tv="@keyframes",nv="@layer",rv=Math.abs,Ii=String.fromCharCode;function yc(e){return e.trim()}function ya(e,t,n){return e.replace(t,n)}function av(e,t){return e.indexOf(t)}function Ar(e,t){return e.charCodeAt(t)|0}function Kr(e,t,n){return e.slice(t,n)}function On(e){return e.length}function ov(e){return e.length}function la(e,t){return t.push(e),e}var Aa=1,gr=1,bc=0,ln=0,Pt=0,Cr="";function $i(e,t,n,r,a,o,i,l){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Aa,column:gr,length:i,return:"",siblings:l}}function iv(){return Pt}function lv(){return Pt=ln>0?Ar(Cr,--ln):0,gr--,Pt===10&&(gr=1,Aa--),Pt}function hn(){return Pt=ln<bc?Ar(Cr,ln++):0,gr++,Pt===10&&(gr=1,Aa++),Pt}function jn(){return Ar(Cr,ln)}function ba(){return ln}function Ka(e,t){return Kr(Cr,e,t)}function ko(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 sv(e){return Aa=gr=1,bc=On(Cr=e),ln=0,[]}function cv(e){return Cr="",e}function ao(e){return yc(Ka(ln-1,_o(e===91?e+2:e===40?e+1:e)))}function uv(e){for(;(Pt=jn())&&Pt<33;)hn();return ko(e)>2||ko(Pt)>3?"":" "}function dv(e,t){for(;--t&&hn()&&!(Pt<48||Pt>102||Pt>57&&Pt<65||Pt>70&&Pt<97););return Ka(e,ba()+(t<6&&jn()==32&&hn()==32))}function _o(e){for(;hn();)switch(Pt){case e:return ln;case 34:case 39:e!==34&&e!==39&&_o(Pt);break;case 40:e===41&&_o(e);break;case 92:hn();break}return ln}function fv(e,t){for(;hn()&&e+Pt!==47+10;)if(e+Pt===42+42&&jn()===47)break;return"/*"+Ka(t,ln-1)+"*"+Ii(e===47?e:hn())}function vv(e){for(;!ko(jn());)hn();return Ka(e,ln)}function hv(e){return cv(Sa("",null,null,null,[""],e=sv(e),0,[0],e))}function Sa(e,t,n,r,a,o,i,l,s){for(var c=0,u=0,f=i,v=0,g=0,y=0,p=1,h=1,m=1,b=0,S="",E=a,C=o,w=r,x=S;h;)switch(y=b,b=hn()){case 40:if(y!=108&&Ar(x,f-1)==58){av(x+=ya(ao(b),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:x+=ao(b);break;case 9:case 10:case 13:case 32:x+=uv(y);break;case 92:x+=dv(ba()-1,7);continue;case 47:switch(jn()){case 42:case 47:la(gv(fv(hn(),ba()),t,n,s),s);break;default:x+="/"}break;case 123*p:l[c++]=On(x)*m;case 125*p:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:m==-1&&(x=ya(x,/\f/g,"")),g>0&&On(x)-f&&la(g>32?pl(x+";",r,n,f-1,s):pl(ya(x," ","")+";",r,n,f-2,s),s);break;case 59:x+=";";default:if(la(w=gl(x,t,n,c,u,a,l,S,E=[],C=[],f,o),o),b===123)if(u===0)Sa(x,t,w,w,E,o,f,l,C);else switch(v===99&&Ar(x,3)===110?100:v){case 100:case 108:case 109:case 115:Sa(e,w,w,r&&la(gl(e,w,w,0,0,a,l,S,a,E=[],f,C),C),a,C,f,l,r?E:C);break;default:Sa(x,w,w,w,[""],C,0,l,C)}}c=u=g=0,p=m=1,S=x="",f=i;break;case 58:f=1+On(x),g=y;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&lv()==125)continue}switch(x+=Ii(b),b*p){case 38:m=u>0?1:(x+="\f",-1);break;case 44:l[c++]=(On(x)-1)*m,m=1;break;case 64:jn()===45&&(x+=ao(hn())),v=jn(),u=f=On(S=x+=vv(ba())),b++;break;case 45:y===45&&On(x)==2&&(p=0)}}return o}function gl(e,t,n,r,a,o,i,l,s,c,u,f){for(var v=a-1,g=a===0?o:[""],y=ov(g),p=0,h=0,m=0;p<r;++p)for(var b=0,S=Kr(e,v+1,v=rv(h=i[p])),E=e;b<y;++b)(E=yc(h>0?g[b]+" "+S:ya(S,/&\f/g,g[b])))&&(s[m++]=E);return $i(e,t,n,a===0?pc:l,s,c,u,f)}function gv(e,t,n,r){return $i(e,t,n,gc,Ii(iv()),Kr(e,2,-2),0,r)}function pl(e,t,n,r,a){return $i(e,t,n,mc,Kr(e,0,r),Kr(e,r+1,-1),r,a)}function Fo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function pv(e,t,n,r){switch(e.type){case nv:if(e.children.length)break;case ev:case mc:return e.return=e.return||e.value;case gc:return"";case tv:return e.return=e.value+"{"+Fo(e.children,r)+"}";case pc:if(!On(e.value=e.props.join(",")))return""}return On(n=Fo(e.children,r))?e.return=e.value+"{"+n+"}":""}function Sc(e,t){var n=t.path,r=t.parentSelectors;we(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var mv=function(t,n,r){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof n!="string"||o.indexOf(n)===-1&&!a.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Sc("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},yv=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Sc("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},ml="data-ant-cssinjs-cache-path",Ec="_FILE_STYLE__",zn,Cc=!0;function bv(){if(!zn&&(zn={},Ht())){var e=document.createElement("div");e.className=ml,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(a){var o=a.split(":"),i=H(o,2),l=i[0],s=i[1];zn[l]=s});var n=document.querySelector("style[".concat(ml,"]"));if(n){var r;Cc=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function Sv(e){return bv(),!!zn[e]}function Ev(e){var t=zn[e],n=null;if(t&&Ht())if(Cc)n=Ec;else{var r=document.querySelector("style[".concat(Hn,'="').concat(zn[e],'"]'));r?n=r.innerHTML:delete zn[e]}return[n,t]}var yl=Ht(),wc="_skip_check_",xc="_multi_value_";function bl(e){var t=Fo(hv(e),pv);return t.replace(/\{%%%\:[^;];}/g,";")}function Cv(e){return Ue(e)==="object"&&e&&(wc in e||xc in e)}function wv(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(i){var l,s=i.trim().split(/\s+/),c=s[0]||"",u=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(u).concat(a).concat(c.slice(u.length)),[c].concat(ue(s.slice(1))).join(" ")});return o.join(",")}var xv=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:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,l=n.hashId,s=n.layer,c=n.path,u=n.hashPriority,f=n.transformers,v=f===void 0?[]:f,g=n.linters,y=g===void 0?[]:g,p="",h={};function m(w){var x=w.getName(l);if(!h[x]){var $=e(w.style,n,{root:!1,parentSelectors:i}),M=H($,1),P=M[0];h[x]="@keyframes ".concat(w.getName(l)).concat(P)}}function b(w){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function($){Array.isArray($)?b($,x):$&&x.push($)}),x}var S=b(Array.isArray(t)?t:[t]);if(S.forEach(function(w){var x=typeof w=="string"&&!a?{}:w;if(typeof x=="string")p+="".concat(x,`
|
|
24
|
-
`);else if(x._keyframe)m(x);else{var $=v.reduce(function(M,P){var D;return(P==null||(D=P.visit)===null||D===void 0?void 0:D.call(P,M))||M},x);Object.keys($).forEach(function(M){var P=$[M];if(Ue(P)==="object"&&P&&(M!=="animationName"||!P._keyframe)&&!Cv(P)){var D=!1,k=M.trim(),T=!1;(a||o)&&l?k.startsWith("@")?D=!0:k=wv(M,l,u):a&&!l&&(k==="&"||k==="")&&(k="",T=!0);var F=e(P,n,{root:T,injectHash:D,parentSelectors:[].concat(ue(i),[k])}),A=H(F,2),R=A[0],O=A[1];h=_(_({},h),O),p+="".concat(k).concat(R)}else{let j=function(V,z){process.env.NODE_ENV!=="production"&&(Ue(P)!=="object"||!(P!=null&&P[wc]))&&[mv,yv].concat(ue(y)).forEach(function(ne){return ne(V,z,{path:c,hashId:l,parentSelectors:i})});var U=V.replace(/[A-Z]/g,function(ne){return"-".concat(ne.toLowerCase())}),re=z;!Jf[V]&&typeof re=="number"&&re!==0&&(re="".concat(re,"px")),V==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(m(z),re=z.getName(l)),p+="".concat(U,":").concat(re,";")};var N,L=(N=P==null?void 0:P.value)!==null&&N!==void 0?N:P;Ue(P)==="object"&&P!==null&&P!==void 0&&P[xc]&&Array.isArray(L)?L.forEach(function(V){j(M,V)}):j(M,L)}})}}),!a)p="{".concat(p,"}");else if(s&&If()){var E=s.split(","),C=E[E.length-1].trim();p="@layer ".concat(C," {").concat(p,"}"),E.length>1&&(p="@layer ".concat(s,"{%%%:%}").concat(p))}return[p,h]};function Ov(e,t){return Pi("".concat(e.join("%")).concat(t))}function Nv(){return null}function Lo(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,u=d.useContext(Ri),f=u.autoClear,v=u.mock,g=u.defaultCache,y=u.hashPriority,p=u.container,h=u.ssrInline,m=u.transformers,b=u.linters,S=u.cache,E=n._tokenKey,C=[E].concat(ue(r)),w=yl;process.env.NODE_ENV!=="production"&&v!==void 0&&(w=v==="client");var x=hc("style",C,function(){var k=C.join("|");if(Sv(k)){var T=Ev(k),F=H(T,2),A=F[0],R=F[1];if(A)return[A,E,R,{},l,c]}var O=t(),N=xv(O,{hashId:a,hashPriority:y,layer:o,path:r.join("-"),transformers:m,linters:b}),L=H(N,2),j=L[0],V=L[1],z=bl(j),U=Ov(C,z);return[z,E,U,V,l,c]},function(k,T){var F=H(k,3),A=F[2];(T||f)&&yl&&Ra(A,{mark:Hn})},function(k){var T=H(k,4),F=T[0];T[1];var A=T[2],R=T[3];if(w&&F!==Ec){var O={mark:Hn,prepend:"queue",attachTo:p,priority:c},N=typeof i=="function"?i():i;N&&(O.csp={nonce:N});var L=Lr(F,A,O);L[lr]=S.instanceId,L.setAttribute(Io,E),process.env.NODE_ENV!=="production"&&L.setAttribute(mf,C.join("|")),Object.keys(R).forEach(function(j){Lr(bl(R[j]),"_effect-".concat(j),O)})}}),$=H(x,3),M=$[0],P=$[1],D=$[2];return function(k){var T;if(!h||w||!g)T=d.createElement(Nv,null);else{var F;T=d.createElement("style",Ge({},(F={},I(F,Io,P),I(F,Hn,D),F),{dangerouslySetInnerHTML:{__html:M}}))}return d.createElement(d.Fragment,null,T,k)}}var At=function(){function e(t,n){Qt(this,e),I(this,"name",void 0),I(this,"style",void 0),I(this,"_keyframe",!0),this.name=t,this.style=n}return Zt(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function er(e){return e.notSplit=!0,e}er(["borderTop","borderBottom"]),er(["borderTop"]),er(["borderBottom"]),er(["borderLeft","borderRight"]),er(["borderLeft"]),er(["borderRight"]);var Pv=Q.createContext({});const Ti=Pv;function Oc(e){return uc(e)||tc(e)||Oi(e)||dc()}function vn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Nc(e,t,n,r){if(!t.length)return n;var a=Oc(t),o=a[0],i=a.slice(1),l;return!e&&typeof o=="number"?l=[]:Array.isArray(e)?l=ue(e):l=_({},e),r&&n===void 0&&i.length===1?delete l[o][i[0]]:l[o]=Nc(l[o],i,n,r),l}function dn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!vn(e,t.slice(0,-1))?e:Nc(e,t,n,r)}function Rv(e){return Ue(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Sl(e){return Array.isArray(e)?[]:{}}var Mv=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function sr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sl(t[0]);return t.forEach(function(a){function o(i,l){var s=new Set(l),c=vn(a,i),u=Array.isArray(c);if(u||Rv(c)){if(!s.has(c)){s.add(c);var f=vn(r,i);u?r=dn(r,i,[]):(!f||Ue(f)!=="object")&&(r=dn(r,i,Sl(c))),Mv(c).forEach(function(v){o([].concat(ue(i),[v]),s)})}}else r=dn(r,i,c)}o([])}),r}function Pc(){}let xn=null;function Iv(){xn=null,Ws()}let Di=Pc;process.env.NODE_ENV!=="production"&&(Di=(e,t,n)=>{we(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&Iv()});const Rc=d.createContext({}),Va=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=d.useContext(Rc),n=(r,a,o)=>{if(!r)if(t===!1&&a==="deprecated"){const i=xn;xn||(xn={}),xn[e]=xn[e]||[],xn[e].includes(o||"")||xn[e].push(o||""),i||console.warn("[antd] There exists deprecated usage in your code:",xn)}else process.env.NODE_ENV!=="production"&&Di(r,e,o)};return n.deprecated=(r,a,o,i)=>{n(r,"deprecated",`\`${a}\` is deprecated. Please use \`${o}\` instead.${i?` ${i}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Pc,e},Ha=Di,$v=Q.createContext(void 0),Tv={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 Dv={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 kv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Mc=kv,_v={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"]},Dv),timePickerLocale:Object.assign({},Mc)},El=_v,Bt="${label} is not a valid ${type}",Fv={locale:"en",Pagination:Tv,DatePicker:El,TimePicker:Mc,Calendar:El,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Bt,method:Bt,array:Bt,object:Bt,number:Bt,date:Bt,boolean:Bt,integer:Bt,float:Bt,regexp:Bt,email:Bt,url:Bt,hex:Bt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},pr=Fv;Object.assign({},pr.Modal);let Ea=[];const Cl=()=>Ea.reduce((e,t)=>Object.assign(Object.assign({},e),t),pr.Modal);function Lv(e){if(e){const t=Object.assign({},e);return Ea.push(t),Cl(),()=>{Ea=Ea.filter(n=>n!==t),Cl()}}Object.assign({},pr.Modal)}const Av=Q.createContext(void 0),ki=Av,Kv=(e,t)=>{const n=d.useContext(ki),r=d.useMemo(()=>{var o;const i=t||pr[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),a=d.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?pr.locale:o},[n]);return[r,a]},Vv=Kv,Ic="internalMark",$c=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const o=Va("LocaleProvider");process.env.NODE_ENV!=="production"&&o(r===Ic,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}d.useEffect(()=>Lv(t&&t.Modal),[t]);const a=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(ki.Provider,{value:a},n)};process.env.NODE_ENV!=="production"&&($c.displayName="LocaleProvider");const Hv=$c;function Lt(e,t){jv(e)&&(e="100%");var n=zv(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 sa(e){return Math.min(1,Math.max(0,e))}function jv(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zv(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Tc(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ca(e){return e<=1?"".concat(Number(e)*100,"%"):e}function An(e){return e.length===1?"0"+e:String(e)}function Wv(e,t,n){return{r:Lt(e,255)*255,g:Lt(t,255)*255,b:Lt(n,255)*255}}function wl(e,t,n){e=Lt(e,255),t=Lt(t,255),n=Lt(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,l=(r+a)/2;if(r===a)i=0,o=0;else{var s=r-a;switch(i=l>.5?s/(2-r-a):s/(r+a),r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:i,l}}function oo(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 Bv(e,t,n){var r,a,o;if(e=Lt(e,360),t=Lt(t,100),n=Lt(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=oo(l,i,e+1/3),a=oo(l,i,e),o=oo(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function Ao(e,t,n){e=Lt(e,255),t=Lt(t,255),n=Lt(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,l=r-a,s=r===0?0:l/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,v:i}}function Uv(e,t,n){e=Lt(e,360)*6,t=Lt(t,100),n=Lt(n,100);var r=Math.floor(e),a=e-r,o=n*(1-t),i=n*(1-a*t),l=n*(1-(1-a)*t),s=r%6,c=[n,i,o,o,l,n][s],u=[l,n,n,i,o,o][s],f=[o,o,l,n,n,i][s];return{r:c*255,g:u*255,b:f*255}}function Ko(e,t,n,r){var a=[An(Math.round(e).toString(16)),An(Math.round(t).toString(16)),An(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function qv(e,t,n,r,a){var o=[An(Math.round(e).toString(16)),An(Math.round(t).toString(16)),An(Math.round(n).toString(16)),An(Gv(r))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Gv(e){return Math.round(parseFloat(e)*255).toString(16)}function xl(e){return qt(e)/255}function qt(e){return parseInt(e,16)}function Xv(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Vo={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 ir(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=Zv(e)),typeof e=="object"&&(En(e.r)&&En(e.g)&&En(e.b)?(t=Wv(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):En(e.h)&&En(e.s)&&En(e.v)?(r=ca(e.s),a=ca(e.v),t=Uv(e.h,r,a),i=!0,l="hsv"):En(e.h)&&En(e.s)&&En(e.l)&&(r=ca(e.s),o=ca(e.l),t=Bv(e.h,r,o),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Tc(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Yv="[-\\+]?\\d+%?",Qv="[-\\+]?\\d*\\.\\d+%?",In="(?:".concat(Qv,")|(?:").concat(Yv,")"),io="[\\s|\\(]+(".concat(In,")[,|\\s]+(").concat(In,")[,|\\s]+(").concat(In,")\\s*\\)?"),lo="[\\s|\\(]+(".concat(In,")[,|\\s]+(").concat(In,")[,|\\s]+(").concat(In,")[,|\\s]+(").concat(In,")\\s*\\)?"),un={CSS_UNIT:new RegExp(In),rgb:new RegExp("rgb"+io),rgba:new RegExp("rgba"+lo),hsl:new RegExp("hsl"+io),hsla:new RegExp("hsla"+lo),hsv:new RegExp("hsv"+io),hsva:new RegExp("hsva"+lo),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 Zv(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Vo[e])e=Vo[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=un.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=un.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=un.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=un.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=un.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=un.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=un.hex8.exec(e),n?{r:qt(n[1]),g:qt(n[2]),b:qt(n[3]),a:xl(n[4]),format:t?"name":"hex8"}:(n=un.hex6.exec(e),n?{r:qt(n[1]),g:qt(n[2]),b:qt(n[3]),format:t?"name":"hex"}:(n=un.hex4.exec(e),n?{r:qt(n[1]+n[1]),g:qt(n[2]+n[2]),b:qt(n[3]+n[3]),a:xl(n[4]+n[4]),format:t?"name":"hex8"}:(n=un.hex3.exec(e),n?{r:qt(n[1]+n[1]),g:qt(n[2]+n[2]),b:qt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function En(e){return!!un.CSS_UNIT.exec(String(e))}var Ft=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=Xv(t)),this.originalInput=t;var a=ir(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.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=a.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,a,o=t.r/255,i=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Tc(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=Ao(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=Ao(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=wl(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=wl(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ko(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),qv(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(Lt(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(Lt(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="#"+Ko(this.r,this.g,this.b,!1),n=0,r=Object.entries(Vo);n<r.length;n++){var a=r[n],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?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=sa(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=sa(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=sa(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=sa(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(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},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,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},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,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(r+i*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ua=2,Ol=.16,Jv=.05,eh=.05,th=.15,Dc=5,kc=4,nh=[{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 Nl(e){var t=e.r,n=e.g,r=e.b,a=Ao(t,n,r);return{h:a.h*360,s:a.s,v:a.v}}function da(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Ko(t,n,r,!1))}function rh(e,t,n){var r=n/100,a={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 a}function Pl(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ua*t:Math.round(e.h)+ua*t:r=n?Math.round(e.h)+ua*t:Math.round(e.h)-ua*t,r<0?r+=360:r>=360&&(r-=360),r}function Rl(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Ol*t:t===kc?r=e.s+Ol:r=e.s+Jv*t,r>1&&(r=1),n&&t===Dc&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Ml(e,t,n){var r;return n?r=e.v+eh*t:r=e.v-th*t,r>1&&(r=1),Number(r.toFixed(2))}function Un(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ir(e),a=Dc;a>0;a-=1){var o=Nl(r),i=da(ir({h:Pl(o,a,!0),s:Rl(o,a,!0),v:Ml(o,a,!0)}));n.push(i)}n.push(da(r));for(var l=1;l<=kc;l+=1){var s=Nl(r),c=da(ir({h:Pl(s,l),s:Rl(s,l),v:Ml(s,l)}));n.push(c)}return t.theme==="dark"?nh.map(function(u){var f=u.index,v=u.opacity,g=da(rh(ir(t.backgroundColor||"#141414"),ir(n[f]),v*100));return g}):n}var so={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"},Ca={},co={};Object.keys(so).forEach(function(e){Ca[e]=Un(so[e]),Ca[e].primary=Ca[e][5],co[e]=Un(so[e],{theme:"dark",backgroundColor:"#141414"}),co[e].primary=co[e][5]});var ah=Ca.blue;const oh=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},ih=oh;function lh(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 _c={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"},sh=Object.assign(Object.assign({},_c),{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}),Vr=sh;function ch(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,f=n(s),v=n(a),g=n(o),y=n(i),p=n(l),h=r(c,u),m=e.colorLink||e.colorInfo,b=n(m);return Object.assign(Object.assign({},h),{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:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Ft("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const uh=e=>{let t=e,n=e,r=e,a=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?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}},dh=uh;function fh(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=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:a+1},dh(r))}const Cn=(e,t)=>new Ft(e).setAlpha(t).toRgbString(),Or=(e,t)=>new Ft(e).darken(t).toHexString(),vh=e=>{const t=Un(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]}},hh=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Cn(r,.88),colorTextSecondary:Cn(r,.65),colorTextTertiary:Cn(r,.45),colorTextQuaternary:Cn(r,.25),colorFill:Cn(r,.15),colorFillSecondary:Cn(r,.06),colorFillTertiary:Cn(r,.04),colorFillQuaternary:Cn(r,.02),colorBgLayout:Or(n,4),colorBgContainer:Or(n,0),colorBgElevated:Or(n,0),colorBgSpotlight:Cn(r,.85),colorBgBlur:"transparent",colorBorder:Or(n,15),colorBorderSecondary:Or(n,6)}};function gh(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(2.71828,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const ph=e=>{const t=gh(e),n=t.map(a=>a.size),r=t.map(a=>a.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]}},mh=ph;function yh(e){const t=Object.keys(_c).map(n=>{const r=Un(e[n]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).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),ch(e,{generateColorPalettes:vh,generateNeutralColorPalettes:hh})),mh(e.fontSize)),lh(e)),ih(e)),fh(e))}const Fc=To(yh),Lc={token:Vr,override:{override:Vr},hashed:!0},Ac=Q.createContext(Lc),Kc="anticon",bh=(e,t)=>t||(e?`ant-${e}`:"ant"),Dn=d.createContext({getPrefixCls:bh,iconPrefixCls:Kc}),Sh=`-ant-${Date.now()}-${Math.random()}`;function Eh(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},a=(i,l)=>{const s=new Ft(i),c=Un(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new Ft(t.primaryColor),l=Un(i.toRgbString());l.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const s=new Ft(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
27
|
-
:root {
|
|
28
|
-
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
29
|
-
`)}
|
|
30
|
-
}
|
|
31
|
-
`.trim()}function Ch(e,t){const n=Eh(e,t);Ht()?Lr(n,`${Sh}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Ha(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Ho=d.createContext(!1),wh=e=>{let{children:t,disabled:n}=e;const r=d.useContext(Ho);return d.createElement(Ho.Provider,{value:n??r},t)},Vc=Ho,jo=d.createContext(void 0),xh=e=>{let{children:t,size:n}=e;const r=d.useContext(jo);return d.createElement(jo.Provider,{value:n||r},t)},ja=jo;function Oh(){const e=Q.useContext(Vc),t=Q.useContext(ja);return{componentDisabled:e,componentSize:t}}const Nh="5.11.0";function uo(e){return e>=0&&e<=255}function fa(e,t){const{r:n,g:r,b:a,a:o}=new Ft(e).toRgb();if(o<1)return e;const{r:i,g:l,b:s}=new Ft(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),f=Math.round((r-l*(1-c))/c),v=Math.round((a-s*(1-c))/c);if(uo(u)&&uo(f)&&uo(v))return new Ft({r:u,g:f,b:v,a:Math.round(c*100)/100}).toRgbString()}return new Ft({r:n,g:r,b:a,a:1}).toRgbString()}var Ph=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Hc(e){const{override:t}=e,n=Ph(e,["override"]),r=Object.assign({},t);Object.keys(Vr).forEach(v=>{delete r[v]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,l=768,s=992,c=1200,u=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:fa(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:fa(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:fa(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:fa(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.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:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
44
|
-
0 1px 2px -2px ${new Ft("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
45
|
-
0 3px 6px 0 ${new Ft("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
46
|
-
0 5px 12px 4px ${new Ft("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 Il=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const jc=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,o=Il(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=Hc(i),o&&Object.entries(o).forEach(l=>{let[s,c]=l;const{theme:u}=c,f=Il(c,["theme"]);let v=f;u&&(v=jc(Object.assign(Object.assign({},i),f),{override:f},u)),i[s]=v}),i};function wr(){const{token:e,hashed:t,theme:n,override:r}=Q.useContext(Ac),a=`${Nh}-${t||""}`,o=n||Fc,[i,l]=Zf(o,[Vr,e],{salt:a,override:r,getComputedToken:jc,formatToken:Hc});return[o,i,t?l:""]}function on(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function dr(e){var t=d.useRef(!1),n=d.useState(e),r=H(n,2),a=r[0],o=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,s){s&&t.current||o(l)}return[a,i]}function fo(e){return e!==void 0}function mr(e,t){var n=t||{},r=n.defaultValue,a=n.value,o=n.onChange,i=n.postState,l=dr(function(){return fo(a)?a:fo(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=H(l,2),c=s[0],u=s[1],f=a!==void 0?a:c,v=i?i(f):f,g=on(o),y=dr([f]),p=H(y,2),h=p[0],m=p[1];vl(function(){var S=h[0];c!==S&&g(c,S)},[h]),vl(function(){fo(a)||u(a)},[a]);var b=on(function(S,E){u(S,E),m([f],E)});return[v,b]}const zo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Wn=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}},_i=()=>({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"}}),Rh=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"}}}),Mh=(e,t)=>{const{fontFamily:n,fontSize:r}=e,a=`[class^="${t}"], [class*=" ${t}"]`;return{[a]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[a]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Wo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zc=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Bo=!0;function zt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!zc)return Object.assign.apply(Object,[{}].concat(t));Bo=!1;const r={};return t.forEach(a=>{Object.keys(a).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>a[i]})})}),Bo=!0,r}const $l={};function Ih(){}function $h(e){let t,n=e,r=Ih;return zc&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(a,o){return Bo&&t.add(o),a[o]}}),r=(a,o)=>{var i;$l[a]={global:Array.from(t),component:Object.assign(Object.assign({},(i=$l[a])===null||i===void 0?void 0:i.component),o)}}),{token:n,keys:t,flush:r}}const Th=(e,t)=>{const[n,r]=wr();return Lo({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},_i()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Wc=Th;function Br(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=Array.isArray(e)?e:[e,e],[o]=a,i=a.join("-");return l=>{const[s,c,u]=wr(),{getPrefixCls:f,iconPrefixCls:v,csp:g}=Q.useContext(Dn),y=f(),p={theme:s,token:c,hashId:u,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Lo(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",y]}),()=>[{"&":Rh(c)}]),Wc(v,g),[Lo(Object.assign(Object.assign({},p),{path:[i,l,v]}),()=>{const{token:h,flush:m}=$h(c),b=Object.assign({},c[o]);if(r.deprecatedTokens){const{deprecatedTokens:$}=r;$.forEach(M=>{let[P,D]=M;var k;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&we(!(b!=null&&b[P]),`The token '${String(P)}' of ${o} had deprecated, use '${String(D)}' instead.`),(b!=null&&b[P]||b!=null&&b[D])&&((k=b[D])!==null&&k!==void 0||(b[D]=b==null?void 0:b[P]))})}const S=typeof n=="function"?n(zt(h,b??{})):n,E=Object.assign(Object.assign({},S),b),C=`.${l}`,w=zt(h,{componentCls:C,prefixCls:l,iconCls:`.${v}`,antCls:`.${y}`},E),x=t(w,{hashId:u,prefixCls:l,rootPrefixCls:y,iconPrefixCls:v,overrideComponentToken:b});return m(o,E),[r.resetStyle===!1?null:Mh(c,l),x]}),u]}}function Dh(e,t){const n=e||{},r=n.inherit===!1||!t?Lc:t;return Wr(()=>{if(!e)return t;const a=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(o=>{a[o]=Object.assign(Object.assign({},a[o]),e.components[o])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:a})},[n,r],(a,o)=>a.some((i,l)=>{const s=o[l];return!oc(i,s,!0)}))}var kh=["children"],Bc=d.createContext({});function _h(e){var t=e.children,n=vt(e,kh);return d.createElement(Bc.Provider,{value:n},t)}var Fh=function(e){Sr(n,e);var t=Er(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component),Fn="none",va="appear",ha="enter",ga="leave",Tl="none",fn="prepare",cr="start",ur="active",Fi="end",Uc="prepared";function Dl(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:Dl("Animation","AnimationEnd"),transitionend:Dl("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Ah=Lh(Ht(),typeof window<"u"?window:{}),qc={};if(Ht()){var Kh=document.createElement("div");qc=Kh.style}var pa={};function Gc(e){if(pa[e])return pa[e];var t=Ah[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var o=n[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in qc)return pa[e]=t[o],pa[e]}return""}var Xc=Gc("animationend"),Yc=Gc("transitionend"),Qc=!!(Xc&&Yc),kl=Xc||"animationend",_l=Yc||"transitionend";function Fl(e,t){if(!e)return null;if(Ue(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Vh=function(e){var t=Q.useRef(),n=Q.useRef(e);n.current=e;var r=d.useCallback(function(i){n.current(i)},[]);function a(i){i&&(i.removeEventListener(_l,r),i.removeEventListener(kl,r))}function o(i){t.current&&t.current!==i&&a(t.current),i&&i!==t.current&&(i.addEventListener(_l,r),i.addEventListener(kl,r),t.current=i)}return d.useEffect(function(){return function(){a(t.current)}},[]),[o,a]};var Zc=Ht()?Q.useLayoutEffect:Q.useEffect;const Hh=function(){var e=d.useRef(null);function t(){Vt.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Vt(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var jh=[fn,cr,ur,Fi],zh=[fn,Uc],Jc=!1,Wh=!0;function eu(e){return e===ur||e===Fi}const Bh=function(e,t,n){var r=dr(Tl),a=H(r,2),o=a[0],i=a[1],l=Hh(),s=H(l,2),c=s[0],u=s[1];function f(){i(fn,!0)}var v=t?zh:jh;return Zc(function(){if(o!==Tl&&o!==Fi){var g=v.indexOf(o),y=v[g+1],p=n(o);p===Jc?i(y,!0):y&&c(function(h){function m(){h.isCanceled()||i(y,!0)}p===!0?m():Promise.resolve(p).then(m)})}},[e,o]),d.useEffect(function(){return function(){u()}},[]),[f,o]};function Uh(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,c=s===void 0?!0:s,u=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,g=r.onEnterPrepare,y=r.onLeavePrepare,p=r.onAppearStart,h=r.onEnterStart,m=r.onLeaveStart,b=r.onAppearActive,S=r.onEnterActive,E=r.onLeaveActive,C=r.onAppearEnd,w=r.onEnterEnd,x=r.onLeaveEnd,$=r.onVisibleChanged,M=dr(),P=H(M,2),D=P[0],k=P[1],T=dr(Fn),F=H(T,2),A=F[0],R=F[1],O=dr(null),N=H(O,2),L=N[0],j=N[1],V=Q.useRef(!1),z=Q.useRef(null);function U(){return n()}var re=Q.useRef(!1);function ne(){R(Fn,!0),j(null,!0)}function Oe(ge){var ee=U();if(!(ge&&!ge.deadline&&ge.target!==ee)){var me=re.current,de;A===va&&me?de=C==null?void 0:C(ee,ge):A===ha&&me?de=w==null?void 0:w(ee,ge):A===ga&&me&&(de=x==null?void 0:x(ee,ge)),A!==Fn&&me&&de!==!1&&ne()}}var he=Vh(Oe),G=H(he,1),q=G[0],Z=function(ee){var me,de,Re;switch(ee){case va:return me={},I(me,fn,v),I(me,cr,p),I(me,ur,b),me;case ha:return de={},I(de,fn,g),I(de,cr,h),I(de,ur,S),de;case ga:return Re={},I(Re,fn,y),I(Re,cr,m),I(Re,ur,E),Re;default:return{}}},ae=d.useMemo(function(){return Z(A)},[A]),se=Bh(A,!e,function(ge){if(ge===fn){var ee=ae[fn];return ee?ee(U()):Jc}if(pe in ae){var me;j(((me=ae[pe])===null||me===void 0?void 0:me.call(ae,U(),null))||null)}return pe===ur&&(q(U()),u>0&&(clearTimeout(z.current),z.current=setTimeout(function(){Oe({deadline:!0})},u))),pe===Uc&&ne(),Wh}),Y=H(se,2),K=Y[0],pe=Y[1],Se=eu(pe);re.current=Se,Zc(function(){k(t);var ge=V.current;V.current=!0;var ee;!ge&&t&&l&&(ee=va),ge&&t&&o&&(ee=ha),(ge&&!t&&c||!ge&&f&&!t&&c)&&(ee=ga);var me=Z(ee);ee&&(e||me[fn])?(R(ee),K()):R(Fn)},[t]),Q.useEffect(function(){(A===va&&!l||A===ha&&!o||A===ga&&!c)&&R(Fn)},[l,o,c]),Q.useEffect(function(){return function(){V.current=!1,clearTimeout(z.current)}},[]);var Ee=d.useRef(!1);Q.useEffect(function(){D&&(Ee.current=!0),D!==void 0&&A===Fn&&((Ee.current||D)&&($==null||$(D)),Ee.current=!0)},[D,A]);var oe=L;return ae[fn]&&pe===cr&&(oe=_({transition:"none"},oe)),[A,pe,oe,D??t]}function qh(e){var t=e;Ue(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=d.forwardRef(function(a,o){var i=a.visible,l=i===void 0?!0:i,s=a.removeOnLeave,c=s===void 0?!0:s,u=a.forceRender,f=a.children,v=a.motionName,g=a.leavedClassName,y=a.eventProps,p=d.useContext(Bc),h=p.motion,m=n(a,h),b=Q.useRef(),S=Q.useRef();function E(){try{return b.current instanceof HTMLElement?b.current:Ir(S.current)}catch{return null}}var C=Uh(m,l,E,a),w=H(C,4),x=w[0],$=w[1],M=w[2],P=w[3],D=d.useRef(P);P&&(D.current=!0);var k=d.useCallback(function(j){b.current=j,Ci(o,j)},[o]),T,F=_(_({},y),{},{visible:l});if(!f)T=null;else if(x===Fn)P?T=f(_({},F),k):!c&&D.current&&g?T=f(_(_({},F),{},{className:g}),k):u||!c&&!g?T=f(_(_({},F),{},{style:{display:"none"}}),k):T=null;else{var A,R;$===fn?R="prepare":eu($)?R="active":$===cr&&(R="start");var O=Fl(v,"".concat(x,"-").concat(R));T=f(_(_({},F),{},{className:Be(Fl(v,x),(A={},I(A,O,O&&R),I(A,v,typeof v=="string"),A)),style:M}),k)}if(d.isValidElement(T)&&_a(T)){var N=T,L=N.ref;L||(T=d.cloneElement(T,{ref:k}))}return d.createElement(Fh,{ref:S},T)});return r.displayName="CSSMotion",r}const za=qh(Qc);var Uo="add",qo="keep",Go="remove",vo="removed";function Gh(e){var t;return e&&Ue(e)==="object"&&"key"in e?t=e:t={key:e},_(_({},t),{},{key:String(t.key)})}function Xo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Gh)}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,a=t.length,o=Xo(e),i=Xo(t);o.forEach(function(c){for(var u=!1,f=r;f<a;f+=1){var v=i[f];if(v.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(g){return _(_({},g),{},{status:Uo})})),r=f),n.push(_(_({},v),{},{status:qo})),r+=1,u=!0;break}}u||n.push(_(_({},c),{},{status:Go}))}),r<a&&(n=n.concat(i.slice(r).map(function(c){return _(_({},c),{},{status:Uo})})));var l={};n.forEach(function(c){var u=c.key;l[u]=(l[u]||0)+1});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(u){var f=u.key,v=u.status;return f!==c||v!==Go}),n.forEach(function(u){u.key===c&&(u.status=qo)})}),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]:za,n=function(r){Sr(o,r);var a=Er(o);function o(){var i;Qt(this,o);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return i=a.call.apply(a,[this].concat(s)),I(Ke(i),"state",{keyEntities:[]}),I(Ke(i),"removeKey",function(u){var f=i.state.keyEntities,v=f.map(function(g){return g.key!==u?g:_(_({},g),{},{status:vo})});return i.setState({keyEntities:v}),v.filter(function(g){var y=g.status;return y!==vo}).length}),i}return Zt(o,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,u=c.component,f=c.children,v=c.onVisibleChanged,g=c.onAllRemoved,y=vt(c,Yh),p=u||d.Fragment,h={};return Zh.forEach(function(m){h[m]=y[m],delete y[m]}),delete y.keys,d.createElement(p,y,s.map(function(m,b){var S=m.status,E=vt(m,Qh),C=S===Uo||S===qo;return d.createElement(t,Ge({},h,{key:E.key,visible:C,eventProps:E,onVisibleChanged:function(x){if(v==null||v(x,{key:E.key}),!x){var $=l.removeKey(E.key);$===0&&g&&g()}}}),function(w,x){return f(_(_({},w),{},{index:b}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,u=s.keyEntities,f=Xo(c),v=Xh(u,f);return{keyEntities:v.filter(function(g){var y=u.find(function(p){var h=p.key;return g.key===h});return!(y&&y.status===vo&&g.status===Go)})}}}]),o}(d.Component);return I(n,"defaultProps",{component:"div"}),n}Jh(Qc);function eg(e){const{children:t}=e,[,n]=wr(),{motion:r}=n,a=d.useRef(!1);return a.current=a.current||r===!1,a.current?d.createElement(_h,{motion:r},t):t}const tu=d.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Va("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(tu.displayName="PropWarning");const tg=process.env.NODE_ENV!=="production"?tu:()=>null;var ng=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let Yo=!1;process.env.NODE_ENV;const rg=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],ag="ant";let nu;function og(){return nu||ag}function ig(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const lg=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(nu=t),r&&ig(r)&&(process.env.NODE_ENV!=="production"&&Ha(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ch(og(),r))},sg=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:l,componentSize:s,direction:c,space:u,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:g,popupOverflow:y,legacyLocale:p,parentContext:h,iconPrefixCls:m,theme:b,componentDisabled:S,segmented:E,statistic:C,spin:w,calendar:x,carousel:$,cascader:M,collapse:P,typography:D,checkbox:k,descriptions:T,divider:F,drawer:A,skeleton:R,steps:O,image:N,layout:L,list:j,mentions:V,modal:z,progress:U,result:re,slider:ne,breadcrumb:Oe,menu:he,pagination:G,input:q,empty:Z,badge:ae,radio:se,rate:Y,switch:K,transfer:pe,avatar:Se,message:Ee,tag:oe,table:ge,card:ee,tabs:me,timeline:de,timePicker:Re,upload:Ve,notification:ye,tree:J,colorPicker:Xe,datePicker:Ne,rangePicker:$e,flex:Je,wave:Me,dropdown:st,warning:ht}=e,nt=d.useCallback((xe,je)=>{const{prefixCls:fe}=e;if(je)return je;const Ce=fe||h.getPrefixCls("");return xe?`${Ce}-${xe}`:Ce},[h.getPrefixCls,e.prefixCls]),De=m||h.iconPrefixCls||Kc,Qe=n||h.csp;Wc(De,Qe);const at=Dh(b,h.theme);process.env.NODE_ENV!=="production"&&(Yo=Yo||!!at);const ot={csp:Qe,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:l||p,direction:c,space:u,virtual:f,popupMatchSelectWidth:g??v,popupOverflow:y,getPrefixCls:nt,iconPrefixCls:De,theme:at,segmented:E,statistic:C,spin:w,calendar:x,carousel:$,cascader:M,collapse:P,typography:D,checkbox:k,descriptions:T,divider:F,drawer:A,skeleton:R,steps:O,image:N,input:q,layout:L,list:j,mentions:V,modal:z,progress:U,result:re,slider:ne,breadcrumb:Oe,menu:he,pagination:G,empty:Z,badge:ae,radio:se,rate:Y,switch:K,transfer:pe,avatar:Se,message:Ee,tag:oe,table:ge,card:ee,tabs:me,timeline:de,timePicker:Re,upload:Ve,notification:ye,tree:J,colorPicker:Xe,datePicker:Ne,rangePicker:$e,flex:Je,wave:Me,dropdown:st,warning:ht},ke=Object.assign({},h);Object.keys(ot).forEach(xe=>{ot[xe]!==void 0&&(ke[xe]=ot[xe])}),rg.forEach(xe=>{const je=e[xe];je&&(ke[xe]=je)});const ft=Wr(()=>ke,ke,(xe,je)=>{const fe=Object.keys(xe),Ce=Object.keys(je);return fe.length!==Ce.length||fe.some(W=>xe[W]!==je[W])}),pt=d.useMemo(()=>({prefixCls:De,csp:Qe}),[De,Qe]);let He=d.createElement(d.Fragment,null,d.createElement(tg,{dropdownMatchSelectWidth:v}),t);const qe=d.useMemo(()=>{var xe,je,fe,Ce;return sr(((xe=pr.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((fe=(je=ft.locale)===null||je===void 0?void 0:je.Form)===null||fe===void 0?void 0:fe.defaultValidateMessages)||{},((Ce=ft.form)===null||Ce===void 0?void 0:Ce.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ft,i==null?void 0:i.validateMessages]);Object.keys(qe).length>0&&(He=d.createElement($v.Provider,{value:qe},He)),l&&(He=d.createElement(Hv,{locale:l,_ANT_MARK__:Ic},He)),(De||Qe)&&(He=d.createElement(Ti.Provider,{value:pt},He)),s&&(He=d.createElement(xh,{size:s},He)),He=d.createElement(eg,null,He);const _e=d.useMemo(()=>{const xe=at||{},{algorithm:je,token:fe,components:Ce}=xe,W=ng(xe,["algorithm","token","components"]),ie=je&&(!Array.isArray(je)||je.length>0)?To(je):Fc,le={};Object.entries(Ce||{}).forEach(ze=>{let[Ye,ut]=ze;const tt=Object.assign({},ut);"algorithm"in tt&&(tt.algorithm===!0?tt.theme=ie:(Array.isArray(tt.algorithm)||typeof tt.algorithm=="function")&&(tt.theme=To(tt.algorithm)),delete tt.algorithm),le[Ye]=tt});const ve=Object.assign(Object.assign({},Vr),fe);return Object.assign(Object.assign({},W),{theme:ie,token:ve,components:le,override:Object.assign({override:ve},le)})},[at]);return b&&(He=d.createElement(Ac.Provider,{value:_e},He)),ft.warning&&(He=d.createElement(Rc.Provider,{value:ft.warning},He)),S!==void 0&&(He=d.createElement(wh,{disabled:S},He)),d.createElement(Dn.Provider,{value:ft},He)},Xn=e=>{const t=d.useContext(Dn),n=d.useContext(ki);return d.createElement(sg,Object.assign({parentContext:t,legacyLocale:n},e))};Xn.ConfigContext=Dn;Xn.SizeContext=ja;Xn.config=lg;Xn.useConfig=Oh;Object.defineProperty(Xn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Ha(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),ja)});process.env.NODE_ENV!=="production"&&(Xn.displayName="ConfigProvider");const cg=Xn;function Yt(){return Yt=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},Yt.apply(this,arguments)}function ug(e){if(Array.isArray(e))return e}function dg(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,a=u}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}function Ll(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,t){if(e){if(typeof e=="string")return Ll(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 Ll(e,t)}}function vg(){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 ru(e,t){return ug(e)||dg(e,t)||fg(e,t)||vg()}function qn(e){"@babel/helpers - typeof";return qn=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},qn(e)}function hg(e,t){if(qn(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qn(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gg(e){var t=hg(e,"string");return qn(t)==="symbol"?t:String(t)}function Qo(e,t,n){return t=gg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pg(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function au(e,t){if(e==null)return{};var n=pg(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Al(Object(n),!0).forEach(function(r){Qo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mg(){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 Kl="data-rc-order",Vl="data-rc-priority",bg="rc-util-key",Zo=new Map;function ou(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):bg}function Li(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Sg(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function iu(e){return Array.from((Zo.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function lu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!mg())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=Sg(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(Kl,i),l&&o&&s.setAttribute(Vl,"".concat(o)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=Li(t),u=c.firstChild;if(r){if(l){var f=iu(c).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Kl)))return!1;var g=Number(v.getAttribute(Vl)||0);return o>=g});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Li(t);return iu(n).find(function(r){return r.getAttribute(ou(t))===e})}function Cg(e,t){var n=Zo.get(e);if(!n||!yg(document,n)){var r=lu("",t),a=r.parentNode;Zo.set(e,a),e.removeChild(r)}}function wg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Li(n);Cg(r,n);var a=Eg(t,n);if(a){var o,i;if((o=n.csp)!==null&&o!==void 0&&o.nonce&&a.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var l;a.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var s=lu(e,n);return s.setAttribute(ou(n),t),s}function su(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function xg(e){return su(e)instanceof ShadowRoot}function Og(e){return xg(e)?su(e):null}var Jo={},Ai=[],Ng=function(t){Ai.push(t)};function Pg(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Ai.reduce(function(r,a){return a(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Rg(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Ai.reduce(function(r,a){return a(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Mg(){Jo={}}function cu(e,t,n){!t&&!Jo[n]&&(e(!1,n),Jo[n]=!0)}function Wa(e,t){cu(Pg,e,t)}function Ig(e,t){cu(Rg,e,t)}Wa.preMessage=Ng;Wa.resetWarned=Mg;Wa.noteOnce=Ig;function $g(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Tg(e,t){Wa(e,"[@ant-design/icons] ".concat(t))}function Hl(e){return qn(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(qn(e.icon)==="object"||typeof e.icon=="function")}function jl(){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[$g(n)]=r}return t},{})}function ei(e,t,n){return n?Q.createElement(e.tag,$n($n({key:t},jl(e.attrs)),n),(e.children||[]).map(function(r,a){return ei(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):Q.createElement(e.tag,$n({key:t},jl(e.attrs)),(e.children||[]).map(function(r,a){return ei(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function uu(e){return Un(e)[0]}function du(e){return e?Array.isArray(e)?e:[e]:[]}var Dg=`
|
|
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
|
-
`,kg=function(t){var n=Q.useContext(Ti),r=n.csp,a=n.prefixCls,o=Dg;a&&(o=o.replace(/anticon/g,a)),Q.useEffect(function(){var i=t.current,l=Og(i);wg(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},_g=["icon","className","onClick","style","primaryColor","secondaryColor"],Tr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Fg(e){var t=e.primaryColor,n=e.secondaryColor;Tr.primaryColor=t,Tr.secondaryColor=n||uu(t),Tr.calculated=!!n}function Lg(){return $n({},Tr)}var Ba=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,l=t.secondaryColor,s=au(t,_g),c=d.useRef(),u=Tr;if(i&&(u={primaryColor:i,secondaryColor:l||uu(i)}),kg(c),Tg(Hl(n),"icon should be icon definiton, but got ".concat(n)),!Hl(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=$n($n({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),ei(f.icon,"svg-".concat(f.name),$n($n({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Ba.displayName="IconReact";Ba.getTwoToneColors=Lg;Ba.setTwoToneColors=Fg;const Ki=Ba;function fu(e){var t=du(e),n=ru(t,2),r=n[0],a=n[1];return Ki.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Ag(){var e=Ki.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Kg=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];fu(ah.primary);var Ua=d.forwardRef(function(e,t){var n,r=e.className,a=e.icon,o=e.spin,i=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=au(e,Kg),f=d.useContext(Ti),v=f.prefixCls,g=v===void 0?"anticon":v,y=f.rootClassName,p=Be(y,g,(n={},Qo(n,"".concat(g,"-").concat(a.name),!!a.name),Qo(n,"".concat(g,"-spin"),!!o||a.name==="loading"),n),r),h=l;h===void 0&&s&&(h=-1);var m=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=du(c),S=ru(b,2),E=S[0],C=S[1];return d.createElement("span",Yt({role:"img","aria-label":a.name},u,{ref:t,tabIndex:h,onClick:s,className:p}),d.createElement(Ki,{icon:a,primaryColor:E,secondaryColor:C,style:m}))});Ua.displayName="AntdIcon";Ua.getTwoToneColor=Ag;Ua.setTwoToneColor=fu;const yn=Ua;var Vg={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 Hg=Vg;var vu=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:Hg}))};process.env.NODE_ENV!=="production"&&(vu.displayName="CloseCircleFilled");const jg=d.forwardRef(vu);var zg={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 Wg=zg;var hu=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:Wg}))};process.env.NODE_ENV!=="production"&&(hu.displayName="CloseOutlined");const Bg=d.forwardRef(hu);var Ug=`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`,qg=`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`,Gg="".concat(Ug," ").concat(qg).split(/[\s\n]+/),Xg="aria-",Yg="data-";function zl(e,t){return e.indexOf(t)===0}function yr(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=_({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||zl(a,Xg))||n.data&&zl(a,Yg)||n.attr&&Gg.includes(a))&&(r[a]=e[a])}),r}const{isValidElement:ti}=d;function Qg(e,t,n){return ti(e)?d.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Wl(e,t){return Qg(e,e,t)}var B={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>=B.F1&&n<=B.F12)return!1;switch(n){case B.ALT:case B.CAPS_LOCK:case B.CONTEXT_MENU:case B.CTRL:case B.DOWN:case B.END:case B.ESC:case B.HOME:case B.INSERT:case B.LEFT:case B.MAC_FF_META:case B.META:case B.NUMLOCK:case B.NUM_CENTER:case B.PAGE_DOWN:case B.PAGE_UP:case B.PAUSE:case B.PRINT_SCREEN:case B.RIGHT:case B.SHIFT:case B.UP:case B.WIN_KEY:case B.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=B.ZERO&&t<=B.NINE||t>=B.NUM_ZERO&&t<=B.NUM_MULTIPLY||t>=B.A&&t<=B.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case B.SPACE:case B.QUESTION_MARK:case B.NUM_PLUS:case B.NUM_MINUS:case B.NUM_PERIOD:case B.NUM_DIVISION:case B.SEMICOLON:case B.DASH:case B.EQUALS:case B.COMMA:case B.PERIOD:case B.SLASH:case B.APOSTROPHE:case B.SINGLE_QUOTE:case B.OPEN_SQUARE_BRACKET:case B.BACKSLASH:case B.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Zg={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 Jg=Zg;var gu=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:Jg}))};process.env.NODE_ENV!=="production"&&(gu.displayName="LoadingOutlined");const pu=d.forwardRef(gu);function gn(){gn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(R,O,N){R[O]=N.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(R,O,N){return Object.defineProperty(R,O,{value:N,enumerable:!0,configurable:!0,writable:!0}),R[O]}try{c({},"")}catch{c=function(N,L,j){return N[L]=j}}function u(R,O,N,L){var j=O&&O.prototype instanceof m?O:m,V=Object.create(j.prototype),z=new F(L||[]);return a(V,"_invoke",{value:P(R,N,z)}),V}function f(R,O,N){try{return{type:"normal",arg:R.call(O,N)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var v="suspendedStart",g="suspendedYield",y="executing",p="completed",h={};function m(){}function b(){}function S(){}var E={};c(E,i,function(){return this});var C=Object.getPrototypeOf,w=C&&C(C(A([])));w&&w!==n&&r.call(w,i)&&(E=w);var x=S.prototype=m.prototype=Object.create(E);function $(R){["next","throw","return"].forEach(function(O){c(R,O,function(N){return this._invoke(O,N)})})}function M(R,O){function N(j,V,z,U){var re=f(R[j],R,V);if(re.type!=="throw"){var ne=re.arg,Oe=ne.value;return Oe&&Ue(Oe)=="object"&&r.call(Oe,"__await")?O.resolve(Oe.__await).then(function(he){N("next",he,z,U)},function(he){N("throw",he,z,U)}):O.resolve(Oe).then(function(he){ne.value=he,z(ne)},function(he){return N("throw",he,z,U)})}U(re.arg)}var L;a(this,"_invoke",{value:function(V,z){function U(){return new O(function(re,ne){N(V,z,re,ne)})}return L=L?L.then(U,U):U()}})}function P(R,O,N){var L=v;return function(j,V){if(L===y)throw new Error("Generator is already running");if(L===p){if(j==="throw")throw V;return{value:e,done:!0}}for(N.method=j,N.arg=V;;){var z=N.delegate;if(z){var U=D(z,N);if(U){if(U===h)continue;return U}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(L===v)throw L=p,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);L=y;var re=f(R,O,N);if(re.type==="normal"){if(L=N.done?p:g,re.arg===h)continue;return{value:re.arg,done:N.done}}re.type==="throw"&&(L=p,N.method="throw",N.arg=re.arg)}}}function D(R,O){var N=O.method,L=R.iterator[N];if(L===e)return O.delegate=null,N==="throw"&&R.iterator.return&&(O.method="return",O.arg=e,D(R,O),O.method==="throw")||N!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+N+"' method")),h;var j=f(L,R.iterator,O.arg);if(j.type==="throw")return O.method="throw",O.arg=j.arg,O.delegate=null,h;var V=j.arg;return V?V.done?(O[R.resultName]=V.value,O.next=R.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,h):V:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,h)}function k(R){var O={tryLoc:R[0]};1 in R&&(O.catchLoc=R[1]),2 in R&&(O.finallyLoc=R[2],O.afterLoc=R[3]),this.tryEntries.push(O)}function T(R){var O=R.completion||{};O.type="normal",delete O.arg,R.completion=O}function F(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(k,this),this.reset(!0)}function A(R){if(R||R===""){var O=R[i];if(O)return O.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var N=-1,L=function j(){for(;++N<R.length;)if(r.call(R,N))return j.value=R[N],j.done=!1,j;return j.value=e,j.done=!0,j};return L.next=L}}throw new TypeError(Ue(R)+" is not iterable")}return b.prototype=S,a(x,"constructor",{value:S,configurable:!0}),a(S,"constructor",{value:b,configurable:!0}),b.displayName=c(S,s,"GeneratorFunction"),t.isGeneratorFunction=function(R){var O=typeof R=="function"&&R.constructor;return!!O&&(O===b||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,S):(R.__proto__=S,c(R,s,"GeneratorFunction")),R.prototype=Object.create(x),R},t.awrap=function(R){return{__await:R}},$(M.prototype),c(M.prototype,l,function(){return this}),t.AsyncIterator=M,t.async=function(R,O,N,L,j){j===void 0&&(j=Promise);var V=new M(u(R,O,N,L),j);return t.isGeneratorFunction(O)?V:V.next().then(function(z){return z.done?z.value:V.next()})},$(x),c(x,s,"Generator"),c(x,i,function(){return this}),c(x,"toString",function(){return"[object Generator]"}),t.keys=function(R){var O=Object(R),N=[];for(var L in O)N.push(L);return N.reverse(),function j(){for(;N.length;){var V=N.pop();if(V in O)return j.value=V,j.done=!1,j}return j.done=!0,j}},t.values=A,F.prototype={constructor:F,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!O)for(var N in this)N.charAt(0)==="t"&&r.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=e)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var N=this;function L(ne,Oe){return z.type="throw",z.arg=O,N.next=ne,Oe&&(N.method="next",N.arg=e),!!Oe}for(var j=this.tryEntries.length-1;j>=0;--j){var V=this.tryEntries[j],z=V.completion;if(V.tryLoc==="root")return L("end");if(V.tryLoc<=this.prev){var U=r.call(V,"catchLoc"),re=r.call(V,"finallyLoc");if(U&&re){if(this.prev<V.catchLoc)return L(V.catchLoc,!0);if(this.prev<V.finallyLoc)return L(V.finallyLoc)}else if(U){if(this.prev<V.catchLoc)return L(V.catchLoc,!0)}else{if(!re)throw new Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return L(V.finallyLoc)}}}},abrupt:function(O,N){for(var L=this.tryEntries.length-1;L>=0;--L){var j=this.tryEntries[L];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var V=j;break}}V&&(O==="break"||O==="continue")&&V.tryLoc<=N&&N<=V.finallyLoc&&(V=null);var z=V?V.completion:{};return z.type=O,z.arg=N,V?(this.method="next",this.next=V.finallyLoc,h):this.complete(z)},complete:function(O,N){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&N&&(this.next=N),h},finish:function(O){for(var N=this.tryEntries.length-1;N>=0;--N){var L=this.tryEntries[N];if(L.finallyLoc===O)return this.complete(L.completion,L.afterLoc),T(L),h}},catch:function(O){for(var N=this.tryEntries.length-1;N>=0;--N){var L=this.tryEntries[N];if(L.tryLoc===O){var j=L.completion;if(j.type==="throw"){var V=j.arg;T(L)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(O,N,L){return this.delegate={iterator:A(O),resultName:N,nextLoc:L},this.method==="next"&&(this.arg=e),h}},t}function Bl(e,t,n,r,a,o,i){try{var l=e[o](i),s=l.value}catch(c){n(c);return}l.done?t(s):Promise.resolve(s).then(r,a)}function Ur(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(s){Bl(o,r,a,i,l,"next",s)}function l(s){Bl(o,r,a,i,l,"throw",s)}i(void 0)})}}const Ul=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ep=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 a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},tp=e=>{const t=Q.useContext(ja);return Q.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},np=tp;globalThis&&globalThis.__rest;const rp=d.createContext(null),ap=(e,t)=>{const n=d.useContext(rp),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,l=a==="vertical"?"-vertical-":"-";return Be(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:i,[`${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}};function op(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function ip(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function lp(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({},op(e,r,t)),ip(n,r,t))}}var mu=d.createContext(null),ql=[];function sp(e,t){var n=d.useState(function(){if(!Ht())return null;var y=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&y.setAttribute("data-debug",t),y}),r=H(n,1),a=r[0],o=d.useRef(!1),i=d.useContext(mu),l=d.useState(ql),s=H(l,2),c=s[0],u=s[1],f=i||(o.current?void 0:function(y){u(function(p){var h=[y].concat(ue(p));return h})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var y;(y=a.parentElement)===null||y===void 0||y.removeChild(a),o.current=!1}return dt(function(){return e?i?i(v):v():g(),g},[e]),dt(function(){c.length&&(c.forEach(function(y){return y()}),u(ql))},[c]),[a,f]}var ho;function cp(e){if(typeof document>"u")return 0;if(e||ho===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 a=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;a===o&&(o=n.clientWidth),document.body.removeChild(n),ho=a-o}return ho}function Gl(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?cp():n}function up(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:Gl(n),height:Gl(r)}}function dp(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var fp="rc-util-locker-".concat(Date.now()),Xl=0;function vp(e){var t=!!e,n=d.useState(function(){return Xl+=1,"".concat(fp,"_").concat(Xl)}),r=H(n,1),a=r[0];dt(function(){if(t){var o=up(document.body).width,i=dp();Lr(`
|
|
136
|
-
html body {
|
|
137
|
-
overflow-y: hidden;
|
|
138
|
-
`.concat(i?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
139
|
-
}`),a)}else Ra(a);return function(){Ra(a)}},[t,a])}var Yl=!1;function hp(e){return typeof e=="boolean"&&(Yl=e),Yl}var Ql=function(t){return t===!1?!1:!Ht()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Vi=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer,o=e.debug,i=e.autoDestroy,l=i===void 0?!0:i,s=e.children,c=d.useState(n),u=H(c,2),f=u[0],v=u[1],g=f||n;process.env.NODE_ENV!=="production"&&we(Ht()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),d.useEffect(function(){(l||n)&&v(n)},[n,l]);var y=d.useState(function(){return Ql(a)}),p=H(y,2),h=p[0],m=p[1];d.useEffect(function(){var k=Ql(a);m(k??null)});var b=sp(g&&!h,o),S=H(b,2),E=S[0],C=S[1],w=h??E;vp(r&&n&&Ht()&&(w===E||w===document.body));var x=null;if(s&&_a(s)&&t){var $=s;x=$.ref}var M=ka(x,t);if(!g||!Ht()||h===void 0)return null;var P=w===!1||hp(),D=s;return t&&(D=d.cloneElement(s,{ref:M})),d.createElement(mu.Provider,{value:C},P?D:Fr.createPortal(D,w))});process.env.NODE_ENV!=="production"&&(Vi.displayName="Portal");function gp(){var e=_({},d);return e.useId}var Zl=0,Jl=gp();const pp=Jl?function(t){var n=Jl();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=d.useState("ssr-id"),r=H(n,2),a=r[0],o=r[1];return d.useEffect(function(){var i=Zl;Zl+=1,o("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)},mp=Q.createContext(void 0),yp=mp;var Kn="RC_FORM_INTERNAL_HOOKS",ct=function(){we(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},br=d.createContext({getFieldValue:ct,getFieldsValue:ct,getFieldError:ct,getFieldWarning:ct,getFieldsError:ct,isFieldsTouched:ct,isFieldTouched:ct,isFieldValidating:ct,isFieldsValidating:ct,resetFields:ct,setFields:ct,setFieldValue:ct,setFieldsValue:ct,validateFields:ct,submit:ct,getInternalHooks:function(){return ct(),{dispatch:ct,initEntityValue:ct,registerField:ct,useSubscribe:ct,setInitialValues:ct,destroyForm:ct,setCallbacks:ct,registerWatch:ct,getFields:ct,setValidateMessages:ct,setPreserve:ct,getInitialValue:ct}}}),Ia=d.createContext(null);function ni(e){return e==null?[]:Array.isArray(e)?e:[e]}function bp(e){return e&&!!e._init}function Vn(){return Vn=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},Vn.apply(this,arguments)}function Sp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hr(e,t)}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ri(e)}function Hr(e,t){return Hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Hr(e,t)}function Ep(){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 wa(e,t,n){return Ep()?wa=Reflect.construct.bind():wa=function(a,o,i){var l=[null];l.push.apply(l,o);var s=Function.bind.apply(a,l),c=new s;return i&&Hr(c,i.prototype),c},wa.apply(null,arguments)}function Cp(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ai(e){var t=typeof Map=="function"?new Map:void 0;return ai=function(r){if(r===null||!Cp(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,a)}function a(){return wa(r,arguments,ri(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Hr(a,r)},ai(e)}var wp=/%[sdj%]/g,yu=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(yu=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 oi(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 Xt(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 a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(wp,function(l){if(l==="%%")return"%";if(a>=o)return l;switch(l){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function xp(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||xp(t)&&typeof e=="string"&&!e)}function Op(e,t,n){var r=[],a=0,o=e.length;function i(l){r.push.apply(r,l||[]),a++,a===o&&n(r)}e.forEach(function(l){t(l,i)})}function es(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<a?t(e[l],o):n([])}o([])}function Np(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var ts=function(e){Sp(t,e);function t(n,r){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return t}(ai(Error));function Pp(e,t,n,r,a){if(t.first){var o=new Promise(function(v,g){var y=function(m){return r(m),m.length?g(new ts(m,oi(m))):v(a)},p=Np(e);es(p,n,y)});return o.catch(function(v){return v}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],f=new Promise(function(v,g){var y=function(h){if(u.push.apply(u,h),c++,c===s)return r(u),u.length?g(new ts(u,oi(u))):v(a)};l.length||(r(u),v(a)),l.forEach(function(p){var h=e[p];i.indexOf(p)!==-1?es(h,n,y):Op(h,n,y)})});return f.catch(function(v){return v}),f}function Rp(e){return!!(e&&e.message!==void 0)}function Mp(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function ns(e,t){return function(n){var r;return e.fullFields?r=Mp(t,e.fullFields):r=t[n.field||e.fullField],Rp(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 rs(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]=Vn({},e[n],r):e[n]=r}}return e}var bu=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Mt(n,i||t.type))&&a.push(Xt(o.messages.required,t.fullField))},Ip=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Xt(o.messages.whitespace,t.fullField))},ma,$p=function(){if(ma)return ma;var e="[a-fA-F\\d:]",t=function(E){return E&&E.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}",a=(`
|
|
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(),o=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+a+"$"),s=function(E){return E&&E.exact?o:new RegExp("(?:"+t(E)+n+t(E)+")|(?:"+t(E)+a+t(E)+")","g")};s.v4=function(S){return S&&S.exact?i:new RegExp(""+t(S)+n+t(S),"g")},s.v6=function(S){return S&&S.exact?l:new RegExp(""+t(S)+a+t(S),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",f=s.v4().source,v=s.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+u+"(?:localhost|"+f+"|"+v+"|"+g+y+p+")"+h+m;return ma=new RegExp("(?:^"+b+"$)","i"),ma},as={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},Mr={integer:function(t){return Mr.number(t)&&parseInt(t,10)===t},float:function(t){return Mr.number(t)&&!Mr.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"&&!Mr.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(as.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($p())},hex:function(t){return typeof t=="string"&&!!t.match(as.hex)}},Tp=function(t,n,r,a,o){if(t.required&&n===void 0){bu(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Mr[l](n)||a.push(Xt(o.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&a.push(Xt(o.messages.types[l],t.fullField,t.type))},Dp=function(t,n,r,a,o){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,v=typeof n=="number",g=typeof n=="string",y=Array.isArray(n);if(v?f="number":g?f="string":y&&(f="array"),!f)return!1;y&&(u=n.length),g&&(u=n.replace(c,"_").length),i?u!==t.len&&a.push(Xt(o.messages[f].len,t.fullField,t.len)):l&&!s&&u<t.min?a.push(Xt(o.messages[f].min,t.fullField,t.min)):s&&!l&&u>t.max?a.push(Xt(o.messages[f].max,t.fullField,t.max)):l&&s&&(u<t.min||u>t.max)&&a.push(Xt(o.messages[f].range,t.fullField,t.min,t.max))},tr="enum",kp=function(t,n,r,a,o){t[tr]=Array.isArray(t[tr])?t[tr]:[],t[tr].indexOf(n)===-1&&a.push(Xt(o.messages[tr],t.fullField,t[tr].join(", ")))},_p=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Xt(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||a.push(Xt(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ze={required:bu,whitespace:Ip,type:Tp,range:Dp,enum:kp,pattern:_p},Fp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n,"string")&&!t.required)return r();Ze.required(t,n,a,i,o,"string"),Mt(n,"string")||(Ze.type(t,n,a,i,o),Ze.range(t,n,a,i,o),Ze.pattern(t,n,a,i,o),t.whitespace===!0&&Ze.whitespace(t,n,a,i,o))}r(i)},Lp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o),n!==void 0&&Ze.type(t,n,a,i,o)}r(i)},Ap=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o),n!==void 0&&(Ze.type(t,n,a,i,o),Ze.range(t,n,a,i,o))}r(i)},Kp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o),n!==void 0&&Ze.type(t,n,a,i,o)}r(i)},Vp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o),Mt(n)||Ze.type(t,n,a,i,o)}r(i)},Hp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o),n!==void 0&&(Ze.type(t,n,a,i,o),Ze.range(t,n,a,i,o))}r(i)},jp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o),n!==void 0&&(Ze.type(t,n,a,i,o),Ze.range(t,n,a,i,o))}r(i)},zp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Ze.required(t,n,a,i,o,"array"),n!=null&&(Ze.type(t,n,a,i,o),Ze.range(t,n,a,i,o))}r(i)},Wp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o),n!==void 0&&Ze.type(t,n,a,i,o)}r(i)},Bp="enum",Up=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o),n!==void 0&&Ze[Bp](t,n,a,i,o)}r(i)},qp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n,"string")&&!t.required)return r();Ze.required(t,n,a,i,o),Mt(n,"string")||Ze.pattern(t,n,a,i,o)}r(i)},Gp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n,"date")&&!t.required)return r();if(Ze.required(t,n,a,i,o),!Mt(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Ze.type(t,s,a,i,o),s&&Ze.range(t,s.getTime(),a,i,o)}}r(i)},Xp=function(t,n,r,a,o){var i=[],l=Array.isArray(n)?"array":typeof n;Ze.required(t,n,a,i,o,l),r(i)},go=function(t,n,r,a,o){var i=t.type,l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Mt(n,i)&&!t.required)return r();Ze.required(t,n,a,l,o,i),Mt(n,i)||Ze.type(t,n,a,l,o)}r(l)},Yp=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Mt(n)&&!t.required)return r();Ze.required(t,n,a,i,o)}r(i)},Dr={string:Fp,method:Lp,number:Ap,boolean:Kp,regexp:Vp,integer:Hp,float:jp,array:zp,object:Wp,enum:Up,pattern:qp,date:Gp,url:go,hex:go,email:go,required:Xp,any:Yp};function ii(){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 li=ii(),qr=function(){function e(n){this.rules=null,this._messages=li,this.define(n)}var t=e.prototype;return t.define=function(r){var a=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(o){var i=r[o];a.rules[o]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=rs(ii(),r)),this._messages},t.validate=function(r,a,o){var i=this;a===void 0&&(a={}),o===void 0&&(o=function(){});var l=r,s=a,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(p){var h=[],m={};function b(E){if(Array.isArray(E)){var C;h=(C=h).concat.apply(C,E)}else h.push(E)}for(var S=0;S<p.length;S++)b(p[S]);h.length?(m=oi(h),c(h,m)):c(null,l)}if(s.messages){var f=this.messages();f===li&&(f=ii()),rs(f,s.messages),s.messages=f}else s.messages=this.messages();var v={},g=s.keys||Object.keys(this.rules);g.forEach(function(p){var h=i.rules[p],m=l[p];h.forEach(function(b){var S=b;typeof S.transform=="function"&&(l===r&&(l=Vn({},l)),m=l[p]=S.transform(m)),typeof S=="function"?S={validator:S}:S=Vn({},S),S.validator=i.getValidationMethod(S),S.validator&&(S.field=p,S.fullField=S.fullField||p,S.type=i.getType(S),v[p]=v[p]||[],v[p].push({rule:S,value:m,source:l,field:p}))})});var y={};return Pp(v,s,function(p,h){var m=p.rule,b=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");b=b&&(m.required||!m.required&&p.value),m.field=p.field;function S(w,x){return Vn({},x,{fullField:m.fullField+"."+w,fullFields:m.fullFields?[].concat(m.fullFields,[w]):[w]})}function E(w){w===void 0&&(w=[]);var x=Array.isArray(w)?w:[w];!s.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&m.message!==void 0&&(x=[].concat(m.message));var $=x.map(ns(m,l));if(s.first&&$.length)return y[m.field]=1,h($);if(!b)h($);else{if(m.required&&!p.value)return m.message!==void 0?$=[].concat(m.message).map(ns(m,l)):s.error&&($=[s.error(m,Xt(s.messages.required,m.field))]),h($);var M={};m.defaultField&&Object.keys(p.value).map(function(k){M[k]=m.defaultField}),M=Vn({},M,p.rule.fields);var P={};Object.keys(M).forEach(function(k){var T=M[k],F=Array.isArray(T)?T:[T];P[k]=F.map(S.bind(null,k))});var D=new e(P);D.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),D.validate(p.value,p.rule.options||s,function(k){var T=[];$&&$.length&&T.push.apply(T,$),k&&k.length&&T.push.apply(T,k),h(T.length?T:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,p.value,E,p.source,s);else if(m.validator){try{C=m.validator(m,p.value,E,p.source,s)}catch(w){console.error==null||console.error(w),s.suppressValidatorError||setTimeout(function(){throw w},0),E(w.message)}C===!0?E():C===!1?E(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):C instanceof Array?E(C):C instanceof Error&&E(C.message)}C&&C.then&&C.then(function(){return E()},function(w){return E(w)})},function(p){u(p)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Dr.hasOwnProperty(r.type))throw new Error(Xt("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var a=Object.keys(r),o=a.indexOf("message");return o!==-1&&a.splice(o,1),a.length===1&&a[0]==="required"?Dr.required:Dr[this.getType(r)]||void 0},e}();qr.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Dr[t]=n};qr.warning=yu;qr.messages=li;qr.validators=Dr;var Ut="'${name}' is not a valid ${type}",Su={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:Ut,method:Ut,array:Ut,object:Ut,number:Ut,date:Ut,boolean:Ut,integer:Ut,float:Ut,regexp:Ut,email:Ut,url:Ut,hex:Ut},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}"}},os=qr;function Qp(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var is="CODE_LOGIC_ERROR";function si(e,t,n,r,a){return ci.apply(this,arguments)}function ci(){return ci=Ur(gn().mark(function e(t,n,r,a,o){var i,l,s,c,u,f,v,g,y;return gn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return i=_({},r),delete i.ruleIndex,os.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(is)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),c=new os(I({},t,[i])),u=sr(Su,a.validateMessages),c.messages(u),f=[],h.prev=10,h.next=13,Promise.resolve(c.validate(I({},t,n),_({},a)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(m,b){var S=m.message,E=S===is?u.default:S;return d.isValidElement(E)?d.cloneElement(E,{key:"error_".concat(b)}):E}));case 18:if(!(!f.length&&s)){h.next=23;break}return h.next=21,Promise.all(n.map(function(m,b){return si("".concat(t,".").concat(b),m,s,a,o)}));case 21:return v=h.sent,h.abrupt("return",v.reduce(function(m,b){return[].concat(ue(m),ue(b))},[]));case 23:return g=_(_({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),y=f.map(function(m){return typeof m=="string"?Qp(m,g):m}),h.abrupt("return",y);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),ci.apply(this,arguments)}function Zp(e,t,n,r,a,o){var i=e.join("."),l=n.map(function(u,f){var v=u.validator,g=_(_({},u),{},{ruleIndex:f});return v&&(g.validator=function(y,p,h){var m=!1,b=function(){for(var C=arguments.length,w=new Array(C),x=0;x<C;x++)w[x]=arguments[x];Promise.resolve().then(function(){we(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||h.apply(void 0,w)})},S=v(y,p,b);m=S&&typeof S.then=="function"&&typeof S.catch=="function",we(m,"`callback` is deprecated. Please return a promise instead."),m&&S.then(function(){h()}).catch(function(E){h(E||" ")})}),g}).sort(function(u,f){var v=u.warningOnly,g=u.ruleIndex,y=f.warningOnly,p=f.ruleIndex;return!!v==!!y?g-p:v?1:-1}),s;if(a===!0)s=new Promise(function(){var u=Ur(gn().mark(function f(v,g){var y,p,h;return gn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:y=0;case 1:if(!(y<l.length)){b.next=12;break}return p=l[y],b.next=5,si(i,t,p,r,o);case 5:if(h=b.sent,!h.length){b.next=9;break}return g([{errors:h,rule:p}]),b.abrupt("return");case 9:y+=1,b.next=1;break;case 12:v([]);case 13:case"end":return b.stop()}},f)}));return function(f,v){return u.apply(this,arguments)}}());else{var c=l.map(function(u){return si(i,t,u,r,o).then(function(f){return{errors:f,rule:u}})});s=(a?em(c):Jp(c)).then(function(u){return Promise.reject(u)})}return s.catch(function(u){return u}),s}function Jp(e){return ui.apply(this,arguments)}function ui(){return ui=Ur(gn().mark(function e(t){return gn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var o,i=(o=[]).concat.apply(o,ue(a));return i}));case 1:case"end":return r.stop()}},e)})),ui.apply(this,arguments)}function em(e){return di.apply(this,arguments)}function di(){return di=Ur(gn().mark(function e(t){var n;return gn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(o){t.forEach(function(i){i.then(function(l){l.errors.length&&o([l]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),di.apply(this,arguments)}function Ct(e){return ni(e)}function ls(e,t){var n={};return t.forEach(function(r){var a=vn(e,r);n=dn(n,r,a)}),n}function fr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Eu(t,r,n)})}function Eu(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,a){return e[a]===r})}function tm(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ue(e)!=="object"||Ue(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return ue(a).every(function(o){var i=e[o],l=t[o];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function nm(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ue(t.target)==="object"&&e in t.target?t.target[e]:t}function ss(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(ue(e.slice(0,n)),[a],ue(e.slice(n,t)),ue(e.slice(t+1,r))):o<0?[].concat(ue(e.slice(0,t)),ue(e.slice(t+1,n+1)),[a],ue(e.slice(n+1,r))):e}var rm=["name"],an=[];function cs(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var Hi=function(e){Sr(n,e);var t=Er(n);function n(r){var a;if(Qt(this,n),a=t.call(this,r),I(Ke(a),"state",{resetCount:0}),I(Ke(a),"cancelRegisterFunc",null),I(Ke(a),"mounted",!1),I(Ke(a),"touched",!1),I(Ke(a),"dirty",!1),I(Ke(a),"validatePromise",void 0),I(Ke(a),"prevValidating",void 0),I(Ke(a),"errors",an),I(Ke(a),"warnings",an),I(Ke(a),"cancelRegister",function(){var s=a.props,c=s.preserve,u=s.isListField,f=s.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,Ct(f)),a.cancelRegisterFunc=null}),I(Ke(a),"getNamePath",function(){var s=a.props,c=s.name,u=s.fieldContext,f=u.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(ue(v),ue(c)):[]}),I(Ke(a),"getRules",function(){var s=a.props,c=s.rules,u=c===void 0?[]:c,f=s.fieldContext;return u.map(function(v){return typeof v=="function"?v(f):v})}),I(Ke(a),"refresh",function(){a.mounted&&a.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),I(Ke(a),"metaCache",null),I(Ke(a),"triggerMetaEvent",function(s){var c=a.props.onMetaChange;if(c){var u=_(_({},a.getMeta()),{},{destroy:s});oc(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),I(Ke(a),"onStoreChange",function(s,c,u){var f=a.props,v=f.shouldUpdate,g=f.dependencies,y=g===void 0?[]:g,p=f.onReset,h=u.store,m=a.getNamePath(),b=a.getValue(s),S=a.getValue(h),E=c&&fr(c,m);switch(u.type==="valueUpdate"&&u.source==="external"&&b!==S&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=an,a.warnings=an,a.triggerMetaEvent()),u.type){case"reset":if(!c||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=an,a.warnings=an,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(v){a.reRender();return}break}case"setField":{var C=u.data;if(E){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||an),"warnings"in C&&(a.warnings=C.warnings||an),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&fr(c,m,!0)){a.reRender();return}if(v&&!m.length&&cs(v,s,h,b,S,u)){a.reRender();return}break}case"dependenciesUpdate":{var w=y.map(Ct);if(w.some(function(x){return fr(u.relatedFields,x)})){a.reRender();return}break}default:if(E||(!y.length||m.length||v)&&cs(v,s,h,b,S,u)){a.reRender();return}break}v===!0&&a.reRender()}),I(Ke(a),"validateRules",function(s){var c=a.getNamePath(),u=a.getValue(),f=s||{},v=f.triggerName,g=f.validateOnly,y=g===void 0?!1:g,p=Promise.resolve().then(Ur(gn().mark(function h(){var m,b,S,E,C,w,x;return gn().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(a.mounted){M.next=2;break}return M.abrupt("return",[]);case 2:if(m=a.props,b=m.validateFirst,S=b===void 0?!1:b,E=m.messageVariables,C=m.validateDebounce,w=a.getRules(),v&&(w=w.filter(function(P){return P}).filter(function(P){var D=P.validateTrigger;if(!D)return!0;var k=ni(D);return k.includes(v)})),!(C&&v)){M.next=10;break}return M.next=8,new Promise(function(P){setTimeout(P,C)});case 8:if(a.validatePromise===p){M.next=10;break}return M.abrupt("return",[]);case 10:return x=Zp(c,u,w,s,S,E),x.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an;if(a.validatePromise===p){var D;a.validatePromise=null;var k=[],T=[];(D=P.forEach)===null||D===void 0||D.call(P,function(F){var A=F.rule.warningOnly,R=F.errors,O=R===void 0?an:R;A?T.push.apply(T,ue(O)):k.push.apply(k,ue(O))}),a.errors=k,a.warnings=T,a.triggerMetaEvent(),a.reRender()}}),M.abrupt("return",x);case 13:case"end":return M.stop()}},h)})));return y||(a.validatePromise=p,a.dirty=!0,a.errors=an,a.warnings=an,a.triggerMetaEvent(),a.reRender()),p}),I(Ke(a),"isFieldValidating",function(){return!!a.validatePromise}),I(Ke(a),"isFieldTouched",function(){return a.touched}),I(Ke(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var s=a.props.fieldContext,c=s.getInternalHooks(Kn),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),I(Ke(a),"getErrors",function(){return a.errors}),I(Ke(a),"getWarnings",function(){return a.warnings}),I(Ke(a),"isListField",function(){return a.props.isListField}),I(Ke(a),"isList",function(){return a.props.isList}),I(Ke(a),"isPreserve",function(){return a.props.preserve}),I(Ke(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var s={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return s}),I(Ke(a),"getOnlyChild",function(s){if(typeof s=="function"){var c=a.getMeta();return _(_({},a.getOnlyChild(s(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=Pn(s);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),I(Ke(a),"getValue",function(s){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return vn(s||c(!0),u)}),I(Ke(a),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.trigger,f=c.validateTrigger,v=c.getValueFromEvent,g=c.normalize,y=c.valuePropName,p=c.getValueProps,h=c.fieldContext,m=f!==void 0?f:h.validateTrigger,b=a.getNamePath(),S=h.getInternalHooks,E=h.getFieldsValue,C=S(Kn),w=C.dispatch,x=a.getValue(),$=p||function(k){return I({},y,k)},M=s[u],P=_(_({},s),$(x));P[u]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var k,T=arguments.length,F=new Array(T),A=0;A<T;A++)F[A]=arguments[A];v?k=v.apply(void 0,F):k=nm.apply(void 0,[y].concat(F)),g&&(k=g(k,x,E(!0))),w({type:"updateValue",namePath:b,value:k}),M&&M.apply(void 0,F)};var D=ni(m||[]);return D.forEach(function(k){var T=P[k];P[k]=function(){T&&T.apply(void 0,arguments);var F=a.props.rules;F&&F.length&&w({type:"validateField",namePath:b,triggerName:k})}}),P}),r.fieldContext){var o=r.fieldContext.getInternalHooks,i=o(Kn),l=i.initEntityValue;l(Ke(a))}return a}return Zt(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,i=a.fieldContext;if(this.mounted=!0,i){var l=i.getInternalHooks,s=l(Kn),c=s.registerField;this.cancelRegisterFunc=c(this)}o===!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 a=this.state.resetCount,o=this.props.children,i=this.getOnlyChild(o),l=i.child,s=i.isFunction,c;return s?c=l:d.isValidElement(l)?c=d.cloneElement(l,this.getControlled(l.props)):(we(!l,"`children` of Field is not validate ReactElement."),c=l),d.createElement(d.Fragment,{key:a},c)}}]),n}(d.Component);I(Hi,"contextType",br);I(Hi,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Cu(e){var t=e.name,n=vt(e,rm),r=d.useContext(br),a=d.useContext(Ia),o=t!==void 0?Ct(t):void 0,i="keep";return n.isListField||(i="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&o.length<=1&&we(!1,"`preserve` should not apply on Form.List fields."),d.createElement(Hi,Ge({key:i,name:o,isListField:!!a},n,{fieldContext:r}))}function am(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,o=e.validateTrigger,i=e.isListField,l=d.useContext(br),s=d.useContext(Ia),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var p=Ct(l.prefixName)||[];return[].concat(ue(p),ue(Ct(t)))},[l.prefixName,t]),v=d.useMemo(function(){return _(_({},l),{},{prefixName:f})},[l,f]),g=d.useMemo(function(){return{getKey:function(h){var m=f.length,b=h[m];return[u.keys[b],h.slice(m+1)]}}},[f]);if(typeof r!="function")return we(!1,"Form.List only accepts function as children."),null;var y=function(h,m,b){var S=b.source;return S==="internal"?!1:h!==m};return d.createElement(Ia.Provider,{value:g},d.createElement(br.Provider,{value:v},d.createElement(Cu,{name:[],shouldUpdate:y,rules:a,validateTrigger:o,initialValue:n,isList:!0,isListField:i??!!s},function(p,h){var m=p.value,b=m===void 0?[]:m,S=p.onChange,E=l.getFieldValue,C=function(){var M=E(f||[]);return M||[]},w={add:function(M,P){var D=C();P>=0&&P<=D.length?(u.keys=[].concat(ue(u.keys.slice(0,P)),[u.id],ue(u.keys.slice(P))),S([].concat(ue(D.slice(0,P)),[M],ue(D.slice(P))))):(process.env.NODE_ENV!=="production"&&(P<0||P>D.length)&&we(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(ue(u.keys),[u.id]),S([].concat(ue(D),[M]))),u.id+=1},remove:function(M){var P=C(),D=new Set(Array.isArray(M)?M:[M]);D.size<=0||(u.keys=u.keys.filter(function(k,T){return!D.has(T)}),S(P.filter(function(k,T){return!D.has(T)})))},move:function(M,P){if(M!==P){var D=C();M<0||M>=D.length||P<0||P>=D.length||(u.keys=ss(u.keys,M,P),S(ss(D,M,P)))}}},x=b||[];return Array.isArray(x)||(x=[],process.env.NODE_ENV!=="production"&&we(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(x.map(function($,M){var P=u.keys[M];return P===void 0&&(u.keys[M]=u.id,P=u.keys[M],u.id+=1),{name:M,key:P,isListField:!0}}),w,h)})))}function om(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var wu="__@field_split__";function po(e){return e.map(function(t){return"".concat(Ue(t),":").concat(t)}).join(wu)}var nr=function(){function e(){Qt(this,e),I(this,"kvs",new Map)}return Zt(e,[{key:"set",value:function(n,r){this.kvs.set(po(n),r)}},{key:"get",value:function(n){return this.kvs.get(po(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(po(n))}},{key:"map",value:function(n){return ue(this.kvs.entries()).map(function(r){var a=H(r,2),o=a[0],i=a[1],l=o.split(wu);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),u=H(c,3),f=u[1],v=u[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),im=["name"],lm=Zt(function e(t){var n=this;Qt(this,e),I(this,"formHooked",!1),I(this,"forceRootUpdate",void 0),I(this,"subscribable",!0),I(this,"store",{}),I(this,"fieldEntities",[]),I(this,"initialValues",{}),I(this,"callbacks",{}),I(this,"validateMessages",null),I(this,"preserve",null),I(this,"lastValidatePromise",null),I(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}}),I(this,"getInternalHooks",function(r){return r===Kn?(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}):(we(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),I(this,"useSubscribe",function(r){n.subscribable=r}),I(this,"prevWithoutPreserves",null),I(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=sr(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var s=l.key;i=dn(i,s,vn(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),I(this,"destroyForm",function(){var r=new nr;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||r.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=r}),I(this,"getInitialValue",function(r){var a=vn(n.initialValues,r);return r.length?sr(a):a}),I(this,"setCallbacks",function(r){n.callbacks=r}),I(this,"setValidateMessages",function(r){n.validateMessages=r}),I(this,"setPreserve",function(r){n.preserve=r}),I(this,"watchList",[]),I(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),I(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),I(this,"timeoutId",null),I(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||we(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),I(this,"updateStore",function(r){n.store=r}),I(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),I(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new nr;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),I(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=Ct(o);return a.get(i)||{INVALIDATE_NAME_PATH:Ct(o)}})}),I(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,l;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&Ue(r)==="object"&&(l=r.strict,i=r.filter),o===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return s.forEach(function(u){var f,v,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(l){var y,p;if((y=(p=u).isList)!==null&&y!==void 0&&y.call(p))return}else if(!o&&(f=(v=u).isListField)!==null&&f!==void 0&&f.call(v))return;if(!i)c.push(g);else{var h="getMeta"in u?u.getMeta():null;i(h)&&c.push(g)}}),ls(n.store,c.map(Ct))}),I(this,"getFieldValue",function(r){n.warningUnhooked();var a=Ct(r);return vn(n.store,a)}),I(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Ct(r[i]),errors:[],warnings:[]}})}),I(this,"getFieldError",function(r){n.warningUnhooked();var a=Ct(r),o=n.getFieldsError([a])[0];return o.errors}),I(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Ct(r),o=n.getFieldsError([a])[0];return o.warnings}),I(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var i=a[0],l=a[1],s,c=!1;a.length===0?s=null:a.length===1?Array.isArray(i)?(s=i.map(Ct),c=!1):(s=null,c=i):(s=i.map(Ct),c=l);var u=n.getFieldEntities(!0),f=function(h){return h.isFieldTouched()};if(!s)return c?u.every(f):u.some(f);var v=new nr;s.forEach(function(p){v.set(p,[])}),u.forEach(function(p){var h=p.getNamePath();s.forEach(function(m){m.every(function(b,S){return h[S]===b})&&v.update(m,function(b){return[].concat(ue(b),[p])})})});var g=function(h){return h.some(f)},y=v.map(function(p){var h=p.value;return h});return c?y.every(g):y.some(g)}),I(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),I(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(i){return i.isFieldValidating()});var o=r.map(Ct);return a.some(function(i){var l=i.getNamePath();return fr(o,l)&&i.isFieldValidating()})}),I(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),I(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new nr,o=n.getFieldEntities(!0);o.forEach(function(s){var c=s.props.initialValue,u=s.getNamePath();if(c!==void 0){var f=a.get(u)||new Set;f.add({entity:s,value:c}),a.set(u,f)}});var i=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var v=u.getNamePath(),g=n.getInitialValue(v);if(g!==void 0)we(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var y=a.get(v);if(y&&y.size>1)we(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var p=n.getFieldValue(v),h=u.isListField();!h&&(!r.skipExist||p===void 0)&&n.updateStore(dn(n.store,v,ue(y)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=a.get(s);if(c){var u;(u=l).push.apply(u,ue(ue(c).map(function(f){return f.entity})))}})):l=o,i(l)}),I(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(sr(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Ct);o.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(dn(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),I(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var l=i.name,s=vt(i,im),c=Ct(l);o.push(c),"value"in s&&n.updateStore(dn(n.store,c,s.value)),n.notifyObservers(a,[c],{type:"setField",data:i})}),n.notifyWatch(o)}),I(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),l=o.getMeta(),s=_(_({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return a}),I(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=vn(n.store,o);i===void 0&&n.updateStore(dn(n.store,o,a))}}),I(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),I(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||s.length>1)){var c=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==c&&n.fieldEntities.every(function(f){return!Eu(f.getNamePath(),a)})){var u=n.store;n.updateStore(dn(u,a,c,!0)),n.notifyObservers(u,[a],{type:"remove"}),n.triggerDependenciesUpdate(u,a)}}n.notifyWatch([a])}}),I(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),I(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=_(_({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,a,i)})}else n.forceRootUpdate()}),I(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ue(o))}),o}),I(this,"updateValue",function(r,a){var o=Ct(r),i=n.store;n.updateStore(dn(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(i,o),s=n.callbacks.onValuesChange;if(s){var c=ls(n.store,[o]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ue(l)))}),I(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=sr(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),I(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),I(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new nr;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(u){var f=Ct(u);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(s),v})})});var l=function s(c){var u=i.get(c)||new Set;u.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),s(v))}})};return l(r),o}),I(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var l=new nr;a.forEach(function(c){var u=c.name,f=c.errors;l.set(u,f)}),i.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=i.filter(function(c){var u=c.name;return fr(r,u)});s.length&&o(s,i)}}),I(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var l=!!o,s=l?o.map(Ct):[],c=[],u=String(Date.now()),f=new Set,v=i||{},g=v.recursive,y=v.dirty;n.getFieldEntities(!0).forEach(function(b){if(l||s.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(y&&!b.isFieldDirty())){var S=b.getNamePath();if(f.add(S.join(u)),!l||fr(s,S,g)){var E=b.validateRules(_({validateMessages:_(_({},Su),n.validateMessages)},i));c.push(E.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(C){var w,x=[],$=[];return(w=C.forEach)===null||w===void 0||w.call(C,function(M){var P=M.rule.warningOnly,D=M.errors;P?$.push.apply($,ue(D)):x.push.apply(x,ue(D))}),x.length?Promise.reject({name:S,errors:x,warnings:$}):{name:S,errors:x,warnings:$}}))}}});var p=om(c);n.lastValidatePromise=p,p.catch(function(b){return b}).then(function(b){var S=b.map(function(E){var C=E.name;return C});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,b)});var h=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(b){var S=b.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:S,outOfDate:n.lastValidatePromise!==p})});h.catch(function(b){return b});var m=s.filter(function(b){return f.has(b.join(u))});return n.triggerOnFieldsChange(m),h}),I(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function xu(e){var t=d.useRef(),n=d.useState({}),r=H(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new lm(o);t.current=i.getForm()}return[t.current]}var fi=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sm=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=d.useContext(fi),l=d.useRef({});return d.createElement(fi.Provider,{value:_(_({},i),{},{validateMessages:_(_({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:l.current}),i.triggerFormChange(c,u)},triggerFormFinish:function(c,u){a&&a(c,{values:u,forms:l.current}),i.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(l.current=_(_({},l.current),{},I({},c,u))),i.registerForm(c,u)},unregisterForm:function(c){var u=_({},l.current);delete u[c],l.current=u,i.unregisterForm(c)}})},o)},cm=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],um=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,l=t.preserve,s=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,g=v===void 0?"onChange":v,y=t.onValuesChange,p=t.onFieldsChange,h=t.onFinish,m=t.onFinishFailed,b=vt(t,cm),S=d.useContext(fi),E=xu(i),C=H(E,1),w=C[0],x=w.getInternalHooks(Kn),$=x.useSubscribe,M=x.setInitialValues,P=x.setCallbacks,D=x.setValidateMessages,k=x.setPreserve,T=x.destroyForm;d.useImperativeHandle(n,function(){return w}),d.useEffect(function(){return S.registerForm(r,w),function(){S.unregisterForm(r)}},[S,w,r]),D(_(_({},S.validateMessages),f)),P({onValuesChange:y,onFieldsChange:function(z){if(S.triggerFormChange(r,z),p){for(var U=arguments.length,re=new Array(U>1?U-1:0),ne=1;ne<U;ne++)re[ne-1]=arguments[ne];p.apply(void 0,[z].concat(re))}},onFinish:function(z){S.triggerFormFinish(r,z),h&&h(z)},onFinishFailed:m}),k(l);var F=d.useRef(null);M(a,!F.current),F.current||(F.current=!0),d.useEffect(function(){return T},[]);var A,R=typeof s=="function";if(R){var O=w.getFieldsValue(!0);A=s(O,w)}else A=s;$(!R);var N=d.useRef();d.useEffect(function(){tm(N.current||[],o||[])||w.setFields(o||[]),N.current=o},[o,w]);var L=d.useMemo(function(){return _(_({},w),{},{validateTrigger:g})},[w,g]),j=d.createElement(Ia.Provider,{value:null},d.createElement(br.Provider,{value:L},A));return u===!1?j:d.createElement(u,Ge({},b,{onSubmit:function(z){z.preventDefault(),z.stopPropagation(),w.submit()},onReset:function(z){var U;z.preventDefault(),w.resetFields(),(U=b.onReset)===null||U===void 0||U.call(b,z)}}),j)};function us(e){try{return JSON.stringify(e)}catch{return Math.random()}}var dm=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=Q.useRef(t);we(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function fm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=r===void 0?[]:r,o=t[1],i=o===void 0?{}:o,l=bp(i)?{form:i}:i,s=l.form,c=Q.useState(),u=H(c,2),f=u[0],v=u[1],g=Q.useMemo(function(){return us(f)},[f]),y=Q.useRef(g);y.current=g;var p=Q.useContext(br),h=s||p,m=h&&h._init;process.env.NODE_ENV!=="production"&&we(t.length===2?s?m:!0:m,"useWatch requires a form instance since it can not auto detect from context.");var b=Ct(a),S=Q.useRef(b);return S.current=b,dm(b),Q.useEffect(function(){if(m){var E=h.getFieldsValue,C=h.getInternalHooks,w=C(Kn),x=w.registerWatch,$=x(function(P,D){var k=vn(l.preserve?D:P,S.current),T=us(k);y.current!==T&&(y.current=T,v(k))}),M=vn(l.preserve?E(!0):E(),S.current);return f!==M&&v(M),$}},[m]),f}var vm=d.forwardRef(um),Gr=vm;Gr.FormProvider=sm;Gr.Field=Cu;Gr.List=am;Gr.useForm=xu;Gr.useWatch=fm;const Ou=d.createContext({});process.env.NODE_ENV!=="production"&&(Ou.displayName="FormItemInputContext");const hm=e=>({animationDuration:e,animationFillMode:"both"}),gm=e=>({animationDuration:e,animationFillMode:"both"}),Nu=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
151
|
-
${o}${e}-enter,
|
|
152
|
-
${o}${e}-appear
|
|
153
|
-
`]:Object.assign(Object.assign({},hm(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},gm(r)),{animationPlayState:"paused"}),[`
|
|
154
|
-
${o}${e}-enter${e}-enter-active,
|
|
155
|
-
${o}${e}-appear${e}-appear-active
|
|
156
|
-
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pm=new At("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mm=new At("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ym=new At("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bm=new At("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Sm=new At("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Em=new At("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Cm=new At("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wm=new At("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),xm={"move-up":{inKeyframes:Cm,outKeyframes:wm},"move-down":{inKeyframes:pm,outKeyframes:mm},"move-left":{inKeyframes:ym,outKeyframes:bm},"move-right":{inKeyframes:Sm,outKeyframes:Em}},ds=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=xm[t];return[Nu(r,a,o,e.motionDurationMid),{[`
|
|
157
|
-
${r}-enter,
|
|
158
|
-
${r}-appear
|
|
159
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Pu=new At("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ru=new At("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mu=new At("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Iu=new At("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Om=new At("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Nm=new At("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Pm=new At("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Rm=new At("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Mm={"slide-up":{inKeyframes:Pu,outKeyframes:Ru},"slide-down":{inKeyframes:Mu,outKeyframes:Iu},"slide-left":{inKeyframes:Om,outKeyframes:Nm},"slide-right":{inKeyframes:Pm,outKeyframes:Rm}},fs=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Mm[t];return[Nu(r,a,o,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}}]},Im=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
163
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
164
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),$m=Im,$u={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},Tm={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function Dm(e){return e in $u}function km(e,t){const[,n]=wr(),r=Q.useContext(yp),a=Dm(e);let o=r??0;return a?o+=n.zIndexPopupBase+$u[e]:o+=Tm[e],[r===void 0?t:o,o]}function _m(e){return function(n){return d.createElement(cg,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},n)))}}function Fm(e,t,n,r){function a(o){const{prefixCls:i,style:l}=o,s=d.useRef(null),[c,u]=d.useState(0),[f,v]=d.useState(0),[g,y]=mr(!1,{value:o.open}),{getPrefixCls:p}=d.useContext(Dn),h=p(t||"select",i);d.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(E=>{const C=E[0].target;u(C.offsetHeight+8),v(C.offsetWidth)}),S=setInterval(()=>{var E;const C=n?`.${n(h)}`:`.${h}-dropdown`,w=(E=s.current)===null||E===void 0?void 0:E.querySelector(C);w&&(clearInterval(S),b.observe(w))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let m=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>s.current});return r&&(m=r(m)),d.createElement("div",{ref:s,style:{paddingBottom:c,position:"relative",minWidth:f}},d.createElement(e,Object.assign({},m)))}return _m(a)}const Tu=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 qa=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.onMouseDown,i=t.onClick,l=t.children,s;return typeof r=="function"?s=r(a):s=r,d.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o&&o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},s!==void 0?s:d.createElement("span",{className:Be(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},l))};function Lm(e,t,n,r,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=Q.useMemo(function(){if(Ue(r)==="object")return r.clearIcon;if(a)return a},[r,a]),c=Q.useMemo(function(){return!!(!o&&r&&(n.length||i)&&!(l==="combobox"&&i===""))},[r,o,n.length,i,l]);return{allowClear:c,clearIcon:Q.createElement(qa,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}var Du=d.createContext(null);function ku(){return d.useContext(Du)}function Am(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=H(t,2),r=n[0],a=n[1],o=d.useRef(null),i=function(){window.clearTimeout(o.current)};d.useEffect(function(){return i},[]);var l=function(c,u){i(),o.current=window.setTimeout(function(){a(c),u&&u()},e)};return[r,l,i]}function _u(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Km(e,t,n,r){var a=d.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function o(i){var l;if(!((l=a.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),a.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(s)&&c!==s})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}var Vm=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],rr=void 0;function Hm(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,f=e.style,v=e.children,g=e.display,y=e.order,p=e.component,h=p===void 0?"div":p,m=vt(e,Vm),b=i&&!g;function S($){s(c,$)}d.useEffect(function(){return function(){S(null)}},[]);var E=o&&a!==rr?o(a):v,C;r||(C={opacity:b?0:1,height:b?0:rr,overflowY:b?"hidden":rr,order:i?y:rr,pointerEvents:b?"none":rr,position:b?"absolute":rr});var w={};b&&(w["aria-hidden"]=!0);var x=d.createElement(h,Ge({className:Be(!r&&n,u),style:_(_({},C),f)},w,m,{ref:t}),E);return i&&(x=d.createElement(Tn,{onResize:function(M){var P=M.offsetWidth;S(P)},disabled:l},x)),x}var kr=d.forwardRef(Hm);kr.displayName="Item";function jm(e){if(typeof MessageChannel>"u")Vt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function zm(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],jm(function(){Fr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Nr(e,t){var n=d.useState(t),r=H(n,2),a=r[0],o=r[1],i=on(function(l){e(function(){o(l)})});return[a,i]}var $a=Q.createContext(null),Wm=["component"],Bm=["className"],Um=["className"],qm=function(t,n){var r=d.useContext($a);if(!r){var a=t.component,o=a===void 0?"div":a,i=vt(t,Wm);return d.createElement(o,Ge({},i,{ref:n}))}var l=r.className,s=vt(r,Bm),c=t.className,u=vt(t,Um);return d.createElement($a.Provider,{value:null},d.createElement(kr,Ge({ref:n,className:Be(l,c)},s,u)))},Fu=d.forwardRef(qm);Fu.displayName="RawItem";var Gm=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Lu="responsive",Au="invalidate";function Xm(e){return"+ ".concat(e.length," ...")}function Ym(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,v=e.style,g=e.className,y=e.maxCount,p=e.renderRest,h=e.renderRawRest,m=e.suffix,b=e.component,S=b===void 0?"div":b,E=e.itemComponent,C=e.onVisibleChange,w=vt(e,Gm),x=f==="full",$=zm(),M=Nr($,null),P=H(M,2),D=P[0],k=P[1],T=D||0,F=Nr($,new Map),A=H(F,2),R=A[0],O=A[1],N=Nr($,0),L=H(N,2),j=L[0],V=L[1],z=Nr($,0),U=H(z,2),re=U[0],ne=U[1],Oe=Nr($,0),he=H(Oe,2),G=he[0],q=he[1],Z=Q.useState(null),ae=H(Z,2),se=ae[0],Y=ae[1],K=Q.useState(null),pe=H(K,2),Se=pe[0],Ee=pe[1],oe=d.useMemo(function(){return Se===null&&x?Number.MAX_SAFE_INTEGER:Se||0},[Se,D]),ge=Q.useState(!1),ee=H(ge,2),me=ee[0],de=ee[1],Re="".concat(r,"-item"),Ve=Math.max(j,re),ye=y===Lu,J=o.length&&ye,Xe=y===Au,Ne=J||typeof y=="number"&&o.length>y,$e=Q.useMemo(function(){var fe=o;return J?D===null&&x?fe=o:fe=o.slice(0,Math.min(o.length,T/u)):typeof y=="number"&&(fe=o.slice(0,y)),fe},[o,u,D,y,J]),Je=Q.useMemo(function(){return J?o.slice(oe+1):o.slice($e.length)},[o,$e,J,oe]),Me=Q.useCallback(function(fe,Ce){var W;return typeof s=="function"?s(fe):(W=s&&(fe==null?void 0:fe[s]))!==null&&W!==void 0?W:Ce},[s]),st=Q.useCallback(i||function(fe){return fe},[i]);function ht(fe,Ce,W){Se===fe&&(Ce===void 0||Ce===se)||(Ee(fe),W||(de(fe<o.length-1),C==null||C(fe)),Ce!==void 0&&Y(Ce))}function nt(fe,Ce){k(Ce.clientWidth)}function De(fe,Ce){O(function(W){var ie=new Map(W);return Ce===null?ie.delete(fe):ie.set(fe,Ce),ie})}function Qe(fe,Ce){ne(Ce),V(re)}function at(fe,Ce){q(Ce)}function ot(fe){return R.get(Me($e[fe],fe))}dt(function(){if(T&&typeof Ve=="number"&&$e){var fe=G,Ce=$e.length,W=Ce-1;if(!Ce){ht(0,null);return}for(var ie=0;ie<Ce;ie+=1){var le=ot(ie);if(x&&(le=le||0),le===void 0){ht(ie-1,void 0,!0);break}if(fe+=le,W===0&&fe<=T||ie===W-1&&fe+ot(W)<=T){ht(W,null);break}else if(fe+Ve>T){ht(ie-1,fe-le-G+re);break}}m&&ot(0)+G>T&&Y(null)}},[T,R,re,G,Me,$e]);var ke=me&&!!Je.length,ft={};se!==null&&J&&(ft={position:"absolute",left:se,top:0});var pt={prefixCls:Re,responsive:J,component:E,invalidate:Xe},He=l?function(fe,Ce){var W=Me(fe,Ce);return d.createElement($a.Provider,{key:W,value:_(_({},pt),{},{order:Ce,item:fe,itemKey:W,registerSize:De,display:Ce<=oe})},l(fe,Ce))}:function(fe,Ce){var W=Me(fe,Ce);return d.createElement(kr,Ge({},pt,{order:Ce,key:W,item:fe,renderItem:st,itemKey:W,registerSize:De,display:Ce<=oe}))},qe,_e={order:ke?oe:Number.MAX_SAFE_INTEGER,className:"".concat(Re,"-rest"),registerSize:Qe,display:ke};if(h)h&&(qe=d.createElement($a.Provider,{value:_(_({},pt),_e)},h(Je)));else{var xe=p||Xm;qe=d.createElement(kr,Ge({},pt,_e),typeof xe=="function"?xe(Je):xe)}var je=d.createElement(S,Ge({className:Be(!Xe&&r,g),style:v,ref:t},w),$e.map(He),Ne?qe:null,m&&d.createElement(kr,Ge({},pt,{responsive:ye,responsiveDisabled:!J,order:oe,className:"".concat(Re,"-suffix"),registerSize:at,display:!0,style:ft}),m));return ye&&(je=d.createElement(Tn,{onResize:nt,disabled:!J},je)),je}var Xr=d.forwardRef(Ym);Xr.displayName="Overflow";Xr.Item=Fu;Xr.RESPONSIVE=Lu;Xr.INVALIDATE=Au;var Qm=function(t,n){var r,a=t.prefixCls,o=t.id,i=t.inputElement,l=t.disabled,s=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,v=t.activeDescendantId,g=t.value,y=t.maxLength,p=t.onKeyDown,h=t.onMouseDown,m=t.onChange,b=t.onPaste,S=t.onCompositionStart,E=t.onCompositionEnd,C=t.open,w=t.attrs,x=i||d.createElement("input",null),$=x,M=$.ref,P=$.props,D=P.onKeyDown,k=P.onChange,T=P.onMouseDown,F=P.onCompositionStart,A=P.onCompositionEnd,R=P.style;return Bn(!("maxLength"in x.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),x=d.cloneElement(x,_(_(_({type:"search"},P),{},{id:o,ref:wi(n,M),disabled:l,tabIndex:s,autoComplete:u||"off",autoFocus:c,className:Be("".concat(a,"-selection-search-input"),(r=x)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":C?v:void 0},w),{},{value:f?g:"",maxLength:y,readOnly:!f,unselectable:f?null:"on",style:_(_({},R),{},{opacity:f?null:0}),onKeyDown:function(N){p(N),D&&D(N)},onMouseDown:function(N){h(N),T&&T(N)},onChange:function(N){m(N),k&&k(N)},onCompositionStart:function(N){S(N),F&&F(N)},onCompositionEnd:function(N){E(N),A&&A(N)},onPaste:b})),x},ji=d.forwardRef(Qm);ji.displayName="Input";function zi(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Zm=typeof window<"u"&&window.document&&window.document.documentElement,Jm=process.env.NODE_ENV!=="test"&&Zm;function e0(e){return e!=null}function t0(e){return!e&&e!==0}function vs(e){return["string","number"].includes(Ue(e))}function Ku(e){var t=void 0;return e&&(vs(e.title)?t=e.title.toString():vs(e.label)&&(t=e.label.toString())),t}function n0(e,t){Jm?d.useLayoutEffect(e,t):d.useEffect(e,t)}function r0(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var hs=function(t){t.preventDefault(),t.stopPropagation()},a0=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,v=t.showSearch,g=t.autoFocus,y=t.autoComplete,p=t.activeDescendantId,h=t.tabIndex,m=t.removeIcon,b=t.maxTagCount,S=t.maxTagTextLength,E=t.maxTagPlaceholder,C=E===void 0?function(Y){return"+ ".concat(Y.length," ...")}:E,w=t.tagRender,x=t.onToggleOpen,$=t.onRemove,M=t.onInputChange,P=t.onInputPaste,D=t.onInputKeyDown,k=t.onInputMouseDown,T=t.onInputCompositionStart,F=t.onInputCompositionEnd,A=d.useRef(null),R=Q.useState(0),O=H(R,2),N=O[0],L=O[1],j=Q.useState(!1),V=H(j,2),z=V[0],U=V[1],re="".concat(r,"-selection"),ne=o||f==="multiple"&&l===!1||f==="tags"?i:"",Oe=f==="tags"||f==="multiple"&&l===!1||v&&(o||z);n0(function(){L(A.current.scrollWidth)},[ne]);function he(Y,K,pe,Se,Ee){return d.createElement("span",{className:Be("".concat(re,"-item"),I({},"".concat(re,"-item-disabled"),pe)),title:Ku(Y)},d.createElement("span",{className:"".concat(re,"-item-content")},K),Se&&d.createElement(qa,{className:"".concat(re,"-item-remove"),onMouseDown:hs,onClick:Ee,customizeIcon:m},"×"))}function G(Y,K,pe,Se,Ee){var oe=function(ee){hs(ee),x(!o)};return d.createElement("span",{onMouseDown:oe},w({label:K,value:Y,disabled:pe,closable:Se,onClose:Ee}))}function q(Y){var K=Y.disabled,pe=Y.label,Se=Y.value,Ee=!u&&!K,oe=pe;if(typeof S=="number"&&(typeof pe=="string"||typeof pe=="number")){var ge=String(oe);ge.length>S&&(oe="".concat(ge.slice(0,S),"..."))}var ee=function(de){de&&de.stopPropagation(),$(Y)};return typeof w=="function"?G(Se,oe,K,Ee,ee):he(Y,oe,K,Ee,ee)}function Z(Y){var K=typeof C=="function"?C(Y):C;return he({title:K},K,!1)}var ae=d.createElement("div",{className:"".concat(re,"-search"),style:{width:N},onFocus:function(){U(!0)},onBlur:function(){U(!1)}},d.createElement(ji,{ref:s,open:o,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:g,autoComplete:y,editable:Oe,activeDescendantId:p,value:ne,onKeyDown:D,onMouseDown:k,onChange:M,onPaste:P,onCompositionStart:T,onCompositionEnd:F,tabIndex:h,attrs:yr(t,!0)}),d.createElement("span",{ref:A,className:"".concat(re,"-search-mirror"),"aria-hidden":!0},ne," ")),se=d.createElement(Xr,{prefixCls:"".concat(re,"-overflow"),data:a,renderItem:q,renderRest:Z,suffix:ae,itemKey:r0,maxCount:b});return d.createElement(d.Fragment,null,se,!a.length&&!ne&&d.createElement("span",{className:"".concat(re,"-placeholder")},c))},o0=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,v=t.values,g=t.placeholder,y=t.tabIndex,p=t.showSearch,h=t.searchValue,m=t.activeValue,b=t.maxLength,S=t.onInputKeyDown,E=t.onInputMouseDown,C=t.onInputChange,w=t.onInputPaste,x=t.onInputCompositionStart,$=t.onInputCompositionEnd,M=t.title,P=d.useState(!1),D=H(P,2),k=D[0],T=D[1],F=u==="combobox",A=F||p,R=v[0],O=h||"";F&&m&&!k&&(O=m),d.useEffect(function(){F&&T(!1)},[F,m]);var N=u!=="combobox"&&!f&&!p?!1:!!O,L=M===void 0?Ku(R):M,j=function(){if(R)return null;var z=N?{visibility:"hidden"}:void 0;return d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z},g)};return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(ji,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:A,activeDescendantId:c,value:O,onKeyDown:S,onMouseDown:E,onChange:function(z){T(!0),C(z)},onPaste:w,onCompositionStart:x,onCompositionEnd:$,tabIndex:y,attrs:yr(t,!0),maxLength:F?b:void 0})),!F&&R?d.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:N?{visibility:"hidden"}:void 0},R.label):null,j())};function i0(e){return![B.ESC,B.SHIFT,B.BACKSPACE,B.TAB,B.WIN_KEY,B.ALT,B.META,B.WIN_KEY_RIGHT,B.CTRL,B.SEMICOLON,B.EQUALS,B.CAPS_LOCK,B.CONTEXT_MENU,B.F1,B.F2,B.F3,B.F4,B.F5,B.F6,B.F7,B.F8,B.F9,B.F10,B.F11,B.F12].includes(e)}var l0=function(t,n){var r=Q.useRef(null),a=Q.useRef(!1),o=t.prefixCls,i=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,f=t.onSearch,v=t.onSearchSubmit,g=t.onToggleOpen,y=t.onInputKeyDown,p=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var h=_u(0),m=H(h,2),b=m[0],S=m[1],E=function(O){var N=O.which;(N===B.UP||N===B.DOWN)&&O.preventDefault(),y&&y(O),N===B.ENTER&&l==="tags"&&!a.current&&!i&&(v==null||v(O.target.value)),i0(N)&&g(!0)},C=function(){S(!0)},w=Q.useRef(null),x=function(O){f(O,!0,a.current)!==!1&&g(!0)},$=function(){a.current=!0},M=function(O){a.current=!1,l!=="combobox"&&x(O.target.value)},P=function(O){var N=O.target.value;if(c&&w.current&&/[\r\n]/.test(w.current)){var L=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");N=N.replace(L,w.current)}w.current=null,x(N)},D=function(O){var N=O.clipboardData,L=N.getData("text");w.current=L},k=function(O){var N=O.target;if(N!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus()}):r.current.focus()}},T=function(O){var N=b();O.target!==r.current&&!N&&l!=="combobox"&&O.preventDefault(),(l!=="combobox"&&(!s||!N)||!i)&&(i&&u!==!1&&f("",!0,!1),g())},F={inputRef:r,onInputKeyDown:E,onInputMouseDown:C,onInputChange:P,onInputPaste:D,onInputCompositionStart:$,onInputCompositionEnd:M},A=l==="multiple"||l==="tags"?d.createElement(a0,Ge({},t,F)):d.createElement(o0,Ge({},t,F));return d.createElement("div",{ref:p,className:"".concat(o,"-selector"),onClick:k,onMouseDown:T},A)},Vu=d.forwardRef(l0);Vu.displayName="Selector";function Hu(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function s0(e){return Hu(e)instanceof ShadowRoot}function vi(e){return s0(e)?Hu(e):null}function c0(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,l=o.content,s=a.x,c=s===void 0?0:s,u=a.y,f=u===void 0?0:u,v=d.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],p=n.points[1],h=y[0],m=y[1],b=p[0],S=p[1];h===b||!["t","b"].includes(h)?g.top=f:h==="t"?g.top=0:g.bottom=0,m===S||!["l","r"].includes(m)?g.left=c:m==="l"?g.left=0:g.right=0}return d.createElement("div",{ref:v,className:Be("".concat(t,"-arrow"),i),style:g},l)}function u0(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?d.createElement(za,Ge({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return d.createElement("div",{style:{zIndex:r},className:Be("".concat(t,"-mask"),l)})}):null}var ju=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(ju.displayName="PopupContent");var zu=d.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,v=e.mask,g=e.arrow,y=e.arrowPos,p=e.align,h=e.motion,m=e.maskMotion,b=e.forceRender,S=e.getPopupContainer,E=e.autoDestroy,C=e.portal,w=e.zIndex,x=e.onMouseEnter,$=e.onMouseLeave,M=e.onPointerEnter,P=e.ready,D=e.offsetX,k=e.offsetY,T=e.offsetR,F=e.offsetB,A=e.onAlign,R=e.onPrepare,O=e.stretch,N=e.targetWidth,L=e.targetHeight,j=typeof n=="function"?n():n,V=s||c,z=(S==null?void 0:S.length)>0,U=d.useState(!S||!z),re=H(U,2),ne=re[0],Oe=re[1];if(dt(function(){!ne&&z&&i&&Oe(!0)},[ne,z,i]),!ne)return null;var he="auto",G={left:"-1000vw",top:"-1000vh",right:he,bottom:he};if(P||!s){var q,Z=p.points,ae=p.dynamicInset||((q=p._experimental)===null||q===void 0?void 0:q.dynamicInset),se=ae&&Z[0][1]==="r",Y=ae&&Z[0][0]==="b";se?(G.right=T,G.left=he):(G.left=D,G.right=he),Y?(G.bottom=F,G.top=he):(G.top=k,G.bottom=he)}var K={};return O&&(O.includes("height")&&L?K.height=L:O.includes("minHeight")&&L&&(K.minHeight=L),O.includes("width")&&N?K.width=N:O.includes("minWidth")&&N&&(K.minWidth=N)),s||(K.pointerEvents="none"),d.createElement(C,{open:b||V,getContainer:S&&function(){return S(i)},autoDestroy:E},d.createElement(u0,{prefixCls:a,open:s,zIndex:w,mask:v,motion:m}),d.createElement(Tn,{onResize:A,disabled:!s},function(pe){return d.createElement(za,Ge({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(a,"-hidden")},h,{onAppearPrepare:R,onEnterPrepare:R,visible:s,onVisibleChanged:function(Ee){var oe;h==null||(oe=h.onVisibleChanged)===null||oe===void 0||oe.call(h,Ee),l(Ee)}}),function(Se,Ee){var oe=Se.className,ge=Se.style,ee=Be(a,oe,r);return d.createElement("div",{ref:wi(pe,t,Ee),className:ee,style:_(_(_(_({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},G),K),ge),{},{boxSizing:"border-box",zIndex:w},o),onMouseEnter:x,onMouseLeave:$,onPointerEnter:M,onClick:f},g&&d.createElement(c0,{prefixCls:a,arrow:g,arrowPos:y,align:p}),d.createElement(ju,{cache:!s&&!u},j))})}))});process.env.NODE_ENV!=="production"&&(zu.displayName="Popup");var Wu=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=_a(n),o=d.useCallback(function(l){Ci(t,r?r(l):l)},[r]),i=ka(o,n.ref);return a?d.cloneElement(n,{ref:i}):n});process.env.NODE_ENV!=="production"&&(Wu.displayName="TriggerWrapper");var gs=d.createContext(null);function ps(e){return e?Array.isArray(e)?e:[e]:[]}function d0(e,t,n,r){return d.useMemo(function(){var a=ps(n??t),o=ps(r??t),i=new Set(a),l=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function f0(){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 v0(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i<o.length;i+=1){var l,s=o[i];if(f0((l=e[s])===null||l===void 0?void 0:l.points,a,r))return"".concat(t,"-placement-").concat(s)}return""}function ms(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Yr(e){return e.ownerDocument.defaultView}function hi(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=Yr(n).getComputedStyle(n),o=a.overflowX,i=a.overflowY,l=a.overflow;[o,i,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function jr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Pr(e){return jr(parseFloat(e),0)}function ys(e,t){var n=_({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=Yr(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,l=a.borderTopWidth,s=a.borderBottomWidth,c=a.borderLeftWidth,u=a.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,g=r.clientHeight,y=r.offsetWidth,p=r.clientWidth,h=Pr(l),m=Pr(s),b=Pr(c),S=Pr(u),E=jr(Math.round(f.width/y*1e3)/1e3),C=jr(Math.round(f.height/v*1e3)/1e3),w=(y-p-b-S)*E,x=(v-g-h-m)*C,$=h*C,M=m*C,P=b*E,D=S*E,k=0,T=0;if(o==="clip"){var F=Pr(i);k=F*E,T=F*C}var A=f.x+P-k,R=f.y+$-T,O=A+f.width+2*k-P-D-w,N=R+f.height+2*T-$-M-x;n.left=Math.max(n.left,A),n.top=Math.max(n.top,R),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,N)}}),n}function bs(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 Ss(e,t){var n=t||[],r=H(n,2),a=r[0],o=r[1];return[bs(e.width,a),bs(e.height,o)]}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ar(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Rn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function h0(e,t,n,r,a,o,i){var l=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),s=H(l,2),c=s[0],u=s[1],f=d.useRef(0),v=d.useMemo(function(){return t?hi(t):[]},[t]),g=d.useRef({}),y=function(){g.current={}};e||y();var p=on(function(){if(t&&n&&e){let nn=function(ta,rn){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,na=L.x+ta,Jn=L.y+rn,ra=na+G,xr=Jn+he,aa=Math.max(na,Zn.left),Ya=Math.max(Jn,Zn.top),Qa=Math.min(ra,Zn.right),Za=Math.min(xr,Zn.bottom);return Math.max(0,(Qa-aa)*(Za-Ya))},ea=function(){wt=L.y+_e,rt=wt+he,yt=L.x+qe,mt=yt+G};var b,S,E=t,C=E.ownerDocument,w=Yr(E),x=w.getComputedStyle(E),$=x.width,M=x.height,P=x.position,D=E.style.left,k=E.style.top,T=E.style.right,F=E.style.bottom,A=_(_({},a[r]),o),R=C.createElement("div");(b=E.parentElement)===null||b===void 0||b.appendChild(R),R.style.left="".concat(E.offsetLeft,"px"),R.style.top="".concat(E.offsetTop,"px"),R.style.position=P,R.style.height="".concat(E.offsetHeight,"px"),R.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto";var O;if(Array.isArray(n))O={x:n[0],y:n[1],width:0,height:0};else{var N=n.getBoundingClientRect();O={x:N.x,y:N.y,width:N.width,height:N.height}}var L=E.getBoundingClientRect(),j=C.documentElement,V=j.clientWidth,z=j.clientHeight,U=j.scrollWidth,re=j.scrollHeight,ne=j.scrollTop,Oe=j.scrollLeft,he=L.height,G=L.width,q=O.height,Z=O.width,ae={left:0,top:0,right:V,bottom:z},se={left:-Oe,top:-ne,right:U-Oe,bottom:re-ne},Y=A.htmlRegion,K="visible",pe="visibleFirst";Y!=="scroll"&&Y!==pe&&(Y=K);var Se=Y===pe,Ee=ys(se,v),oe=ys(ae,v),ge=Y===K?oe:Ee,ee=Se?oe:ge;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var me=E.getBoundingClientRect();E.style.left=D,E.style.top=k,E.style.right=T,E.style.bottom=F,(S=E.parentElement)===null||S===void 0||S.removeChild(R);var de=jr(Math.round(G/parseFloat($)*1e3)/1e3),Re=jr(Math.round(he/parseFloat(M)*1e3)/1e3);if(de===0||Re===0||xa(n)&&!ep(n))return;var Ve=A.offset,ye=A.targetOffset,J=Ss(L,Ve),Xe=H(J,2),Ne=Xe[0],$e=Xe[1],Je=Ss(O,ye),Me=H(Je,2),st=Me[0],ht=Me[1];O.x-=st,O.y-=ht;var nt=A.points||[],De=H(nt,2),Qe=De[0],at=De[1],ot=Es(at),ke=Es(Qe),ft=ar(O,ot),pt=ar(L,ke),He=_({},A),qe=ft.x-pt.x+Ne,_e=ft.y-pt.y+$e,xe=nn(qe,_e),je=nn(qe,_e,oe),fe=ar(O,["t","l"]),Ce=ar(L,["t","l"]),W=ar(O,["b","r"]),ie=ar(L,["b","r"]),le=A.overflow||{},ve=le.adjustX,ze=le.adjustY,Ye=le.shiftX,ut=le.shiftY,tt=function(rn){return typeof rn=="boolean"?rn:rn>=0},wt,rt,yt,mt;ea();var Fe=tt(ze),te=ke[0]===ot[0];if(Fe&&ke[0]==="t"&&(rt>ee.bottom||g.current.bt)){var X=_e;te?X-=he-q:X=fe.y-ie.y-$e;var ce=nn(qe,X),We=nn(qe,X,oe);ce>xe||ce===xe&&(!Se||We>=je)?(g.current.bt=!0,_e=X,$e=-$e,He.points=[Rn(ke,0),Rn(ot,0)]):g.current.bt=!1}if(Fe&&ke[0]==="b"&&(wt<ee.top||g.current.tb)){var Ae=_e;te?Ae+=he-q:Ae=W.y-Ce.y-$e;var Le=nn(qe,Ae),et=nn(qe,Ae,oe);Le>xe||Le===xe&&(!Se||et>=je)?(g.current.tb=!0,_e=Ae,$e=-$e,He.points=[Rn(ke,0),Rn(ot,0)]):g.current.tb=!1}var xt=tt(ve),Dt=ke[1]===ot[1];if(xt&&ke[1]==="l"&&(mt>ee.right||g.current.rl)){var It=qe;Dt?It-=G-Z:It=fe.x-ie.x-Ne;var kt=nn(It,_e),Wt=nn(It,_e,oe);kt>xe||kt===xe&&(!Se||Wt>=je)?(g.current.rl=!0,qe=It,Ne=-Ne,He.points=[Rn(ke,1),Rn(ot,1)]):g.current.rl=!1}if(xt&&ke[1]==="r"&&(yt<ee.left||g.current.lr)){var _t=qe;Dt?_t+=G-Z:_t=W.x-Ce.x-Ne;var Jt=nn(_t,_e),Kt=nn(_t,_e,oe);Jt>xe||Jt===xe&&(!Se||Kt>=je)?(g.current.lr=!0,qe=_t,Ne=-Ne,He.points=[Rn(ke,1),Rn(ot,1)]):g.current.lr=!1}ea();var bt=Ye===!0?0:Ye;typeof bt=="number"&&(yt<oe.left&&(qe-=yt-oe.left-Ne,O.x+Z<oe.left+bt&&(qe+=O.x-oe.left+Z-bt)),mt>oe.right&&(qe-=mt-oe.right-Ne,O.x>oe.right-bt&&(qe+=O.x-oe.right+bt)));var sn=ut===!0?0:ut;typeof sn=="number"&&(wt<oe.top&&(_e-=wt-oe.top-$e,O.y+q<oe.top+sn&&(_e+=O.y-oe.top+q-sn)),rt>oe.bottom&&(_e-=rt-oe.bottom-$e,O.y>oe.bottom-sn&&(_e+=O.y-oe.bottom+sn)));var _n=L.x+qe,Yn=_n+G,pn=L.y+_e,mn=pn+he,bn=O.x,Te=bn+Z,Pe=O.y,Ot=Pe+q,$t=Math.max(_n,bn),gt=Math.min(Yn,Te),Tt=($t+gt)/2,jt=Tt-_n,Sn=Math.max(pn,Pe),en=Math.min(mn,Ot),cn=(Sn+en)/2,tn=cn-pn;i==null||i(t,He);var Qn=me.right-L.x-(qe+L.width),Jr=me.bottom-L.y-(_e+L.height);u({ready:!0,offsetX:qe/de,offsetY:_e/Re,offsetR:Qn/de,offsetB:Jr/Re,arrowX:jt/de,arrowY:tn/Re,scaleX:de,scaleY:Re,align:He})}}),h=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&p()})},m=function(){u(function(S){return _(_({},S),{},{ready:!1})})};return dt(m,[r]),dt(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function g0(e,t,n,r,a){dt(function(){if(e&&t&&n){let f=function(){r(),a()};var o=t,i=n,l=hi(o),s=hi(i),c=Yr(i),u=new Set([c].concat(ue(l),ue(s)));return u.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(v){v.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function p0(e,t,n,r,a,o,i,l){var s=d.useRef(e),c=d.useRef(!1);s.current!==e&&(c.current=!0,s.current=e),d.useEffect(function(){var u=Vt(function(){c.current=!1});return function(){Vt.cancel(u)}},[e]),d.useEffect(function(){if(t&&r&&(!a||o)){var u=function(){var P=!1,D=function(F){var A=F.target;P=i(A)},k=function(F){var A=F.target;!c.current&&s.current&&!P&&!i(A)&&l(!1)};return[D,k]},f=u(),v=H(f,2),g=v[0],y=v[1],p=u(),h=H(p,2),m=h[0],b=h[1],S=Yr(r);S.addEventListener("mousedown",g,!0),S.addEventListener("click",y,!0),S.addEventListener("contextmenu",y,!0);var E=vi(n);if(E&&(E.addEventListener("mousedown",m,!0),E.addEventListener("click",b,!0),E.addEventListener("contextmenu",b,!0)),process.env.NODE_ENV!=="production"){var C,w,x=n==null||(C=n.getRootNode)===null||C===void 0?void 0:C.call(n),$=(w=r.getRootNode)===null||w===void 0?void 0:w.call(r);Bn(x===$,"trigger element and popup element should in same shadow root.")}return function(){S.removeEventListener("mousedown",g,!0),S.removeEventListener("click",y,!0),S.removeEventListener("contextmenu",y,!0),E&&(E.removeEventListener("mousedown",m,!0),E.removeEventListener("click",b,!0),E.removeEventListener("contextmenu",b,!0))}}},[t,n,r,a,o])}var m0=["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 y0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vi,t=d.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,u=n.hideAction,f=n.popupVisible,v=n.defaultPopupVisible,g=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,p=n.mouseEnterDelay,h=n.mouseLeaveDelay,m=h===void 0?.1:h,b=n.focusDelay,S=n.blurDelay,E=n.mask,C=n.maskClosable,w=C===void 0?!0:C,x=n.getPopupContainer,$=n.forceRender,M=n.autoDestroy,P=n.destroyPopupOnHide,D=n.popup,k=n.popupClassName,T=n.popupStyle,F=n.popupPlacement,A=n.builtinPlacements,R=A===void 0?{}:A,O=n.popupAlign,N=n.zIndex,L=n.stretch,j=n.getPopupClassNameFromAlign,V=n.fresh,z=n.alignPoint,U=n.onPopupClick,re=n.onPopupAlign,ne=n.arrow,Oe=n.popupMotion,he=n.maskMotion,G=n.popupTransitionName,q=n.popupAnimation,Z=n.maskTransitionName,ae=n.maskAnimation,se=n.className,Y=n.getTriggerDOMNode,K=vt(n,m0),pe=M||P||!1,Se=d.useState(!1),Ee=H(Se,2),oe=Ee[0],ge=Ee[1];dt(function(){ge(Tu())},[]);var ee=d.useRef({}),me=d.useContext(gs),de=d.useMemo(function(){return{registerSubPopup:function(Ie,St){ee.current[Ie]=St,me==null||me.registerSubPopup(Ie,St)}}},[me]),Re=pp(),Ve=d.useState(null),ye=H(Ve,2),J=ye[0],Xe=ye[1],Ne=on(function(be){xa(be)&&J!==be&&Xe(be),me==null||me.registerSubPopup(Re,be)}),$e=d.useState(null),Je=H($e,2),Me=Je[0],st=Je[1],ht=d.useRef(null),nt=on(function(be){xa(be)&&Me!==be&&(st(be),ht.current=be)}),De=d.Children.only(i),Qe=(De==null?void 0:De.props)||{},at={},ot=on(function(be){var Ie,St,Rt=Me;return(Rt==null?void 0:Rt.contains(be))||((Ie=vi(Rt))===null||Ie===void 0?void 0:Ie.host)===be||be===Rt||(J==null?void 0:J.contains(be))||((St=vi(J))===null||St===void 0?void 0:St.host)===be||be===J||Object.values(ee.current).some(function(Et){return(Et==null?void 0:Et.contains(be))||be===Et})}),ke=ms(o,Oe,q,G),ft=ms(o,he,ae,Z),pt=d.useState(v||!1),He=H(pt,2),qe=He[0],_e=He[1],xe=f??qe,je=on(function(be){f===void 0&&_e(be)});dt(function(){_e(f||!1)},[f]);var fe=d.useRef(xe);fe.current=xe;var Ce=d.useRef([]);Ce.current=[];var W=on(function(be){var Ie;je(be),((Ie=Ce.current[Ce.current.length-1])!==null&&Ie!==void 0?Ie:xe)!==be&&(Ce.current.push(be),g==null||g(be))}),ie=d.useRef(),le=function(){clearTimeout(ie.current)},ve=function(Ie){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;le(),St===0?W(Ie):ie.current=setTimeout(function(){W(Ie)},St*1e3)};d.useEffect(function(){return le},[]);var ze=d.useState(!1),Ye=H(ze,2),ut=Ye[0],tt=Ye[1];dt(function(be){(!be||xe)&&tt(!0)},[xe]);var wt=d.useState(null),rt=H(wt,2),yt=rt[0],mt=rt[1],Fe=d.useState([0,0]),te=H(Fe,2),X=te[0],ce=te[1],We=function(Ie){ce([Ie.clientX,Ie.clientY])},Ae=h0(xe,J,z?X:Me,F,R,O,re),Le=H(Ae,11),et=Le[0],xt=Le[1],Dt=Le[2],It=Le[3],kt=Le[4],Wt=Le[5],_t=Le[6],Jt=Le[7],Kt=Le[8],bt=Le[9],sn=Le[10],_n=d0(oe,s,c,u),Yn=H(_n,2),pn=Yn[0],mn=Yn[1],bn=pn.has("click"),Te=mn.has("click")||mn.has("contextMenu"),Pe=on(function(){ut||sn()}),Ot=function(){fe.current&&z&&Te&&ve(!1)};g0(xe,Me,J,Pe,Ot),dt(function(){Pe()},[X,F]),dt(function(){xe&&!(R!=null&&R[F])&&Pe()},[JSON.stringify(O)]);var $t=d.useMemo(function(){var be=v0(R,o,bt,z);return Be(be,j==null?void 0:j(bt))},[bt,j,R,o,z]);d.useImperativeHandle(r,function(){return{nativeElement:ht.current,forceAlign:Pe}});var gt=d.useState(0),Tt=H(gt,2),jt=Tt[0],Sn=Tt[1],en=d.useState(0),cn=H(en,2),tn=cn[0],Qn=cn[1],Jr=function(){if(L&&Me){var Ie=Me.getBoundingClientRect();Sn(Ie.width),Qn(Ie.height)}},nn=function(){Jr(),Pe()},ea=function(Ie){tt(!1),sn(),y==null||y(Ie)},ta=function(){return new Promise(function(Ie){Jr(),mt(function(){return Ie})})};dt(function(){yt&&(sn(),yt(),mt(null))},[yt]);function rn(be,Ie,St,Rt){at[be]=function(Et){var oa;Rt==null||Rt(Et),ve(Ie,St);for(var Ja=arguments.length,el=new Array(Ja>1?Ja-1:0),ia=1;ia<Ja;ia++)el[ia-1]=arguments[ia];(oa=Qe[be])===null||oa===void 0||oa.call.apply(oa,[Qe,Et].concat(el))}}(bn||Te)&&(at.onClick=function(be){var Ie;fe.current&&Te?ve(!1):!fe.current&&bn&&(We(be),ve(!0));for(var St=arguments.length,Rt=new Array(St>1?St-1:0),Et=1;Et<St;Et++)Rt[Et-1]=arguments[Et];(Ie=Qe.onClick)===null||Ie===void 0||Ie.call.apply(Ie,[Qe,be].concat(Rt))}),p0(xe,Te,Me,J,E,w,ot,ve);var Zn=pn.has("hover"),na=mn.has("hover"),Jn,ra;Zn&&(rn("onMouseEnter",!0,p,function(be){We(be)}),rn("onPointerEnter",!0,p,function(be){We(be)}),Jn=function(){(xe||ut)&&ve(!0,p)},z&&(at.onMouseMove=function(be){var Ie;(Ie=Qe.onMouseMove)===null||Ie===void 0||Ie.call(Qe,be)})),na&&(rn("onMouseLeave",!1,m),rn("onPointerLeave",!1,m),ra=function(){ve(!1,m)}),pn.has("focus")&&rn("onFocus",!0,b),mn.has("focus")&&rn("onBlur",!1,S),pn.has("contextMenu")&&(at.onContextMenu=function(be){var Ie;fe.current&&mn.has("contextMenu")?ve(!1):(We(be),ve(!0)),be.preventDefault();for(var St=arguments.length,Rt=new Array(St>1?St-1:0),Et=1;Et<St;Et++)Rt[Et-1]=arguments[Et];(Ie=Qe.onContextMenu)===null||Ie===void 0||Ie.call.apply(Ie,[Qe,be].concat(Rt))}),se&&(at.className=Be(Qe.className,se));var xr=_(_({},Qe),at),aa={},Ya=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ya.forEach(function(be){K[be]&&(aa[be]=function(){for(var Ie,St=arguments.length,Rt=new Array(St),Et=0;Et<St;Et++)Rt[Et]=arguments[Et];(Ie=xr[be])===null||Ie===void 0||Ie.call.apply(Ie,[xr].concat(Rt)),K[be].apply(K,Rt)})});var Qa=d.cloneElement(De,_(_({},xr),aa)),Za={x:Wt,y:_t},Md=ne?_({},ne!==!0?ne:{}):null;return d.createElement(d.Fragment,null,d.createElement(Tn,{disabled:!xe,ref:nt,onResize:nn},d.createElement(Wu,{getTriggerDOMNode:Y},Qa)),d.createElement(gs.Provider,{value:de},d.createElement(zu,{portal:e,ref:Ne,prefixCls:o,popup:D,className:Be(k,$t),style:T,target:Me,onMouseEnter:Jn,onMouseLeave:ra,onPointerEnter:Jn,zIndex:N,open:xe,keepDom:ut,fresh:V,onClick:U,mask:E,motion:ke,maskMotion:ft,onVisibleChanged:ea,onPrepare:ta,forceRender:$,autoDestroy:pe,getPopupContainer:x,align:bt,arrow:Md,arrowPos:Za,ready:et,offsetX:xt,offsetY:Dt,offsetR:It,offsetB:kt,onAlign:Pe,stretch:L,targetWidth:jt/Jt,targetHeight:tn/Kt})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const b0=y0(Vi);var S0=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],E0=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"}}},C0=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,o=t.children,i=t.popupElement,l=t.animation,s=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,f=t.direction,v=f===void 0?"ltr":f,g=t.placement,y=t.builtinPlacements,p=t.dropdownMatchSelectWidth,h=t.dropdownRender,m=t.dropdownAlign,b=t.getPopupContainer,S=t.empty,E=t.getTriggerDOMNode,C=t.onPopupVisibleChange,w=t.onPopupMouseEnter,x=vt(t,S0),$="".concat(r,"-dropdown"),M=i;h&&(M=h(i));var P=d.useMemo(function(){return y||E0(p)},[y,p]),D=l?"".concat($,"-").concat(l):s,k=typeof p=="number",T=d.useMemo(function(){return k?null:p===!1?"minWidth":"width"},[p,k]),F=c;k&&(F=_(_({},F),{},{width:p}));var A=d.useRef(null);return d.useImperativeHandle(n,function(){return{getPopupElement:function(){return A.current}}}),d.createElement(b0,Ge({},x,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:g||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:$,popupTransitionName:D,popup:d.createElement("div",{ref:A,onMouseEnter:w},M),stretch:T,popupAlign:m,popupVisible:a,getPopupContainer:b,popupClassName:Be(u,I({},"".concat($,"-empty"),S)),popupStyle:F,getTriggerDOMNode:E,onPopupVisibleChange:C}),o)},Bu=d.forwardRef(C0);Bu.displayName="SelectTrigger";function Cs(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 Uu(e,t){var n=e||{},r=n.label,a=n.value,o=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:a||"value",options:o||"options",groupLabel:i||l}}function w0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=Uu(n,!1),i=o.label,l=o.value,s=o.options,c=o.groupLabel;function u(f,v){f.forEach(function(g){if(v||!(s in g)){var y=g[l];a.push({key:Cs(g,a.length),groupOption:v,data:g,label:g[i],value:y})}else{var p=g[c];p===void 0&&r&&(p=g.label),a.push({key:Cs(g,a.length),group:!0,data:g,label:p}),u(g[s],!0)}})}return u(e,!1),a}function gi(e){var t=_({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return we(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function x0(e,t){if(!t||!t.length)return null;var n=!1;function r(o,i){var l=Oc(i),s=l[0],c=l.slice(1);if(!s)return[o];var u=o.split(s);return n=n||u.length>1,u.reduce(function(f,v){return[].concat(ue(f),ue(r(v,c)))},[]).filter(function(f){return f})}var a=r(e,t);return n?a:null}var O0=["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"],N0=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ta(e){return e==="tags"||e==="multiple"}var Wi=d.forwardRef(function(e,t){var n,r,a=e.id,o=e.prefixCls,i=e.className,l=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,f=e.displayValues,v=e.onDisplayValuesChange,g=e.emptyOptions,y=e.notFoundContent,p=y===void 0?"Not Found":y,h=e.onClear,m=e.mode,b=e.disabled,S=e.loading,E=e.getInputElement,C=e.getRawInputElement,w=e.open,x=e.defaultOpen,$=e.onDropdownVisibleChange,M=e.activeValue,P=e.onActiveValueChange,D=e.activeDescendantId,k=e.searchValue,T=e.autoClearSearchValue,F=e.onSearch,A=e.onSearchSplit,R=e.tokenSeparators,O=e.allowClear,N=e.suffixIcon,L=e.clearIcon,j=e.OptionList,V=e.animation,z=e.transitionName,U=e.dropdownStyle,re=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,Oe=e.dropdownRender,he=e.dropdownAlign,G=e.placement,q=e.builtinPlacements,Z=e.getPopupContainer,ae=e.showAction,se=ae===void 0?[]:ae,Y=e.onFocus,K=e.onBlur,pe=e.onKeyUp,Se=e.onKeyDown,Ee=e.onMouseDown,oe=vt(e,O0),ge=Ta(m),ee=(l!==void 0?l:ge)||m==="combobox",me=_({},oe);N0.forEach(function(Te){delete me[Te]}),u==null||u.forEach(function(Te){delete me[Te]});var de=d.useState(!1),Re=H(de,2),Ve=Re[0],ye=Re[1];d.useEffect(function(){ye(Tu())},[]);var J=d.useRef(null),Xe=d.useRef(null),Ne=d.useRef(null),$e=d.useRef(null),Je=d.useRef(null),Me=d.useRef(!1),st=Am(),ht=H(st,3),nt=ht[0],De=ht[1],Qe=ht[2];d.useImperativeHandle(t,function(){var Te,Pe;return{focus:(Te=$e.current)===null||Te===void 0?void 0:Te.focus,blur:(Pe=$e.current)===null||Pe===void 0?void 0:Pe.blur,scrollTo:function($t){var gt;return(gt=Je.current)===null||gt===void 0?void 0:gt.scrollTo($t)}}});var at=d.useMemo(function(){var Te;if(m!=="combobox")return k;var Pe=(Te=f[0])===null||Te===void 0?void 0:Te.value;return typeof Pe=="string"||typeof Pe=="number"?String(Pe):""},[k,m,f]),ot=m==="combobox"&&typeof E=="function"&&E()||null,ke=typeof C=="function"&&C(),ft=ka(Xe,ke==null||(n=ke.props)===null||n===void 0?void 0:n.ref),pt=d.useState(!1),He=H(pt,2),qe=He[0],_e=He[1];dt(function(){_e(!0)},[]);var xe=mr(!1,{defaultValue:x,value:w}),je=H(xe,2),fe=je[0],Ce=je[1],W=qe?fe:!1,ie=!p&&g;(b||ie&&W&&m==="combobox")&&(W=!1);var le=ie?!1:W,ve=d.useCallback(function(Te){var Pe=Te!==void 0?Te:!W;b||(Ce(Pe),W!==Pe&&($==null||$(Pe)))},[b,W,Ce,$]),ze=d.useMemo(function(){return(R||[]).some(function(Te){return[`
|
|
165
|
-
`,`\r
|
|
166
|
-
`].includes(Te)})},[R]),Ye=function(Pe,Ot,$t){var gt=!0,Tt=Pe;P==null||P(null);var jt=$t?null:x0(Pe,R);return m!=="combobox"&&jt&&(Tt="",A==null||A(jt),ve(!1),gt=!1),F&&at!==Tt&&F(Tt,{source:Ot?"typing":"effect"}),gt},ut=function(Pe){!Pe||!Pe.trim()||F(Pe,{source:"submit"})};d.useEffect(function(){!W&&!ge&&m!=="combobox"&&Ye("",!1,!1)},[W]),d.useEffect(function(){fe&&b&&Ce(!1),b&&!Me.current&&De(!1)},[b]);var tt=_u(),wt=H(tt,2),rt=wt[0],yt=wt[1],mt=function(Pe){var Ot=rt(),$t=Pe.which;if($t===B.ENTER&&(m!=="combobox"&&Pe.preventDefault(),W||ve(!0)),yt(!!at),$t===B.BACKSPACE&&!Ot&&ge&&!at&&f.length){for(var gt=ue(f),Tt=null,jt=gt.length-1;jt>=0;jt-=1){var Sn=gt[jt];if(!Sn.disabled){gt.splice(jt,1),Tt=Sn;break}}Tt&&v(gt,{type:"remove",values:[Tt]})}for(var en=arguments.length,cn=new Array(en>1?en-1:0),tn=1;tn<en;tn++)cn[tn-1]=arguments[tn];if(W&&Je.current){var Qn;(Qn=Je.current).onKeyDown.apply(Qn,[Pe].concat(cn))}Se==null||Se.apply(void 0,[Pe].concat(cn))},Fe=function(Pe){for(var Ot=arguments.length,$t=new Array(Ot>1?Ot-1:0),gt=1;gt<Ot;gt++)$t[gt-1]=arguments[gt];if(W&&Je.current){var Tt;(Tt=Je.current).onKeyUp.apply(Tt,[Pe].concat($t))}pe==null||pe.apply(void 0,[Pe].concat($t))},te=function(Pe){var Ot=f.filter(function($t){return $t!==Pe});v(Ot,{type:"remove",values:[Pe]})},X=d.useRef(!1),ce=function(){De(!0),b||(Y&&!X.current&&Y.apply(void 0,arguments),se.includes("focus")&&ve(!0)),X.current=!0},We=function(){Me.current=!0,De(!1,function(){X.current=!1,Me.current=!1,ve(!1)}),!b&&(at&&(m==="tags"?F(at,{source:"submit"}):m==="multiple"&&F("",{source:"blur"})),K&&K.apply(void 0,arguments))},Ae=[];d.useEffect(function(){return function(){Ae.forEach(function(Te){return clearTimeout(Te)}),Ae.splice(0,Ae.length)}},[]);var Le=function(Pe){var Ot,$t=Pe.target,gt=(Ot=Ne.current)===null||Ot===void 0?void 0:Ot.getPopupElement();if(gt&>.contains($t)){var Tt=setTimeout(function(){var cn=Ae.indexOf(Tt);if(cn!==-1&&Ae.splice(cn,1),Qe(),!Ve&&!gt.contains(document.activeElement)){var tn;(tn=$e.current)===null||tn===void 0||tn.focus()}});Ae.push(Tt)}for(var jt=arguments.length,Sn=new Array(jt>1?jt-1:0),en=1;en<jt;en++)Sn[en-1]=arguments[en];Ee==null||Ee.apply(void 0,[Pe].concat(Sn))},et=d.useState({}),xt=H(et,2),Dt=xt[1];function It(){Dt({})}var kt;ke&&(kt=function(Pe){ve(Pe)}),Km(function(){var Te;return[J.current,(Te=Ne.current)===null||Te===void 0?void 0:Te.getPopupElement()]},le,ve,!!ke);var Wt=d.useMemo(function(){return _(_({},e),{},{notFoundContent:p,open:W,triggerOpen:le,id:a,showSearch:ee,multiple:ge,toggleOpen:ve})},[e,p,le,W,a,ee,ge,ve]),_t=!!N||S,Jt;_t&&(Jt=d.createElement(qa,{className:Be("".concat(o,"-arrow"),I({},"".concat(o,"-arrow-loading"),S)),customizeIcon:N,customizeIconProps:{loading:S,searchValue:at,open:W,focused:nt,showSearch:ee}}));var Kt=function(){var Pe;h==null||h(),(Pe=$e.current)===null||Pe===void 0||Pe.focus(),v([],{type:"clear",values:f}),Ye("",!1,!1)},bt=Lm(o,Kt,f,O,L,b,at,m),sn=bt.allowClear,_n=bt.clearIcon,Yn=d.createElement(j,{ref:Je}),pn=Be(o,i,(r={},I(r,"".concat(o,"-focused"),nt),I(r,"".concat(o,"-multiple"),ge),I(r,"".concat(o,"-single"),!ge),I(r,"".concat(o,"-allow-clear"),O),I(r,"".concat(o,"-show-arrow"),_t),I(r,"".concat(o,"-disabled"),b),I(r,"".concat(o,"-loading"),S),I(r,"".concat(o,"-open"),W),I(r,"".concat(o,"-customize-input"),ot),I(r,"".concat(o,"-show-search"),ee),r)),mn=d.createElement(Bu,{ref:Ne,disabled:b,prefixCls:o,visible:le,popupElement:Yn,animation:V,transitionName:z,dropdownStyle:U,dropdownClassName:re,direction:c,dropdownMatchSelectWidth:ne,dropdownRender:Oe,dropdownAlign:he,placement:G,builtinPlacements:q,getPopupContainer:Z,empty:g,getTriggerDOMNode:function(){return Xe.current},onPopupVisibleChange:kt,onPopupMouseEnter:It},ke?d.cloneElement(ke,{ref:ft}):d.createElement(Vu,Ge({},e,{domRef:Xe,prefixCls:o,inputElement:ot,ref:$e,id:a,showSearch:ee,autoClearSearchValue:T,mode:m,activeDescendantId:D,tagRender:s,values:f,open:W,onToggleOpen:ve,activeValue:M,searchValue:at,onSearch:Ye,onSearchSubmit:ut,onRemove:te,tokenWithEnter:ze}))),bn;return ke?bn=mn:bn=d.createElement("div",Ge({className:pn},me,{ref:J,onMouseDown:Le,onKeyDown:mt,onKeyUp:Fe,onFocus:ce,onBlur:We}),nt&&!W&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(f.map(function(Te){var Pe=Te.label,Ot=Te.value;return["number","string"].includes(Ue(Pe))?Pe:Ot}).join(", "))),mn,Jt,sn&&_n),d.createElement(Du.Provider,{value:Wt},bn)});process.env.NODE_ENV!=="production"&&(Wi.displayName="BaseSelect");var qu=function(){return null};qu.isSelectOptGroup=!0;var Gu=function(){return null};Gu.isSelectOption=!0;var Xu=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,o=e.children,i=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,u=e.extra,f={},v={display:"flex",flexDirection:"column"};if(r!==void 0){var g;f={height:n,position:"relative",overflow:"hidden"},v=_(_({},v),{},(g={transform:"translateY(".concat(r,"px)")},I(g,c?"marginRight":"marginLeft",-a),I(g,"position","absolute"),I(g,"left",0),I(g,"right",0),I(g,"top",0),g))}return d.createElement("div",{style:f},d.createElement(Tn,{onResize:function(p){var h=p.offsetHeight;h&&l&&l()}},d.createElement("div",Ge({style:v,className:Be(I({},"".concat(i,"-holder-inner"),i)),ref:t},s),o,u)))});Xu.displayName="Filler";function ws(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var pi=d.forwardRef(function(e,t){var n,r=e.prefixCls,a=e.rtl,o=e.scrollOffset,i=e.scrollRange,l=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,f=e.spinSize,v=e.containerSize,g=e.style,y=e.thumbStyle,p=d.useState(!1),h=H(p,2),m=h[0],b=h[1],S=d.useState(null),E=H(S,2),C=E[0],w=E[1],x=d.useState(null),$=H(x,2),M=$[0],P=$[1],D=!a,k=d.useRef(),T=d.useRef(),F=d.useState(!1),A=H(F,2),R=A[0],O=A[1],N=d.useRef(),L=function(){clearTimeout(N.current),O(!0),N.current=setTimeout(function(){O(!1)},3e3)},j=i-v||0,V=v-f||0,z=j>0,U=d.useMemo(function(){if(o===0||j===0)return 0;var se=o/j;return se*V},[o,j,V]),re=function(Y){Y.stopPropagation(),Y.preventDefault()},ne=d.useRef({top:U,dragging:m,pageY:C,startTop:M});ne.current={top:U,dragging:m,pageY:C,startTop:M};var Oe=function(Y){b(!0),w(ws(Y,u)),P(ne.current.top),l(),Y.stopPropagation(),Y.preventDefault()};d.useEffect(function(){var se=function(Se){Se.preventDefault()},Y=k.current,K=T.current;return Y.addEventListener("touchstart",se),K.addEventListener("touchstart",Oe),function(){Y.removeEventListener("touchstart",se),K.removeEventListener("touchstart",Oe)}},[]);var he=d.useRef();he.current=j;var G=d.useRef();G.current=V,d.useEffect(function(){if(m){var se,Y=function(Se){var Ee=ne.current,oe=Ee.dragging,ge=Ee.pageY,ee=Ee.startTop;if(Vt.cancel(se),oe){var me=ws(Se,u)-ge,de=ee;!D&&u?de-=me:de+=me;var Re=he.current,Ve=G.current,ye=Ve?de/Ve:0,J=Math.ceil(ye*Re);J=Math.max(J,0),J=Math.min(J,Re),se=Vt(function(){c(J,u)})}},K=function(){b(!1),s()};return window.addEventListener("mousemove",Y),window.addEventListener("touchmove",Y),window.addEventListener("mouseup",K),window.addEventListener("touchend",K),function(){window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),Vt.cancel(se)}}},[m]),d.useEffect(function(){L()},[o]),d.useImperativeHandle(t,function(){return{delayHidden:L}});var q="".concat(r,"-scrollbar"),Z={position:"absolute",visibility:R&&z?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(Z.height=8,Z.left=0,Z.right=0,Z.bottom=0,ae.height="100%",ae.width=f,D?ae.left=U:ae.right=U):(Z.width=8,Z.top=0,Z.bottom=0,D?Z.right=0:Z.left=0,ae.width="100%",ae.height=f,ae.top=U),d.createElement("div",{ref:k,className:Be(q,(n={},I(n,"".concat(q,"-horizontal"),u),I(n,"".concat(q,"-vertical"),!u),I(n,"".concat(q,"-visible"),R),n)),style:_(_({},Z),g),onMouseDown:re,onMouseMove:L},d.createElement("div",{ref:T,className:Be("".concat(q,"-thumb"),I({},"".concat(q,"-thumb-moving"),m)),style:_(_({},ae),y),onMouseDown:Oe}))});process.env.NODE_ENV!=="production"&&(pi.displayName="ScrollBar");function P0(e){var t=e.children,n=e.setRef,r=d.useCallback(function(a){n(a)},[]);return d.cloneElement(t,{ref:r})}function R0(e,t,n,r,a,o,i){var l=i.getKey;return e.slice(t,n+1).map(function(s,c){var u=t+c,f=o(s,u,{style:{width:r}}),v=l(s);return d.createElement(P0,{key:v,setRef:function(y){return a(s,y)}},f)})}var M0=function(){function e(){Qt(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Zt(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 I0(e,t,n){var r=d.useState(0),a=H(r,2),o=a[0],i=a[1],l=Q.useRef(new Map),s=Q.useRef(new M0),c=Q.useRef();function u(){Vt.cancel(c.current)}function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var y=function(){l.current.forEach(function(h,m){if(h&&h.offsetParent){var b=Ir(h),S=b.offsetHeight;s.current.get(m)!==S&&s.current.set(m,b.offsetHeight)}}),i(function(h){return h+1})};g?y():c.current=Vt(y)}function v(g,y){var p=e(g),h=l.current.get(p);y?(l.current.set(p,y),f()):l.current.delete(p),!h!=!y&&(y?t==null||t(g):n==null||n(g))}return Q.useEffect(function(){return u},[]),[v,f,s.current,o]}var xs=10;function $0(e,t,n,r,a,o,i,l){var s=d.useRef(),c=d.useState(null),u=H(c,2),f=u[0],v=u[1];return dt(function(){if(f&&f.times<xs){if(!e.current){v(function(L){return _({},L)});return}o();var g=f.targetAlign,y=f.originAlign,p=f.index,h=f.offset,m=e.current.clientHeight,b=!1,S=g,E=null;if(m){for(var C=g||y,w=0,x=0,$=0,M=Math.min(t.length-1,p),P=0;P<=M;P+=1){var D=a(t[P]);x=w;var k=n.get(D);$=x+(k===void 0?r:k),w=$}for(var T=C==="top"?h:m-h,F=M;F>=0;F-=1){var A=a(t[F]),R=n.get(A);if(R===void 0){b=!0;break}if(T-=R,T<=0)break}switch(C){case"top":E=x-h;break;case"bottom":E=$-m+h;break;default:{var O=e.current.scrollTop,N=O+m;x<O?S="top":$>N&&(S="bottom")}}E!==null&&i(E),E!==f.lastTop&&(b=!0)}b&&v(_(_({},f),{},{times:f.times+1,targetAlign:S,lastTop:E}))}else process.env.NODE_ENV!=="production"&&(f==null?void 0:f.times)===xs&&we(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(g){if(g==null){l();return}if(Vt.cancel(s.current),typeof g=="number")i(g);else if(g&&Ue(g)==="object"){var y,p=g.align;"index"in g?y=g.index:y=t.findIndex(function(b){return a(b)===g.key});var h=g.offset,m=h===void 0?0:h;v({times:0,index:y,offset:m,originAlign:p})}}}function T0(e,t,n){var r=e.length,a=t.length,o,i;if(r===0&&a===0)return null;r<a?(o=e,i=t):(o=t,i=e);var l={__EMPTY_ITEM__:!0};function s(y){return y!==void 0?n(y):l}for(var c=null,u=Math.abs(r-a)!==1,f=0;f<i.length;f+=1){var v=s(o[f]),g=s(i[f]);if(v!==g){c=f,u=u||v!==s(i[f+1]);break}}return c===null?null:{index:c,multiple:u}}function D0(e,t,n){var r=d.useState(e),a=H(r,2),o=a[0],i=a[1],l=d.useState(null),s=H(l,2),c=s[0],u=s[1];return d.useEffect(function(){var f=T0(o||[],e||[],t);(f==null?void 0:f.index)!==void 0&&(n==null||n(f.index),u(e[f.index])),i(e)},[e]),[c]}var Os=(typeof navigator>"u"?"undefined":Ue(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Yu=function(e,t){var n=Q.useRef(!1),r=Q.useRef(null);function a(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var o=Q.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=i<0&&o.current.top||i>0&&o.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&a(),!n.current&&s}};function k0(e,t,n,r,a){var o=Q.useRef(0),i=Q.useRef(null),l=Q.useRef(null),s=Q.useRef(!1),c=Yu(t,n);function u(h,m){Vt.cancel(i.current),o.current+=m,l.current=m,!c(m)&&(Os||h.preventDefault(),i.current=Vt(function(){var b=s.current?10:1;a(o.current*b),o.current=0}))}function f(h,m){a(m,!0),Os||h.preventDefault()}var v=Q.useRef(null),g=Q.useRef(null);function y(h){if(e){Vt.cancel(g.current),g.current=Vt(function(){v.current=null},2);var m=h.deltaX,b=h.deltaY,S=h.shiftKey,E=m,C=b;(v.current==="sx"||!v.current&&S&&b&&!m)&&(E=b,C=0,v.current="sx");var w=Math.abs(E),x=Math.abs(C);v.current===null&&(v.current=r&&w>x?"x":"y"),v.current==="y"?u(h,C):f(h,E)}}function p(h){e&&(s.current=h.detail===l.current)}return[y,p]}var _0=14/15;function F0(e,t,n){var r=Q.useRef(!1),a=Q.useRef(0),o=Q.useRef(null),i=Q.useRef(null),l,s=function(v){if(r.current){var g=Math.ceil(v.touches[0].pageY),y=a.current-g;a.current=g,n(y)&&v.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){y*=_0,(!n(y,!0)||Math.abs(y)<=.1)&&clearInterval(i.current)},16)}},c=function(){r.current=!1,l()},u=function(v){l(),v.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(v.touches[0].pageY),o.current=v.target,o.current.addEventListener("touchmove",s),o.current.addEventListener("touchend",c))};l=function(){o.current&&(o.current.removeEventListener("touchmove",s),o.current.removeEventListener("touchend",c))},dt(function(){return e&&t.current.addEventListener("touchstart",u),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",u),l(),clearInterval(i.current)}},[e])}var L0=20;function Ns(){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,L0),n=Math.min(n,e/2),Math.floor(n)}function A0(e,t,n,r){var a=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=H(a,2),i=o[0],l=o[1],s=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,v=i.get(u),g=i.get(f);if(v===void 0||g===void 0)for(var y=e.length,p=l.length;p<y;p+=1){var h,m=e[p],b=t(m);i.set(b,p);var S=(h=n.get(b))!==null&&h!==void 0?h:r;if(l[p]=(l[p-1]||0)+S,b===u&&(v=p),b===f&&(g=p),v!==void 0&&g!==void 0)break}return{top:l[v-1]||0,bottom:l[g]}};return s}var K0=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],V0=[],H0={overflowY:"auto",overflowAnchor:"none"};function j0(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,c=e.style,u=e.data,f=e.children,v=e.itemKey,g=e.virtual,y=e.direction,p=e.scrollWidth,h=e.component,m=h===void 0?"div":h,b=e.onScroll,S=e.onVirtualScroll,E=e.onVisibleChange,C=e.innerProps,w=e.extraRender,x=e.styles,$=vt(e,K0),M=!!(g!==!1&&o&&i),P=M&&u&&(i*u.length>o||!!p),D=y==="rtl",k=Be(r,I({},"".concat(r,"-rtl"),D),a),T=u||V0,F=Q.useRef(),A=Q.useRef(),R=Q.useState(0),O=H(R,2),N=O[0],L=O[1],j=Q.useState(0),V=H(j,2),z=V[0],U=V[1],re=Q.useState(!1),ne=H(re,2),Oe=ne[0],he=ne[1],G=function(){he(!0)},q=function(){he(!1)},Z=d.useCallback(function(te){return typeof v=="function"?v(te):te==null?void 0:te[v]},[v]),ae={getKey:Z};function se(te){L(function(X){var ce;typeof te=="function"?ce=te(X):ce=te;var We=ft(ce);return F.current.scrollTop=We,We})}var Y=Q.useRef({start:0,end:T.length}),K=Q.useRef(),pe=D0(T,Z),Se=H(pe,1),Ee=Se[0];K.current=Ee;var oe=I0(Z,null,null),ge=H(oe,4),ee=ge[0],me=ge[1],de=ge[2],Re=ge[3],Ve=d.useMemo(function(){if(!M)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!P){var te;return{scrollHeight:((te=A.current)===null||te===void 0?void 0:te.offsetHeight)||0,start:0,end:T.length-1,offset:void 0}}for(var X=0,ce,We,Ae,Le=T.length,et=0;et<Le;et+=1){var xt=T[et],Dt=Z(xt),It=de.get(Dt),kt=X+(It===void 0?i:It);kt>=N&&ce===void 0&&(ce=et,We=X),kt>N+o&&Ae===void 0&&(Ae=et),X=kt}return ce===void 0&&(ce=0,We=0,Ae=Math.ceil(o/i)),Ae===void 0&&(Ae=T.length-1),Ae=Math.min(Ae+1,T.length-1),{scrollHeight:X,start:ce,end:Ae,offset:We}},[P,M,N,T,Re,o]),ye=Ve.scrollHeight,J=Ve.start,Xe=Ve.end,Ne=Ve.offset;Y.current.start=J,Y.current.end=Xe;var $e=d.useState({width:0,height:o}),Je=H($e,2),Me=Je[0],st=Je[1],ht=function(X){st({width:X.width||X.offsetWidth,height:X.height||X.offsetHeight})},nt=Q.useRef(),De=Q.useRef(),Qe=d.useMemo(function(){return Ns(Me.width,p)},[Me.width,p]),at=d.useMemo(function(){return Ns(Me.height,ye)},[Me.height,ye]),ot=ye-o,ke=Q.useRef(ot);ke.current=ot;function ft(te){var X=te;return Number.isNaN(ke.current)||(X=Math.min(X,ke.current)),X=Math.max(X,0),X}var pt=N<=0,He=N>=ot,qe=Yu(pt,He),_e=function(){return{x:D?-z:z,y:N}},xe=Q.useRef(_e()),je=on(function(){if(S){var te=_e();(xe.current.x!==te.x||xe.current.y!==te.y)&&(S(te),xe.current=te)}});function fe(te,X){var ce=te;X?(Fr.flushSync(function(){U(ce)}),je()):se(ce)}function Ce(te){var X=te.currentTarget.scrollTop;X!==N&&se(X),b==null||b(te),je()}var W=function(X){var ce=X,We=p-Me.width;return ce=Math.max(ce,0),ce=Math.min(ce,We),ce},ie=on(function(te,X){X?(Fr.flushSync(function(){U(function(ce){var We=ce+(D?-te:te);return W(We)})}),je()):se(function(ce){var We=ce+te;return We})}),le=k0(M,pt,He,!!p,ie),ve=H(le,2),ze=ve[0],Ye=ve[1];F0(M,F,function(te,X){return qe(te,X)?!1:(ze({preventDefault:function(){},deltaY:te}),!0)}),dt(function(){function te(ce){M&&ce.preventDefault()}var X=F.current;return X.addEventListener("wheel",ze),X.addEventListener("DOMMouseScroll",Ye),X.addEventListener("MozMousePixelScroll",te),function(){X.removeEventListener("wheel",ze),X.removeEventListener("DOMMouseScroll",Ye),X.removeEventListener("MozMousePixelScroll",te)}},[M]),dt(function(){p&&U(function(te){return W(te)})},[Me.width,p]);var ut=function(){var X,ce;(X=nt.current)===null||X===void 0||X.delayHidden(),(ce=De.current)===null||ce===void 0||ce.delayHidden()},tt=$0(F,T,de,i,Z,function(){return me(!0)},se,ut);d.useImperativeHandle(t,function(){return{getScrollInfo:_e,scrollTo:function(X){function ce(We){return We&&Ue(We)==="object"&&("left"in We||"top"in We)}ce(X)?(X.left!==void 0&&U(W(X.left)),tt(X.top)):tt(X)}}}),dt(function(){if(E){var te=T.slice(J,Xe+1);E(te,T)}},[J,Xe,T]);var wt=A0(T,Z,de,i),rt=w==null?void 0:w({start:J,end:Xe,virtual:P,offsetX:z,offsetY:Ne,rtl:D,getSize:wt}),yt=R0(T,J,Xe,p,ee,f,ae),mt=null;o&&(mt=_(I({},s?"height":"maxHeight",o),H0),M&&(mt.overflowY="hidden",p&&(mt.overflowX="hidden"),Oe&&(mt.pointerEvents="none")));var Fe={};return D&&(Fe.dir="rtl"),d.createElement("div",Ge({style:_(_({},c),{},{position:"relative"}),className:k},Fe,$),d.createElement(Tn,{onResize:ht},d.createElement(m,{className:"".concat(r,"-holder"),style:mt,ref:F,onScroll:Ce,onMouseEnter:ut},d.createElement(Xu,{prefixCls:r,height:ye,offsetX:z,offsetY:Ne,scrollWidth:p,onInnerResize:me,ref:A,innerProps:C,rtl:D,extra:rt},yt))),P&&ye>o&&d.createElement(pi,{ref:nt,prefixCls:r,scrollOffset:N,scrollRange:ye,rtl:D,onScroll:fe,onStartMove:G,onStopMove:q,spinSize:at,containerSize:Me.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),P&&p&&d.createElement(pi,{ref:De,prefixCls:r,scrollOffset:z,scrollRange:p,rtl:D,onScroll:fe,onStartMove:G,onStopMove:q,spinSize:Qe,containerSize:Me.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var Bi=d.forwardRef(j0);Bi.displayName="List";var Qu=d.createContext(null);function z0(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var W0=["disabled","title","children","style","className"];function Ps(e){return typeof e=="string"||typeof e=="number"}var B0=function(t,n){var r=ku(),a=r.prefixCls,o=r.id,i=r.open,l=r.multiple,s=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,v=r.onPopupScroll,g=d.useContext(Qu),y=g.flattenOptions,p=g.onActiveValue,h=g.defaultActiveFirstOption,m=g.onSelect,b=g.menuItemSelectedIcon,S=g.rawValues,E=g.fieldNames,C=g.virtual,w=g.direction,x=g.listHeight,$=g.listItemHeight,M=g.optionRender,P="".concat(a,"-item"),D=Wr(function(){return y},[i,y],function(G,q){return q[0]&&G[1]!==q[1]}),k=d.useRef(null),T=function(q){q.preventDefault()},F=function(q){k.current&&k.current.scrollTo(typeof q=="number"?{index:q}:q)},A=function(q){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ae=D.length,se=0;se<ae;se+=1){var Y=(q+se*Z+ae)%ae,K=D[Y],pe=K.group,Se=K.data;if(!pe&&!Se.disabled)return Y}return-1},R=d.useState(function(){return A(0)}),O=H(R,2),N=O[0],L=O[1],j=function(q){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;L(q);var ae={source:Z?"keyboard":"mouse"},se=D[q];if(!se){p(null,-1,ae);return}p(se.value,q,ae)};Q.useEffect(function(){j(h!==!1?A(0):-1)},[D.length,c]);var V=d.useCallback(function(G){return S.has(G)&&s!=="combobox"},[s,ue(S).toString(),S.size]);Q.useEffect(function(){var G=setTimeout(function(){if(!l&&i&&S.size===1){var Z=Array.from(S)[0],ae=D.findIndex(function(se){var Y=se.data;return Y.value===Z});ae!==-1&&(j(ae),F(ae))}});if(i){var q;(q=k.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(G)}},[i,c]);var z=function(q){q!==void 0&&m(q,{selected:!S.has(q)}),l||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(q){var Z=q.which,ae=q.ctrlKey;switch(Z){case B.N:case B.P:case B.UP:case B.DOWN:{var se=0;if(Z===B.UP?se=-1:Z===B.DOWN?se=1:z0()&&ae&&(Z===B.N?se=1:Z===B.P&&(se=-1)),se!==0){var Y=A(N+se,se);F(Y),j(Y,!0)}break}case B.ENTER:{var K=D[N];K&&!K.data.disabled?z(K.value):z(void 0),i&&q.preventDefault();break}case B.ESC:u(!1),i&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){F(q)}}}),D.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(P,"-empty"),onMouseDown:T},f);var U=Object.keys(E).map(function(G){return E[G]}),re=function(q){return q.label};function ne(G,q){var Z=G.group;return{role:Z?"presentation":"option",id:"".concat(o,"_list_").concat(q)}}var Oe=function(q){var Z=D[q];if(!Z)return null;var ae=Z.data||{},se=ae.value,Y=Z.group,K=yr(ae,!0),pe=re(Z);return Z?d.createElement("div",Ge({"aria-label":typeof pe=="string"&&!Y?pe:null},K,{key:q},ne(Z,q),{"aria-selected":V(se)}),se):null},he={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,C&&d.createElement("div",Ge({},he,{style:{height:0,width:0,overflow:"hidden"}}),Oe(N-1),Oe(N),Oe(N+1)),d.createElement(Bi,{itemKey:"key",ref:k,data:D,height:x,itemHeight:$,fullHeight:!1,onMouseDown:T,onScroll:v,virtual:C,direction:w,innerProps:C?null:he},function(G,q){var Z,ae=G.group,se=G.groupOption,Y=G.data,K=G.label,pe=G.value,Se=Y.key;if(ae){var Ee,oe=(Ee=Y.title)!==null&&Ee!==void 0?Ee:Ps(K)?K.toString():void 0;return d.createElement("div",{className:Be(P,"".concat(P,"-group")),title:oe},K!==void 0?K:Se)}var ge=Y.disabled,ee=Y.title;Y.children;var me=Y.style,de=Y.className,Re=vt(Y,W0),Ve=xi(Re,U),ye=V(pe),J="".concat(P,"-option"),Xe=Be(P,J,de,(Z={},I(Z,"".concat(J,"-grouped"),se),I(Z,"".concat(J,"-active"),N===q&&!ge),I(Z,"".concat(J,"-disabled"),ge),I(Z,"".concat(J,"-selected"),ye),Z)),Ne=re(G),$e=!b||typeof b=="function"||ye,Je=typeof Ne=="number"?Ne:Ne||pe,Me=Ps(Je)?Je.toString():void 0;return ee!==void 0&&(Me=ee),d.createElement("div",Ge({},yr(Ve),C?{}:ne(G,q),{"aria-selected":ye,className:Xe,title:Me,onMouseMove:function(){N===q||ge||j(q)},onClick:function(){ge||z(pe)},style:me}),d.createElement("div",{className:"".concat(J,"-content")},typeof M=="function"?M(G,{index:q}):Je),d.isValidElement(b)||ye,$e&&d.createElement(qa,{className:"".concat(P,"-option-state"),customizeIcon:b,customizeIconProps:{value:pe,disabled:ge,isSelected:ye}},ye?"✓":null))}))},Zu=d.forwardRef(B0);Zu.displayName="OptionList";const U0=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var o=n.current,i=o.values,l=o.options,s=e.map(function(f){if(f.label===void 0){var v;return _(_({},f),{},{label:(v=i.get(f.value))===null||v===void 0?void 0:v.label})}return f}),c=new Map,u=new Map;return s.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=c,n.current.options=u,s},[e,t]),a=d.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function mo(e,t){return zi(e).join("").toUpperCase().includes(t)}const q0=function(e,t,n,r,a){return d.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,l=t.value,s=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(g,y){return a?mo(y[a],u):y[o]?mo(y[i!=="children"?i:"label"],u):mo(y[l],u)},v=c?function(g){return gi(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var y=f(n,v(g));if(y)s.push(g);else{var p=g[o].filter(function(h){return f(n,v(h))});p.length&&s.push(_(_({},g),{},I({},o,p)))}return}f(n,v(g))&&s.push(g)}),s},[e,r,a,n,t])};var Rs=0,G0=process.env.NODE_ENV!=="test"&&Ht();function X0(){var e;return G0?(e=Rs,Rs+=1):e="TEST_OR_SSR",e}function Ju(e){var t=d.useState(),n=H(t,2),r=n[0],a=n[1];return d.useEffect(function(){a("rc_select_".concat(X0()))},[]),e||r}var Y0=["children","value"],Q0=["children"];function Z0(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=vt(r,Y0);return _({key:n,value:o!==void 0?o:n,children:a},i)}function Ui(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Pn(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,l=a.props,s=l.children,c=vt(l,Q0);return t||!o?Z0(n):_(_({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:Ui(s)})}).filter(function(n){return n})}function J0(e,t,n,r,a){return d.useMemo(function(){var o=e,i=!e;i&&(o=Ui(t));var l=new Map,s=new Map,c=function(v,g,y){y&&typeof y=="string"&&v.set(g[y],g)};function u(f){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g<f.length;g+=1){var y=f[g];!y[n.options]||v?(l.set(y[n.value],y),c(s,y,n.label),c(s,y,r),c(s,y,a)):u(y[n.options],!0)}}return u(o),{options:o,valueOptions:l,labelOptions:s}},[e,t,n,r,a])}function Ms(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function ey(e){var t=e.mode,n=e.options,r=e.children,a=e.backfill,o=e.allowClear,i=e.placeholder,l=e.getInputElement,s=e.showSearch,c=e.onSearch,u=e.defaultOpen,f=e.autoFocus,v=e.labelInValue,g=e.value,y=e.inputValue,p=e.optionLabelProp,h=Ta(t),m=s!==void 0?s:h||t==="combobox",b=n||Ui(r);if(we(t!=="tags"||b.every(function(w){return!w.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var S=b.some(function(w){return w.options?w.options.some(function(x){return typeof("value"in x?x.value:x.key)=="number"}):typeof("value"in w?w.value:w.key)=="number"});we(!S,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(we(t!=="combobox"||!p,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),we(t==="combobox"||!a,"`backfill` only works with `combobox` mode."),we(t==="combobox"||!l,"`getInputElement` only work with `combobox` mode."),Oo(t!=="combobox"||!l||!o||!i,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!m&&t!=="combobox"&&t!=="tags"&&we(!1,"`onSearch` should work with `showSearch` instead of use alone."),Oo(!u||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var E=zi(g);we(!v||E.every(function(w){return Ue(w)==="object"&&("key"in w||"value"in w)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),we(!h||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var C=null;Pn(r).some(function(w){if(!d.isValidElement(w)||!w.type)return!1;var x=w,$=x.type;if($.isSelectOption)return!1;if($.isSelectOptGroup){var M=Pn(w.props.children).every(function(P){return!d.isValidElement(P)||!w.type||P.type.isSelectOption?!0:(C=P.type,!1)});return!M}return C=$,!0}),C&&we(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(C.displayName||C.name||C,"`.")),we(y===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ty(e,t){if(e){var n=function r(a){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=0;i<a.length;i++){var l=a[i];if(l[t==null?void 0:t.value]===null)return we(!1,"`value` in Select options should not be `null`."),!0;if(!o&&Array.isArray(l[t==null?void 0:t.options])&&r(l[t==null?void 0:t.options],!0))break}};n(e)}}var ny=["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"],ry=["inputValue"];function ay(e){return!e||Ue(e)!=="object"}var ed=d.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,o=a===void 0?"rc-select":a,i=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,v=f===void 0?!0:f,g=e.onSelect,y=e.onDeselect,p=e.dropdownMatchSelectWidth,h=p===void 0?!0:p,m=e.filterOption,b=e.filterSort,S=e.optionFilterProp,E=e.optionLabelProp,C=e.options,w=e.optionRender,x=e.children,$=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,P=e.virtual,D=e.direction,k=e.listHeight,T=k===void 0?200:k,F=e.listItemHeight,A=F===void 0?20:F,R=e.value,O=e.defaultValue,N=e.labelInValue,L=e.onChange,j=vt(e,ny),V=Ju(n),z=Ta(r),U=!!(!C&&x),re=d.useMemo(function(){return m===void 0&&r==="combobox"?!1:m},[m,r]),ne=d.useMemo(function(){return Uu(l,U)},[JSON.stringify(l),U]),Oe=mr("",{value:c!==void 0?c:s,postState:function(ie){return ie||""}}),he=H(Oe,2),G=he[0],q=he[1],Z=J0(C,x,ne,S,E),ae=Z.valueOptions,se=Z.labelOptions,Y=Z.options,K=d.useCallback(function(W){var ie=zi(W);return ie.map(function(le){var ve,ze,Ye,ut,tt;if(ay(le))ve=le;else{var wt;Ye=le.key,ze=le.label,ve=(wt=le.value)!==null&&wt!==void 0?wt:Ye}var rt=ae.get(ve);if(rt){var yt;if(ze===void 0&&(ze=rt==null?void 0:rt[E||ne.label]),Ye===void 0&&(Ye=(yt=rt==null?void 0:rt.key)!==null&&yt!==void 0?yt:ve),ut=rt==null?void 0:rt.disabled,tt=rt==null?void 0:rt.title,process.env.NODE_ENV!=="production"&&!E){var mt=rt==null?void 0:rt[ne.label];mt!==void 0&&!d.isValidElement(mt)&&!d.isValidElement(ze)&&mt!==ze&&we(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:ze,value:ve,key:Ye,disabled:ut,title:tt}})},[ne,E,ae]),pe=mr(O,{value:R}),Se=H(pe,2),Ee=Se[0],oe=Se[1],ge=d.useMemo(function(){var W,ie=K(Ee);return r==="combobox"&&t0((W=ie[0])===null||W===void 0?void 0:W.value)?[]:ie},[Ee,K,r]),ee=U0(ge,ae),me=H(ee,2),de=me[0],Re=me[1],Ve=d.useMemo(function(){if(!r&&de.length===1){var W=de[0];if(W.value===null&&(W.label===null||W.label===void 0))return[]}return de.map(function(ie){var le;return _(_({},ie),{},{label:(le=ie.label)!==null&&le!==void 0?le:ie.value})})},[r,de]),ye=d.useMemo(function(){return new Set(de.map(function(W){return W.value}))},[de]);d.useEffect(function(){if(r==="combobox"){var W,ie=(W=de[0])===null||W===void 0?void 0:W.value;q(e0(ie)?String(ie):"")}},[de]);var J=Ms(function(W,ie){var le,ve=ie??W;return le={},I(le,ne.value,W),I(le,ne.label,ve),le}),Xe=d.useMemo(function(){if(r!=="tags")return Y;var W=ue(Y),ie=function(ve){return ae.has(ve)};return ue(de).sort(function(le,ve){return le.value<ve.value?-1:1}).forEach(function(le){var ve=le.value;ie(ve)||W.push(J(ve,le.label))}),W},[J,Y,ae,de,r]),Ne=q0(Xe,ne,G,re,S),$e=d.useMemo(function(){return r!=="tags"||!G||Ne.some(function(W){return W[S||"value"]===G})||Ne.some(function(W){return W[ne.value]===G})?Ne:[J(G)].concat(ue(Ne))},[J,S,r,Ne,G,ne]),Je=d.useMemo(function(){return b?ue($e).sort(function(W,ie){return b(W,ie)}):$e},[$e,b]),Me=d.useMemo(function(){return w0(Je,{fieldNames:ne,childrenAsData:U})},[Je,ne,U]),st=function(ie){var le=K(ie);if(oe(le),L&&(le.length!==de.length||le.some(function(Ye,ut){var tt;return((tt=de[ut])===null||tt===void 0?void 0:tt.value)!==(Ye==null?void 0:Ye.value)}))){var ve=N?le:le.map(function(Ye){return Ye.value}),ze=le.map(function(Ye){return gi(Re(Ye.value))});L(z?ve:ve[0],z?ze:ze[0])}},ht=d.useState(null),nt=H(ht,2),De=nt[0],Qe=nt[1],at=d.useState(0),ot=H(at,2),ke=ot[0],ft=ot[1],pt=$!==void 0?$:r!=="combobox",He=d.useCallback(function(W,ie){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ve=le.source,ze=ve===void 0?"keyboard":ve;ft(ie),i&&r==="combobox"&&W!==null&&ze==="keyboard"&&Qe(String(W))},[i,r]),qe=function(ie,le,ve){var ze=function(){var X,ce=Re(ie);return[N?{label:ce==null?void 0:ce[ne.label],value:ie,key:(X=ce==null?void 0:ce.key)!==null&&X!==void 0?X:ie}:ie,gi(ce)]};if(le&&g){var Ye=ze(),ut=H(Ye,2),tt=ut[0],wt=ut[1];g(tt,wt)}else if(!le&&y&&ve!=="clear"){var rt=ze(),yt=H(rt,2),mt=yt[0],Fe=yt[1];y(mt,Fe)}},_e=Ms(function(W,ie){var le,ve=z?ie.selected:!0;ve?le=z?[].concat(ue(de),[W]):[W]:le=de.filter(function(ze){return ze.value!==W}),st(le),qe(W,ve),r==="combobox"?Qe(""):(!Ta||v)&&(q(""),Qe(""))}),xe=function(ie,le){st(ie);var ve=le.type,ze=le.values;(ve==="remove"||ve==="clear")&&ze.forEach(function(Ye){qe(Ye.value,!1,ve)})},je=function(ie,le){if(q(ie),Qe(null),le.source==="submit"){var ve=(ie||"").trim();if(ve){var ze=Array.from(new Set([].concat(ue(ye),[ve])));st(ze),qe(ve,!0),q("")}return}le.source!=="blur"&&(r==="combobox"&&st(ie),u==null||u(ie))},fe=function(ie){var le=ie;r!=="tags"&&(le=ie.map(function(ze){var Ye=se.get(ze);return Ye==null?void 0:Ye.value}).filter(function(ze){return ze!==void 0}));var ve=Array.from(new Set([].concat(ue(ye),ue(le))));st(ve),ve.forEach(function(ze){qe(ze,!0)})},Ce=d.useMemo(function(){var W=P!==!1&&h!==!1;return _(_({},Z),{},{flattenOptions:Me,onActiveValue:He,defaultActiveFirstOption:pt,onSelect:_e,menuItemSelectedIcon:M,rawValues:ye,fieldNames:ne,virtual:W,direction:D,listHeight:T,listItemHeight:A,childrenAsData:U,optionRender:w})},[Z,Me,He,pt,_e,M,ye,ne,P,h,T,A,U,w]);return process.env.NODE_ENV!=="production"&&(ey(e),ty(Y,ne)),d.createElement(Qu.Provider,{value:Ce},d.createElement(Wi,Ge({},j,{id:V,prefixCls:o,ref:t,omitDomProps:ry,mode:r,displayValues:Ve,onDisplayValuesChange:xe,direction:D,searchValue:G,onSearch:je,autoClearSearchValue:v,onSearchSplit:fe,dropdownMatchSelectWidth:h,OptionList:Zu,emptyOptions:!Me.length,activeValue:De,activeDescendantId:"".concat(V,"_list_").concat(ke)})))});process.env.NODE_ENV!=="production"&&(ed.displayName="Select");var td=ed;td.Option=Gu;td.OptGroup=qu;function oy(e,t,n){return Be({[`${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 iy=(e,t)=>t||e,nd=()=>{const[,e]=wr(),n=new Ft(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.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"}),d.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)"}),d.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"}),d.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"})),d.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"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(nd.displayName="EmptyImage");const ly=nd,rd=()=>{const[,e]=wr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:i,contentColor:l}=Q.useMemo(()=>({borderColor:new Ft(t).onBackground(a).toHexShortString(),shadowColor:new Ft(n).onBackground(a).toHexShortString(),contentColor:new Ft(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:o},d.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"}),d.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"&&(rd.displayName="SimpleImage");const sy=rd,cy=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,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:a,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},uy=Br("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=zt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[cy(r)]});var dy=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ad=d.createElement(ly,null),od=d.createElement(sy,null),Ga=e=>{var{className:t,rootClassName:n,prefixCls:r,image:a=ad,description:o,children:i,imageStyle:l,style:s}=e,c=dy(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:f,empty:v}=d.useContext(Dn),g=u("empty",r),[y,p]=uy(g),[h]=Vv("Empty"),m=typeof o<"u"?o:h==null?void 0:h.description,b=typeof m=="string"?m:"empty";let S=null;return typeof a=="string"?S=d.createElement("img",{alt:b,src:a}):S=a,y(d.createElement("div",Object.assign({className:Be(p,g,v==null?void 0:v.className,{[`${g}-normal`]:a===od,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),s)},c),d.createElement("div",{className:`${g}-image`,style:l},S),m&&d.createElement("div",{className:`${g}-description`},m),i&&d.createElement("div",{className:`${g}-footer`},i)))};Ga.PRESENTED_IMAGE_DEFAULT=ad;Ga.PRESENTED_IMAGE_SIMPLE=od;process.env.NODE_ENV!=="production"&&(Ga.displayName="Empty");const Rr=Ga,fy=e=>{const{componentName:t}=e,{getPrefixCls:n}=Q.useContext(Dn),r=n("empty");switch(t){case"Table":case"List":return Q.createElement(Rr,{image:Rr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Q.createElement(Rr,{image:Rr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return Q.createElement(Rr,null)}},vy=fy,hy=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},gy=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Wn(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,[`
|
|
167
|
-
${a}${l}bottomLeft,
|
|
168
|
-
${o}${l}bottomLeft
|
|
169
|
-
`]:{animationName:Pu},[`
|
|
170
|
-
${a}${l}topLeft,
|
|
171
|
-
${o}${l}topLeft,
|
|
172
|
-
${a}${l}topRight,
|
|
173
|
-
${o}${l}topRight
|
|
174
|
-
`]:{animationName:Mu},[`${i}${l}bottomLeft`]:{animationName:Ru},[`
|
|
175
|
-
${i}${l}topLeft,
|
|
176
|
-
${i}${l}topRight
|
|
177
|
-
`]:{animationName:Iu},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},hy(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"},zo),"&-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"}})},fs(e,"slide-up"),fs(e,"slide-down"),ds(e,"move-up"),ds(e,"move-down")]},py=gy,or=2,id=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const a=(n-t)/2-r,o=Math.ceil(a/2);return[a,o]};function yo(e,t){const{componentCls:n,iconCls:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,[i]=id(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[a]:{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:`${i-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:`${o}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
178
|
-
&${n}-show-arrow ${n}-selector,
|
|
179
|
-
&${n}-allow-clear ${n}-selector
|
|
180
|
-
`]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:o,marginTop:or,marginBottom:or,lineHeight:`${o-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({},_i()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:`${o}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 my=e=>{const{componentCls:t}=e,n=zt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=zt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,a]=id(e);return[yo(e),yo(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:a}}},yo(r,"lg")]},yy=my;function bo(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.controlHeight-e.lineWidth*2,i=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({},Wn(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
|
|
181
|
-
${n}-selection-item,
|
|
182
|
-
${n}-selection-placeholder
|
|
183
|
-
`]:{padding:0,lineHeight:`${o}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"'}}),[`
|
|
184
|
-
&${n}-show-arrow ${n}-selection-item,
|
|
185
|
-
&${n}-show-arrow ${n}-selection-placeholder
|
|
186
|
-
`]:{paddingInlineEnd:i},[`&${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:o},"&:after":{lineHeight:`${o}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 by(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[bo(e),bo(zt(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},[`
|
|
187
|
-
&${t}-show-arrow ${t}-selection-item,
|
|
188
|
-
&${t}-show-arrow ${t}-selection-placeholder
|
|
189
|
-
`]:{paddingInlineEnd:e.fontSize*1.5}}}},bo(zt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Sy=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"}}}},So=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:a,antCls:o,borderActiveColor:i,outlineColor:l,controlOutlineWidth:s}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:a},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${s}px ${l}`,outline:0}})}}},Ey=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"}}}},Cy=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},Wn(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Sy(e)),Ey(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},zo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},zo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},_i()),{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",[a]:{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}}}},wy=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%"}}},Cy(e),by(e),yy(e),py(e),{[`${t}-rtl`]:{direction:"rtl"}},So(t,zt(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),So(`${t}-status-error`,zt(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),So(`${t}-status-warning`,zt(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),lp(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xy=Br("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=zt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[wy(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:a,zIndexPopupBase:o,colorText:i,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:f,controlHeightLG:v,controlHeightSM:g,colorBgContainerDisabled:y,colorTextDisabled:p}=e;return{zIndexPopup:o+50,optionSelectedColor:i,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${a}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:v,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:r,multipleSelectorBgDisabled:y,multipleItemColorDisabled:p,multipleItemBorderColorDisabled:"transparent"}}),Oy=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 Ny(e,t){return e||Oy(t)}var Py={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 Ry=Py;var ld=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:Ry}))};process.env.NODE_ENV!=="production"&&(ld.displayName="CheckOutlined");const My=d.forwardRef(ld);var Iy={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 $y=Iy;var sd=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:$y}))};process.env.NODE_ENV!=="production"&&(sd.displayName="DownOutlined");const Ty=d.forwardRef(sd);var Dy={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 ky=Dy;var cd=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:ky}))};process.env.NODE_ENV!=="production"&&(cd.displayName="SearchOutlined");const _y=d.forwardRef(cd);function Fy(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:i,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:v}=e;process.env.NODE_ENV!=="production"&&Va(v).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const g=n??d.createElement(jg,null),y=b=>t===null&&!l&&!f?null:d.createElement(d.Fragment,null,c!==!1&&b,l&&u);let p=null;if(t!==void 0)p=y(t);else if(o)p=y(d.createElement(pu,{spin:!0}));else{const b=`${s}-suffix`;p=S=>{let{open:E,showSearch:C}=S;return y(E&&C?d.createElement(_y,{className:b}):d.createElement(Ty,{className:b}))}}let h=null;r!==void 0?h=r:i?h=d.createElement(My,null):h=null;let m=null;return a!==void 0?m=a:m=d.createElement(Bg,null),{clearIcon:g,suffixIcon:p,itemIcon:h,removeIcon:m}}function Ly(e,t){return t!==void 0?t:e!==null}function Gt(e,t){return e[t]}var Ay=["children"];function ud(e,t){return"".concat(e,"-").concat(t)}function Ky(e){return e&&e.type&&e.type.isTreeNode}function Qr(e,t){return e??t}function Da(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,i=n||"title";return{title:i,_title:r||[i],key:a||"key",children:o||"children"}}function Vy(e,t){var n=new Map;function r(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(a||[]).forEach(function(i){var l=i[t.key],s=i[t.children];we(l!=null,"Tree node must have a certain key: [".concat(o).concat(l,"]"));var c=String(l);we(!n.has(c)||l===null||l===void 0,"Same 'key' exist in the Tree: ".concat(c)),n.set(c,!0),r(s,"".concat(o).concat(c," > "))})}r(e)}function Hy(e){function t(n){var r=Pn(n);return r.map(function(a){if(!Ky(a))return we(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,i=a.props,l=i.children,s=vt(i,Ay),c=_({key:o},s),u=t(l);return u.length&&(c.children=u),c}).filter(function(a){return a})}return t(e)}function Eo(e,t,n){var r=Da(n),a=r._title,o=r.key,i=r.children,l=new Set(t===!0?[]:t),s=[];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(v,g){for(var y=ud(f?f.pos:"0",g),p=Qr(v[o],y),h,m=0;m<a.length;m+=1){var b=a[m];if(v[b]!==void 0){h=v[b];break}}var S=_(_({},xi(v,[].concat(ue(a),[o,i]))),{},{title:h,key:p,parent:f,pos:y,children:null,data:v,isStart:[].concat(ue(f?f.isStart:[]),[g===0]),isEnd:[].concat(ue(f?f.isEnd:[]),[g===u.length-1])});return s.push(S),t===!0||l.has(p)?S.children=c(v[i]||[],S):S.children=[],S})}return c(e),s}function jy(e,t,n){var r={};Ue(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,o=a.childrenPropName,i=a.externalGetKey,l=a.fieldNames,s=Da(l),c=s.key,u=s.children,f=o||u,v;i?typeof i=="string"?v=function(p){return p[i]}:typeof i=="function"&&(v=function(p){return i(p)}):v=function(p,h){return Qr(p[c],h)};function g(y,p,h,m){var b=y?y[f]:e,S=y?ud(h.pos,p):"0",E=y?[].concat(ue(m),[y]):[];if(y){var C=v(y,S),w={node:y,index:p,pos:S,key:C,parentPos:h.node?h.pos:null,level:h.level+1,nodes:E};t(w)}b&&b.forEach(function(x,$){g(x,$,{node:y,pos:S,level:h?h.level+1:-1},E)})}g(null)}function dd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,c=o||s,u={},f={},v={posEntities:u,keyEntities:f};return n&&(v=n(v)||v),jy(e,function(g){var y=g.node,p=g.index,h=g.pos,m=g.key,b=g.parentPos,S=g.level,E=g.nodes,C={node:y,nodes:E,index:p,key:m,pos:h,level:S},w=Qr(m,h);u[h]=C,f[w]=C,C.parent=u[b],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,v)},{externalGetKey:c,childrenPropName:i,fieldNames:l}),a&&a(v),v}function _r(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=Gt(u,e),v={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1};return v}function Nt(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,l=e.halfChecked,s=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,v=e.active,g=e.eventKey,y=_(_({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:v,key:g});return"props"in y||Object.defineProperty(y,"props",{get:function(){return we(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),y}function fd(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function zy(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function Wy(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var v=f.key,g=f.node,y=f.children,p=y===void 0?[]:y;a.has(v)&&!r(g)&&p.filter(function(h){return!r(h.node)}).forEach(function(h){a.add(h.key)})})}for(var s=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var v=f.parent,g=f.node;if(!(r(g)||!f.parent||s.has(f.parent.key))){if(r(f.parent.node)){s.add(v.key);return}var y=!0,p=!1;(v.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var m=h.key,b=a.has(m);y&&!b&&(y=!1),!p&&(b||o.has(m))&&(p=!0)}),y&&a.add(v.key),p&&o.add(v.key),s.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(fd(o,a))}}function By(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(v){var g=v.key,y=v.node,p=v.children,h=p===void 0?[]:p;!o.has(g)&&!i.has(g)&&!a(y)&&h.filter(function(m){return!a(m.node)}).forEach(function(m){o.delete(m.key)})})}i=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(v){var g=v.parent,y=v.node;if(!(a(y)||!v.parent||c.has(v.parent.key))){if(a(v.parent.node)){c.add(g.key);return}var p=!0,h=!1;(g.children||[]).filter(function(m){return!a(m.node)}).forEach(function(m){var b=m.key,S=o.has(b);p&&!S&&(p=!1),!h&&(S||i.has(b))&&(h=!0)}),p||o.delete(g.key),h&&i.add(g.key),c.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(fd(i,o))}}function vr(e,t,n,r){var a=[],o;r?o=r:o=zy;var i=new Set(e.filter(function(u){var f=!!Gt(n,u);return f||a.push(u),f})),l=new Map,s=0;Object.keys(n).forEach(function(u){var f=n[u],v=f.level,g=l.get(v);g||(g=new Set,l.set(v,g)),g.add(f),s=Math.max(s,v)}),we(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=Wy(i,l,s,o):c=By(i,t.halfCheckedKeys,l,s,o),c}const Uy=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Wn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Wn(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({},Wn(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({},Wo(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}})},{[`
|
|
190
|
-
${n}:not(${n}-disabled),
|
|
191
|
-
${t}:not(${t}-disabled)
|
|
192
|
-
`]:{[`&: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}`}}},[`
|
|
193
|
-
${n}-checked:not(${n}-disabled),
|
|
194
|
-
${t}-checked:not(${t}-disabled)
|
|
195
|
-
`]:{[`&: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 qi(e,t){const n=zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Uy(n)]}Br("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[qi(n,e)]});var Gi=d.createContext(null),qy=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),l=[],s=0;s<r;s+=1){var c;l.push(d.createElement("span",{key:s,className:Be(i,(c={},I(c,"".concat(i,"-start"),a[s]),I(c,"".concat(i,"-end"),o[s]),c))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},l)};const Gy=d.memo(qy);var Xy=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Is="open",$s="close",Yy="---",Qy=function(e){Sr(n,e);var t=Er(n);function n(){var r;Qt(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=t.call.apply(t,[this].concat(o)),r.state={dragNodeHighlight:!1},r.selectHandle=void 0,r.cacheIndent=void 0,r.onSelectorClick=function(l){var s=r.props.context.onNodeClick;s(l,Nt(r.props)),r.isSelectable()?r.onSelect(l):r.onCheck(l)},r.onSelectorDoubleClick=function(l){var s=r.props.context.onNodeDoubleClick;s(l,Nt(r.props))},r.onSelect=function(l){if(!r.isDisabled()){var s=r.props.context.onNodeSelect;s(l,Nt(r.props))}},r.onCheck=function(l){if(!r.isDisabled()){var s=r.props,c=s.disableCheckbox,u=s.checked,f=r.props.context.onNodeCheck;if(!(!r.isCheckable()||c)){var v=!u;f(l,Nt(r.props),v)}}},r.onMouseEnter=function(l){var s=r.props.context.onNodeMouseEnter;s(l,Nt(r.props))},r.onMouseLeave=function(l){var s=r.props.context.onNodeMouseLeave;s(l,Nt(r.props))},r.onContextMenu=function(l){var s=r.props.context.onNodeContextMenu;s(l,Nt(r.props))},r.onDragStart=function(l){var s=r.props.context.onNodeDragStart;l.stopPropagation(),r.setState({dragNodeHighlight:!0}),s(l,Ke(r));try{l.dataTransfer.setData("text/plain","")}catch{}},r.onDragEnter=function(l){var s=r.props.context.onNodeDragEnter;l.preventDefault(),l.stopPropagation(),s(l,Ke(r))},r.onDragOver=function(l){var s=r.props.context.onNodeDragOver;l.preventDefault(),l.stopPropagation(),s(l,Ke(r))},r.onDragLeave=function(l){var s=r.props.context.onNodeDragLeave;l.stopPropagation(),s(l,Ke(r))},r.onDragEnd=function(l){var s=r.props.context.onNodeDragEnd;l.stopPropagation(),r.setState({dragNodeHighlight:!1}),s(l,Ke(r))},r.onDrop=function(l){var s=r.props.context.onNodeDrop;l.preventDefault(),l.stopPropagation(),r.setState({dragNodeHighlight:!1}),s(l,Ke(r))},r.onExpand=function(l){var s=r.props,c=s.loading,u=s.context.onNodeExpand;c||u(l,Nt(r.props))},r.setSelectHandle=function(l){r.selectHandle=l},r.getNodeState=function(){var l=r.props.expanded;return r.isLeaf()?null:l?Is:$s},r.hasChildren=function(){var l=r.props.eventKey,s=r.props.context.keyEntities,c=Gt(s,l)||{},u=c.children;return!!(u||[]).length},r.isLeaf=function(){var l=r.props,s=l.isLeaf,c=l.loaded,u=r.props.context.loadData,f=r.hasChildren();return s===!1?!1:s||!u&&!f||u&&c&&!f},r.isDisabled=function(){var l=r.props.disabled,s=r.props.context.disabled;return!!(s||l)},r.isCheckable=function(){var l=r.props.checkable,s=r.props.context.checkable;return!s||l===!1?!1:s},r.syncLoadData=function(l){var s=l.expanded,c=l.loading,u=l.loaded,f=r.props.context,v=f.loadData,g=f.onNodeLoad;c||v&&s&&!r.isLeaf()&&!r.hasChildren()&&!u&&g(Nt(r.props))},r.isDraggable=function(){var l=r.props,s=l.data,c=l.context.draggable;return!!(c&&(!c.nodeDraggable||c.nodeDraggable(s)))},r.renderDragHandler=function(){var l=r.props.context,s=l.draggable,c=l.prefixCls;return s!=null&&s.icon?d.createElement("span",{className:"".concat(c,"-draggable-icon")},s.icon):null},r.renderSwitcherIconDom=function(l){var s=r.props.switcherIcon,c=r.props.context.switcherIcon,u=s||c;return typeof u=="function"?u(_(_({},r.props),{},{isLeaf:l})):u},r.renderSwitcher=function(){var l=r.props.expanded,s=r.props.context.prefixCls;if(r.isLeaf()){var c=r.renderSwitcherIconDom(!0);return c!==!1?d.createElement("span",{className:Be("".concat(s,"-switcher"),"".concat(s,"-switcher-noop"))},c):null}var u=Be("".concat(s,"-switcher"),"".concat(s,"-switcher_").concat(l?Is:$s)),f=r.renderSwitcherIconDom(!1);return f!==!1?d.createElement("span",{onClick:r.onExpand,className:u},f):null},r.renderCheckbox=function(){var l=r.props,s=l.checked,c=l.halfChecked,u=l.disableCheckbox,f=r.props.context.prefixCls,v=r.isDisabled(),g=r.isCheckable();if(!g)return null;var y=typeof g!="boolean"?g:null;return d.createElement("span",{className:Be("".concat(f,"-checkbox"),s&&"".concat(f,"-checkbox-checked"),!s&&c&&"".concat(f,"-checkbox-indeterminate"),(v||u)&&"".concat(f,"-checkbox-disabled")),onClick:r.onCheck},y)},r.renderIcon=function(){var l=r.props.loading,s=r.props.context.prefixCls;return d.createElement("span",{className:Be("".concat(s,"-iconEle"),"".concat(s,"-icon__").concat(r.getNodeState()||"docu"),l&&"".concat(s,"-icon_loading"))})},r.renderSelector=function(){var l=r.state.dragNodeHighlight,s=r.props,c=s.title,u=c===void 0?Yy:c,f=s.selected,v=s.icon,g=s.loading,y=s.data,p=r.props.context,h=p.prefixCls,m=p.showIcon,b=p.icon,S=p.loadData,E=p.titleRender,C=r.isDisabled(),w="".concat(h,"-node-content-wrapper"),x;if(m){var $=v||b;x=$?d.createElement("span",{className:Be("".concat(h,"-iconEle"),"".concat(h,"-icon__customize"))},typeof $=="function"?$(r.props):$):r.renderIcon()}else S&&g&&(x=r.renderIcon());var M;typeof u=="function"?M=u(y):E?M=E(y):M=u;var P=d.createElement("span",{className:"".concat(h,"-title")},M);return d.createElement("span",{ref:r.setSelectHandle,title:typeof u=="string"?u:"",className:Be("".concat(w),"".concat(w,"-").concat(r.getNodeState()||"normal"),!C&&(f||l)&&"".concat(h,"-node-selected")),onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onContextMenu:r.onContextMenu,onClick:r.onSelectorClick,onDoubleClick:r.onSelectorDoubleClick},x,P,r.renderDropIndicator())},r.renderDropIndicator=function(){var l=r.props,s=l.disabled,c=l.eventKey,u=r.props.context,f=u.draggable,v=u.dropLevelOffset,g=u.dropPosition,y=u.prefixCls,p=u.indent,h=u.dropIndicatorRender,m=u.dragOverNodeKey,b=u.direction,S=!!f,E=!s&&S&&m===c,C=p??r.cacheIndent;return r.cacheIndent=p,E?h({dropPosition:g,dropLevelOffset:v,indent:C,prefixCls:y,direction:b}):null},r}return Zt(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var a=this.props.selectable,o=this.props.context.selectable;return typeof a=="boolean"?a:o}},{key:"render",value:function(){var a,o=this.props,i=o.eventKey,l=o.className,s=o.style,c=o.dragOver,u=o.dragOverGapTop,f=o.dragOverGapBottom,v=o.isLeaf,g=o.isStart,y=o.isEnd,p=o.expanded,h=o.selected,m=o.checked,b=o.halfChecked,S=o.loading,E=o.domRef,C=o.active;o.data;var w=o.onMouseMove,x=o.selectable,$=vt(o,Xy),M=this.props.context,P=M.prefixCls,D=M.filterTreeNode,k=M.keyEntities,T=M.dropContainerKey,F=M.dropTargetKey,A=M.draggingNodeKey,R=this.isDisabled(),O=yr($,{aria:!0,data:!0}),N=Gt(k,i)||{},L=N.level,j=y[y.length-1],V=this.isDraggable(),z=!R&&V,U=A===i,re=x!==void 0?{"aria-selected":!!x}:void 0;return d.createElement("div",Ge({ref:E,className:Be(l,"".concat(P,"-treenode"),(a={},I(a,"".concat(P,"-treenode-disabled"),R),I(a,"".concat(P,"-treenode-switcher-").concat(p?"open":"close"),!v),I(a,"".concat(P,"-treenode-checkbox-checked"),m),I(a,"".concat(P,"-treenode-checkbox-indeterminate"),b),I(a,"".concat(P,"-treenode-selected"),h),I(a,"".concat(P,"-treenode-loading"),S),I(a,"".concat(P,"-treenode-active"),C),I(a,"".concat(P,"-treenode-leaf-last"),j),I(a,"".concat(P,"-treenode-draggable"),V),I(a,"dragging",U),I(a,"drop-target",F===i),I(a,"drop-container",T===i),I(a,"drag-over",!R&&c),I(a,"drag-over-gap-top",!R&&u),I(a,"drag-over-gap-bottom",!R&&f),I(a,"filter-node",D&&D(Nt(this.props))),a)),style:s,draggable:z,"aria-grabbed":U,onDragStart:z?this.onDragStart:void 0,onDragEnter:V?this.onDragEnter:void 0,onDragOver:V?this.onDragOver:void 0,onDragLeave:V?this.onDragLeave:void 0,onDrop:V?this.onDrop:void 0,onDragEnd:V?this.onDragEnd:void 0,onMouseMove:w},re,O),d.createElement(Gy,{prefixCls:P,level:L,isStart:g,isEnd:y}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(d.Component),zr=function(t){return d.createElement(Gi.Consumer,null,function(n){return d.createElement(Qy,Ge({},t,{context:n}))})};zr.displayName="TreeNode";zr.isTreeNode=1;function wn(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Mn(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Xi(e){return e.split("-")}function Zy(e,t){var n=[],r=Gt(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var l=i.key,s=i.children;n.push(l),a(s)})}return a(r.children),n}function Jy(e){if(e.parent){var t=Xi(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function eb(e){var t=Xi(e.pos);return Number(t[t.length-1])===0}function Ts(e,t,n,r,a,o,i,l,s,c){var u,f=e.clientX,v=e.clientY,g=e.target.getBoundingClientRect(),y=g.top,p=g.height,h=(c==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),m=(h-12)/r,b=Gt(l,n.props.eventKey);if(v<y+p/2){var S=i.findIndex(function(A){return A.key===b.key}),E=S<=0?0:S-1,C=i[E].key;b=Gt(l,C)}var w=b.key,x=b,$=b.key,M=0,P=0;if(!s.includes(w))for(var D=0;D<m&&Jy(b);D+=1)b=b.parent,P+=1;var k=t.props.data,T=b.node,F=!0;return eb(b)&&b.level===0&&v<y+p/2&&o({dragNode:k,dropNode:T,dropPosition:-1})&&b.key===n.props.eventKey?M=-1:(x.children||[]).length&&s.includes($)?o({dragNode:k,dropNode:T,dropPosition:0})?M=0:F=!1:P===0?m>-1.5?o({dragNode:k,dropNode:T,dropPosition:1})?M=1:F=!1:o({dragNode:k,dropNode:T,dropPosition:0})?M=0:o({dragNode:k,dropNode:T,dropPosition:1})?M=1:F=!1:o({dragNode:k,dropNode:T,dropPosition:1})?M=1:F=!1,{dropPosition:M,dropLevelOffset:P,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:$,dropContainerKey:M===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:F}}function Ds(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Co(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ue(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return we(!1,"`checkedKeys` is not an array or an object"),null;return t}function ks(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Gt(t,a);if(o){n.add(a);var i=o.parent,l=o.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),ue(n)}function tb(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return d.createElement("div",{style:a})}function vd(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function nb(e,t){var n=d.useState(!1),r=H(n,2),a=r[0],o=r[1];dt(function(){if(a)return e(),function(){t()}},[a]),dt(function(){return o(!0),function(){o(!1)}},[])}var rb=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],hd=function(t,n){var r=t.className,a=t.style,o=t.motion,i=t.motionNodes,l=t.motionType,s=t.onMotionStart,c=t.onMotionEnd,u=t.active,f=t.treeNodeRequiredProps,v=vt(t,rb),g=d.useState(!0),y=H(g,2),p=y[0],h=y[1],m=d.useContext(Gi),b=m.prefixCls,S=i&&l!=="hide";dt(function(){i&&S!==p&&h(S)},[i]);var E=function(){i&&s()},C=d.useRef(!1),w=function(){i&&!C.current&&(C.current=!0,c())};nb(E,w);var x=function(M){S===M&&w()};return i?d.createElement(za,Ge({ref:n,visible:p},o,{motionAppear:l==="show",onVisibleChanged:x}),function($,M){var P=$.className,D=$.style;return d.createElement("div",{ref:M,className:Be("".concat(b,"-treenode-motion"),P),style:D},i.map(function(k){var T=Ge({},(vd(k.data),k.data)),F=k.title,A=k.key,R=k.isStart,O=k.isEnd;delete T.children;var N=_r(A,f);return d.createElement(zr,Ge({},T,N,{title:F,active:u,data:k.data,key:A,isStart:R,isEnd:O}))}))}):d.createElement(zr,Ge({domRef:n,className:r,style:a},v,{active:u}))};hd.displayName="MotionTreeNode";var ab=d.forwardRef(hd);function ob(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var l=new Map;o.forEach(function(c){l.set(c,!0)});var s=i.filter(function(c){return!l.has(c)});return s.length===1?s[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function _s(e,t,n){var r=e.findIndex(function(l){return l.key===n}),a=e[r+1],o=t.findIndex(function(l){return l.key===n});if(a){var i=t.findIndex(function(l){return l.key===a.key});return t.slice(o+1,i)}return t.slice(o+1)}var ib=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Fs={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},lb=function(){},Gn="RC_TREE_MOTION_".concat(Math.random()),mi={key:Gn},gd={key:Gn,level:0,index:0,pos:"0",node:mi,nodes:[mi]},Ls={parent:null,children:[],pos:gd.pos,data:mi,title:null,key:Gn,isStart:[],isEnd:[]};function As(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Ks(e){var t=e.key,n=e.pos;return Qr(t,n)}function sb(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var pd=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,v=e.dragging,g=e.dragOverNodeKey,y=e.dropPosition,p=e.motion,h=e.height,m=e.itemHeight,b=e.virtual,S=e.focusable,E=e.activeItem,C=e.focused,w=e.tabIndex,x=e.onKeyDown,$=e.onFocus,M=e.onBlur,P=e.onActiveChange,D=e.onListChangeStart,k=e.onListChangeEnd,T=vt(e,ib),F=d.useRef(null),A=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(me){F.current.scrollTo(me)},getIndentWidth:function(){return A.current.offsetWidth}}});var R=d.useState(a),O=H(R,2),N=O[0],L=O[1],j=d.useState(r),V=H(j,2),z=V[0],U=V[1],re=d.useState(r),ne=H(re,2),Oe=ne[0],he=ne[1],G=d.useState([]),q=H(G,2),Z=q[0],ae=q[1],se=d.useState(null),Y=H(se,2),K=Y[0],pe=Y[1],Se=d.useRef(r);Se.current=r;function Ee(){var ee=Se.current;U(ee),he(ee),ae([]),pe(null),k()}dt(function(){L(a);var ee=ob(N,a);if(ee.key!==null)if(ee.add){var me=z.findIndex(function(Xe){var Ne=Xe.key;return Ne===ee.key}),de=As(_s(z,r,ee.key),b,h,m),Re=z.slice();Re.splice(me+1,0,Ls),he(Re),ae(de),pe("show")}else{var Ve=r.findIndex(function(Xe){var Ne=Xe.key;return Ne===ee.key}),ye=As(_s(r,z,ee.key),b,h,m),J=r.slice();J.splice(Ve+1,0,Ls),he(J),ae(ye),pe("hide")}else z!==r&&(U(r),he(r))},[a,r]),d.useEffect(function(){v||Ee()},[v]);var oe=p?Oe:r,ge={expandedKeys:a,selectedKeys:o,loadedKeys:l,loadingKeys:s,checkedKeys:i,halfCheckedKeys:c,dragOverNodeKey:g,dropPosition:y,keyEntities:u};return d.createElement(d.Fragment,null,C&&E&&d.createElement("span",{style:Fs,"aria-live":"assertive"},sb(E)),d.createElement("div",null,d.createElement("input",{style:Fs,disabled:S===!1||f,tabIndex:S!==!1?w:null,onKeyDown:x,onFocus:$,onBlur:M,value:"",onChange:lb,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),d.createElement(Bi,Ge({},T,{data:oe,itemKey:Ks,height:h,fullHeight:!1,virtual:b,itemHeight:m,prefixCls:"".concat(n,"-list"),ref:F,onVisibleChange:function(me,de){var Re=new Set(me),Ve=de.filter(function(ye){return!Re.has(ye)});Ve.some(function(ye){return Ks(ye)===Gn})&&Ee()}}),function(ee){var me=ee.pos,de=Ge({},(vd(ee.data),ee.data)),Re=ee.title,Ve=ee.key,ye=ee.isStart,J=ee.isEnd,Xe=Qr(Ve,me);delete de.key,delete de.children;var Ne=_r(Xe,ge);return d.createElement(ab,Ge({},de,Ne,{title:Re,active:!!E&&Ve===E.key,pos:me,data:ee.data,isStart:ye,isEnd:J,motion:p,motionNodes:Ve===Gn?Z:null,motionType:K,onMotionStart:D,onMotionEnd:Ee,treeNodeRequiredProps:ge,onMouseMove:function(){P(null)}}))}))});pd.displayName="NodeList";var cb=10,Yi=function(e){Sr(n,e);var t=Er(n);function n(){var r;Qt(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return r=t.call.apply(t,[this].concat(o)),r.destroyed=!1,r.delayedDragEnterLogic=void 0,r.loadingRetryTimes={},r.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Da()},r.dragStartMousePosition=null,r.dragNode=void 0,r.currentMouseOverDroppableNodeKey=null,r.listRef=d.createRef(),r.onNodeDragStart=function(l,s){var c=r.state,u=c.expandedKeys,f=c.keyEntities,v=r.props.onDragStart,g=s.props.eventKey;r.dragNode=s,r.dragStartMousePosition={x:l.clientX,y:l.clientY};var y=wn(u,g);r.setState({draggingNodeKey:g,dragChildrenKeys:Zy(g,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(y),window.addEventListener("dragend",r.onWindowDragEnd),v==null||v({event:l,node:Nt(s.props)})},r.onNodeDragEnter=function(l,s){var c=r.state,u=c.expandedKeys,f=c.keyEntities,v=c.dragChildrenKeys,g=c.flattenNodes,y=c.indent,p=r.props,h=p.onDragEnter,m=p.onExpand,b=p.allowDrop,S=p.direction,E=s.props,C=E.pos,w=E.eventKey,x=Ke(r),$=x.dragNode;if(r.currentMouseOverDroppableNodeKey!==w&&(r.currentMouseOverDroppableNodeKey=w),!$){r.resetDragState();return}var M=Ts(l,$,s,y,r.dragStartMousePosition,b,g,f,u,S),P=M.dropPosition,D=M.dropLevelOffset,k=M.dropTargetKey,T=M.dropContainerKey,F=M.dropTargetPos,A=M.dropAllowed,R=M.dragOverNodeKey;if(v.indexOf(k)!==-1||!A){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(O){clearTimeout(r.delayedDragEnterLogic[O])}),$.props.eventKey!==s.props.eventKey&&(l.persist(),r.delayedDragEnterLogic[C]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var O=ue(u),N=Gt(f,s.props.eventKey);N&&(N.children||[]).length&&(O=Mn(u,s.props.eventKey)),"expandedKeys"in r.props||r.setExpandedKeys(O),m==null||m(O,{node:Nt(s.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),$.props.eventKey===k&&D===0){r.resetDragState();return}r.setState({dragOverNodeKey:R,dropPosition:P,dropLevelOffset:D,dropTargetKey:k,dropContainerKey:T,dropTargetPos:F,dropAllowed:A}),h==null||h({event:l,node:Nt(s.props),expandedKeys:u})},r.onNodeDragOver=function(l,s){var c=r.state,u=c.dragChildrenKeys,f=c.flattenNodes,v=c.keyEntities,g=c.expandedKeys,y=c.indent,p=r.props,h=p.onDragOver,m=p.allowDrop,b=p.direction,S=Ke(r),E=S.dragNode;if(E){var C=Ts(l,E,s,y,r.dragStartMousePosition,m,f,v,g,b),w=C.dropPosition,x=C.dropLevelOffset,$=C.dropTargetKey,M=C.dropContainerKey,P=C.dropAllowed,D=C.dropTargetPos,k=C.dragOverNodeKey;u.indexOf($)!==-1||!P||(E.props.eventKey===$&&x===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():w===r.state.dropPosition&&x===r.state.dropLevelOffset&&$===r.state.dropTargetKey&&M===r.state.dropContainerKey&&D===r.state.dropTargetPos&&P===r.state.dropAllowed&&k===r.state.dragOverNodeKey||r.setState({dropPosition:w,dropLevelOffset:x,dropTargetKey:$,dropContainerKey:M,dropTargetPos:D,dropAllowed:P,dragOverNodeKey:k}),h==null||h({event:l,node:Nt(s.props)}))}},r.onNodeDragLeave=function(l,s){r.currentMouseOverDroppableNodeKey===s.props.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c==null||c({event:l,node:Nt(s.props)})},r.onWindowDragEnd=function(l){r.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)},r.onNodeDragEnd=function(l,s){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:l,node:Nt(s.props)}),r.dragNode=null,window.removeEventListener("dragend",r.onWindowDragEnd)},r.onNodeDrop=function(l,s){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,v=f.dragChildrenKeys,g=f.dropPosition,y=f.dropTargetKey,p=f.dropTargetPos,h=f.dropAllowed;if(h){var m=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),y!==null){var b=_(_({},_r(y,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===y,data:Gt(r.state.keyEntities,y).node}),S=v.indexOf(y)!==-1;we(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=Xi(p),C={event:l,node:Nt(b),dragNode:r.dragNode?Nt(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(v),dropToGap:g!==0,dropPosition:g+Number(E[E.length-1])};u||m==null||m(C),r.dragNode=null}}},r.cleanDragState=function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null},r.triggerExpandActionExpand=function(l,s){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,v=s.expanded,g=s.key,y=s.isLeaf;if(!(y||l.shiftKey||l.metaKey||l.ctrlKey)){var p=f.filter(function(m){return m.key===g})[0],h=Nt(_(_({},_r(g,r.getTreeNodeRequiredProps())),{},{data:p.data}));r.setExpandedKeys(v?wn(u,g):Mn(u,g)),r.onNodeExpand(l,h)}},r.onNodeClick=function(l,s){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(l,s),u==null||u(l,s)},r.onNodeDoubleClick=function(l,s){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,s),u==null||u(l,s)},r.onNodeSelect=function(l,s){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,v=u.fieldNames,g=r.props,y=g.onSelect,p=g.multiple,h=s.selected,m=s[v.key],b=!h;b?p?c=Mn(c,m):c=[m]:c=wn(c,m);var S=c.map(function(E){var C=Gt(f,E);return C?C.node:null}).filter(function(E){return E});r.setUncontrolledState({selectedKeys:c}),y==null||y(c,{event:"select",selected:b,node:s,selectedNodes:S,nativeEvent:l.nativeEvent})},r.onNodeCheck=function(l,s,c){var u=r.state,f=u.keyEntities,v=u.checkedKeys,g=u.halfCheckedKeys,y=r.props,p=y.checkStrictly,h=y.onCheck,m=s.key,b,S={event:"check",node:s,checked:c,nativeEvent:l.nativeEvent};if(p){var E=c?Mn(v,m):wn(v,m),C=wn(g,m);b={checked:E,halfChecked:C},S.checkedNodes=E.map(function(D){return Gt(f,D)}).filter(function(D){return D}).map(function(D){return D.node}),r.setUncontrolledState({checkedKeys:E})}else{var w=vr([].concat(ue(v),[m]),!0,f),x=w.checkedKeys,$=w.halfCheckedKeys;if(!c){var M=new Set(x);M.delete(m);var P=vr(Array.from(M),{checked:!1,halfCheckedKeys:$},f);x=P.checkedKeys,$=P.halfCheckedKeys}b=x,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=$,x.forEach(function(D){var k=Gt(f,D);if(k){var T=k.node,F=k.pos;S.checkedNodes.push(T),S.checkedNodesPositions.push({node:T,pos:F})}}),r.setUncontrolledState({checkedKeys:x},!1,{halfCheckedKeys:$})}h==null||h(b,S)},r.onNodeLoad=function(l){var s=l.key,c=new Promise(function(u,f){r.setState(function(v){var g=v.loadedKeys,y=g===void 0?[]:g,p=v.loadingKeys,h=p===void 0?[]:p,m=r.props,b=m.loadData,S=m.onLoad;if(!b||y.indexOf(s)!==-1||h.indexOf(s)!==-1)return null;var E=b(l);return E.then(function(){var C=r.state.loadedKeys,w=Mn(C,s);S==null||S(w,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:w}),r.setState(function(x){return{loadingKeys:wn(x.loadingKeys,s)}}),u()}).catch(function(C){if(r.setState(function(x){return{loadingKeys:wn(x.loadingKeys,s)}}),r.loadingRetryTimes[s]=(r.loadingRetryTimes[s]||0)+1,r.loadingRetryTimes[s]>=cb){var w=r.state.loadedKeys;we(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Mn(w,s)}),u()}f(C)}),{loadingKeys:Mn(h,s)}})});return c.catch(function(){}),c},r.onNodeMouseEnter=function(l,s){var c=r.props.onMouseEnter;c==null||c({event:l,node:s})},r.onNodeMouseLeave=function(l,s){var c=r.props.onMouseLeave;c==null||c({event:l,node:s})},r.onNodeContextMenu=function(l,s){var c=r.props.onRightClick;c&&(l.preventDefault(),c({event:l,node:s}))},r.onFocus=function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];l==null||l.apply(void 0,c)},r.onBlur=function(){var l=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];l==null||l.apply(void 0,c)},r.getTreeNodeRequiredProps=function(){var l=r.state,s=l.expandedKeys,c=l.selectedKeys,u=l.loadedKeys,f=l.loadingKeys,v=l.checkedKeys,g=l.halfCheckedKeys,y=l.dragOverNodeKey,p=l.dropPosition,h=l.keyEntities;return{expandedKeys:s||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:f||[],checkedKeys:v||[],halfCheckedKeys:g||[],dragOverNodeKey:y,dropPosition:p,keyEntities:h}},r.setExpandedKeys=function(l){var s=r.state,c=s.treeData,u=s.fieldNames,f=Eo(c,l,u);r.setUncontrolledState({expandedKeys:l,flattenNodes:f},!0)},r.onNodeExpand=function(l,s){var c=r.state.expandedKeys,u=r.state,f=u.listChanging,v=u.fieldNames,g=r.props,y=g.onExpand,p=g.loadData,h=s.expanded,m=s[v.key];if(!f){var b=c.indexOf(m),S=!h;if(we(h&&b!==-1||!h&&b===-1,"Expand state not sync with index check"),S?c=Mn(c,m):c=wn(c,m),r.setExpandedKeys(c),y==null||y(c,{node:s,expanded:S,nativeEvent:l.nativeEvent}),S&&p){var E=r.onNodeLoad(s);E&&E.then(function(){var C=Eo(r.state.treeData,c,v);r.setUncontrolledState({flattenNodes:C})}).catch(function(){var C=r.state.expandedKeys,w=wn(C,m);r.setExpandedKeys(w)})}}},r.onListChangeStart=function(){r.setUncontrolledState({listChanging:!0})},r.onListChangeEnd=function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})},r.onActiveChange=function(l){var s=r.state.activeKey,c=r.props,u=c.onActiveChange,f=c.itemScrollOffset,v=f===void 0?0:f;s!==l&&(r.setState({activeKey:l}),l!==null&&r.scrollTo({key:l,offset:v}),u==null||u(l))},r.getActiveItem=function(){var l=r.state,s=l.activeKey,c=l.flattenNodes;return s===null?null:c.find(function(u){var f=u.key;return f===s})||null},r.offsetActiveKey=function(l){var s=r.state,c=s.flattenNodes,u=s.activeKey,f=c.findIndex(function(y){var p=y.key;return p===u});f===-1&&l<0&&(f=c.length),f=(f+l+c.length)%c.length;var v=c[f];if(v){var g=v.key;r.onActiveChange(g)}else r.onActiveChange(null)},r.onKeyDown=function(l){var s=r.state,c=s.activeKey,u=s.expandedKeys,f=s.checkedKeys,v=s.fieldNames,g=r.props,y=g.onKeyDown,p=g.checkable,h=g.selectable;switch(l.which){case B.UP:{r.offsetActiveKey(-1),l.preventDefault();break}case B.DOWN:{r.offsetActiveKey(1),l.preventDefault();break}}var m=r.getActiveItem();if(m&&m.data){var b=r.getTreeNodeRequiredProps(),S=m.data.isLeaf===!1||!!(m.data[v.children]||[]).length,E=Nt(_(_({},_r(c,b)),{},{data:m.data,active:!0}));switch(l.which){case B.LEFT:{S&&u.includes(c)?r.onNodeExpand({},E):m.parent&&r.onActiveChange(m.parent.key),l.preventDefault();break}case B.RIGHT:{S&&!u.includes(c)?r.onNodeExpand({},E):m.children&&m.children.length&&r.onActiveChange(m.children[0].key),l.preventDefault();break}case B.ENTER:case B.SPACE:{p&&!E.disabled&&E.checkable!==!1&&!E.disableCheckbox?r.onNodeCheck({},E,!f.includes(c)):!p&&h&&!E.disabled&&E.selectable!==!1&&r.onNodeSelect({},E);break}}}y==null||y(l)},r.setUncontrolledState=function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,v={};Object.keys(l).forEach(function(g){if(g in r.props){f=!1;return}u=!0,v[g]=l[g]}),u&&(!s||f)&&r.setState(_(_({},v),c))}},r.scrollTo=function(l){r.listRef.current.scrollTo(l)},r}return Zt(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,l=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a,o=this.state,i=o.focused,l=o.flattenNodes,s=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,f=o.dropLevelOffset,v=o.dropContainerKey,g=o.dropTargetKey,y=o.dropPosition,p=o.dragOverNodeKey,h=o.indent,m=this.props,b=m.prefixCls,S=m.className,E=m.style,C=m.showLine,w=m.focusable,x=m.tabIndex,$=x===void 0?0:x,M=m.selectable,P=m.showIcon,D=m.icon,k=m.switcherIcon,T=m.draggable,F=m.checkable,A=m.checkStrictly,R=m.disabled,O=m.motion,N=m.loadData,L=m.filterTreeNode,j=m.height,V=m.itemHeight,z=m.virtual,U=m.titleRender,re=m.dropIndicatorRender,ne=m.onContextMenu,Oe=m.onScroll,he=m.direction,G=m.rootClassName,q=m.rootStyle,Z=yr(this.props,{aria:!0,data:!0}),ae;return T&&(Ue(T)==="object"?ae=T:typeof T=="function"?ae={nodeDraggable:T}:ae={}),d.createElement(Gi.Provider,{value:{prefixCls:b,selectable:M,showIcon:P,icon:D,switcherIcon:k,draggable:ae,draggingNodeKey:c,checkable:F,checkStrictly:A,disabled:R,keyEntities:s,dropLevelOffset:f,dropContainerKey:v,dropTargetKey:g,dropPosition:y,dragOverNodeKey:p,indent:h,direction:he,dropIndicatorRender:re,loadData:N,filterTreeNode:L,titleRender:U,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{role:"tree",className:Be(b,S,G,(a={},I(a,"".concat(b,"-show-line"),C),I(a,"".concat(b,"-focused"),i),I(a,"".concat(b,"-active-focused"),u!==null),a)),style:q},d.createElement(pd,Ge({ref:this.listRef,prefixCls:b,style:E,data:l,disabled:R,selectable:M,checkable:!!F,motion:O,dragging:c!==null,height:j,itemHeight:V,virtual:z,focusable:w,focused:i,tabIndex:$,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ne,onScroll:Oe},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,l={prevProps:a};function s(w){return!i&&w in a||i&&i[w]!==a[w]}var c,u=o.fieldNames;if(s("fieldNames")&&(u=Da(a.fieldNames),l.fieldNames=u),s("treeData")?c=a.treeData:s("children")&&(we(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Hy(a.children)),c){l.treeData=c;var f=dd(c,{fieldNames:u});l.keyEntities=_(I({},Gn,gd),f.keyEntities),process.env.NODE_ENV!=="production"&&Vy(c,u)}var v=l.keyEntities||o.keyEntities;if(s("expandedKeys")||i&&s("autoExpandParent"))l.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?ks(a.expandedKeys,v):a.expandedKeys;else if(!i&&a.defaultExpandAll){var g=_({},v);delete g[Gn],l.expandedKeys=Object.keys(g).map(function(w){return g[w].key})}else!i&&a.defaultExpandedKeys&&(l.expandedKeys=a.autoExpandParent||a.defaultExpandParent?ks(a.defaultExpandedKeys,v):a.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,c||l.expandedKeys){var y=Eo(c||o.treeData,l.expandedKeys||o.expandedKeys,u);l.flattenNodes=y}if(a.selectable&&(s("selectedKeys")?l.selectedKeys=Ds(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(l.selectedKeys=Ds(a.defaultSelectedKeys,a))),a.checkable){var p;if(s("checkedKeys")?p=Co(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?p=Co(a.defaultCheckedKeys)||{}:c&&(p=Co(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),p){var h=p,m=h.checkedKeys,b=m===void 0?[]:m,S=h.halfCheckedKeys,E=S===void 0?[]:S;if(!a.checkStrictly){var C=vr(b,!0,v);b=C.checkedKeys,E=C.halfCheckedKeys}l.checkedKeys=b,l.halfCheckedKeys=E}}return s("loadedKeys")&&(l.loadedKeys=a.loadedKeys),l}}]),n}(d.Component);Yi.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:tb,allowDrop:function(){return!0},expandAction:!1};Yi.TreeNode=zr;var ub={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const db=ub;var md=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:db}))};process.env.NODE_ENV!=="production"&&(md.displayName="FileOutlined");const fb=d.forwardRef(md),vb=new At("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),hb=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),gb=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),pb=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,nodeSelectedBg:i,nodeHoverBg:l}=t,s=t.paddingXS;return{[n]:Object.assign(Object.assign({},Wn(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Wo(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:vb,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${a}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},Wo(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:o,lineHeight:`${o}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},hb(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,lineHeight:`${o}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:o/2,bottom:-a,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:o/2*.8,height:o/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:o,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${o}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,lineHeight:`${o}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${o}px`,userSelect:"none"},gb(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:o/2,bottom:-a,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${o/2}px !important`}}}}})}},mb=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:a,directoryNodeSelectedColor:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:o,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:a},[`${t}-switcher`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent"}}}}}},yd=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.paddingXS/2,o=zt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[pb(e,o),mb(o)]},bd=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}};Br("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:qi(`${n}-checkbox`,e)},yd(n,e),$m(e)]},e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},bd(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})});var yb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const bb=yb;var Sd=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:bb}))};process.env.NODE_ENV!=="production"&&(Sd.displayName="CaretDownFilled");const Sb=d.forwardRef(Sd);var Eb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const Cb=Eb;var Ed=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:Cb}))};process.env.NODE_ENV!=="production"&&(Ed.displayName="MinusSquareOutlined");const wb=d.forwardRef(Ed);var xb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const Ob=xb;var Cd=function(t,n){return d.createElement(yn,Yt({},t,{ref:n,icon:Ob}))};process.env.NODE_ENV!=="production"&&(Cd.displayName="PlusSquareOutlined");const Nb=d.forwardRef(Cd),Pb=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a}=e,{isLeaf:o,expanded:i,loading:l}=r;if(l)return d.createElement(pu,{className:`${t}-switcher-loading-icon`});let s;if(a&&typeof a=="object"&&(s=a.showLeafIcon),o){if(!a)return null;if(typeof s!="boolean"&&s){const f=typeof s=="function"?s(r):s,v=`${t}-switcher-line-custom-icon`;return ti(f)?Wl(f,{className:Be(f.props.className||"",v)}):f}return s?d.createElement(fb,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const c=`${t}-switcher-icon`,u=typeof n=="function"?n(r):n;return ti(u)?Wl(u,{className:Be(u.props.className||"",c)}):u!==void 0?u:a?i?d.createElement(wb,{className:`${t}-switcher-line-icon`}):d.createElement(Nb,{className:`${t}-switcher-line-icon`}):d.createElement(Sb,{className:c})},Rb=Pb,Mb=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i,l=o.value,s=(i=o.label)!==null&&i!==void 0?i:n.get(l);return r.set(l,s),_(_({},o),{},{label:s})});return t.current.valueLabels=r,[a]},[e])},Ib=function(e,t,n,r){return d.useMemo(function(){var a=e.map(function(s){var c=s.value;return c}),o=t.map(function(s){var c=s.value;return c}),i=a.filter(function(s){return!r[s]});if(n){var l=vr(a,!0,r);a=l.checkedKeys,o=l.halfCheckedKeys}return[Array.from(new Set([].concat(ue(i),ue(a)))),o]},[e,t,n,r])};function wd(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function $b(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:a||"children"}}function yi(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function Tb(e,t){var n=[];function r(a){a.forEach(function(o){var i=o[t.children];i&&(n.push(o[t.value]),r(i))})}return r(e),n}function bi(e){return e==null}const Db=function(e,t){return d.useMemo(function(){var n=dd(e,{fieldNames:t,initWrapper:function(a){return _(_({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];if(process.env.NODE_ENV!=="production"){var l=a.node.key;we(!bi(i),"TreeNode `value` is invalidate: undefined"),we(!o.valueEntities.has(i),"Same `value` exist in the tree: ".concat(i)),we(!l||String(l)===String(i),"`key` or `value` with TreeNode must be the same or you can remove one of them. key: ".concat(l,", value: ").concat(i,"."))}o.valueEntities.set(i,a)}});return n},[e,t])};var Qi=function(){return null},kb=["children","value"];function xd(e){return Pn(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,l=vt(a,kb),s=_({key:r,value:i},l),c=xd(o);return c.length&&(s.children=c),s}).filter(function(t){return t})}function Si(e){if(!e)return e;var t=_({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return we(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function _b(e,t,n,r,a,o){var i=null,l=null;function s(){function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(g,y){var p="".concat(f,"-").concat(y),h=g[o.value],m=n.includes(h),b=c(g[o.children]||[],p,m),S=d.createElement(Qi,g,b.map(function(C){return C.node}));if(t===h&&(i=S),m){var E={pos:p,node:S,children:b};return v||l.push(E),E}return null}).filter(function(g){return g})}l||(l=[],c(r),l.sort(function(u,f){var v=u.node.props.value,g=f.node.props.value,y=n.indexOf(v),p=n.indexOf(g);return y-p}))}Object.defineProperty(e,"triggerNode",{get:function(){return we(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return we(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),a?l:l.map(function(u){var f=u.node;return f})}})}const Fb=function(e,t,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,o=n.fieldNames,i=o.children;return d.useMemo(function(){if(!t||a===!1)return e;var l;if(typeof a=="function")l=a;else{var s=t.toUpperCase();l=function(f,v){var g=v[r];return String(g).toUpperCase().includes(s)}}function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return u.reduce(function(v,g){var y=g[i],p=f||l(t,Si(g)),h=c(y||[],p);return(p||h.length)&&v.push(_(_({},g),{},I({isLeaf:void 0},i,h))),v},[])}return c(e)},[e,t,i,r,a])};function Vs(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Lb(e,t){var n=t.id,r=t.pId,a=t.rootPId,o={},i=[],l=e.map(function(s){var c=_({},s),u=c[n];return o[u]=c,c.key=c.key||u,c});return l.forEach(function(s){var c=s[r],u=o[c];u&&(u.children=u.children||[],u.children.push(s)),(c===a||!u&&a===null)&&i.push(s)}),i}function Ab(e,t,n){return d.useMemo(function(){return e?n?Lb(e,_({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:xd(t)},[t,n,e])}var Od=d.createContext(null),Nd=d.createContext(null),Kb={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Vb=function(t,n){var r=ku(),a=r.prefixCls,o=r.multiple,i=r.searchValue,l=r.toggleOpen,s=r.open,c=r.notFoundContent,u=d.useContext(Nd),f=u.virtual,v=u.listHeight,g=u.listItemHeight,y=u.listItemScrollOffset,p=u.treeData,h=u.fieldNames,m=u.onSelect,b=u.dropdownMatchSelectWidth,S=u.treeExpandAction,E=d.useContext(Od),C=E.checkable,w=E.checkedKeys,x=E.halfCheckedKeys,$=E.treeExpandedKeys,M=E.treeDefaultExpandAll,P=E.treeDefaultExpandedKeys,D=E.onTreeExpand,k=E.treeIcon,T=E.showTreeIcon,F=E.switcherIcon,A=E.treeLine,R=E.treeNodeFilterProp,O=E.loadData,N=E.treeLoadedKeys,L=E.treeMotion,j=E.onTreeLoad,V=E.keyEntities,z=d.useRef(),U=Wr(function(){return p},[s,p],function(ye,J){return J[0]&&ye[1]!==J[1]}),re=d.useState(null),ne=H(re,2),Oe=ne[0],he=ne[1],G=V[Oe],q=d.useMemo(function(){return C?{checked:w,halfChecked:x}:null},[C,w,x]);d.useEffect(function(){if(s&&!o&&w.length){var ye;(ye=z.current)===null||ye===void 0||ye.scrollTo({key:w[0]}),he(w[0])}},[s]);var Z=String(i).toLowerCase(),ae=function(J){return Z?String(J[R]).toLowerCase().includes(Z):!1},se=d.useState(P),Y=H(se,2),K=Y[0],pe=Y[1],Se=d.useState(null),Ee=H(Se,2),oe=Ee[0],ge=Ee[1],ee=d.useMemo(function(){return $?ue($):i?oe:K},[K,oe,$,i]);d.useEffect(function(){i&&ge(Tb(p,h))},[i]);var me=function(J){pe(J),ge(J),D&&D(J)},de=function(J){J.preventDefault()},Re=function(J,Xe){var Ne=Xe.node;C&&yi(Ne)||(m(Ne.key,{selected:!w.includes(Ne.key)}),o||l(!1))};if(d.useImperativeHandle(n,function(){var ye;return{scrollTo:(ye=z.current)===null||ye===void 0?void 0:ye.scrollTo,onKeyDown:function(Xe){var Ne,$e=Xe.which;switch($e){case B.UP:case B.DOWN:case B.LEFT:case B.RIGHT:(Ne=z.current)===null||Ne===void 0||Ne.onKeyDown(Xe);break;case B.ENTER:{if(G){var Je=(G==null?void 0:G.node)||{},Me=Je.selectable,st=Je.value;Me!==!1&&Re(null,{node:{key:Oe},selected:!w.includes(st)})}break}case B.ESC:l(!1)}},onKeyUp:function(){}}}),U.length===0)return d.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:de},c);var Ve={fieldNames:h};return N&&(Ve.loadedKeys=N),ee&&(Ve.expandedKeys=ee),d.createElement("div",{onMouseDown:de},G&&s&&d.createElement("span",{style:Kb,"aria-live":"assertive"},G.node.value),d.createElement(Yi,Ge({ref:z,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:U,height:v,itemHeight:g,itemScrollOffset:y,virtual:f!==!1&&b!==!1,multiple:o,icon:k,showIcon:T,switcherIcon:F,showLine:A,loadData:i?null:O,motion:L,activeKey:Oe,checkable:C,checkStrictly:!0,checkedKeys:q,selectedKeys:C?[]:w,defaultExpandAll:M},Ve,{onActiveChange:he,onSelect:Re,onCheck:Re,onExpand:me,onLoad:j,filterTreeNode:ae,expandAction:S})))},Pd=d.forwardRef(Vb);Pd.displayName="OptionList";var Zi="SHOW_ALL",Ji="SHOW_PARENT",Xa="SHOW_CHILD";function Hs(e,t,n,r){var a=new Set(e);return t===Xa?e.filter(function(o){var i=n[o];return!(i&&i.children&&i.children.some(function(l){var s=l.node;return a.has(s[r.value])})&&i.children.every(function(l){var s=l.node;return yi(s)||a.has(s[r.value])}))}):t===Ji?e.filter(function(o){var i=n[o],l=i?i.parent:null;return!(l&&!yi(l.node)&&a.has(l.key))}):e}function Hb(e){var t=e.searchPlaceholder,n=e.treeCheckStrictly,r=e.treeCheckable,a=e.labelInValue,o=e.value,i=e.multiple;we(!t,"`searchPlaceholder` has been removed."),n&&a===!1&&we(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(a||n)&&we(wd(o).every(function(l){return l&&Ue(l)==="object"&&"value"in l}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),n||i||r?we(!o||Array.isArray(o),"`value` should be an array when `TreeSelect` is checkable or multiple."):we(!Array.isArray(o),"`value` should not be array when `TreeSelect` is single mode.")}var jb=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function zb(e){return!e||Ue(e)!=="object"}var Rd=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,l=e.onChange,s=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,v=e.onSearch,g=e.autoClearSearchValue,y=g===void 0?!0:g,p=e.filterTreeNode,h=e.treeNodeFilterProp,m=h===void 0?"value":h,b=e.showCheckedStrategy,S=e.treeNodeLabelProp,E=e.multiple,C=e.treeCheckable,w=e.treeCheckStrictly,x=e.labelInValue,$=e.fieldNames,M=e.treeDataSimpleMode,P=e.treeData,D=e.children,k=e.loadData,T=e.treeLoadedKeys,F=e.onTreeLoad,A=e.treeDefaultExpandAll,R=e.treeExpandedKeys,O=e.treeDefaultExpandedKeys,N=e.onTreeExpand,L=e.treeExpandAction,j=e.virtual,V=e.listHeight,z=V===void 0?200:V,U=e.listItemHeight,re=U===void 0?20:U,ne=e.listItemScrollOffset,Oe=ne===void 0?0:ne,he=e.onDropdownVisibleChange,G=e.dropdownMatchSelectWidth,q=G===void 0?!0:G,Z=e.treeLine,ae=e.treeIcon,se=e.showTreeIcon,Y=e.switcherIcon,K=e.treeMotion,pe=vt(e,jb),Se=Ju(n),Ee=C&&!w,oe=C||w,ge=w||x,ee=oe||E,me=mr(i,{value:o}),de=H(me,2),Re=de[0],Ve=de[1],ye=d.useMemo(function(){return C?b||Xa:Zi},[b,C]);process.env.NODE_ENV!=="production"&&Hb(e);var J=d.useMemo(function(){return $b($)},[JSON.stringify($)]),Xe=mr("",{value:u!==void 0?u:f,postState:function(te){return te||""}}),Ne=H(Xe,2),$e=Ne[0],Je=Ne[1],Me=function(te){Je(te),v==null||v(te)},st=Ab(P,D,M),ht=Db(st,J),nt=ht.keyEntities,De=ht.valueEntities,Qe=d.useCallback(function(Fe){var te=[],X=[];return Fe.forEach(function(ce){De.has(ce)?X.push(ce):te.push(ce)}),{missingRawValues:te,existRawValues:X}},[De]),at=Fb(st,$e,{fieldNames:J,treeNodeFilterProp:m,filterTreeNode:p}),ot=d.useCallback(function(Fe){if(Fe){if(S)return Fe[S];for(var te=J._title,X=0;X<te.length;X+=1){var ce=Fe[te[X]];if(ce!==void 0)return ce}}},[J,S]),ke=d.useCallback(function(Fe){var te=wd(Fe);return te.map(function(X){return zb(X)?{value:X}:X})},[]),ft=d.useCallback(function(Fe){var te=ke(Fe);return te.map(function(X){var ce=X.label,We=X.value,Ae=X.halfChecked,Le,et=De.get(We);if(et){var xt;ce=(xt=ce)!==null&&xt!==void 0?xt:ot(et.node),Le=et.node.disabled}else if(ce===void 0){var Dt=ke(Re).find(function(It){return It.value===We});ce=Dt.label}return{label:ce,value:We,halfChecked:Ae,disabled:Le}})},[De,ot,ke,Re]),pt=d.useMemo(function(){return ke(Re)},[ke,Re]),He=d.useMemo(function(){var Fe=[],te=[];return pt.forEach(function(X){X.halfChecked?te.push(X):Fe.push(X)}),[Fe,te]},[pt]),qe=H(He,2),_e=qe[0],xe=qe[1],je=d.useMemo(function(){return _e.map(function(Fe){return Fe.value})},[_e]),fe=Ib(_e,xe,Ee,nt),Ce=H(fe,2),W=Ce[0],ie=Ce[1],le=d.useMemo(function(){var Fe=Hs(W,ye,nt,J),te=Fe.map(function(Ae){var Le,et;return(Le=(et=nt[Ae])===null||et===void 0||(et=et.node)===null||et===void 0?void 0:et[J.value])!==null&&Le!==void 0?Le:Ae}),X=te.map(function(Ae){var Le=_e.find(function(et){return et.value===Ae});return{value:Ae,label:Le==null?void 0:Le.label}}),ce=ft(X),We=ce[0];return!ee&&We&&bi(We.value)&&bi(We.label)?[]:ce.map(function(Ae){var Le;return _(_({},Ae),{},{label:(Le=Ae.label)!==null&&Le!==void 0?Le:Ae.value})})},[J,ee,W,_e,ft,ye,nt]),ve=Mb(le),ze=H(ve,1),Ye=ze[0],ut=Vs(function(Fe,te,X){var ce=ft(Fe);if(Ve(ce),y&&Je(""),l){var We=Fe;if(Ee){var Ae=Hs(Fe,ye,nt,J);We=Ae.map(function(Kt){var bt=De.get(Kt);return bt?bt.node[J.value]:Kt})}var Le=te||{triggerValue:void 0,selected:void 0},et=Le.triggerValue,xt=Le.selected,Dt=We;if(w){var It=xe.filter(function(Kt){return!We.includes(Kt.value)});Dt=[].concat(ue(Dt),ue(It))}var kt=ft(Dt),Wt={preValue:_e,triggerValue:et},_t=!0;(w||X==="selection"&&!xt)&&(_t=!1),_b(Wt,et,Fe,st,_t,J),oe?Wt.checked=xt:Wt.selected=xt;var Jt=ge?kt:kt.map(function(Kt){return Kt.value});l(ee?Jt:Jt[0],ge?null:kt.map(function(Kt){return Kt.label}),Wt)}}),tt=d.useCallback(function(Fe,te){var X,ce=te.selected,We=te.source,Ae=nt[Fe],Le=Ae==null?void 0:Ae.node,et=(X=Le==null?void 0:Le[J.value])!==null&&X!==void 0?X:Fe;if(!ee)ut([et],{selected:!0,triggerValue:et},"option");else{var xt=ce?[].concat(ue(je),[et]):W.filter(function(bt){return bt!==et});if(Ee){var Dt=Qe(xt),It=Dt.missingRawValues,kt=Dt.existRawValues,Wt=kt.map(function(bt){return De.get(bt).key}),_t;if(ce){var Jt=vr(Wt,!0,nt);_t=Jt.checkedKeys}else{var Kt=vr(Wt,{checked:!1,halfCheckedKeys:ie},nt);_t=Kt.checkedKeys}xt=[].concat(ue(It),ue(_t.map(function(bt){return nt[bt].node[J.value]})))}ut(xt,{selected:ce,triggerValue:et},We||"option")}ce||!ee?s==null||s(et,Si(Le)):c==null||c(et,Si(Le))},[Qe,De,nt,J,ee,je,ut,Ee,s,c,W,ie]),wt=d.useCallback(function(Fe){if(he){var te={};Object.defineProperty(te,"documentClickClose",{get:function(){return we(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),he(Fe,te)}},[he]),rt=Vs(function(Fe,te){var X=Fe.map(function(ce){return ce.value});if(te.type==="clear"){ut(X,{},"selection");return}te.values.length&&tt(te.values[0].value,{selected:!1,source:"selection"})}),yt=d.useMemo(function(){return{virtual:j,dropdownMatchSelectWidth:q,listHeight:z,listItemHeight:re,listItemScrollOffset:Oe,treeData:at,fieldNames:J,onSelect:tt,treeExpandAction:L}},[j,q,z,re,Oe,at,J,tt,L]),mt=d.useMemo(function(){return{checkable:oe,loadData:k,treeLoadedKeys:T,onTreeLoad:F,checkedKeys:W,halfCheckedKeys:ie,treeDefaultExpandAll:A,treeExpandedKeys:R,treeDefaultExpandedKeys:O,onTreeExpand:N,treeIcon:ae,treeMotion:K,showTreeIcon:se,switcherIcon:Y,treeLine:Z,treeNodeFilterProp:m,keyEntities:nt}},[oe,k,T,F,W,ie,A,R,O,N,ae,K,se,Y,Z,m,nt]);return d.createElement(Nd.Provider,{value:yt},d.createElement(Od.Provider,{value:mt},d.createElement(Wi,Ge({ref:t},pe,{id:Se,prefixCls:a,mode:ee?"multiple":void 0,displayValues:Ye,onDisplayValuesChange:rt,searchValue:$e,onSearch:Me,OptionList:Pd,emptyOptions:!st.length,onDropdownVisibleChange:wt,dropdownMatchSelectWidth:q}))))});process.env.NODE_ENV!=="production"&&(Rd.displayName="TreeSelect");var Zr=Rd;Zr.TreeNode=Qi;Zr.SHOW_ALL=Zi;Zr.SHOW_PARENT=Ji;Zr.SHOW_CHILD=Xa;const Wb=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},yd(n,zt(e,{colorBgContainer:r})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},qi(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Bb(e,t){return Br("TreeSelect",n=>{const r=zt(n,{treePrefixCls:t});return[Wb(r)]},bd)(e)}var Ub=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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const qb=(e,t)=>{var n,r,{prefixCls:a,size:o,disabled:i,bordered:l=!0,className:s,rootClassName:c,treeCheckable:u,multiple:f,listHeight:v=256,listItemHeight:g=26,placement:y,notFoundContent:p,switcherIcon:h,treeLine:m,getPopupContainer:b,popupClassName:S,dropdownClassName:E,treeIcon:C=!1,transitionName:w,choiceTransitionName:x="",status:$,treeExpandAction:M,builtinPlacements:P,dropdownMatchSelectWidth:D,popupMatchSelectWidth:k,allowClear:T}=e,F=Ub(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:A,getPrefixCls:R,renderEmpty:O,direction:N,virtual:L,popupMatchSelectWidth:j,popupOverflow:V}=d.useContext(Dn);if(process.env.NODE_ENV!=="production"){const De=Va("TreeSelect");process.env.NODE_ENV!=="production"&&De(f!==!1||!u,"usage","`multiple` will always be `true` when `treeCheckable` is true"),De.deprecated(!E,"dropdownClassName","popupClassName"),De.deprecated(D===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&De(!("showArrow"in F),"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 z=R(),U=R("select",a),re=R("select-tree",a),ne=R("tree-select",a),{compactSize:Oe,compactItemClassnames:he}=ap(U,N),[G,q]=xy(U),[Z]=Bb(ne,re),ae=Be(S||E,`${ne}-dropdown`,{[`${ne}-dropdown-rtl`]:N==="rtl"},c,q),se=!!(u||f),Y=Ly(F.suffixIcon,F.showArrow),K=(n=k??D)!==null&&n!==void 0?n:j,{status:pe,hasFeedback:Se,isFormItemInput:Ee,feedbackIcon:oe}=d.useContext(Ou),ge=iy(pe,$),{suffixIcon:ee,removeIcon:me,clearIcon:de}=Fy(Object.assign(Object.assign({},F),{multiple:se,showSuffixIcon:Y,hasFeedback:Se,feedbackIcon:oe,prefixCls:U,componentName:"TreeSelect"})),Re=T===!0?{clearIcon:de}:T;let Ve;p!==void 0?Ve=p:Ve=(O==null?void 0:O("Select"))||d.createElement(vy,{componentName:"Select"});const ye=xi(F,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),J=d.useMemo(()=>y!==void 0?y:N==="rtl"?"bottomRight":"bottomLeft",[y,N]),Xe=Ny(P,V),Ne=np(De=>{var Qe;return(Qe=o??Oe)!==null&&Qe!==void 0?Qe:De}),$e=d.useContext(Vc),Je=i??$e,Me=Be(!a&&ne,{[`${U}-lg`]:Ne==="large",[`${U}-sm`]:Ne==="small",[`${U}-rtl`]:N==="rtl",[`${U}-borderless`]:!l,[`${U}-in-form-item`]:Ee},oy(U,ge,Se),he,s,c,q),st=De=>d.createElement(Rb,{prefixCls:re,switcherIcon:h,treeNodeProps:De,showLine:m}),[ht]=km("SelectLike",(r=F.dropdownStyle)===null||r===void 0?void 0:r.zIndex),nt=d.createElement(Zr,Object.assign({virtual:L,disabled:Je},ye,{dropdownMatchSelectWidth:K,builtinPlacements:Xe,ref:t,prefixCls:U,className:Me,listHeight:v,listItemHeight:g,treeCheckable:u&&d.createElement("span",{className:`${U}-tree-checkbox-inner`}),treeLine:!!m,suffixIcon:ee,multiple:se,placement:J,removeIcon:me,allowClear:Re,switcherIcon:st,showTreeIcon:C,notFoundContent:Ve,getPopupContainer:b||A,treeMotion:null,dropdownClassName:ae,dropdownStyle:Object.assign(Object.assign({},F.dropdownStyle),{zIndex:ht}),choiceTransitionName:Ul(z,"",x),transitionName:Ul(z,"slide-up",w),treeExpandAction:M}));return G(Z(nt))},Gb=d.forwardRef(qb),kn=Gb,Xb=Fm(kn);kn.TreeNode=Qi;kn.SHOW_ALL=Zi;kn.SHOW_PARENT=Ji;kn.SHOW_CHILD=Xa;kn._InternalPanelDoNotUseOrYouWillBeFired=Xb;process.env.NODE_ENV!=="production"&&(kn.displayName="TreeSelect");const Yb=kn,Qb=({...e})=>Id.jsx(Yb,{...e});exports.TreeSelect=Qb;
|