@kb-labs/qa-entry 2.82.0 → 2.87.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.
Files changed (41) hide show
  1. package/dist/widgets/117.js +1 -2
  2. package/dist/widgets/165.js +1 -2
  3. package/dist/widgets/326.js +1 -2
  4. package/dist/widgets/370.js +1 -2
  5. package/dist/widgets/405.js +1 -2
  6. package/dist/widgets/418.js +5 -6
  7. package/dist/widgets/451.js +1 -2
  8. package/dist/widgets/50.js +1 -2
  9. package/dist/widgets/546.js +1 -2
  10. package/dist/widgets/669.js +1 -2
  11. package/dist/widgets/694.js +1 -2
  12. package/dist/widgets/707.js +1 -2
  13. package/dist/widgets/775.js +1 -2
  14. package/dist/widgets/{162.js → 805.js} +10 -11
  15. package/dist/widgets/919.js +6 -7
  16. package/dist/widgets/945.js +1 -2
  17. package/dist/widgets/968.js +4 -5
  18. package/dist/widgets/__federation_expose_QADashboard.js +1 -2
  19. package/dist/widgets/mf-manifest.json +7 -7
  20. package/dist/widgets/mf-stats.json +25 -16
  21. package/dist/widgets/remoteEntry.js +4 -5
  22. package/package.json +7 -7
  23. package/dist/widgets/117.js.map +0 -1
  24. package/dist/widgets/162.js.map +0 -1
  25. package/dist/widgets/165.js.map +0 -1
  26. package/dist/widgets/326.js.map +0 -1
  27. package/dist/widgets/370.js.map +0 -1
  28. package/dist/widgets/405.js.map +0 -1
  29. package/dist/widgets/418.js.map +0 -1
  30. package/dist/widgets/451.js.map +0 -1
  31. package/dist/widgets/50.js.map +0 -1
  32. package/dist/widgets/546.js.map +0 -1
  33. package/dist/widgets/669.js.map +0 -1
  34. package/dist/widgets/694.js.map +0 -1
  35. package/dist/widgets/707.js.map +0 -1
  36. package/dist/widgets/775.js.map +0 -1
  37. package/dist/widgets/919.js.map +0 -1
  38. package/dist/widgets/945.js.map +0 -1
  39. package/dist/widgets/968.js.map +0 -1
  40. package/dist/widgets/__federation_expose_QADashboard.js.map +0 -1
  41. package/dist/widgets/remoteEntry.js.map +0 -1
@@ -1,4 +1,4 @@
1
- (self.webpackChunk_kb_labs_qa_entry=self.webpackChunk_kb_labs_qa_entry||[]).push([["162"],{7881(e,t,n){"use strict";let r,o,a,i,l,c,s;n.r(t),n.d(t,{Calendar:()=>b3,Tooltip:()=>ms,Upload:()=>Tu,unstableSetRender:()=>iH,List:()=>OT,Popover:()=>mv,Anchor:()=>aA,Splitter:()=>IH,Typography:()=>PF,version:()=>nG,Row:()=>IA,Switch:()=>Ne,Tag:()=>MQ,Skeleton:()=>ur,Descriptions:()=>Ek,AutoComplete:()=>pB,FloatButton:()=>S$,Pagination:()=>Oh,Result:()=>IO,Badge:()=>mL,Steps:()=>I3,Tabs:()=>yI,QRCode:()=>Ic,theme:()=>M2,Modal:()=>Ar,Table:()=>ML,Divider:()=>xW,Mentions:()=>O0,Col:()=>xD,ConfigProvider:()=>iO,TimePicker:()=>M9,Menu:()=>h$,Carousel:()=>$I,Flex:()=>Se,Radio:()=>Is,App:()=>du,Collapse:()=>lX,Button:()=>cu,Slider:()=>CS,Form:()=>SU,Card:()=>yB,Layout:()=>k5,notification:()=>Ap,Statistic:()=>IG,Drawer:()=>EW,Image:()=>kk,ColorPicker:()=>Cq,BackTop:()=>mC,Progress:()=>Aq,Alert:()=>as,Segmented:()=>x0,Select:()=>pj,Transfer:()=>RK,Empty:()=>fZ,Cascader:()=>xk,TreeSelect:()=>Pi,Spin:()=>OA,Grid:()=>SQ,Checkbox:()=>xM,DatePicker:()=>Eg,InputNumber:()=>wJ,Tour:()=>RO,Popconfirm:()=>Ay,Rate:()=>Iv,Watermark:()=>Th,Tree:()=>Mi,Dropdown:()=>E4,Breadcrumb:()=>hT,Affix:()=>r2,Avatar:()=>my,Input:()=>kQ,Space:()=>E0,Timeline:()=>Rl,message:()=>O9});var u,d,f,p,m,g,h,v,b,y,$,x=n(2913),w=n.n(x),C=n(9400),E=n.n(C);function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var k=n(8143),O=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),I=Symbol.for("react.fragment");function N(e){return e&&"object"===(0,k.A)(e)&&(e.$$typeof===O||e.$$typeof===A)&&e.type===I}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return w().Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(j(e)):N(e)&&e.props?n=n.concat(j(e.props.children,t)):n.push(e))}),n}var M={},R=[];function P(e,t){}function T(e,t){}function z(e,t,n){t||M[n]||(e(!1,n),M[n]=!0)}function B(e,t){z(P,e,t)}B.preMessage=function(e){R.push(e)},B.resetWarned=function(){M={}},B.noteOnce=function(e,t){z(T,e,t)};var D=n(5314),H=n(6399),L=n.n(H);function F(e){return e instanceof HTMLElement||e instanceof SVGElement}function W(e){return e&&"object"===(0,k.A)(e)&&F(e.nativeElement)?e.nativeElement:F(e)?e:null}function _(e){var t,n=W(e);return n||(e instanceof w().Component?null==(t=L().findDOMNode)?void 0:t.call(L(),e):null)}var V=n(3930);function q(e,t,n){var r=x.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var K=Number(x.version.split(".")[0]),X=function(e,t){"function"==typeof e?e(t):"object"===(0,k.A)(e)&&e&&"current"in e&&(e.current=t)},G=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){X(t,e)})}},Y=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(function(){return G.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},U=function(e){if(!e)return!1;if(Q(e)&&K>=19)return!0;var t,n,r=(0,V.isMemo)(e)?e.type.type:e.type;return("function"!=typeof r||!!(null!=(t=r.prototype)&&t.render)||r.$$typeof===V.ForwardRef)&&("function"!=typeof e||!!(null!=(n=e.prototype)&&n.render)||e.$$typeof===V.ForwardRef)};function Q(e){return(0,x.isValidElement)(e)&&!N(e)}var Z=function(e){return e&&Q(e)?e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref:null},J=x.createContext(null),ee=function(){if("u">typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}(),et="u">typeof window&&"u">typeof document&&window.document===document,en=void 0!==n.g&&n.g.Math===Math?n.g:"u">typeof self&&self.Math===Math?self:"u">typeof window&&window.Math===Math?window:Function("return this")(),er="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(en):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},eo=["top","right","bottom","left","width","height","size","weight"],ea="u">typeof MutationObserver,ei=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&i()}function a(){er(o)}function i(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(a,20);r=e}return i}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){et&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ea?(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(){et&&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(e){var t=e.propertyName,n=void 0===t?"":t;eo.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),el=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ec=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||en},es=ep(0,0,0,0);function eu(e){return parseFloat(e)||0}function ed(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+eu(e["border-"+n+"-width"])},0)}var ef="u">typeof SVGGraphicsElement?function(e){return e instanceof ec(e).SVGGraphicsElement}:function(e){return e instanceof ec(e).SVGElement&&"function"==typeof e.getBBox};function ep(e,t,n,r){return{x:e,y:t,width:n,height:r}}var em=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ep(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!et)return es;if(ef(e)){var t;return ep(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t,n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return es;var o=ec(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=eu(a)}return t}(o),i=a.left+a.right,l=a.top+a.bottom,c=eu(o.width),s=eu(o.height);if("border-box"===o.boxSizing&&(Math.round(c+i)!==n&&(c-=ed(o,"left","right")+i),Math.round(s+l)!==r&&(s-=ed(o,"top","bottom")+l)),(t=e)!==ec(t).document.documentElement){var u=Math.round(c+i)-n,d=Math.round(s+l)-r;1!==Math.abs(u)&&(c-=u),1!==Math.abs(d)&&(s-=d)}return ep(a.left,a.top,c,s)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),eg=function(e,t){var n,r,o,a,i,l=(n=t.x,r=t.y,o=t.width,a=t.height,el(i=Object.create(("u">typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:r,width:o,height:a,top:r,right:n+o,bottom:a+r,left:n}),i);el(this,{target:e,contentRect:l})},eh=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ee,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof ec(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new em(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof ec(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new eg(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ev="u">typeof WeakMap?new WeakMap:new ee,eb=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new eh(t,ei.getInstance(),this);ev.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){eb.prototype[e]=function(){var t;return(t=ev.get(this))[e].apply(t,arguments)}});var ey=void 0!==en.ResizeObserver?en.ResizeObserver:eb,e$=new Map,ex=new ey(function(e){e.forEach(function(e){var t,n=e.target;null==(t=e$.get(n))||t.forEach(function(e){return e(n)})})}),ew=n(1194),eC=n(1580),eE=n(3834),eS=n(3593),ek=n(4151),eO=n(611);function eA(e){var t=(0,ek.A)();return function(){var n,r=(0,eS.A)(e);return n=t?Reflect.construct(r,arguments,(0,eS.A)(this).constructor):r.apply(this,arguments),(0,eO.A)(this,n)}}var eI=function(e){(0,eE.A)(n,e);var t=eA(n);function n(){return(0,ew.A)(this,n),t.apply(this,arguments)}return(0,eC.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(x.Component),eN=x.forwardRef(function(e,t){var n=e.children,r=e.disabled,o=x.useRef(null),a=x.useRef(null),i=x.useContext(J),l="function"==typeof n,c=l?n(o):n,s=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&x.isValidElement(c)&&U(c),d=Y(u?Z(c):null,o),f=function(){var e;return _(o.current)||(o.current&&"object"===(0,k.A)(o.current)?_(null==(e=o.current)?void 0:e.nativeElement):null)||_(a.current)};x.useImperativeHandle(t,function(){return f()});var p=x.useRef(e);p.current=e;var m=x.useCallback(function(e){var t=p.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,l=o.height,c=e.offsetWidth,u=e.offsetHeight,d=Math.floor(a),f=Math.floor(l);if(s.current.width!==d||s.current.height!==f||s.current.offsetWidth!==c||s.current.offsetHeight!==u){var m={width:d,height:f,offsetWidth:c,offsetHeight:u};s.current=m;var g=c===Math.round(a)?a:c,h=u===Math.round(l)?l:u,v=(0,D.A)((0,D.A)({},m),{},{offsetWidth:g,offsetHeight:h});null==i||i(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return x.useEffect(function(){var e=f();return e&&!r&&(e$.has(e)||(e$.set(e,new Set),ex.observe(e)),e$.get(e).add(m)),function(){e$.has(e)&&(e$.get(e).delete(m),!e$.get(e).size&&(ex.unobserve(e),e$.delete(e)))}},[o.current,r]),x.createElement(eI,{ref:a},u?x.cloneElement(c,{ref:d}):c)}),ej=x.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:j(n)).map(function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return x.createElement(eN,S({},e,{key:o,ref:0===r?t:void 0}),n)})});ej.Collection=function(e){var t=e.children,n=e.onBatchResize,r=x.useRef(0),o=x.useRef([]),a=x.useContext(J),i=x.useCallback(function(e,t,i){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then(function(){l===r.current&&(null==n||n(o.current),o.current=[])}),null==a||a(e,t,i)},[n,a]);return x.createElement(J.Provider,{value:i},t)};var eM=n(9008),eR=function(e){return+setTimeout(e,16)},eP=function(e){return clearTimeout(e)};"u">typeof window&&"requestAnimationFrame"in window&&(eR=function(e){return window.requestAnimationFrame(e)},eP=function(e){return window.cancelAnimationFrame(e)});var eT=0,ez=new Map,eB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=eT+=1;return!function t(r){if(0===r)ez.delete(n),e();else{var o=eR(function(){t(r-1)});ez.set(n,o)}}(t),n};eB.cancel=function(e){var t=ez.get(e);return ez.delete(e),eP(t)};let eD=function(e){let t=null,n=(...n)=>{null===t&&(t=eB(()=>{t=null,e.apply(void 0,(0,eM.A)(n))}))};return n.cancel=()=>{eB.cancel(t),t=null},n},eH="ant",eL="anticon",eF=["outlined","borderless","filled","underlined"],eW=x.createContext({getPrefixCls:(e,t)=>t||(e?`${eH}-${e}`:eH),iconPrefixCls:eL}),{Consumer:e_}=eW,eV={};function eq(e){let t=x.useContext(eW),{getPrefixCls:n,direction:r,getPopupContainer:o}=t;return Object.assign(Object.assign({classNames:eV,styles:eV},t[e]),{getPrefixCls:n,direction:r,getPopupContainer:o})}var eK=n(5378),eX=n(3268);let eG=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)};function eY(){return!!("u">typeof window&&window.document&&window.document.createElement)}function eU(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 eQ="data-rc-order",eZ="data-rc-priority",eJ=new Map;function e0(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function e1(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function e2(e){return Array.from((eJ.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function e4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!eY())return null;var n=t.csp,r=t.prepend,o=t.priority,a=void 0===o?0:o,i="queue"===r?"prependQueue":r?"prepend":"append",l="prependQueue"===i,c=document.createElement("style");c.setAttribute(eQ,i),l&&a&&c.setAttribute(eZ,"".concat(a)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=e1(t),u=s.firstChild;if(r){if(l){var d=(t.styles||e2(s)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(eQ))&&a>=Number(e.getAttribute(eZ)||0)});if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function e3(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e1(t);return(t.styles||e2(n)).find(function(n){return n.getAttribute(e0(t))===e})}function e6(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e3(e,t);n&&e1(t).removeChild(n)}function e5(e,t){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e1(a),l=e2(i),c=(0,D.A)((0,D.A)({},a),{},{styles:l}),s=eJ.get(i);if(!s||!eU(document,s)){var u=e4("",c),d=u.parentNode;eJ.set(i,d),i.removeChild(u)}var f=e3(t,c);if(f)return null!=(n=c.csp)&&n.nonce&&f.nonce!==(null==(r=c.csp)?void 0:r.nonce)&&(f.nonce=null==(o=c.csp)?void 0:o.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;var p=e4(e,c);return p.setAttribute(e0(c),t),p}let e8=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.has(t);if(B(!i,"Warning: There may be circular references"),i)return!1;if(t===o)return!0;if(n&&a>1)return!1;r.add(t);var l=a+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===(0,k.A)(t)&&"object"===(0,k.A)(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every(function(n){return e(t[n],o[n],l)})}return!1}(e,t)};function e7(e){return e.join("%")}var e9=function(){function e(t){(0,ew.A)(this,e),(0,eX.A)(this,"instanceId",void 0),(0,eX.A)(this,"cache",new Map),(0,eX.A)(this,"extracted",new Set),this.instanceId=t}return(0,eC.A)(e,[{key:"get",value:function(e){return this.opGet(e7(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(e7(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),te="data-token-hash",tt="data-css-hash",tn="__cssinjs_instance__",tr=x.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("u">typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(tt,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[tn]=t[tn]||e,t[tn]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(tt,"]"))).forEach(function(t){var n,o=t.getAttribute(tt);r[o]?t[tn]===e&&(null==(n=t.parentNode)||n.removeChild(t)):r[o]=!0})}return new e9(e)}(),defaultCache:!0}),to=function(){function e(){(0,ew.A)(this,e),(0,eX.A)(this,"cache",void 0),(0,eX.A)(this,"keys",void 0),(0,eX.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,eC.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null==(t=o)||null==(t=t.map)?void 0:t.get(e)}else o=void 0}),null!=(t=o)&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null==(n=o)?void 0:n.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,eK.A)(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,eK.A)(o,1)[0];this.delete(a)}this.keys.push(t)}var i=this.cache;t.forEach(function(e,o){if(o===t.length-1)i.set(e,{value:[n,r.cacheCallTimes++]});else{var a=i.get(e);a?a.map||(a.map=new Map):i.set(e,{map:new Map}),i=i.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null==(n=r.value)?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(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}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,eX.A)(to,"MAX_CACHE_SIZE",20),(0,eX.A)(to,"MAX_CACHE_OFFSET",5);var ta=0,ti=function(){function e(t){(0,ew.A)(this,e),(0,eX.A)(this,"derivatives",void 0),(0,eX.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ta,0===t.length&&t.length,ta+=1}return(0,eC.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),tl=new to;function tc(e){var t=Array.isArray(e)?e:[e];return tl.has(t)||tl.set(t,new ti(t)),tl.get(t)}var ts=new WeakMap,tu={},td=new WeakMap;function tf(e){var t=td.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof ti?t+=r.id:r&&"object"===(0,k.A)(r)?t+=tf(r):t+=r}),t=eG(t),td.set(e,t)),t}function tp(e,t){return eG("".concat(t,"_").concat(tf(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var tm=eY();function tg(e){return"number"==typeof e?"".concat(e,"px"):e}function th(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return e;var a=(0,D.A)((0,D.A)({},r),{},(0,eX.A)((0,eX.A)({},te,t),tt,n)),i=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var tv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},tb=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,eK.A)(e,2),r=t[0],i=t[1];if(null!=n&&null!=(l=n.preserve)&&l[r])a[r]=i;else if(("string"==typeof i||"number"==typeof i)&&!(null!=n&&null!=(c=n.ignore)&&c[r])){var l,c,s,u=tv(r,null==n?void 0:n.prefix);o[u]="number"!=typeof i||null!=n&&null!=(s=n.unitless)&&s[r]?String(i):"".concat(i,"px"),a[r]="var(".concat(u,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,eK.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},ty=eY()?x.useLayoutEffect:x.useEffect,t$=function(e,t){var n=x.useRef(!0);ty(function(){return e(n.current)},t),ty(function(){return n.current=!1,function(){n.current=!0}},[])},tx=function(e,t){t$(function(t){if(!t)return e()},t)},tw=(0,D.A)({},x).useInsertionEffect,tC=tw?function(e,t,n){return tw(function(){return e(),t()},n)}:function(e,t,n){x.useMemo(e,n),t$(function(){return t(!0)},n)},tE=void 0!==(0,D.A)({},x).useInsertionEffect?function(e){var t=[],n=!1;return x.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function tS(e,t,n,r,o){var a=x.useContext(tr).cache,i=e7([e].concat((0,eM.A)(t))),l=tE([i]),c=function(e){a.opUpdate(i,function(t){var r=(0,eK.A)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};x.useMemo(function(){c()},[i]);var s=a.opGet(i)[1];return tC(function(){null==o||o(s)},function(e){return c(function(t){var n=(0,eK.A)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(s)),[r+1,a]}),function(){a.opUpdate(i,function(t){var n=(0,eK.A)(t||[],2),o=n[0],c=void 0===o?0:o,s=n[1];return 0==c-1?(l(function(){(e||!a.opGet(i))&&(null==r||r(s,!1))}),null):[c-1,s]})}},[i]),s}var tk={},tO=new Map,tA=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,D.A)((0,D.A)({},o),t);return r&&(a=r(a)),a},tI="token";let tN={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};var tj="comm",tM="rule",tR="decl",tP=Math.abs,tT=String.fromCharCode;function tz(e,t,n){return e.replace(t,n)}function tB(e,t){return 0|e.charCodeAt(t)}function tD(e,t,n){return e.slice(t,n)}function tH(e){return e.length}function tL(e,t){return t.push(e),e}function tF(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function tW(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case tR:return e.return=e.return||e.value;case tj:return"";case"@keyframes":return e.return=e.value+"{"+tF(e.children,r)+"}";case tM:if(!tH(e.value=e.props.join(",")))return""}return tH(n=tF(e.children,r))?e.return=e.value+"{"+n+"}":""}var t_=1,tV=1,tq=0,tK=0,tX=0,tG="";function tY(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:t_,column:tV,length:i,return:"",siblings:l}}function tU(){return tX=tK<tq?tB(tG,tK++):0,tV++,10===tX&&(tV=1,t_++),tX}function tQ(){return tB(tG,tK)}function tZ(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 tJ(e){var t,n;return(t=tK-1,n=function e(t){for(;tU();)switch(tX){case t:return tK;case 34:case 39:34!==t&&39!==t&&e(tX);break;case 40:41===t&&e(t);break;case 92:tU()}return tK}(91===e?e+2:40===e?e+1:e),tD(tG,t,n)).trim()}function t0(e,t,n,r,o,a,i,l,c,s,u,d){for(var f=o-1,p=0===o?a:[""],m=p.length,g=0,h=0,v=0;g<r;++g)for(var b=0,y=tD(e,f+1,f=tP(h=i[g])),$=e;b<m;++b)($=(h>0?p[b]+" "+y:tz(y,/&\f/g,p[b])).trim())&&(c[v++]=$);return tY(e,t,n,0===o?tM:l,c,s,u,d)}function t1(e,t,n,r,o){return tY(e,t,n,tR,tD(e,0,r),tD(e,r+1,-1),r,o)}var t2="data-ant-cssinjs-cache-path",t4="_FILE_STYLE__",t3=!0,t6="_multi_value_";function t5(e){var t,n,r;return tF((r=function e(t,n,r,o,a,i,l,c,s){for(var u,d,f,p,m,g,h=0,v=0,b=l,y=0,$=0,x=0,w=1,C=1,E=1,S=0,k="",O=a,A=i,I=o,N=k;C;)switch(x=S,S=tU()){case 40:if(108!=x&&58==tB(N,b-1)){-1!=(m=N+=tz(tJ(S),"&","&\f"),g=tP(h?c[h-1]:0),m.indexOf("&\f",g))&&(E=-1);break}case 34:case 39:case 91:N+=tJ(S);break;case 9:case 10:case 13:case 32:N+=function(e){for(;tX=tQ();)if(tX<33)tU();else break;return tZ(e)>2||tZ(tX)>3?"":" "}(x);break;case 92:N+=function(e,t){for(var n;--t&&tU()&&!(tX<48)&&!(tX>102)&&(!(tX>57)||!(tX<65))&&(!(tX>70)||!(tX<97)););return n=tK+(t<6&&32==tQ()&&32==tU()),tD(tG,e,n)}(tK-1,7);continue;case 47:switch(tQ()){case 42:case 47:tL((u=function(e,t){for(;tU();)if(e+tX===57)break;else if(e+tX===84&&47===tQ())break;return"/*"+tD(tG,t,tK-1)+"*"+tT(47===e?e:tU())}(tU(),tK),d=n,f=r,p=s,tY(u,d,f,tj,tT(tX),tD(u,2,-2),0,p)),s),(5==tZ(x||1)||5==tZ(tQ()||1))&&tH(N)&&" "!==tD(N,-1,void 0)&&(N+=" ");break;default:N+="/"}break;case 123*w:c[h++]=tH(N)*E;case 125*w:case 59:case 0:switch(S){case 0:case 125:C=0;case 59+v:-1==E&&(N=tz(N,/\f/g,"")),$>0&&(tH(N)-b||0===w&&47===x)&&tL($>32?t1(N+";",o,r,b-1,s):t1(tz(N," ","")+";",o,r,b-2,s),s);break;case 59:N+=";";default:if(tL(I=t0(N,n,r,h,v,a,c,k,O=[],A=[],b,i),i),123===S)if(0===v)e(N,n,I,I,O,i,b,c,A);else{switch(y){case 99:if(110===tB(N,3))break;case 108:if(97===tB(N,2))break;default:v=0;case 100:case 109:case 115:}v?e(t,I,I,o&&tL(t0(t,I,I,0,0,a,c,k,a,O=[],b,A),A),a,A,b,c,o?O:A):e(N,I,I,I,[""],A,0,c,A)}}h=v=$=0,w=E=1,k=N="",b=l;break;case 58:b=1+tH(N),$=x;default:if(w<1){if(123==S)--w;else if(125==S&&0==w++&&125==(tX=tK>0?tB(tG,--tK):0,tV--,10===tX&&(tV=1,t_--),tX))continue}switch(N+=tT(S),S*w){case 38:E=v>0?1:(N+="\f",-1);break;case 44:c[h++]=(tH(N)-1)*E,E=1;break;case 64:45===tQ()&&(N+=tJ(tU())),y=tQ(),v=b=tH(k=N+=function(e){for(;!tZ(tQ());)tU();return tD(tG,e,tK)}(tK)),S++;break;case 45:45===x&&2==tH(N)&&(w=0)}}return i}("",null,null,null,[""],(n=t=e,t_=tV=1,tq=tH(tG=n),tK=0,t=[]),0,[0],t),tG="",r),tW).replace(/\{%%%\:[^;];}/g,";")}function t8(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null==(t=r.match(/^\w+/))?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,eM.A)(n.slice(1))).join(" ")}).join(",")}var t7=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var r=t.getName(l);if(!p[r]){var o=e(t.style,n,{root:!1,parentSelectors:i}),a=(0,eK.A)(o,1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(a)}}return(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var c=d.reduce(function(e,t){var n;return(null==t||null==(n=t.visit)?void 0:n.call(t,e))||e},r);Object.keys(c).forEach(function(t){var r=c[t];if("object"!==(0,k.A)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,k.A)(r)&&r&&("_skip_check_"in r||t6 in r)){function u(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;tN[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d,g=null!=(d=null==r?void 0:r.value)?d:r;"object"===(0,k.A)(r)&&null!=r&&r[t6]&&Array.isArray(g)?g.forEach(function(e){u(t,e)}):u(t,g)}else{var h=!1,v=t.trim(),b=!1;(o||a)&&l?v.startsWith("@")?h=!0:v="&"===v?t8("",l,s):t8(t,l,s):o&&!l&&("&"===v||""===v)&&(v="",b=!0);var y=e(r,n,{root:b,injectHash:h,parentSelectors:[].concat((0,eM.A)(i),[v])}),$=(0,eK.A)(y,2),x=$[0],w=$[1];p=(0,D.A)((0,D.A)({},p),w),f+="".concat(v).concat(x)}})}}),o?c&&(f&&(f="@layer ".concat(c.name," {").concat(f,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(c.name,";")}).join("\n"))):f="{".concat(f,"}"),[f,p]};function t9(e,t){return eG("".concat(e.join("%")).concat(t))}function ne(){return null}var nt="style";function nn(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,s=void 0===c?0:c,u=x.useContext(tr),d=u.autoClear,f=(u.mock,u.defaultCache),p=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,$=u.layer,w=n._tokenKey,C=[w];$&&C.push("layer"),C.push.apply(C,(0,eM.A)(r));var E=tS(nt,C,function(){var e=C.join("|");if(function(e){if(!h&&(h={},eY())){var t,n=document.createElement("div");n.className=t2,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);var r=getComputedStyle(n).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,eK.A)(t,2),r=n[0],o=n[1];h[r]=o});var o=document.querySelector("style[".concat(t2,"]"));o&&(t3=!1,null==(t=o.parentNode)||t.removeChild(o)),document.body.removeChild(n)}return!!h[e]}(e)){var n=function(e){var t=h[e],n=null;if(t&&eY())if(t3)n=t4;else{var r=document.querySelector("style[".concat(tt,'="').concat(h[e],'"]'));r?n=r.innerHTML:delete h[e]}return[n,t]}(e),i=(0,eK.A)(n,2),c=i[0],u=i[1];if(c)return[c,w,u,{},l,s]}var d=t7(t(),{hashId:o,hashPriority:p,layer:$?a:void 0,path:r.join("-"),transformers:v,linters:b}),f=(0,eK.A)(d,2),m=f[0],g=f[1],y=t5(m),x=t9(C,y);return[y,w,x,g,l,s]},function(e,t){var n=(0,eK.A)(e,3)[2];(t||d)&&tm&&e6(n,{mark:tt,attachTo:m})},function(e){var t=(0,eK.A)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(tm&&n!==t4){var a={mark:tt,prepend:!$&&"queue",attachTo:m,priority:s},l="function"==typeof i?i():i;l&&(a.csp={nonce:l});var c=[],u=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?c.push(e):u.push(e)}),c.forEach(function(e){e5(t5(o[e]),"_layer-".concat(e),(0,D.A)((0,D.A)({},a),{},{prepend:!0}))});var d=e5(n,r,a);d[tn]=y.instanceId,d.setAttribute(te,w),u.forEach(function(e){e5(t5(o[e]),"_effect-".concat(e),a)})}}),k=(0,eK.A)(E,3),O=k[0],A=k[1],I=k[2];return function(e){var t;return t=g&&!tm&&f?x.createElement("style",S({},(0,eX.A)((0,eX.A)({},te,A),tt,I),{dangerouslySetInnerHTML:{__html:O}})):x.createElement(ne,null),x.createElement(x.Fragment,null,t,e)}}var nr="cssVar";let no=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,i=e.token,l=e.scope,c=void 0===l?"":l,s=(0,x.useContext)(tr),u=s.cache.instanceId,d=s.container,f=i._tokenKey,p=[].concat((0,eM.A)(e.path),[n,c,f]);return tS(nr,p,function(){var e=tb(t(),n,{prefix:r,unitless:o,ignore:a,scope:c}),i=(0,eK.A)(e,2),l=i[0],s=i[1],u=t9(p,s);return[l,s,u,n]},function(e){var t=(0,eK.A)(e,3)[2];tm&&e6(t,{mark:tt,attachTo:d})},function(e){var t=(0,eK.A)(e,3),r=t[1],o=t[2];if(r){var a=e5(r,o,{mark:tt,prepend:"queue",attachTo:d,priority:-999});a[tn]=u,a.setAttribute(te,n)}})};(0,eX.A)((0,eX.A)((0,eX.A)({},nt,function(e,t,n){var r=(0,eK.A)(e,6),o=r[0],a=r[1],i=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=th(o,a,i,f,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=th(t5(l[e]),a,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}}),[s,i,d]}),tI,function(e,t,n){var r=(0,eK.A)(e,5),o=r[2],a=r[3],i=r[4],l=(n||{}).plain;if(!a)return null;var c=o._tokenKey,s=th(a,i,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,c,s]}),nr,function(e,t,n){var r=(0,eK.A)(e,4),o=r[1],a=r[2],i=r[3],l=(n||{}).plain;if(!o)return null;var c=th(o,i,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,a,c]});var na=function(){function e(t,n){(0,ew.A)(this,e),(0,eX.A)(this,"name",void 0),(0,eX.A)(this,"style",void 0),(0,eX.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,eC.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function ni(e){return e.notSplit=!0,e}ni(["borderTop","borderBottom"]),ni(["borderTop"]),ni(["borderBottom"]),ni(["borderLeft","borderRight"]),ni(["borderLeft"]),ni(["borderRight"]);var nl=n(8172),nc=(0,eC.A)(function e(){(0,ew.A)(this,e)}),ns="CALC_UNIT",nu=RegExp(ns,"g");function nd(e){return"number"==typeof e?"".concat(e).concat(ns):e}var nf=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e,r){(0,ew.A)(this,n),o=t.call(this),(0,eX.A)((0,nl.A)(o),"result",""),(0,eX.A)((0,nl.A)(o),"unitlessCssVar",void 0),(0,eX.A)((0,nl.A)(o),"lowPriority",void 0);var o,a=(0,k.A)(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===a?o.result=nd(e):"string"===a&&(o.result=e),o}return(0,eC.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(nd(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(nd(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return("boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(nu,r?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),n}(nc),np=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e){var r;return(0,ew.A)(this,n),r=t.call(this),(0,eX.A)((0,nl.A)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,eC.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(nc);let nm=function(e,t){var n="css"===e?nf:np;return function(e){return new n(e,t)}},ng=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function nh(e){var t=x.useRef();return t.current=e,x.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(r))},[])}function nv(e){var t=x.useRef(!1),n=x.useState(e),r=(0,eK.A)(n,2),o=r[0],a=r[1];return x.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[o,function(e,n){n&&t.current||a(e)}]}function nb(e){return void 0!==e}function ny(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=nv(function(){return nb(o)?o:nb(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),c=(0,eK.A)(l,2),s=c[0],u=c[1],d=void 0!==o?o:s,f=i?i(d):d,p=nh(a),m=nv([d]),g=(0,eK.A)(m,2),h=g[0],v=g[1];return tx(function(){var e=h[0];s!==e&&p(s,e)},[h]),tx(function(){nb(o)||u(o)},[o]),[f,nh(function(e,t){u(e,t),v([d],t)})]}function n$(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}var nx=n(4930),nw=n(380),nC=n(3891),nE=n(1059);function nS(e){return(0,nx.A)(e)||(0,nw.A)(e)||(0,nC.A)(e)||(0,nE.A)()}function nk(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!n$(e,t.slice(0,-1))?e:function e(t,n,r,o){if(!n.length)return r;var a,i=nS(n),l=i[0],c=i.slice(1);return a=t||"number"!=typeof l?Array.isArray(t)?(0,eM.A)(t):(0,D.A)({},t):[],o&&void 0===r&&1===c.length?delete a[l][c[0]]:a[l]=e(a[l],c,r,o),a}(e,t,n,r)}function nO(e){return Array.isArray(e)?[]:{}}var nA="u"<typeof Reflect?Object.keys:Reflect.ownKeys;function nI(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nO(t[0]);return t.forEach(function(e){!function t(n,o){var a=new Set(o),i=n$(e,n),l=Array.isArray(i);if(l||"object"===(0,k.A)(i)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(i)){a.add(i);var c=n$(r,n);l?r=nk(r,n,[]):c&&"object"===(0,k.A)(c)||(r=nk(r,n,nO(i))),nA(i).forEach(function(e){t([].concat((0,eM.A)(n),[e]),a)})}}else r=nk(r,n,i)}([])}),r}let nN=function(e,t,n,r){var o=(0,D.A)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=(0,eK.A)(e,2),n=t[0],r=t[1];(null!=o&&o[n]||null!=o&&o[r])&&(null!=o[r]||(o[r]=null==o?void 0:o[n]))});var a=(0,D.A)((0,D.A)({},n),o);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a};var nj="u">typeof CSSINJS_STATISTIC,nM=!0;function nR(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!nj)return Object.assign.apply(Object,[{}].concat(t));nM=!1;var r={};return t.forEach(function(e){"object"===(0,k.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),nM=!0,r}var nP={};function nT(){}let nz=function(e){var t,n=e,r=nT;return nj&&"u">typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(nM){var r;null==(r=t)||r.add(n)}return e[n]}}),r=function(e,n){var r;nP[e]={global:Array.from(t),component:(0,D.A)((0,D.A)({},null==(r=nP[e])?void 0:r.component),n)}}),{token:n,keys:t,flush:r}},nB=function(e,t,n){if("function"==typeof n){var r;return n(nR(t,null!=(r=t[e])?r:{}))}return null!=n?n:{}};var nD=new(function(){function e(){(0,ew.A)(this,e),(0,eX.A)(this,"map",new Map),(0,eX.A)(this,"objectIDMap",new WeakMap),(0,eX.A)(this,"nextID",0),(0,eX.A)(this,"lastAccessBeat",new Map),(0,eX.A)(this,"accessBeat",0)}return(0,eC.A)(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,k.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,k.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());let nH=function(){return{}},nL={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},nF=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),nW=()=>({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"}}),n_=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),nV=(e,t)=>({outline:`${tg(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),nq=(e,t)=>({"&:focus-visible":nV(e,t)}),nK=e=>({[`.${e}`]:Object.assign(Object.assign({},nW()),{[`.${e} .${e}-icon`]:{display:"block"}})}),nX=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},nq(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),nG="5.29.3",nY={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"},nU=Object.assign(Object.assign({},nY),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1
+ (self.rspackChunk_kb_labs_qa_entry=self.rspackChunk_kb_labs_qa_entry||[]).push([[805],{7484(e,t,n){"use strict";let r,o,a,i,l,c,s;n.r(t),n.d(t,{Calendar:()=>b3,Tooltip:()=>ms,Upload:()=>Tu,unstableSetRender:()=>iH,List:()=>OT,Popover:()=>mv,Anchor:()=>aA,Splitter:()=>IH,Typography:()=>PF,version:()=>nG,Row:()=>IA,Switch:()=>Ne,Tag:()=>MQ,Skeleton:()=>ur,Descriptions:()=>Ek,AutoComplete:()=>pB,FloatButton:()=>S$,Pagination:()=>Oh,Result:()=>IO,Badge:()=>mL,Steps:()=>I3,Tabs:()=>yI,QRCode:()=>Ic,theme:()=>M2,Modal:()=>Ar,Table:()=>ML,Divider:()=>xW,Mentions:()=>O0,Col:()=>xD,ConfigProvider:()=>iO,TimePicker:()=>M9,Menu:()=>h$,Carousel:()=>$I,Flex:()=>Se,Radio:()=>Is,App:()=>du,Collapse:()=>lX,Button:()=>cu,Slider:()=>CS,Form:()=>SU,Card:()=>yB,Layout:()=>k5,notification:()=>Ap,Statistic:()=>IG,Drawer:()=>EW,Image:()=>kk,ColorPicker:()=>Cq,BackTop:()=>mC,Progress:()=>Aq,Alert:()=>as,Segmented:()=>x0,Select:()=>pj,Transfer:()=>RK,Empty:()=>fZ,Cascader:()=>xk,TreeSelect:()=>Pi,Spin:()=>OA,Grid:()=>SQ,Checkbox:()=>xM,DatePicker:()=>Eg,InputNumber:()=>wJ,Tour:()=>RO,Popconfirm:()=>Ay,Rate:()=>Iv,Watermark:()=>Th,Tree:()=>Mi,Dropdown:()=>E4,Breadcrumb:()=>hT,Affix:()=>r2,Avatar:()=>my,Input:()=>kQ,Space:()=>E0,Timeline:()=>Rl,message:()=>O9});var u,d,f,p,m,g,h,v,b,y,$,x=n(2913),w=n.n(x),C=n(9400),E=n.n(C);function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var k=n(8143),O=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),I=Symbol.for("react.fragment");function N(e){return e&&"object"===(0,k.A)(e)&&(e.$$typeof===O||e.$$typeof===A)&&e.type===I}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return w().Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(j(e)):N(e)&&e.props?n=n.concat(j(e.props.children,t)):n.push(e))}),n}var M={},R=[];function P(e,t){}function T(e,t){}function z(e,t,n){t||M[n]||(e(!1,n),M[n]=!0)}function B(e,t){z(P,e,t)}B.preMessage=function(e){R.push(e)},B.resetWarned=function(){M={}},B.noteOnce=function(e,t){z(T,e,t)};var D=n(5314),H=n(6399),L=n.n(H);function F(e){return e instanceof HTMLElement||e instanceof SVGElement}function W(e){return e&&"object"===(0,k.A)(e)&&F(e.nativeElement)?e.nativeElement:F(e)?e:null}function _(e){var t,n=W(e);return n||(e instanceof w().Component?null==(t=L().findDOMNode)?void 0:t.call(L(),e):null)}var V=n(3930);function q(e,t,n){var r=x.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var K=Number(x.version.split(".")[0]),X=function(e,t){"function"==typeof e?e(t):"object"===(0,k.A)(e)&&e&&"current"in e&&(e.current=t)},G=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){X(t,e)})}},Y=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return q(function(){return G.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},U=function(e){if(!e)return!1;if(Q(e)&&K>=19)return!0;var t,n,r=(0,V.isMemo)(e)?e.type.type:e.type;return("function"!=typeof r||!!(null!=(t=r.prototype)&&t.render)||r.$$typeof===V.ForwardRef)&&("function"!=typeof e||!!(null!=(n=e.prototype)&&n.render)||e.$$typeof===V.ForwardRef)};function Q(e){return(0,x.isValidElement)(e)&&!N(e)}var Z=function(e){return e&&Q(e)?e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref:null},J=x.createContext(null),ee=function(){if("u">typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}(),et="u">typeof window&&"u">typeof document&&window.document===document,en=void 0!==n.g&&n.g.Math===Math?n.g:"u">typeof self&&self.Math===Math?self:"u">typeof window&&window.Math===Math?window:Function("return this")(),er="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(en):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},eo=["top","right","bottom","left","width","height","size","weight"],ea="u">typeof MutationObserver,ei=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&i()}function a(){er(o)}function i(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(a,20);r=e}return i}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){et&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ea?(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(){et&&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(e){var t=e.propertyName,n=void 0===t?"":t;eo.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),el=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ec=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||en},es=ep(0,0,0,0);function eu(e){return parseFloat(e)||0}function ed(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+eu(e["border-"+n+"-width"])},0)}var ef="u">typeof SVGGraphicsElement?function(e){return e instanceof ec(e).SVGGraphicsElement}:function(e){return e instanceof ec(e).SVGElement&&"function"==typeof e.getBBox};function ep(e,t,n,r){return{x:e,y:t,width:n,height:r}}var em=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ep(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!et)return es;if(ef(e)){var t;return ep(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t,n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return es;var o=ec(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=eu(a)}return t}(o),i=a.left+a.right,l=a.top+a.bottom,c=eu(o.width),s=eu(o.height);if("border-box"===o.boxSizing&&(Math.round(c+i)!==n&&(c-=ed(o,"left","right")+i),Math.round(s+l)!==r&&(s-=ed(o,"top","bottom")+l)),(t=e)!==ec(t).document.documentElement){var u=Math.round(c+i)-n,d=Math.round(s+l)-r;1!==Math.abs(u)&&(c-=u),1!==Math.abs(d)&&(s-=d)}return ep(a.left,a.top,c,s)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),eg=function(e,t){var n,r,o,a,i,l=(n=t.x,r=t.y,o=t.width,a=t.height,el(i=Object.create(("u">typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:r,width:o,height:a,top:r,right:n+o,bottom:a+r,left:n}),i);el(this,{target:e,contentRect:l})},eh=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ee,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof ec(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new em(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof ec(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new eg(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ev="u">typeof WeakMap?new WeakMap:new ee,eb=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new eh(t,ei.getInstance(),this);ev.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){eb.prototype[e]=function(){var t;return(t=ev.get(this))[e].apply(t,arguments)}});var ey=void 0!==en.ResizeObserver?en.ResizeObserver:eb,e$=new Map,ex=new ey(function(e){e.forEach(function(e){var t,n=e.target;null==(t=e$.get(n))||t.forEach(function(e){return e(n)})})}),ew=n(1194),eC=n(1580),eE=n(3834),eS=n(3593),ek=n(4151),eO=n(611);function eA(e){var t=(0,ek.A)();return function(){var n,r=(0,eS.A)(e);return n=t?Reflect.construct(r,arguments,(0,eS.A)(this).constructor):r.apply(this,arguments),(0,eO.A)(this,n)}}var eI=function(e){(0,eE.A)(n,e);var t=eA(n);function n(){return(0,ew.A)(this,n),t.apply(this,arguments)}return(0,eC.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(x.Component),eN=x.forwardRef(function(e,t){var n=e.children,r=e.disabled,o=x.useRef(null),a=x.useRef(null),i=x.useContext(J),l="function"==typeof n,c=l?n(o):n,s=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&x.isValidElement(c)&&U(c),d=Y(u?Z(c):null,o),f=function(){var e;return _(o.current)||(o.current&&"object"===(0,k.A)(o.current)?_(null==(e=o.current)?void 0:e.nativeElement):null)||_(a.current)};x.useImperativeHandle(t,function(){return f()});var p=x.useRef(e);p.current=e;var m=x.useCallback(function(e){var t=p.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,l=o.height,c=e.offsetWidth,u=e.offsetHeight,d=Math.floor(a),f=Math.floor(l);if(s.current.width!==d||s.current.height!==f||s.current.offsetWidth!==c||s.current.offsetHeight!==u){var m={width:d,height:f,offsetWidth:c,offsetHeight:u};s.current=m;var g=c===Math.round(a)?a:c,h=u===Math.round(l)?l:u,v=(0,D.A)((0,D.A)({},m),{},{offsetWidth:g,offsetHeight:h});null==i||i(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return x.useEffect(function(){var e=f();return e&&!r&&(e$.has(e)||(e$.set(e,new Set),ex.observe(e)),e$.get(e).add(m)),function(){e$.has(e)&&(e$.get(e).delete(m),!e$.get(e).size&&(ex.unobserve(e),e$.delete(e)))}},[o.current,r]),x.createElement(eI,{ref:a},u?x.cloneElement(c,{ref:d}):c)}),ej=x.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:j(n)).map(function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return x.createElement(eN,S({},e,{key:o,ref:0===r?t:void 0}),n)})});ej.Collection=function(e){var t=e.children,n=e.onBatchResize,r=x.useRef(0),o=x.useRef([]),a=x.useContext(J),i=x.useCallback(function(e,t,i){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then(function(){l===r.current&&(null==n||n(o.current),o.current=[])}),null==a||a(e,t,i)},[n,a]);return x.createElement(J.Provider,{value:i},t)};var eM=n(9008),eR=function(e){return+setTimeout(e,16)},eP=function(e){return clearTimeout(e)};"u">typeof window&&"requestAnimationFrame"in window&&(eR=function(e){return window.requestAnimationFrame(e)},eP=function(e){return window.cancelAnimationFrame(e)});var eT=0,ez=new Map,eB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=eT+=1;return!function t(r){if(0===r)ez.delete(n),e();else{var o=eR(function(){t(r-1)});ez.set(n,o)}}(t),n};eB.cancel=function(e){var t=ez.get(e);return ez.delete(e),eP(t)};let eD=function(e){let t=null,n=(...n)=>{null===t&&(t=eB(()=>{t=null,e.apply(void 0,(0,eM.A)(n))}))};return n.cancel=()=>{eB.cancel(t),t=null},n},eH="ant",eL="anticon",eF=["outlined","borderless","filled","underlined"],eW=x.createContext({getPrefixCls:(e,t)=>t||(e?`${eH}-${e}`:eH),iconPrefixCls:eL}),{Consumer:e_}=eW,eV={};function eq(e){let t=x.useContext(eW),{getPrefixCls:n,direction:r,getPopupContainer:o}=t;return Object.assign(Object.assign({classNames:eV,styles:eV},t[e]),{getPrefixCls:n,direction:r,getPopupContainer:o})}var eK=n(5378),eX=n(3268);let eG=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)};function eY(){return!!("u">typeof window&&window.document&&window.document.createElement)}function eU(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 eQ="data-rc-order",eZ="data-rc-priority",eJ=new Map;function e0(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function e1(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function e2(e){return Array.from((eJ.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function e4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!eY())return null;var n=t.csp,r=t.prepend,o=t.priority,a=void 0===o?0:o,i="queue"===r?"prependQueue":r?"prepend":"append",l="prependQueue"===i,c=document.createElement("style");c.setAttribute(eQ,i),l&&a&&c.setAttribute(eZ,"".concat(a)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=e1(t),u=s.firstChild;if(r){if(l){var d=(t.styles||e2(s)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(eQ))&&a>=Number(e.getAttribute(eZ)||0)});if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function e3(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e1(t);return(t.styles||e2(n)).find(function(n){return n.getAttribute(e0(t))===e})}function e6(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e3(e,t);n&&e1(t).removeChild(n)}function e5(e,t){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e1(a),l=e2(i),c=(0,D.A)((0,D.A)({},a),{},{styles:l}),s=eJ.get(i);if(!s||!eU(document,s)){var u=e4("",c),d=u.parentNode;eJ.set(i,d),i.removeChild(u)}var f=e3(t,c);if(f)return null!=(n=c.csp)&&n.nonce&&f.nonce!==(null==(r=c.csp)?void 0:r.nonce)&&(f.nonce=null==(o=c.csp)?void 0:o.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;var p=e4(e,c);return p.setAttribute(e0(c),t),p}let e8=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.has(t);if(B(!i,"Warning: There may be circular references"),i)return!1;if(t===o)return!0;if(n&&a>1)return!1;r.add(t);var l=a+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===(0,k.A)(t)&&"object"===(0,k.A)(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every(function(n){return e(t[n],o[n],l)})}return!1}(e,t)};function e7(e){return e.join("%")}var e9=function(){function e(t){(0,ew.A)(this,e),(0,eX.A)(this,"instanceId",void 0),(0,eX.A)(this,"cache",new Map),(0,eX.A)(this,"extracted",new Set),this.instanceId=t}return(0,eC.A)(e,[{key:"get",value:function(e){return this.opGet(e7(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(e7(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),te="data-token-hash",tt="data-css-hash",tn="__cssinjs_instance__",tr=x.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("u">typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(tt,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[tn]=t[tn]||e,t[tn]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(tt,"]"))).forEach(function(t){var n,o=t.getAttribute(tt);r[o]?t[tn]===e&&(null==(n=t.parentNode)||n.removeChild(t)):r[o]=!0})}return new e9(e)}(),defaultCache:!0}),to=function(){function e(){(0,ew.A)(this,e),(0,eX.A)(this,"cache",void 0),(0,eX.A)(this,"keys",void 0),(0,eX.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,eC.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null==(t=o)||null==(t=t.map)?void 0:t.get(e)}else o=void 0}),null!=(t=o)&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null==(n=o)?void 0:n.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,eK.A)(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,eK.A)(o,1)[0];this.delete(a)}this.keys.push(t)}var i=this.cache;t.forEach(function(e,o){if(o===t.length-1)i.set(e,{value:[n,r.cacheCallTimes++]});else{var a=i.get(e);a?a.map||(a.map=new Map):i.set(e,{map:new Map}),i=i.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null==(n=r.value)?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(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}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,eX.A)(to,"MAX_CACHE_SIZE",20),(0,eX.A)(to,"MAX_CACHE_OFFSET",5);var ta=0,ti=function(){function e(t){(0,ew.A)(this,e),(0,eX.A)(this,"derivatives",void 0),(0,eX.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ta,0===t.length&&t.length,ta+=1}return(0,eC.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),tl=new to;function tc(e){var t=Array.isArray(e)?e:[e];return tl.has(t)||tl.set(t,new ti(t)),tl.get(t)}var ts=new WeakMap,tu={},td=new WeakMap;function tf(e){var t=td.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof ti?t+=r.id:r&&"object"===(0,k.A)(r)?t+=tf(r):t+=r}),t=eG(t),td.set(e,t)),t}function tp(e,t){return eG("".concat(t,"_").concat(tf(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var tm=eY();function tg(e){return"number"==typeof e?"".concat(e,"px"):e}function th(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return e;var a=(0,D.A)((0,D.A)({},r),{},(0,eX.A)((0,eX.A)({},te,t),tt,n)),i=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var tv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},tb=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,eK.A)(e,2),r=t[0],i=t[1];if(null!=n&&null!=(l=n.preserve)&&l[r])a[r]=i;else if(("string"==typeof i||"number"==typeof i)&&!(null!=n&&null!=(c=n.ignore)&&c[r])){var l,c,s,u=tv(r,null==n?void 0:n.prefix);o[u]="number"!=typeof i||null!=n&&null!=(s=n.unitless)&&s[r]?String(i):"".concat(i,"px"),a[r]="var(".concat(u,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,eK.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},ty=eY()?x.useLayoutEffect:x.useEffect,t$=function(e,t){var n=x.useRef(!0);ty(function(){return e(n.current)},t),ty(function(){return n.current=!1,function(){n.current=!0}},[])},tx=function(e,t){t$(function(t){if(!t)return e()},t)},tw=(0,D.A)({},x).useInsertionEffect,tC=tw?function(e,t,n){return tw(function(){return e(),t()},n)}:function(e,t,n){x.useMemo(e,n),t$(function(){return t(!0)},n)},tE=void 0!==(0,D.A)({},x).useInsertionEffect?function(e){var t=[],n=!1;return x.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function tS(e,t,n,r,o){var a=x.useContext(tr).cache,i=e7([e].concat((0,eM.A)(t))),l=tE([i]),c=function(e){a.opUpdate(i,function(t){var r=(0,eK.A)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};x.useMemo(function(){c()},[i]);var s=a.opGet(i)[1];return tC(function(){null==o||o(s)},function(e){return c(function(t){var n=(0,eK.A)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(s)),[r+1,a]}),function(){a.opUpdate(i,function(t){var n=(0,eK.A)(t||[],2),o=n[0],c=void 0===o?0:o,s=n[1];return 0==c-1?(l(function(){(e||!a.opGet(i))&&(null==r||r(s,!1))}),null):[c-1,s]})}},[i]),s}var tk={},tO=new Map,tA=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,D.A)((0,D.A)({},o),t);return r&&(a=r(a)),a},tI="token";let tN={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};var tj="comm",tM="rule",tR="decl",tP=Math.abs,tT=String.fromCharCode;function tz(e,t,n){return e.replace(t,n)}function tB(e,t){return 0|e.charCodeAt(t)}function tD(e,t,n){return e.slice(t,n)}function tH(e){return e.length}function tL(e,t){return t.push(e),e}function tF(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function tW(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case tR:return e.return=e.return||e.value;case tj:return"";case"@keyframes":return e.return=e.value+"{"+tF(e.children,r)+"}";case tM:if(!tH(e.value=e.props.join(",")))return""}return tH(n=tF(e.children,r))?e.return=e.value+"{"+n+"}":""}var t_=1,tV=1,tq=0,tK=0,tX=0,tG="";function tY(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:t_,column:tV,length:i,return:"",siblings:l}}function tU(){return tX=tK<tq?tB(tG,tK++):0,tV++,10===tX&&(tV=1,t_++),tX}function tQ(){return tB(tG,tK)}function tZ(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 tJ(e){var t,n;return(t=tK-1,n=function e(t){for(;tU();)switch(tX){case t:return tK;case 34:case 39:34!==t&&39!==t&&e(tX);break;case 40:41===t&&e(t);break;case 92:tU()}return tK}(91===e?e+2:40===e?e+1:e),tD(tG,t,n)).trim()}function t0(e,t,n,r,o,a,i,l,c,s,u,d){for(var f=o-1,p=0===o?a:[""],m=p.length,g=0,h=0,v=0;g<r;++g)for(var b=0,y=tD(e,f+1,f=tP(h=i[g])),$=e;b<m;++b)($=(h>0?p[b]+" "+y:tz(y,/&\f/g,p[b])).trim())&&(c[v++]=$);return tY(e,t,n,0===o?tM:l,c,s,u,d)}function t1(e,t,n,r,o){return tY(e,t,n,tR,tD(e,0,r),tD(e,r+1,-1),r,o)}var t2="data-ant-cssinjs-cache-path",t4="_FILE_STYLE__",t3=!0,t6="_multi_value_";function t5(e){var t,n,r;return tF((r=function e(t,n,r,o,a,i,l,c,s){for(var u,d,f,p,m,g,h=0,v=0,b=l,y=0,$=0,x=0,w=1,C=1,E=1,S=0,k="",O=a,A=i,I=o,N=k;C;)switch(x=S,S=tU()){case 40:if(108!=x&&58==tB(N,b-1)){-1!=(m=N+=tz(tJ(S),"&","&\f"),g=tP(h?c[h-1]:0),m.indexOf("&\f",g))&&(E=-1);break}case 34:case 39:case 91:N+=tJ(S);break;case 9:case 10:case 13:case 32:N+=function(e){for(;tX=tQ();)if(tX<33)tU();else break;return tZ(e)>2||tZ(tX)>3?"":" "}(x);break;case 92:N+=function(e,t){for(var n;--t&&tU()&&!(tX<48)&&!(tX>102)&&(!(tX>57)||!(tX<65))&&(!(tX>70)||!(tX<97)););return n=tK+(t<6&&32==tQ()&&32==tU()),tD(tG,e,n)}(tK-1,7);continue;case 47:switch(tQ()){case 42:case 47:tL((u=function(e,t){for(;tU();)if(e+tX===57)break;else if(e+tX===84&&47===tQ())break;return"/*"+tD(tG,t,tK-1)+"*"+tT(47===e?e:tU())}(tU(),tK),d=n,f=r,p=s,tY(u,d,f,tj,tT(tX),tD(u,2,-2),0,p)),s),(5==tZ(x||1)||5==tZ(tQ()||1))&&tH(N)&&" "!==tD(N,-1,void 0)&&(N+=" ");break;default:N+="/"}break;case 123*w:c[h++]=tH(N)*E;case 125*w:case 59:case 0:switch(S){case 0:case 125:C=0;case 59+v:-1==E&&(N=tz(N,/\f/g,"")),$>0&&(tH(N)-b||0===w&&47===x)&&tL($>32?t1(N+";",o,r,b-1,s):t1(tz(N," ","")+";",o,r,b-2,s),s);break;case 59:N+=";";default:if(tL(I=t0(N,n,r,h,v,a,c,k,O=[],A=[],b,i),i),123===S)if(0===v)e(N,n,I,I,O,i,b,c,A);else{switch(y){case 99:if(110===tB(N,3))break;case 108:if(97===tB(N,2))break;default:v=0;case 100:case 109:case 115:}v?e(t,I,I,o&&tL(t0(t,I,I,0,0,a,c,k,a,O=[],b,A),A),a,A,b,c,o?O:A):e(N,I,I,I,[""],A,0,c,A)}}h=v=$=0,w=E=1,k=N="",b=l;break;case 58:b=1+tH(N),$=x;default:if(w<1){if(123==S)--w;else if(125==S&&0==w++&&125==(tX=tK>0?tB(tG,--tK):0,tV--,10===tX&&(tV=1,t_--),tX))continue}switch(N+=tT(S),S*w){case 38:E=v>0?1:(N+="\f",-1);break;case 44:c[h++]=(tH(N)-1)*E,E=1;break;case 64:45===tQ()&&(N+=tJ(tU())),y=tQ(),v=b=tH(k=N+=function(e){for(;!tZ(tQ());)tU();return tD(tG,e,tK)}(tK)),S++;break;case 45:45===x&&2==tH(N)&&(w=0)}}return i}("",null,null,null,[""],(n=t=e,t_=tV=1,tq=tH(tG=n),tK=0,t=[]),0,[0],t),tG="",r),tW).replace(/\{%%%\:[^;];}/g,";")}function t8(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null==(t=r.match(/^\w+/))?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,eM.A)(n.slice(1))).join(" ")}).join(",")}var t7=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var r=t.getName(l);if(!p[r]){var o=e(t.style,n,{root:!1,parentSelectors:i}),a=(0,eK.A)(o,1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(a)}}return(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var c=d.reduce(function(e,t){var n;return(null==t||null==(n=t.visit)?void 0:n.call(t,e))||e},r);Object.keys(c).forEach(function(t){var r=c[t];if("object"!==(0,k.A)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,k.A)(r)&&r&&("_skip_check_"in r||t6 in r)){function u(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;tN[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d,g=null!=(d=null==r?void 0:r.value)?d:r;"object"===(0,k.A)(r)&&null!=r&&r[t6]&&Array.isArray(g)?g.forEach(function(e){u(t,e)}):u(t,g)}else{var h=!1,v=t.trim(),b=!1;(o||a)&&l?v.startsWith("@")?h=!0:v="&"===v?t8("",l,s):t8(t,l,s):o&&!l&&("&"===v||""===v)&&(v="",b=!0);var y=e(r,n,{root:b,injectHash:h,parentSelectors:[].concat((0,eM.A)(i),[v])}),$=(0,eK.A)(y,2),x=$[0],w=$[1];p=(0,D.A)((0,D.A)({},p),w),f+="".concat(v).concat(x)}})}}),o?c&&(f&&(f="@layer ".concat(c.name," {").concat(f,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(c.name,";")}).join("\n"))):f="{".concat(f,"}"),[f,p]};function t9(e,t){return eG("".concat(e.join("%")).concat(t))}function ne(){return null}var nt="style";function nn(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,s=void 0===c?0:c,u=x.useContext(tr),d=u.autoClear,f=(u.mock,u.defaultCache),p=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,$=u.layer,w=n._tokenKey,C=[w];$&&C.push("layer"),C.push.apply(C,(0,eM.A)(r));var E=tS(nt,C,function(){var e=C.join("|");if(function(e){if(!h&&(h={},eY())){var t,n=document.createElement("div");n.className=t2,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);var r=getComputedStyle(n).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,eK.A)(t,2),r=n[0],o=n[1];h[r]=o});var o=document.querySelector("style[".concat(t2,"]"));o&&(t3=!1,null==(t=o.parentNode)||t.removeChild(o)),document.body.removeChild(n)}return!!h[e]}(e)){var n=function(e){var t=h[e],n=null;if(t&&eY())if(t3)n=t4;else{var r=document.querySelector("style[".concat(tt,'="').concat(h[e],'"]'));r?n=r.innerHTML:delete h[e]}return[n,t]}(e),i=(0,eK.A)(n,2),c=i[0],u=i[1];if(c)return[c,w,u,{},l,s]}var d=t7(t(),{hashId:o,hashPriority:p,layer:$?a:void 0,path:r.join("-"),transformers:v,linters:b}),f=(0,eK.A)(d,2),m=f[0],g=f[1],y=t5(m),x=t9(C,y);return[y,w,x,g,l,s]},function(e,t){var n=(0,eK.A)(e,3)[2];(t||d)&&tm&&e6(n,{mark:tt,attachTo:m})},function(e){var t=(0,eK.A)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(tm&&n!==t4){var a={mark:tt,prepend:!$&&"queue",attachTo:m,priority:s},l="function"==typeof i?i():i;l&&(a.csp={nonce:l});var c=[],u=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?c.push(e):u.push(e)}),c.forEach(function(e){e5(t5(o[e]),"_layer-".concat(e),(0,D.A)((0,D.A)({},a),{},{prepend:!0}))});var d=e5(n,r,a);d[tn]=y.instanceId,d.setAttribute(te,w),u.forEach(function(e){e5(t5(o[e]),"_effect-".concat(e),a)})}}),k=(0,eK.A)(E,3),O=k[0],A=k[1],I=k[2];return function(e){var t;return t=g&&!tm&&f?x.createElement("style",S({},(0,eX.A)((0,eX.A)({},te,A),tt,I),{dangerouslySetInnerHTML:{__html:O}})):x.createElement(ne,null),x.createElement(x.Fragment,null,t,e)}}var nr="cssVar";let no=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,a=e.ignore,i=e.token,l=e.scope,c=void 0===l?"":l,s=(0,x.useContext)(tr),u=s.cache.instanceId,d=s.container,f=i._tokenKey,p=[].concat((0,eM.A)(e.path),[n,c,f]);return tS(nr,p,function(){var e=tb(t(),n,{prefix:r,unitless:o,ignore:a,scope:c}),i=(0,eK.A)(e,2),l=i[0],s=i[1],u=t9(p,s);return[l,s,u,n]},function(e){var t=(0,eK.A)(e,3)[2];tm&&e6(t,{mark:tt,attachTo:d})},function(e){var t=(0,eK.A)(e,3),r=t[1],o=t[2];if(r){var a=e5(r,o,{mark:tt,prepend:"queue",attachTo:d,priority:-999});a[tn]=u,a.setAttribute(te,n)}})};(0,eX.A)((0,eX.A)((0,eX.A)({},nt,function(e,t,n){var r=(0,eK.A)(e,6),o=r[0],a=r[1],i=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=th(o,a,i,f,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=th(t5(l[e]),a,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}}),[s,i,d]}),tI,function(e,t,n){var r=(0,eK.A)(e,5),o=r[2],a=r[3],i=r[4],l=(n||{}).plain;if(!a)return null;var c=o._tokenKey,s=th(a,i,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,c,s]}),nr,function(e,t,n){var r=(0,eK.A)(e,4),o=r[1],a=r[2],i=r[3],l=(n||{}).plain;if(!o)return null;var c=th(o,i,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l);return[-999,a,c]});var na=function(){function e(t,n){(0,ew.A)(this,e),(0,eX.A)(this,"name",void 0),(0,eX.A)(this,"style",void 0),(0,eX.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,eC.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function ni(e){return e.notSplit=!0,e}ni(["borderTop","borderBottom"]),ni(["borderTop"]),ni(["borderBottom"]),ni(["borderLeft","borderRight"]),ni(["borderLeft"]),ni(["borderRight"]);var nl=n(8172),nc=(0,eC.A)(function e(){(0,ew.A)(this,e)}),ns="CALC_UNIT",nu=RegExp(ns,"g");function nd(e){return"number"==typeof e?"".concat(e).concat(ns):e}var nf=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e,r){(0,ew.A)(this,n),o=t.call(this),(0,eX.A)((0,nl.A)(o),"result",""),(0,eX.A)((0,nl.A)(o),"unitlessCssVar",void 0),(0,eX.A)((0,nl.A)(o),"lowPriority",void 0);var o,a=(0,k.A)(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===a?o.result=nd(e):"string"===a&&(o.result=e),o}return(0,eC.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(nd(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(nd(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return("boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(nu,r?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),n}(nc),np=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e){var r;return(0,ew.A)(this,n),r=t.call(this),(0,eX.A)((0,nl.A)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,eC.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(nc);let nm=function(e,t){var n="css"===e?nf:np;return function(e){return new n(e,t)}},ng=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function nh(e){var t=x.useRef();return t.current=e,x.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(r))},[])}function nv(e){var t=x.useRef(!1),n=x.useState(e),r=(0,eK.A)(n,2),o=r[0],a=r[1];return x.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[o,function(e,n){n&&t.current||a(e)}]}function nb(e){return void 0!==e}function ny(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=nv(function(){return nb(o)?o:nb(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),c=(0,eK.A)(l,2),s=c[0],u=c[1],d=void 0!==o?o:s,f=i?i(d):d,p=nh(a),m=nv([d]),g=(0,eK.A)(m,2),h=g[0],v=g[1];return tx(function(){var e=h[0];s!==e&&p(s,e)},[h]),tx(function(){nb(o)||u(o)},[o]),[f,nh(function(e,t){u(e,t),v([d],t)})]}function n$(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}var nx=n(4930),nw=n(380),nC=n(3891),nE=n(1059);function nS(e){return(0,nx.A)(e)||(0,nw.A)(e)||(0,nC.A)(e)||(0,nE.A)()}function nk(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!n$(e,t.slice(0,-1))?e:function e(t,n,r,o){if(!n.length)return r;var a,i=nS(n),l=i[0],c=i.slice(1);return a=t||"number"!=typeof l?Array.isArray(t)?(0,eM.A)(t):(0,D.A)({},t):[],o&&void 0===r&&1===c.length?delete a[l][c[0]]:a[l]=e(a[l],c,r,o),a}(e,t,n,r)}function nO(e){return Array.isArray(e)?[]:{}}var nA="u"<typeof Reflect?Object.keys:Reflect.ownKeys;function nI(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nO(t[0]);return t.forEach(function(e){!function t(n,o){var a=new Set(o),i=n$(e,n),l=Array.isArray(i);if(l||"object"===(0,k.A)(i)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(i)){a.add(i);var c=n$(r,n);l?r=nk(r,n,[]):c&&"object"===(0,k.A)(c)||(r=nk(r,n,nO(i))),nA(i).forEach(function(e){t([].concat((0,eM.A)(n),[e]),a)})}}else r=nk(r,n,i)}([])}),r}let nN=function(e,t,n,r){var o=(0,D.A)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=(0,eK.A)(e,2),n=t[0],r=t[1];(null!=o&&o[n]||null!=o&&o[r])&&(null!=o[r]||(o[r]=null==o?void 0:o[n]))});var a=(0,D.A)((0,D.A)({},n),o);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a};var nj="u">typeof CSSINJS_STATISTIC,nM=!0;function nR(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!nj)return Object.assign.apply(Object,[{}].concat(t));nM=!1;var r={};return t.forEach(function(e){"object"===(0,k.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),nM=!0,r}var nP={};function nT(){}let nz=function(e){var t,n=e,r=nT;return nj&&"u">typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(nM){var r;null==(r=t)||r.add(n)}return e[n]}}),r=function(e,n){var r;nP[e]={global:Array.from(t),component:(0,D.A)((0,D.A)({},null==(r=nP[e])?void 0:r.component),n)}}),{token:n,keys:t,flush:r}},nB=function(e,t,n){if("function"==typeof n){var r;return n(nR(t,null!=(r=t[e])?r:{}))}return null!=n?n:{}};var nD=new(function(){function e(){(0,ew.A)(this,e),(0,eX.A)(this,"map",new Map),(0,eX.A)(this,"objectIDMap",new WeakMap),(0,eX.A)(this,"nextID",0),(0,eX.A)(this,"lastAccessBeat",new Map),(0,eX.A)(this,"accessBeat",0)}return(0,eC.A)(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,k.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,k.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());let nH=function(){return{}},nL={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},nF=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),nW=()=>({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"}}),n_=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),nV=(e,t)=>({outline:`${tg(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),nq=(e,t)=>({"&:focus-visible":nV(e,t)}),nK=e=>({[`.${e}`]:Object.assign(Object.assign({},nW()),{[`.${e} .${e}-icon`]:{display:"block"}})}),nX=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},nq(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),nG="5.29.3",nY={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"},nU=Object.assign(Object.assign({},nY),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
2
2
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
3
3
  '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}),nQ={token:nU,override:{override:nU},hashed:!0},nZ=w().createContext(nQ),nJ=Math.round;function n0(e,t){let n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}let n1=(e,t,n)=>0===n?e:e/100;function n2(e,t){let n=t||255;return e>n?n:e<0?0:e}class n4{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,eX.A)(this,"isValid",!0),(0,eX.A)(this,"r",0),(0,eX.A)(this,"g",0),(0,eX.A)(this,"b",0),(0,eX.A)(this,"a",1),(0,eX.A)(this,"_h",void 0),(0,eX.A)(this,"_s",void 0),(0,eX.A)(this,"_l",void 0),(0,eX.A)(this,"_v",void 0),(0,eX.A)(this,"_max",void 0),(0,eX.A)(this,"_min",void 0),(0,eX.A)(this,"_brightness",void 0),e)if("string"==typeof e){const t=e.trim();function n(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):n("rgb")?this.fromRgbString(t):n("hsl")?this.fromHslString(t):(n("hsv")||n("hsb"))&&this.fromHsvString(t)}else if(e instanceof n4)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=n2(e.r),this.g=n2(e.g),this.b=n2(e.b),this.a="number"==typeof e.a?n2(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=nJ(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g<this.b):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){let e=this.getMax()-this.getMin();0===e?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],a={r:nJ(o("r")),g:nJ(o("g")),b:nJ(o("b")),a:nJ(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>nJ((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;let r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=nJ(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=nJ(100*this.getSaturation()),n=nJ(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=n2(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){let e=nJ(255*n);this.r=e,this.g=e,this.b=e}let o=0,a=0,i=0,l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=s):l>=1&&l<2?(o=s,a=c):l>=2&&l<3?(a=c,i=s):l>=3&&l<4?(a=s,i=c):l>=4&&l<5?(o=s,i=c):l>=5&&l<6&&(o=c,i=s);let u=n-c/2;this.r=nJ((o+u)*255),this.g=nJ((a+u)*255),this.b=nJ((i+u)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;let o=nJ(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;let a=e/60,i=Math.floor(a),l=a-i,c=nJ(n*(1-t)*255),s=nJ(n*(1-t*l)*255),u=nJ(n*(1-t*(1-l))*255);switch(i){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){let t=n0(e,n1);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=n0(e,n1);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=n0(e,(e,t)=>t.includes("%")?nJ(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var n3=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function n6(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function n5(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100)}function n8(e,t,n){return Math.round(100*Math.max(0,Math.min(1,n?e.v+.05*t:e.v-.15*t)))/100}function n7(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new n4(e),o=r.toHsv(),a=5;a>0;a-=1){var i=new n4({h:n6(o,a,!0),s:n5(o,a,!0),v:n8(o,a,!0)});n.push(i)}n.push(r);for(var l=1;l<=4;l+=1){var c=new n4({h:n6(o,l),s:n5(o,l),v:n8(o,l)});n.push(c)}return"dark"===t.theme?n3.map(function(e){var r=e.index,o=e.amount;return new n4(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var n9={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"},re=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];re.primary=re[5];var rt=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];rt.primary=rt[5];var rn=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];rn.primary=rn[5];var rr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];rr.primary=rr[5];var ro=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ro.primary=ro[5];var ra=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ra.primary=ra[5];var ri=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ri.primary=ri[5];var rl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];rl.primary=rl[5];var rc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];rc.primary=rc[5];var rs=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];rs.primary=rs[5];var ru=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ru.primary=ru[5];var rd=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];rd.primary=rd[5];var rf=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];rf.primary=rf[5];var rp={red:re,volcano:rt,orange:rn,gold:rr,yellow:ro,lime:ra,green:ri,cyan:rl,blue:rc,geekblue:rs,purple:ru,magenta:rd,grey:rf},rm=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];rm.primary=rm[5];var rg=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];rg.primary=rg[5];var rh=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];rh.primary=rh[5];var rv=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];rv.primary=rv[5];var rb=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];rb.primary=rb[5];var ry=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ry.primary=ry[5];var r$=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];r$.primary=r$[5];var rx=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];rx.primary=rx[5];var rw=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];rw.primary=rw[5];var rC=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];rC.primary=rC[5];var rE=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];rE.primary=rE[5];var rS=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];rS.primary=rS[5];var rk=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];function rO(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:s}=e,u=t(l),d=t(r),f=t(o),p=t(a),m=t(i),g=n(c,s),h=t(e.colorLink||e.colorInfo),v=new n4(p[1]).mix(new n4(p[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:v,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new n4("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}rk.primary=rk[5];let rA=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},rI=e=>{let t,n=((t=Array.from({length:10}).map((t,n)=>{let r=e*Math.pow(Math.E,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)}))[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))),r=n.map(e=>e.size),o=n.map(e=>e.lineHeight),a=r[1],i=r[0],l=r[2],c=o[1],s=o[0],u=o[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:l,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(c*a),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(s*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},rN=(e,t)=>new n4(e).setA(t).toRgbString(),rj=(e,t)=>new n4(e).darken(t).toHexString(),rM=e=>{let t=n7(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]}},rR=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:rN(r,.88),colorTextSecondary:rN(r,.65),colorTextTertiary:rN(r,.45),colorTextQuaternary:rN(r,.25),colorFill:rN(r,.15),colorFillSecondary:rN(r,.06),colorFillTertiary:rN(r,.04),colorFillQuaternary:rN(r,.02),colorBgSolid:rN(r,1),colorBgSolidHover:rN(r,.75),colorBgSolidActive:rN(r,.95),colorBgLayout:rj(n,4),colorBgContainer:rj(n,0),colorBgElevated:rj(n,0),colorBgSpotlight:rN(r,.85),colorBgBlur:"transparent",colorBorder:rj(n,15),colorBorderSecondary:rj(n,6)}};function rP(e){n9.pink=n9.magenta,rp.pink=rp.magenta;let t=Object.keys(nY).map(t=>{let n=e[t]===n9[t]?rp[t]:n7(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),rO(e,{generateColorPalettes:rM,generateNeutralColorPalettes:rR})),rI(e.fontSize)),function(e){let{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)}}(e)),rA(e)),function(e){let t,n,r,o,{motionUnit:a,motionBase:i,borderRadius:l,lineWidth:c}=e;return Object.assign({motionDurationFast:`${(i+a).toFixed(1)}s`,motionDurationMid:`${(i+2*a).toFixed(1)}s`,motionDurationSlow:`${(i+3*a).toFixed(1)}s`,lineWidthBold:c+1},(t=l,n=l,r=l,o=l,l<6&&l>=5?t=l+1:l<16&&l>=6?t=l+2:l>=16&&(t=16),l<7&&l>=5?n=4:l<8&&l>=7?n=5:l<14&&l>=8?n=6:l<16&&l>=14?n=7:l>=16&&(n=8),l<6&&l>=2?r=1:l>=6&&(r=2),l>4&&l<8?o=4:l>=8&&(o=6),{borderRadius:l,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}))}(e))}let rT=tc(rP);function rz(e){return e>=0&&e<=255}let rB=function(e,t){let{r:n,g:r,b:o,a:a}=new n4(e).toRgb();if(a<1)return e;let{r:i,g:l,b:c}=new n4(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-i*(1-e))/e),a=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(rz(t)&&rz(a)&&rz(s))return new n4({r:t,g:a,b:s,a:Math.round(100*e)/100}).toRgbString()}return new n4({r:n,g:r,b:o,a:1}).toRgbString()};var rD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function rH(e){let{override:t}=e,n=rD(e,["override"]),r=Object.assign({},t);Object.keys(nU).forEach(e=>{delete r[e]});let o=Object.assign(Object.assign({},n),r);return!1===o.motion&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:rB(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:rB(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:rB(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:rB(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
4
4
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
@@ -41,7 +41,7 @@
41
41
  `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`
42
42
  ${t}-move-up-appear${t}-move-up-appear-active,
43
43
  ${t}-move-up-enter${t}-move-up-enter-active
44
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:$,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]})(nR(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var aQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let aZ={info:x.createElement(oh,null),success:x.createElement(oc,null),error:x.createElement(ou,null),warning:x.createElement(om,null),loading:x.createElement(aq,null)},aJ=({prefixCls:e,type:t,icon:n,children:r})=>x.createElement("div",{className:E()(`${e}-custom-content`,`${e}-${t}`)},n||aZ[t],x.createElement("span",null,r));function a0(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var a1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let a2=({children:e,prefixCls:t})=>{let n=a$(t),[r,o,a]=aU(t,n);return r(x.createElement(aT,{classNames:{list:E()(o,a,n)}},e))},a4=(e,{prefixCls:t,key:n})=>x.createElement(a2,{prefixCls:t,key:n},e),a3=x.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=3,rtl:l,transitionName:c,onAllRemoved:s}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:p}=x.useContext(eW),m=r||u("message"),g=x.createElement("span",{className:`${m}-close-x`},x.createElement(of,{className:`${m}-close-icon`})),[h,v]=a_({prefixCls:m,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>E()({[`${m}-rtl`]:null!=l?l:"rtl"===p}),motion:()=>({motionName:null!=c?c:`${m}-move-up`}),closable:!1,closeIcon:g,duration:i,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:s,renderNotifications:a4});return x.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:m,message:f})),v}),a6=0;function a5(e){let t=x.useRef(null);return aj("Message"),[x.useMemo(()=>{let e=e=>{var n;null==(n=t.current)||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:o,message:a}=t.current,i=`${o}-notice`,{content:l,icon:c,type:s,key:u,className:d,style:f,onClose:p}=n,m=a1(n,["content","icon","type","key","className","style","onClose"]),g=u;return null==g&&(a6+=1,g=`antd-message-${a6}`),a0(t=>(r(Object.assign(Object.assign({},m),{key:g,content:x.createElement(aJ,{prefixCls:o,type:s,icon:c},l),placement:"top",className:E()(s&&`${i}-${s}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),f),onClose:()=>{null==p||p(),t()}})),()=>{e(g)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null==(r=t.current)||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let a,i,l;return a=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(i=r,l=o),n(Object.assign(Object.assign({onClose:l,duration:i},a),{type:e}))}}),r},[]),x.createElement(a3,Object.assign({key:"message-holder"},e,{ref:t}))]}let a8=(0,x.createContext)(void 0),a7={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 a9=(0,D.A)((0,D.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});let ie={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},it={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"]},a9),timePickerLocale:Object.assign({},ie)},ir="${label} is not a valid ${type}",io={locale:"en",Pagination:a7,DatePicker:it,TimePicker:ie,Calendar:it,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},ia=Object.assign({},io.Modal),ii=[],il=()=>ii.reduce((e,t)=>Object.assign(Object.assign({},e),t),io.Modal),ic=(0,x.createContext)(void 0),is=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;x.useEffect(()=>(function(e){if(e){let t=Object.assign({},e);return ii.push(t),ia=il(),()=>{ii=ii.filter(e=>e!==t),ia=il()}}ia=Object.assign({},io.Modal)})(null==t?void 0:t.Modal),[t]);let o=x.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return x.createElement(ic.Provider,{value:o},n)},iu=`-ant-${Date.now()}-${Math.random()}`,id=x.createContext(!1),ip=({children:e,disabled:t})=>{let n=x.useContext(id);return x.createElement(id.Provider,{value:null!=t?t:n},e)},im=x.createContext(void 0),ig=({children:e,size:t})=>{let n=x.useContext(im);return x.createElement(im.Provider,{value:t||n},e)},{useId:ih}=Object.assign({},x),iv=void 0===ih?()=>"":ih,ib=x.createContext(!0);function iy(e){let t=x.useContext(ib),{children:n}=e,[,r]=rq(),{motion:o}=r,a=x.useRef(!1);return(a.current||(a.current=t!==o),a.current)?x.createElement(ib.Provider,{value:o},x.createElement(oy,{motion:o},n)):n}let i$=()=>null;var ix=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let iw=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];function iC(){return o||eL}let iE=()=>({getPrefixCls:(e,t)=>t||(e?`${r||eH}-${e}`:r||eH),getIconPrefixCls:iC,getRootPrefixCls:()=>r||r||eH,getTheme:()=>a,holderRender:i}),iS=e=>{var t,n,r;let o,a,i,{children:l,csp:c,autoInsertSpaceInButton:s,alert:u,anchor:d,form:f,locale:p,componentSize:m,direction:g,space:h,splitter:v,virtual:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:$,popupOverflow:w,legacyLocale:C,parentContext:E,iconPrefixCls:S,theme:k,componentDisabled:O,segmented:A,statistic:I,spin:N,calendar:j,carousel:M,cascader:R,collapse:P,typography:T,checkbox:z,descriptions:B,divider:D,drawer:H,skeleton:L,steps:F,image:W,layout:_,list:V,mentions:K,modal:X,progress:G,result:Y,slider:U,breadcrumb:Q,menu:Z,pagination:J,input:ee,textArea:et,empty:en,badge:er,radio:eo,rate:ea,switch:ei,transfer:el,avatar:ec,message:es,tag:eu,table:ed,card:ef,tabs:ep,timeline:em,timePicker:eg,upload:eh,notification:ev,tree:eb,colorPicker:ey,datePicker:e$,rangePicker:ex,flex:ew,wave:eC,dropdown:eE,warning:eS,tour:ek,tooltip:eO,popover:eA,popconfirm:eI,floatButton:eN,floatButtonGroup:ej,variant:eM,inputNumber:eR,treeSelect:eP}=e,eT=x.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||E.getPrefixCls("");return t?`${o}-${t}`:o},[E.getPrefixCls,e.prefixCls]),ez=S||E.iconPrefixCls||eL,eB=c||E.csp;((e,t)=>{let[n,r]=rq();return nn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>nK(e))})(ez,eB);let eD=(t=E.theme,n={prefixCls:eT("")},aj("ConfigProvider"),a=!1!==(o=k||{}).inherit&&t?t:Object.assign(Object.assign({},nQ),{hashed:null!=(r=null==t?void 0:t.hashed)?r:nQ.hashed,cssVar:null==t?void 0:t.cssVar}),i=iv(),q(()=>{var e,r;if(!k)return t;let l=Object.assign({},a.components);Object.keys(k.components||{}).forEach(e=>{l[e]=Object.assign(Object.assign({},l[e]),k.components[e])});let c=`css-var-${i.replace(/:/g,"")}`,s=(null!=(e=o.cssVar)?e:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof a.cssVar?a.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null==(r=o.cssVar)?void 0:r.key)||c});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:l,cssVar:s})},[o,a],(e,t)=>e.some((e,n)=>!e8(e,t[n],!0)))),eH={csp:eB,autoInsertSpaceInButton:s,alert:u,anchor:d,locale:p||C,direction:g,space:h,splitter:v,virtual:b,popupMatchSelectWidth:null!=$?$:y,popupOverflow:w,getPrefixCls:eT,iconPrefixCls:ez,theme:eD,segmented:A,statistic:I,spin:N,calendar:j,carousel:M,cascader:R,collapse:P,typography:T,checkbox:z,descriptions:B,divider:D,drawer:H,skeleton:L,steps:F,image:W,input:ee,textArea:et,layout:_,list:V,mentions:K,modal:X,progress:G,result:Y,slider:U,breadcrumb:Q,menu:Z,pagination:J,empty:en,badge:er,radio:eo,rate:ea,switch:ei,transfer:el,avatar:ec,message:es,tag:eu,table:ed,card:ef,tabs:ep,timeline:em,timePicker:eg,upload:eh,notification:ev,tree:eb,colorPicker:ey,datePicker:e$,rangePicker:ex,flex:ew,wave:eC,dropdown:eE,warning:eS,tour:ek,tooltip:eO,popover:eA,popconfirm:eI,floatButton:eN,floatButtonGroup:ej,variant:eM,inputNumber:eR,treeSelect:eP},eF=Object.assign({},E);Object.keys(eH).forEach(e=>{void 0!==eH[e]&&(eF[e]=eH[e])}),iw.forEach(t=>{let n=e[t];n&&(eF[t]=n)}),void 0!==s&&(eF.button=Object.assign({autoInsertSpace:s},eF.button));let e_=q(()=>eF,eF,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:eV}=x.useContext(tr),eq=x.useMemo(()=>({prefixCls:ez,csp:eB,layer:eV?"antd":void 0}),[ez,eB,eV]),eK=x.createElement(x.Fragment,null,x.createElement(i$,{dropdownMatchSelectWidth:y}),l),eX=x.useMemo(()=>{var e,t,n,r;return nI((null==(e=io.Form)?void 0:e.defaultValidateMessages)||{},(null==(n=null==(t=e_.locale)?void 0:t.Form)?void 0:n.defaultValidateMessages)||{},(null==(r=e_.form)?void 0:r.validateMessages)||{},(null==f?void 0:f.validateMessages)||{})},[e_,null==f?void 0:f.validateMessages]);Object.keys(eX).length>0&&(eK=x.createElement(a8.Provider,{value:eX},eK)),p&&(eK=x.createElement(is,{locale:p,_ANT_MARK__:"internalMark"},eK)),(ez||eB)&&(eK=x.createElement(r6.Provider,{value:eq},eK)),m&&(eK=x.createElement(ig,{size:m},eK)),eK=x.createElement(iy,null,eK);let eG=x.useMemo(()=>{let e=eD||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=ix(e,["algorithm","token","components","cssVar"]),i=t&&(!Array.isArray(t)||t.length>0)?tc(t):rT,l={};Object.entries(r||{}).forEach(([e,t])=>{let n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=i:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=tc(n.algorithm)),delete n.algorithm),l[e]=n});let c=Object.assign(Object.assign({},nU),n);return Object.assign(Object.assign({},a),{theme:i,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})},[eD]);return k&&(eK=x.createElement(nZ.Provider,{value:eG},eK)),e_.warning&&(eK=x.createElement(aN.Provider,{value:e_.warning},eK)),void 0!==O&&(eK=x.createElement(ip,{disabled:O},eK)),x.createElement(eW.Provider,{value:e_},eK)},ik=e=>{let t=x.useContext(eW),n=x.useContext(ic);return x.createElement(iS,Object.assign({parentContext:t,legacyLocale:n},e))};ik.ConfigContext=eW,ik.SizeContext=im,ik.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:l,holderRender:c}=e;if(void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(i=c),l)if(Object.keys(l).some(e=>e.endsWith("Color"))){let e;e=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new n4(e),a=n7(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new n4(t.primaryColor),a=n7(e.toRgbString());a.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));let i=new n4(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(i,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let a=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return`
44
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:$,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]})(nR(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var aQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let aZ={info:x.createElement(oh,null),success:x.createElement(oc,null),error:x.createElement(ou,null),warning:x.createElement(om,null),loading:x.createElement(aq,null)},aJ=({prefixCls:e,type:t,icon:n,children:r})=>x.createElement("div",{className:E()(`${e}-custom-content`,`${e}-${t}`)},n||aZ[t],x.createElement("span",null,r));function a0(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var a1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let a2=({children:e,prefixCls:t})=>{let n=a$(t),[r,o,a]=aU(t,n);return r(x.createElement(aT,{classNames:{list:E()(o,a,n)}},e))},a4=(e,{prefixCls:t,key:n})=>x.createElement(a2,{prefixCls:t,key:n},e),a3=x.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=3,rtl:l,transitionName:c,onAllRemoved:s}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:p}=x.useContext(eW),m=r||u("message"),g=x.createElement("span",{className:`${m}-close-x`},x.createElement(of,{className:`${m}-close-icon`})),[h,v]=a_({prefixCls:m,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>E()({[`${m}-rtl`]:null!=l?l:"rtl"===p}),motion:()=>({motionName:null!=c?c:`${m}-move-up`}),closable:!1,closeIcon:g,duration:i,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:s,renderNotifications:a4});return x.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:m,message:f})),v}),a6=0;function a5(e){let t=x.useRef(null);return aj(),[x.useMemo(()=>{let e=e=>{var n;null==(n=t.current)||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:o,message:a}=t.current,i=`${o}-notice`,{content:l,icon:c,type:s,key:u,className:d,style:f,onClose:p}=n,m=a1(n,["content","icon","type","key","className","style","onClose"]),g=u;return null==g&&(a6+=1,g=`antd-message-${a6}`),a0(t=>(r(Object.assign(Object.assign({},m),{key:g,content:x.createElement(aJ,{prefixCls:o,type:s,icon:c},l),placement:"top",className:E()(s&&`${i}-${s}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),f),onClose:()=>{null==p||p(),t()}})),()=>{e(g)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null==(r=t.current)||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let a,i,l;return a=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(i=r,l=o),n(Object.assign(Object.assign({onClose:l,duration:i},a),{type:e}))}}),r},[]),x.createElement(a3,Object.assign({key:"message-holder"},e,{ref:t}))]}let a8=(0,x.createContext)(void 0),a7={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 a9=(0,D.A)((0,D.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});let ie={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},it={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"]},a9),timePickerLocale:Object.assign({},ie)},ir="${label} is not a valid ${type}",io={locale:"en",Pagination:a7,DatePicker:it,TimePicker:ie,Calendar:it,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},ia=Object.assign({},io.Modal),ii=[],il=()=>ii.reduce((e,t)=>Object.assign(Object.assign({},e),t),io.Modal),ic=(0,x.createContext)(void 0),is=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;x.useEffect(()=>(function(e){if(e){let t=Object.assign({},e);return ii.push(t),ia=il(),()=>{ii=ii.filter(e=>e!==t),ia=il()}}ia=Object.assign({},io.Modal)})(null==t?void 0:t.Modal),[t]);let o=x.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return x.createElement(ic.Provider,{value:o},n)},iu=`-ant-${Date.now()}-${Math.random()}`,id=x.createContext(!1),ip=({children:e,disabled:t})=>{let n=x.useContext(id);return x.createElement(id.Provider,{value:null!=t?t:n},e)},im=x.createContext(void 0),ig=({children:e,size:t})=>{let n=x.useContext(im);return x.createElement(im.Provider,{value:t||n},e)},{useId:ih}=Object.assign({},x),iv=void 0===ih?()=>"":ih,ib=x.createContext(!0);function iy(e){let t=x.useContext(ib),{children:n}=e,[,r]=rq(),{motion:o}=r,a=x.useRef(!1);return(a.current||(a.current=t!==o),a.current)?x.createElement(ib.Provider,{value:o},x.createElement(oy,{motion:o},n)):n}let i$=()=>null;var ix=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let iw=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];function iC(){return o||eL}let iE=()=>({getPrefixCls:(e,t)=>t||(e?`${r||eH}-${e}`:r||eH),getIconPrefixCls:iC,getRootPrefixCls:()=>r||r||eH,getTheme:()=>a,holderRender:i}),iS=e=>{var t,n,r;let o,a,i,{children:l,csp:c,autoInsertSpaceInButton:s,alert:u,anchor:d,form:f,locale:p,componentSize:m,direction:g,space:h,splitter:v,virtual:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:$,popupOverflow:w,legacyLocale:C,parentContext:E,iconPrefixCls:S,theme:k,componentDisabled:O,segmented:A,statistic:I,spin:N,calendar:j,carousel:M,cascader:R,collapse:P,typography:T,checkbox:z,descriptions:B,divider:D,drawer:H,skeleton:L,steps:F,image:W,layout:_,list:V,mentions:K,modal:X,progress:G,result:Y,slider:U,breadcrumb:Q,menu:Z,pagination:J,input:ee,textArea:et,empty:en,badge:er,radio:eo,rate:ea,switch:ei,transfer:el,avatar:ec,message:es,tag:eu,table:ed,card:ef,tabs:ep,timeline:em,timePicker:eg,upload:eh,notification:ev,tree:eb,colorPicker:ey,datePicker:e$,rangePicker:ex,flex:ew,wave:eC,dropdown:eE,warning:eS,tour:ek,tooltip:eO,popover:eA,popconfirm:eI,floatButton:eN,floatButtonGroup:ej,variant:eM,inputNumber:eR,treeSelect:eP}=e,eT=x.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||E.getPrefixCls("");return t?`${o}-${t}`:o},[E.getPrefixCls,e.prefixCls]),ez=S||E.iconPrefixCls||eL,eB=c||E.csp;((e,t)=>{let[n,r]=rq();return nn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>nK(e))})(ez,eB);let eD=(t=E.theme,n={prefixCls:eT("")},aj(),a=!1!==(o=k||{}).inherit&&t?t:Object.assign(Object.assign({},nQ),{hashed:null!=(r=null==t?void 0:t.hashed)?r:nQ.hashed,cssVar:null==t?void 0:t.cssVar}),i=iv(),q(()=>{var e,r;if(!k)return t;let l=Object.assign({},a.components);Object.keys(k.components||{}).forEach(e=>{l[e]=Object.assign(Object.assign({},l[e]),k.components[e])});let c=`css-var-${i.replace(/:/g,"")}`,s=(null!=(e=o.cssVar)?e:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof a.cssVar?a.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null==(r=o.cssVar)?void 0:r.key)||c});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:l,cssVar:s})},[o,a],(e,t)=>e.some((e,n)=>!e8(e,t[n],!0)))),eH={csp:eB,autoInsertSpaceInButton:s,alert:u,anchor:d,locale:p||C,direction:g,space:h,splitter:v,virtual:b,popupMatchSelectWidth:null!=$?$:y,popupOverflow:w,getPrefixCls:eT,iconPrefixCls:ez,theme:eD,segmented:A,statistic:I,spin:N,calendar:j,carousel:M,cascader:R,collapse:P,typography:T,checkbox:z,descriptions:B,divider:D,drawer:H,skeleton:L,steps:F,image:W,input:ee,textArea:et,layout:_,list:V,mentions:K,modal:X,progress:G,result:Y,slider:U,breadcrumb:Q,menu:Z,pagination:J,empty:en,badge:er,radio:eo,rate:ea,switch:ei,transfer:el,avatar:ec,message:es,tag:eu,table:ed,card:ef,tabs:ep,timeline:em,timePicker:eg,upload:eh,notification:ev,tree:eb,colorPicker:ey,datePicker:e$,rangePicker:ex,flex:ew,wave:eC,dropdown:eE,warning:eS,tour:ek,tooltip:eO,popover:eA,popconfirm:eI,floatButton:eN,floatButtonGroup:ej,variant:eM,inputNumber:eR,treeSelect:eP},eF=Object.assign({},E);Object.keys(eH).forEach(e=>{void 0!==eH[e]&&(eF[e]=eH[e])}),iw.forEach(t=>{let n=e[t];n&&(eF[t]=n)}),void 0!==s&&(eF.button=Object.assign({autoInsertSpace:s},eF.button));let e_=q(()=>eF,eF,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:eV}=x.useContext(tr),eq=x.useMemo(()=>({prefixCls:ez,csp:eB,layer:eV?"antd":void 0}),[ez,eB,eV]),eK=x.createElement(x.Fragment,null,x.createElement(i$,{dropdownMatchSelectWidth:y}),l),eX=x.useMemo(()=>{var e,t,n,r;return nI((null==(e=io.Form)?void 0:e.defaultValidateMessages)||{},(null==(n=null==(t=e_.locale)?void 0:t.Form)?void 0:n.defaultValidateMessages)||{},(null==(r=e_.form)?void 0:r.validateMessages)||{},(null==f?void 0:f.validateMessages)||{})},[e_,null==f?void 0:f.validateMessages]);Object.keys(eX).length>0&&(eK=x.createElement(a8.Provider,{value:eX},eK)),p&&(eK=x.createElement(is,{locale:p,_ANT_MARK__:"internalMark"},eK)),(ez||eB)&&(eK=x.createElement(r6.Provider,{value:eq},eK)),m&&(eK=x.createElement(ig,{size:m},eK)),eK=x.createElement(iy,null,eK);let eG=x.useMemo(()=>{let e=eD||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=ix(e,["algorithm","token","components","cssVar"]),i=t&&(!Array.isArray(t)||t.length>0)?tc(t):rT,l={};Object.entries(r||{}).forEach(([e,t])=>{let n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=i:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=tc(n.algorithm)),delete n.algorithm),l[e]=n});let c=Object.assign(Object.assign({},nU),n);return Object.assign(Object.assign({},a),{theme:i,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})},[eD]);return k&&(eK=x.createElement(nZ.Provider,{value:eG},eK)),e_.warning&&(eK=x.createElement(aN.Provider,{value:e_.warning},eK)),void 0!==O&&(eK=x.createElement(ip,{disabled:O},eK)),x.createElement(eW.Provider,{value:e_},eK)},ik=e=>{let t=x.useContext(eW),n=x.useContext(ic);return x.createElement(iS,Object.assign({parentContext:t,legacyLocale:n},e))};ik.ConfigContext=eW,ik.SizeContext=im,ik.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:l,holderRender:c}=e;if(void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(i=c),l)if(Object.keys(l).some(e=>e.endsWith("Color"))){let e;e=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new n4(e),a=n7(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new n4(t.primaryColor),a=n7(e.toRgbString());a.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));let i=new n4(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(i,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let a=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return`
45
45
  :root {
46
46
  ${a.join("\n")}
47
47
  }
@@ -57,7 +57,7 @@
57
57
  `]:{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}})(t),(e=>{let{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`
58
58
  > ${t}-item:last-child,
59
59
  > ${t}-item:last-child ${t}-header
60
- `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}})(t),(e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}})(t),(e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}})(t),lq(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"})),lX=Object.assign(x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,expandIcon:o,className:a,style:i}=eq("collapse"),{prefixCls:l,className:c,rootClassName:s,style:u,bordered:d=!0,ghost:f,size:p,expandIconPosition:m="start",children:g,destroyInactivePanel:h,destroyOnHidden:v,expandIcon:b}=e,y=i1(e=>{var t;return null!=(t=null!=p?p:e)?t:"middle"}),$=n("collapse",l),w=n(),[C,S,k]=lK($),O=x.useMemo(()=>"left"===m?"start":"right"===m?"end":m,[m]),A=null!=b?b:o,I=x.useCallback((e={})=>{let t="function"==typeof A?A(e):x.createElement(lT,{rotate:e.isActive?"rtl"===r?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return o9(t,()=>{var e;return{className:E()(null==(e=t.props)?void 0:e.className,`${$}-arrow`)}})},[A,$,r]),N=E()(`${$}-icon-position-${O}`,{[`${$}-borderless`]:!d,[`${$}-rtl`]:"rtl"===r,[`${$}-ghost`]:!!f,[`${$}-${y}`]:"middle"!==y},a,c,s,S,k),M=x.useMemo(()=>Object.assign(Object.assign({},iq(w)),{motionAppear:!1,leavedClassName:`${$}-content-hidden`}),[w,$]),R=x.useMemo(()=>g?j(g).map((e,t)=>{var n,r;let o=e.props;if(null==o?void 0:o.disabled){let a=null!=(n=e.key)?n:String(t),i=Object.assign(Object.assign({},iX(e.props,["disabled"])),{key:a,collapsible:null!=(r=o.collapsible)?r:"disabled"});return o9(e,i)}return e}):null,[g]);return C(x.createElement(l_,Object.assign({ref:t,openMotion:M},iX(e,["rootClassName"]),{expandIcon:I,prefixCls:$,className:N,style:Object.assign(Object.assign({},i),u),destroyInactivePanel:null!=v?v:h}),R))}),{Panel:lV}),lG=e=>e instanceof lR?e:new lR(e),lY=e=>Math.round(Number(e||0)),lU=e=>lY(100*e.toHsb().a),lQ=(e,t)=>{let n=e.toRgb();if(!n.r&&!n.g&&!n.b){let n=e.toHsb();return n.a=t||1,lG(n)}return n.a=t||1,lG(n)},lZ=(e,t)=>{let n=[{percent:0,color:e[0].color}].concat((0,eM.A)(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<n.length-1;e+=1){let r=n[e].percent,o=n[e+1].percent,a=n[e].color,i=n[e+1].color;if(r<=t&&t<=o){let e=o-r;if(0===e)return a;let n=(t-r)/e*100,l=new lh(a),c=new lh(i);return l.mix(c,n).toRgbString()}}return""},lJ=e=>e.map(e=>(e.colors=e.colors.map(lG),e)),l0=(e,t)=>{let{r:n,g:r,b:o,a}=e.toRgb(),i=new lh(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:.299*n+.587*r+.114*o>192},l1=(e,t)=>{var n;let r=null!=(n=e.key)?n:t;return`panel-${r}`},l2=({prefixCls:e,presets:t,value:n,onChange:r})=>{let[o]=iK("ColorPicker"),[,a]=rq(),[i]=ny(lJ(t),{value:lJ(t),postState:lJ}),l=`${e}-presets`,c=(0,x.useMemo)(()=>i.reduce((e,t,n)=>{let{defaultOpen:r=!0}=t;return r&&e.push(l1(t,n)),e},[]),[i]),s=i.map((t,i)=>{var c;return{key:l1(t,i),label:w().createElement("div",{className:`${l}-label`},null==t?void 0:t.label),children:w().createElement("div",{className:`${l}-items`},Array.isArray(null==t?void 0:t.colors)&&(null==(c=t.colors)?void 0:c.length)>0?t.colors.map((t,o)=>w().createElement(lx,{key:`preset-${o}-${t.toHexString()}`,color:lG(t).toRgbString(),prefixCls:e,className:E()(`${l}-color`,{[`${l}-color-checked`]:t.toHexString()===(null==n?void 0:n.toHexString()),[`${l}-color-bright`]:l0(t,a.colorBgElevated)}),onClick:()=>{null==r||r(t)}})):w().createElement("span",{className:`${l}-empty`},o.presetEmpty))}});return w().createElement("div",{className:l},w().createElement(lX,{defaultActiveKey:c,ghost:!0,items:s}))},l4=e=>{let{paddingInline:t,onlyIconSize:n}=e;return nR(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},l3=e=>{var t,n,r,o,a,i;let l=null!=(t=e.contentFontSize)?t:e.fontSize,c=null!=(n=e.contentFontSizeSM)?n:e.fontSize,s=null!=(r=e.contentFontSizeLG)?r:e.fontSizeLG,u=null!=(o=e.contentLineHeight)?o:(l+8)/l,d=null!=(a=e.contentLineHeightSM)?a:(c+8)/c,f=null!=(i=e.contentLineHeightLG)?i:(s+8)/s,p=l0(new lR(e.colorBgSolid),"#fff")?"#000":"#fff";return Object.assign(Object.assign({},le.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${tg(e.controlOutlineWidth)} 0 ${rB(e[`${n}1`],e.colorBgContainer)}`}),{})),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)})},l6=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),l5=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},l6(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),l8=(e,t,n,r)=>Object.assign(Object.assign({},(r&&["link","text"].includes(r)?e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}):e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},{cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"})}))(e)),l6(e.componentCls,t,n)),l7=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},l8(e,r,o))}),l9=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},l8(e,r,o))}),ce=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ct=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},l8(e,n,r))}),cn=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},l8(e,r,o,n))}),cr=(e,t="")=>{let{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:s}=e;return[{[t]:{fontSize:o,height:r,padding:`${tg(c)} ${tg(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:s}}}},{[`${n}${n}-circle${t}`]:{minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},co=rK("Button",e=>{let t=l4(e);return[(e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${tg(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:nW(),"> a":{color:"currentColor"},"&:not(:disabled)":nq(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}})(t),cr(nR(t,{fontSize:t.contentFontSize}),t.componentCls),cr(nR(t,{controlHeight:t.controlHeightSM,fontSize:t.contentFontSizeSM,padding:t.paddingXS,buttonPaddingHorizontal:t.paddingInlineSM,buttonPaddingVertical:0,borderRadius:t.borderRadiusSM,buttonIconOnlyFontSize:t.onlyIconSizeSM}),`${t.componentCls}-sm`),cr(nR(t,{controlHeight:t.controlHeightLG,fontSize:t.contentFontSizeLG,buttonPaddingHorizontal:t.paddingInlineLG,buttonPaddingVertical:0,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.onlyIconSizeLG}),`${t.componentCls}-lg`),(e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}})(t),(e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},l7(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ce(e)),ct(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),l5(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),cn(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),[`${t}-color-primary`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},l9(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ce(e)),ct(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),cn(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),cn(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),l5(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),[`${t}-color-dangerous`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},l7(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),l9(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ce(e)),ct(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),cn(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),cn(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),l5(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),[`${t}-color-link`]:Object.assign(Object.assign({},cn(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),l5(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive}))},(e=>{let{componentCls:t}=e;return le.reduce((n,r)=>{let o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],s=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},l7(e,e.colorTextLightSolid,o,{background:i},{background:s})),l9(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:s,borderColor:s,background:e.colorBgContainer})),ce(e)),ct(e,a,{color:o,background:l},{color:o,background:c})),cn(e,o,"link",{color:i},{color:s})),cn(e,o,"text",{color:i,background:a},{color:s,background:c}))})},{})})(e))})(t),Object.assign(Object.assign(Object.assign(Object.assign({},l9(t,t.defaultBorderColor,t.defaultBg,{color:t.defaultHoverColor,borderColor:t.defaultHoverBorderColor,background:t.defaultHoverBg},{color:t.defaultActiveColor,borderColor:t.defaultActiveBorderColor,background:t.defaultActiveBg})),cn(t,t.textTextColor,"text",{color:t.textTextHoverColor,background:t.textHoverBg},{color:t.textTextActiveColor,background:t.colorBgTextActive})),l7(t,t.primaryColor,t.colorPrimary,{background:t.colorPrimaryHover,color:t.primaryColor},{background:t.colorPrimaryActive,color:t.primaryColor})),cn(t,t.colorLink,"link",{color:t.colorLinkHover,background:t.linkHoverBg},{color:t.colorLinkActive})),(e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ld(`${t}-primary`,o),ld(`${t}-danger`,a)]}})(t)]},l3,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ca(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,o=r||n,a=`${o}-compact`;return{[a]:Object.assign(Object.assign({},function(e,t,n,r){let{focusElCls:o,focus:a,borderElCls:i}=n,l=i?"> *":"",c=["hover",a?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}(e,a,t,o)),function(e,t,n){let{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(o,a,t))}}let ci=rG(["Button","compact"],e=>{var t,n;let r,o=l4(e);return[ca(o),{[r=`${o.componentCls}-compact-vertical`]:Object.assign(Object.assign({},(t=o.componentCls,{[`&-item:not(${r}-last-item)`]:{marginBottom:o.calc(o.lineWidth).mul(-1).equal()},[`&-item:not(${t}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}})),(n=o.componentCls,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))},(e=>{let{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=e=>{let o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?a:0,insetInlineStart:e?0:a,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))})(o)]},l3);var cl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let cc={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},cs=w().forwardRef((e,t)=>{var n,r,o;let a,i,l,{loading:c=!1,prefixCls:s,color:u,variant:d,type:f,danger:p=!1,shape:m,size:g,styles:h,disabled:v,className:b,rootClassName:y,children:$,icon:C,iconPosition:S="start",ghost:k=!1,block:O=!1,htmlType:A="button",classNames:I,style:N={},autoInsertSpace:j,autoFocus:M}=e,R=cl(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),P=f||"default",{button:T}=w().useContext(eW),z=m||(null==T?void 0:T.shape)||"default",[B,D]=(0,x.useMemo)(()=>{if(u&&d)return[u,d];if(f||p){let e=cc[P]||[];return p?["danger",e[1]]:e}return(null==T?void 0:T.color)&&(null==T?void 0:T.variant)?[T.color,T.variant]:["default","outlined"]},[u,d,f,p,null==T?void 0:T.color,null==T?void 0:T.variant,P]),H="danger"===B?"dangerous":B,{getPrefixCls:L,direction:F,autoInsertSpace:W,className:_,style:V,classNames:q,styles:K}=eq("button"),X=null==(n=null!=j?j:W)||n,G=L("btn",s),[U,Q,Z]=co(G),J=(0,x.useContext)(id),ee=null!=v?v:J,et=(0,x.useContext)(i9),en=(0,x.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(c),[c]),[er,eo]=(0,x.useState)(en.loading),[ea,ei]=(0,x.useState)(!1),el=(0,x.useRef)(null),ec=Y(t,el),es=1===x.Children.count($)&&!C&&!la(D),eu=(0,x.useRef)(!0);w().useEffect(()=>(eu.current=!1,()=>{eu.current=!0}),[]),t$(()=>{let e=null;return en.delay>0?e=setTimeout(()=>{e=null,eo(!0)},en.delay):eo(en.loading),function(){e&&(clearTimeout(e),e=null)}},[en.delay,en.loading]),(0,x.useEffect)(()=>{if(!el.current||!X)return;let e=el.current.textContent||"";es&&ln(e)?ea||ei(!0):ea&&ei(!1)}),(0,x.useEffect)(()=>{M&&el.current&&el.current.focus()},[]);let ed=w().useCallback(t=>{var n;er||ee?t.preventDefault():null==(n=e.onClick)||n.call(e,("href"in e,t))},[e.onClick,er,ee]),{compactSize:ef,compactItemClassnames:ep}=i6(G,F),em=i1(e=>{var t,n;return null!=(n=null!=(t=null!=g?g:ef)?t:et)?n:e}),eg=em&&null!=(r=({large:"lg",small:"sm",middle:void 0})[em])?r:"",eh=er?"loading":C,ev=iX(R,["navigate"]),eb=E()(G,Q,Z,{[`${G}-${z}`]:"default"!==z&&z,[`${G}-${P}`]:P,[`${G}-dangerous`]:p,[`${G}-color-${H}`]:H,[`${G}-variant-${D}`]:D,[`${G}-${eg}`]:eg,[`${G}-icon-only`]:!$&&0!==$&&!!eh,[`${G}-background-ghost`]:k&&!la(D),[`${G}-loading`]:er,[`${G}-two-chinese-chars`]:ea&&X&&!er,[`${G}-block`]:O,[`${G}-rtl`]:"rtl"===F,[`${G}-icon-end`]:"end"===S},ep,b,y,_),ey=Object.assign(Object.assign({},V),N),e$=E()(null==I?void 0:I.icon,q.icon),ex=Object.assign(Object.assign({},(null==h?void 0:h.icon)||{}),K.icon||{}),ew=e=>w().createElement(li,{prefixCls:G,className:e$,style:ex},e);a=C&&!er?ew(C):c&&"object"==typeof c&&c.icon?ew(c.icon):w().createElement(lu,{existIcon:!!C,prefixCls:G,loading:er,mount:eu.current});let eC=$||0===$?(o=es&&X,i=!1,l=[],w().Children.forEach($,e=>{let t=typeof e,n="string"===t||"number"===t;if(i&&n){let t=l.length-1,n=l[t];l[t]=`${n}${e}`}else l.push(e);i=n}),w().Children.map(l,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&lo(e.type)&&ln(e.props.children)?o9(e,{children:e.props.children.split("").join(n)}):lo(e)?ln(e)?w().createElement("span",null,e.split("").join(n)):w().createElement("span",null,e):o8(e)?w().createElement("span",null,e):e})(e,o))):null;if(void 0!==ev.href)return U(w().createElement("a",Object.assign({},ev,{className:E()(eb,{[`${G}-disabled`]:ee}),href:ee?void 0:ev.href,style:ey,onClick:ed,ref:ec,tabIndex:ee?-1:0,"aria-disabled":ee}),a,eC));let eE=w().createElement("button",Object.assign({},R,{type:A,className:eb,style:ey,onClick:ed,disabled:ee,ref:ec}),a,eC,ep&&w().createElement(ci,{prefixCls:G}));return la(D)||(eE=w().createElement(i0,{component:"Button",disabled:er},eE)),U(eE)});cs.Group=e=>{let{getPrefixCls:t,direction:n}=x.useContext(eW),{prefixCls:r,size:o,className:a}=e,i=i7(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=rq(),s=x.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=E()(l,{[`${l}-${s}`]:s,[`${l}-rtl`]:"rtl"===n},a,c);return x.createElement(i9.Provider,{value:o},x.createElement("div",Object.assign({},i,{className:u})))},cs.__ANT_BUTTON=!0;let cu=cs,cd=e=>"function"==typeof(null==e?void 0:e.then),cf=e=>{let{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:c,quitOnNullishReturnValue:s,actionFn:u}=e,d=x.useRef(!1),f=x.useRef(null),[p,m]=nv(!1),g=(...e)=>{null==a||a.apply(void 0,e)};return x.useEffect(()=>{let e=null;return i&&(e=setTimeout(()=>{var e;null==(e=f.current)||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[i]),x.createElement(cu,Object.assign({},lr(t),{onClick:e=>{let t;if(!d.current){var n;if(d.current=!0,!u)return void g();if(l){if(t=u(e),s&&!cd(t)){d.current=!1,g(e);return}}else if(u.length)t=u(a),d.current=!1;else if(!cd(t=u()))return void g();cd(n=t)&&(m(!0),n.then((...e)=>{m(!1,!0),g.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,null==c||!c())return Promise.reject(e)}))}},loading:p,prefixCls:r},o,{ref:f}),n)},cp=w().createContext({}),{Provider:cm}=cp,cg=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:c}=(0,x.useContext)(cp);return o?w().createElement(cf,{isSilent:r,actionFn:l,close:(...e)=>{null==i||i.apply(void 0,e),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},ch=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:c}=(0,x.useContext)(cp);return w().createElement(cf,{isSilent:n,type:i||"primary",actionFn:c,close:(...e)=>{null==t||t.apply(void 0,e),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},a)};var cv=x.createContext(null),cb=[];function cy(e){var t,n,r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),o=document.createElement("div");o.id=r;var a=o.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var i=getComputedStyle(e);a.scrollbarColor=i.scrollbarColor,a.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";e5("\n#".concat(r,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),r)}catch(e){console.error(e),t=c,n=s}}document.body.appendChild(o);var f=e&&t&&!isNaN(t)?t:o.offsetWidth-o.clientWidth,p=e&&n&&!isNaN(n)?n:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),e6(r),{width:f,height:p}}function c$(e){return"u"<typeof document?0:((e||void 0===b)&&(b=cy()),b.width)}function cx(e){return!("u"<typeof document)&&e&&e instanceof Element?cy(e):{width:0,height:0}}var cw="rc-util-locker-".concat(Date.now()),cC=0,cE=function(e){return!1!==e&&(eY()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},cS=x.forwardRef(function(e,t){var n,r,o,a=e.open,i=e.autoLock,l=e.getContainer,c=(e.debug,e.autoDestroy),s=void 0===c||c,u=e.children,d=x.useState(a),f=(0,eK.A)(d,2),p=f[0],m=f[1],g=p||a;x.useEffect(function(){(s||a)&&m(a)},[a,s]);var h=x.useState(function(){return cE(l)}),v=(0,eK.A)(h,2),b=v[0],y=v[1];x.useEffect(function(){var e=cE(l);y(null!=e?e:null)});var $=function(e){var t=x.useState(function(){return eY()?document.createElement("div"):null}),n=(0,eK.A)(t,1)[0],r=x.useRef(!1),o=x.useContext(cv),a=x.useState(cb),i=(0,eK.A)(a,2),l=i[0],c=i[1],s=o||(r.current?void 0:function(e){c(function(t){return[e].concat((0,eM.A)(t))})});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null==(e=n.parentElement)||e.removeChild(n),r.current=!1}return t$(function(){return e?o?o(u):u():d(),d},[e]),t$(function(){l.length&&(l.forEach(function(e){return e()}),c(cb))},[l]),[n,s]}(g&&!b),w=(0,eK.A)($,2),C=w[0],E=w[1],S=null!=b?b:C;n=!!(i&&a&&eY()&&(S===C||S===document.body)),r=x.useState(function(){return cC+=1,"".concat(cw,"_").concat(cC)}),t$(function(){if(n){var e=cx(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;e5("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else e6(o);return function(){e6(o)}},[n,o=(0,eK.A)(r,1)[0]]);var k=null;u&&U(u)&&t&&(k=u.ref);var O=Y(k,t);if(!g||!eY()||void 0===b)return null;var A=!1===S,I=u;return t&&(I=x.cloneElement(u,{ref:O})),x.createElement(cv.Provider,{value:E},A?I:(0,H.createPortal)(I,S))}),ck=x.createContext({}),cO=0,cA=(0,D.A)({},x).useId;let cI=cA?function(e){var t=cA();return e||t}:function(e){var t=x.useState("ssr-id"),n=(0,eK.A)(t,2),r=n[0],o=n[1];return(x.useEffect(function(){var e=cO;cO+=1,o("rc_unique_".concat(e))},[]),e)?e:r};function cN(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function cj(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}let cM=x.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var cR={width:0,height:0,overflow:"hidden",outline:"none"},cP={outline:"none"},cT=w().forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,l=e.footer,c=e.closable,s=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,m=e.modalRender,g=e.onMouseDown,h=e.onMouseUp,v=e.holderRef,b=e.visible,y=e.forceRender,$=e.width,C=e.height,O=e.classNames,A=e.styles,I=Y(v,w().useContext(ck).panel),N=(0,x.useRef)(),j=(0,x.useRef)();w().useImperativeHandle(t,function(){return{focus:function(){var e;null==(e=N.current)||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===j.current?N.current.focus({preventScroll:!0}):e||t!==N.current||j.current.focus({preventScroll:!0})}}});var M={};void 0!==$&&(M.width=$),void 0!==C&&(M.height=C);var R=l?w().createElement("div",{className:E()("".concat(n,"-footer"),null==O?void 0:O.footer),style:(0,D.A)({},null==A?void 0:A.footer)},l):null,P=a?w().createElement("div",{className:E()("".concat(n,"-header"),null==O?void 0:O.header),style:(0,D.A)({},null==A?void 0:A.header)},w().createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,T=(0,x.useMemo)(function(){return"object"===(0,k.A)(c)&&null!==c?c:c?{closeIcon:null!=s?s:w().createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,s,n]),z=o5(T,!0),B="object"===(0,k.A)(c)&&c.disabled,H=c?w().createElement("button",S({type:"button",onClick:u,"aria-label":"Close"},z,{className:"".concat(n,"-close"),disabled:B}),T.closeIcon):null,L=w().createElement("div",{className:E()("".concat(n,"-content"),null==O?void 0:O.content),style:null==A?void 0:A.content},H,P,w().createElement("div",S({className:E()("".concat(n,"-body"),null==O?void 0:O.body),style:(0,D.A)((0,D.A)({},f),null==A?void 0:A.body)},p),d),R);return w().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:I,style:(0,D.A)((0,D.A)({},o),M),className:E()(n,r),onMouseDown:g,onMouseUp:h},w().createElement("div",{ref:N,tabIndex:0,style:cP},w().createElement(cM,{shouldUpdate:b||y},m?m(L):L)),w().createElement("div",{tabIndex:0,ref:j,style:cR}))}),cz=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,l=e.forceRender,c=e.destroyOnClose,s=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=(0,x.useRef)(),m=x.useState(),g=(0,eK.A)(m,2),h=g[0],v=g[1],b={};function y(){var e,t,n,r,o,a=(n={left:(t=(e=p.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=cj(o),n.top+=cj(o,!0),n);v(f&&(f.x||f.y)?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return h&&(b.transformOrigin=h),x.createElement(oG,{visible:i,onVisibleChanged:d,onAppearPrepare:y,onEnterPrepare:y,forceRender:l,motionName:s,removeOnLeave:c,ref:p},function(i,l){var c=i.className,s=i.style;return x.createElement(cT,S({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:l,style:(0,D.A)((0,D.A)((0,D.A)({},s),o),b),className:E()(a,c)}))})});cz.displayName="Content";let cB=function(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return x.createElement(oG,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var a=e.className,l=e.style;return x.createElement("div",S({ref:r,style:(0,D.A)((0,D.A)({},l),n),className:E()("".concat(t,"-mask"),a,i)},o))})},cD=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,a=void 0!==o&&o,i=e.keyboard,l=void 0===i||i,c=e.focusTriggerAfterClose,s=void 0===c||c,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,m=e.afterOpenChange,g=e.afterClose,h=e.transitionName,v=e.animation,b=e.closable,y=e.mask,$=void 0===y||y,w=e.maskTransitionName,C=e.maskAnimation,k=e.maskClosable,O=e.maskStyle,A=e.maskProps,I=e.rootClassName,N=e.classNames,j=e.styles,M=(0,x.useRef)(),R=(0,x.useRef)(),P=(0,x.useRef)(),T=x.useState(a),z=(0,eK.A)(T,2),B=z[0],H=z[1],L=cI();function F(e){null==p||p(e)}var W=(0,x.useRef)(!1),_=(0,x.useRef)(),V=null;(void 0===k||k)&&(V=function(e){W.current?W.current=!1:R.current===e.target&&F(e)}),(0,x.useEffect)(function(){a&&(H(!0),eU(R.current,document.activeElement)||(M.current=document.activeElement))},[a]),(0,x.useEffect)(function(){return function(){clearTimeout(_.current)}},[]);var q=(0,D.A)((0,D.A)((0,D.A)({zIndex:r},u),null==j?void 0:j.wrapper),{},{display:B?null:"none"});return x.createElement("div",S({className:E()("".concat(n,"-root"),I)},o5(e,{data:!0})),x.createElement(cB,{prefixCls:n,visible:$&&a,motionName:cN(n,w,C),style:(0,D.A)((0,D.A)({zIndex:r},O),null==j?void 0:j.mask),maskProps:A,className:null==N?void 0:N.mask}),x.createElement("div",S({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===aM.ESC){e.stopPropagation(),F(e);return}a&&e.keyCode===aM.TAB&&P.current.changeActive(!e.shiftKey)},className:E()("".concat(n,"-wrap"),d,null==N?void 0:N.wrapper),ref:R,onClick:V,style:q},f),x.createElement(cz,S({},e,{onMouseDown:function(){clearTimeout(_.current),W.current=!0},onMouseUp:function(){_.current=setTimeout(function(){W.current=!1})},ref:P,closable:void 0===b||b,ariaId:L,prefixCls:n,visible:a&&B,onClose:F,onVisibleChanged:function(e){if(e){if(!eU(R.current,document.activeElement)){var t;null==(t=P.current)||t.focus()}}else{if(H(!1),$&&M.current&&s){try{M.current.focus({preventScroll:!0})}catch(e){}M.current=null}B&&(null==g||g())}null==m||m(e)},motionName:cN(n,h,v)}))))};var cH=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,i=e.afterClose,l=e.panelRef,c=x.useState(t),s=(0,eK.A)(c,2),u=s[0],d=s[1],f=x.useMemo(function(){return{panel:l}},[l]);return(x.useEffect(function(){t&&d(!0)},[t]),r||!a||u)?x.createElement(ck.Provider,{value:f},x.createElement(cS,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},x.createElement(cD,S({},e,{destroyOnClose:a,afterClose:function(){null==i||i(),d(!1)}})))):null};cH.displayName="Dialog";var cL="RC_FORM_INTERNAL_HOOKS",cF=function(){B(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},cW=x.createContext({getFieldValue:cF,getFieldsValue:cF,getFieldError:cF,getFieldWarning:cF,getFieldsError:cF,isFieldsTouched:cF,isFieldTouched:cF,isFieldValidating:cF,isFieldsValidating:cF,resetFields:cF,setFields:cF,setFieldValue:cF,setFieldsValue:cF,validateFields:cF,submit:cF,getInternalHooks:function(){return cF(),{dispatch:cF,initEntityValue:cF,registerField:cF,useSubscribe:cF,setInitialValues:cF,destroyForm:cF,setCallbacks:cF,registerWatch:cF,getFields:cF,setValidateMessages:cF,setPreserve:cF,getInitialValue:cF}}}),c_=x.createContext(null);function cV(e){return null==e?[]:Array.isArray(e)?e:[e]}function cq(){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",tel:"%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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var cK=cq(),cX=n(3413);function cG(e){var t="function"==typeof Map?new Map:void 0;return(cG=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if((0,ek.A)())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&(0,cX.A)(o,n.prototype),o}(e,arguments,(0,eS.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,cX.A)(n,e)})(e)}var cY=/%[sdj%]/g;function cU(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function cQ(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(cY,function(e){if("%%"===e)return"%";if(o>=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}default:return e}}):e}function cZ(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t||"tel"===t)&&"string"==typeof e&&!e||!1}function cJ(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)return void n(i);var l=r;r+=1,l<o?t(e[l],a):n([])}([])}"u">typeof process&&process.env;var c0=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e,r){var o;return(0,ew.A)(this,n),o=t.call(this,"Async Validation Error"),(0,eX.A)((0,nl.A)(o),"errors",void 0),(0,eX.A)((0,nl.A)(o),"fields",void 0),o.errors=e,o.fields=r,o}return(0,eC.A)(n)}(cG(Error));function c1(e,t){return function(n){var r;return(r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length&&void 0!=n;r++)n=n[t[r]];return n}(t,e.fullFields):t[n.field||e.fullField],n&&void 0!==n.message)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function c2(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(0,k.A)(r)&&"object"===(0,k.A)(e[n])?e[n]=(0,D.A)((0,D.A)({},e[n]),r):e[n]=r}}return e}var c4="enum";let c3=function(e,t,n,r,o,a){e.required&&(!n.hasOwnProperty(e.field)||cZ(t,a||e.type))&&r.push(cQ(o.messages.required,e.fullField))},c6=function(){if(y)return y;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),s=function(e){return e&&e.exact?i:RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(a).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:RegExp("".concat(t(e)).concat(a).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return y=RegExp("(?:^".concat(f,"$)"),"i")};var c5=/^(([^<>()\[\]\\.,;:\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,}))$/,c8=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,c7=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,c9={integer:function(e){return c9.number(e)&&parseInt(e,10)===e},float:function(e){return c9.number(e)&&!c9.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,k.A)(e)&&!c9.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(c5)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(c8)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(c6())},hex:function(e){return"string"==typeof e&&!!e.match(c7)}};let se=c3,st=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(cQ(o.messages.whitespace,e.fullField))},sn=function(e,t,n,r,o){if(e.required&&void 0===t)return void c3(e,t,n,r,o);var a=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(a)>-1?c9[a](t)||r.push(cQ(o.messages.types[a],e.fullField,e.type)):a&&(0,k.A)(t)!==e.type&&r.push(cQ(o.messages.types[a],e.fullField,e.type))},sr=function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?c!==e.len&&r.push(cQ(o.messages[s].len,e.fullField,e.len)):i&&!l&&c<e.min?r.push(cQ(o.messages[s].min,e.fullField,e.min)):l&&!i&&c>e.max?r.push(cQ(o.messages[s].max,e.fullField,e.max)):i&&l&&(c<e.min||c>e.max)&&r.push(cQ(o.messages[s].range,e.fullField,e.min,e.max))},so=function(e,t,n,r,o){e[c4]=Array.isArray(e[c4])?e[c4]:[],-1===e[c4].indexOf(t)&&r.push(cQ(o.messages[c4],e.fullField,e[c4].join(", ")))},sa=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(cQ(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(cQ(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},si=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t,a)&&!e.required)return n();se(e,t,r,i,o,a),cZ(t,a)||sn(e,t,r,i,o)}n(i)},sl={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t,"string")&&!e.required)return n();se(e,t,r,a,o,"string"),cZ(t,"string")||(sn(e,t,r,a,o),sr(e,t,r,a,o),sa(e,t,r,a,o),!0===e.whitespace&&st(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&sn(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&(sn(e,t,r,a,o),sr(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&sn(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),cZ(t)||sn(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&(sn(e,t,r,a,o),sr(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&(sn(e,t,r,a,o),sr(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();se(e,t,r,a,o,"array"),null!=t&&(sn(e,t,r,a,o),sr(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&sn(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&so(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t,"string")&&!e.required)return n();se(e,t,r,a,o),cZ(t,"string")||sa(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t,"date")&&!e.required)return n();se(e,t,r,i,o),!cZ(t,"date")&&(a=t instanceof Date?t:new Date(t),sn(e,a,r,i,o),a&&sr(e,a.getTime(),r,i,o))}n(i)},url:si,hex:si,email:si,tel:si,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":(0,k.A)(t);se(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o)}n(a)}};var sc=function(){function e(t){(0,ew.A)(this,e),(0,eX.A)(this,"rules",null),(0,eX.A)(this,"_messages",cK),this.define(t)}return(0,eC.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!==(0,k.A)(e)||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=c2(cq(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=t,i=r,l=o;if("function"==typeof i&&(l=i,i={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,a),Promise.resolve(a);if(i.messages){var c=this.messages();c===cK&&(c=cq()),c2(c,i.messages),i.messages=c}else i.messages=this.messages();var s={};(i.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],o=a[e];r.forEach(function(r){var i=r;"function"==typeof i.transform&&(a===t&&(a=(0,D.A)({},a)),null!=(o=a[e]=i.transform(o))&&(i.type=i.type||(Array.isArray(o)?"array":(0,k.A)(o)))),(i="function"==typeof i?{validator:i}:(0,D.A)({},i)).validator=n.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=n.getType(i),s[e]=s[e]||[],s[e].push({rule:i,value:o,source:a,field:e}))})});var u={};return function(e,t,n,r,o){if(t.first){var a=new Promise(function(t,a){var i;cJ((i=[],Object.keys(e).forEach(function(t){i.push.apply(i,(0,eM.A)(e[t]||[]))}),i),n,function(e){return r(e),e.length?a(new c0(e,cU(e))):t(o)})});return a.catch(function(e){return e}),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise(function(t,a){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?a(new c0(u,cU(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];if(-1!==i.indexOf(t))cJ(r,n,d);else{var o=[],a=0,l=r.length;function c(e){o.push.apply(o,(0,eM.A)(e||[])),++a===l&&d(o)}r.forEach(function(e){n(e,c)})}})});return d.catch(function(e){return e}),d}(s,i,function(t,n){var r,o,l,c=t.rule,s=("object"===c.type||"array"===c.type)&&("object"===(0,k.A)(c.fields)||"object"===(0,k.A)(c.defaultField));function d(e,t){return(0,D.A)((0,D.A)({},t),{},{fullField:"".concat(c.fullField,".").concat(e),fullFields:c.fullFields?[].concat((0,eM.A)(c.fullFields),[e]):[e]})}function f(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Array.isArray(r)?r:[r];!i.suppressWarning&&o.length&&e.warning("async-validator:",o),o.length&&void 0!==c.message&&null!==c.message&&(o=[].concat(c.message));var l=o.map(c1(c,a));if(i.first&&l.length)return u[c.field]=1,n(l);if(s){if(c.required&&!t.value)return void 0!==c.message?l=[].concat(c.message).map(c1(c,a)):i.error&&(l=[i.error(c,cQ(i.messages.required,c.field))]),n(l);var f={};c.defaultField&&Object.keys(t.value).map(function(e){f[e]=c.defaultField});var p={};Object.keys(f=(0,D.A)((0,D.A)({},f),t.rule.fields)).forEach(function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(d.bind(null,e))});var m=new e(p);m.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,function(e){var t=[];l&&l.length&&t.push.apply(t,(0,eM.A)(l)),e&&e.length&&t.push.apply(t,(0,eM.A)(e)),n(t.length?t:null)})}else n(l)}if(s=s&&(c.required||!c.required&&t.value),c.field=t.field,c.asyncValidator)r=c.asyncValidator(c,t.value,f,t.source,i);else if(c.validator){try{r=c.validator(c,t.value,f,t.source,i)}catch(e){null==(o=(l=console).error)||o.call(l,e),i.suppressValidatorError||setTimeout(function(){throw e},0),f(e.message)}!0===r?f():!1===r?f("function"==typeof c.message?c.message(c.fullField||c.field):c.message||"".concat(c.fullField||c.field," fails")):r instanceof Array?f(r):r instanceof Error&&f(r.message)}r&&r.then&&r.then(function(){return f()},function(e){return f(e)})},function(e){for(var t=[],n={},r=0;r<e.length;r++)!function(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,(0,eM.A)(e))}else t.push(e)}(e[r]);t.length?(n=cU(t),l(t,n)):l(null,a)},a)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!sl.hasOwnProperty(e.type))throw Error(cQ("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return(-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0])?sl.required:sl[this.getType(e)]||void 0}}]),e}();(0,eX.A)(sc,"register",function(e,t){if("function"!=typeof t)throw Error("Cannot register a validator by type, validator is not a function");sl[e]=t}),(0,eX.A)(sc,"warning",function(){}),(0,eX.A)(sc,"messages",cK),(0,eX.A)(sc,"validators",sl);var ss="'${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:ss,method:ss,array:ss,object:ss,number:ss,date:ss,boolean:ss,integer:ss,float:ss,regexp:ss,email:ss,url:ss,hex:ss},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}"}},sd="CODE_LOGIC_ERROR";function sf(e,t,n,r,o){return sp.apply(this,arguments)}function sp(){return(sp=(0,iI.A)((0,iA.A)().mark(function e(t,n,r,o,a){var i,l,c,s,u,d,f,p,m;return(0,iA.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(0,D.A)({},r),delete i.ruleIndex,sc.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(sd)}}),c=null,i&&"array"===i.type&&i.defaultField&&(c=i.defaultField,delete i.defaultField),s=new sc((0,eX.A)({},t,[i])),u=nI(su,o.validateMessages),s.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(s.validate((0,eX.A)({},t,n),(0,D.A)({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map(function(e,t){var n=e.message,r=n===sd?u.default:n;return x.isValidElement(r)?x.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(!(!d.length&&c&&Array.isArray(n)&&n.length>0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return sf("".concat(t,".").concat(n),e,c,o,a)}));case 21:return f=e.sent,e.abrupt("return",f.reduce(function(e,t){return[].concat((0,eM.A)(e),(0,eM.A)(t))},[]));case 23:return p=(0,D.A)((0,D.A)({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),m=d.map(function(e){return"string"==typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){return e.startsWith("\\")?e.slice(1):t[e.slice(2,-1)]})}(e,p):e}),e.abrupt("return",m);case 26:case"end":return e.stop()}},e,null,[[10,15]])}))).apply(this,arguments)}function sm(){return(sm=(0,iI.A)((0,iA.A)().mark(function e(t){return(0,iA.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,(0,eM.A)(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function sg(){return(sg=(0,iI.A)((0,iA.A)().mark(function e(t){var n;return(0,iA.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function sh(e){return cV(e)}function sv(e,t){var n={};return t.forEach(function(t){var r=n$(e,t);n=nk(n,t,r)}),n}function sb(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return sy(t,e,n)})}function sy(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&!!t&&(!!n||e.length===t.length)&&t.every(function(t,n){return e[n]===t})}function s$(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,k.A)(t.target)&&e in t.target?t.target[e]:t}function sx(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat((0,eM.A)(e.slice(0,n)),[o],(0,eM.A)(e.slice(n,t)),(0,eM.A)(e.slice(t+1,r))):a<0?[].concat((0,eM.A)(e.slice(0,t)),(0,eM.A)(e.slice(t+1,n+1)),[o],(0,eM.A)(e.slice(n+1,r))):e}var sw=["name"],sC=[];function sE(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var sS=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e){var r;return(0,ew.A)(this,n),r=t.call(this,e),(0,eX.A)((0,nl.A)(r),"state",{resetCount:0}),(0,eX.A)((0,nl.A)(r),"cancelRegisterFunc",null),(0,eX.A)((0,nl.A)(r),"mounted",!1),(0,eX.A)((0,nl.A)(r),"touched",!1),(0,eX.A)((0,nl.A)(r),"dirty",!1),(0,eX.A)((0,nl.A)(r),"validatePromise",void 0),(0,eX.A)((0,nl.A)(r),"prevValidating",void 0),(0,eX.A)((0,nl.A)(r),"errors",sC),(0,eX.A)((0,nl.A)(r),"warnings",sC),(0,eX.A)((0,nl.A)(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,sh(o)),r.cancelRegisterFunc=null}),(0,eX.A)((0,nl.A)(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat((0,eM.A)(void 0===n?[]:n),(0,eM.A)(t)):[]}),(0,eX.A)((0,nl.A)(r),"getRules",function(){var e=r.props,t=e.rules,n=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(n):e})}),(0,eX.A)((0,nl.A)(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),(0,eX.A)((0,nl.A)(r),"metaCache",null),(0,eX.A)((0,nl.A)(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=(0,D.A)((0,D.A)({},r.getMeta()),{},{destroy:e});e8(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),(0,eX.A)((0,nl.A)(r),"onStoreChange",function(e,t,n){var o=r.props,a=o.shouldUpdate,i=o.dependencies,l=void 0===i?[]:i,c=o.onReset,s=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(s),p=t&&sb(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&!e8(d,f)&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=sC,r.warnings=sC,r.triggerMetaEvent()),n.type){case"reset":if(!t||p){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=sC,r.warnings=sC,r.triggerMetaEvent(),null==c||c(),r.refresh();return}break;case"remove":if(a&&sE(a,e,s,d,f,n))return void r.reRender();break;case"setField":var m=n.data;if(p){"touched"in m&&(r.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(r.errors=m.errors||sC),"warnings"in m&&(r.warnings=m.warnings||sC),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}if("value"in m&&sb(t,u,!0)||a&&!u.length&&sE(a,e,s,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(sh).some(function(e){return sb(n.relatedFields,e)}))return void r.reRender();break;default:if(p||(!l.length||u.length||a)&&sE(a,e,s,d,f,n))return void r.reRender()}!0===a&&r.reRender()}),(0,eX.A)((0,nl.A)(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},a=o.triggerName,i=o.validateOnly,l=Promise.resolve().then((0,iI.A)((0,iA.A)().mark(function o(){var i,c,s,u,d,f,p;return(0,iA.A)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(s=void 0!==(c=(i=r.props).validateFirst)&&c,u=i.messageVariables,d=i.validateDebounce,f=r.getRules(),a&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||cV(t).includes(a)})),!(d&&a)){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=function(e,t,n,r,o,a){var i,l,c=e.join("."),s=n.map(function(e,t){var n=e.validator,r=(0,D.A)((0,D.A)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,a=n(e,t,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){B(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});B(o=a&&"function"==typeof a.then&&"function"==typeof a.catch,"`callback` is deprecated. Please return a promise instead."),o&&a.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,a=t.ruleIndex;return!!n==!!o?r-a:n?1:-1});if(!0===o)l=new Promise((i=(0,iI.A)((0,iA.A)().mark(function e(n,o){var i,l,u;return(0,iA.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<s.length)){e.next=12;break}return l=s[i],e.next=5,sf(c,t,l,r,a);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:l}]),e.abrupt("return");case 9:i+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)}));else{var u=s.map(function(e){return sf(c,t,e,r,a).then(function(t){return{errors:t,rule:e}})});l=(o?function(e){return sg.apply(this,arguments)}(u):function(e){return sm.apply(this,arguments)}(u)).then(function(e){return Promise.reject(e)})}return l.catch(function(e){return e}),l}(t,n,f,e,s,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sC;if(r.validatePromise===l){r.validatePromise=null;var t,n=[],o=[];null==(t=e.forEach)||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,a=void 0===r?sC:r;t?o.push.apply(o,(0,eM.A)(a)):n.push.apply(n,(0,eM.A)(a))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",p);case 13:case"end":return o.stop()}},o)})));return void 0!==i&&i||(r.validatePromise=l,r.dirty=!0,r.errors=sC,r.warnings=sC,r.triggerMetaEvent(),r.reRender()),l}),(0,eX.A)((0,nl.A)(r),"isFieldValidating",function(){return!!r.validatePromise}),(0,eX.A)((0,nl.A)(r),"isFieldTouched",function(){return r.touched}),(0,eX.A)((0,nl.A)(r),"isFieldDirty",function(){return!!r.dirty||void 0!==r.props.initialValue||void 0!==(0,r.props.fieldContext.getInternalHooks(cL).getInitialValue)(r.getNamePath())}),(0,eX.A)((0,nl.A)(r),"getErrors",function(){return r.errors}),(0,eX.A)((0,nl.A)(r),"getWarnings",function(){return r.warnings}),(0,eX.A)((0,nl.A)(r),"isListField",function(){return r.props.isListField}),(0,eX.A)((0,nl.A)(r),"isList",function(){return r.props.isList}),(0,eX.A)((0,nl.A)(r),"isPreserve",function(){return r.props.preserve}),(0,eX.A)((0,nl.A)(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),(0,eX.A)((0,nl.A)(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return(0,D.A)((0,D.A)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=j(e);return 1===n.length&&x.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),(0,eX.A)((0,nl.A)(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return n$(e||t(!0),n)}),(0,eX.A)((0,nl.A)(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,a=t.validateTrigger,i=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==a?a:u.validateTrigger,f=r.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(cL).dispatch,h=r.getValue(),v=s||function(e){return(0,eX.A)({},c,e)},b=e[o],y=void 0!==n?v(h):{},$=(0,D.A)((0,D.A)({},e),y);return $[o]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e,t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e=i?i.apply(void 0,n):s$.apply(void 0,[c].concat(n)),l&&(e=l(e,h,m(!0))),e!==h&&g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},cV(d||[]).forEach(function(e){var t=$[e];$[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}}),$}),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(cL).initEntityValue)((0,nl.A)(r)),r}return(0,eC.A)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(cL).registerField;this.cancelRegisterFunc=r(this)}!0===t&&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 e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:x.isValidElement(o)?e=x.cloneElement(o,this.getControlled(o.props)):(B(!o,"`children` of Field is not validate ReactElement."),e=o),x.createElement(x.Fragment,{key:t},e)}}]),n}(x.Component);(0,eX.A)(sS,"contextType",cW),(0,eX.A)(sS,"defaultProps",{trigger:"onChange",valuePropName:"value"});let sk=function(e){var t,n=e.name,r=(0,r3.A)(e,sw),o=x.useContext(cW),a=x.useContext(c_),i=void 0!==n?sh(n):void 0,l=null!=(t=r.isListField)?t:!!a,c="keep";return l||(c="_".concat((i||[]).join("_"))),x.createElement(sS,S({key:c,name:i,isListField:l},r,{fieldContext:o}))},sO=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=x.useContext(cW),c=x.useContext(c_),s=x.useRef({keys:[],id:0}).current,u=x.useMemo(function(){var e=sh(l.prefixName)||[];return[].concat((0,eM.A)(e),(0,eM.A)(sh(t)))},[l.prefixName,t]),d=x.useMemo(function(){return(0,D.A)((0,D.A)({},l),{},{prefixName:u})},[l,u]),f=x.useMemo(function(){return{getKey:function(e){var t=u.length,n=e[t];return[s.keys[n],e.slice(t+1)]}}},[u]);return"function"!=typeof r?(B(!1,"Form.List only accepts function as children."),null):x.createElement(c_.Provider,{value:f},x.createElement(cW.Provider,{value:d},x.createElement(sk,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=i?i:!!c},function(e,t){var n=e.value,o=e.onChange,a=l.getFieldValue,i=function(){return a(u||[])||[]},c=(void 0===n?[]:n)||[];return Array.isArray(c)||(c=[]),r(c.map(function(e,t){var n=s.keys[t];return void 0===n&&(s.keys[t]=s.id,n=s.keys[t],s.id+=1),{name:t,key:n,isListField:!0}}),{add:function(e,t){var n=i();t>=0&&t<=n.length?(s.keys=[].concat((0,eM.A)(s.keys.slice(0,t)),[s.id],(0,eM.A)(s.keys.slice(t))),o([].concat((0,eM.A)(n.slice(0,t)),[e],(0,eM.A)(n.slice(t))))):(s.keys=[].concat((0,eM.A)(s.keys),[s.id]),o([].concat((0,eM.A)(n),[e]))),s.id+=1},remove:function(e){var t=i(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=i();e<0||e>=n.length||t<0||t>=n.length||(s.keys=sx(s.keys,e,t),o(sx(n,e,t)))}}},t)})))};var sA="__@field_split__";function sI(e){return e.map(function(e){return"".concat((0,k.A)(e),":").concat(e)}).join(sA)}var sN=function(){function e(){(0,ew.A)(this,e),(0,eX.A)(this,"kvs",new Map)}return(0,eC.A)(e,[{key:"set",value:function(e,t){this.kvs.set(sI(e),t)}},{key:"get",value:function(e){return this.kvs.get(sI(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(sI(e))}},{key:"map",value:function(e){return(0,eM.A)(this.kvs.entries()).map(function(t){var n=(0,eK.A)(t,2),r=n[0],o=n[1];return e({key:r.split(sA).map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,eK.A)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),sj=["name"],sM=(0,eC.A)(function e(t){var n=this;(0,ew.A)(this,e),(0,eX.A)(this,"formHooked",!1),(0,eX.A)(this,"forceRootUpdate",void 0),(0,eX.A)(this,"subscribable",!0),(0,eX.A)(this,"store",{}),(0,eX.A)(this,"fieldEntities",[]),(0,eX.A)(this,"initialValues",{}),(0,eX.A)(this,"callbacks",{}),(0,eX.A)(this,"validateMessages",null),(0,eX.A)(this,"preserve",null),(0,eX.A)(this,"lastValidatePromise",null),(0,eX.A)(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),(0,eX.A)(this,"getInternalHooks",function(e){return e===cL?(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}):(B(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,eX.A)(this,"useSubscribe",function(e){n.subscribable=e}),(0,eX.A)(this,"prevWithoutPreserves",null),(0,eX.A)(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=nI(e,n.store);null==(r=n.prevWithoutPreserves)||r.map(function(t){var n=t.key;o=nk(o,n,n$(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),(0,eX.A)(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new sN;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),(0,eX.A)(this,"getInitialValue",function(e){var t=n$(n.initialValues,e);return e.length?nI(t):t}),(0,eX.A)(this,"setCallbacks",function(e){n.callbacks=e}),(0,eX.A)(this,"setValidateMessages",function(e){n.validateMessages=e}),(0,eX.A)(this,"setPreserve",function(e){n.preserve=e}),(0,eX.A)(this,"watchList",[]),(0,eX.A)(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),(0,eX.A)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),(0,eX.A)(this,"timeoutId",null),(0,eX.A)(this,"warningUnhooked",function(){}),(0,eX.A)(this,"updateStore",function(e){n.store=e}),(0,eX.A)(this,"getFieldEntities",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),(0,eX.A)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new sN;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),(0,eX.A)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=sh(e);return t.get(n)||{INVALIDATE_NAME_PATH:sh(e)}})}),(0,eX.A)(this,"getFieldsValue",function(e,t){if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,k.A)(e)&&(a=e.strict,o=e.filter),!0===r&&!o)return n.store;var r,o,a,i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return i.forEach(function(e){var t,n,i,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){if(null!=(i=e.isList)&&i.call(e))return}else if(!r&&null!=(t=(n=e).isListField)&&t.call(n))return;if(o){var s="getMeta"in e?e.getMeta():null;o(s)&&l.push(c)}else l.push(c)}),sv(n.store,l.map(sh))}),(0,eX.A)(this,"getFieldValue",function(e){n.warningUnhooked();var t=sh(e);return n$(n.store,t)}),(0,eX.A)(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return!t||"INVALIDATE_NAME_PATH"in t?{name:sh(e[n]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})}),(0,eX.A)(this,"getFieldError",function(e){n.warningUnhooked();var t=sh(e);return n.getFieldsError([t])[0].errors}),(0,eX.A)(this,"getFieldWarning",function(e){n.warningUnhooked();var t=sh(e);return n.getFieldsError([t])[0].warnings}),(0,eX.A)(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var a=r[0],i=r[1],l=!1;0===r.length?e=null:1===r.length?Array.isArray(a)?(e=a.map(sh),l=!1):(e=null,l=a):(e=a.map(sh),l=i);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!e)return l?c.every(function(e){return s(e)||e.isList()}):c.some(s);var u=new sN;e.forEach(function(e){u.set(e,[])}),c.forEach(function(t){var n=t.getNamePath();e.forEach(function(e){e.every(function(e,t){return n[t]===e})&&u.update(e,function(e){return[].concat((0,eM.A)(e),[t])})})});var d=function(e){return e.some(s)},f=u.map(function(e){return e.value});return l?f.every(d):f.some(d)}),(0,eX.A)(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),(0,eX.A)(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(sh);return t.some(function(e){return sb(r,e.getNamePath())&&e.isFieldValidating()})}),(0,eX.A)(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),(0,eX.A)(this,"resetWithFieldInitialValue",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new sN,o=n.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,(0,eM.A)((0,eM.A)(o).map(function(e){return e.entity})))})):e=o,e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))B(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=r.get(o);if(a&&a.size>1)B(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==i||n.updateStore(nk(n.store,o,(0,eM.A)(a)[0].value))}}}})}),(0,eX.A)(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore(nI(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),n.notifyWatch();return}var r=e.map(sh);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(nk(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),(0,eX.A)(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,a=(0,r3.A)(e,sj),i=sh(o);r.push(i),"value"in a&&n.updateStore(nk(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})}),n.notifyWatch(r)}),(0,eX.A)(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,D.A)((0,D.A)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})}),(0,eX.A)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===n$(n.store,r)&&n.updateStore(nk(n.store,r,t))}}),(0,eX.A)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),(0,eX.A)(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||a.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every(function(e){return!sy(e.getNamePath(),t)})){var l=n.store;n.updateStore(nk(l,t,i,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),(0,eX.A)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,a=e.triggerName;n.validateFields([o],{triggerName:a})}}),(0,eX.A)(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=(0,D.A)((0,D.A)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),(0,eX.A)(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,eM.A)(r))}),r}),(0,eX.A)(this,"updateValue",function(e,t){var r=sh(e),o=n.store;n.updateStore(nk(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(o,r),i=n.callbacks.onValuesChange;i&&i(sv(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,eM.A)(a)))}),(0,eX.A)(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=nI(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),(0,eX.A)(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),(0,eX.A)(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new sN;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=sh(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),!function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),(0,eX.A)(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new sN;t.forEach(function(e){var t=e.name,n=e.errors;a.set(t,n)}),o.forEach(function(e){e.errors=a.get(e.name)||e.errors})}var i=o.filter(function(t){return sb(e,t.name)});i.length&&r(i,o)}}),(0,eX.A)(this,"validateFields",function(e,t){n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(i=e,l=t):l=e;var r,o,a,i,l,c=!!i,s=c?i.map(sh):[],u=[],d=String(Date.now()),f=new Set,p=l||{},m=p.recursive,g=p.dirty;n.getFieldEntities(!0).forEach(function(e){if((c||s.push(e.getNamePath()),e.props.rules&&e.props.rules.length)&&(!g||e.isFieldDirty())){var t=e.getNamePath();if(f.add(t.join(d)),!c||sb(s,t,m)){var r=e.validateRules((0,D.A)({validateMessages:(0,D.A)((0,D.A)({},su),n.validateMessages)},l));u.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return(null==(n=e.forEach)||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,(0,eM.A)(n)):r.push.apply(r,(0,eM.A)(n))}),r.length)?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var h=(r=!1,o=u.length,a=[],u.length?new Promise(function(e,t){u.forEach(function(n,i){n.catch(function(e){return r=!0,e}).then(function(n){o-=1,a[i]=n,o>0||(r&&t(a),e(a))})})}):Promise.resolve([]));n.lastValidatePromise=h,h.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var v=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:t,outOfDate:n.lastValidatePromise!==h})});v.catch(function(e){return e});var b=s.filter(function(e){return f.has(e.join(d))});return n.triggerOnFieldsChange(b),v}),(0,eX.A)(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});let sR=function(e){var t=x.useRef(),n=x.useState({}),r=(0,eK.A)(n,2)[1];return t.current||(e?t.current=e:t.current=new sM(function(){r({})}).getForm()),[t.current]};var sP=x.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sT=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=x.useContext(sP),i=x.useRef({});return x.createElement(sP.Provider,{value:(0,D.A)((0,D.A)({},a),{},{validateMessages:(0,D.A)((0,D.A)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:i.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(i.current=(0,D.A)((0,D.A)({},i.current),{},(0,eX.A)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,D.A)({},i.current);delete t[e],i.current=t,a.unregisterForm(e)}})},o)},sz=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];function sB(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var sD=function(){};let sH=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=void 0===o?{}:o,i=a&&a._init?{form:a}:a,l=i.form,c=(0,x.useState)(),s=(0,eK.A)(c,2),u=s[0],d=s[1],f=(0,x.useMemo)(function(){return sB(u)},[u]),p=(0,x.useRef)(f);p.current=f;var m=(0,x.useContext)(cW),g=l||m,h=g&&g._init,v=sh(r),b=(0,x.useRef)(v);return b.current=v,sD(v),(0,x.useEffect)(function(){if(h){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(cL).registerWatch,n=function(e,t){var n=i.preserve?t:e;return"function"==typeof r?r(n):n$(n,b.current)},o=t(function(e,t){var r=n(e,t),o=sB(r);p.current!==o&&(p.current=o,d(r))}),a=n(e(),e(!0));return u!==a&&d(a),o}},[h]),u};var sL=x.forwardRef(function(e,t){var n,r=e.name,o=e.initialValues,a=e.fields,i=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,m=e.onValuesChange,g=e.onFieldsChange,h=e.onFinish,v=e.onFinishFailed,b=e.clearOnDestroy,y=(0,r3.A)(e,sz),$=x.useRef(null),w=x.useContext(sP),C=sR(i),E=(0,eK.A)(C,1)[0],O=E.getInternalHooks(cL),A=O.useSubscribe,I=O.setInitialValues,N=O.setCallbacks,j=O.setValidateMessages,M=O.setPreserve,R=O.destroyForm;x.useImperativeHandle(t,function(){return(0,D.A)((0,D.A)({},E),{},{nativeElement:$.current})}),x.useEffect(function(){return w.registerForm(r,E),function(){w.unregisterForm(r)}},[w,E,r]),j((0,D.A)((0,D.A)({},w.validateMessages),d)),N({onValuesChange:m,onFieldsChange:function(e){if(w.triggerFormChange(r,e),g){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];g.apply(void 0,[e].concat(n))}},onFinish:function(e){w.triggerFormFinish(r,e),h&&h(e)},onFinishFailed:v}),M(l);var P=x.useRef(null);I(o,!P.current),P.current||(P.current=!0),x.useEffect(function(){return function(){return R(b)}},[]);var T="function"==typeof c;n=T?c(E.getFieldsValue(!0),E):c,A(!T);var z=x.useRef();x.useEffect(function(){!function(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||"object"!==(0,k.A)(e)||"object"!==(0,k.A)(t))return!1;var n=new Set([].concat(Object.keys(e),Object.keys(t)));return(0,eM.A)(n).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})}(z.current||[],a||[])&&E.setFields(a||[]),z.current=a},[a,E]);var B=x.useMemo(function(){return(0,D.A)((0,D.A)({},E),{},{validateTrigger:p})},[E,p]),H=x.createElement(c_.Provider,{value:null},x.createElement(cW.Provider,{value:B},n));return!1===u?H:x.createElement(u,S({},y,{ref:$,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null==(t=y.onReset)||t.call(y,e)}}),H)});sL.FormProvider=sT,sL.Field=sk,sL.List=sO,sL.useForm=sR,sL.useWatch=sH;let sF=x.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),sW=x.createContext(null),s_=e=>{let t=iX(e,["prefixCls"]);return x.createElement(sT,Object.assign({},t))},sV=x.createContext({prefixCls:""}),sq=x.createContext({}),sK=({children:e,status:t,override:n})=>{let r=x.useContext(sq),o=x.useMemo(()=>{let e=Object.assign({},r);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return x.createElement(sq.Provider,{value:o},e)},sX=x.createContext(void 0),sG=e=>{let{space:t,form:n,children:r}=e;if(null==r)return null;let o=r;return n&&(o=w().createElement(sK,{override:!0,status:!0},o)),t&&(o=w().createElement(i5,null,o)),o},sY=function(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t};function sU(e){if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function sQ(e){let{closable:t,closeIcon:n}=e||{};return w().useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}let sZ={},sJ=(e,t,n=sZ)=>{let r=sQ(e),o=sQ(t),[a]=iK("global",io.global),i="boolean"!=typeof r&&!!(null==r?void 0:r.disabled),l=w().useMemo(()=>Object.assign({closeIcon:w().createElement(of,null)},n),[n]),c=w().useMemo(()=>!1!==r&&(r?sY(l,o,r):!1!==o&&(o?sY(l,o):!!l.closable&&l)),[r,o,l]);return w().useMemo(()=>{var e,t;if(!1===c)return[!1,null,i,{}];let{closeIconRender:n}=l,{closeIcon:r}=c,o=r,s=o5(c,!0);return null!=o&&(n&&(o=n(r)),o=w().isValidElement(o)?w().cloneElement(o,Object.assign(Object.assign(Object.assign({},o.props),{"aria-label":null!=(t=null==(e=o.props)?void 0:e["aria-label"])?t:a.close}),s)):w().createElement("span",Object.assign({"aria-label":a.close},s),o)),[!0,o,i,s]},[i,a.close,c,l])},s0=e=>{let{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=E()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=E()({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),c=x.useMemo(()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return x.createElement("span",{className:E()(t,i,l,n),style:Object.assign(Object.assign({},c),r)})},s1=new na("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),s2=e=>({height:e,lineHeight:tg(e)}),s4=e=>Object.assign({width:e},s2(e)),s3=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},s2(e)),s6=e=>Object.assign({width:e},s2(e)),s5=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},s8=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},s2(e)),s7=rK("Skeleton",e=>{let{componentCls:t,calc:n}=e;return(e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:h,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},s4(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},s4(s)),[`${n}-sm`]:Object.assign({},s4(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},(e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},s8(r,l))},s5(e,r,n)),{[`${n}-lg`]:Object.assign({},s8(o,l))}),s5(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},s8(a,l))}),s5(e,a,`${n}-sm`))})(e)),(e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},s4(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},s4(o)),[`${t}${t}-sm`]:Object.assign({},s4(a))}})(e)),(e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},s3(t,l)),[`${r}-lg`]:Object.assign({},s3(o,l)),[`${r}-sm`]:Object.assign({},s3(a,l))}})(e)),(e=>{let{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},s6(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},s6(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}})(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
60
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}})(t),(e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}})(t),(e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}})(t),lq(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"})),lX=Object.assign(x.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,expandIcon:o,className:a,style:i}=eq("collapse"),{prefixCls:l,className:c,rootClassName:s,style:u,bordered:d=!0,ghost:f,size:p,expandIconPosition:m="start",children:g,destroyInactivePanel:h,destroyOnHidden:v,expandIcon:b}=e,y=i1(e=>{var t;return null!=(t=null!=p?p:e)?t:"middle"}),$=n("collapse",l),w=n(),[C,S,k]=lK($),O=x.useMemo(()=>"left"===m?"start":"right"===m?"end":m,[m]),A=null!=b?b:o,I=x.useCallback((e={})=>{let t="function"==typeof A?A(e):x.createElement(lT,{rotate:e.isActive?"rtl"===r?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return o9(t,()=>{var e;return{className:E()(null==(e=t.props)?void 0:e.className,`${$}-arrow`)}})},[A,$,r]),N=E()(`${$}-icon-position-${O}`,{[`${$}-borderless`]:!d,[`${$}-rtl`]:"rtl"===r,[`${$}-ghost`]:!!f,[`${$}-${y}`]:"middle"!==y},a,c,s,S,k),M=x.useMemo(()=>Object.assign(Object.assign({},iq(w)),{motionAppear:!1,leavedClassName:`${$}-content-hidden`}),[w,$]),R=x.useMemo(()=>g?j(g).map((e,t)=>{var n,r;let o=e.props;if(null==o?void 0:o.disabled){let a=null!=(n=e.key)?n:String(t),i=Object.assign(Object.assign({},iX(e.props,["disabled"])),{key:a,collapsible:null!=(r=o.collapsible)?r:"disabled"});return o9(e,i)}return e}):null,[g]);return C(x.createElement(l_,Object.assign({ref:t,openMotion:M},iX(e,["rootClassName"]),{expandIcon:I,prefixCls:$,className:N,style:Object.assign(Object.assign({},i),u),destroyInactivePanel:null!=v?v:h}),R))}),{Panel:lV}),lG=e=>e instanceof lR?e:new lR(e),lY=e=>Math.round(Number(e||0)),lU=e=>lY(100*e.toHsb().a),lQ=(e,t)=>{let n=e.toRgb();if(!n.r&&!n.g&&!n.b){let n=e.toHsb();return n.a=t||1,lG(n)}return n.a=t||1,lG(n)},lZ=(e,t)=>{let n=[{percent:0,color:e[0].color}].concat((0,eM.A)(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<n.length-1;e+=1){let r=n[e].percent,o=n[e+1].percent,a=n[e].color,i=n[e+1].color;if(r<=t&&t<=o){let e=o-r;if(0===e)return a;let n=(t-r)/e*100,l=new lh(a),c=new lh(i);return l.mix(c,n).toRgbString()}}return""},lJ=e=>e.map(e=>(e.colors=e.colors.map(lG),e)),l0=(e,t)=>{let{r:n,g:r,b:o,a}=e.toRgb(),i=new lh(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:.299*n+.587*r+.114*o>192},l1=(e,t)=>{var n;let r=null!=(n=e.key)?n:t;return`panel-${r}`},l2=({prefixCls:e,presets:t,value:n,onChange:r})=>{let[o]=iK("ColorPicker"),[,a]=rq(),[i]=ny(lJ(t),{value:lJ(t),postState:lJ}),l=`${e}-presets`,c=(0,x.useMemo)(()=>i.reduce((e,t,n)=>{let{defaultOpen:r=!0}=t;return r&&e.push(l1(t,n)),e},[]),[i]),s=i.map((t,i)=>{var c;return{key:l1(t,i),label:w().createElement("div",{className:`${l}-label`},null==t?void 0:t.label),children:w().createElement("div",{className:`${l}-items`},Array.isArray(null==t?void 0:t.colors)&&(null==(c=t.colors)?void 0:c.length)>0?t.colors.map((t,o)=>w().createElement(lx,{key:`preset-${o}-${t.toHexString()}`,color:lG(t).toRgbString(),prefixCls:e,className:E()(`${l}-color`,{[`${l}-color-checked`]:t.toHexString()===(null==n?void 0:n.toHexString()),[`${l}-color-bright`]:l0(t,a.colorBgElevated)}),onClick:()=>{null==r||r(t)}})):w().createElement("span",{className:`${l}-empty`},o.presetEmpty))}});return w().createElement("div",{className:l},w().createElement(lX,{defaultActiveKey:c,ghost:!0,items:s}))},l4=e=>{let{paddingInline:t,onlyIconSize:n}=e;return nR(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},l3=e=>{var t,n,r,o,a,i;let l=null!=(t=e.contentFontSize)?t:e.fontSize,c=null!=(n=e.contentFontSizeSM)?n:e.fontSize,s=null!=(r=e.contentFontSizeLG)?r:e.fontSizeLG,u=null!=(o=e.contentLineHeight)?o:(l+8)/l,d=null!=(a=e.contentLineHeightSM)?a:(c+8)/c,f=null!=(i=e.contentLineHeightLG)?i:(s+8)/s,p=l0(new lR(e.colorBgSolid),"#fff")?"#000":"#fff";return Object.assign(Object.assign({},le.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${tg(e.controlOutlineWidth)} 0 ${rB(e[`${n}1`],e.colorBgContainer)}`}),{})),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)})},l6=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),l5=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},l6(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),l8=(e,t,n,r)=>Object.assign(Object.assign({},(r&&["link","text"].includes(r)?e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}):e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},{cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"})}))(e)),l6(e.componentCls,t,n)),l7=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},l8(e,r,o))}),l9=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},l8(e,r,o))}),ce=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ct=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},l8(e,n,r))}),cn=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},l8(e,r,o,n))}),cr=(e,t="")=>{let{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:s}=e;return[{[t]:{fontSize:o,height:r,padding:`${tg(c)} ${tg(i)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:s}}}},{[`${n}${n}-circle${t}`]:{minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},co=rK("Button",e=>{let t=l4(e);return[(e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${tg(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:nW(),"> a":{color:"currentColor"},"&:not(:disabled)":nq(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}})(t),cr(nR(t,{fontSize:t.contentFontSize}),t.componentCls),cr(nR(t,{controlHeight:t.controlHeightSM,fontSize:t.contentFontSizeSM,padding:t.paddingXS,buttonPaddingHorizontal:t.paddingInlineSM,buttonPaddingVertical:0,borderRadius:t.borderRadiusSM,buttonIconOnlyFontSize:t.onlyIconSizeSM}),`${t.componentCls}-sm`),cr(nR(t,{controlHeight:t.controlHeightLG,fontSize:t.contentFontSizeLG,buttonPaddingHorizontal:t.paddingInlineLG,buttonPaddingVertical:0,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.onlyIconSizeLG}),`${t.componentCls}-lg`),(e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}})(t),(e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},l7(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ce(e)),ct(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),l5(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),cn(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),[`${t}-color-primary`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},l9(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ce(e)),ct(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),cn(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),cn(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),l5(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),[`${t}-color-dangerous`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},l7(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),l9(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ce(e)),ct(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),cn(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),cn(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),l5(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),[`${t}-color-link`]:Object.assign(Object.assign({},cn(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),l5(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive}))},(e=>{let{componentCls:t}=e;return le.reduce((n,r)=>{let o=e[`${r}6`],a=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],s=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},l7(e,e.colorTextLightSolid,o,{background:i},{background:s})),l9(e,o,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:s,borderColor:s,background:e.colorBgContainer})),ce(e)),ct(e,a,{color:o,background:l},{color:o,background:c})),cn(e,o,"link",{color:i},{color:s})),cn(e,o,"text",{color:i,background:a},{color:s,background:c}))})},{})})(e))})(t),Object.assign(Object.assign(Object.assign(Object.assign({},l9(t,t.defaultBorderColor,t.defaultBg,{color:t.defaultHoverColor,borderColor:t.defaultHoverBorderColor,background:t.defaultHoverBg},{color:t.defaultActiveColor,borderColor:t.defaultActiveBorderColor,background:t.defaultActiveBg})),cn(t,t.textTextColor,"text",{color:t.textTextHoverColor,background:t.textHoverBg},{color:t.textTextActiveColor,background:t.colorBgTextActive})),l7(t,t.primaryColor,t.colorPrimary,{background:t.colorPrimaryHover,color:t.primaryColor},{background:t.colorPrimaryActive,color:t.primaryColor})),cn(t,t.colorLink,"link",{color:t.colorLinkHover,background:t.linkHoverBg},{color:t.colorLinkActive})),(e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ld(`${t}-primary`,o),ld(`${t}-danger`,a)]}})(t)]},l3,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ca(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,o=r||n,a=`${o}-compact`;return{[a]:Object.assign(Object.assign({},function(e,t,n,r){let{focusElCls:o,focus:a,borderElCls:i}=n,l=i?"> *":"",c=["hover",a?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}(e,a,t,o)),function(e,t,n){let{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(o,a,t))}}let ci=rG(["Button","compact"],e=>{var t,n;let r,o=l4(e);return[ca(o),{[r=`${o.componentCls}-compact-vertical`]:Object.assign(Object.assign({},(t=o.componentCls,{[`&-item:not(${r}-last-item)`]:{marginBottom:o.calc(o.lineWidth).mul(-1).equal()},[`&-item:not(${t}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}})),(n=o.componentCls,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))},(e=>{let{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),i=e=>{let o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?a:0,insetInlineStart:e?0:a,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))})(o)]},l3);var cl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let cc={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},cs=w().forwardRef((e,t)=>{var n,r,o;let a,i,l,{loading:c=!1,prefixCls:s,color:u,variant:d,type:f,danger:p=!1,shape:m,size:g,styles:h,disabled:v,className:b,rootClassName:y,children:$,icon:C,iconPosition:S="start",ghost:k=!1,block:O=!1,htmlType:A="button",classNames:I,style:N={},autoInsertSpace:j,autoFocus:M}=e,R=cl(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),P=f||"default",{button:T}=w().useContext(eW),z=m||(null==T?void 0:T.shape)||"default",[B,D]=(0,x.useMemo)(()=>{if(u&&d)return[u,d];if(f||p){let e=cc[P]||[];return p?["danger",e[1]]:e}return(null==T?void 0:T.color)&&(null==T?void 0:T.variant)?[T.color,T.variant]:["default","outlined"]},[u,d,f,p,null==T?void 0:T.color,null==T?void 0:T.variant,P]),H="danger"===B?"dangerous":B,{getPrefixCls:L,direction:F,autoInsertSpace:W,className:_,style:V,classNames:q,styles:K}=eq("button"),X=null==(n=null!=j?j:W)||n,G=L("btn",s),[U,Q,Z]=co(G),J=(0,x.useContext)(id),ee=null!=v?v:J,et=(0,x.useContext)(i9),en=(0,x.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(c),[c]),[er,eo]=(0,x.useState)(en.loading),[ea,ei]=(0,x.useState)(!1),el=(0,x.useRef)(null),ec=Y(t,el),es=1===x.Children.count($)&&!C&&!la(D),eu=(0,x.useRef)(!0);w().useEffect(()=>(eu.current=!1,()=>{eu.current=!0}),[]),t$(()=>{let e=null;return en.delay>0?e=setTimeout(()=>{e=null,eo(!0)},en.delay):eo(en.loading),function(){e&&(clearTimeout(e),e=null)}},[en.delay,en.loading]),(0,x.useEffect)(()=>{if(!el.current||!X)return;let e=el.current.textContent||"";es&&ln(e)?ea||ei(!0):ea&&ei(!1)}),(0,x.useEffect)(()=>{M&&el.current&&el.current.focus()},[]);let ed=w().useCallback(t=>{var n;er||ee?t.preventDefault():null==(n=e.onClick)||n.call(e,("href"in e,t))},[e.onClick,er,ee]),{compactSize:ef,compactItemClassnames:ep}=i6(G,F),em=i1(e=>{var t,n;return null!=(n=null!=(t=null!=g?g:ef)?t:et)?n:e}),eg=em&&null!=(r=({large:"lg",small:"sm",middle:void 0})[em])?r:"",eh=er?"loading":C,ev=iX(R,["navigate"]),eb=E()(G,Q,Z,{[`${G}-${z}`]:"default"!==z&&z,[`${G}-${P}`]:P,[`${G}-dangerous`]:p,[`${G}-color-${H}`]:H,[`${G}-variant-${D}`]:D,[`${G}-${eg}`]:eg,[`${G}-icon-only`]:!$&&0!==$&&!!eh,[`${G}-background-ghost`]:k&&!la(D),[`${G}-loading`]:er,[`${G}-two-chinese-chars`]:ea&&X&&!er,[`${G}-block`]:O,[`${G}-rtl`]:"rtl"===F,[`${G}-icon-end`]:"end"===S},ep,b,y,_),ey=Object.assign(Object.assign({},V),N),e$=E()(null==I?void 0:I.icon,q.icon),ex=Object.assign(Object.assign({},(null==h?void 0:h.icon)||{}),K.icon||{}),ew=e=>w().createElement(li,{prefixCls:G,className:e$,style:ex},e);a=C&&!er?ew(C):c&&"object"==typeof c&&c.icon?ew(c.icon):w().createElement(lu,{existIcon:!!C,prefixCls:G,loading:er,mount:eu.current});let eC=$||0===$?(o=es&&X,i=!1,l=[],w().Children.forEach($,e=>{let t=typeof e,n="string"===t||"number"===t;if(i&&n){let t=l.length-1,n=l[t];l[t]=`${n}${e}`}else l.push(e);i=n}),w().Children.map(l,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&lo(e.type)&&ln(e.props.children)?o9(e,{children:e.props.children.split("").join(n)}):lo(e)?ln(e)?w().createElement("span",null,e.split("").join(n)):w().createElement("span",null,e):o8(e)?w().createElement("span",null,e):e})(e,o))):null;if(void 0!==ev.href)return U(w().createElement("a",Object.assign({},ev,{className:E()(eb,{[`${G}-disabled`]:ee}),href:ee?void 0:ev.href,style:ey,onClick:ed,ref:ec,tabIndex:ee?-1:0,"aria-disabled":ee}),a,eC));let eE=w().createElement("button",Object.assign({},R,{type:A,className:eb,style:ey,onClick:ed,disabled:ee,ref:ec}),a,eC,ep&&w().createElement(ci,{prefixCls:G}));return la(D)||(eE=w().createElement(i0,{component:"Button",disabled:er},eE)),U(eE)});cs.Group=e=>{let{getPrefixCls:t,direction:n}=x.useContext(eW),{prefixCls:r,size:o,className:a}=e,i=i7(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=rq(),s=x.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=E()(l,{[`${l}-${s}`]:s,[`${l}-rtl`]:"rtl"===n},a,c);return x.createElement(i9.Provider,{value:o},x.createElement("div",Object.assign({},i,{className:u})))},cs.__ANT_BUTTON=!0;let cu=cs,cd=e=>"function"==typeof(null==e?void 0:e.then),cf=e=>{let{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:c,quitOnNullishReturnValue:s,actionFn:u}=e,d=x.useRef(!1),f=x.useRef(null),[p,m]=nv(!1),g=(...e)=>{null==a||a.apply(void 0,e)};return x.useEffect(()=>{let e=null;return i&&(e=setTimeout(()=>{var e;null==(e=f.current)||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[i]),x.createElement(cu,Object.assign({},lr(t),{onClick:e=>{let t;if(!d.current){var n;if(d.current=!0,!u)return void g();if(l){if(t=u(e),s&&!cd(t)){d.current=!1,g(e);return}}else if(u.length)t=u(a),d.current=!1;else if(!cd(t=u()))return void g();cd(n=t)&&(m(!0),n.then((...e)=>{m(!1,!0),g.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,null==c||!c())return Promise.reject(e)}))}},loading:p,prefixCls:r},o,{ref:f}),n)},cp=w().createContext({}),{Provider:cm}=cp,cg=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:c}=(0,x.useContext)(cp);return o?w().createElement(cf,{isSilent:r,actionFn:l,close:(...e)=>{null==i||i.apply(void 0,e),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},ch=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:c}=(0,x.useContext)(cp);return w().createElement(cf,{isSilent:n,type:i||"primary",actionFn:c,close:(...e)=>{null==t||t.apply(void 0,e),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},a)};var cv=x.createContext(null),cb=[];function cy(e){var t,n,r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),o=document.createElement("div");o.id=r;var a=o.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var i=getComputedStyle(e);a.scrollbarColor=i.scrollbarColor,a.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";e5("\n#".concat(r,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),r)}catch(e){console.error(e),t=c,n=s}}document.body.appendChild(o);var f=e&&t&&!isNaN(t)?t:o.offsetWidth-o.clientWidth,p=e&&n&&!isNaN(n)?n:o.offsetHeight-o.clientHeight;return document.body.removeChild(o),e6(r),{width:f,height:p}}function c$(e){return"u"<typeof document?0:((e||void 0===b)&&(b=cy()),b.width)}function cx(e){return!("u"<typeof document)&&e&&e instanceof Element?cy(e):{width:0,height:0}}var cw="rc-util-locker-".concat(Date.now()),cC=0,cE=function(e){return!1!==e&&(eY()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},cS=x.forwardRef(function(e,t){var n,r,o,a=e.open,i=e.autoLock,l=e.getContainer,c=(e.debug,e.autoDestroy),s=void 0===c||c,u=e.children,d=x.useState(a),f=(0,eK.A)(d,2),p=f[0],m=f[1],g=p||a;x.useEffect(function(){(s||a)&&m(a)},[a,s]);var h=x.useState(function(){return cE(l)}),v=(0,eK.A)(h,2),b=v[0],y=v[1];x.useEffect(function(){var e=cE(l);y(null!=e?e:null)});var $=function(e){var t=x.useState(function(){return eY()?document.createElement("div"):null}),n=(0,eK.A)(t,1)[0],r=x.useRef(!1),o=x.useContext(cv),a=x.useState(cb),i=(0,eK.A)(a,2),l=i[0],c=i[1],s=o||(r.current?void 0:function(e){c(function(t){return[e].concat((0,eM.A)(t))})});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function d(){var e;null==(e=n.parentElement)||e.removeChild(n),r.current=!1}return t$(function(){return e?o?o(u):u():d(),d},[e]),t$(function(){l.length&&(l.forEach(function(e){return e()}),c(cb))},[l]),[n,s]}(g&&!b),w=(0,eK.A)($,2),C=w[0],E=w[1],S=null!=b?b:C;n=!!(i&&a&&eY()&&(S===C||S===document.body)),r=x.useState(function(){return cC+=1,"".concat(cw,"_").concat(cC)}),t$(function(){if(n){var e=cx(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;e5("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else e6(o);return function(){e6(o)}},[n,o=(0,eK.A)(r,1)[0]]);var k=null;u&&U(u)&&t&&(k=u.ref);var O=Y(k,t);if(!g||!eY()||void 0===b)return null;var A=!1===S,I=u;return t&&(I=x.cloneElement(u,{ref:O})),x.createElement(cv.Provider,{value:E},A?I:(0,H.createPortal)(I,S))}),ck=x.createContext({}),cO=0,cA=(0,D.A)({},x).useId;let cI=cA?function(e){var t=cA();return e||t}:function(e){var t=x.useState("ssr-id"),n=(0,eK.A)(t,2),r=n[0],o=n[1];return(x.useEffect(function(){var e=cO;cO+=1,o("rc_unique_".concat(e))},[]),e)?e:r};function cN(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function cj(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}let cM=x.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var cR={width:0,height:0,overflow:"hidden",outline:"none"},cP={outline:"none"},cT=w().forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,l=e.footer,c=e.closable,s=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,m=e.modalRender,g=e.onMouseDown,h=e.onMouseUp,v=e.holderRef,b=e.visible,y=e.forceRender,$=e.width,C=e.height,O=e.classNames,A=e.styles,I=Y(v,w().useContext(ck).panel),N=(0,x.useRef)(),j=(0,x.useRef)();w().useImperativeHandle(t,function(){return{focus:function(){var e;null==(e=N.current)||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===j.current?N.current.focus({preventScroll:!0}):e||t!==N.current||j.current.focus({preventScroll:!0})}}});var M={};void 0!==$&&(M.width=$),void 0!==C&&(M.height=C);var R=l?w().createElement("div",{className:E()("".concat(n,"-footer"),null==O?void 0:O.footer),style:(0,D.A)({},null==A?void 0:A.footer)},l):null,P=a?w().createElement("div",{className:E()("".concat(n,"-header"),null==O?void 0:O.header),style:(0,D.A)({},null==A?void 0:A.header)},w().createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,T=(0,x.useMemo)(function(){return"object"===(0,k.A)(c)&&null!==c?c:c?{closeIcon:null!=s?s:w().createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,s,n]),z=o5(T,!0),B="object"===(0,k.A)(c)&&c.disabled,H=c?w().createElement("button",S({type:"button",onClick:u,"aria-label":"Close"},z,{className:"".concat(n,"-close"),disabled:B}),T.closeIcon):null,L=w().createElement("div",{className:E()("".concat(n,"-content"),null==O?void 0:O.content),style:null==A?void 0:A.content},H,P,w().createElement("div",S({className:E()("".concat(n,"-body"),null==O?void 0:O.body),style:(0,D.A)((0,D.A)({},f),null==A?void 0:A.body)},p),d),R);return w().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:I,style:(0,D.A)((0,D.A)({},o),M),className:E()(n,r),onMouseDown:g,onMouseUp:h},w().createElement("div",{ref:N,tabIndex:0,style:cP},w().createElement(cM,{shouldUpdate:b||y},m?m(L):L)),w().createElement("div",{tabIndex:0,ref:j,style:cR}))}),cz=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,l=e.forceRender,c=e.destroyOnClose,s=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=(0,x.useRef)(),m=x.useState(),g=(0,eK.A)(m,2),h=g[0],v=g[1],b={};function y(){var e,t,n,r,o,a=(n={left:(t=(e=p.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=cj(o),n.top+=cj(o,!0),n);v(f&&(f.x||f.y)?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return h&&(b.transformOrigin=h),x.createElement(oG,{visible:i,onVisibleChanged:d,onAppearPrepare:y,onEnterPrepare:y,forceRender:l,motionName:s,removeOnLeave:c,ref:p},function(i,l){var c=i.className,s=i.style;return x.createElement(cT,S({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:l,style:(0,D.A)((0,D.A)((0,D.A)({},s),o),b),className:E()(a,c)}))})});cz.displayName="Content";let cB=function(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return x.createElement(oG,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var a=e.className,l=e.style;return x.createElement("div",S({ref:r,style:(0,D.A)((0,D.A)({},l),n),className:E()("".concat(t,"-mask"),a,i)},o))})},cD=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,a=void 0!==o&&o,i=e.keyboard,l=void 0===i||i,c=e.focusTriggerAfterClose,s=void 0===c||c,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,m=e.afterOpenChange,g=e.afterClose,h=e.transitionName,v=e.animation,b=e.closable,y=e.mask,$=void 0===y||y,w=e.maskTransitionName,C=e.maskAnimation,k=e.maskClosable,O=e.maskStyle,A=e.maskProps,I=e.rootClassName,N=e.classNames,j=e.styles,M=(0,x.useRef)(),R=(0,x.useRef)(),P=(0,x.useRef)(),T=x.useState(a),z=(0,eK.A)(T,2),B=z[0],H=z[1],L=cI();function F(e){null==p||p(e)}var W=(0,x.useRef)(!1),_=(0,x.useRef)(),V=null;(void 0===k||k)&&(V=function(e){W.current?W.current=!1:R.current===e.target&&F(e)}),(0,x.useEffect)(function(){a&&(H(!0),eU(R.current,document.activeElement)||(M.current=document.activeElement))},[a]),(0,x.useEffect)(function(){return function(){clearTimeout(_.current)}},[]);var q=(0,D.A)((0,D.A)((0,D.A)({zIndex:r},u),null==j?void 0:j.wrapper),{},{display:B?null:"none"});return x.createElement("div",S({className:E()("".concat(n,"-root"),I)},o5(e,{data:!0})),x.createElement(cB,{prefixCls:n,visible:$&&a,motionName:cN(n,w,C),style:(0,D.A)((0,D.A)({zIndex:r},O),null==j?void 0:j.mask),maskProps:A,className:null==N?void 0:N.mask}),x.createElement("div",S({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===aM.ESC){e.stopPropagation(),F(e);return}a&&e.keyCode===aM.TAB&&P.current.changeActive(!e.shiftKey)},className:E()("".concat(n,"-wrap"),d,null==N?void 0:N.wrapper),ref:R,onClick:V,style:q},f),x.createElement(cz,S({},e,{onMouseDown:function(){clearTimeout(_.current),W.current=!0},onMouseUp:function(){_.current=setTimeout(function(){W.current=!1})},ref:P,closable:void 0===b||b,ariaId:L,prefixCls:n,visible:a&&B,onClose:F,onVisibleChanged:function(e){if(e){if(!eU(R.current,document.activeElement)){var t;null==(t=P.current)||t.focus()}}else{if(H(!1),$&&M.current&&s){try{M.current.focus({preventScroll:!0})}catch(e){}M.current=null}B&&(null==g||g())}null==m||m(e)},motionName:cN(n,h,v)}))))};var cH=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,i=e.afterClose,l=e.panelRef,c=x.useState(t),s=(0,eK.A)(c,2),u=s[0],d=s[1],f=x.useMemo(function(){return{panel:l}},[l]);return(x.useEffect(function(){t&&d(!0)},[t]),r||!a||u)?x.createElement(ck.Provider,{value:f},x.createElement(cS,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},x.createElement(cD,S({},e,{destroyOnClose:a,afterClose:function(){null==i||i(),d(!1)}})))):null};cH.displayName="Dialog";var cL="RC_FORM_INTERNAL_HOOKS",cF=function(){B(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},cW=x.createContext({getFieldValue:cF,getFieldsValue:cF,getFieldError:cF,getFieldWarning:cF,getFieldsError:cF,isFieldsTouched:cF,isFieldTouched:cF,isFieldValidating:cF,isFieldsValidating:cF,resetFields:cF,setFields:cF,setFieldValue:cF,setFieldsValue:cF,validateFields:cF,submit:cF,getInternalHooks:function(){return cF(),{dispatch:cF,initEntityValue:cF,registerField:cF,useSubscribe:cF,setInitialValues:cF,destroyForm:cF,setCallbacks:cF,registerWatch:cF,getFields:cF,setValidateMessages:cF,setPreserve:cF,getInitialValue:cF}}}),c_=x.createContext(null);function cV(e){return null==e?[]:Array.isArray(e)?e:[e]}function cq(){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",tel:"%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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var cK=cq(),cX=n(3413);function cG(e){var t="function"==typeof Map?new Map:void 0;return(cG=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if((0,ek.A)())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&(0,cX.A)(o,n.prototype),o}(e,arguments,(0,eS.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,cX.A)(n,e)})(e)}var cY=/%[sdj%]/g;function cU(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function cQ(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(cY,function(e){if("%%"===e)return"%";if(o>=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}default:return e}}):e}function cZ(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t||"tel"===t)&&"string"==typeof e&&!e||!1}function cJ(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)return void n(i);var l=r;r+=1,l<o?t(e[l],a):n([])}([])}"u">typeof process&&process.env;var c0=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e,r){var o;return(0,ew.A)(this,n),o=t.call(this,"Async Validation Error"),(0,eX.A)((0,nl.A)(o),"errors",void 0),(0,eX.A)((0,nl.A)(o),"fields",void 0),o.errors=e,o.fields=r,o}return(0,eC.A)(n)}(cG(Error));function c1(e,t){return function(n){var r;return(r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length&&void 0!=n;r++)n=n[t[r]];return n}(t,e.fullFields):t[n.field||e.fullField],n&&void 0!==n.message)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function c2(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(0,k.A)(r)&&"object"===(0,k.A)(e[n])?e[n]=(0,D.A)((0,D.A)({},e[n]),r):e[n]=r}}return e}var c4="enum";let c3=function(e,t,n,r,o,a){e.required&&(!n.hasOwnProperty(e.field)||cZ(t,a||e.type))&&r.push(cQ(o.messages.required,e.fullField))},c6=function(){if(y)return y;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),s=function(e){return e&&e.exact?i:RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(a).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:RegExp("".concat(t(e)).concat(a).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return y=RegExp("(?:^".concat(f,"$)"),"i")};var c5=/^(([^<>()\[\]\\.,;:\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,}))$/,c8=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,c7=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,c9={integer:function(e){return c9.number(e)&&parseInt(e,10)===e},float:function(e){return c9.number(e)&&!c9.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,k.A)(e)&&!c9.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(c5)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(c8)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(c6())},hex:function(e){return"string"==typeof e&&!!e.match(c7)}};let se=c3,st=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(cQ(o.messages.whitespace,e.fullField))},sn=function(e,t,n,r,o){if(e.required&&void 0===t)return void c3(e,t,n,r,o);var a=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(a)>-1?c9[a](t)||r.push(cQ(o.messages.types[a],e.fullField,e.type)):a&&(0,k.A)(t)!==e.type&&r.push(cQ(o.messages.types[a],e.fullField,e.type))},sr=function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?c!==e.len&&r.push(cQ(o.messages[s].len,e.fullField,e.len)):i&&!l&&c<e.min?r.push(cQ(o.messages[s].min,e.fullField,e.min)):l&&!i&&c>e.max?r.push(cQ(o.messages[s].max,e.fullField,e.max)):i&&l&&(c<e.min||c>e.max)&&r.push(cQ(o.messages[s].range,e.fullField,e.min,e.max))},so=function(e,t,n,r,o){e[c4]=Array.isArray(e[c4])?e[c4]:[],-1===e[c4].indexOf(t)&&r.push(cQ(o.messages[c4],e.fullField,e[c4].join(", ")))},sa=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(cQ(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(cQ(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},si=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t,a)&&!e.required)return n();se(e,t,r,i,o,a),cZ(t,a)||sn(e,t,r,i,o)}n(i)},sl={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t,"string")&&!e.required)return n();se(e,t,r,a,o,"string"),cZ(t,"string")||(sn(e,t,r,a,o),sr(e,t,r,a,o),sa(e,t,r,a,o),!0===e.whitespace&&st(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&sn(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&(sn(e,t,r,a,o),sr(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&sn(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),cZ(t)||sn(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&(sn(e,t,r,a,o),sr(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&(sn(e,t,r,a,o),sr(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();se(e,t,r,a,o,"array"),null!=t&&(sn(e,t,r,a,o),sr(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&sn(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o),void 0!==t&&so(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t,"string")&&!e.required)return n();se(e,t,r,a,o),cZ(t,"string")||sa(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t,"date")&&!e.required)return n();se(e,t,r,i,o),!cZ(t,"date")&&(a=t instanceof Date?t:new Date(t),sn(e,a,r,i,o),a&&sr(e,a.getTime(),r,i,o))}n(i)},url:si,hex:si,email:si,tel:si,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":(0,k.A)(t);se(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cZ(t)&&!e.required)return n();se(e,t,r,a,o)}n(a)}};var sc=function(){function e(t){(0,ew.A)(this,e),(0,eX.A)(this,"rules",null),(0,eX.A)(this,"_messages",cK),this.define(t)}return(0,eC.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!==(0,k.A)(e)||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=c2(cq(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},a=t,i=r,l=o;if("function"==typeof i&&(l=i,i={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,a),Promise.resolve(a);if(i.messages){var c=this.messages();c===cK&&(c=cq()),c2(c,i.messages),i.messages=c}else i.messages=this.messages();var s={};(i.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],o=a[e];r.forEach(function(r){var i=r;"function"==typeof i.transform&&(a===t&&(a=(0,D.A)({},a)),null!=(o=a[e]=i.transform(o))&&(i.type=i.type||(Array.isArray(o)?"array":(0,k.A)(o)))),(i="function"==typeof i?{validator:i}:(0,D.A)({},i)).validator=n.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=n.getType(i),s[e]=s[e]||[],s[e].push({rule:i,value:o,source:a,field:e}))})});var u={};return function(e,t,n,r,o){if(t.first){var a=new Promise(function(t,a){var i;cJ((i=[],Object.keys(e).forEach(function(t){i.push.apply(i,(0,eM.A)(e[t]||[]))}),i),n,function(e){return r(e),e.length?a(new c0(e,cU(e))):t(o)})});return a.catch(function(e){return e}),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise(function(t,a){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?a(new c0(u,cU(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];if(-1!==i.indexOf(t))cJ(r,n,d);else{var o=[],a=0,l=r.length;function c(e){o.push.apply(o,(0,eM.A)(e||[])),++a===l&&d(o)}r.forEach(function(e){n(e,c)})}})});return d.catch(function(e){return e}),d}(s,i,function(t,n){var r,o,l,c=t.rule,s=("object"===c.type||"array"===c.type)&&("object"===(0,k.A)(c.fields)||"object"===(0,k.A)(c.defaultField));function d(e,t){return(0,D.A)((0,D.A)({},t),{},{fullField:"".concat(c.fullField,".").concat(e),fullFields:c.fullFields?[].concat((0,eM.A)(c.fullFields),[e]):[e]})}function f(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Array.isArray(r)?r:[r];!i.suppressWarning&&o.length&&e.warning("async-validator:",o),o.length&&void 0!==c.message&&null!==c.message&&(o=[].concat(c.message));var l=o.map(c1(c,a));if(i.first&&l.length)return u[c.field]=1,n(l);if(s){if(c.required&&!t.value)return void 0!==c.message?l=[].concat(c.message).map(c1(c,a)):i.error&&(l=[i.error(c,cQ(i.messages.required,c.field))]),n(l);var f={};c.defaultField&&Object.keys(t.value).map(function(e){f[e]=c.defaultField});var p={};Object.keys(f=(0,D.A)((0,D.A)({},f),t.rule.fields)).forEach(function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(d.bind(null,e))});var m=new e(p);m.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,function(e){var t=[];l&&l.length&&t.push.apply(t,(0,eM.A)(l)),e&&e.length&&t.push.apply(t,(0,eM.A)(e)),n(t.length?t:null)})}else n(l)}if(s=s&&(c.required||!c.required&&t.value),c.field=t.field,c.asyncValidator)r=c.asyncValidator(c,t.value,f,t.source,i);else if(c.validator){try{r=c.validator(c,t.value,f,t.source,i)}catch(e){null==(o=(l=console).error)||o.call(l,e),i.suppressValidatorError||setTimeout(function(){throw e},0),f(e.message)}!0===r?f():!1===r?f("function"==typeof c.message?c.message(c.fullField||c.field):c.message||"".concat(c.fullField||c.field," fails")):r instanceof Array?f(r):r instanceof Error&&f(r.message)}r&&r.then&&r.then(function(){return f()},function(e){return f(e)})},function(e){for(var t=[],n={},r=0;r<e.length;r++)!function(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,(0,eM.A)(e))}else t.push(e)}(e[r]);t.length?(n=cU(t),l(t,n)):l(null,a)},a)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!sl.hasOwnProperty(e.type))throw Error(cQ("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return(-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0])?sl.required:sl[this.getType(e)]||void 0}}]),e}();(0,eX.A)(sc,"register",function(e,t){if("function"!=typeof t)throw Error("Cannot register a validator by type, validator is not a function");sl[e]=t}),(0,eX.A)(sc,"warning",function(){}),(0,eX.A)(sc,"messages",cK),(0,eX.A)(sc,"validators",sl);var ss="'${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:ss,method:ss,array:ss,object:ss,number:ss,date:ss,boolean:ss,integer:ss,float:ss,regexp:ss,email:ss,url:ss,hex:ss},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}"}},sd="CODE_LOGIC_ERROR";function sf(e,t,n,r,o){return sp.apply(this,arguments)}function sp(){return(sp=(0,iI.A)((0,iA.A)().mark(function e(t,n,r,o,a){var i,l,c,s,u,d,f,p,m;return(0,iA.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=(0,D.A)({},r),delete i.ruleIndex,sc.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(sd)}}),c=null,i&&"array"===i.type&&i.defaultField&&(c=i.defaultField,delete i.defaultField),s=new sc((0,eX.A)({},t,[i])),u=nI(su,o.validateMessages),s.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(s.validate((0,eX.A)({},t,n),(0,D.A)({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map(function(e,t){var n=e.message,r=n===sd?u.default:n;return x.isValidElement(r)?x.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(!(!d.length&&c&&Array.isArray(n)&&n.length>0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return sf("".concat(t,".").concat(n),e,c,o,a)}));case 21:return f=e.sent,e.abrupt("return",f.reduce(function(e,t){return[].concat((0,eM.A)(e),(0,eM.A)(t))},[]));case 23:return p=(0,D.A)((0,D.A)({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),m=d.map(function(e){return"string"==typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){return e.startsWith("\\")?e.slice(1):t[e.slice(2,-1)]})}(e,p):e}),e.abrupt("return",m);case 26:case"end":return e.stop()}},e,null,[[10,15]])}))).apply(this,arguments)}function sm(){return(sm=(0,iI.A)((0,iA.A)().mark(function e(t){return(0,iA.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,(0,eM.A)(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function sg(){return(sg=(0,iI.A)((0,iA.A)().mark(function e(t){var n;return(0,iA.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function sh(e){return cV(e)}function sv(e,t){var n={};return t.forEach(function(t){var r=n$(e,t);n=nk(n,t,r)}),n}function sb(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return sy(t,e,n)})}function sy(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&!!t&&(!!n||e.length===t.length)&&t.every(function(t,n){return e[n]===t})}function s$(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,k.A)(t.target)&&e in t.target?t.target[e]:t}function sx(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat((0,eM.A)(e.slice(0,n)),[o],(0,eM.A)(e.slice(n,t)),(0,eM.A)(e.slice(t+1,r))):a<0?[].concat((0,eM.A)(e.slice(0,t)),(0,eM.A)(e.slice(t+1,n+1)),[o],(0,eM.A)(e.slice(n+1,r))):e}var sw=["name"],sC=[];function sE(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var sS=function(e){(0,eE.A)(n,e);var t=eA(n);function n(e){var r;return(0,ew.A)(this,n),r=t.call(this,e),(0,eX.A)((0,nl.A)(r),"state",{resetCount:0}),(0,eX.A)((0,nl.A)(r),"cancelRegisterFunc",null),(0,eX.A)((0,nl.A)(r),"mounted",!1),(0,eX.A)((0,nl.A)(r),"touched",!1),(0,eX.A)((0,nl.A)(r),"dirty",!1),(0,eX.A)((0,nl.A)(r),"validatePromise",void 0),(0,eX.A)((0,nl.A)(r),"prevValidating",void 0),(0,eX.A)((0,nl.A)(r),"errors",sC),(0,eX.A)((0,nl.A)(r),"warnings",sC),(0,eX.A)((0,nl.A)(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,sh(o)),r.cancelRegisterFunc=null}),(0,eX.A)((0,nl.A)(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat((0,eM.A)(void 0===n?[]:n),(0,eM.A)(t)):[]}),(0,eX.A)((0,nl.A)(r),"getRules",function(){var e=r.props,t=e.rules,n=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(n):e})}),(0,eX.A)((0,nl.A)(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),(0,eX.A)((0,nl.A)(r),"metaCache",null),(0,eX.A)((0,nl.A)(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=(0,D.A)((0,D.A)({},r.getMeta()),{},{destroy:e});e8(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),(0,eX.A)((0,nl.A)(r),"onStoreChange",function(e,t,n){var o=r.props,a=o.shouldUpdate,i=o.dependencies,l=void 0===i?[]:i,c=o.onReset,s=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(s),p=t&&sb(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&!e8(d,f)&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=sC,r.warnings=sC,r.triggerMetaEvent()),n.type){case"reset":if(!t||p){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=sC,r.warnings=sC,r.triggerMetaEvent(),null==c||c(),r.refresh();return}break;case"remove":if(a&&sE(a,e,s,d,f,n))return void r.reRender();break;case"setField":var m=n.data;if(p){"touched"in m&&(r.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(r.errors=m.errors||sC),"warnings"in m&&(r.warnings=m.warnings||sC),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}if("value"in m&&sb(t,u,!0)||a&&!u.length&&sE(a,e,s,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(sh).some(function(e){return sb(n.relatedFields,e)}))return void r.reRender();break;default:if(p||(!l.length||u.length||a)&&sE(a,e,s,d,f,n))return void r.reRender()}!0===a&&r.reRender()}),(0,eX.A)((0,nl.A)(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},a=o.triggerName,i=o.validateOnly,l=Promise.resolve().then((0,iI.A)((0,iA.A)().mark(function o(){var i,c,s,u,d,f,p;return(0,iA.A)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(s=void 0!==(c=(i=r.props).validateFirst)&&c,u=i.messageVariables,d=i.validateDebounce,f=r.getRules(),a&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||cV(t).includes(a)})),!(d&&a)){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=function(e,t,n,r,o,a){var i,l,c=e.join("."),s=n.map(function(e,t){var n=e.validator,r=(0,D.A)((0,D.A)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,a=n(e,t,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){B(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});B(o=a&&"function"==typeof a.then&&"function"==typeof a.catch,"`callback` is deprecated. Please return a promise instead."),o&&a.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,a=t.ruleIndex;return!!n==!!o?r-a:n?1:-1});if(!0===o)l=new Promise((i=(0,iI.A)((0,iA.A)().mark(function e(n,o){var i,l,u;return(0,iA.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<s.length)){e.next=12;break}return l=s[i],e.next=5,sf(c,t,l,r,a);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:l}]),e.abrupt("return");case 9:i+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)}));else{var u=s.map(function(e){return sf(c,t,e,r,a).then(function(t){return{errors:t,rule:e}})});l=(o?function(e){return sg.apply(this,arguments)}(u):function(e){return sm.apply(this,arguments)}(u)).then(function(e){return Promise.reject(e)})}return l.catch(function(e){return e}),l}(t,n,f,e,s,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sC;if(r.validatePromise===l){r.validatePromise=null;var t,n=[],o=[];null==(t=e.forEach)||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,a=void 0===r?sC:r;t?o.push.apply(o,(0,eM.A)(a)):n.push.apply(n,(0,eM.A)(a))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",p);case 13:case"end":return o.stop()}},o)})));return void 0!==i&&i||(r.validatePromise=l,r.dirty=!0,r.errors=sC,r.warnings=sC,r.triggerMetaEvent(),r.reRender()),l}),(0,eX.A)((0,nl.A)(r),"isFieldValidating",function(){return!!r.validatePromise}),(0,eX.A)((0,nl.A)(r),"isFieldTouched",function(){return r.touched}),(0,eX.A)((0,nl.A)(r),"isFieldDirty",function(){return!!r.dirty||void 0!==r.props.initialValue||void 0!==(0,r.props.fieldContext.getInternalHooks(cL).getInitialValue)(r.getNamePath())}),(0,eX.A)((0,nl.A)(r),"getErrors",function(){return r.errors}),(0,eX.A)((0,nl.A)(r),"getWarnings",function(){return r.warnings}),(0,eX.A)((0,nl.A)(r),"isListField",function(){return r.props.isListField}),(0,eX.A)((0,nl.A)(r),"isList",function(){return r.props.isList}),(0,eX.A)((0,nl.A)(r),"isPreserve",function(){return r.props.preserve}),(0,eX.A)((0,nl.A)(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),(0,eX.A)((0,nl.A)(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return(0,D.A)((0,D.A)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=j(e);return 1===n.length&&x.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),(0,eX.A)((0,nl.A)(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return n$(e||t(!0),n)}),(0,eX.A)((0,nl.A)(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,a=t.validateTrigger,i=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==a?a:u.validateTrigger,f=r.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(cL).dispatch,h=r.getValue(),v=s||function(e){return(0,eX.A)({},c,e)},b=e[o],y=void 0!==n?v(h):{},$=(0,D.A)((0,D.A)({},e),y);return $[o]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e,t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e=i?i.apply(void 0,n):s$.apply(void 0,[c].concat(n)),l&&(e=l(e,h,m(!0))),e!==h&&g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},cV(d||[]).forEach(function(e){var t=$[e];$[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}}),$}),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(cL).initEntityValue)((0,nl.A)(r)),r}return(0,eC.A)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(cL).registerField;this.cancelRegisterFunc=r(this)}!0===t&&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 e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:x.isValidElement(o)?e=x.cloneElement(o,this.getControlled(o.props)):(B(!o,"`children` of Field is not validate ReactElement."),e=o),x.createElement(x.Fragment,{key:t},e)}}]),n}(x.Component);(0,eX.A)(sS,"contextType",cW),(0,eX.A)(sS,"defaultProps",{trigger:"onChange",valuePropName:"value"});let sk=function(e){var t,n=e.name,r=(0,r3.A)(e,sw),o=x.useContext(cW),a=x.useContext(c_),i=void 0!==n?sh(n):void 0,l=null!=(t=r.isListField)?t:!!a,c="keep";return l||(c="_".concat((i||[]).join("_"))),x.createElement(sS,S({key:c,name:i,isListField:l},r,{fieldContext:o}))},sO=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=x.useContext(cW),c=x.useContext(c_),s=x.useRef({keys:[],id:0}).current,u=x.useMemo(function(){var e=sh(l.prefixName)||[];return[].concat((0,eM.A)(e),(0,eM.A)(sh(t)))},[l.prefixName,t]),d=x.useMemo(function(){return(0,D.A)((0,D.A)({},l),{},{prefixName:u})},[l,u]),f=x.useMemo(function(){return{getKey:function(e){var t=u.length,n=e[t];return[s.keys[n],e.slice(t+1)]}}},[u]);return"function"!=typeof r?(B(!1,"Form.List only accepts function as children."),null):x.createElement(c_.Provider,{value:f},x.createElement(cW.Provider,{value:d},x.createElement(sk,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=i?i:!!c},function(e,t){var n=e.value,o=e.onChange,a=l.getFieldValue,i=function(){return a(u||[])||[]},c=(void 0===n?[]:n)||[];return Array.isArray(c)||(c=[]),r(c.map(function(e,t){var n=s.keys[t];return void 0===n&&(s.keys[t]=s.id,n=s.keys[t],s.id+=1),{name:t,key:n,isListField:!0}}),{add:function(e,t){var n=i();t>=0&&t<=n.length?(s.keys=[].concat((0,eM.A)(s.keys.slice(0,t)),[s.id],(0,eM.A)(s.keys.slice(t))),o([].concat((0,eM.A)(n.slice(0,t)),[e],(0,eM.A)(n.slice(t))))):(s.keys=[].concat((0,eM.A)(s.keys),[s.id]),o([].concat((0,eM.A)(n),[e]))),s.id+=1},remove:function(e){var t=i(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=i();e<0||e>=n.length||t<0||t>=n.length||(s.keys=sx(s.keys,e,t),o(sx(n,e,t)))}}},t)})))};var sA="__@field_split__";function sI(e){return e.map(function(e){return"".concat((0,k.A)(e),":").concat(e)}).join(sA)}var sN=function(){function e(){(0,ew.A)(this,e),(0,eX.A)(this,"kvs",new Map)}return(0,eC.A)(e,[{key:"set",value:function(e,t){this.kvs.set(sI(e),t)}},{key:"get",value:function(e){return this.kvs.get(sI(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(sI(e))}},{key:"map",value:function(e){return(0,eM.A)(this.kvs.entries()).map(function(t){var n=(0,eK.A)(t,2),r=n[0],o=n[1];return e({key:r.split(sA).map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,eK.A)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),sj=["name"],sM=(0,eC.A)(function e(t){var n=this;(0,ew.A)(this,e),(0,eX.A)(this,"formHooked",!1),(0,eX.A)(this,"forceRootUpdate",void 0),(0,eX.A)(this,"subscribable",!0),(0,eX.A)(this,"store",{}),(0,eX.A)(this,"fieldEntities",[]),(0,eX.A)(this,"initialValues",{}),(0,eX.A)(this,"callbacks",{}),(0,eX.A)(this,"validateMessages",null),(0,eX.A)(this,"preserve",null),(0,eX.A)(this,"lastValidatePromise",null),(0,eX.A)(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),(0,eX.A)(this,"getInternalHooks",function(e){return e===cL?(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}):(B(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,eX.A)(this,"useSubscribe",function(e){n.subscribable=e}),(0,eX.A)(this,"prevWithoutPreserves",null),(0,eX.A)(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=nI(e,n.store);null==(r=n.prevWithoutPreserves)||r.map(function(t){var n=t.key;o=nk(o,n,n$(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),(0,eX.A)(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new sN;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),(0,eX.A)(this,"getInitialValue",function(e){var t=n$(n.initialValues,e);return e.length?nI(t):t}),(0,eX.A)(this,"setCallbacks",function(e){n.callbacks=e}),(0,eX.A)(this,"setValidateMessages",function(e){n.validateMessages=e}),(0,eX.A)(this,"setPreserve",function(e){n.preserve=e}),(0,eX.A)(this,"watchList",[]),(0,eX.A)(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),(0,eX.A)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),(0,eX.A)(this,"timeoutId",null),(0,eX.A)(this,"warningUnhooked",function(){}),(0,eX.A)(this,"updateStore",function(e){n.store=e}),(0,eX.A)(this,"getFieldEntities",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),(0,eX.A)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new sN;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),(0,eX.A)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=sh(e);return t.get(n)||{INVALIDATE_NAME_PATH:sh(e)}})}),(0,eX.A)(this,"getFieldsValue",function(e,t){if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,k.A)(e)&&(a=e.strict,o=e.filter),!0===r&&!o)return n.store;var r,o,a,i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return i.forEach(function(e){var t,n,i,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){if(null!=(i=e.isList)&&i.call(e))return}else if(!r&&null!=(t=(n=e).isListField)&&t.call(n))return;if(o){var s="getMeta"in e?e.getMeta():null;o(s)&&l.push(c)}else l.push(c)}),sv(n.store,l.map(sh))}),(0,eX.A)(this,"getFieldValue",function(e){n.warningUnhooked();var t=sh(e);return n$(n.store,t)}),(0,eX.A)(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return!t||"INVALIDATE_NAME_PATH"in t?{name:sh(e[n]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})}),(0,eX.A)(this,"getFieldError",function(e){n.warningUnhooked();var t=sh(e);return n.getFieldsError([t])[0].errors}),(0,eX.A)(this,"getFieldWarning",function(e){n.warningUnhooked();var t=sh(e);return n.getFieldsError([t])[0].warnings}),(0,eX.A)(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var a=r[0],i=r[1],l=!1;0===r.length?e=null:1===r.length?Array.isArray(a)?(e=a.map(sh),l=!1):(e=null,l=a):(e=a.map(sh),l=i);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!e)return l?c.every(function(e){return s(e)||e.isList()}):c.some(s);var u=new sN;e.forEach(function(e){u.set(e,[])}),c.forEach(function(t){var n=t.getNamePath();e.forEach(function(e){e.every(function(e,t){return n[t]===e})&&u.update(e,function(e){return[].concat((0,eM.A)(e),[t])})})});var d=function(e){return e.some(s)},f=u.map(function(e){return e.value});return l?f.every(d):f.some(d)}),(0,eX.A)(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),(0,eX.A)(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(sh);return t.some(function(e){return sb(r,e.getNamePath())&&e.isFieldValidating()})}),(0,eX.A)(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),(0,eX.A)(this,"resetWithFieldInitialValue",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new sN,o=n.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,(0,eM.A)((0,eM.A)(o).map(function(e){return e.entity})))})):e=o,e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))B(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=r.get(o);if(a&&a.size>1)B(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==i||n.updateStore(nk(n.store,o,(0,eM.A)(a)[0].value))}}}})}),(0,eX.A)(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore(nI(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),n.notifyWatch();return}var r=e.map(sh);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(nk(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),(0,eX.A)(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,a=(0,r3.A)(e,sj),i=sh(o);r.push(i),"value"in a&&n.updateStore(nk(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})}),n.notifyWatch(r)}),(0,eX.A)(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,D.A)((0,D.A)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})}),(0,eX.A)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===n$(n.store,r)&&n.updateStore(nk(n.store,r,t))}}),(0,eX.A)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),(0,eX.A)(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||a.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every(function(e){return!sy(e.getNamePath(),t)})){var l=n.store;n.updateStore(nk(l,t,i,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),(0,eX.A)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,a=e.triggerName;n.validateFields([o],{triggerName:a})}}),(0,eX.A)(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=(0,D.A)((0,D.A)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),(0,eX.A)(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,eM.A)(r))}),r}),(0,eX.A)(this,"updateValue",function(e,t){var r=sh(e),o=n.store;n.updateStore(nk(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(o,r),i=n.callbacks.onValuesChange;i&&i(sv(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,eM.A)(a)))}),(0,eX.A)(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=nI(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),(0,eX.A)(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),(0,eX.A)(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new sN;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=sh(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),!function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),(0,eX.A)(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new sN;t.forEach(function(e){var t=e.name,n=e.errors;a.set(t,n)}),o.forEach(function(e){e.errors=a.get(e.name)||e.errors})}var i=o.filter(function(t){return sb(e,t.name)});i.length&&r(i,o)}}),(0,eX.A)(this,"validateFields",function(e,t){n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(i=e,l=t):l=e;var r,o,a,i,l,c=!!i,s=c?i.map(sh):[],u=[],d=String(Date.now()),f=new Set,p=l||{},m=p.recursive,g=p.dirty;n.getFieldEntities(!0).forEach(function(e){if((c||s.push(e.getNamePath()),e.props.rules&&e.props.rules.length)&&(!g||e.isFieldDirty())){var t=e.getNamePath();if(f.add(t.join(d)),!c||sb(s,t,m)){var r=e.validateRules((0,D.A)({validateMessages:(0,D.A)((0,D.A)({},su),n.validateMessages)},l));u.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return(null==(n=e.forEach)||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,(0,eM.A)(n)):r.push.apply(r,(0,eM.A)(n))}),r.length)?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var h=(r=!1,o=u.length,a=[],u.length?new Promise(function(e,t){u.forEach(function(n,i){n.catch(function(e){return r=!0,e}).then(function(n){o-=1,a[i]=n,o>0||(r&&t(a),e(a))})})}):Promise.resolve([]));n.lastValidatePromise=h,h.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var v=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:t,outOfDate:n.lastValidatePromise!==h})});v.catch(function(e){return e});var b=s.filter(function(e){return f.has(e.join(d))});return n.triggerOnFieldsChange(b),v}),(0,eX.A)(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});let sR=function(e){var t=x.useRef(),n=x.useState({}),r=(0,eK.A)(n,2)[1];return t.current||(e?t.current=e:t.current=new sM(function(){r({})}).getForm()),[t.current]};var sP=x.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sT=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=x.useContext(sP),i=x.useRef({});return x.createElement(sP.Provider,{value:(0,D.A)((0,D.A)({},a),{},{validateMessages:(0,D.A)((0,D.A)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:i.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(i.current=(0,D.A)((0,D.A)({},i.current),{},(0,eX.A)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,D.A)({},i.current);delete t[e],i.current=t,a.unregisterForm(e)}})},o)},sz=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];function sB(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var sD=function(){};let sH=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=void 0===o?{}:o,i=a&&a._init?{form:a}:a,l=i.form,c=(0,x.useState)(),s=(0,eK.A)(c,2),u=s[0],d=s[1],f=(0,x.useMemo)(function(){return sB(u)},[u]),p=(0,x.useRef)(f);p.current=f;var m=(0,x.useContext)(cW),g=l||m,h=g&&g._init,v=sh(r),b=(0,x.useRef)(v);return b.current=v,sD(),(0,x.useEffect)(function(){if(h){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(cL).registerWatch,n=function(e,t){var n=i.preserve?t:e;return"function"==typeof r?r(n):n$(n,b.current)},o=t(function(e,t){var r=n(e,t),o=sB(r);p.current!==o&&(p.current=o,d(r))}),a=n(e(),e(!0));return u!==a&&d(a),o}},[h]),u};var sL=x.forwardRef(function(e,t){var n,r=e.name,o=e.initialValues,a=e.fields,i=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,d=e.validateMessages,f=e.validateTrigger,p=void 0===f?"onChange":f,m=e.onValuesChange,g=e.onFieldsChange,h=e.onFinish,v=e.onFinishFailed,b=e.clearOnDestroy,y=(0,r3.A)(e,sz),$=x.useRef(null),w=x.useContext(sP),C=sR(i),E=(0,eK.A)(C,1)[0],O=E.getInternalHooks(cL),A=O.useSubscribe,I=O.setInitialValues,N=O.setCallbacks,j=O.setValidateMessages,M=O.setPreserve,R=O.destroyForm;x.useImperativeHandle(t,function(){return(0,D.A)((0,D.A)({},E),{},{nativeElement:$.current})}),x.useEffect(function(){return w.registerForm(r,E),function(){w.unregisterForm(r)}},[w,E,r]),j((0,D.A)((0,D.A)({},w.validateMessages),d)),N({onValuesChange:m,onFieldsChange:function(e){if(w.triggerFormChange(r,e),g){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];g.apply(void 0,[e].concat(n))}},onFinish:function(e){w.triggerFormFinish(r,e),h&&h(e)},onFinishFailed:v}),M(l);var P=x.useRef(null);I(o,!P.current),P.current||(P.current=!0),x.useEffect(function(){return function(){return R(b)}},[]);var T="function"==typeof c;n=T?c(E.getFieldsValue(!0),E):c,A(!T);var z=x.useRef();x.useEffect(function(){!function(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||"object"!==(0,k.A)(e)||"object"!==(0,k.A)(t))return!1;var n=new Set([].concat(Object.keys(e),Object.keys(t)));return(0,eM.A)(n).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})}(z.current||[],a||[])&&E.setFields(a||[]),z.current=a},[a,E]);var B=x.useMemo(function(){return(0,D.A)((0,D.A)({},E),{},{validateTrigger:p})},[E,p]),H=x.createElement(c_.Provider,{value:null},x.createElement(cW.Provider,{value:B},n));return!1===u?H:x.createElement(u,S({},y,{ref:$,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null==(t=y.onReset)||t.call(y,e)}}),H)});sL.FormProvider=sT,sL.Field=sk,sL.List=sO,sL.useForm=sR,sL.useWatch=sH;let sF=x.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),sW=x.createContext(null),s_=e=>{let t=iX(e,["prefixCls"]);return x.createElement(sT,Object.assign({},t))},sV=x.createContext({prefixCls:""}),sq=x.createContext({}),sK=({children:e,status:t,override:n})=>{let r=x.useContext(sq),o=x.useMemo(()=>{let e=Object.assign({},r);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return x.createElement(sq.Provider,{value:o},e)},sX=x.createContext(void 0),sG=e=>{let{space:t,form:n,children:r}=e;if(null==r)return null;let o=r;return n&&(o=w().createElement(sK,{override:!0,status:!0},o)),t&&(o=w().createElement(i5,null,o)),o},sY=function(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t};function sU(e){if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function sQ(e){let{closable:t,closeIcon:n}=e||{};return w().useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}let sZ={},sJ=(e,t,n=sZ)=>{let r=sQ(e),o=sQ(t),[a]=iK("global",io.global),i="boolean"!=typeof r&&!!(null==r?void 0:r.disabled),l=w().useMemo(()=>Object.assign({closeIcon:w().createElement(of,null)},n),[n]),c=w().useMemo(()=>!1!==r&&(r?sY(l,o,r):!1!==o&&(o?sY(l,o):!!l.closable&&l)),[r,o,l]);return w().useMemo(()=>{var e,t;if(!1===c)return[!1,null,i,{}];let{closeIconRender:n}=l,{closeIcon:r}=c,o=r,s=o5(c,!0);return null!=o&&(n&&(o=n(r)),o=w().isValidElement(o)?w().cloneElement(o,Object.assign(Object.assign(Object.assign({},o.props),{"aria-label":null!=(t=null==(e=o.props)?void 0:e["aria-label"])?t:a.close}),s)):w().createElement("span",Object.assign({"aria-label":a.close},s),o)),[!0,o,i,s]},[i,a.close,c,l])},s0=e=>{let{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=E()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=E()({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),c=x.useMemo(()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return x.createElement("span",{className:E()(t,i,l,n),style:Object.assign(Object.assign({},c),r)})},s1=new na("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),s2=e=>({height:e,lineHeight:tg(e)}),s4=e=>Object.assign({width:e},s2(e)),s3=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},s2(e)),s6=e=>Object.assign({width:e},s2(e)),s5=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},s8=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},s2(e)),s7=rK("Skeleton",e=>{let{componentCls:t,calc:n}=e;return(e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:h,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},s4(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},s4(s)),[`${n}-sm`]:Object.assign({},s4(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},(e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},s8(r,l))},s5(e,r,n)),{[`${n}-lg`]:Object.assign({},s8(o,l))}),s5(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},s8(a,l))}),s5(e,a,`${n}-sm`))})(e)),(e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},s4(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},s4(o)),[`${t}${t}-sm`]:Object.assign({},s4(a))}})(e)),(e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},s3(t,l)),[`${r}-lg`]:Object.assign({},s3(o,l)),[`${r}-sm`]:Object.assign({},s3(a,l))}})(e)),(e=>{let{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},s6(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},s6(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}})(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
61
61
  ${r},
62
62
  ${o} > li,
63
63
  ${n},
@@ -79,7 +79,7 @@
79
79
  `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function uO(e){return{position:e,inset:0}}let uA=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},uO("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},uO("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:ub(e)}]},uI=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return nR(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},uN=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${tg(e.paddingMD)} ${tg(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${tg(e.padding)} ${tg(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${tg(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${tg(e.paddingXS)} ${tg(e.padding)}`:0,footerBorderTop:e.wireframe?`${tg(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${tg(e.borderRadiusLG)} ${tg(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${tg(2*e.padding)} ${tg(2*e.padding)} ${tg(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),uj=rK("Modal",e=>{let t=uI(e);return[(e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${tg(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},nF(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${tg(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:tg(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},nq(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${tg(e.borderRadiusLG)} ${tg(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${tg(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
80
80
  ${t}-body,
81
81
  ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]})(t),(e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}})(t),uA(t),uk(t,"zoom"),(e=>{let{componentCls:t}=e,n=up(e),r=Object.assign({},n);delete r.xs;let o=`--${t.replace(".","")}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${tg(r[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat((0,eM.A)(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${o}${e}-width`]:`var(${o}${r}-width)`}:null})),[{width:`var(${o}xs-width)`}],(0,eM.A)(a))}}})(t)]},uN,{unitless:{titleLineHeight:!0}});var uM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};eY()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{l={x:e.pageX,y:e.pageY},setTimeout(()=>{l=null},100)},!0);let uR=e=>{let{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:a,centered:i,getContainer:c,focusTriggerAfterClose:s=!0,style:u,visible:d,width:f=520,footer:p,classNames:m,styles:g,children:h,loading:v,confirmLoading:b,zIndex:y,mousePosition:$,onOk:w,onCancel:C,destroyOnHidden:S,destroyOnClose:k,panelRef:O=null,modalRender:A}=e,I=uM(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:N,getPrefixCls:j,direction:M,modal:R}=x.useContext(eW),P=e=>{b||null==C||C(e)},T=j("modal",t),z=j(),B=a$(T),[D,H,L]=uj(T,B),F=E()(a,{[`${T}-centered`]:null!=i?i:null==R?void 0:R.centered,[`${T}-wrap-rtl`]:"rtl"===M}),W=null===p||v?null:x.createElement(uu,Object.assign({},e,{onOk:e=>{null==w||w(e)},onCancel:P})),[_,V,q,K]=sJ(sU(e),sU(R),{closable:!0,closeIcon:x.createElement(of,{className:`${T}-close-icon`}),closeIconRender:e=>us(T,e)}),X=A?e=>x.createElement("div",{className:`${T}-render`},A(e)):void 0,Y=G(O,ui(`.${T}-${A?"render":"content"}`)),[U,Q]=aY("Modal",y),[Z,J]=x.useMemo(()=>f&&"object"==typeof f?[void 0,f]:[f,void 0],[f]),ee=x.useMemo(()=>{let e={};return J&&Object.keys(J).forEach(t=>{let n=J[t];void 0!==n&&(e[`--${T}-${t}-width`]="number"==typeof n?`${n}px`:n)}),e},[T,J]);return D(x.createElement(sG,{form:!0,space:!0},x.createElement(aK.Provider,{value:Q},x.createElement(cH,Object.assign({width:Z},I,{zIndex:U,getContainer:void 0===c?N:c,prefixCls:T,rootClassName:E()(H,r,L,B),footer:W,visible:null!=o?o:d,mousePosition:null!=$?$:l,onClose:P,closable:_?Object.assign({disabled:q,closeIcon:V},K):_,closeIcon:V,focusTriggerAfterClose:s,transitionName:iV(z,"zoom",e.transitionName),maskTransitionName:iV(z,"fade",e.maskTransitionName),className:E()(H,n,null==R?void 0:R.className),style:Object.assign(Object.assign(Object.assign({},null==R?void 0:R.style),u),ee),classNames:Object.assign(Object.assign(Object.assign({},null==R?void 0:R.classNames),m),{wrapper:E()(F,null==m?void 0:m.wrapper)}),styles:Object.assign(Object.assign({},null==R?void 0:R.styles),g),panelRef:Y,destroyOnClose:null!=S?S:k,modalRender:X}),v?x.createElement(ur,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):h))))},uP=rG(["Modal","confirm"],e=>(e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},n_()),[`&${t} ${t}-body`]:{padding:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${tg(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${tg(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
82
- ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})(uI(e)),uN,{order:-1e3});var uT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let uz=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:l,footer:c,locale:s}=e,u=uT(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),d=n;if(!n&&null!==n)switch(i){case"info":d=x.createElement(oh,null);break;case"success":d=x.createElement(oc,null);break;case"error":d=x.createElement(ou,null);break;default:d=x.createElement(om,null)}let f=null!=l?l:"confirm"===i,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[m]=iK("Modal"),g=s||m,h=r||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),v=o||(null==g?void 0:g.cancelText),b=x.useMemo(()=>Object.assign({autoFocusButton:p,cancelTextLocale:v,okTextLocale:h,mergedOkCancel:f},u),[p,v,h,f,u]),y=x.createElement(x.Fragment,null,x.createElement(cg,null),x.createElement(ch,null)),$=void 0!==e.title&&null!==e.title,w=`${a}-body`;return x.createElement("div",{className:`${a}-body-wrapper`},x.createElement("div",{className:E()(w,{[`${w}-has-title`]:$})},d,x.createElement("div",{className:`${a}-paragraph`},$&&x.createElement("span",{className:`${a}-title`},e.title),x.createElement("div",{className:`${a}-content`},e.content))),void 0===c||"function"==typeof c?x.createElement(cm,{value:b},x.createElement("div",{className:`${a}-btns`},"function"==typeof c?c(y,{OkBtn:ch,CancelBtn:cg}):y)):c,x.createElement(uP,{prefixCls:t}))},uB=e=>{let{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:a,wrapClassName:i,rootPrefixCls:l,bodyStyle:c,closable:s=!1,onConfirm:u,styles:d,title:f}=e,p=`${a}-confirm`,m=e.width||416,g=e.style||{},h=void 0===e.mask||e.mask,v=void 0!==e.maskClosable&&e.maskClosable,b=E()(p,`${p}-${e.type}`,{[`${p}-rtl`]:"rtl"===o},e.className),[,y]=rq(),$=x.useMemo(()=>void 0!==n?n:y.zIndexPopupBase+1e3,[n,y]);return x.createElement(uR,Object.assign({},e,{className:b,wrapClassName:E()({[`${p}-centered`]:!!e.centered},i),onCancel:()=>{null==t||t({triggerCancel:!0}),null==u||u(!1)},title:f,footer:null,transitionName:iV(l||"","zoom",e.transitionName),maskTransitionName:iV(l||"","fade",e.maskTransitionName),mask:h,maskClosable:v,style:g,styles:Object.assign({body:c,mask:r},d),width:m,zIndex:$,closable:s}),x.createElement(uz,Object.assign({},e,{confirmPrefixCls:p})))},uD=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return x.createElement(iO,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},x.createElement(uB,Object.assign({},e)))},uH=[],uL="",uF=e=>{var t,n;let{prefixCls:r,getContainer:o,direction:a}=e,i=ia,l=(0,x.useContext)(eW),c=uL||l.getPrefixCls(),s=r||`${c}-modal`,u=o;return!1===u&&(u=void 0),w().createElement(uD,Object.assign({},e,{rootPrefixCls:c,prefixCls:s,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!=a?a:l.direction,locale:null!=(n=null==(t=l.locale)?void 0:t.Modal)?n:i,getContainer:u}))};function uW(e){let t,n,r=iE(),o=document.createDocumentFragment(),a=Object.assign(Object.assign({},e),{close:c,open:!0});function i(...t){var r;t.some(e=>null==e?void 0:e.triggerCancel)&&(null==(r=e.onCancel)||r.call.apply(r,[e,()=>{}].concat((0,eM.A)(t.slice(1)))));for(let e=0;e<uH.length;e++)if(uH[e]===c){uH.splice(e,1);break}n()}let l=e=>{clearTimeout(t),t=setTimeout(()=>{let t=r.getPrefixCls(void 0,uL),a=r.getIconPrefixCls(),i=r.getTheme(),l=w().createElement(uF,Object.assign({},e));n=iH()(w().createElement(iO,{prefixCls:t,iconPrefixCls:a,theme:i},"function"==typeof r.holderRender?r.holderRender(l):l),o)})};function c(...t){(a=Object.assign(Object.assign({},a),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),i.apply(this,t)}})).visible&&delete a.visible,l(a)}return l(a),uH.push(c),{destroy:c,update:function(e){l(a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e))}}}function u_(e){return Object.assign(Object.assign({},e),{type:"warning"})}function uV(e){return Object.assign(Object.assign({},e),{type:"info"})}function uq(e){return Object.assign(Object.assign({},e),{type:"success"})}function uK(e){return Object.assign(Object.assign({},e),{type:"error"})}function uX(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var uG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let uY=x.forwardRef((e,t)=>{var n,{afterClose:r,config:o}=e,a=uG(e,["afterClose","config"]);let[i,l]=x.useState(!0),[c,s]=x.useState(o),{direction:u,getPrefixCls:d}=x.useContext(eW),f=d("modal"),p=d(),m=(...e)=>{var t;l(!1),e.some(e=>null==e?void 0:e.triggerCancel)&&(null==(t=c.onCancel)||t.call.apply(t,[c,()=>{}].concat((0,eM.A)(e.slice(1)))))};x.useImperativeHandle(t,()=>({destroy:m,update:e=>{s(t=>{let n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));let g=null!=(n=c.okCancel)?n:"confirm"===c.type,[h]=iK("Modal",io.Modal);return x.createElement(uD,Object.assign({prefixCls:f,rootPrefixCls:p},c,{close:m,open:i,afterClose:()=>{var e;r(),null==(e=c.afterClose)||e.call(c)},okText:c.okText||(g?null==h?void 0:h.okText:null==h?void 0:h.justOkText),direction:c.direction||u,cancelText:c.cancelText||(null==h?void 0:h.cancelText)},a))}),uU=0,uQ=x.memo(x.forwardRef((e,t)=>{let[n,r]=(()=>{let[e,t]=x.useState([]);return[e,x.useCallback(e=>(t(t=>[].concat((0,eM.A)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return x.useImperativeHandle(t,()=>({patchElement:r}),[r]),x.createElement(x.Fragment,null,n)})),uZ=function(){let e=x.useRef(null),[t,n]=x.useState([]);x.useEffect(()=>{t.length&&((0,eM.A)(t).forEach(e=>{e()}),n([]))},[t]);let r=x.useCallback(t=>function(r){var o;let a,i;uU+=1;let l=x.createRef(),c=new Promise(e=>{a=e}),s=!1,u=x.createElement(uY,{key:`modal-${uU}`,config:t(r),ref:l,afterClose:()=>{null==i||i()},isSilent:()=>s,onConfirm:e=>{a(e)}});return(i=null==(o=e.current)?void 0:o.patchElement(u))&&uH.push(i),{destroy:()=>{function e(){var e;null==(e=l.current)||e.destroy()}l.current?e():n(t=>[].concat((0,eM.A)(t),[e]))},update:e=>{function t(){var t;null==(t=l.current)||t.update(e)}l.current?t():n(e=>[].concat((0,eM.A)(e),[t]))},then:e=>(s=!0,c.then(e))}},[]);return[x.useMemo(()=>({info:r(uV),success:r(uq),error:r(uK),warning:r(u_),confirm:r(uX)}),[r]),x.createElement(uQ,{key:"modal-holder",ref:e})]},uJ=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],u0={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},u1=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:h,fontSize:v,lineHeight:b,width:y,notificationIconSize:$,colorText:x,colorSuccessBg:w,colorErrorBg:C,colorInfoBg:E,colorWarningBg:S}=e,k=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:f,borderRadius:i,boxShadow:r,[k]:{padding:p,width:y,maxWidth:`calc(100vw - ${tg(e.calc(m).mul(2).equal())})`,lineHeight:b,wordWrap:"break-word",borderRadius:i,overflow:"hidden","&-success":w?{background:w}:{},"&-error":C?{background:C}:{},"&-info":E?{background:E}:{},"&-warning":S?{background:S}:{}},[`${k}-message`]:{color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:v,color:x,marginTop:e.marginXS},[`${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:o},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:v},[`${k}-icon`]:{position:"absolute",fontSize:$,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${k}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},nq(e)),[`${k}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${tg(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:i,background:g}},[`${k}-actions`]:{float:"right",marginTop:e.marginSM}}},u2=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),u4=e=>{let t=e.paddingMD,n=e.paddingLG;return nR(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${tg(e.paddingMD)} ${tg(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},u3=rK("Notification",e=>{let t=u4(e);return[(e=>{let{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,l=new na("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},nF(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:u1(e)}}]})(t),(e=>{let{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new na("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new na("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new na("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new na("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}})(t),(e=>{let{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},(e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)})(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},(e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)})(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},uJ.map(t=>((e,t)=>{let{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[u0[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))})(t)]},u2),u6=rG(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,n=u4(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},u1(n)),{width:n.width,maxWidth:`calc(100vw - ${tg(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},u2);var u5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function u8(e,t){return null===t||!1===t?null:t||x.createElement(of,{className:`${e}-close-icon`})}let u7={success:oc,info:oh,error:ou,warning:om},u9=e=>{let{prefixCls:t,icon:n,type:r,message:o,description:a,actions:i,role:l="alert"}=e,c=null;return n?c=x.createElement("span",{className:`${t}-icon`},n):r&&(c=x.createElement(u7[r]||null,{className:E()(`${t}-icon`,`${t}-icon-${r}`)})),x.createElement("div",{className:E()({[`${t}-with-icon`]:c}),role:l},c,x.createElement("div",{className:`${t}-message`},o),a&&x.createElement("div",{className:`${t}-description`},a),i&&x.createElement("div",{className:`${t}-actions`},i))};var de=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let dt=({children:e,prefixCls:t})=>{let n=a$(t),[r,o,a]=u3(t,n);return r(w().createElement(aT,{classNames:{list:E()(o,a,n)}},e))},dn=(e,{prefixCls:t,key:n})=>w().createElement(dt,{prefixCls:t,key:n},e),dr=w().forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:l,onAllRemoved:c,stack:s,duration:u,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:m,notification:g,direction:h}=(0,x.useContext)(eW),[,v]=rq(),b=o||p("notification"),[y,$]=a_({prefixCls:b,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=r?r:24),className:()=>E()({[`${b}-rtl`]:null!=l?l:"rtl"===h}),motion:()=>({motionName:`${b}-fade`}),closable:!0,closeIcon:u8(b),duration:null!=u?u:4.5,getContainer:()=>(null==a?void 0:a())||(null==m?void 0:m())||document.body,maxCount:i,pauseOnHover:d,showProgress:f,onAllRemoved:c,renderNotifications:dn,stack:!1!==s&&{threshold:"object"==typeof s?null==s?void 0:s.threshold:void 0,offset:8,gap:v.margin}});return w().useImperativeHandle(t,()=>Object.assign(Object.assign({},y),{prefixCls:b,notification:g})),$});function da(e){let t=w().useRef(null);return aj("Notification"),[w().useMemo(()=>{let n=n=>{var r;if(!t.current)return;let{open:o,prefixCls:a,notification:i}=t.current,l=`${a}-notice`,{message:c,description:s,icon:u,type:d,btn:f,actions:p,className:m,style:g,role:h="alert",closeIcon:v,closable:b}=n,y=de(n,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),$=u8(l,void 0!==v?v:void 0!==(null==e?void 0:e.closeIcon)?e.closeIcon:null==i?void 0:i.closeIcon);return o(Object.assign(Object.assign({placement:null!=(r=null==e?void 0:e.placement)?r:"topRight"},y),{content:w().createElement(u9,{prefixCls:l,icon:u,type:d,message:c,description:s,actions:null!=p?p:f,role:h}),className:E()(d&&`${l}-${d}`,m,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),g),closeIcon:$,closable:null!=b?b:!!$}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null==(n=t.current)||n.close(e):null==(r=t.current)||r.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),r},[]),w().createElement(dr,Object.assign({key:"notification-holder"},e,{ref:t}))]}let di=w().createContext({}),dl=w().createContext({message:{},notification:{},modal:{}}),dc=rK("App",e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({})),ds=e=>{let{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:l,component:c="div"}=e,{direction:s,getPrefixCls:u}=(0,x.useContext)(eW),d=u("app",t),[f,p,m]=dc(d),g=E()(p,d,r,o,m,{[`${d}-rtl`]:"rtl"===s}),h=(0,x.useContext)(di),v=w().useMemo(()=>({message:Object.assign(Object.assign({},h.message),a),notification:Object.assign(Object.assign({},h.notification),i)}),[a,i,h.message,h.notification]),[b,y]=a5(v.message),[$,C]=da(v.notification),[S,k]=uZ(),O=w().useMemo(()=>({message:b,notification:$,modal:S}),[b,$,S]);aj("App")(!(m&&!1===c),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let A=!1===c?w().Fragment:c;return f(w().createElement(dl.Provider,{value:O},w().createElement(di.Provider,{value:v},w().createElement(A,Object.assign({},!1===c?void 0:{className:g,style:l}),k,y,C,n))))};ds.useApp=()=>w().useContext(dl);let du=ds;function dd(e){return t=>x.createElement(iO,{theme:{token:{motion:!1,zIndexPopupBase:0}}},x.createElement(e,Object.assign({},t)))}let df=(e,t,n,r,o)=>dd(a=>{let{prefixCls:i,style:l}=a,c=x.useRef(null),[s,u]=x.useState(0),[d,f]=x.useState(0),[p,m]=ny(!1,{value:a.open}),{getPrefixCls:g}=x.useContext(eW),h=g(r||"select",i);x.useEffect(()=>{if(m(!0),"u">typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{var n;let r=o?`.${o(h)}`:`.${h}-dropdown`,a=null==(n=c.current)?void 0:n.querySelector(r);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[h]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});return n&&(v=n(v)),t&&Object.assign(v,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),x.createElement("div",{ref:c,style:{paddingBottom:s,position:"relative",minWidth:d}},x.createElement(e,Object.assign({},v)))}),dp=function(){if("u"<typeof navigator||"u"<typeof window)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(null==e?void 0:e.substr(0,4))},dm=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,a=e.onMouseDown,i=e.onClick,l="function"==typeof n?n(r):n;return x.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==l?l:x.createElement("span",{className:E()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},o))};var dg=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=w().useMemo(function(){return"object"===(0,k.A)(r)?r.clearIcon:o||void 0},[r,o]);return{allowClear:w().useMemo(function(){return!a&&!!r&&(!!n.length||!!i)&&("combobox"!==l||""!==i)},[r,a,n.length,i,l]),clearIcon:w().createElement(dm,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"\xd7")}},dh=x.createContext(null);function dv(){return x.useContext(dh)}function db(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=x.useRef(null),n=x.useRef(null);return x.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var dy=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],d$=void 0,dx=x.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.invalidate,a=e.item,i=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,m=e.display,g=e.order,h=e.component,v=(0,r3.A)(e,dy),b=l&&!m;x.useEffect(function(){return function(){s(u,null)}},[]);var y=i&&a!==d$?i(a,{index:g}):p;o||(n={opacity:+!b,height:b?0:d$,overflowY:b?"hidden":d$,order:l?g:d$,pointerEvents:b?"none":d$,position:b?"absolute":d$});var $={};b&&($["aria-hidden"]=!0);var w=x.createElement(void 0===h?"div":h,S({className:E()(!o&&r,d),style:(0,D.A)((0,D.A)({},n),f)},$,v,{ref:t}),y);return l&&(w=x.createElement(ej,{onResize:function(e){s(u,e.offsetWidth)},disabled:c},w)),w});function dw(e,t){var n=x.useState(t),r=(0,eK.A)(n,2),o=r[0],a=r[1];return[o,nh(function(t){e(function(){a(t)})})]}dx.displayName="Item";var dC=w().createContext(null),dE=["component"],dS=["className"],dk=["className"],dO=x.forwardRef(function(e,t){var n=x.useContext(dC);if(!n){var r=e.component,o=(0,r3.A)(e,dE);return x.createElement(void 0===r?"div":r,S({},o,{ref:t}))}var a=n.className,i=(0,r3.A)(n,dS),l=e.className,c=(0,r3.A)(e,dk);return x.createElement(dC.Provider,{value:null},x.createElement(dx,S({ref:t,className:E()(a,l)},i,c)))});dO.displayName="RawItem";var dA=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],dI="responsive",dN="invalidate";function dj(e){return"+ ".concat(e.length," ...")}var dM=x.forwardRef(function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-overflow":r,a=e.data,i=void 0===a?[]:a,l=e.renderItem,c=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,p=e.style,m=e.className,g=e.maxCount,h=e.renderRest,v=e.renderRawRest,b=e.prefix,y=e.suffix,$=e.component,w=e.itemComponent,C=e.onVisibleChange,k=(0,r3.A)(e,dA),O="full"===f,A=(n=x.useRef(null),function(e){if(!n.current){n.current=[];var t=function(){(0,H.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})};if("u"<typeof MessageChannel)eB(t);else{var r=new MessageChannel;r.port1.onmessage=function(){return t()},r.port2.postMessage(void 0)}}n.current.push(e)}),I=dw(A,null),N=(0,eK.A)(I,2),j=N[0],M=N[1],R=j||0,P=dw(A,new Map),T=(0,eK.A)(P,2),z=T[0],B=T[1],L=dw(A,0),F=(0,eK.A)(L,2),W=F[0],_=F[1],V=dw(A,0),q=(0,eK.A)(V,2),K=q[0],X=q[1],G=dw(A,0),Y=(0,eK.A)(G,2),U=Y[0],Q=Y[1],Z=dw(A,0),J=(0,eK.A)(Z,2),ee=J[0],et=J[1],en=(0,x.useState)(null),er=(0,eK.A)(en,2),eo=er[0],ea=er[1],ei=(0,x.useState)(null),el=(0,eK.A)(ei,2),ec=el[0],es=el[1],eu=x.useMemo(function(){return null===ec&&O?Number.MAX_SAFE_INTEGER:ec||0},[ec,j]),ed=(0,x.useState)(!1),ef=(0,eK.A)(ed,2),ep=ef[0],em=ef[1],eg="".concat(o,"-item"),eh=Math.max(W,K),ev=g===dI,eb=i.length&&ev,ey=g===dN,e$=eb||"number"==typeof g&&i.length>g,ex=(0,x.useMemo)(function(){var e=i;return eb?e=null===j&&O?i:i.slice(0,Math.min(i.length,R/d)):"number"==typeof g&&(e=i.slice(0,g)),e},[i,d,j,g,eb]),ew=(0,x.useMemo)(function(){return eb?i.slice(eu+1):i.slice(ex.length)},[i,ex,eb,eu]),eC=(0,x.useCallback)(function(e,t){var n;return"function"==typeof s?s(e):null!=(n=s&&(null==e?void 0:e[s]))?n:t},[s]),eE=(0,x.useCallback)(l||function(e){return e},[l]);function eS(e,t,n){(ec!==e||void 0!==t&&t!==eo)&&(es(e),n||(em(e<i.length-1),null==C||C(e)),void 0!==t&&ea(t))}function ek(e,t){B(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function eO(e){return z.get(eC(ex[e],e))}t$(function(){if(R&&"number"==typeof eh&&ex){var e=U+ee,t=ex.length,n=t-1;if(!t)return void eS(0,null);for(var r=0;r<t;r+=1){var o=eO(r);if(O&&(o=o||0),void 0===o){eS(r-1,void 0,!0);break}if(e+=o,0===n&&e<=R||r===n-1&&e+eO(n)<=R){eS(n,null);break}if(e+eh>R){eS(r-1,e-o-ee+K);break}}y&&eO(0)+ee>R&&ea(null)}},[R,z,K,U,ee,eC,ex]);var eA=ep&&!!ew.length,eI={};null!==eo&&eb&&(eI={position:"absolute",left:eo,top:0});var eN={prefixCls:eg,responsive:eb,component:w,invalidate:ey},eM=c?function(e,t){var n=eC(e,t);return x.createElement(dC.Provider,{key:n,value:(0,D.A)((0,D.A)({},eN),{},{order:t,item:e,itemKey:n,registerSize:ek,display:t<=eu})},c(e,t))}:function(e,t){var n=eC(e,t);return x.createElement(dx,S({},eN,{order:t,key:n,item:e,renderItem:eE,itemKey:n,registerSize:ek,display:t<=eu}))},eR={order:eA?eu:Number.MAX_SAFE_INTEGER,className:"".concat(eg,"-rest"),registerSize:function(e,t){X(t),_(K)},display:eA},eP=h||dj,eT=v?x.createElement(dC.Provider,{value:(0,D.A)((0,D.A)({},eN),eR)},v(ew)):x.createElement(dx,S({},eN,eR),"function"==typeof eP?eP(ew):eP),ez=x.createElement(void 0===$?"div":$,S({className:E()(!ey&&o,m),style:p,ref:t},k),b&&x.createElement(dx,S({},eN,{responsive:ev,responsiveDisabled:!eb,order:-1,className:"".concat(eg,"-prefix"),registerSize:function(e,t){Q(t)},display:!0}),b),ex.map(eM),e$?eT:null,y&&x.createElement(dx,S({},eN,{responsive:ev,responsiveDisabled:!eb,order:eu,className:"".concat(eg,"-suffix"),registerSize:function(e,t){et(t)},display:!0,style:eI}),y));return ev?x.createElement(ej,{onResize:function(e,t){M(t.clientWidth)},disabled:!eb},ez):ez});dM.displayName="Overflow",dM.Item=dO,dM.RESPONSIVE=dI,dM.INVALIDATE=dN;let dR=function(e,t,n){var r=(0,D.A)((0,D.A)({},e),n?t:{});return Object.keys(t).forEach(function(n){var o=t[n];"function"==typeof o&&(r[n]=function(){for(var t,r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return o.apply(void 0,a),null==(t=e[n])?void 0:t.call.apply(t,[e].concat(a))})}),r};var dP=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],dT=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,a=e.autoFocus,i=e.autoComplete,l=e.editable,c=e.activeDescendantId,s=e.value,u=e.open,d=e.attrs,f=(0,r3.A)(e,dP),p=o||x.createElement("input",null),m=p,g=m.ref,h=m.props;return P(!("maxLength"in p.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),p=x.cloneElement(p,(0,D.A)((0,D.A)((0,D.A)({type:"search"},dR(f,h,!0)),{},{id:r,ref:G(t,g),autoComplete:i||"off",autoFocus:a,className:E()("".concat(n,"-selection-search-input"),null==h?void 0:h.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":u?c:void 0},d),{},{value:l?s:"",readOnly:!l,unselectable:l?null:"on",style:(0,D.A)((0,D.A)({},h.style),{},{opacity:l?null:0})}))});function dz(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var dB="u">typeof window&&window.document&&window.document.documentElement;function dD(e){return["string","number"].includes((0,k.A)(e))}function dH(e){var t=void 0;return e&&(dD(e.title)?t=e.title.toString():dD(e.label)&&(t=e.label.toString())),t}function dL(e){var t;return null!=(t=e.key)?t:e.value}var dF=function(e){e.preventDefault(),e.stopPropagation()};let dW=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,i=e.open,l=e.searchValue,c=e.autoClearSearchValue,s=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,m=e.autoFocus,g=e.autoComplete,h=e.activeDescendantId,v=e.tabIndex,b=e.removeIcon,y=e.maxTagCount,$=e.maxTagTextLength,w=e.maxTagPlaceholder,C=void 0===w?function(e){return"+ ".concat(e.length," ...")}:w,S=e.tagRender,k=e.onToggleOpen,O=e.onRemove,A=e.onInputChange,I=e.onInputPaste,N=e.onInputKeyDown,j=e.onInputMouseDown,M=e.onInputCompositionStart,R=e.onInputCompositionEnd,P=e.onInputBlur,T=x.useRef(null),z=(0,x.useState)(0),B=(0,eK.A)(z,2),D=B[0],H=B[1],L=(0,x.useState)(!1),F=(0,eK.A)(L,2),W=F[0],_=F[1],V="".concat(o,"-selection"),q=i||"multiple"===f&&!1===c||"tags"===f?l:"",K="tags"===f||"multiple"===f&&!1===c||p&&(i||W);t=function(){H(T.current.scrollWidth)},n=[q],dB?x.useLayoutEffect(t,n):x.useEffect(t,n);var X=function(e,t,n,r,o){return x.createElement("span",{title:dH(e),className:E()("".concat(V,"-item"),(0,eX.A)({},"".concat(V,"-item-disabled"),n))},x.createElement("span",{className:"".concat(V,"-item-content")},t),r&&x.createElement(dm,{className:"".concat(V,"-item-remove"),onMouseDown:dF,onClick:o,customizeIcon:b},"\xd7"))},G=function(e,t,n,r,o,a){return x.createElement("span",{onMouseDown:function(e){dF(e),k(!i)}},S({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!a}))},Y=x.createElement("div",{className:"".concat(V,"-search"),style:{width:D},onFocus:function(){_(!0)},onBlur:function(){_(!1)}},x.createElement(dT,{ref:s,open:i,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:m,autoComplete:g,editable:K,activeDescendantId:h,value:q,onKeyDown:N,onMouseDown:j,onChange:A,onPaste:I,onCompositionStart:M,onCompositionEnd:R,onBlur:P,tabIndex:v,attrs:o5(e,!0)}),x.createElement("span",{ref:T,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},q,"\xa0")),U=x.createElement(dM,{prefixCls:"".concat(V,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,a=n;if("number"==typeof $&&("string"==typeof n||"number"==typeof n)){var i=String(a);i.length>$&&(a="".concat(i.slice(0,$),"..."))}var l=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof S?G(r,a,t,o,l):X(e,a,t,o,l)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof C?C(e):C;return"function"==typeof S?G(void 0,t,!1,!1,void 0,!0):X({title:t},t,!1)},suffix:Y,itemKey:dL,maxCount:y});return x.createElement("span",{className:"".concat(V,"-wrap")},U,!a.length&&!q&&x.createElement("span",{className:"".concat(V,"-placeholder")},u))},d_=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,u=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,m=e.showSearch,g=e.searchValue,h=e.activeValue,v=e.maxLength,b=e.onInputKeyDown,y=e.onInputMouseDown,$=e.onInputChange,w=e.onInputPaste,C=e.onInputCompositionStart,E=e.onInputCompositionEnd,S=e.onInputBlur,k=e.title,O=x.useState(!1),A=(0,eK.A)(O,2),I=A[0],N=A[1],j="combobox"===s,M=j||m,R=d[0],P=g||"";j&&h&&!I&&(P=h),x.useEffect(function(){j&&N(!1)},[j,h]);var T=("combobox"===s||!!u||!!m)&&!!P,z=void 0===k?dH(R):k,B=x.useMemo(function(){return R?null:x.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},f)},[R,T,f,n]);return x.createElement("span",{className:"".concat(n,"-selection-wrap")},x.createElement("span",{className:"".concat(n,"-selection-search")},x.createElement(dT,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:a,autoFocus:i,autoComplete:l,editable:M,activeDescendantId:c,value:P,onKeyDown:b,onMouseDown:y,onChange:function(e){N(!0),$(e)},onPaste:w,onCompositionStart:C,onCompositionEnd:E,onBlur:S,tabIndex:p,attrs:o5(e,!0),maxLength:j?v:void 0})),!j&&R?x.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:T?{visibility:"hidden"}:void 0},R.label):null,B)};var dV=x.forwardRef(function(e,t){var n=(0,x.useRef)(null),r=(0,x.useRef)(!1),o=e.prefixCls,a=e.open,i=e.mode,l=e.showSearch,c=e.tokenWithEnter,s=e.disabled,u=e.prefix,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,m=e.onToggleOpen,g=e.onInputKeyDown,h=e.onInputBlur,v=e.domRef;x.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var b=db(0),y=(0,eK.A)(b,2),$=y[0],w=y[1],C=(0,x.useRef)(null),E=function(e){!1!==f(e,!0,r.current)&&m(!0)},k={inputRef:n,onInputKeyDown:function(e){var t=e.which,o=n.current instanceof HTMLTextAreaElement;!o&&a&&(t===aM.UP||t===aM.DOWN)&&e.preventDefault(),g&&g(e),t!==aM.ENTER||"tags"!==i||r.current||a||null==p||p(e.target.value),o&&!a&&~[aM.UP,aM.DOWN,aM.LEFT,aM.RIGHT].indexOf(t)||t&&![aM.ESC,aM.SHIFT,aM.BACKSPACE,aM.TAB,aM.WIN_KEY,aM.ALT,aM.META,aM.WIN_KEY_RIGHT,aM.CTRL,aM.SEMICOLON,aM.EQUALS,aM.CAPS_LOCK,aM.CONTEXT_MENU,aM.F1,aM.F2,aM.F3,aM.F4,aM.F5,aM.F6,aM.F7,aM.F8,aM.F9,aM.F10,aM.F11,aM.F12].includes(t)&&m(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(c&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,E(t)},onInputPaste:function(e){var t=e.clipboardData;C.current=(null==t?void 0:t.getData("text"))||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==i&&E(e.target.value)},onInputBlur:h},O="multiple"===i||"tags"===i?x.createElement(dW,S({},e,k)):x.createElement(d_,S({},e,k));return x.createElement("div",{ref:v,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=$();e.target===n.current||t||"combobox"===i&&s||e.preventDefault(),("combobox"===i||l&&t)&&a||(a&&!1!==d&&f("",!0,!1),m())}},u&&x.createElement("div",{className:"".concat(o,"-prefix")},u),O)});function dq(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,s=o.y,u=x.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var f=n.points[0],p=n.points[1],m=f[0],g=f[1],h=p[0],v=p[1];m!==h&&["t","b"].includes(m)?"t"===m?d.top=0:d.bottom=0:d.top=void 0===s?0:s,g!==v&&["l","r"].includes(g)?"l"===g?d.left=0:d.right=0:d.left=void 0===c?0:c}return x.createElement("div",{ref:u,className:E()("".concat(t,"-arrow"),i),style:d},l)}function dK(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?x.createElement(oG,S({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return x.createElement("div",{style:{zIndex:r},className:E()("".concat(t,"-mask"),n)})}):null}var dX=x.memo(function(e){return e.children},function(e,t){return t.cache}),dG=x.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,c=e.open,s=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,m=e.arrowPos,g=e.align,h=e.motion,v=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,$=e.autoDestroy,w=e.portal,C=e.zIndex,k=e.onMouseEnter,O=e.onMouseLeave,A=e.onPointerEnter,I=e.onPointerDownCapture,N=e.ready,j=e.offsetX,M=e.offsetY,R=e.offsetR,P=e.offsetB,T=e.onAlign,z=e.onPrepare,B=e.stretch,H=e.targetWidth,L=e.targetHeight,F="function"==typeof n?n():n,W=c||s,_=(null==y?void 0:y.length)>0,V=x.useState(!y||!_),q=(0,eK.A)(V,2),K=q[0],X=q[1];if(t$(function(){!K&&_&&i&&X(!0)},[K,_,i]),!K)return null;var Y="auto",U={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(N||!c){var Q,Z=g.points,J=g.dynamicInset||(null==(Q=g._experimental)?void 0:Q.dynamicInset),ee=J&&"r"===Z[0][1],et=J&&"b"===Z[0][0];ee?(U.right=R,U.left=Y):(U.left=j,U.right=Y),et?(U.bottom=P,U.top=Y):(U.top=M,U.bottom=Y)}var en={};return B&&(B.includes("height")&&L?en.height=L:B.includes("minHeight")&&L&&(en.minHeight=L),B.includes("width")&&H?en.width=H:B.includes("minWidth")&&H&&(en.minWidth=H)),c||(en.pointerEvents="none"),x.createElement(w,{open:b||W,getContainer:y&&function(){return y(i)},autoDestroy:$},x.createElement(dK,{prefixCls:o,open:c,zIndex:C,mask:f,motion:v}),x.createElement(ej,{onResize:T,disabled:!c},function(e){return x.createElement(oG,S({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:z,onEnterPrepare:z,visible:c,onVisibleChanged:function(e){var t;null==h||null==(t=h.onVisibleChanged)||t.call(h,e),l(e)}}),function(n,i){var l=n.className,s=n.style,f=E()(o,l,r);return x.createElement("div",{ref:G(e,t,i),className:f,style:(0,D.A)((0,D.A)((0,D.A)((0,D.A)({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},U),en),s),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:k,onMouseLeave:O,onPointerEnter:A,onClick:d,onPointerDownCapture:I},p&&x.createElement(dq,{prefixCls:o,arrow:p,arrowPos:m,align:g}),x.createElement(dX,{cache:!c&&!u},F))})}))}),dY=x.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=U(n),a=Y(x.useCallback(function(e){X(t,r?r(e):e)},[r]),Z(n));return o?x.cloneElement(n,{ref:a}):n}),dU=x.createContext(null);function dQ(e){return e?Array.isArray(e)?e:[e]:[]}function dZ(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function dJ(e){return e.ownerDocument.defaultView}function d0(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=dJ(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function d1(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function d2(e){return d1(parseFloat(e),0)}function d4(e,t){var n=(0,D.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=dJ(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=d2(a),g=d2(i),h=d2(l),v=d2(c),b=d1(Math.round(s.width/f*1e3)/1e3),y=d1(Math.round(s.height/u*1e3)/1e3),$=m*y,x=h*b,w=0,C=0;if("clip"===r){var E=d2(o);w=E*b,C=E*y}var S=s.x+x-w,k=s.y+$-C,O=S+s.width+2*w-x-v*b-(f-p-h-v)*b,A=k+s.height+2*C-$-g*y-(u-d-m-g)*y;n.left=Math.max(n.left,S),n.top=Math.max(n.top,k),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,A)}}),n}function d3(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function d6(e,t){var n=(0,eK.A)(t||[],2),r=n[0],o=n[1];return[d3(e.width,r),d3(e.height,o)]}function d5(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function d8(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function d7(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var d9=["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"];let fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cS;return x.forwardRef(function(t,n){var r,o,a,i,l,c,s,u,d,f,p,m,g,h,v,b,y,$=t.prefixCls,w=void 0===$?"rc-trigger-popup":$,C=t.children,S=t.action,k=t.showAction,O=t.hideAction,A=t.popupVisible,I=t.defaultPopupVisible,N=t.onPopupVisibleChange,j=t.afterPopupVisibleChange,M=t.mouseEnterDelay,R=t.mouseLeaveDelay,P=void 0===R?.1:R,T=t.focusDelay,z=t.blurDelay,B=t.mask,H=t.maskClosable,L=t.getPopupContainer,W=t.forceRender,_=t.autoDestroy,V=t.destroyPopupOnHide,q=t.popup,K=t.popupClassName,X=t.popupStyle,G=t.popupPlacement,Y=t.builtinPlacements,U=void 0===Y?{}:Y,Q=t.popupAlign,Z=t.zIndex,J=t.stretch,ee=t.getPopupClassNameFromAlign,et=t.fresh,en=t.alignPoint,er=t.onPopupClick,eo=t.onPopupAlign,ea=t.arrow,ei=t.popupMotion,el=t.maskMotion,ec=t.popupTransitionName,es=t.popupAnimation,eu=t.maskTransitionName,ed=t.maskAnimation,ef=t.className,ep=t.getTriggerDOMNode,em=(0,r3.A)(t,d9),eg=x.useState(!1),eh=(0,eK.A)(eg,2),ev=eh[0],eb=eh[1];t$(function(){eb(dp())},[]);var ey=x.useRef({}),e$=x.useContext(dU),ex=x.useMemo(function(){return{registerSubPopup:function(e,t){ey.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),ew=cI(),eC=x.useState(null),eE=(0,eK.A)(eC,2),eS=eE[0],ek=eE[1],eO=x.useRef(null),eA=nh(function(e){eO.current=e,F(e)&&eS!==e&&ek(e),null==e$||e$.registerSubPopup(ew,e)}),eI=x.useState(null),eN=(0,eK.A)(eI,2),eR=eN[0],eP=eN[1],eT=x.useRef(null),ez=nh(function(e){F(e)&&eR!==e&&(eP(e),eT.current=e)}),eB=x.Children.only(C),eD=(null==eB?void 0:eB.props)||{},eH={},eL=nh(function(e){var t,n;return(null==eR?void 0:eR.contains(e))||(null==(t=r8(eR))?void 0:t.host)===e||e===eR||(null==eS?void 0:eS.contains(e))||(null==(n=r8(eS))?void 0:n.host)===e||e===eS||Object.values(ey.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),eF=dZ(w,ei,es,ec),eW=dZ(w,el,ed,eu),e_=x.useState(I||!1),eV=(0,eK.A)(e_,2),eq=eV[0],eX=eV[1],eG=null!=A?A:eq,eY=nh(function(e){void 0===A&&eX(e)});t$(function(){eX(A||!1)},[A]);var eU=x.useRef(eG);eU.current=eG;var eQ=x.useRef([]);eQ.current=[];var eZ=nh(function(e){var t;eY(e),(null!=(t=eQ.current[eQ.current.length-1])?t:eG)!==e&&(eQ.current.push(e),null==N||N(e))}),eJ=x.useRef(),e0=function(){clearTimeout(eJ.current)},e1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e0(),0===t?eZ(e):eJ.current=setTimeout(function(){eZ(e)},1e3*t)};x.useEffect(function(){return e0},[]);var e2=x.useState(!1),e4=(0,eK.A)(e2,2),e3=e4[0],e6=e4[1];t$(function(e){(!e||eG)&&e6(!0)},[eG]);var e5=x.useState(null),e8=(0,eK.A)(e5,2),e7=e8[0],e9=e8[1],te=x.useState(null),tt=(0,eK.A)(te,2),tn=tt[0],tr=tt[1],to=function(e){tr([e.clientX,e.clientY])},ta=(r=en&&null!==tn?tn:eR,o=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:U[G]||{}}),i=(a=(0,eK.A)(o,2))[0],l=a[1],c=x.useRef(0),s=x.useMemo(function(){return eS?d0(eS):[]},[eS]),u=x.useRef({}),eG||(u.current={}),d=nh(function(){if(eS&&r&&eG){var e=eS.ownerDocument,t=dJ(eS),n=t.getComputedStyle(eS).position,o=eS.style.left,a=eS.style.top,i=eS.style.right,c=eS.style.bottom,d=eS.style.overflow,f=(0,D.A)((0,D.A)({},U[G]),Q),p=e.createElement("div");if(null==(b=eS.parentElement)||b.appendChild(p),p.style.left="".concat(eS.offsetLeft,"px"),p.style.top="".concat(eS.offsetTop,"px"),p.style.position=n,p.style.height="".concat(eS.offsetHeight,"px"),p.style.width="".concat(eS.offsetWidth,"px"),eS.style.left="0",eS.style.top="0",eS.style.right="auto",eS.style.bottom="auto",eS.style.overflow="hidden",Array.isArray(r))w={x:r[0],y:r[1],width:0,height:0};else{var m,g,h,v,b,y,$,x,w,C,E,S=r.getBoundingClientRect();S.x=null!=(C=S.x)?C:S.left,S.y=null!=(E=S.y)?E:S.top,w={x:S.x,y:S.y,width:S.width,height:S.height}}var k=eS.getBoundingClientRect(),O=t.getComputedStyle(eS),A=O.height,I=O.width;k.x=null!=(y=k.x)?y:k.left,k.y=null!=($=k.y)?$:k.top;var N=e.documentElement,j=N.clientWidth,M=N.clientHeight,R=N.scrollWidth,P=N.scrollHeight,T=N.scrollTop,z=N.scrollLeft,B=k.height,H=k.width,L=w.height,W=w.width,_=f.htmlRegion,V="visible",q="visibleFirst";"scroll"!==_&&_!==q&&(_=V);var K=_===q,X=d4({left:-z,top:-T,right:R-z,bottom:P-T},s),Y=d4({left:0,top:0,right:j,bottom:M},s),Z=_===V?Y:X,J=K?Y:Z;eS.style.left="auto",eS.style.top="auto",eS.style.right="0",eS.style.bottom="0";var ee=eS.getBoundingClientRect();eS.style.left=o,eS.style.top=a,eS.style.right=i,eS.style.bottom=c,eS.style.overflow=d,null==(x=eS.parentElement)||x.removeChild(p);var et=d1(Math.round(H/parseFloat(I)*1e3)/1e3),en=d1(Math.round(B/parseFloat(A)*1e3)/1e3);if(!(0===et||0===en||F(r)&&!iG(r))){var er=f.offset,ea=f.targetOffset,ei=d6(k,er),el=(0,eK.A)(ei,2),ec=el[0],es=el[1],eu=d6(w,ea),ed=(0,eK.A)(eu,2),ef=ed[0],ep=ed[1];w.x-=ef,w.y-=ep;var em=f.points||[],eg=(0,eK.A)(em,2),eh=eg[0],ev=d5(eg[1]),eb=d5(eh),ey=d8(w,ev),e$=d8(k,eb),ex=(0,D.A)({},f),ew=ey.x-e$.x+ec,eC=ey.y-e$.y+es,eE=tr(ew,eC),ek=tr(ew,eC,Y),eO=d8(w,["t","l"]),eA=d8(k,["t","l"]),eI=d8(w,["b","r"]),eN=d8(k,["b","r"]),ej=f.overflow||{},eM=ej.adjustX,eR=ej.adjustY,eP=ej.shiftX,eT=ej.shiftY,ez=function(e){return"boolean"==typeof e?e:e>=0};to();var eB=ez(eR),eD=eb[0]===ev[0];if(eB&&"t"===eb[0]&&(g>J.bottom||u.current.bt)){var eH=eC;eD?eH-=B-L:eH=eO.y-eN.y-es;var eL=tr(ew,eH),eF=tr(ew,eH,Y);eL>eE||eL===eE&&(!K||eF>=ek)?(u.current.bt=!0,eC=eH,es=-es,ex.points=[d7(eb,0),d7(ev,0)]):u.current.bt=!1}if(eB&&"b"===eb[0]&&(m<J.top||u.current.tb)){var eW=eC;eD?eW+=B-L:eW=eI.y-eA.y-es;var e_=tr(ew,eW),eV=tr(ew,eW,Y);e_>eE||e_===eE&&(!K||eV>=ek)?(u.current.tb=!0,eC=eW,es=-es,ex.points=[d7(eb,0),d7(ev,0)]):u.current.tb=!1}var eq=ez(eM),eX=eb[1]===ev[1];if(eq&&"l"===eb[1]&&(v>J.right||u.current.rl)){var eY=ew;eX?eY-=H-W:eY=eO.x-eN.x-ec;var eU=tr(eY,eC),eQ=tr(eY,eC,Y);eU>eE||eU===eE&&(!K||eQ>=ek)?(u.current.rl=!0,ew=eY,ec=-ec,ex.points=[d7(eb,1),d7(ev,1)]):u.current.rl=!1}if(eq&&"r"===eb[1]&&(h<J.left||u.current.lr)){var eZ=ew;eX?eZ+=H-W:eZ=eI.x-eA.x-ec;var eJ=tr(eZ,eC),e0=tr(eZ,eC,Y);eJ>eE||eJ===eE&&(!K||e0>=ek)?(u.current.lr=!0,ew=eZ,ec=-ec,ex.points=[d7(eb,1),d7(ev,1)]):u.current.lr=!1}to();var e1=!0===eP?0:eP;"number"==typeof e1&&(h<Y.left&&(ew-=h-Y.left-ec,w.x+W<Y.left+e1&&(ew+=w.x-Y.left+W-e1)),v>Y.right&&(ew-=v-Y.right-ec,w.x>Y.right-e1&&(ew+=w.x-Y.right+e1)));var e2=!0===eT?0:eT;"number"==typeof e2&&(m<Y.top&&(eC-=m-Y.top-es,w.y+L<Y.top+e2&&(eC+=w.y-Y.top+L-e2)),g>Y.bottom&&(eC-=g-Y.bottom-es,w.y>Y.bottom-e2&&(eC+=w.y-Y.bottom+e2)));var e4=k.x+ew,e3=k.y+eC,e6=w.x,e5=w.y,e8=Math.max(e4,e6),e7=Math.min(e4+H,e6+W),e9=Math.max(e3,e5),te=Math.min(e3+B,e5+L);null==eo||eo(eS,ex);var tt=ee.right-k.x-(ew+k.width),tn=ee.bottom-k.y-(eC+k.height);1===et&&(ew=Math.floor(ew),tt=Math.floor(tt)),1===en&&(eC=Math.floor(eC),tn=Math.floor(tn)),l({ready:!0,offsetX:ew/et,offsetY:eC/en,offsetR:tt/et,offsetB:tn/en,arrowX:((e8+e7)/2-e4)/et,arrowY:((e9+te)/2-e3)/en,scaleX:et,scaleY:en,align:ex})}function tr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z,r=k.x+e,o=k.y+t,a=Math.max(r,n.left),i=Math.max(o,n.top);return Math.max(0,(Math.min(r+H,n.right)-a)*(Math.min(o+B,n.bottom)-i))}function to(){g=(m=k.y+eC)+B,v=(h=k.x+ew)+H}}}),t$(f=function(){l(function(e){return(0,D.A)((0,D.A)({},e),{},{ready:!1})})},[G]),t$(function(){eG||f()},[eG]),[i.ready,i.offsetX,i.offsetY,i.offsetR,i.offsetB,i.arrowX,i.arrowY,i.scaleX,i.scaleY,i.align,function(){c.current+=1;var e=c.current;Promise.resolve().then(function(){c.current===e&&d()})}]),ti=(0,eK.A)(ta,11),tl=ti[0],tc=ti[1],ts=ti[2],tu=ti[3],td=ti[4],tf=ti[5],tp=ti[6],tm=ti[7],tg=ti[8],th=ti[9],tv=ti[10],tb=(p=void 0===S?"hover":S,x.useMemo(function(){var e=dQ(null!=k?k:p),t=dQ(null!=O?O:p),n=new Set(e),r=new Set(t);return ev&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ev,p,k,O])),ty=(0,eK.A)(tb,2),tx=ty[0],tw=ty[1],tC=tx.has("click"),tE=tw.has("click")||tw.has("contextMenu"),tS=nh(function(){e3||tv()});m=function(){eU.current&&en&&tE&&e1(!1)},t$(function(){if(eG&&eR&&eS){var e=d0(eR),t=d0(eS),n=dJ(eS),r=new Set([n].concat((0,eM.A)(e),(0,eM.A)(t)));function o(){tS(),m()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),tS(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[eG,eR,eS]),t$(function(){tS()},[tn,G]),t$(function(){eG&&!(null!=U&&U[G])&&tS()},[JSON.stringify(Q)]);var tk=x.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,c=a[i];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null==(l=e[c])?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(U,w,th,en);return E()(e,null==ee?void 0:ee(th))},[th,ee,U,w,en]);x.useImperativeHandle(n,function(){return{nativeElement:eT.current,popupElement:eO.current,forceAlign:tS}});var tO=x.useState(0),tA=(0,eK.A)(tO,2),tI=tA[0],tN=tA[1],tj=x.useState(0),tM=(0,eK.A)(tj,2),tR=tM[0],tP=tM[1],tT=function(){if(J&&eR){var e=eR.getBoundingClientRect();tN(e.width),tP(e.height)}};function tz(e,t,n,r){eH[e]=function(o){var a;null==r||r(o),e1(t,n);for(var i=arguments.length,l=Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];null==(a=eD[e])||a.call.apply(a,[eD,o].concat(l))}}t$(function(){e7&&(tv(),e7(),e9(null))},[e7]),(tC||tE)&&(eH.onClick=function(e){var t;eU.current&&tE?e1(!1):!eU.current&&tC&&(to(e),e1(!0));for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==(t=eD.onClick)||t.call.apply(t,[eD,e].concat(r))});var tB=(g=void 0===H||H,(h=x.useRef(eG)).current=eG,v=x.useRef(!1),x.useEffect(function(){if(tE&&eS&&(!B||g)){var e=function(){v.current=!1},t=function(e){var t;!h.current||eL((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)||v.current||e1(!1)},n=dJ(eS);n.addEventListener("pointerdown",e,!0),n.addEventListener("mousedown",t,!0),n.addEventListener("contextmenu",t,!0);var r=r8(eR);return r&&(r.addEventListener("mousedown",t,!0),r.addEventListener("contextmenu",t,!0)),function(){n.removeEventListener("pointerdown",e,!0),n.removeEventListener("mousedown",t,!0),n.removeEventListener("contextmenu",t,!0),r&&(r.removeEventListener("mousedown",t,!0),r.removeEventListener("contextmenu",t,!0))}}},[tE,eR,eS,B,g]),function(){v.current=!0}),tD=tx.has("hover"),tH=tw.has("hover");tD&&(tz("onMouseEnter",!0,M,function(e){to(e)}),tz("onPointerEnter",!0,M,function(e){to(e)}),b=function(e){(eG||e3)&&null!=eS&&eS.contains(e.target)&&e1(!0,M)},en&&(eH.onMouseMove=function(e){var t;null==(t=eD.onMouseMove)||t.call(eD,e)})),tH&&(tz("onMouseLeave",!1,P),tz("onPointerLeave",!1,P),y=function(){e1(!1,P)}),tx.has("focus")&&tz("onFocus",!0,T),tw.has("focus")&&tz("onBlur",!1,z),tx.has("contextMenu")&&(eH.onContextMenu=function(e){var t;eU.current&&tw.has("contextMenu")?e1(!1):(to(e),e1(!0)),e.preventDefault();for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==(t=eD.onContextMenu)||t.call.apply(t,[eD,e].concat(r))}),ef&&(eH.className=E()(eD.className,ef));var tL=x.useRef(!1);tL.current||(tL.current=W||eG||e3);var tF=(0,D.A)((0,D.A)({},eD),eH),tW={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){em[e]&&(tW[e]=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==(t=tF[e])||t.call.apply(t,[tF].concat(r)),em[e].apply(em,r)})});var t_=x.cloneElement(eB,(0,D.A)((0,D.A)({},tF),tW)),tV=ea?(0,D.A)({},!0!==ea?ea:{}):null;return x.createElement(x.Fragment,null,x.createElement(ej,{disabled:!eG,ref:ez,onResize:function(){tT(),tS()}},x.createElement(dY,{getTriggerDOMNode:ep},t_)),tL.current&&x.createElement(dU.Provider,{value:ex},x.createElement(dG,{portal:e,ref:eA,prefixCls:w,popup:q,className:E()(K,tk),style:X,target:eR,onMouseEnter:b,onMouseLeave:y,onPointerEnter:b,zIndex:Z,open:eG,keepDom:e3,fresh:et,onClick:er,onPointerDownCapture:tB,mask:B,motion:eF,maskMotion:eW,onVisibleChanged:function(e){e6(!1),tv(),null==j||j(e)},onPrepare:function(){return new Promise(function(e){tT(),e9(function(){return e})})},forceRender:W,autoDestroy:_||V||!1,getPopupContainer:L,align:th,arrow:tV,arrowPos:{x:tf,y:tp},ready:tl,offsetX:tc,offsetY:ts,offsetR:tu,offsetB:td,onAlign:tS,stretch:J,targetWidth:tI/tm,targetHeight:tR/tg})))})}(cS);var ft=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fn=function(e){var t=+(!0!==e);return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},fr=x.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,a=e.popupElement,i=e.animation,l=e.transitionName,c=e.dropdownStyle,s=e.dropdownClassName,u=e.direction,d=e.placement,f=e.builtinPlacements,p=e.dropdownMatchSelectWidth,m=e.dropdownRender,g=e.dropdownAlign,h=e.getPopupContainer,v=e.empty,b=e.getTriggerDOMNode,y=e.onPopupVisibleChange,$=e.onPopupMouseEnter,w=(0,r3.A)(e,ft),C="".concat(n,"-dropdown"),k=a;m&&(k=m(a));var O=x.useMemo(function(){return f||fn(p)},[f,p]),A=i?"".concat(C,"-").concat(i):l,I="number"==typeof p,N=x.useMemo(function(){return I?null:!1===p?"minWidth":"width"},[p,I]),j=c;I&&(j=(0,D.A)((0,D.A)({},j),{},{width:p}));var M=x.useRef(null);return x.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null==(e=M.current)?void 0:e.popupElement}}}),x.createElement(fe,S({},w,{showAction:y?["click"]:[],hideAction:y?["click"]:[],popupPlacement:d||("rtl"===(void 0===u?"ltr":u)?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:C,popupTransitionName:A,popup:x.createElement("div",{onMouseEnter:$},k),ref:M,stretch:N,popupAlign:g,popupVisible:r,getPopupContainer:h,popupClassName:E()(s,(0,eX.A)({},"".concat(C,"-empty"),v)),popupStyle:j,getTriggerDOMNode:b,onPopupVisibleChange:y}),o)});function fo(e,t){var n,r=e.key;return("value"in e&&(n=e.value),null!=r)?r:void 0!==n?n:"rc-index-key-".concat(t)}function fa(e){return void 0!==e&&!Number.isNaN(e)}function fi(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function fl(e){var t=(0,D.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return B(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var fc=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=nS(n),a=o[0],i=o.slice(1);if(!a)return[t];var l=t.split(a);return r=r||l.length>1,l.reduce(function(t,n){return[].concat((0,eM.A)(t),(0,eM.A)(e(n,i)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null},fs=x.createContext(null);function fu(e){var t=e.visible,n=e.values;return t?x.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes((0,k.A)(t))?t:n}).join(", ")),n.length>50?", ...":null):null}var fd=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ff=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],fp=function(e){return"tags"===e||"multiple"===e},fm=x.forwardRef(function(e,t){var n,r,o,a,i,l,c,s=e.id,u=e.prefixCls,d=e.className,f=e.showSearch,p=e.tagRender,m=e.direction,g=e.omitDomProps,h=e.displayValues,v=e.onDisplayValuesChange,b=e.emptyOptions,y=e.notFoundContent,$=void 0===y?"Not Found":y,w=e.onClear,C=e.mode,k=e.disabled,O=e.loading,A=e.getInputElement,I=e.getRawInputElement,N=e.open,j=e.defaultOpen,M=e.onDropdownVisibleChange,R=e.activeValue,P=e.onActiveValueChange,T=e.activeDescendantId,z=e.searchValue,B=e.autoClearSearchValue,H=e.onSearch,L=e.onSearchSplit,F=e.tokenSeparators,W=e.allowClear,_=e.prefix,V=e.suffixIcon,q=e.clearIcon,K=e.OptionList,X=e.animation,G=e.transitionName,U=e.dropdownStyle,Q=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,J=e.dropdownRender,ee=e.dropdownAlign,et=e.placement,en=e.builtinPlacements,er=e.getPopupContainer,eo=e.showAction,ea=void 0===eo?[]:eo,ei=e.onFocus,el=e.onBlur,ec=e.onKeyUp,es=e.onKeyDown,eu=e.onMouseDown,ed=(0,r3.A)(e,fd),ef=fp(C),ep=(void 0!==f?f:ef)||"combobox"===C,em=(0,D.A)({},ed);ff.forEach(function(e){delete em[e]}),null==g||g.forEach(function(e){delete em[e]});var eg=x.useState(!1),eh=(0,eK.A)(eg,2),ev=eh[0],eb=eh[1];x.useEffect(function(){eb(dp())},[]);var ey=x.useRef(null),e$=x.useRef(null),ex=x.useRef(null),ew=x.useRef(null),eC=x.useRef(null),eE=x.useRef(!1),eS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=x.useState(!1),n=(0,eK.A)(t,2),r=n[0],o=n[1],a=x.useRef(null),i=function(){window.clearTimeout(a.current)};return x.useEffect(function(){return i},[]),[r,function(t,n){i(),a.current=window.setTimeout(function(){o(t),n&&n()},e)},i]}(),ek=(0,eK.A)(eS,3),eO=ek[0],eA=ek[1],eI=ek[2];x.useImperativeHandle(t,function(){var e,t;return{focus:null==(e=ew.current)?void 0:e.focus,blur:null==(t=ew.current)?void 0:t.blur,scrollTo:function(e){var t;return null==(t=eC.current)?void 0:t.scrollTo(e)},nativeElement:ey.current||e$.current}});var eN=x.useMemo(function(){if("combobox"!==C)return z;var e,t=null==(e=h[0])?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[z,C,h]),ej="combobox"===C&&"function"==typeof A&&A()||null,eR="function"==typeof I&&I(),eP=Y(e$,null==eR||null==(a=eR.props)?void 0:a.ref),eT=x.useState(!1),ez=(0,eK.A)(eT,2),eB=ez[0],eD=ez[1];t$(function(){eD(!0)},[]);var eH=ny(!1,{defaultValue:j,value:N}),eL=(0,eK.A)(eH,2),eF=eL[0],eW=eL[1],e_=!!eB&&eF,eV=!$&&b;(k||eV&&e_&&"combobox"===C)&&(e_=!1);var eq=!eV&&e_,eG=x.useCallback(function(e){var t=void 0!==e?e:!e_;k||(eW(t),e_!==t&&(null==M||M(t)))},[k,e_,eW,M]),eY=x.useMemo(function(){return(F||[]).some(function(e){return["\n","\r\n"].includes(e)})},[F]),eU=x.useContext(fs)||{},eQ=eU.maxCount,eZ=eU.rawValues,eJ=function(e,t,n){if(!(ef&&fa(eQ))||!((null==eZ?void 0:eZ.size)>=eQ)){var r=!0,o=e;null==P||P(null);var a=fc(e,F,fa(eQ)?eQ-eZ.size:void 0),i=n?null:a;return"combobox"!==C&&i&&(o="",null==L||L(i),eG(!1),r=!1),H&&eN!==o&&H(o,{source:t?"typing":"effect"}),r}};x.useEffect(function(){e_||ef||"combobox"===C||eJ("",!1,!1)},[e_]),x.useEffect(function(){eF&&k&&eW(!1),k&&!eE.current&&eA(!1)},[k]);var e0=db(),e1=(0,eK.A)(e0,2),e2=e1[0],e4=e1[1],e3=x.useRef(!1),e6=x.useRef(!1),e5=[];x.useEffect(function(){return function(){e5.forEach(function(e){return clearTimeout(e)}),e5.splice(0,e5.length)}},[]);var e8=x.useState({}),e7=(0,eK.A)(e8,2)[1];eR&&(i=function(e){eG(e)}),n=function(){var e;return[ey.current,null==(e=ex.current)?void 0:e.getPopupElement()]},r=!!eR,(o=x.useRef(null)).current={open:eq,triggerOpen:eG,customizedTrigger:r},x.useEffect(function(){function e(e){if(null==(t=o.current)||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var e9=x.useMemo(function(){return(0,D.A)((0,D.A)({},e),{},{notFoundContent:$,open:e_,triggerOpen:eq,id:s,showSearch:ep,multiple:ef,toggleOpen:eG})},[e,$,eq,e_,s,ep,ef,eG]),te=!!V||O;te&&(l=x.createElement(dm,{className:E()("".concat(u,"-arrow"),(0,eX.A)({},"".concat(u,"-arrow-loading"),O)),customizeIcon:V,customizeIconProps:{loading:O,searchValue:eN,open:e_,focused:eO,showSearch:ep}}));var tt=dg(u,function(){var e;null==w||w(),null==(e=ew.current)||e.focus(),v([],{type:"clear",values:h}),eJ("",!1,!1)},h,W,q,k,eN,C),tn=tt.allowClear,tr=tt.clearIcon,to=x.createElement(K,{ref:eC}),ta=E()(u,d,(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(u,"-focused"),eO),"".concat(u,"-multiple"),ef),"".concat(u,"-single"),!ef),"".concat(u,"-allow-clear"),W),"".concat(u,"-show-arrow"),te),"".concat(u,"-disabled"),k),"".concat(u,"-loading"),O),"".concat(u,"-open"),e_),"".concat(u,"-customize-input"),ej),"".concat(u,"-show-search"),ep)),ti=x.createElement(fr,{ref:ex,disabled:k,prefixCls:u,visible:eq,popupElement:to,animation:X,transitionName:G,dropdownStyle:U,dropdownClassName:Q,direction:m,dropdownMatchSelectWidth:Z,dropdownRender:J,dropdownAlign:ee,placement:et,builtinPlacements:en,getPopupContainer:er,empty:b,getTriggerDOMNode:function(e){return e$.current||e},onPopupVisibleChange:i,onPopupMouseEnter:function(){e7({})}},eR?x.cloneElement(eR,{ref:eP}):x.createElement(dV,S({},e,{domRef:e$,prefixCls:u,inputElement:ej,ref:ew,id:s,prefix:_,showSearch:ep,autoClearSearchValue:B,mode:C,activeDescendantId:T,tagRender:p,values:h,open:e_,onToggleOpen:eG,activeValue:R,searchValue:eN,onSearch:eJ,onSearchSubmit:function(e){e&&e.trim()&&H(e,{source:"submit"})},onRemove:function(e){v(h.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:eY,onInputBlur:function(){e3.current=!1}})));return c=eR?ti:x.createElement("div",S({className:ta},em,{ref:ey,onMouseDown:function(e){var t,n=e.target,r=null==(t=ex.current)?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=e5.indexOf(o);-1!==t&&e5.splice(t,1),eI(),ev||r.contains(document.activeElement)||null==(e=ew.current)||e.focus()});e5.push(o)}for(var a=arguments.length,i=Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];null==eu||eu.apply(void 0,[e].concat(i))},onKeyDown:function(e){var t,n=e2(),r=e.key,o="Enter"===r;if(o&&("combobox"!==C&&e.preventDefault(),e_||eG(!0)),e4(!!eN),"Backspace"===r&&!n&&ef&&!eN&&h.length){for(var a=(0,eM.A)(h),i=null,l=a.length-1;l>=0;l-=1){var c=a[l];if(!c.disabled){a.splice(l,1),i=c;break}}i&&v(a,{type:"remove",values:[i]})}for(var s=arguments.length,u=Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];!e_||o&&e3.current||(o&&(e3.current=!0),null==(t=eC.current)||t.onKeyDown.apply(t,[e].concat(u))),null==es||es.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e_&&(null==(t=eC.current)||t.onKeyUp.apply(t,[e].concat(r))),"Enter"===e.key&&(e3.current=!1),null==ec||ec.apply(void 0,[e].concat(r))},onFocus:function(){eA(!0),!k&&(ei&&!e6.current&&ei.apply(void 0,arguments),ea.includes("focus")&&eG(!0)),e6.current=!0},onBlur:function(){eE.current=!0,eA(!1,function(){e6.current=!1,eE.current=!1,eG(!1)}),!k&&(eN&&("tags"===C?H(eN,{source:"submit"}):"multiple"===C&&H("",{source:"blur"})),el&&el.apply(void 0,arguments))}}),x.createElement(fu,{visible:eO&&!e_,values:h}),ti,l,tn&&tr),x.createElement(dh.Provider,{value:e9},c)}),fg=function(){return null};fg.isSelectOptGroup=!0;var fh=function(){return null};fh.isSelectOption=!0;var fv=x.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,l=e.onInnerResize,c=e.innerProps,s=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:n,position:"relative",overflow:"hidden"},f=(0,D.A)((0,D.A)({},f),{},(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({transform:"translateY(".concat(r,"px)")},s?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),x.createElement("div",{style:d},x.createElement(ej,{onResize:function(e){e.offsetHeight&&l&&l()}},x.createElement("div",S({style:f,className:E()((0,eX.A)({},"".concat(i,"-holder-inner"),i)),ref:t},c),a,u)))});function fb(e){var t=e.children,n=e.setRef,r=x.useCallback(function(e){n(e)},[]);return x.cloneElement(t,{ref:r})}fv.displayName="Filler";var fy=("u"<typeof navigator?"undefined":(0,k.A)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);let f$=function(e,t,n,r){var o=(0,x.useRef)(!1),a=(0,x.useRef)(null),i=(0,x.useRef)({top:e,bottom:t,left:n,right:r});return i.current.top=e,i.current.bottom=t,i.current.left=n,i.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&i.current.left||t>0&&i.current.right:t<0&&i.current.top||t>0&&i.current.bottom;return n&&r?(clearTimeout(a.current),o.current=!1):(!r||o.current)&&(clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)),!o.current&&r}};var fx=function(){function e(){(0,ew.A)(this,e),(0,eX.A)(this,"maps",void 0),(0,eX.A)(this,"id",0),(0,eX.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,eC.A)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function fw(e){var t=parseFloat(e);return isNaN(t)?0:t}var fC=14/15;function fE(e){return Math.floor(Math.pow(e,.5))}function fS(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var fk=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,l=e.onStopMove,c=e.onScroll,s=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,m=e.showScrollBar,g=x.useState(!1),h=(0,eK.A)(g,2),v=h[0],b=h[1],y=x.useState(null),$=(0,eK.A)(y,2),w=$[0],C=$[1],S=x.useState(null),k=(0,eK.A)(S,2),O=k[0],A=k[1],I=!r,N=x.useRef(),j=x.useRef(),M=x.useState(m),R=(0,eK.A)(M,2),P=R[0],T=R[1],z=x.useRef(),B=function(){!0!==m&&!1!==m&&(clearTimeout(z.current),T(!0),z.current=setTimeout(function(){T(!1)},3e3))},H=a-d||0,L=d-u||0,F=x.useMemo(function(){return 0===o||0===H?0:o/H*L},[o,H,L]),W=x.useRef({top:F,dragging:v,pageY:w,startTop:O});W.current={top:F,dragging:v,pageY:w,startTop:O};var _=function(e){b(!0),C(fS(e,s)),A(W.current.top),i(),e.stopPropagation(),e.preventDefault()};x.useEffect(function(){var e=function(e){e.preventDefault()},t=N.current,n=j.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",_,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",_)}},[]);var V=x.useRef();V.current=H;var q=x.useRef();q.current=L,x.useEffect(function(){if(v){var e,t=function(t){var n=W.current,r=n.dragging,o=n.pageY,a=n.startTop;eB.cancel(e);var i=N.current.getBoundingClientRect(),l=d/(s?i.width:i.height);if(r){var u=(fS(t,s)-o)*l,f=a;!I&&s?f-=u:f+=u;var p=V.current,m=q.current,g=Math.ceil((m?f/m:0)*p);g=Math.min(g=Math.max(g,0),p),e=eB(function(){c(g,s)})}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),eB.cancel(e)}}},[v]),x.useEffect(function(){return B(),function(){clearTimeout(z.current)}},[o]),x.useImperativeHandle(t,function(){return{delayHidden:B}});var K="".concat(n,"-scrollbar"),X={position:"absolute",visibility:P?null:"hidden"},G={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return s?(Object.assign(X,{height:8,left:0,right:0,bottom:0}),Object.assign(G,(0,eX.A)({height:"100%",width:u},I?"left":"right",F))):(Object.assign(X,(0,eX.A)({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(G,{width:"100%",height:u,top:F})),x.createElement("div",{ref:N,className:E()(K,(0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(K,"-horizontal"),s),"".concat(K,"-vertical"),!s),"".concat(K,"-visible"),P)),style:(0,D.A)((0,D.A)({},X),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:B},x.createElement("div",{ref:j,className:E()("".concat(K,"-thumb"),(0,eX.A)({},"".concat(K,"-thumb-moving"),v)),style:(0,D.A)((0,D.A)({},G),p),onMouseDown:_}))});function fO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),Math.floor(n=Math.max(n,20))}var fA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],fI=[],fN={overflowY:"auto",overflowAnchor:"none"},fj=x.forwardRef(function(e,t){var n,r,o,a,i,l,c,s,u,d,f,p,m,g,h,v,b,y,$,w,C,O,A,I,N,j,M,R,P,T,z,B,L,F,W,_,V,q=e.prefixCls,K=void 0===q?"rc-virtual-list":q,X=e.className,G=e.height,Y=e.itemHeight,U=e.fullHeight,Q=e.style,Z=e.data,J=e.children,ee=e.itemKey,et=e.virtual,en=e.direction,er=e.scrollWidth,eo=e.component,ea=e.onScroll,ei=e.onVirtualScroll,el=e.onVisibleChange,ec=e.innerProps,es=e.extraRender,eu=e.styles,ed=e.showScrollBar,ef=void 0===ed?"optional":ed,ep=(0,r3.A)(e,fA),em=x.useCallback(function(e){return"function"==typeof ee?ee(e):null==e?void 0:e[ee]},[ee]),eg=function(e){var t=x.useState(0),n=(0,eK.A)(t,2),r=n[0],o=n[1],a=(0,x.useRef)(new Map),i=(0,x.useRef)(new fx),l=(0,x.useRef)(0);function c(){l.current+=1}function s(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){var e=!1;a.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),a=o.marginTop,l=o.marginBottom,c=r+fw(a)+fw(l);i.current.get(n)!==c&&(i.current.set(n,c),e=!0)}}),e&&o(function(e){return e+1})};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then(function(){n===l.current&&t()})}}return(0,x.useEffect)(function(){return c},[]),[function(t,n){var r=e(t);a.current.get(r),n?(a.current.set(r,n),s()):a.current.delete(r)},s,i.current,r]}(em),eh=(0,eK.A)(eg,4),ev=eh[0],eb=eh[1],ey=eh[2],e$=eh[3],ex=!!(!1!==et&&G&&Y),ew=x.useMemo(function(){return Object.values(ey.maps).reduce(function(e,t){return e+t},0)},[ey.id,ey.maps]),eC=ex&&Z&&(Math.max(Y*Z.length,ew)>G||!!er),eE="rtl"===en,eS=E()(K,(0,eX.A)({},"".concat(K,"-rtl"),eE),X),ek=Z||fI,eO=(0,x.useRef)(),eA=(0,x.useRef)(),eI=(0,x.useRef)(),eN=(0,x.useState)(0),eM=(0,eK.A)(eN,2),eR=eM[0],eP=eM[1],eT=(0,x.useState)(0),ez=(0,eK.A)(eT,2),eD=ez[0],eH=ez[1],eL=(0,x.useState)(!1),eF=(0,eK.A)(eL,2),eW=eF[0],e_=eF[1],eV=function(){e_(!0)},eq=function(){e_(!1)};function eG(e){eP(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(tn.current)||(n=Math.min(n,tn.current)),n=Math.max(n,0));return eO.current.scrollTop=r,r})}var eY=(0,x.useRef)({start:0,end:ek.length}),eU=(0,x.useRef)(),eQ=(n=x.useState(ek),o=(r=(0,eK.A)(n,2))[0],a=r[1],i=x.useState(null),c=(l=(0,eK.A)(i,2))[0],s=l[1],x.useEffect(function(){var e=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(a-i),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(o||[],ek||[],em);(null==e?void 0:e.index)!==void 0&&s(ek[e.index]),a(ek)},[ek]),[c]);eU.current=(0,eK.A)(eQ,1)[0];var eZ=x.useMemo(function(){if(!ex)return{scrollHeight:void 0,start:0,end:ek.length-1,offset:void 0};if(!eC)return{scrollHeight:(null==(e=eA.current)?void 0:e.offsetHeight)||0,start:0,end:ek.length-1,offset:void 0};for(var e,t,n,r,o=0,a=ek.length,i=0;i<a;i+=1){var l=em(ek[i]),c=ey.get(l),s=o+(void 0===c?Y:c);s>=eR&&void 0===t&&(t=i,n=o),s>eR+G&&void 0===r&&(r=i),o=s}return void 0===t&&(t=0,n=0,r=Math.ceil(G/Y)),void 0===r&&(r=ek.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,ek.length-1),offset:n}},[eC,ex,eR,ek,e$,G]),eJ=eZ.scrollHeight,e0=eZ.start,e1=eZ.end,e2=eZ.offset;eY.current.start=e0,eY.current.end=e1,x.useLayoutEffect(function(){var e=ey.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=ek[e0];if(r&&void 0===n&&em(r)===t){var o=ey.get(t)-Y;eG(function(e){return e+o})}}ey.resetRecord()},[eJ]);var e4=x.useState({width:0,height:G}),e3=(0,eK.A)(e4,2),e6=e3[0],e5=e3[1],e8=(0,x.useRef)(),e7=(0,x.useRef)(),e9=x.useMemo(function(){return fO(e6.width,er)},[e6.width,er]),te=x.useMemo(function(){return fO(e6.height,eJ)},[e6.height,eJ]),tt=eJ-G,tn=(0,x.useRef)(tt);tn.current=tt;var tr=eR<=0,to=eR>=tt,ta=eD<=0,ti=eD>=er,tl=f$(tr,to,ta,ti),tc=function(){return{x:eE?-eD:eD,y:eR}},ts=(0,x.useRef)(tc()),tu=nh(function(e){if(ei){var t=(0,D.A)((0,D.A)({},tc()),e);(ts.current.x!==t.x||ts.current.y!==t.y)&&(ei(t),ts.current=t)}});function td(e,t){t?((0,H.flushSync)(function(){eH(e)}),tu()):eG(e)}var tf=function(e){var t=e,n=er?er-e6.width:0;return Math.min(t=Math.max(t,0),n)},tp=nh(function(e,t){t?((0,H.flushSync)(function(){eH(function(t){return tf(t+(eE?-e:e))})}),tu()):eG(function(t){return t+e})}),tm=(u=!!er,d=(0,x.useRef)(0),f=(0,x.useRef)(null),p=(0,x.useRef)(null),m=(0,x.useRef)(!1),g=f$(tr,to,ta,ti),h=(0,x.useRef)(null),v=(0,x.useRef)(null),[function(e){if(ex){eB.cancel(v.current),v.current=eB(function(){h.current=null},2);var t,n,r=e.deltaX,o=e.deltaY,a=e.shiftKey,i=r,l=o;("sx"===h.current||!h.current&&a&&o&&!r)&&(i=o,l=0,h.current="sx");var c=Math.abs(i),s=Math.abs(l);if(null===h.current&&(h.current=u&&c>s?"x":"y"),"y"===h.current){t=e,n=l,eB.cancel(f.current),!g(!1,n)&&(t._virtualHandled||(t._virtualHandled=!0,d.current+=n,p.current=n,fy||t.preventDefault(),f.current=eB(function(){var e=m.current?10:1;tp(d.current*e,!1),d.current=0})))}else tp(i,!0),fy||e.preventDefault()}},function(e){ex&&(m.current=e.detail===p.current)}]),tg=(0,eK.A)(tm,2),th=tg[0],tv=tg[1];b=function(e,t,n,r){return!tl(e,t,n)&&(!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),th({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)},$=(0,x.useRef)(!1),w=(0,x.useRef)(0),C=(0,x.useRef)(0),O=(0,x.useRef)(null),A=(0,x.useRef)(null),I=function(e){if($.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),r=w.current-t,o=C.current-n,a=Math.abs(r)>Math.abs(o);a?w.current=t:C.current=n;var i=b(a,a?r:o,!1,e);i&&e.preventDefault(),clearInterval(A.current),i&&(A.current=setInterval(function(){a?r*=fC:o*=fC;var e=Math.floor(a?r:o);(!b(a,e,!0)||.1>=Math.abs(e))&&clearInterval(A.current)},16))}},N=function(){$.current=!1,y()},j=function(e){y(),1!==e.touches.length||$.current||($.current=!0,w.current=Math.ceil(e.touches[0].pageX),C.current=Math.ceil(e.touches[0].pageY),O.current=e.target,O.current.addEventListener("touchmove",I,{passive:!1}),O.current.addEventListener("touchend",N,{passive:!0}))},y=function(){O.current&&(O.current.removeEventListener("touchmove",I),O.current.removeEventListener("touchend",N))},t$(function(){return ex&&eO.current.addEventListener("touchstart",j,{passive:!0}),function(){var e;null==(e=eO.current)||e.removeEventListener("touchstart",j),y(),clearInterval(A.current)}},[ex]),M=function(e){eG(function(t){return t+e})},x.useEffect(function(){var e=eO.current;if(eC&&e){var t,n,r=!1,o=function(){eB.cancel(t)},a=function e(){o(),t=eB(function(){M(n),e()})},i=function(){r=!1,o()},l=function(e){!e.target.draggable&&0===e.button&&(e._virtualHandled||(e._virtualHandled=!0,r=!0))},c=function(t){if(r){var i=fS(t,!1),l=e.getBoundingClientRect(),c=l.top,s=l.bottom;i<=c?(n=-fE(c-i),a()):i>=s?(n=fE(i-s),a()):o()}};return e.addEventListener("mousedown",l),e.ownerDocument.addEventListener("mouseup",i),e.ownerDocument.addEventListener("mousemove",c),e.ownerDocument.addEventListener("dragend",i),function(){e.removeEventListener("mousedown",l),e.ownerDocument.removeEventListener("mouseup",i),e.ownerDocument.removeEventListener("mousemove",c),e.ownerDocument.removeEventListener("dragend",i),o()}}},[eC]),t$(function(){function e(e){var t=tr&&e.detail<0,n=to&&e.detail>0;!ex||t||n||e.preventDefault()}var t=eO.current;return t.addEventListener("wheel",th,{passive:!1}),t.addEventListener("DOMMouseScroll",tv,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",th),t.removeEventListener("DOMMouseScroll",tv),t.removeEventListener("MozMousePixelScroll",e)}},[ex,tr,to]),t$(function(){if(er){var e=tf(eD);eH(e),tu({x:e})}},[e6.width,er]);var tb=function(){var e,t;null==(e=e8.current)||e.delayHidden(),null==(t=e7.current)||t.delayHidden()},ty=(R=function(){return eb(!0)},P=x.useRef(),T=x.useState(null),B=(z=(0,eK.A)(T,2))[0],L=z[1],t$(function(){if(B&&B.times<10){if(!eO.current)return void L(function(e){return(0,D.A)({},e)});R();var e=B.targetAlign,t=B.originAlign,n=B.index,r=B.offset,o=eO.current.clientHeight,a=!1,i=e,l=null;if(o){for(var c=e||t,s=0,u=0,d=0,f=Math.min(ek.length-1,n),p=0;p<=f;p+=1){var m=em(ek[p]);u=s;var g=ey.get(m);s=d=u+(void 0===g?Y:g)}for(var h="top"===c?r:o-r,v=f;v>=0;v-=1){var b=em(ek[v]),y=ey.get(b);if(void 0===y){a=!0;break}if((h-=y)<=0)break}switch(c){case"top":l=u-r;break;case"bottom":l=d-o+r;break;default:var $=eO.current.scrollTop;u<$?i="top":d>$+o&&(i="bottom")}null!==l&&eG(l),l!==B.lastTop&&(a=!0)}a&&L((0,D.A)((0,D.A)({},B),{},{times:B.times+1,targetAlign:i,lastTop:l}))}},[B,eO.current]),function(e){if(null==e)return void tb();if(eB.cancel(P.current),"number"==typeof e)eG(e);else if(e&&"object"===(0,k.A)(e)){var t,n=e.align;t="index"in e?e.index:ek.findIndex(function(t){return em(t)===e.key});var r=e.offset;L({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}});x.useImperativeHandle(t,function(){return{nativeElement:eI.current,getScrollInfo:tc,scrollTo:function(e){e&&"object"===(0,k.A)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eH(tf(e.left)),ty(e.top)):ty(e)}}}),t$(function(){el&&el(ek.slice(e0,e1+1),ek)},[e0,e1,ek]);var tx=(F=x.useMemo(function(){return[new Map,[]]},[ek,ey.id,Y]),_=(W=(0,eK.A)(F,2))[0],V=W[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=_.get(e),r=_.get(t);if(void 0===n||void 0===r)for(var o=ek.length,a=V.length;a<o;a+=1){var i,l=em(ek[a]);_.set(l,a);var c=null!=(i=ey.get(l))?i:Y;if(V[a]=(V[a-1]||0)+c,l===e&&(n=a),l===t&&(r=a),void 0!==n&&void 0!==r)break}return{top:V[n-1]||0,bottom:V[r]}}),tw=null==es?void 0:es({start:e0,end:e1,virtual:eC,offsetX:eD,offsetY:e2,rtl:eE,getSize:tx}),tC=ek.slice(e0,e1+1).map(function(e,t){var n=J(e,e0+t,{style:{width:er},offsetX:eD}),r=em(e);return x.createElement(fb,{key:r,setRef:function(t){return ev(e,t)}},n)}),tE=null;G&&(tE=(0,D.A)((0,eX.A)({},void 0===U||U?"height":"maxHeight",G),fN),ex&&(tE.overflowY="hidden",er&&(tE.overflowX="hidden"),eW&&(tE.pointerEvents="none")));var tS={};return eE&&(tS.dir="rtl"),x.createElement("div",S({ref:eI,style:(0,D.A)((0,D.A)({},Q),{},{position:"relative"}),className:eS},tS,ep),x.createElement(ej,{onResize:function(e){e5({width:e.offsetWidth,height:e.offsetHeight})}},x.createElement(void 0===eo?"div":eo,{className:"".concat(K,"-holder"),style:tE,ref:eO,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==eR&&eG(t),null==ea||ea(e),tu()},onMouseEnter:tb},x.createElement(fv,{prefixCls:K,height:eJ,offsetX:eD,offsetY:e2,scrollWidth:er,onInnerResize:eb,ref:eA,innerProps:ec,rtl:eE,extra:tw},tC))),eC&&eJ>G&&x.createElement(fk,{ref:e8,prefixCls:K,scrollOffset:eR,scrollRange:eJ,rtl:eE,onScroll:td,onStartMove:eV,onStopMove:eq,spinSize:te,containerSize:e6.height,style:null==eu?void 0:eu.verticalScrollBar,thumbStyle:null==eu?void 0:eu.verticalScrollBarThumb,showScrollBar:ef}),eC&&er>e6.width&&x.createElement(fk,{ref:e7,prefixCls:K,scrollOffset:eD,scrollRange:er,rtl:eE,onScroll:td,onStartMove:eV,onStopMove:eq,spinSize:e9,containerSize:e6.width,horizontal:!0,style:null==eu?void 0:eu.horizontalScrollBar,thumbStyle:null==eu?void 0:eu.horizontalScrollBarThumb,showScrollBar:ef}))});fj.displayName="List";var fM=["disabled","title","children","style","className"];function fR(e){return"string"==typeof e||"number"==typeof e}var fP=x.forwardRef(function(e,t){var n=dv(),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,l=n.mode,c=n.searchValue,s=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=x.useContext(fs),p=f.maxCount,m=f.flattenOptions,g=f.onActiveValue,h=f.defaultActiveFirstOption,v=f.onSelect,b=f.menuItemSelectedIcon,y=f.rawValues,$=f.fieldNames,w=f.virtual,C=f.direction,k=f.listHeight,O=f.listItemHeight,A=f.optionRender,I="".concat(r,"-item"),N=q(function(){return m},[a,m],function(e,t){return t[0]&&e[1]!==t[1]}),j=x.useRef(null),M=x.useMemo(function(){return i&&fa(p)&&(null==y?void 0:y.size)>=p},[i,p,null==y?void 0:y.size]),R=function(e){e.preventDefault()},P=function(e){var t;null==(t=j.current)||t.scrollTo("number"==typeof e?{index:e}:e)},T=x.useCallback(function(e){return"combobox"!==l&&y.has(e)},[l,(0,eM.A)(y).toString(),y.size]),z=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=N.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,a=N[o]||{},i=a.group,l=a.data;if(!i&&!(null!=l&&l.disabled)&&(T(l.value)||!M))return o}return -1},B=x.useState(function(){return z(0)}),D=(0,eK.A)(B,2),H=D[0],L=D[1],F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e);var n={source:t?"keyboard":"mouse"},r=N[e];r?g(r.value,e,n):g(null,-1,n)};(0,x.useEffect)(function(){F(!1!==h?z(0):-1)},[N.length,c]);var W=x.useCallback(function(e){return"combobox"===l?String(e).toLowerCase()===c.toLowerCase():y.has(e)},[l,c,(0,eM.A)(y).toString(),y.size]);(0,x.useEffect)(function(){var e,t=setTimeout(function(){if(!i&&a&&1===y.size){var e=Array.from(y)[0],t=N.findIndex(function(t){var n=t.data;return c?String(n.value).startsWith(c):n.value===e});-1!==t&&(F(t),P(t))}});return a&&(null==(e=j.current)||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[a,c]);var _=function(e){void 0!==e&&v(e,{selected:!y.has(e)}),i||s(!1)};if(x.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case aM.N:case aM.P:case aM.UP:case aM.DOWN:var r=0;if(t===aM.UP?r=-1:t===aM.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===aM.N?r=1:t===aM.P&&(r=-1)),0!==r){var o=z(H+r,r);P(o),F(o,!0)}break;case aM.TAB:case aM.ENTER:var i,l=N[H];!l||null!=l&&null!=(i=l.data)&&i.disabled||M?_(void 0):_(l.value),a&&e.preventDefault();break;case aM.ESC:s(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){P(e)}}}),0===N.length)return x.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(I,"-empty"),onMouseDown:R},u);var V=Object.keys($).map(function(e){return $[e]}),K=function(e){return e.label};function X(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var G=function(e){var t=N[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,a=o5(n,!0),i=K(t);return t?x.createElement("div",S({"aria-label":"string"!=typeof i||o?null:i},a,{key:e},X(t,e),{"aria-selected":W(r)}),r):null},Y={role:"listbox",id:"".concat(o,"_list")};return x.createElement(x.Fragment,null,w&&x.createElement("div",S({},Y,{style:{height:0,width:0,overflow:"hidden"}}),G(H-1),G(H),G(H+1)),x.createElement(fj,{itemKey:"key",ref:j,data:N,height:k,itemHeight:O,fullHeight:!1,onMouseDown:R,onScroll:d,virtual:w,direction:C,innerProps:w?null:Y},function(e,t){var n=e.group,r=e.groupOption,o=e.data,a=e.label,i=e.value,l=o.key;if(n){var c,s=null!=(c=o.title)?c:fR(a)?a.toString():void 0;return x.createElement("div",{className:E()(I,"".concat(I,"-group"),o.className),title:s},void 0!==a?a:l)}var u=o.disabled,d=o.title,f=(o.children,o.style),p=o.className,m=iX((0,r3.A)(o,fM),V),g=T(i),h=u||!g&&M,v="".concat(I,"-option"),y=E()(I,v,p,(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(v,"-grouped"),r),"".concat(v,"-active"),H===t&&!h),"".concat(v,"-disabled"),h),"".concat(v,"-selected"),g)),$=K(e),C=!b||"function"==typeof b||g,k="number"==typeof $?$:$||i,O=fR(k)?k.toString():void 0;return void 0!==d&&(O=d),x.createElement("div",S({},o5(m),w?{}:X(e,t),{"aria-selected":W(i),className:y,title:O,onMouseMove:function(){H===t||h||F(t)},onClick:function(){h||_(i)},style:f}),x.createElement("div",{className:"".concat(v,"-content")},"function"==typeof A?A(e,{index:t}):k),x.isValidElement(b)||g,C&&x.createElement(dm,{className:"".concat(I,"-option-state"),customizeIcon:b,customizeIconProps:{value:i,disabled:h,isSelected:g}},g?"✓":null))}))});let fT=function(e,t){var n=x.useRef({values:new Map,options:new Map});return[x.useMemo(function(){var r=n.current,o=r.values,a=r.options,i=e.map(function(e){if(void 0===e.label){var t;return(0,D.A)((0,D.A)({},e),{},{label:null==(t=o.get(e.value))?void 0:t.label})}return e}),l=new Map,c=new Map;return i.forEach(function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))}),n.current.values=l,n.current.options=c,i},[e,t]),x.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]};function fz(e,t){return dz(e).join("").toUpperCase().includes(t)}var fB=0,fD=eY();function fH(e){var t=x.useState(),n=(0,eK.A)(t,2),r=n[0],o=n[1];return x.useEffect(function(){var e;o("rc_select_".concat((fD?(e=fB,fB+=1):e="TEST_OR_SSR",e)))},[]),e||r}var fL=["children","value"],fF=["children"];function fW(e){var t=x.useRef();return t.current=e,x.useCallback(function(){return t.current.apply(t,arguments)},[])}var f_=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],fV=["inputValue"],fq=x.forwardRef(function(e,t){var n,r=e.id,o=e.mode,a=e.prefixCls,i=e.backfill,l=e.fieldNames,c=e.inputValue,s=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,p=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,h=void 0===g||g,v=e.filterOption,b=e.filterSort,y=e.optionFilterProp,$=e.optionLabelProp,w=e.options,C=e.optionRender,E=e.children,O=e.defaultActiveFirstOption,A=e.menuItemSelectedIcon,I=e.virtual,N=e.direction,M=e.listHeight,R=void 0===M?200:M,P=e.listItemHeight,T=void 0===P?20:P,z=e.labelRender,B=e.value,H=e.defaultValue,L=e.labelInValue,F=e.onChange,W=e.maxCount,_=(0,r3.A)(e,f_),V=fH(r),q=fp(o),K=!!(!w&&E),X=x.useMemo(function(){return(void 0!==v||"combobox"!==o)&&v},[v,o]),G=x.useMemo(function(){return fi(l,K)},[JSON.stringify(l),K]),Y=ny("",{value:void 0!==s?s:c,postState:function(e){return e||""}}),U=(0,eK.A)(Y,2),Q=U[0],Z=U[1],J=x.useMemo(function(){var e=w;w||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return j(t).map(function(t,r){if(!x.isValidElement(t)||!t.type)return null;var o,a,i,l,c,s=t.type.isSelectOptGroup,u=t.key,d=t.props,f=d.children,p=(0,r3.A)(d,fF);return n||!s?(o=t.key,i=(a=t.props).children,l=a.value,c=(0,r3.A)(a,fL),(0,D.A)({key:o,value:void 0!==l?l:o,children:i},c)):(0,D.A)((0,D.A)({key:"__RC_SELECT_GRP__".concat(null===u?r:u,"__"),label:u},p),{},{options:e(f)})}).filter(function(e){return e})}(E));var t=new Map,n=new Map,r=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return!function e(o){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i<o.length;i+=1){var l=o[i];!l[G.options]||a?(t.set(l[G.value],l),r(n,l,G.label),r(n,l,y),r(n,l,$)):e(l[G.options],!0)}}(e),{options:e,valueOptions:t,labelOptions:n}},[w,E,G,y,$]),ee=J.valueOptions,et=J.labelOptions,en=J.options,er=x.useCallback(function(e){return dz(e).map(function(e){e&&"object"===(0,k.A)(e)?(r=e.key,n=e.label,t=null!=(i=e.value)?i:r):t=e;var t,n,r,o,a,i,l,c=ee.get(t);return c&&(void 0===n&&(n=null==c?void 0:c[$||G.label]),void 0===r&&(r=null!=(l=null==c?void 0:c.key)?l:t),o=null==c?void 0:c.disabled,a=null==c?void 0:c.title),{label:n,value:t,key:r,disabled:o,title:a}})},[G,$,ee]),eo=ny(H,{value:B}),ea=(0,eK.A)(eo,2),ei=ea[0],el=ea[1],ec=fT(x.useMemo(function(){var e,t,n=er(q&&null===ei?[]:ei);return"combobox"!==o||(t=null==(e=n[0])?void 0:e.value)||0===t?n:[]},[ei,er,o,q]),ee),es=(0,eK.A)(ec,2),eu=es[0],ed=es[1],ef=x.useMemo(function(){if(!o&&1===eu.length){var e=eu[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return eu.map(function(e){var t;return(0,D.A)((0,D.A)({},e),{},{label:null!=(t="function"==typeof z?z(e):e.label)?t:e.value})})},[o,eu,z]),ep=x.useMemo(function(){return new Set(eu.map(function(e){return e.value}))},[eu]);x.useEffect(function(){if("combobox"===o){var e,t=null==(e=eu[0])?void 0:e.value;Z(null!=t?String(t):"")}},[eu]);var em=fW(function(e,t){var n=null!=t?t:e;return(0,eX.A)((0,eX.A)({},G.value,e),G.label,n)}),eg=(n=x.useMemo(function(){if("tags"!==o)return en;var e=(0,eM.A)(en);return(0,eM.A)(eu).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;ee.has(n)||e.push(em(n,t.label))}),e},[em,en,ee,eu,o]),x.useMemo(function(){if(!Q||!1===X)return n;var e=G.options,t=G.label,r=G.value,o=[],a="function"==typeof X,i=Q.toUpperCase(),l=a?X:function(n,o){return y?fz(o[y],i):o[e]?fz(o["children"!==t?t:"label"],i):fz(o[r],i)},c=a?function(e){return fl(e)}:function(e){return e};return n.forEach(function(t){if(t[e]){if(l(Q,c(t)))o.push(t);else{var n=t[e].filter(function(e){return l(Q,c(e))});n.length&&o.push((0,D.A)((0,D.A)({},t),{},(0,eX.A)({},e,n)))}return}l(Q,c(t))&&o.push(t)}),o},[n,X,y,Q,G])),eh=x.useMemo(function(){return"tags"!==o||!Q||eg.some(function(e){return e[y||"value"]===Q})||eg.some(function(e){return e[G.value]===Q})?eg:[em(Q)].concat((0,eM.A)(eg))},[em,y,o,eg,Q,G]),ev=x.useMemo(function(){return b?function e(t){return(0,eM.A)(t).sort(function(e,t){return b(e,t,{searchValue:Q})}).map(function(t){return Array.isArray(t.options)?(0,D.A)((0,D.A)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})}(eh):eh},[eh,b,Q]),eb=x.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=fi(n,!1),i=a.label,l=a.value,c=a.options,s=a.groupLabel;return!function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(!n&&c in t){var a=t[s];void 0===a&&r&&(a=t.label),o.push({key:fo(t,o.length),group:!0,data:t,label:a}),e(t[c],!0)}else{var u=t[l];o.push({key:fo(t,o.length),groupOption:n,data:t,label:t[i],value:u})}})}(e,!1),o}(ev,{fieldNames:G,childrenAsData:K})},[ev,G,K]),ey=function(e){var t=er(e);if(el(t),F&&(t.length!==eu.length||t.some(function(e,t){var n;return(null==(n=eu[t])?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=L?t:t.map(function(e){return e.value}),r=t.map(function(e){return fl(ed(e.value))});F(q?n:n[0],q?r:r[0])}},e$=x.useState(null),ex=(0,eK.A)(e$,2),ew=ex[0],eC=ex[1],eE=x.useState(0),eS=(0,eK.A)(eE,2),ek=eS[0],eO=eS[1],eA=void 0!==O?O:"combobox"!==o,eI=x.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eO(t),i&&"combobox"===o&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eC(String(e))},[i,o]),eN=function(e,t,n){var r=function(){var t,n=ed(e);return[L?{label:null==n?void 0:n[G.label],value:e,key:null!=(t=null==n?void 0:n.key)?t:e}:e,fl(n)]};if(t&&p){var o=r(),a=(0,eK.A)(o,2);p(a[0],a[1])}else if(!t&&m&&"clear"!==n){var i=r(),l=(0,eK.A)(i,2);m(l[0],l[1])}},ej=fW(function(e,t){var n=!q||t.selected;ey(n?q?[].concat((0,eM.A)(eu),[e]):[e]:eu.filter(function(t){return t.value!==e})),eN(e,n),"combobox"===o?eC(""):(!fp||f)&&(Z(""),eC(""))}),eR=x.useMemo(function(){var e=!1!==I&&!1!==h;return(0,D.A)((0,D.A)({},J),{},{flattenOptions:eb,onActiveValue:eI,defaultActiveFirstOption:eA,onSelect:ej,menuItemSelectedIcon:A,rawValues:ep,fieldNames:G,virtual:e,direction:N,listHeight:R,listItemHeight:T,childrenAsData:K,maxCount:W,optionRender:C})},[W,J,eb,eI,eA,ej,A,ep,G,I,h,N,R,T,K,C]);return x.createElement(fs.Provider,{value:eR},x.createElement(fm,S({},_,{id:V,prefixCls:void 0===a?"rc-select":a,ref:t,omitDomProps:fV,mode:o,displayValues:ef,onDisplayValuesChange:function(e,t){ey(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){eN(e.value,!1,n)})},direction:N,searchValue:Q,onSearch:function(e,t){if(Z(e),eC(null),"submit"===t.source){var n=(e||"").trim();n&&(ey(Array.from(new Set([].concat((0,eM.A)(ep),[n])))),eN(n,!0),Z(""));return}"blur"!==t.source&&("combobox"===o&&ey(e),null==u||u(e))},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map(function(e){var t=et.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,eM.A)(ep),(0,eM.A)(t))));ey(n),n.forEach(function(e){eN(e,!0)})},dropdownMatchSelectWidth:h,OptionList:fP,emptyOptions:!eb.length,activeValue:ew,activeDescendantId:"".concat(V,"_list_").concat(ek)})))});function fK(e,t,n){return E()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}fq.Option=fh,fq.OptGroup=fg;let fX=rK("Empty",e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return(e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,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.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})(nR(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))});var fG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let fY=x.createElement(()=>{let[,e]=rq(),[t]=iK("Empty"),n=new n4(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(null==t?void 0:t.description)||"Empty"),x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(24 31.67)"},x.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),x.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"}),x.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)"}),x.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"}),x.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"})),x.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"}),x.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},x.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),x.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),fU=x.createElement(()=>{let[,e]=rq(),[t]=iK("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:c}=(0,x.useMemo)(()=>({borderColor:new n4(n).onBackground(a).toHexString(),shadowColor:new n4(r).onBackground(a).toHexString(),contentColor:new n4(o).onBackground(a).toHexString()}),[n,r,o,a]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(null==t?void 0:t.description)||"Empty"),x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:i},x.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"}),x.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},null),fQ=e=>{var t;let{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:l,imageStyle:c,style:s,classNames:u,styles:d}=e,f=fG(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:m,className:g,style:h,classNames:v,styles:b,image:y}=eq("empty"),$=p("empty",o),[w,C,S]=fX($),[k]=iK("Empty"),O=void 0!==i?i:null==k?void 0:k.description,A="string"==typeof O?O:"empty",I=null!=(t=null!=a?a:y)?t:fY,N=null;return N="string"==typeof I?x.createElement("img",{draggable:!1,alt:A,src:I}):I,w(x.createElement("div",Object.assign({className:E()(C,S,$,g,{[`${$}-normal`]:I===fU,[`${$}-rtl`]:"rtl"===m},n,r,v.root,null==u?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},b.root),h),null==d?void 0:d.root),s)},f),x.createElement("div",{className:E()(`${$}-image`,v.image,null==u?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},c),b.image),null==d?void 0:d.image)},N),O&&x.createElement("div",{className:E()(`${$}-description`,v.description,null==u?void 0:u.description),style:Object.assign(Object.assign({},b.description),null==d?void 0:d.description)},O),l&&x.createElement("div",{className:E()(`${$}-footer`,v.footer,null==u?void 0:u.footer),style:Object.assign(Object.assign({},b.footer),null==d?void 0:d.footer)},l)))};fQ.PRESENTED_IMAGE_DEFAULT=fY,fQ.PRESENTED_IMAGE_SIMPLE=fU;let fZ=fQ,fJ=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,x.useContext)(eW),r=n("empty");switch(t){case"Table":case"List":return w().createElement(fZ,{image:fZ.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return w().createElement(fZ,{image:fZ.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return w().createElement(fZ,null)}},f0=(e,t,n)=>{var r,o;let a,{variant:i,[e]:l}=x.useContext(eW),c=x.useContext(sX),s=null==l?void 0:l.variant;a=void 0!==t?t:!1===n?"borderless":null!=(o=null!=(r=null!=c?c:s)?r:i)?o:"outlined";let u=eF.includes(a);return[a,u]},f1=function(e,t){let n;return e||{bottomLeft:Object.assign(Object.assign({},n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===t?"scroll":"visible",dynamicInset:!0}),{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]})}},f2=new na("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),f4=new na("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),f3=new na("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),f6=new na("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),f5={"slide-up":{inKeyframes:f2,outKeyframes:f4},"slide-down":{inKeyframes:f3,outKeyframes:f6},"slide-left":{inKeyframes:new na("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new na("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new na("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new na("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},f8=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=f5[t];return[ug(r,o,a,e.motionDurationMid),{[`
82
+ ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})(uI(e)),uN,{order:-1e3});var uT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let uz=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:l,footer:c,locale:s}=e,u=uT(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),d=n;if(!n&&null!==n)switch(i){case"info":d=x.createElement(oh,null);break;case"success":d=x.createElement(oc,null);break;case"error":d=x.createElement(ou,null);break;default:d=x.createElement(om,null)}let f=null!=l?l:"confirm"===i,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[m]=iK("Modal"),g=s||m,h=r||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),v=o||(null==g?void 0:g.cancelText),b=x.useMemo(()=>Object.assign({autoFocusButton:p,cancelTextLocale:v,okTextLocale:h,mergedOkCancel:f},u),[p,v,h,f,u]),y=x.createElement(x.Fragment,null,x.createElement(cg,null),x.createElement(ch,null)),$=void 0!==e.title&&null!==e.title,w=`${a}-body`;return x.createElement("div",{className:`${a}-body-wrapper`},x.createElement("div",{className:E()(w,{[`${w}-has-title`]:$})},d,x.createElement("div",{className:`${a}-paragraph`},$&&x.createElement("span",{className:`${a}-title`},e.title),x.createElement("div",{className:`${a}-content`},e.content))),void 0===c||"function"==typeof c?x.createElement(cm,{value:b},x.createElement("div",{className:`${a}-btns`},"function"==typeof c?c(y,{OkBtn:ch,CancelBtn:cg}):y)):c,x.createElement(uP,{prefixCls:t}))},uB=e=>{let{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:a,wrapClassName:i,rootPrefixCls:l,bodyStyle:c,closable:s=!1,onConfirm:u,styles:d,title:f}=e,p=`${a}-confirm`,m=e.width||416,g=e.style||{},h=void 0===e.mask||e.mask,v=void 0!==e.maskClosable&&e.maskClosable,b=E()(p,`${p}-${e.type}`,{[`${p}-rtl`]:"rtl"===o},e.className),[,y]=rq(),$=x.useMemo(()=>void 0!==n?n:y.zIndexPopupBase+1e3,[n,y]);return x.createElement(uR,Object.assign({},e,{className:b,wrapClassName:E()({[`${p}-centered`]:!!e.centered},i),onCancel:()=>{null==t||t({triggerCancel:!0}),null==u||u(!1)},title:f,footer:null,transitionName:iV(l||"","zoom",e.transitionName),maskTransitionName:iV(l||"","fade",e.maskTransitionName),mask:h,maskClosable:v,style:g,styles:Object.assign({body:c,mask:r},d),width:m,zIndex:$,closable:s}),x.createElement(uz,Object.assign({},e,{confirmPrefixCls:p})))},uD=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return x.createElement(iO,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},x.createElement(uB,Object.assign({},e)))},uH=[],uL="",uF=e=>{var t,n;let{prefixCls:r,getContainer:o,direction:a}=e,i=ia,l=(0,x.useContext)(eW),c=uL||l.getPrefixCls(),s=r||`${c}-modal`,u=o;return!1===u&&(u=void 0),w().createElement(uD,Object.assign({},e,{rootPrefixCls:c,prefixCls:s,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!=a?a:l.direction,locale:null!=(n=null==(t=l.locale)?void 0:t.Modal)?n:i,getContainer:u}))};function uW(e){let t,n,r=iE(),o=document.createDocumentFragment(),a=Object.assign(Object.assign({},e),{close:c,open:!0});function i(...t){var r;t.some(e=>null==e?void 0:e.triggerCancel)&&(null==(r=e.onCancel)||r.call.apply(r,[e,()=>{}].concat((0,eM.A)(t.slice(1)))));for(let e=0;e<uH.length;e++)if(uH[e]===c){uH.splice(e,1);break}n()}let l=e=>{clearTimeout(t),t=setTimeout(()=>{let t=r.getPrefixCls(void 0,uL),a=r.getIconPrefixCls(),i=r.getTheme(),l=w().createElement(uF,Object.assign({},e));n=iH()(w().createElement(iO,{prefixCls:t,iconPrefixCls:a,theme:i},"function"==typeof r.holderRender?r.holderRender(l):l),o)})};function c(...t){(a=Object.assign(Object.assign({},a),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),i.apply(this,t)}})).visible&&delete a.visible,l(a)}return l(a),uH.push(c),{destroy:c,update:function(e){l(a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e))}}}function u_(e){return Object.assign(Object.assign({},e),{type:"warning"})}function uV(e){return Object.assign(Object.assign({},e),{type:"info"})}function uq(e){return Object.assign(Object.assign({},e),{type:"success"})}function uK(e){return Object.assign(Object.assign({},e),{type:"error"})}function uX(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var uG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let uY=x.forwardRef((e,t)=>{var n,{afterClose:r,config:o}=e,a=uG(e,["afterClose","config"]);let[i,l]=x.useState(!0),[c,s]=x.useState(o),{direction:u,getPrefixCls:d}=x.useContext(eW),f=d("modal"),p=d(),m=(...e)=>{var t;l(!1),e.some(e=>null==e?void 0:e.triggerCancel)&&(null==(t=c.onCancel)||t.call.apply(t,[c,()=>{}].concat((0,eM.A)(e.slice(1)))))};x.useImperativeHandle(t,()=>({destroy:m,update:e=>{s(t=>{let n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));let g=null!=(n=c.okCancel)?n:"confirm"===c.type,[h]=iK("Modal",io.Modal);return x.createElement(uD,Object.assign({prefixCls:f,rootPrefixCls:p},c,{close:m,open:i,afterClose:()=>{var e;r(),null==(e=c.afterClose)||e.call(c)},okText:c.okText||(g?null==h?void 0:h.okText:null==h?void 0:h.justOkText),direction:c.direction||u,cancelText:c.cancelText||(null==h?void 0:h.cancelText)},a))}),uU=0,uQ=x.memo(x.forwardRef((e,t)=>{let[n,r]=(()=>{let[e,t]=x.useState([]);return[e,x.useCallback(e=>(t(t=>[].concat((0,eM.A)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return x.useImperativeHandle(t,()=>({patchElement:r}),[r]),x.createElement(x.Fragment,null,n)})),uZ=function(){let e=x.useRef(null),[t,n]=x.useState([]);x.useEffect(()=>{t.length&&((0,eM.A)(t).forEach(e=>{e()}),n([]))},[t]);let r=x.useCallback(t=>function(r){var o;let a,i;uU+=1;let l=x.createRef(),c=new Promise(e=>{a=e}),s=!1,u=x.createElement(uY,{key:`modal-${uU}`,config:t(r),ref:l,afterClose:()=>{null==i||i()},isSilent:()=>s,onConfirm:e=>{a(e)}});return(i=null==(o=e.current)?void 0:o.patchElement(u))&&uH.push(i),{destroy:()=>{function e(){var e;null==(e=l.current)||e.destroy()}l.current?e():n(t=>[].concat((0,eM.A)(t),[e]))},update:e=>{function t(){var t;null==(t=l.current)||t.update(e)}l.current?t():n(e=>[].concat((0,eM.A)(e),[t]))},then:e=>(s=!0,c.then(e))}},[]);return[x.useMemo(()=>({info:r(uV),success:r(uq),error:r(uK),warning:r(u_),confirm:r(uX)}),[r]),x.createElement(uQ,{key:"modal-holder",ref:e})]},uJ=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],u0={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},u1=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:h,fontSize:v,lineHeight:b,width:y,notificationIconSize:$,colorText:x,colorSuccessBg:w,colorErrorBg:C,colorInfoBg:E,colorWarningBg:S}=e,k=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:f,borderRadius:i,boxShadow:r,[k]:{padding:p,width:y,maxWidth:`calc(100vw - ${tg(e.calc(m).mul(2).equal())})`,lineHeight:b,wordWrap:"break-word",borderRadius:i,overflow:"hidden","&-success":w?{background:w}:{},"&-error":C?{background:C}:{},"&-info":E?{background:E}:{},"&-warning":S?{background:S}:{}},[`${k}-message`]:{color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:v,color:x,marginTop:e.marginXS},[`${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:o},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.calc(e.marginSM).add($).equal(),fontSize:v},[`${k}-icon`]:{position:"absolute",fontSize:$,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${k}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},nq(e)),[`${k}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${tg(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:i,background:g}},[`${k}-actions`]:{float:"right",marginTop:e.marginSM}}},u2=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),u4=e=>{let t=e.paddingMD,n=e.paddingLG;return nR(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${tg(e.paddingMD)} ${tg(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},u3=rK("Notification",e=>{let t=u4(e);return[(e=>{let{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,l=new na("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},nF(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:u1(e)}}]})(t),(e=>{let{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new na("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new na("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new na("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new na("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}})(t),(e=>{let{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},(e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)})(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},(e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)})(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},uJ.map(t=>((e,t)=>{let{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[u0[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))})(t)]},u2),u6=rG(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,n=u4(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},u1(n)),{width:n.width,maxWidth:`calc(100vw - ${tg(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},u2);var u5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function u8(e,t){return null===t||!1===t?null:t||x.createElement(of,{className:`${e}-close-icon`})}let u7={success:oc,info:oh,error:ou,warning:om},u9=e=>{let{prefixCls:t,icon:n,type:r,message:o,description:a,actions:i,role:l="alert"}=e,c=null;return n?c=x.createElement("span",{className:`${t}-icon`},n):r&&(c=x.createElement(u7[r]||null,{className:E()(`${t}-icon`,`${t}-icon-${r}`)})),x.createElement("div",{className:E()({[`${t}-with-icon`]:c}),role:l},c,x.createElement("div",{className:`${t}-message`},o),a&&x.createElement("div",{className:`${t}-description`},a),i&&x.createElement("div",{className:`${t}-actions`},i))};var de=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let dt=({children:e,prefixCls:t})=>{let n=a$(t),[r,o,a]=u3(t,n);return r(w().createElement(aT,{classNames:{list:E()(o,a,n)}},e))},dn=(e,{prefixCls:t,key:n})=>w().createElement(dt,{prefixCls:t,key:n},e),dr=w().forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:l,onAllRemoved:c,stack:s,duration:u,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:m,notification:g,direction:h}=(0,x.useContext)(eW),[,v]=rq(),b=o||p("notification"),[y,$]=a_({prefixCls:b,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=r?r:24),className:()=>E()({[`${b}-rtl`]:null!=l?l:"rtl"===h}),motion:()=>({motionName:`${b}-fade`}),closable:!0,closeIcon:u8(b),duration:null!=u?u:4.5,getContainer:()=>(null==a?void 0:a())||(null==m?void 0:m())||document.body,maxCount:i,pauseOnHover:d,showProgress:f,onAllRemoved:c,renderNotifications:dn,stack:!1!==s&&{threshold:"object"==typeof s?null==s?void 0:s.threshold:void 0,offset:8,gap:v.margin}});return w().useImperativeHandle(t,()=>Object.assign(Object.assign({},y),{prefixCls:b,notification:g})),$});function da(e){let t=w().useRef(null);return aj(),[w().useMemo(()=>{let n=n=>{var r;if(!t.current)return;let{open:o,prefixCls:a,notification:i}=t.current,l=`${a}-notice`,{message:c,description:s,icon:u,type:d,btn:f,actions:p,className:m,style:g,role:h="alert",closeIcon:v,closable:b}=n,y=de(n,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),$=u8(l,void 0!==v?v:void 0!==(null==e?void 0:e.closeIcon)?e.closeIcon:null==i?void 0:i.closeIcon);return o(Object.assign(Object.assign({placement:null!=(r=null==e?void 0:e.placement)?r:"topRight"},y),{content:w().createElement(u9,{prefixCls:l,icon:u,type:d,message:c,description:s,actions:null!=p?p:f,role:h}),className:E()(d&&`${l}-${d}`,m,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),g),closeIcon:$,closable:null!=b?b:!!$}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null==(n=t.current)||n.close(e):null==(r=t.current)||r.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),r},[]),w().createElement(dr,Object.assign({key:"notification-holder"},e,{ref:t}))]}let di=w().createContext({}),dl=w().createContext({message:{},notification:{},modal:{}}),dc=rK("App",e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({})),ds=e=>{let{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:l,component:c="div"}=e,{direction:s,getPrefixCls:u}=(0,x.useContext)(eW),d=u("app",t),[f,p,m]=dc(d),g=E()(p,d,r,o,m,{[`${d}-rtl`]:"rtl"===s}),h=(0,x.useContext)(di),v=w().useMemo(()=>({message:Object.assign(Object.assign({},h.message),a),notification:Object.assign(Object.assign({},h.notification),i)}),[a,i,h.message,h.notification]),[b,y]=a5(v.message),[$,C]=da(v.notification),[S,k]=uZ(),O=w().useMemo(()=>({message:b,notification:$,modal:S}),[b,$,S]);aj()(!(m&&!1===c),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let A=!1===c?w().Fragment:c;return f(w().createElement(dl.Provider,{value:O},w().createElement(di.Provider,{value:v},w().createElement(A,Object.assign({},!1===c?void 0:{className:g,style:l}),k,y,C,n))))};ds.useApp=()=>w().useContext(dl);let du=ds;function dd(e){return t=>x.createElement(iO,{theme:{token:{motion:!1,zIndexPopupBase:0}}},x.createElement(e,Object.assign({},t)))}let df=(e,t,n,r,o)=>dd(a=>{let{prefixCls:i,style:l}=a,c=x.useRef(null),[s,u]=x.useState(0),[d,f]=x.useState(0),[p,m]=ny(!1,{value:a.open}),{getPrefixCls:g}=x.useContext(eW),h=g(r||"select",i);x.useEffect(()=>{if(m(!0),"u">typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{var n;let r=o?`.${o(h)}`:`.${h}-dropdown`,a=null==(n=c.current)?void 0:n.querySelector(r);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[h]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});return n&&(v=n(v)),t&&Object.assign(v,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),x.createElement("div",{ref:c,style:{paddingBottom:s,position:"relative",minWidth:d}},x.createElement(e,Object.assign({},v)))}),dp=function(){if("u"<typeof navigator||"u"<typeof window)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(null==e?void 0:e.substr(0,4))},dm=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,a=e.onMouseDown,i=e.onClick,l="function"==typeof n?n(r):n;return x.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==l?l:x.createElement("span",{className:E()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},o))};var dg=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=w().useMemo(function(){return"object"===(0,k.A)(r)?r.clearIcon:o||void 0},[r,o]);return{allowClear:w().useMemo(function(){return!a&&!!r&&(!!n.length||!!i)&&("combobox"!==l||""!==i)},[r,a,n.length,i,l]),clearIcon:w().createElement(dm,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"\xd7")}},dh=x.createContext(null);function dv(){return x.useContext(dh)}function db(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=x.useRef(null),n=x.useRef(null);return x.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var dy=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],d$=void 0,dx=x.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.invalidate,a=e.item,i=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,m=e.display,g=e.order,h=e.component,v=(0,r3.A)(e,dy),b=l&&!m;x.useEffect(function(){return function(){s(u,null)}},[]);var y=i&&a!==d$?i(a,{index:g}):p;o||(n={opacity:+!b,height:b?0:d$,overflowY:b?"hidden":d$,order:l?g:d$,pointerEvents:b?"none":d$,position:b?"absolute":d$});var $={};b&&($["aria-hidden"]=!0);var w=x.createElement(void 0===h?"div":h,S({className:E()(!o&&r,d),style:(0,D.A)((0,D.A)({},n),f)},$,v,{ref:t}),y);return l&&(w=x.createElement(ej,{onResize:function(e){s(u,e.offsetWidth)},disabled:c},w)),w});function dw(e,t){var n=x.useState(t),r=(0,eK.A)(n,2),o=r[0],a=r[1];return[o,nh(function(t){e(function(){a(t)})})]}dx.displayName="Item";var dC=w().createContext(null),dE=["component"],dS=["className"],dk=["className"],dO=x.forwardRef(function(e,t){var n=x.useContext(dC);if(!n){var r=e.component,o=(0,r3.A)(e,dE);return x.createElement(void 0===r?"div":r,S({},o,{ref:t}))}var a=n.className,i=(0,r3.A)(n,dS),l=e.className,c=(0,r3.A)(e,dk);return x.createElement(dC.Provider,{value:null},x.createElement(dx,S({ref:t,className:E()(a,l)},i,c)))});dO.displayName="RawItem";var dA=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],dI="responsive",dN="invalidate";function dj(e){return"+ ".concat(e.length," ...")}var dM=x.forwardRef(function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-overflow":r,a=e.data,i=void 0===a?[]:a,l=e.renderItem,c=e.renderRawItem,s=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,p=e.style,m=e.className,g=e.maxCount,h=e.renderRest,v=e.renderRawRest,b=e.prefix,y=e.suffix,$=e.component,w=e.itemComponent,C=e.onVisibleChange,k=(0,r3.A)(e,dA),O="full"===f,A=(n=x.useRef(null),function(e){if(!n.current){n.current=[];var t=function(){(0,H.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})};if("u"<typeof MessageChannel)eB(t);else{var r=new MessageChannel;r.port1.onmessage=function(){return t()},r.port2.postMessage(void 0)}}n.current.push(e)}),I=dw(A,null),N=(0,eK.A)(I,2),j=N[0],M=N[1],R=j||0,P=dw(A,new Map),T=(0,eK.A)(P,2),z=T[0],B=T[1],L=dw(A,0),F=(0,eK.A)(L,2),W=F[0],_=F[1],V=dw(A,0),q=(0,eK.A)(V,2),K=q[0],X=q[1],G=dw(A,0),Y=(0,eK.A)(G,2),U=Y[0],Q=Y[1],Z=dw(A,0),J=(0,eK.A)(Z,2),ee=J[0],et=J[1],en=(0,x.useState)(null),er=(0,eK.A)(en,2),eo=er[0],ea=er[1],ei=(0,x.useState)(null),el=(0,eK.A)(ei,2),ec=el[0],es=el[1],eu=x.useMemo(function(){return null===ec&&O?Number.MAX_SAFE_INTEGER:ec||0},[ec,j]),ed=(0,x.useState)(!1),ef=(0,eK.A)(ed,2),ep=ef[0],em=ef[1],eg="".concat(o,"-item"),eh=Math.max(W,K),ev=g===dI,eb=i.length&&ev,ey=g===dN,e$=eb||"number"==typeof g&&i.length>g,ex=(0,x.useMemo)(function(){var e=i;return eb?e=null===j&&O?i:i.slice(0,Math.min(i.length,R/d)):"number"==typeof g&&(e=i.slice(0,g)),e},[i,d,j,g,eb]),ew=(0,x.useMemo)(function(){return eb?i.slice(eu+1):i.slice(ex.length)},[i,ex,eb,eu]),eC=(0,x.useCallback)(function(e,t){var n;return"function"==typeof s?s(e):null!=(n=s&&(null==e?void 0:e[s]))?n:t},[s]),eE=(0,x.useCallback)(l||function(e){return e},[l]);function eS(e,t,n){(ec!==e||void 0!==t&&t!==eo)&&(es(e),n||(em(e<i.length-1),null==C||C(e)),void 0!==t&&ea(t))}function ek(e,t){B(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function eO(e){return z.get(eC(ex[e],e))}t$(function(){if(R&&"number"==typeof eh&&ex){var e=U+ee,t=ex.length,n=t-1;if(!t)return void eS(0,null);for(var r=0;r<t;r+=1){var o=eO(r);if(O&&(o=o||0),void 0===o){eS(r-1,void 0,!0);break}if(e+=o,0===n&&e<=R||r===n-1&&e+eO(n)<=R){eS(n,null);break}if(e+eh>R){eS(r-1,e-o-ee+K);break}}y&&eO(0)+ee>R&&ea(null)}},[R,z,K,U,ee,eC,ex]);var eA=ep&&!!ew.length,eI={};null!==eo&&eb&&(eI={position:"absolute",left:eo,top:0});var eN={prefixCls:eg,responsive:eb,component:w,invalidate:ey},eM=c?function(e,t){var n=eC(e,t);return x.createElement(dC.Provider,{key:n,value:(0,D.A)((0,D.A)({},eN),{},{order:t,item:e,itemKey:n,registerSize:ek,display:t<=eu})},c(e,t))}:function(e,t){var n=eC(e,t);return x.createElement(dx,S({},eN,{order:t,key:n,item:e,renderItem:eE,itemKey:n,registerSize:ek,display:t<=eu}))},eR={order:eA?eu:Number.MAX_SAFE_INTEGER,className:"".concat(eg,"-rest"),registerSize:function(e,t){X(t),_(K)},display:eA},eP=h||dj,eT=v?x.createElement(dC.Provider,{value:(0,D.A)((0,D.A)({},eN),eR)},v(ew)):x.createElement(dx,S({},eN,eR),"function"==typeof eP?eP(ew):eP),ez=x.createElement(void 0===$?"div":$,S({className:E()(!ey&&o,m),style:p,ref:t},k),b&&x.createElement(dx,S({},eN,{responsive:ev,responsiveDisabled:!eb,order:-1,className:"".concat(eg,"-prefix"),registerSize:function(e,t){Q(t)},display:!0}),b),ex.map(eM),e$?eT:null,y&&x.createElement(dx,S({},eN,{responsive:ev,responsiveDisabled:!eb,order:eu,className:"".concat(eg,"-suffix"),registerSize:function(e,t){et(t)},display:!0,style:eI}),y));return ev?x.createElement(ej,{onResize:function(e,t){M(t.clientWidth)},disabled:!eb},ez):ez});dM.displayName="Overflow",dM.Item=dO,dM.RESPONSIVE=dI,dM.INVALIDATE=dN;let dR=function(e,t,n){var r=(0,D.A)((0,D.A)({},e),n?t:{});return Object.keys(t).forEach(function(n){var o=t[n];"function"==typeof o&&(r[n]=function(){for(var t,r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return o.apply(void 0,a),null==(t=e[n])?void 0:t.call.apply(t,[e].concat(a))})}),r};var dP=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],dT=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,a=e.autoFocus,i=e.autoComplete,l=e.editable,c=e.activeDescendantId,s=e.value,u=e.open,d=e.attrs,f=(0,r3.A)(e,dP),p=o||x.createElement("input",null),m=p,g=m.ref,h=m.props;return P(!("maxLength"in p.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),p=x.cloneElement(p,(0,D.A)((0,D.A)((0,D.A)({type:"search"},dR(f,h,!0)),{},{id:r,ref:G(t,g),autoComplete:i||"off",autoFocus:a,className:E()("".concat(n,"-selection-search-input"),null==h?void 0:h.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":u?c:void 0},d),{},{value:l?s:"",readOnly:!l,unselectable:l?null:"on",style:(0,D.A)((0,D.A)({},h.style),{},{opacity:l?null:0})}))});function dz(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var dB="u">typeof window&&window.document&&window.document.documentElement;function dD(e){return["string","number"].includes((0,k.A)(e))}function dH(e){var t=void 0;return e&&(dD(e.title)?t=e.title.toString():dD(e.label)&&(t=e.label.toString())),t}function dL(e){var t;return null!=(t=e.key)?t:e.value}var dF=function(e){e.preventDefault(),e.stopPropagation()};let dW=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,i=e.open,l=e.searchValue,c=e.autoClearSearchValue,s=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,m=e.autoFocus,g=e.autoComplete,h=e.activeDescendantId,v=e.tabIndex,b=e.removeIcon,y=e.maxTagCount,$=e.maxTagTextLength,w=e.maxTagPlaceholder,C=void 0===w?function(e){return"+ ".concat(e.length," ...")}:w,S=e.tagRender,k=e.onToggleOpen,O=e.onRemove,A=e.onInputChange,I=e.onInputPaste,N=e.onInputKeyDown,j=e.onInputMouseDown,M=e.onInputCompositionStart,R=e.onInputCompositionEnd,P=e.onInputBlur,T=x.useRef(null),z=(0,x.useState)(0),B=(0,eK.A)(z,2),D=B[0],H=B[1],L=(0,x.useState)(!1),F=(0,eK.A)(L,2),W=F[0],_=F[1],V="".concat(o,"-selection"),q=i||"multiple"===f&&!1===c||"tags"===f?l:"",K="tags"===f||"multiple"===f&&!1===c||p&&(i||W);t=function(){H(T.current.scrollWidth)},n=[q],dB?x.useLayoutEffect(t,n):x.useEffect(t,n);var X=function(e,t,n,r,o){return x.createElement("span",{title:dH(e),className:E()("".concat(V,"-item"),(0,eX.A)({},"".concat(V,"-item-disabled"),n))},x.createElement("span",{className:"".concat(V,"-item-content")},t),r&&x.createElement(dm,{className:"".concat(V,"-item-remove"),onMouseDown:dF,onClick:o,customizeIcon:b},"\xd7"))},G=function(e,t,n,r,o,a){return x.createElement("span",{onMouseDown:function(e){dF(e),k(!i)}},S({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!a}))},Y=x.createElement("div",{className:"".concat(V,"-search"),style:{width:D},onFocus:function(){_(!0)},onBlur:function(){_(!1)}},x.createElement(dT,{ref:s,open:i,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:m,autoComplete:g,editable:K,activeDescendantId:h,value:q,onKeyDown:N,onMouseDown:j,onChange:A,onPaste:I,onCompositionStart:M,onCompositionEnd:R,onBlur:P,tabIndex:v,attrs:o5(e,!0)}),x.createElement("span",{ref:T,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},q,"\xa0")),U=x.createElement(dM,{prefixCls:"".concat(V,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,a=n;if("number"==typeof $&&("string"==typeof n||"number"==typeof n)){var i=String(a);i.length>$&&(a="".concat(i.slice(0,$),"..."))}var l=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof S?G(r,a,t,o,l):X(e,a,t,o,l)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof C?C(e):C;return"function"==typeof S?G(void 0,t,!1,!1,void 0,!0):X({title:t},t,!1)},suffix:Y,itemKey:dL,maxCount:y});return x.createElement("span",{className:"".concat(V,"-wrap")},U,!a.length&&!q&&x.createElement("span",{className:"".concat(V,"-placeholder")},u))},d_=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,u=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,m=e.showSearch,g=e.searchValue,h=e.activeValue,v=e.maxLength,b=e.onInputKeyDown,y=e.onInputMouseDown,$=e.onInputChange,w=e.onInputPaste,C=e.onInputCompositionStart,E=e.onInputCompositionEnd,S=e.onInputBlur,k=e.title,O=x.useState(!1),A=(0,eK.A)(O,2),I=A[0],N=A[1],j="combobox"===s,M=j||m,R=d[0],P=g||"";j&&h&&!I&&(P=h),x.useEffect(function(){j&&N(!1)},[j,h]);var T=("combobox"===s||!!u||!!m)&&!!P,z=void 0===k?dH(R):k,B=x.useMemo(function(){return R?null:x.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},f)},[R,T,f,n]);return x.createElement("span",{className:"".concat(n,"-selection-wrap")},x.createElement("span",{className:"".concat(n,"-selection-search")},x.createElement(dT,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:a,autoFocus:i,autoComplete:l,editable:M,activeDescendantId:c,value:P,onKeyDown:b,onMouseDown:y,onChange:function(e){N(!0),$(e)},onPaste:w,onCompositionStart:C,onCompositionEnd:E,onBlur:S,tabIndex:p,attrs:o5(e,!0),maxLength:j?v:void 0})),!j&&R?x.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:T?{visibility:"hidden"}:void 0},R.label):null,B)};var dV=x.forwardRef(function(e,t){var n=(0,x.useRef)(null),r=(0,x.useRef)(!1),o=e.prefixCls,a=e.open,i=e.mode,l=e.showSearch,c=e.tokenWithEnter,s=e.disabled,u=e.prefix,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,m=e.onToggleOpen,g=e.onInputKeyDown,h=e.onInputBlur,v=e.domRef;x.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var b=db(0),y=(0,eK.A)(b,2),$=y[0],w=y[1],C=(0,x.useRef)(null),E=function(e){!1!==f(e,!0,r.current)&&m(!0)},k={inputRef:n,onInputKeyDown:function(e){var t=e.which,o=n.current instanceof HTMLTextAreaElement;!o&&a&&(t===aM.UP||t===aM.DOWN)&&e.preventDefault(),g&&g(e),t!==aM.ENTER||"tags"!==i||r.current||a||null==p||p(e.target.value),o&&!a&&~[aM.UP,aM.DOWN,aM.LEFT,aM.RIGHT].indexOf(t)||t&&![aM.ESC,aM.SHIFT,aM.BACKSPACE,aM.TAB,aM.WIN_KEY,aM.ALT,aM.META,aM.WIN_KEY_RIGHT,aM.CTRL,aM.SEMICOLON,aM.EQUALS,aM.CAPS_LOCK,aM.CONTEXT_MENU,aM.F1,aM.F2,aM.F3,aM.F4,aM.F5,aM.F6,aM.F7,aM.F8,aM.F9,aM.F10,aM.F11,aM.F12].includes(t)&&m(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(c&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,E(t)},onInputPaste:function(e){var t=e.clipboardData;C.current=(null==t?void 0:t.getData("text"))||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==i&&E(e.target.value)},onInputBlur:h},O="multiple"===i||"tags"===i?x.createElement(dW,S({},e,k)):x.createElement(d_,S({},e,k));return x.createElement("div",{ref:v,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=$();e.target===n.current||t||"combobox"===i&&s||e.preventDefault(),("combobox"===i||l&&t)&&a||(a&&!1!==d&&f("",!0,!1),m())}},u&&x.createElement("div",{className:"".concat(o,"-prefix")},u),O)});function dq(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,s=o.y,u=x.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var f=n.points[0],p=n.points[1],m=f[0],g=f[1],h=p[0],v=p[1];m!==h&&["t","b"].includes(m)?"t"===m?d.top=0:d.bottom=0:d.top=void 0===s?0:s,g!==v&&["l","r"].includes(g)?"l"===g?d.left=0:d.right=0:d.left=void 0===c?0:c}return x.createElement("div",{ref:u,className:E()("".concat(t,"-arrow"),i),style:d},l)}function dK(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?x.createElement(oG,S({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return x.createElement("div",{style:{zIndex:r},className:E()("".concat(t,"-mask"),n)})}):null}var dX=x.memo(function(e){return e.children},function(e,t){return t.cache}),dG=x.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,c=e.open,s=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,m=e.arrowPos,g=e.align,h=e.motion,v=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,$=e.autoDestroy,w=e.portal,C=e.zIndex,k=e.onMouseEnter,O=e.onMouseLeave,A=e.onPointerEnter,I=e.onPointerDownCapture,N=e.ready,j=e.offsetX,M=e.offsetY,R=e.offsetR,P=e.offsetB,T=e.onAlign,z=e.onPrepare,B=e.stretch,H=e.targetWidth,L=e.targetHeight,F="function"==typeof n?n():n,W=c||s,_=(null==y?void 0:y.length)>0,V=x.useState(!y||!_),q=(0,eK.A)(V,2),K=q[0],X=q[1];if(t$(function(){!K&&_&&i&&X(!0)},[K,_,i]),!K)return null;var Y="auto",U={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(N||!c){var Q,Z=g.points,J=g.dynamicInset||(null==(Q=g._experimental)?void 0:Q.dynamicInset),ee=J&&"r"===Z[0][1],et=J&&"b"===Z[0][0];ee?(U.right=R,U.left=Y):(U.left=j,U.right=Y),et?(U.bottom=P,U.top=Y):(U.top=M,U.bottom=Y)}var en={};return B&&(B.includes("height")&&L?en.height=L:B.includes("minHeight")&&L&&(en.minHeight=L),B.includes("width")&&H?en.width=H:B.includes("minWidth")&&H&&(en.minWidth=H)),c||(en.pointerEvents="none"),x.createElement(w,{open:b||W,getContainer:y&&function(){return y(i)},autoDestroy:$},x.createElement(dK,{prefixCls:o,open:c,zIndex:C,mask:f,motion:v}),x.createElement(ej,{onResize:T,disabled:!c},function(e){return x.createElement(oG,S({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:z,onEnterPrepare:z,visible:c,onVisibleChanged:function(e){var t;null==h||null==(t=h.onVisibleChanged)||t.call(h,e),l(e)}}),function(n,i){var l=n.className,s=n.style,f=E()(o,l,r);return x.createElement("div",{ref:G(e,t,i),className:f,style:(0,D.A)((0,D.A)((0,D.A)((0,D.A)({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},U),en),s),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:k,onMouseLeave:O,onPointerEnter:A,onClick:d,onPointerDownCapture:I},p&&x.createElement(dq,{prefixCls:o,arrow:p,arrowPos:m,align:g}),x.createElement(dX,{cache:!c&&!u},F))})}))}),dY=x.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=U(n),a=Y(x.useCallback(function(e){X(t,r?r(e):e)},[r]),Z(n));return o?x.cloneElement(n,{ref:a}):n}),dU=x.createContext(null);function dQ(e){return e?Array.isArray(e)?e:[e]:[]}function dZ(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function dJ(e){return e.ownerDocument.defaultView}function d0(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=dJ(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function d1(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function d2(e){return d1(parseFloat(e),0)}function d4(e,t){var n=(0,D.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=dJ(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=d2(a),g=d2(i),h=d2(l),v=d2(c),b=d1(Math.round(s.width/f*1e3)/1e3),y=d1(Math.round(s.height/u*1e3)/1e3),$=m*y,x=h*b,w=0,C=0;if("clip"===r){var E=d2(o);w=E*b,C=E*y}var S=s.x+x-w,k=s.y+$-C,O=S+s.width+2*w-x-v*b-(f-p-h-v)*b,A=k+s.height+2*C-$-g*y-(u-d-m-g)*y;n.left=Math.max(n.left,S),n.top=Math.max(n.top,k),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,A)}}),n}function d3(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function d6(e,t){var n=(0,eK.A)(t||[],2),r=n[0],o=n[1];return[d3(e.width,r),d3(e.height,o)]}function d5(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function d8(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function d7(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var d9=["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"];let fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cS;return x.forwardRef(function(t,n){var r,o,a,i,l,c,s,u,d,f,p,m,g,h,v,b,y,$=t.prefixCls,w=void 0===$?"rc-trigger-popup":$,C=t.children,S=t.action,k=t.showAction,O=t.hideAction,A=t.popupVisible,I=t.defaultPopupVisible,N=t.onPopupVisibleChange,j=t.afterPopupVisibleChange,M=t.mouseEnterDelay,R=t.mouseLeaveDelay,P=void 0===R?.1:R,T=t.focusDelay,z=t.blurDelay,B=t.mask,H=t.maskClosable,L=t.getPopupContainer,W=t.forceRender,_=t.autoDestroy,V=t.destroyPopupOnHide,q=t.popup,K=t.popupClassName,X=t.popupStyle,G=t.popupPlacement,Y=t.builtinPlacements,U=void 0===Y?{}:Y,Q=t.popupAlign,Z=t.zIndex,J=t.stretch,ee=t.getPopupClassNameFromAlign,et=t.fresh,en=t.alignPoint,er=t.onPopupClick,eo=t.onPopupAlign,ea=t.arrow,ei=t.popupMotion,el=t.maskMotion,ec=t.popupTransitionName,es=t.popupAnimation,eu=t.maskTransitionName,ed=t.maskAnimation,ef=t.className,ep=t.getTriggerDOMNode,em=(0,r3.A)(t,d9),eg=x.useState(!1),eh=(0,eK.A)(eg,2),ev=eh[0],eb=eh[1];t$(function(){eb(dp())},[]);var ey=x.useRef({}),e$=x.useContext(dU),ex=x.useMemo(function(){return{registerSubPopup:function(e,t){ey.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),ew=cI(),eC=x.useState(null),eE=(0,eK.A)(eC,2),eS=eE[0],ek=eE[1],eO=x.useRef(null),eA=nh(function(e){eO.current=e,F(e)&&eS!==e&&ek(e),null==e$||e$.registerSubPopup(ew,e)}),eI=x.useState(null),eN=(0,eK.A)(eI,2),eR=eN[0],eP=eN[1],eT=x.useRef(null),ez=nh(function(e){F(e)&&eR!==e&&(eP(e),eT.current=e)}),eB=x.Children.only(C),eD=(null==eB?void 0:eB.props)||{},eH={},eL=nh(function(e){var t,n;return(null==eR?void 0:eR.contains(e))||(null==(t=r8(eR))?void 0:t.host)===e||e===eR||(null==eS?void 0:eS.contains(e))||(null==(n=r8(eS))?void 0:n.host)===e||e===eS||Object.values(ey.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),eF=dZ(w,ei,es,ec),eW=dZ(w,el,ed,eu),e_=x.useState(I||!1),eV=(0,eK.A)(e_,2),eq=eV[0],eX=eV[1],eG=null!=A?A:eq,eY=nh(function(e){void 0===A&&eX(e)});t$(function(){eX(A||!1)},[A]);var eU=x.useRef(eG);eU.current=eG;var eQ=x.useRef([]);eQ.current=[];var eZ=nh(function(e){var t;eY(e),(null!=(t=eQ.current[eQ.current.length-1])?t:eG)!==e&&(eQ.current.push(e),null==N||N(e))}),eJ=x.useRef(),e0=function(){clearTimeout(eJ.current)},e1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e0(),0===t?eZ(e):eJ.current=setTimeout(function(){eZ(e)},1e3*t)};x.useEffect(function(){return e0},[]);var e2=x.useState(!1),e4=(0,eK.A)(e2,2),e3=e4[0],e6=e4[1];t$(function(e){(!e||eG)&&e6(!0)},[eG]);var e5=x.useState(null),e8=(0,eK.A)(e5,2),e7=e8[0],e9=e8[1],te=x.useState(null),tt=(0,eK.A)(te,2),tn=tt[0],tr=tt[1],to=function(e){tr([e.clientX,e.clientY])},ta=(r=en&&null!==tn?tn:eR,o=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:U[G]||{}}),i=(a=(0,eK.A)(o,2))[0],l=a[1],c=x.useRef(0),s=x.useMemo(function(){return eS?d0(eS):[]},[eS]),u=x.useRef({}),eG||(u.current={}),d=nh(function(){if(eS&&r&&eG){var e=eS.ownerDocument,t=dJ(eS),n=t.getComputedStyle(eS).position,o=eS.style.left,a=eS.style.top,i=eS.style.right,c=eS.style.bottom,d=eS.style.overflow,f=(0,D.A)((0,D.A)({},U[G]),Q),p=e.createElement("div");if(null==(b=eS.parentElement)||b.appendChild(p),p.style.left="".concat(eS.offsetLeft,"px"),p.style.top="".concat(eS.offsetTop,"px"),p.style.position=n,p.style.height="".concat(eS.offsetHeight,"px"),p.style.width="".concat(eS.offsetWidth,"px"),eS.style.left="0",eS.style.top="0",eS.style.right="auto",eS.style.bottom="auto",eS.style.overflow="hidden",Array.isArray(r))w={x:r[0],y:r[1],width:0,height:0};else{var m,g,h,v,b,y,$,x,w,C,E,S=r.getBoundingClientRect();S.x=null!=(C=S.x)?C:S.left,S.y=null!=(E=S.y)?E:S.top,w={x:S.x,y:S.y,width:S.width,height:S.height}}var k=eS.getBoundingClientRect(),O=t.getComputedStyle(eS),A=O.height,I=O.width;k.x=null!=(y=k.x)?y:k.left,k.y=null!=($=k.y)?$:k.top;var N=e.documentElement,j=N.clientWidth,M=N.clientHeight,R=N.scrollWidth,P=N.scrollHeight,T=N.scrollTop,z=N.scrollLeft,B=k.height,H=k.width,L=w.height,W=w.width,_=f.htmlRegion,V="visible",q="visibleFirst";"scroll"!==_&&_!==q&&(_=V);var K=_===q,X=d4({left:-z,top:-T,right:R-z,bottom:P-T},s),Y=d4({left:0,top:0,right:j,bottom:M},s),Z=_===V?Y:X,J=K?Y:Z;eS.style.left="auto",eS.style.top="auto",eS.style.right="0",eS.style.bottom="0";var ee=eS.getBoundingClientRect();eS.style.left=o,eS.style.top=a,eS.style.right=i,eS.style.bottom=c,eS.style.overflow=d,null==(x=eS.parentElement)||x.removeChild(p);var et=d1(Math.round(H/parseFloat(I)*1e3)/1e3),en=d1(Math.round(B/parseFloat(A)*1e3)/1e3);if(!(0===et||0===en||F(r)&&!iG(r))){var er=f.offset,ea=f.targetOffset,ei=d6(k,er),el=(0,eK.A)(ei,2),ec=el[0],es=el[1],eu=d6(w,ea),ed=(0,eK.A)(eu,2),ef=ed[0],ep=ed[1];w.x-=ef,w.y-=ep;var em=f.points||[],eg=(0,eK.A)(em,2),eh=eg[0],ev=d5(eg[1]),eb=d5(eh),ey=d8(w,ev),e$=d8(k,eb),ex=(0,D.A)({},f),ew=ey.x-e$.x+ec,eC=ey.y-e$.y+es,eE=tr(ew,eC),ek=tr(ew,eC,Y),eO=d8(w,["t","l"]),eA=d8(k,["t","l"]),eI=d8(w,["b","r"]),eN=d8(k,["b","r"]),ej=f.overflow||{},eM=ej.adjustX,eR=ej.adjustY,eP=ej.shiftX,eT=ej.shiftY,ez=function(e){return"boolean"==typeof e?e:e>=0};to();var eB=ez(eR),eD=eb[0]===ev[0];if(eB&&"t"===eb[0]&&(g>J.bottom||u.current.bt)){var eH=eC;eD?eH-=B-L:eH=eO.y-eN.y-es;var eL=tr(ew,eH),eF=tr(ew,eH,Y);eL>eE||eL===eE&&(!K||eF>=ek)?(u.current.bt=!0,eC=eH,es=-es,ex.points=[d7(eb,0),d7(ev,0)]):u.current.bt=!1}if(eB&&"b"===eb[0]&&(m<J.top||u.current.tb)){var eW=eC;eD?eW+=B-L:eW=eI.y-eA.y-es;var e_=tr(ew,eW),eV=tr(ew,eW,Y);e_>eE||e_===eE&&(!K||eV>=ek)?(u.current.tb=!0,eC=eW,es=-es,ex.points=[d7(eb,0),d7(ev,0)]):u.current.tb=!1}var eq=ez(eM),eX=eb[1]===ev[1];if(eq&&"l"===eb[1]&&(v>J.right||u.current.rl)){var eY=ew;eX?eY-=H-W:eY=eO.x-eN.x-ec;var eU=tr(eY,eC),eQ=tr(eY,eC,Y);eU>eE||eU===eE&&(!K||eQ>=ek)?(u.current.rl=!0,ew=eY,ec=-ec,ex.points=[d7(eb,1),d7(ev,1)]):u.current.rl=!1}if(eq&&"r"===eb[1]&&(h<J.left||u.current.lr)){var eZ=ew;eX?eZ+=H-W:eZ=eI.x-eA.x-ec;var eJ=tr(eZ,eC),e0=tr(eZ,eC,Y);eJ>eE||eJ===eE&&(!K||e0>=ek)?(u.current.lr=!0,ew=eZ,ec=-ec,ex.points=[d7(eb,1),d7(ev,1)]):u.current.lr=!1}to();var e1=!0===eP?0:eP;"number"==typeof e1&&(h<Y.left&&(ew-=h-Y.left-ec,w.x+W<Y.left+e1&&(ew+=w.x-Y.left+W-e1)),v>Y.right&&(ew-=v-Y.right-ec,w.x>Y.right-e1&&(ew+=w.x-Y.right+e1)));var e2=!0===eT?0:eT;"number"==typeof e2&&(m<Y.top&&(eC-=m-Y.top-es,w.y+L<Y.top+e2&&(eC+=w.y-Y.top+L-e2)),g>Y.bottom&&(eC-=g-Y.bottom-es,w.y>Y.bottom-e2&&(eC+=w.y-Y.bottom+e2)));var e4=k.x+ew,e3=k.y+eC,e6=w.x,e5=w.y,e8=Math.max(e4,e6),e7=Math.min(e4+H,e6+W),e9=Math.max(e3,e5),te=Math.min(e3+B,e5+L);null==eo||eo(eS,ex);var tt=ee.right-k.x-(ew+k.width),tn=ee.bottom-k.y-(eC+k.height);1===et&&(ew=Math.floor(ew),tt=Math.floor(tt)),1===en&&(eC=Math.floor(eC),tn=Math.floor(tn)),l({ready:!0,offsetX:ew/et,offsetY:eC/en,offsetR:tt/et,offsetB:tn/en,arrowX:((e8+e7)/2-e4)/et,arrowY:((e9+te)/2-e3)/en,scaleX:et,scaleY:en,align:ex})}function tr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z,r=k.x+e,o=k.y+t,a=Math.max(r,n.left),i=Math.max(o,n.top);return Math.max(0,(Math.min(r+H,n.right)-a)*(Math.min(o+B,n.bottom)-i))}function to(){g=(m=k.y+eC)+B,v=(h=k.x+ew)+H}}}),t$(f=function(){l(function(e){return(0,D.A)((0,D.A)({},e),{},{ready:!1})})},[G]),t$(function(){eG||f()},[eG]),[i.ready,i.offsetX,i.offsetY,i.offsetR,i.offsetB,i.arrowX,i.arrowY,i.scaleX,i.scaleY,i.align,function(){c.current+=1;var e=c.current;Promise.resolve().then(function(){c.current===e&&d()})}]),ti=(0,eK.A)(ta,11),tl=ti[0],tc=ti[1],ts=ti[2],tu=ti[3],td=ti[4],tf=ti[5],tp=ti[6],tm=ti[7],tg=ti[8],th=ti[9],tv=ti[10],tb=(p=void 0===S?"hover":S,x.useMemo(function(){var e=dQ(null!=k?k:p),t=dQ(null!=O?O:p),n=new Set(e),r=new Set(t);return ev&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[ev,p,k,O])),ty=(0,eK.A)(tb,2),tx=ty[0],tw=ty[1],tC=tx.has("click"),tE=tw.has("click")||tw.has("contextMenu"),tS=nh(function(){e3||tv()});m=function(){eU.current&&en&&tE&&e1(!1)},t$(function(){if(eG&&eR&&eS){var e=d0(eR),t=d0(eS),n=dJ(eS),r=new Set([n].concat((0,eM.A)(e),(0,eM.A)(t)));function o(){tS(),m()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),tS(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[eG,eR,eS]),t$(function(){tS()},[tn,G]),t$(function(){eG&&!(null!=U&&U[G])&&tS()},[JSON.stringify(Q)]);var tk=x.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,c=a[i];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null==(l=e[c])?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(U,w,th,en);return E()(e,null==ee?void 0:ee(th))},[th,ee,U,w,en]);x.useImperativeHandle(n,function(){return{nativeElement:eT.current,popupElement:eO.current,forceAlign:tS}});var tO=x.useState(0),tA=(0,eK.A)(tO,2),tI=tA[0],tN=tA[1],tj=x.useState(0),tM=(0,eK.A)(tj,2),tR=tM[0],tP=tM[1],tT=function(){if(J&&eR){var e=eR.getBoundingClientRect();tN(e.width),tP(e.height)}};function tz(e,t,n,r){eH[e]=function(o){var a;null==r||r(o),e1(t,n);for(var i=arguments.length,l=Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];null==(a=eD[e])||a.call.apply(a,[eD,o].concat(l))}}t$(function(){e7&&(tv(),e7(),e9(null))},[e7]),(tC||tE)&&(eH.onClick=function(e){var t;eU.current&&tE?e1(!1):!eU.current&&tC&&(to(e),e1(!0));for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==(t=eD.onClick)||t.call.apply(t,[eD,e].concat(r))});var tB=(g=void 0===H||H,(h=x.useRef(eG)).current=eG,v=x.useRef(!1),x.useEffect(function(){if(tE&&eS&&(!B||g)){var e=function(){v.current=!1},t=function(e){var t;!h.current||eL((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)||v.current||e1(!1)},n=dJ(eS);n.addEventListener("pointerdown",e,!0),n.addEventListener("mousedown",t,!0),n.addEventListener("contextmenu",t,!0);var r=r8(eR);return r&&(r.addEventListener("mousedown",t,!0),r.addEventListener("contextmenu",t,!0)),function(){n.removeEventListener("pointerdown",e,!0),n.removeEventListener("mousedown",t,!0),n.removeEventListener("contextmenu",t,!0),r&&(r.removeEventListener("mousedown",t,!0),r.removeEventListener("contextmenu",t,!0))}}},[tE,eR,eS,B,g]),function(){v.current=!0}),tD=tx.has("hover"),tH=tw.has("hover");tD&&(tz("onMouseEnter",!0,M,function(e){to(e)}),tz("onPointerEnter",!0,M,function(e){to(e)}),b=function(e){(eG||e3)&&null!=eS&&eS.contains(e.target)&&e1(!0,M)},en&&(eH.onMouseMove=function(e){var t;null==(t=eD.onMouseMove)||t.call(eD,e)})),tH&&(tz("onMouseLeave",!1,P),tz("onPointerLeave",!1,P),y=function(){e1(!1,P)}),tx.has("focus")&&tz("onFocus",!0,T),tw.has("focus")&&tz("onBlur",!1,z),tx.has("contextMenu")&&(eH.onContextMenu=function(e){var t;eU.current&&tw.has("contextMenu")?e1(!1):(to(e),e1(!0)),e.preventDefault();for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==(t=eD.onContextMenu)||t.call.apply(t,[eD,e].concat(r))}),ef&&(eH.className=E()(eD.className,ef));var tL=x.useRef(!1);tL.current||(tL.current=W||eG||e3);var tF=(0,D.A)((0,D.A)({},eD),eH),tW={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){em[e]&&(tW[e]=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==(t=tF[e])||t.call.apply(t,[tF].concat(r)),em[e].apply(em,r)})});var t_=x.cloneElement(eB,(0,D.A)((0,D.A)({},tF),tW)),tV=ea?(0,D.A)({},!0!==ea?ea:{}):null;return x.createElement(x.Fragment,null,x.createElement(ej,{disabled:!eG,ref:ez,onResize:function(){tT(),tS()}},x.createElement(dY,{getTriggerDOMNode:ep},t_)),tL.current&&x.createElement(dU.Provider,{value:ex},x.createElement(dG,{portal:e,ref:eA,prefixCls:w,popup:q,className:E()(K,tk),style:X,target:eR,onMouseEnter:b,onMouseLeave:y,onPointerEnter:b,zIndex:Z,open:eG,keepDom:e3,fresh:et,onClick:er,onPointerDownCapture:tB,mask:B,motion:eF,maskMotion:eW,onVisibleChanged:function(e){e6(!1),tv(),null==j||j(e)},onPrepare:function(){return new Promise(function(e){tT(),e9(function(){return e})})},forceRender:W,autoDestroy:_||V||!1,getPopupContainer:L,align:th,arrow:tV,arrowPos:{x:tf,y:tp},ready:tl,offsetX:tc,offsetY:ts,offsetR:tu,offsetB:td,onAlign:tS,stretch:J,targetWidth:tI/tm,targetHeight:tR/tg})))})}(cS);var ft=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fn=function(e){var t=+(!0!==e);return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},fr=x.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,a=e.popupElement,i=e.animation,l=e.transitionName,c=e.dropdownStyle,s=e.dropdownClassName,u=e.direction,d=e.placement,f=e.builtinPlacements,p=e.dropdownMatchSelectWidth,m=e.dropdownRender,g=e.dropdownAlign,h=e.getPopupContainer,v=e.empty,b=e.getTriggerDOMNode,y=e.onPopupVisibleChange,$=e.onPopupMouseEnter,w=(0,r3.A)(e,ft),C="".concat(n,"-dropdown"),k=a;m&&(k=m(a));var O=x.useMemo(function(){return f||fn(p)},[f,p]),A=i?"".concat(C,"-").concat(i):l,I="number"==typeof p,N=x.useMemo(function(){return I?null:!1===p?"minWidth":"width"},[p,I]),j=c;I&&(j=(0,D.A)((0,D.A)({},j),{},{width:p}));var M=x.useRef(null);return x.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null==(e=M.current)?void 0:e.popupElement}}}),x.createElement(fe,S({},w,{showAction:y?["click"]:[],hideAction:y?["click"]:[],popupPlacement:d||("rtl"===(void 0===u?"ltr":u)?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:C,popupTransitionName:A,popup:x.createElement("div",{onMouseEnter:$},k),ref:M,stretch:N,popupAlign:g,popupVisible:r,getPopupContainer:h,popupClassName:E()(s,(0,eX.A)({},"".concat(C,"-empty"),v)),popupStyle:j,getTriggerDOMNode:b,onPopupVisibleChange:y}),o)});function fo(e,t){var n,r=e.key;return("value"in e&&(n=e.value),null!=r)?r:void 0!==n?n:"rc-index-key-".concat(t)}function fa(e){return void 0!==e&&!Number.isNaN(e)}function fi(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function fl(e){var t=(0,D.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return B(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var fc=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=nS(n),a=o[0],i=o.slice(1);if(!a)return[t];var l=t.split(a);return r=r||l.length>1,l.reduce(function(t,n){return[].concat((0,eM.A)(t),(0,eM.A)(e(n,i)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null},fs=x.createContext(null);function fu(e){var t=e.visible,n=e.values;return t?x.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes((0,k.A)(t))?t:n}).join(", ")),n.length>50?", ...":null):null}var fd=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ff=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],fp=function(e){return"tags"===e||"multiple"===e},fm=x.forwardRef(function(e,t){var n,r,o,a,i,l,c,s=e.id,u=e.prefixCls,d=e.className,f=e.showSearch,p=e.tagRender,m=e.direction,g=e.omitDomProps,h=e.displayValues,v=e.onDisplayValuesChange,b=e.emptyOptions,y=e.notFoundContent,$=void 0===y?"Not Found":y,w=e.onClear,C=e.mode,k=e.disabled,O=e.loading,A=e.getInputElement,I=e.getRawInputElement,N=e.open,j=e.defaultOpen,M=e.onDropdownVisibleChange,R=e.activeValue,P=e.onActiveValueChange,T=e.activeDescendantId,z=e.searchValue,B=e.autoClearSearchValue,H=e.onSearch,L=e.onSearchSplit,F=e.tokenSeparators,W=e.allowClear,_=e.prefix,V=e.suffixIcon,q=e.clearIcon,K=e.OptionList,X=e.animation,G=e.transitionName,U=e.dropdownStyle,Q=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,J=e.dropdownRender,ee=e.dropdownAlign,et=e.placement,en=e.builtinPlacements,er=e.getPopupContainer,eo=e.showAction,ea=void 0===eo?[]:eo,ei=e.onFocus,el=e.onBlur,ec=e.onKeyUp,es=e.onKeyDown,eu=e.onMouseDown,ed=(0,r3.A)(e,fd),ef=fp(C),ep=(void 0!==f?f:ef)||"combobox"===C,em=(0,D.A)({},ed);ff.forEach(function(e){delete em[e]}),null==g||g.forEach(function(e){delete em[e]});var eg=x.useState(!1),eh=(0,eK.A)(eg,2),ev=eh[0],eb=eh[1];x.useEffect(function(){eb(dp())},[]);var ey=x.useRef(null),e$=x.useRef(null),ex=x.useRef(null),ew=x.useRef(null),eC=x.useRef(null),eE=x.useRef(!1),eS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=x.useState(!1),n=(0,eK.A)(t,2),r=n[0],o=n[1],a=x.useRef(null),i=function(){window.clearTimeout(a.current)};return x.useEffect(function(){return i},[]),[r,function(t,n){i(),a.current=window.setTimeout(function(){o(t),n&&n()},e)},i]}(),ek=(0,eK.A)(eS,3),eO=ek[0],eA=ek[1],eI=ek[2];x.useImperativeHandle(t,function(){var e,t;return{focus:null==(e=ew.current)?void 0:e.focus,blur:null==(t=ew.current)?void 0:t.blur,scrollTo:function(e){var t;return null==(t=eC.current)?void 0:t.scrollTo(e)},nativeElement:ey.current||e$.current}});var eN=x.useMemo(function(){if("combobox"!==C)return z;var e,t=null==(e=h[0])?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[z,C,h]),ej="combobox"===C&&"function"==typeof A&&A()||null,eR="function"==typeof I&&I(),eP=Y(e$,null==eR||null==(a=eR.props)?void 0:a.ref),eT=x.useState(!1),ez=(0,eK.A)(eT,2),eB=ez[0],eD=ez[1];t$(function(){eD(!0)},[]);var eH=ny(!1,{defaultValue:j,value:N}),eL=(0,eK.A)(eH,2),eF=eL[0],eW=eL[1],e_=!!eB&&eF,eV=!$&&b;(k||eV&&e_&&"combobox"===C)&&(e_=!1);var eq=!eV&&e_,eG=x.useCallback(function(e){var t=void 0!==e?e:!e_;k||(eW(t),e_!==t&&(null==M||M(t)))},[k,e_,eW,M]),eY=x.useMemo(function(){return(F||[]).some(function(e){return["\n","\r\n"].includes(e)})},[F]),eU=x.useContext(fs)||{},eQ=eU.maxCount,eZ=eU.rawValues,eJ=function(e,t,n){if(!(ef&&fa(eQ))||!((null==eZ?void 0:eZ.size)>=eQ)){var r=!0,o=e;null==P||P(null);var a=fc(e,F,fa(eQ)?eQ-eZ.size:void 0),i=n?null:a;return"combobox"!==C&&i&&(o="",null==L||L(i),eG(!1),r=!1),H&&eN!==o&&H(o,{source:t?"typing":"effect"}),r}};x.useEffect(function(){e_||ef||"combobox"===C||eJ("",!1,!1)},[e_]),x.useEffect(function(){eF&&k&&eW(!1),k&&!eE.current&&eA(!1)},[k]);var e0=db(),e1=(0,eK.A)(e0,2),e2=e1[0],e4=e1[1],e3=x.useRef(!1),e6=x.useRef(!1),e5=[];x.useEffect(function(){return function(){e5.forEach(function(e){return clearTimeout(e)}),e5.splice(0,e5.length)}},[]);var e8=x.useState({}),e7=(0,eK.A)(e8,2)[1];eR&&(i=function(e){eG(e)}),n=function(){var e;return[ey.current,null==(e=ex.current)?void 0:e.getPopupElement()]},r=!!eR,(o=x.useRef(null)).current={open:eq,triggerOpen:eG,customizedTrigger:r},x.useEffect(function(){function e(e){if(null==(t=o.current)||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var e9=x.useMemo(function(){return(0,D.A)((0,D.A)({},e),{},{notFoundContent:$,open:e_,triggerOpen:eq,id:s,showSearch:ep,multiple:ef,toggleOpen:eG})},[e,$,eq,e_,s,ep,ef,eG]),te=!!V||O;te&&(l=x.createElement(dm,{className:E()("".concat(u,"-arrow"),(0,eX.A)({},"".concat(u,"-arrow-loading"),O)),customizeIcon:V,customizeIconProps:{loading:O,searchValue:eN,open:e_,focused:eO,showSearch:ep}}));var tt=dg(u,function(){var e;null==w||w(),null==(e=ew.current)||e.focus(),v([],{type:"clear",values:h}),eJ("",!1,!1)},h,W,q,k,eN,C),tn=tt.allowClear,tr=tt.clearIcon,to=x.createElement(K,{ref:eC}),ta=E()(u,d,(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(u,"-focused"),eO),"".concat(u,"-multiple"),ef),"".concat(u,"-single"),!ef),"".concat(u,"-allow-clear"),W),"".concat(u,"-show-arrow"),te),"".concat(u,"-disabled"),k),"".concat(u,"-loading"),O),"".concat(u,"-open"),e_),"".concat(u,"-customize-input"),ej),"".concat(u,"-show-search"),ep)),ti=x.createElement(fr,{ref:ex,disabled:k,prefixCls:u,visible:eq,popupElement:to,animation:X,transitionName:G,dropdownStyle:U,dropdownClassName:Q,direction:m,dropdownMatchSelectWidth:Z,dropdownRender:J,dropdownAlign:ee,placement:et,builtinPlacements:en,getPopupContainer:er,empty:b,getTriggerDOMNode:function(e){return e$.current||e},onPopupVisibleChange:i,onPopupMouseEnter:function(){e7({})}},eR?x.cloneElement(eR,{ref:eP}):x.createElement(dV,S({},e,{domRef:e$,prefixCls:u,inputElement:ej,ref:ew,id:s,prefix:_,showSearch:ep,autoClearSearchValue:B,mode:C,activeDescendantId:T,tagRender:p,values:h,open:e_,onToggleOpen:eG,activeValue:R,searchValue:eN,onSearch:eJ,onSearchSubmit:function(e){e&&e.trim()&&H(e,{source:"submit"})},onRemove:function(e){v(h.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:eY,onInputBlur:function(){e3.current=!1}})));return c=eR?ti:x.createElement("div",S({className:ta},em,{ref:ey,onMouseDown:function(e){var t,n=e.target,r=null==(t=ex.current)?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=e5.indexOf(o);-1!==t&&e5.splice(t,1),eI(),ev||r.contains(document.activeElement)||null==(e=ew.current)||e.focus()});e5.push(o)}for(var a=arguments.length,i=Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];null==eu||eu.apply(void 0,[e].concat(i))},onKeyDown:function(e){var t,n=e2(),r=e.key,o="Enter"===r;if(o&&("combobox"!==C&&e.preventDefault(),e_||eG(!0)),e4(!!eN),"Backspace"===r&&!n&&ef&&!eN&&h.length){for(var a=(0,eM.A)(h),i=null,l=a.length-1;l>=0;l-=1){var c=a[l];if(!c.disabled){a.splice(l,1),i=c;break}}i&&v(a,{type:"remove",values:[i]})}for(var s=arguments.length,u=Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];!e_||o&&e3.current||(o&&(e3.current=!0),null==(t=eC.current)||t.onKeyDown.apply(t,[e].concat(u))),null==es||es.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e_&&(null==(t=eC.current)||t.onKeyUp.apply(t,[e].concat(r))),"Enter"===e.key&&(e3.current=!1),null==ec||ec.apply(void 0,[e].concat(r))},onFocus:function(){eA(!0),!k&&(ei&&!e6.current&&ei.apply(void 0,arguments),ea.includes("focus")&&eG(!0)),e6.current=!0},onBlur:function(){eE.current=!0,eA(!1,function(){e6.current=!1,eE.current=!1,eG(!1)}),!k&&(eN&&("tags"===C?H(eN,{source:"submit"}):"multiple"===C&&H("",{source:"blur"})),el&&el.apply(void 0,arguments))}}),x.createElement(fu,{visible:eO&&!e_,values:h}),ti,l,tn&&tr),x.createElement(dh.Provider,{value:e9},c)}),fg=function(){return null};fg.isSelectOptGroup=!0;var fh=function(){return null};fh.isSelectOption=!0;var fv=x.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,l=e.onInnerResize,c=e.innerProps,s=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:n,position:"relative",overflow:"hidden"},f=(0,D.A)((0,D.A)({},f),{},(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({transform:"translateY(".concat(r,"px)")},s?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),x.createElement("div",{style:d},x.createElement(ej,{onResize:function(e){e.offsetHeight&&l&&l()}},x.createElement("div",S({style:f,className:E()((0,eX.A)({},"".concat(i,"-holder-inner"),i)),ref:t},c),a,u)))});function fb(e){var t=e.children,n=e.setRef,r=x.useCallback(function(e){n(e)},[]);return x.cloneElement(t,{ref:r})}fv.displayName="Filler";var fy=("u"<typeof navigator?"undefined":(0,k.A)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);let f$=function(e,t,n,r){var o=(0,x.useRef)(!1),a=(0,x.useRef)(null),i=(0,x.useRef)({top:e,bottom:t,left:n,right:r});return i.current.top=e,i.current.bottom=t,i.current.left=n,i.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&i.current.left||t>0&&i.current.right:t<0&&i.current.top||t>0&&i.current.bottom;return n&&r?(clearTimeout(a.current),o.current=!1):(!r||o.current)&&(clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)),!o.current&&r}};var fx=function(){function e(){(0,ew.A)(this,e),(0,eX.A)(this,"maps",void 0),(0,eX.A)(this,"id",0),(0,eX.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,eC.A)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function fw(e){var t=parseFloat(e);return isNaN(t)?0:t}var fC=14/15;function fE(e){return Math.floor(Math.pow(e,.5))}function fS(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var fk=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,l=e.onStopMove,c=e.onScroll,s=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,m=e.showScrollBar,g=x.useState(!1),h=(0,eK.A)(g,2),v=h[0],b=h[1],y=x.useState(null),$=(0,eK.A)(y,2),w=$[0],C=$[1],S=x.useState(null),k=(0,eK.A)(S,2),O=k[0],A=k[1],I=!r,N=x.useRef(),j=x.useRef(),M=x.useState(m),R=(0,eK.A)(M,2),P=R[0],T=R[1],z=x.useRef(),B=function(){!0!==m&&!1!==m&&(clearTimeout(z.current),T(!0),z.current=setTimeout(function(){T(!1)},3e3))},H=a-d||0,L=d-u||0,F=x.useMemo(function(){return 0===o||0===H?0:o/H*L},[o,H,L]),W=x.useRef({top:F,dragging:v,pageY:w,startTop:O});W.current={top:F,dragging:v,pageY:w,startTop:O};var _=function(e){b(!0),C(fS(e,s)),A(W.current.top),i(),e.stopPropagation(),e.preventDefault()};x.useEffect(function(){var e=function(e){e.preventDefault()},t=N.current,n=j.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",_,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",_)}},[]);var V=x.useRef();V.current=H;var q=x.useRef();q.current=L,x.useEffect(function(){if(v){var e,t=function(t){var n=W.current,r=n.dragging,o=n.pageY,a=n.startTop;eB.cancel(e);var i=N.current.getBoundingClientRect(),l=d/(s?i.width:i.height);if(r){var u=(fS(t,s)-o)*l,f=a;!I&&s?f-=u:f+=u;var p=V.current,m=q.current,g=Math.ceil((m?f/m:0)*p);g=Math.min(g=Math.max(g,0),p),e=eB(function(){c(g,s)})}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),eB.cancel(e)}}},[v]),x.useEffect(function(){return B(),function(){clearTimeout(z.current)}},[o]),x.useImperativeHandle(t,function(){return{delayHidden:B}});var K="".concat(n,"-scrollbar"),X={position:"absolute",visibility:P?null:"hidden"},G={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return s?(Object.assign(X,{height:8,left:0,right:0,bottom:0}),Object.assign(G,(0,eX.A)({height:"100%",width:u},I?"left":"right",F))):(Object.assign(X,(0,eX.A)({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(G,{width:"100%",height:u,top:F})),x.createElement("div",{ref:N,className:E()(K,(0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(K,"-horizontal"),s),"".concat(K,"-vertical"),!s),"".concat(K,"-visible"),P)),style:(0,D.A)((0,D.A)({},X),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:B},x.createElement("div",{ref:j,className:E()("".concat(K,"-thumb"),(0,eX.A)({},"".concat(K,"-thumb-moving"),v)),style:(0,D.A)((0,D.A)({},G),p),onMouseDown:_}))});function fO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),Math.floor(n=Math.max(n,20))}var fA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],fI=[],fN={overflowY:"auto",overflowAnchor:"none"},fj=x.forwardRef(function(e,t){var n,r,o,a,i,l,c,s,u,d,f,p,m,g,h,v,b,y,$,w,C,O,A,I,N,j,M,R,P,T,z,B,L,F,W,_,V,q=e.prefixCls,K=void 0===q?"rc-virtual-list":q,X=e.className,G=e.height,Y=e.itemHeight,U=e.fullHeight,Q=e.style,Z=e.data,J=e.children,ee=e.itemKey,et=e.virtual,en=e.direction,er=e.scrollWidth,eo=e.component,ea=e.onScroll,ei=e.onVirtualScroll,el=e.onVisibleChange,ec=e.innerProps,es=e.extraRender,eu=e.styles,ed=e.showScrollBar,ef=void 0===ed?"optional":ed,ep=(0,r3.A)(e,fA),em=x.useCallback(function(e){return"function"==typeof ee?ee(e):null==e?void 0:e[ee]},[ee]),eg=function(e){var t=x.useState(0),n=(0,eK.A)(t,2),r=n[0],o=n[1],a=(0,x.useRef)(new Map),i=(0,x.useRef)(new fx),l=(0,x.useRef)(0);function c(){l.current+=1}function s(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){var e=!1;a.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),a=o.marginTop,l=o.marginBottom,c=r+fw(a)+fw(l);i.current.get(n)!==c&&(i.current.set(n,c),e=!0)}}),e&&o(function(e){return e+1})};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then(function(){n===l.current&&t()})}}return(0,x.useEffect)(function(){return c},[]),[function(t,n){var r=e(t);a.current.get(r),n?(a.current.set(r,n),s()):a.current.delete(r)},s,i.current,r]}(em),eh=(0,eK.A)(eg,4),ev=eh[0],eb=eh[1],ey=eh[2],e$=eh[3],ex=!!(!1!==et&&G&&Y),ew=x.useMemo(function(){return Object.values(ey.maps).reduce(function(e,t){return e+t},0)},[ey.id,ey.maps]),eC=ex&&Z&&(Math.max(Y*Z.length,ew)>G||!!er),eE="rtl"===en,eS=E()(K,(0,eX.A)({},"".concat(K,"-rtl"),eE),X),ek=Z||fI,eO=(0,x.useRef)(),eA=(0,x.useRef)(),eI=(0,x.useRef)(),eN=(0,x.useState)(0),eM=(0,eK.A)(eN,2),eR=eM[0],eP=eM[1],eT=(0,x.useState)(0),ez=(0,eK.A)(eT,2),eD=ez[0],eH=ez[1],eL=(0,x.useState)(!1),eF=(0,eK.A)(eL,2),eW=eF[0],e_=eF[1],eV=function(){e_(!0)},eq=function(){e_(!1)};function eG(e){eP(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(tn.current)||(n=Math.min(n,tn.current)),n=Math.max(n,0));return eO.current.scrollTop=r,r})}var eY=(0,x.useRef)({start:0,end:ek.length}),eU=(0,x.useRef)(),eQ=(n=x.useState(ek),o=(r=(0,eK.A)(n,2))[0],a=r[1],i=x.useState(null),c=(l=(0,eK.A)(i,2))[0],s=l[1],x.useEffect(function(){var e=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(a-i),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(o||[],ek||[],em);(null==e?void 0:e.index)!==void 0&&s(ek[e.index]),a(ek)},[ek]),[c]);eU.current=(0,eK.A)(eQ,1)[0];var eZ=x.useMemo(function(){if(!ex)return{scrollHeight:void 0,start:0,end:ek.length-1,offset:void 0};if(!eC)return{scrollHeight:(null==(e=eA.current)?void 0:e.offsetHeight)||0,start:0,end:ek.length-1,offset:void 0};for(var e,t,n,r,o=0,a=ek.length,i=0;i<a;i+=1){var l=em(ek[i]),c=ey.get(l),s=o+(void 0===c?Y:c);s>=eR&&void 0===t&&(t=i,n=o),s>eR+G&&void 0===r&&(r=i),o=s}return void 0===t&&(t=0,n=0,r=Math.ceil(G/Y)),void 0===r&&(r=ek.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,ek.length-1),offset:n}},[eC,ex,eR,ek,e$,G]),eJ=eZ.scrollHeight,e0=eZ.start,e1=eZ.end,e2=eZ.offset;eY.current.start=e0,eY.current.end=e1,x.useLayoutEffect(function(){var e=ey.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=ek[e0];if(r&&void 0===n&&em(r)===t){var o=ey.get(t)-Y;eG(function(e){return e+o})}}ey.resetRecord()},[eJ]);var e4=x.useState({width:0,height:G}),e3=(0,eK.A)(e4,2),e6=e3[0],e5=e3[1],e8=(0,x.useRef)(),e7=(0,x.useRef)(),e9=x.useMemo(function(){return fO(e6.width,er)},[e6.width,er]),te=x.useMemo(function(){return fO(e6.height,eJ)},[e6.height,eJ]),tt=eJ-G,tn=(0,x.useRef)(tt);tn.current=tt;var tr=eR<=0,to=eR>=tt,ta=eD<=0,ti=eD>=er,tl=f$(tr,to,ta,ti),tc=function(){return{x:eE?-eD:eD,y:eR}},ts=(0,x.useRef)(tc()),tu=nh(function(e){if(ei){var t=(0,D.A)((0,D.A)({},tc()),e);(ts.current.x!==t.x||ts.current.y!==t.y)&&(ei(t),ts.current=t)}});function td(e,t){t?((0,H.flushSync)(function(){eH(e)}),tu()):eG(e)}var tf=function(e){var t=e,n=er?er-e6.width:0;return Math.min(t=Math.max(t,0),n)},tp=nh(function(e,t){t?((0,H.flushSync)(function(){eH(function(t){return tf(t+(eE?-e:e))})}),tu()):eG(function(t){return t+e})}),tm=(u=!!er,d=(0,x.useRef)(0),f=(0,x.useRef)(null),p=(0,x.useRef)(null),m=(0,x.useRef)(!1),g=f$(tr,to,ta,ti),h=(0,x.useRef)(null),v=(0,x.useRef)(null),[function(e){if(ex){eB.cancel(v.current),v.current=eB(function(){h.current=null},2);var t,n,r=e.deltaX,o=e.deltaY,a=e.shiftKey,i=r,l=o;("sx"===h.current||!h.current&&a&&o&&!r)&&(i=o,l=0,h.current="sx");var c=Math.abs(i),s=Math.abs(l);if(null===h.current&&(h.current=u&&c>s?"x":"y"),"y"===h.current){t=e,n=l,eB.cancel(f.current),!g(!1,n)&&(t._virtualHandled||(t._virtualHandled=!0,d.current+=n,p.current=n,fy||t.preventDefault(),f.current=eB(function(){var e=m.current?10:1;tp(d.current*e,!1),d.current=0})))}else tp(i,!0),fy||e.preventDefault()}},function(e){ex&&(m.current=e.detail===p.current)}]),tg=(0,eK.A)(tm,2),th=tg[0],tv=tg[1];b=function(e,t,n,r){return!tl(e,t,n)&&(!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),th({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)},$=(0,x.useRef)(!1),w=(0,x.useRef)(0),C=(0,x.useRef)(0),O=(0,x.useRef)(null),A=(0,x.useRef)(null),I=function(e){if($.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),r=w.current-t,o=C.current-n,a=Math.abs(r)>Math.abs(o);a?w.current=t:C.current=n;var i=b(a,a?r:o,!1,e);i&&e.preventDefault(),clearInterval(A.current),i&&(A.current=setInterval(function(){a?r*=fC:o*=fC;var e=Math.floor(a?r:o);(!b(a,e,!0)||.1>=Math.abs(e))&&clearInterval(A.current)},16))}},N=function(){$.current=!1,y()},j=function(e){y(),1!==e.touches.length||$.current||($.current=!0,w.current=Math.ceil(e.touches[0].pageX),C.current=Math.ceil(e.touches[0].pageY),O.current=e.target,O.current.addEventListener("touchmove",I,{passive:!1}),O.current.addEventListener("touchend",N,{passive:!0}))},y=function(){O.current&&(O.current.removeEventListener("touchmove",I),O.current.removeEventListener("touchend",N))},t$(function(){return ex&&eO.current.addEventListener("touchstart",j,{passive:!0}),function(){var e;null==(e=eO.current)||e.removeEventListener("touchstart",j),y(),clearInterval(A.current)}},[ex]),M=function(e){eG(function(t){return t+e})},x.useEffect(function(){var e=eO.current;if(eC&&e){var t,n,r=!1,o=function(){eB.cancel(t)},a=function e(){o(),t=eB(function(){M(n),e()})},i=function(){r=!1,o()},l=function(e){!e.target.draggable&&0===e.button&&(e._virtualHandled||(e._virtualHandled=!0,r=!0))},c=function(t){if(r){var i=fS(t,!1),l=e.getBoundingClientRect(),c=l.top,s=l.bottom;i<=c?(n=-fE(c-i),a()):i>=s?(n=fE(i-s),a()):o()}};return e.addEventListener("mousedown",l),e.ownerDocument.addEventListener("mouseup",i),e.ownerDocument.addEventListener("mousemove",c),e.ownerDocument.addEventListener("dragend",i),function(){e.removeEventListener("mousedown",l),e.ownerDocument.removeEventListener("mouseup",i),e.ownerDocument.removeEventListener("mousemove",c),e.ownerDocument.removeEventListener("dragend",i),o()}}},[eC]),t$(function(){function e(e){var t=tr&&e.detail<0,n=to&&e.detail>0;!ex||t||n||e.preventDefault()}var t=eO.current;return t.addEventListener("wheel",th,{passive:!1}),t.addEventListener("DOMMouseScroll",tv,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",th),t.removeEventListener("DOMMouseScroll",tv),t.removeEventListener("MozMousePixelScroll",e)}},[ex,tr,to]),t$(function(){if(er){var e=tf(eD);eH(e),tu({x:e})}},[e6.width,er]);var tb=function(){var e,t;null==(e=e8.current)||e.delayHidden(),null==(t=e7.current)||t.delayHidden()},ty=(R=function(){return eb(!0)},P=x.useRef(),T=x.useState(null),B=(z=(0,eK.A)(T,2))[0],L=z[1],t$(function(){if(B&&B.times<10){if(!eO.current)return void L(function(e){return(0,D.A)({},e)});R();var e=B.targetAlign,t=B.originAlign,n=B.index,r=B.offset,o=eO.current.clientHeight,a=!1,i=e,l=null;if(o){for(var c=e||t,s=0,u=0,d=0,f=Math.min(ek.length-1,n),p=0;p<=f;p+=1){var m=em(ek[p]);u=s;var g=ey.get(m);s=d=u+(void 0===g?Y:g)}for(var h="top"===c?r:o-r,v=f;v>=0;v-=1){var b=em(ek[v]),y=ey.get(b);if(void 0===y){a=!0;break}if((h-=y)<=0)break}switch(c){case"top":l=u-r;break;case"bottom":l=d-o+r;break;default:var $=eO.current.scrollTop;u<$?i="top":d>$+o&&(i="bottom")}null!==l&&eG(l),l!==B.lastTop&&(a=!0)}a&&L((0,D.A)((0,D.A)({},B),{},{times:B.times+1,targetAlign:i,lastTop:l}))}},[B,eO.current]),function(e){if(null==e)return void tb();if(eB.cancel(P.current),"number"==typeof e)eG(e);else if(e&&"object"===(0,k.A)(e)){var t,n=e.align;t="index"in e?e.index:ek.findIndex(function(t){return em(t)===e.key});var r=e.offset;L({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}});x.useImperativeHandle(t,function(){return{nativeElement:eI.current,getScrollInfo:tc,scrollTo:function(e){e&&"object"===(0,k.A)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&eH(tf(e.left)),ty(e.top)):ty(e)}}}),t$(function(){el&&el(ek.slice(e0,e1+1),ek)},[e0,e1,ek]);var tx=(F=x.useMemo(function(){return[new Map,[]]},[ek,ey.id,Y]),_=(W=(0,eK.A)(F,2))[0],V=W[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=_.get(e),r=_.get(t);if(void 0===n||void 0===r)for(var o=ek.length,a=V.length;a<o;a+=1){var i,l=em(ek[a]);_.set(l,a);var c=null!=(i=ey.get(l))?i:Y;if(V[a]=(V[a-1]||0)+c,l===e&&(n=a),l===t&&(r=a),void 0!==n&&void 0!==r)break}return{top:V[n-1]||0,bottom:V[r]}}),tw=null==es?void 0:es({start:e0,end:e1,virtual:eC,offsetX:eD,offsetY:e2,rtl:eE,getSize:tx}),tC=ek.slice(e0,e1+1).map(function(e,t){var n=J(e,e0+t,{style:{width:er},offsetX:eD}),r=em(e);return x.createElement(fb,{key:r,setRef:function(t){return ev(e,t)}},n)}),tE=null;G&&(tE=(0,D.A)((0,eX.A)({},void 0===U||U?"height":"maxHeight",G),fN),ex&&(tE.overflowY="hidden",er&&(tE.overflowX="hidden"),eW&&(tE.pointerEvents="none")));var tS={};return eE&&(tS.dir="rtl"),x.createElement("div",S({ref:eI,style:(0,D.A)((0,D.A)({},Q),{},{position:"relative"}),className:eS},tS,ep),x.createElement(ej,{onResize:function(e){e5({width:e.offsetWidth,height:e.offsetHeight})}},x.createElement(void 0===eo?"div":eo,{className:"".concat(K,"-holder"),style:tE,ref:eO,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==eR&&eG(t),null==ea||ea(e),tu()},onMouseEnter:tb},x.createElement(fv,{prefixCls:K,height:eJ,offsetX:eD,offsetY:e2,scrollWidth:er,onInnerResize:eb,ref:eA,innerProps:ec,rtl:eE,extra:tw},tC))),eC&&eJ>G&&x.createElement(fk,{ref:e8,prefixCls:K,scrollOffset:eR,scrollRange:eJ,rtl:eE,onScroll:td,onStartMove:eV,onStopMove:eq,spinSize:te,containerSize:e6.height,style:null==eu?void 0:eu.verticalScrollBar,thumbStyle:null==eu?void 0:eu.verticalScrollBarThumb,showScrollBar:ef}),eC&&er>e6.width&&x.createElement(fk,{ref:e7,prefixCls:K,scrollOffset:eD,scrollRange:er,rtl:eE,onScroll:td,onStartMove:eV,onStopMove:eq,spinSize:e9,containerSize:e6.width,horizontal:!0,style:null==eu?void 0:eu.horizontalScrollBar,thumbStyle:null==eu?void 0:eu.horizontalScrollBarThumb,showScrollBar:ef}))});fj.displayName="List";var fM=["disabled","title","children","style","className"];function fR(e){return"string"==typeof e||"number"==typeof e}var fP=x.forwardRef(function(e,t){var n=dv(),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,l=n.mode,c=n.searchValue,s=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=x.useContext(fs),p=f.maxCount,m=f.flattenOptions,g=f.onActiveValue,h=f.defaultActiveFirstOption,v=f.onSelect,b=f.menuItemSelectedIcon,y=f.rawValues,$=f.fieldNames,w=f.virtual,C=f.direction,k=f.listHeight,O=f.listItemHeight,A=f.optionRender,I="".concat(r,"-item"),N=q(function(){return m},[a,m],function(e,t){return t[0]&&e[1]!==t[1]}),j=x.useRef(null),M=x.useMemo(function(){return i&&fa(p)&&(null==y?void 0:y.size)>=p},[i,p,null==y?void 0:y.size]),R=function(e){e.preventDefault()},P=function(e){var t;null==(t=j.current)||t.scrollTo("number"==typeof e?{index:e}:e)},T=x.useCallback(function(e){return"combobox"!==l&&y.has(e)},[l,(0,eM.A)(y).toString(),y.size]),z=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=N.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,a=N[o]||{},i=a.group,l=a.data;if(!i&&!(null!=l&&l.disabled)&&(T(l.value)||!M))return o}return -1},B=x.useState(function(){return z(0)}),D=(0,eK.A)(B,2),H=D[0],L=D[1],F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e);var n={source:t?"keyboard":"mouse"},r=N[e];r?g(r.value,e,n):g(null,-1,n)};(0,x.useEffect)(function(){F(!1!==h?z(0):-1)},[N.length,c]);var W=x.useCallback(function(e){return"combobox"===l?String(e).toLowerCase()===c.toLowerCase():y.has(e)},[l,c,(0,eM.A)(y).toString(),y.size]);(0,x.useEffect)(function(){var e,t=setTimeout(function(){if(!i&&a&&1===y.size){var e=Array.from(y)[0],t=N.findIndex(function(t){var n=t.data;return c?String(n.value).startsWith(c):n.value===e});-1!==t&&(F(t),P(t))}});return a&&(null==(e=j.current)||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[a,c]);var _=function(e){void 0!==e&&v(e,{selected:!y.has(e)}),i||s(!1)};if(x.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case aM.N:case aM.P:case aM.UP:case aM.DOWN:var r=0;if(t===aM.UP?r=-1:t===aM.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===aM.N?r=1:t===aM.P&&(r=-1)),0!==r){var o=z(H+r,r);P(o),F(o,!0)}break;case aM.TAB:case aM.ENTER:var i,l=N[H];!l||null!=l&&null!=(i=l.data)&&i.disabled||M?_(void 0):_(l.value),a&&e.preventDefault();break;case aM.ESC:s(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){P(e)}}}),0===N.length)return x.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(I,"-empty"),onMouseDown:R},u);var V=Object.keys($).map(function(e){return $[e]}),K=function(e){return e.label};function X(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var G=function(e){var t=N[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,a=o5(n,!0),i=K(t);return t?x.createElement("div",S({"aria-label":"string"!=typeof i||o?null:i},a,{key:e},X(t,e),{"aria-selected":W(r)}),r):null},Y={role:"listbox",id:"".concat(o,"_list")};return x.createElement(x.Fragment,null,w&&x.createElement("div",S({},Y,{style:{height:0,width:0,overflow:"hidden"}}),G(H-1),G(H),G(H+1)),x.createElement(fj,{itemKey:"key",ref:j,data:N,height:k,itemHeight:O,fullHeight:!1,onMouseDown:R,onScroll:d,virtual:w,direction:C,innerProps:w?null:Y},function(e,t){var n=e.group,r=e.groupOption,o=e.data,a=e.label,i=e.value,l=o.key;if(n){var c,s=null!=(c=o.title)?c:fR(a)?a.toString():void 0;return x.createElement("div",{className:E()(I,"".concat(I,"-group"),o.className),title:s},void 0!==a?a:l)}var u=o.disabled,d=o.title,f=(o.children,o.style),p=o.className,m=iX((0,r3.A)(o,fM),V),g=T(i),h=u||!g&&M,v="".concat(I,"-option"),y=E()(I,v,p,(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(v,"-grouped"),r),"".concat(v,"-active"),H===t&&!h),"".concat(v,"-disabled"),h),"".concat(v,"-selected"),g)),$=K(e),C=!b||"function"==typeof b||g,k="number"==typeof $?$:$||i,O=fR(k)?k.toString():void 0;return void 0!==d&&(O=d),x.createElement("div",S({},o5(m),w?{}:X(e,t),{"aria-selected":W(i),className:y,title:O,onMouseMove:function(){H===t||h||F(t)},onClick:function(){h||_(i)},style:f}),x.createElement("div",{className:"".concat(v,"-content")},"function"==typeof A?A(e,{index:t}):k),x.isValidElement(b)||g,C&&x.createElement(dm,{className:"".concat(I,"-option-state"),customizeIcon:b,customizeIconProps:{value:i,disabled:h,isSelected:g}},g?"✓":null))}))});let fT=function(e,t){var n=x.useRef({values:new Map,options:new Map});return[x.useMemo(function(){var r=n.current,o=r.values,a=r.options,i=e.map(function(e){if(void 0===e.label){var t;return(0,D.A)((0,D.A)({},e),{},{label:null==(t=o.get(e.value))?void 0:t.label})}return e}),l=new Map,c=new Map;return i.forEach(function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))}),n.current.values=l,n.current.options=c,i},[e,t]),x.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]};function fz(e,t){return dz(e).join("").toUpperCase().includes(t)}var fB=0,fD=eY();function fH(e){var t=x.useState(),n=(0,eK.A)(t,2),r=n[0],o=n[1];return x.useEffect(function(){var e;o("rc_select_".concat((fD?(e=fB,fB+=1):e="TEST_OR_SSR",e)))},[]),e||r}var fL=["children","value"],fF=["children"];function fW(e){var t=x.useRef();return t.current=e,x.useCallback(function(){return t.current.apply(t,arguments)},[])}var f_=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],fV=["inputValue"],fq=x.forwardRef(function(e,t){var n,r=e.id,o=e.mode,a=e.prefixCls,i=e.backfill,l=e.fieldNames,c=e.inputValue,s=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,p=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,h=void 0===g||g,v=e.filterOption,b=e.filterSort,y=e.optionFilterProp,$=e.optionLabelProp,w=e.options,C=e.optionRender,E=e.children,O=e.defaultActiveFirstOption,A=e.menuItemSelectedIcon,I=e.virtual,N=e.direction,M=e.listHeight,R=void 0===M?200:M,P=e.listItemHeight,T=void 0===P?20:P,z=e.labelRender,B=e.value,H=e.defaultValue,L=e.labelInValue,F=e.onChange,W=e.maxCount,_=(0,r3.A)(e,f_),V=fH(r),q=fp(o),K=!!(!w&&E),X=x.useMemo(function(){return(void 0!==v||"combobox"!==o)&&v},[v,o]),G=x.useMemo(function(){return fi(l,K)},[JSON.stringify(l),K]),Y=ny("",{value:void 0!==s?s:c,postState:function(e){return e||""}}),U=(0,eK.A)(Y,2),Q=U[0],Z=U[1],J=x.useMemo(function(){var e=w;w||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return j(t).map(function(t,r){if(!x.isValidElement(t)||!t.type)return null;var o,a,i,l,c,s=t.type.isSelectOptGroup,u=t.key,d=t.props,f=d.children,p=(0,r3.A)(d,fF);return n||!s?(o=t.key,i=(a=t.props).children,l=a.value,c=(0,r3.A)(a,fL),(0,D.A)({key:o,value:void 0!==l?l:o,children:i},c)):(0,D.A)((0,D.A)({key:"__RC_SELECT_GRP__".concat(null===u?r:u,"__"),label:u},p),{},{options:e(f)})}).filter(function(e){return e})}(E));var t=new Map,n=new Map,r=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return!function e(o){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i<o.length;i+=1){var l=o[i];!l[G.options]||a?(t.set(l[G.value],l),r(n,l,G.label),r(n,l,y),r(n,l,$)):e(l[G.options],!0)}}(e),{options:e,valueOptions:t,labelOptions:n}},[w,E,G,y,$]),ee=J.valueOptions,et=J.labelOptions,en=J.options,er=x.useCallback(function(e){return dz(e).map(function(e){e&&"object"===(0,k.A)(e)?(r=e.key,n=e.label,t=null!=(i=e.value)?i:r):t=e;var t,n,r,o,a,i,l,c=ee.get(t);return c&&(void 0===n&&(n=null==c?void 0:c[$||G.label]),void 0===r&&(r=null!=(l=null==c?void 0:c.key)?l:t),o=null==c?void 0:c.disabled,a=null==c?void 0:c.title),{label:n,value:t,key:r,disabled:o,title:a}})},[G,$,ee]),eo=ny(H,{value:B}),ea=(0,eK.A)(eo,2),ei=ea[0],el=ea[1],ec=fT(x.useMemo(function(){var e,t,n=er(q&&null===ei?[]:ei);return"combobox"!==o||(t=null==(e=n[0])?void 0:e.value)||0===t?n:[]},[ei,er,o,q]),ee),es=(0,eK.A)(ec,2),eu=es[0],ed=es[1],ef=x.useMemo(function(){if(!o&&1===eu.length){var e=eu[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return eu.map(function(e){var t;return(0,D.A)((0,D.A)({},e),{},{label:null!=(t="function"==typeof z?z(e):e.label)?t:e.value})})},[o,eu,z]),ep=x.useMemo(function(){return new Set(eu.map(function(e){return e.value}))},[eu]);x.useEffect(function(){if("combobox"===o){var e,t=null==(e=eu[0])?void 0:e.value;Z(null!=t?String(t):"")}},[eu]);var em=fW(function(e,t){var n=null!=t?t:e;return(0,eX.A)((0,eX.A)({},G.value,e),G.label,n)}),eg=(n=x.useMemo(function(){if("tags"!==o)return en;var e=(0,eM.A)(en);return(0,eM.A)(eu).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;ee.has(n)||e.push(em(n,t.label))}),e},[em,en,ee,eu,o]),x.useMemo(function(){if(!Q||!1===X)return n;var e=G.options,t=G.label,r=G.value,o=[],a="function"==typeof X,i=Q.toUpperCase(),l=a?X:function(n,o){return y?fz(o[y],i):o[e]?fz(o["children"!==t?t:"label"],i):fz(o[r],i)},c=a?function(e){return fl(e)}:function(e){return e};return n.forEach(function(t){if(t[e]){if(l(Q,c(t)))o.push(t);else{var n=t[e].filter(function(e){return l(Q,c(e))});n.length&&o.push((0,D.A)((0,D.A)({},t),{},(0,eX.A)({},e,n)))}return}l(Q,c(t))&&o.push(t)}),o},[n,X,y,Q,G])),eh=x.useMemo(function(){return"tags"!==o||!Q||eg.some(function(e){return e[y||"value"]===Q})||eg.some(function(e){return e[G.value]===Q})?eg:[em(Q)].concat((0,eM.A)(eg))},[em,y,o,eg,Q,G]),ev=x.useMemo(function(){return b?function e(t){return(0,eM.A)(t).sort(function(e,t){return b(e,t,{searchValue:Q})}).map(function(t){return Array.isArray(t.options)?(0,D.A)((0,D.A)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})}(eh):eh},[eh,b,Q]),eb=x.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=fi(n,!1),i=a.label,l=a.value,c=a.options,s=a.groupLabel;return!function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(!n&&c in t){var a=t[s];void 0===a&&r&&(a=t.label),o.push({key:fo(t,o.length),group:!0,data:t,label:a}),e(t[c],!0)}else{var u=t[l];o.push({key:fo(t,o.length),groupOption:n,data:t,label:t[i],value:u})}})}(e,!1),o}(ev,{fieldNames:G,childrenAsData:K})},[ev,G,K]),ey=function(e){var t=er(e);if(el(t),F&&(t.length!==eu.length||t.some(function(e,t){var n;return(null==(n=eu[t])?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=L?t:t.map(function(e){return e.value}),r=t.map(function(e){return fl(ed(e.value))});F(q?n:n[0],q?r:r[0])}},e$=x.useState(null),ex=(0,eK.A)(e$,2),ew=ex[0],eC=ex[1],eE=x.useState(0),eS=(0,eK.A)(eE,2),ek=eS[0],eO=eS[1],eA=void 0!==O?O:"combobox"!==o,eI=x.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eO(t),i&&"combobox"===o&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eC(String(e))},[i,o]),eN=function(e,t,n){var r=function(){var t,n=ed(e);return[L?{label:null==n?void 0:n[G.label],value:e,key:null!=(t=null==n?void 0:n.key)?t:e}:e,fl(n)]};if(t&&p){var o=r(),a=(0,eK.A)(o,2);p(a[0],a[1])}else if(!t&&m&&"clear"!==n){var i=r(),l=(0,eK.A)(i,2);m(l[0],l[1])}},ej=fW(function(e,t){var n=!q||t.selected;ey(n?q?[].concat((0,eM.A)(eu),[e]):[e]:eu.filter(function(t){return t.value!==e})),eN(e,n),"combobox"===o?eC(""):(!fp||f)&&(Z(""),eC(""))}),eR=x.useMemo(function(){var e=!1!==I&&!1!==h;return(0,D.A)((0,D.A)({},J),{},{flattenOptions:eb,onActiveValue:eI,defaultActiveFirstOption:eA,onSelect:ej,menuItemSelectedIcon:A,rawValues:ep,fieldNames:G,virtual:e,direction:N,listHeight:R,listItemHeight:T,childrenAsData:K,maxCount:W,optionRender:C})},[W,J,eb,eI,eA,ej,A,ep,G,I,h,N,R,T,K,C]);return x.createElement(fs.Provider,{value:eR},x.createElement(fm,S({},_,{id:V,prefixCls:void 0===a?"rc-select":a,ref:t,omitDomProps:fV,mode:o,displayValues:ef,onDisplayValuesChange:function(e,t){ey(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){eN(e.value,!1,n)})},direction:N,searchValue:Q,onSearch:function(e,t){if(Z(e),eC(null),"submit"===t.source){var n=(e||"").trim();n&&(ey(Array.from(new Set([].concat((0,eM.A)(ep),[n])))),eN(n,!0),Z(""));return}"blur"!==t.source&&("combobox"===o&&ey(e),null==u||u(e))},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map(function(e){var t=et.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,eM.A)(ep),(0,eM.A)(t))));ey(n),n.forEach(function(e){eN(e,!0)})},dropdownMatchSelectWidth:h,OptionList:fP,emptyOptions:!eb.length,activeValue:ew,activeDescendantId:"".concat(V,"_list_").concat(ek)})))});function fK(e,t,n){return E()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}fq.Option=fh,fq.OptGroup=fg;let fX=rK("Empty",e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return(e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,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.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})(nR(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))});var fG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let fY=x.createElement(()=>{let[,e]=rq(),[t]=iK("Empty"),n=new n4(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(null==t?void 0:t.description)||"Empty"),x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(24 31.67)"},x.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),x.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"}),x.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)"}),x.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"}),x.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"})),x.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"}),x.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},x.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),x.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),fU=x.createElement(()=>{let[,e]=rq(),[t]=iK("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:i,shadowColor:l,contentColor:c}=(0,x.useMemo)(()=>({borderColor:new n4(n).onBackground(a).toHexString(),shadowColor:new n4(r).onBackground(a).toHexString(),contentColor:new n4(o).onBackground(a).toHexString()}),[n,r,o,a]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(null==t?void 0:t.description)||"Empty"),x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:i},x.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"}),x.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},null),fQ=e=>{var t;let{className:n,rootClassName:r,prefixCls:o,image:a,description:i,children:l,imageStyle:c,style:s,classNames:u,styles:d}=e,f=fG(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:m,className:g,style:h,classNames:v,styles:b,image:y}=eq("empty"),$=p("empty",o),[w,C,S]=fX($),[k]=iK("Empty"),O=void 0!==i?i:null==k?void 0:k.description,A="string"==typeof O?O:"empty",I=null!=(t=null!=a?a:y)?t:fY,N=null;return N="string"==typeof I?x.createElement("img",{draggable:!1,alt:A,src:I}):I,w(x.createElement("div",Object.assign({className:E()(C,S,$,g,{[`${$}-normal`]:I===fU,[`${$}-rtl`]:"rtl"===m},n,r,v.root,null==u?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},b.root),h),null==d?void 0:d.root),s)},f),x.createElement("div",{className:E()(`${$}-image`,v.image,null==u?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},c),b.image),null==d?void 0:d.image)},N),O&&x.createElement("div",{className:E()(`${$}-description`,v.description,null==u?void 0:u.description),style:Object.assign(Object.assign({},b.description),null==d?void 0:d.description)},O),l&&x.createElement("div",{className:E()(`${$}-footer`,v.footer,null==u?void 0:u.footer),style:Object.assign(Object.assign({},b.footer),null==d?void 0:d.footer)},l)))};fQ.PRESENTED_IMAGE_DEFAULT=fY,fQ.PRESENTED_IMAGE_SIMPLE=fU;let fZ=fQ,fJ=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,x.useContext)(eW),r=n("empty");switch(t){case"Table":case"List":return w().createElement(fZ,{image:fZ.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return w().createElement(fZ,{image:fZ.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return w().createElement(fZ,null)}},f0=(e,t,n)=>{var r,o;let a,{variant:i,[e]:l}=x.useContext(eW),c=x.useContext(sX),s=null==l?void 0:l.variant;a=void 0!==t?t:!1===n?"borderless":null!=(o=null!=(r=null!=c?c:s)?r:i)?o:"outlined";let u=eF.includes(a);return[a,u]},f1=function(e,t){let n;return e||{bottomLeft:Object.assign(Object.assign({},n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===t?"scroll":"visible",dynamicInset:!0}),{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]})}},f2=new na("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),f4=new na("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),f3=new na("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),f6=new na("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),f5={"slide-up":{inKeyframes:f2,outKeyframes:f4},"slide-down":{inKeyframes:f3,outKeyframes:f6},"slide-left":{inKeyframes:new na("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new na("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new na("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new na("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},f8=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=f5[t];return[ug(r,o,a,e.motionDurationMid),{[`
83
83
  ${r}-enter,
84
84
  ${r}-appear
85
85
  `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},f7=new na("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f9=new na("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),pe=new na("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pt=new na("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pn=new na("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pr=new na("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),po={"move-up":{inKeyframes:new na("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new na("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:f7,outKeyframes:f9},"move-left":{inKeyframes:pe,outKeyframes:pt},"move-right":{inKeyframes:pn,outKeyframes:pr}},pa=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=po[t];return[ug(r,o,a,e.motionDurationMid),{[`
@@ -114,7 +114,7 @@
114
114
  `]:{animationName:f3},[`${i}${l}bottomLeft`]:{animationName:f4},[`
115
115
  ${i}${l}topLeft,
116
116
  ${i}${l}topRight
117
- `]:{animationName:f6},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},pi(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"},nL),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},pi(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},f8(e,"slide-up"),f8(e,"slide-down"),pa(e,"move-up"),pa(e,"move-down")]})(e),{[`${t}-rtl`]:{direction:"rtl"}},ca(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]})(n),{[n.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},{"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},pd(n,{borderColor:n.colorBorder,hoverBorderHover:n.hoverBorderColor,activeBorderColor:n.activeBorderColor,activeOutlineColor:n.activeOutlineColor,color:n.colorText})),pf(n,{status:"error",borderColor:n.colorError,hoverBorderHover:n.colorErrorHover,activeBorderColor:n.colorError,activeOutlineColor:n.colorErrorOutline,color:n.colorError})),pf(n,{status:"warning",borderColor:n.colorWarning,hoverBorderHover:n.colorWarningHover,activeBorderColor:n.colorWarning,activeOutlineColor:n.colorWarningOutline,color:n.colorWarning})),{[`&${n.componentCls}-disabled`]:{[`&:not(${n.componentCls}-customize-input) ${n.componentCls}-selector`]:{background:n.colorBgContainerDisabled,color:n.colorTextDisabled}},[`&${n.componentCls}-multiple ${n.componentCls}-selection-item`]:{background:n.multipleItemBg,border:`${tg(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`}})}),{"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pp(n,{bg:n.colorFillTertiary,hoverBg:n.colorFillSecondary,activeBorderColor:n.activeBorderColor,color:n.colorText})),pm(n,{status:"error",bg:n.colorErrorBg,hoverBg:n.colorErrorBgHover,activeBorderColor:n.colorError,color:n.colorError})),pm(n,{status:"warning",bg:n.colorWarningBg,hoverBg:n.colorWarningBgHover,activeBorderColor:n.colorWarning,color:n.colorWarning})),{[`&${n.componentCls}-disabled`]:{[`&:not(${n.componentCls}-customize-input) ${n.componentCls}-selector`]:{borderColor:n.colorBorder,background:n.colorBgContainerDisabled,color:n.colorTextDisabled}},[`&${n.componentCls}-multiple ${n.componentCls}-selection-item`]:{background:n.colorBgContainer,border:`${tg(n.lineWidth)} ${n.lineType} ${n.colorSplit}`}})}),{"&-borderless":{[`${n.componentCls}-selector`]:{background:"transparent",border:`${tg(n.lineWidth)} ${n.lineType} transparent`},[`&${n.componentCls}-disabled`]:{[`&:not(${n.componentCls}-customize-input) ${n.componentCls}-selector`]:{color:n.colorTextDisabled}},[`&${n.componentCls}-multiple ${n.componentCls}-selection-item`]:{background:n.multipleItemBg,border:`${tg(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`},[`&${n.componentCls}-status-error`]:{[`${n.componentCls}-prefix, ${n.componentCls}-selection-item`]:{color:n.colorError}},[`&${n.componentCls}-status-warning`]:{[`${n.componentCls}-prefix, ${n.componentCls}-selection-item`]:{color:n.colorWarning}}}}),{"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},pg(n,{borderColor:n.colorBorder,hoverBorderHover:n.hoverBorderColor,activeBorderColor:n.activeBorderColor,activeOutlineColor:n.activeOutlineColor,color:n.colorText})),ph(n,{status:"error",borderColor:n.colorError,hoverBorderHover:n.colorErrorHover,activeBorderColor:n.colorError,activeOutlineColor:n.colorErrorOutline,color:n.colorError})),ph(n,{status:"warning",borderColor:n.colorWarning,hoverBorderHover:n.colorWarningHover,activeBorderColor:n.colorWarning,activeOutlineColor:n.colorWarningOutline,color:n.colorWarning})),{[`&${n.componentCls}-disabled`]:{[`&:not(${n.componentCls}-customize-input) ${n.componentCls}-selector`]:{color:n.colorTextDisabled}},[`&${n.componentCls}-multiple ${n.componentCls}-selection-item`]:{background:n.multipleItemBg,border:`${tg(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`}})})}]},e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:$}=e,x=2*l,w=2*r,C=Math.min(o-x,o-w),E=Math.min(a-x,a-w),S=Math.min(i-x,i-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:E,multipleItemHeightLG:S,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:$,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),pb={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"};var py=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:pb}))});let p$={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"};var px=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:p$}))});let pw={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"};var pC=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:pw}))});function pE({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:l,showSuffixIcon:c,feedbackIcon:s,showArrow:u,componentName:d}){let f=null!=t?t:x.createElement(ou,null),p=t=>null!==e||i||u?x.createElement(x.Fragment,null,!1!==c&&t,i&&s):null,m=null;if(void 0!==e)m=p(e);else if(o)m=p(x.createElement(aq,{spin:!0}));else{let e=`${l}-suffix`;m=({open:t,showSearch:n})=>t&&n?p(x.createElement(pC,{className:e})):p(x.createElement(px,{className:e}))}let g=null;g=void 0!==n?n:a?x.createElement(py,null):null;return{clearIcon:f,suffixIcon:m,itemIcon:g,removeIcon:void 0!==r?r:x.createElement(of,null)}}let pS=function(e){return w().useMemo(()=>{if(e)return(...t)=>w().createElement(sG,{space:!0},e.apply(void 0,t))},[e])};function pk(e,t){return void 0!==t?t:null!==e}var pO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let pA="SECRET_COMBOBOX_MODE_DO_NOT_USE",pI=x.forwardRef((e,t)=>{var n,r,o,a,i;let l,{prefixCls:c,bordered:s,className:u,rootClassName:d,getPopupContainer:f,popupClassName:p,dropdownClassName:m,listHeight:g=256,placement:h,listItemHeight:v,size:b,disabled:y,notFoundContent:$,status:w,builtinPlacements:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:k,direction:O,style:A,allowClear:I,variant:N,dropdownStyle:j,transitionName:M,tagRender:R,maxCount:P,prefix:T,dropdownRender:z,popupRender:B,onDropdownVisibleChange:D,onOpenChange:H,styles:L,classNames:F}=e,W=pO(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:_,getPrefixCls:V,renderEmpty:q,direction:K,virtual:X,popupMatchSelectWidth:G,popupOverflow:Y}=x.useContext(eW),{showSearch:U,style:Q,styles:Z,className:J,classNames:ee}=eq("select"),[,et]=rq(),en=null!=v?v:null==et?void 0:et.controlHeight,er=V("select",c),eo=V(),ea=null!=O?O:K,{compactSize:ei,compactItemClassnames:el}=i6(er,ea),[ec,es]=f0("select",N,s),eu=a$(er),[ed,ef,ep]=pv(er,eu),em=x.useMemo(()=>{let{mode:t}=e;if("combobox"!==t)return t===pA?"combobox":t},[e.mode]),eg="multiple"===em||"tags"===em,eh=pk(e.suffixIcon,e.showArrow),ev=null!=(n=null!=k?k:S)?n:G,eb=(null==(r=null==L?void 0:L.popup)?void 0:r.root)||(null==(o=Z.popup)?void 0:o.root)||j,ey=pS(B||z),{status:e$,hasFeedback:ex,isFormItemInput:ew,feedbackIcon:eC}=x.useContext(sq);l=void 0!==$?$:"combobox"===em?null:(null==q?void 0:q("Select"))||x.createElement(fJ,{componentName:"Select"});let{suffixIcon:eE,itemIcon:eS,removeIcon:ek,clearIcon:eO}=pE(Object.assign(Object.assign({},W),{multiple:eg,hasFeedback:ex,feedbackIcon:eC,showSuffixIcon:eh,prefixCls:er,componentName:"Select"})),eA=iX(W,["suffixIcon","itemIcon"]),eI=E()((null==(a=null==F?void 0:F.popup)?void 0:a.root)||(null==(i=null==ee?void 0:ee.popup)?void 0:i.root)||p||m,{[`${er}-dropdown-${ea}`]:"rtl"===ea},d,ee.root,null==F?void 0:F.root,ep,eu,ef),eN=i1(e=>{var t;return null!=(t=null!=b?b:ei)?t:e}),ej=x.useContext(id),eM=E()({[`${er}-lg`]:"large"===eN,[`${er}-sm`]:"small"===eN,[`${er}-rtl`]:"rtl"===ea,[`${er}-${ec}`]:es,[`${er}-in-form-item`]:ew},fK(er,w||e$,ex),el,J,u,ee.root,null==F?void 0:F.root,d,ep,eu,ef),eR=x.useMemo(()=>void 0!==h?h:"rtl"===ea?"bottomRight":"bottomLeft",[h,ea]),[eP]=aY("SelectLike",null==eb?void 0:eb.zIndex);return ed(x.createElement(fq,Object.assign({ref:t,virtual:X,showSearch:U},eA,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Z.root),null==L?void 0:L.root),Q),A),dropdownMatchSelectWidth:ev,transitionName:iV(eo,"slide-up",M),builtinPlacements:f1(C,Y),listHeight:g,listItemHeight:en,mode:em,prefixCls:er,placement:eR,direction:ea,prefix:T,suffixIcon:eE,menuItemSelectedIcon:eS,removeIcon:ek,allowClear:!0===I?{clearIcon:eO}:I,notFoundContent:l,className:eM,getPopupContainer:f||_,dropdownClassName:eI,disabled:null!=y?y:ej,dropdownStyle:Object.assign(Object.assign({},eb),{zIndex:eP}),maxCount:eg?P:void 0,tagRender:eg?R:void 0,dropdownRender:ey,onDropdownVisibleChange:H||D})))}),pN=df(pI,"dropdownAlign");pI.SECRET_COMBOBOX_MODE_DO_NOT_USE=pA,pI.Option=fh,pI.OptGroup=fg,pI._InternalPanelDoNotUseOrYouWillBeFired=pN;let pj=pI,{Option:pM}=pj;function pR(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}let pP=x.forwardRef((e,t)=>{var n,r;let o,a,{prefixCls:i,className:l,popupClassName:c,dropdownClassName:s,children:u,dataSource:d,dropdownStyle:f,dropdownRender:p,popupRender:m,onDropdownVisibleChange:g,onOpenChange:h,styles:v,classNames:b}=e,y=j(u),$=(null==(n=null==v?void 0:v.popup)?void 0:n.root)||f,w=(null==(r=null==b?void 0:b.popup)?void 0:r.root)||c||s;1===y.length&&x.isValidElement(y[0])&&!pR(y[0])&&([o]=y);let C=o?()=>o:void 0;a=y.length&&pR(y[0])?u:d?d.map(e=>{if(x.isValidElement(e))return e;switch(typeof e){case"string":return x.createElement(pM,{key:e,value:e},e);case"object":{let{value:t}=e;return x.createElement(pM,{key:t,value:t},e.text)}default:return}}):[];let{getPrefixCls:S}=x.useContext(eW),k=S("select",i),[O]=aY("SelectLike",null==$?void 0:$.zIndex);return x.createElement(pj,Object.assign({ref:t,suffixIcon:null},iX(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:k,classNames:{popup:{root:w},root:null==b?void 0:b.root},styles:{popup:{root:Object.assign(Object.assign({},$),{zIndex:O})},root:null==v?void 0:v.root},className:E()(`${k}-auto-complete`,l),mode:pj.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:m||p,onOpenChange:h||g,getInputElement:C}),a)}),{Option:pT}=pj,pz=df(pP,"dropdownAlign",e=>iX(e,["visible"]));pP.Option=pT,pP._InternalPanelDoNotUseOrYouWillBeFired=pz;let pB=pP,pD=(e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)},pH=(e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)},pL=["xxl","xl","lg","md","sm","xs"],pF=(e,t)=>{if(t){for(let n of pL)if(e[n]&&(null==t?void 0:t[n])!==void 0)return t[n]}},pW=()=>w().useReducer(e=>e+1,0),p_=function(e=!0,t={}){let n=(0,x.useRef)(t),[,r]=pW(),o=(()=>{let e,[,t]=rq(),n=((e=[].concat(pL).reverse()).forEach((n,r)=>{let o=n.toUpperCase(),a=`screen${o}Min`,i=`screen${o}`;if(!(t[a]<=t[i]))throw Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(r<e.length-1){let n=`screen${o}Max`;if(!(t[i]<=t[n]))throw Error(`${i}<=${n} fails : !(${t[i]}<=${t[n]})`);let a=e[r+1].toUpperCase(),l=`screen${a}Min`;if(!(t[n]<=t[l]))throw Error(`${n}<=${l} fails : !(${t[n]}<=${t[l]})`)}}),{xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`});return w().useMemo(()=>{let e=new Map,t=-1,r={};return{responsiveMap:n,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(n).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},o=window.matchMedia(t);pD(o,n),this.matchHandlers[t]={mql:o,listener:n},n(o)})},unregister(){Object.values(n).forEach(e=>{let t=this.matchHandlers[e];pH(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[n])})();return t$(()=>{let t=o.subscribe(t=>{n.current=t,e&&r()});return()=>o.unsubscribe(t)},[]),n.current},pV=x.createContext({}),pq=rK("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=nR(e,{avatarBg:n,avatarColor:t});return[(e=>{let{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:l,containerSizeSM:c,textFontSize:s,textFontSizeLG:u,textFontSizeSM:d,iconFontSize:f,iconFontSizeLG:p,iconFontSizeSM:m,borderRadius:g,borderRadiusLG:h,borderRadiusSM:v,lineWidth:b,lineType:y}=e,$=(e,t,o,a)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${n}-square`]:{borderRadius:a},[`&${n}-icon`]:{fontSize:o,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${tg(b)} ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),$(i,s,f,g)),{"&-lg":Object.assign({},$(l,u,p,h)),"&-sm":Object.assign({},$(c,d,m,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}})(r),(e=>{let{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}})(r)]},e=>{let{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:l,marginXS:c,marginXXS:s,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((a+i)/2),iconFontSizeLG:l,iconFontSizeSM:o,groupSpace:s,groupOverlapping:-c,groupBorderColor:u}});var pK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let pX=x.forwardRef((e,t)=>{let n,{prefixCls:r,shape:o,size:a,src:i,srcSet:l,icon:c,className:s,rootClassName:u,style:d,alt:f,draggable:p,children:m,crossOrigin:g,gap:h=4,onError:v}=e,b=pK(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[y,$]=x.useState(1),[w,C]=x.useState(!1),[S,k]=x.useState(!0),O=x.useRef(null),A=x.useRef(null),I=G(t,O),{getPrefixCls:N,avatar:j}=x.useContext(eW),M=x.useContext(pV),R=()=>{if(!A.current||!O.current)return;let e=A.current.offsetWidth,t=O.current.offsetWidth;0!==e&&0!==t&&2*h<t&&$(t-2*h<e?(t-2*h)/e:1)};x.useEffect(()=>{C(!0)},[]),x.useEffect(()=>{k(!0),$(1)},[i]),x.useEffect(R,[h]);let P=i1(e=>{var t,n;return null!=(n=null!=(t=null!=a?a:null==M?void 0:M.size)?t:e)?n:"default"}),T=p_(Object.keys("object"==typeof P&&P||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e))),z=x.useMemo(()=>{if("object"!=typeof P)return{};let e=P[pL.find(e=>T[e])];return e?{width:e,height:e,fontSize:e&&(c||m)?e/2:18}:{}},[T,P,c,m]),B=N("avatar",r),D=a$(B),[H,L,F]=pq(B,D),W=E()({[`${B}-lg`]:"large"===P,[`${B}-sm`]:"small"===P}),_=x.isValidElement(i),V=o||(null==M?void 0:M.shape)||"circle",q=E()(B,W,null==j?void 0:j.className,`${B}-${V}`,{[`${B}-image`]:_||i&&S,[`${B}-icon`]:!!c},F,D,s,u,L),K="number"==typeof P?{width:P,height:P,fontSize:c?P/2:18}:{};if("string"==typeof i&&S)n=x.createElement("img",{src:i,draggable:p,srcSet:l,onError:()=>{!1!==(null==v?void 0:v())&&k(!1)},alt:f,crossOrigin:g});else if(_)n=i;else if(c)n=c;else if(w||1!==y){let e=`scale(${y})`;n=x.createElement(ej,{onResize:R},x.createElement("span",{className:`${B}-string`,ref:A,style:{msTransform:e,WebkitTransform:e,transform:e}},m))}else n=x.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:A},m);return H(x.createElement("span",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign(Object.assign({},K),z),null==j?void 0:j.style),d),className:q,ref:I}),n))}),pG=e=>e?"function"==typeof e?e():e:null;function pY(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,l=e.style;return x.createElement("div",{className:E()("".concat(n,"-content"),i),style:l},x.createElement("div",{className:E()("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var pU={shiftX:64,adjustY:1},pQ={adjustX:1,shiftY:!0},pZ=[0,0],pJ={left:{points:["cr","cl"],overflow:pQ,offset:[-4,0],targetOffset:pZ},right:{points:["cl","cr"],overflow:pQ,offset:[4,0],targetOffset:pZ},top:{points:["bc","tc"],overflow:pU,offset:[0,-4],targetOffset:pZ},bottom:{points:["tc","bc"],overflow:pU,offset:[0,4],targetOffset:pZ},topLeft:{points:["bl","tl"],overflow:pU,offset:[0,-4],targetOffset:pZ},leftTop:{points:["tr","tl"],overflow:pQ,offset:[-4,0],targetOffset:pZ},topRight:{points:["br","tr"],overflow:pU,offset:[0,-4],targetOffset:pZ},rightTop:{points:["tl","tr"],overflow:pQ,offset:[4,0],targetOffset:pZ},bottomRight:{points:["tr","br"],overflow:pU,offset:[0,4],targetOffset:pZ},rightBottom:{points:["bl","br"],overflow:pQ,offset:[4,0],targetOffset:pZ},bottomLeft:{points:["tl","bl"],overflow:pU,offset:[0,4],targetOffset:pZ},leftBottom:{points:["br","bl"],overflow:pQ,offset:[-4,0],targetOffset:pZ}},p0=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"];let p1=(0,x.forwardRef)(function(e,t){var n,r,o,a=e.overlayClassName,i=e.trigger,l=e.mouseEnterDelay,c=e.mouseLeaveDelay,s=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,m=e.afterVisibleChange,g=e.transitionName,h=e.animation,v=e.motion,b=e.placement,y=e.align,$=e.destroyTooltipOnHide,w=e.defaultVisible,C=e.getTooltipContainer,k=e.overlayInnerStyle,O=(e.arrowContent,e.overlay),A=e.id,I=e.showArrow,N=e.classNames,j=e.styles,M=(0,r3.A)(e,p0),R=cI(A),P=(0,x.useRef)(null);(0,x.useImperativeHandle)(t,function(){return P.current});var T=(0,D.A)({},M);return"visible"in e&&(T.popupVisible=e.visible),x.createElement(fe,S({popupClassName:E()(a,null==N?void 0:N.root),prefixCls:d,popup:function(){return x.createElement(pY,{key:"content",prefixCls:d,id:R,bodyClassName:null==N?void 0:N.body,overlayInnerStyle:(0,D.A)((0,D.A)({},k),null==j?void 0:j.body)},O)},action:void 0===i?["hover"]:i,builtinPlacements:pJ,popupPlacement:void 0===b?"right":b,ref:P,popupAlign:void 0===y?{}:y,getPopupContainer:C,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:h,popupMotion:v,defaultPopupVisible:w,autoDestroy:void 0!==$&&$,mouseLeaveDelay:void 0===c?.1:c,popupStyle:(0,D.A)((0,D.A)({},s),null==j?void 0:j.root),mouseEnterDelay:void 0===l?0:l,arrow:void 0===I||I},T),(r=(null==(n=x.Children.only(f))?void 0:n.props)||{},o=(0,D.A)((0,D.A)({},r),{},{"aria-describedby":O?R:null}),x.cloneElement(f,o)))});function p2(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=r/Math.sqrt(2),i=o-r*(1-1/Math.sqrt(2)),l=o-1/Math.sqrt(2)*n,c=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,s=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),u=r*(Math.sqrt(2)-1),d=`polygon(${u}px 100%, 50% ${u}px, ${2*o-u}px 100%, ${u}px 100%)`;return{arrowShadowWidth:s,arrowPath:`path('M 0 ${o} A ${r} ${r} 0 0 0 ${a} ${i} L ${l} ${c} A ${n} ${n} 0 0 1 ${2*o-l} ${c} L ${2*o-a} ${i} A ${r} ${r} 0 0 0 ${2*o-0} ${o} Z')`,arrowPolygon:d}}let p4=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${tg(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function p3(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function p6(e,t,n){var r,o,a,i,l,c,s,u;let{componentCls:d,boxShadowPopoverArrow:f,arrowOffsetVertical:p,arrowOffsetHorizontal:m}=e,{arrowDistance:g=0,arrowPlacement:h={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({[`${d}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},p4(e,t,f)),{"&:before":{background:t}})]},(r=!!h.top,o={[`&-placement-top > ${d}-arrow,&-placement-topLeft > ${d}-arrow,&-placement-topRight > ${d}-arrow`]:{bottom:g,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${d}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":m,[`> ${d}-arrow`]:{left:{_skip_check_:!0,value:m}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${tg(m)})`,[`> ${d}-arrow`]:{right:{_skip_check_:!0,value:m}}}},r?o:{})),(a=!!h.bottom,i={[`&-placement-bottom > ${d}-arrow,&-placement-bottomLeft > ${d}-arrow,&-placement-bottomRight > ${d}-arrow`]:{top:g,transform:"translateY(-100%)"},[`&-placement-bottom > ${d}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":m,[`> ${d}-arrow`]:{left:{_skip_check_:!0,value:m}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${tg(m)})`,[`> ${d}-arrow`]:{right:{_skip_check_:!0,value:m}}}},a?i:{})),(l=!!h.left,c={[`&-placement-left > ${d}-arrow,&-placement-leftTop > ${d}-arrow,&-placement-leftBottom > ${d}-arrow`]:{right:{_skip_check_:!0,value:g},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${d}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${d}-arrow`]:{top:p},[`&-placement-leftBottom > ${d}-arrow`]:{bottom:p}},l?c:{})),(s=!!h.right,u={[`&-placement-right > ${d}-arrow,&-placement-rightTop > ${d}-arrow,&-placement-rightBottom > ${d}-arrow`]:{left:{_skip_check_:!0,value:g},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${d}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${d}-arrow`]:{top:p},[`&-placement-rightBottom > ${d}-arrow`]:{bottom:p}},s?u:{}))}}let p5={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},p8={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},p7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function p9(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,c={},s=p3({contentRadius:a,limitVerticalRadius:!0});return Object.keys(p5).forEach(e=>{let a=Object.assign(Object.assign({},r&&p8[e]||p5[e]),{offset:[0,0],dynamicInset:!0});switch(c[e]=a,p7.has(e)&&(a.autoArrow=!1),e){case"top":case"topLeft":case"topRight":a.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":a.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":a.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":a.offset[0]=l+o}if(r)switch(e){case"topLeft":case"bottomLeft":a.offset[0]=-s.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":a.offset[0]=s.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":a.offset[1]=-(2*s.arrowOffsetHorizontal)+l;break;case"leftBottom":case"rightBottom":a.offset[1]=2*s.arrowOffsetHorizontal-l}a.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,s,t,n),i&&(a.htmlRegion="visibleFirst")}),c}function me(e,t){return le.reduce((n,r)=>{let o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}let mt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},p3({contentRadius:e.borderRadius,limitVerticalRadius:!0})),p2(nR(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),mn=(e,t=!0)=>rK("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[(e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:c,boxShadowSecondary:s,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(i).add(p).add(f).equal(),g=t(i).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:c,padding:`${tg(e.calc(u).div(2).equal())} ${tg(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:s,boxSizing:"border-box"},"&-placement-topLeft,&-placement-topRight,&-placement-bottomLeft,&-placement-bottomRight":{minWidth:m},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${n}-inner`]:{borderRadius:e.min(i,8)}},[`${n}-content`]:{position:"relative"}}),me(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},p6(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]})(nR(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),uk(e,"zoom-big-fast")]},mt,{resetStyle:!1,injectStyle:t})(e),mr=le.map(e=>`${e}-inverse`),mo=["success","processing","error","default","warning"];function ma(e,t=!0){return t?[].concat((0,eM.A)(mr),(0,eM.A)(le)).includes(e):le.includes(e)}function mi(e,t){let n=ma(t),r=E()({[`${e}-${t}`]:t&&n}),o={},a={},i=lG(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255;return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=l<.5?"#FFF":"#000",a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}var ml=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mc=x.forwardRef((e,t)=>{var n,r;let{prefixCls:o,openClassName:a,getTooltipContainer:i,color:l,overlayInnerStyle:c,children:s,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:p,arrow:m=!0,title:g,overlay:h,builtinPlacements:v,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0,motion:$,getPopupContainer:w,placement:C="top",mouseEnterDelay:S=.1,mouseLeaveDelay:k=.1,overlayStyle:O,rootClassName:A,overlayClassName:I,styles:N,classNames:j}=e,M=ml(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),R=!!m,[,P]=rq(),{getPopupContainer:T,getPrefixCls:z,direction:B,className:D,style:H,classNames:L,styles:F}=eq("tooltip"),W=aj("Tooltip"),_=x.useRef(null),V=()=>{var e;null==(e=_.current)||e.forceAlign()};x.useImperativeHandle(t,()=>{var e,t;return{forceAlign:V,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:null==(e=_.current)?void 0:e.nativeElement,popupElement:null==(t=_.current)?void 0:t.popupElement}});let[q,K]=ny(!1,{value:null!=(n=e.open)?n:e.visible,defaultValue:null!=(r=e.defaultOpen)?r:e.defaultVisible}),X=!g&&!h&&0!==g,G=x.useMemo(()=>{var e,t;let n=b;return"object"==typeof m&&(n=null!=(t=null!=(e=m.pointAtCenter)?e:m.arrowPointAtCenter)?t:b),v||p9({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:R?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0})},[b,m,v,P]),Y=x.useMemo(()=>0===g?g:h||g||"",[h,g]),U=x.createElement(sG,{space:!0},"function"==typeof Y?Y():Y),Q=z("tooltip",o),Z=z(),J=e["data-popover-inject"],ee=q;"open"in e||"visible"in e||!X||(ee=!1);let et=x.isValidElement(s)&&!o8(s)?s:x.createElement("span",null,s),en=et.props,er=en.className&&"string"!=typeof en.className?en.className:E()(en.className,a||`${Q}-open`),[eo,ea,ei]=mn(Q,!J),el=mi(Q,l),ec=el.arrowStyle,es=E()(I,{[`${Q}-rtl`]:"rtl"===B},el.className,A,ea,ei,D,L.root,null==j?void 0:j.root),eu=E()(L.body,null==j?void 0:j.body),[ed,ef]=aY("Tooltip",M.zIndex),ep=x.createElement(p1,Object.assign({},M,{zIndex:ed,showArrow:R,placement:C,mouseEnterDelay:S,mouseLeaveDelay:k,prefixCls:Q,classNames:{root:es,body:eu},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ec),F.root),H),O),null==N?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},F.body),c),null==N?void 0:N.body),el.overlayStyle)},getTooltipContainer:w||i||T,ref:_,builtinPlacements:G,overlay:U,visible:ee,onVisibleChange:t=>{var n,r;K(!X&&t),X||(null==(n=e.onOpenChange)||n.call(e,t),null==(r=e.onVisibleChange)||r.call(e,t))},afterVisibleChange:null!=u?u:d,arrowContent:x.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:iV(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=p?p:!!f}),ee?o9(et,{className:er}):et);return eo(x.createElement(aK.Provider,{value:ef},ep))});mc._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=x.useContext(eW),c=l("tooltip",t),[s,u,d]=mn(c),f=mi(c,a),p=f.arrowStyle,m=Object.assign(Object.assign({},i),f.overlayStyle),g=E()(u,d,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return s(x.createElement("div",{className:g,style:p},x.createElement("div",{className:`${c}-arrow`}),x.createElement(pY,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:m}),o)))};let ms=mc,mu=rK("Popover",e=>{let{colorBgElevated:t,colorText:n}=e,r=nR(e,{popoverBg:t,popoverColor:n});return[(e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},nF(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},p6(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]})(r),(e=>{let{componentCls:t}=e;return{[t]:le.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}})(r),uk(r,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},p2(e)),p3({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:12*!a,titleMarginBottom:a?0:c,titlePadding:a?`${f/2}px ${o}px ${f/2-t}px`:0,titleBorderBottom:a?`${t}px ${s} ${u}`:"none",innerContentPadding:a?`${d}px ${o}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var md=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mf=({title:e,content:t,prefixCls:n})=>e||t?x.createElement(x.Fragment,null,e&&x.createElement("div",{className:`${n}-title`},e),t&&x.createElement("div",{className:`${n}-inner-content`},t)):null,mp=e=>{let{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:l,children:c}=e,s=pG(i),u=pG(l),d=E()(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return x.createElement("div",{className:d,style:o},x.createElement("div",{className:`${n}-arrow`}),x.createElement(pY,Object.assign({},e,{className:t,prefixCls:n}),c||x.createElement(mf,{prefixCls:n,title:s,content:u})))},mm=e=>{let{prefixCls:t,className:n}=e,r=md(e,["prefixCls","className"]),{getPrefixCls:o}=x.useContext(eW),a=o("popover",t),[i,l,c]=mu(a);return i(x.createElement(mp,Object.assign({},r,{prefixCls:a,hashId:l,className:E()(n,c)})))};var mg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mh=x.forwardRef((e,t)=>{var n,r;let{prefixCls:o,title:a,content:i,overlayClassName:l,placement:c="top",trigger:s="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:p,overlayStyle:m={},styles:g,classNames:h}=e,v=mg(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:y,style:$,classNames:w,styles:C}=eq("popover"),S=b("popover",o),[k,O,A]=mu(S),I=b(),N=E()(l,O,A,y,w.root,null==h?void 0:h.root),j=E()(w.body,null==h?void 0:h.body),[M,R]=ny(!1,{value:null!=(n=e.open)?n:e.visible,defaultValue:null!=(r=e.defaultOpen)?r:e.defaultVisible}),P=(e,t)=>{R(e,!0),null==p||p(e,t)},T=pG(a),z=pG(i);return k(x.createElement(ms,Object.assign({placement:c,trigger:s,mouseEnterDelay:d,mouseLeaveDelay:f},v,{prefixCls:S,classNames:{root:N,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),$),m),null==g?void 0:g.root),body:Object.assign(Object.assign({},C.body),null==g?void 0:g.body)},ref:t,open:M,onOpenChange:e=>{P(e)},overlay:T||z?x.createElement(mf,{prefixCls:S,title:T,content:z}):null,transitionName:iV(I,"zoom-big",v.transitionName),"data-popover-inject":!0}),o9(u,{onKeyDown:e=>{var t,n;(0,x.isValidElement)(u)&&(null==(n=null==u?void 0:(t=u.props).onKeyDown)||n.call(t,e)),e.keyCode===aM.ESC&&P(!1,e)}})))});mh._InternalPanelDoNotUseOrYouWillBeFired=mm;let mv=mh,mb=e=>{let{size:t,shape:n}=x.useContext(pV),r=x.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return x.createElement(pV.Provider,{value:r},e.children)};pX.Group=e=>{var t,n,r,o;let{getPrefixCls:a,direction:i}=x.useContext(eW),{prefixCls:l,className:c,rootClassName:s,style:u,maxCount:d,maxStyle:f,size:p,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:h,children:v,max:b}=e,y=a("avatar",l),$=`${y}-group`,w=a$(y),[C,S,k]=pq(y,w),O=E()($,{[`${$}-rtl`]:"rtl"===i},k,w,c,s,S),A=j(v).map((e,t)=>o9(e,{key:`avatar-key-${t}`})),I=(null==b?void 0:b.count)||d,N=A.length;if(I&&I<N){let e=A.slice(0,I),a=A.slice(I,N),i=(null==b?void 0:b.style)||f,l=(null==(t=null==b?void 0:b.popover)?void 0:t.trigger)||h||"hover",c=(null==(n=null==b?void 0:b.popover)?void 0:n.placement)||g||"top",s=Object.assign(Object.assign({content:a},null==b?void 0:b.popover),{classNames:{root:E()(`${$}-popover`,null==(o=null==(r=null==b?void 0:b.popover)?void 0:r.classNames)?void 0:o.root)},placement:c,trigger:l});return e.push(x.createElement(mv,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},s),x.createElement(pX,{style:i},`+${N-I}`))),C(x.createElement(mb,{shape:m,size:p},x.createElement("div",{className:O,style:u},e)))}return C(x.createElement(mb,{shape:m,size:p},x.createElement("div",{className:O,style:u},A)))};let my=pX,m$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};var mx=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:m$}))});let mw=rK("BackTop",e=>{let{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:r,colorText:o,controlHeightLG:a,calc:i}=e,l=nR(e,{backTopBackground:n,backTopColor:r,backTopHoverBackground:o,backTopFontSize:t,backTopSize:a,backTopBlockEnd:i(a).mul(1.25).equal(),backTopInlineEnd:i(a).mul(2.5).equal(),backTopInlineEndMD:i(a).mul(1.5).equal(),backTopInlineEndXS:i(a).mul(.5).equal()});return[(e=>{let{componentCls:t,backTopFontSize:n,backTopSize:r,zIndexPopup:o}=e;return{[t]:Object.assign(Object.assign({},nF(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:o,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:r,height:r,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:r,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:tg(r)}})}})(l),(e=>{let{componentCls:t,screenMD:n,screenXS:r,backTopInlineEndMD:o,backTopInlineEndXS:a}=e;return{[`@media (max-width: ${tg(n)})`]:{[t]:{insetInlineEnd:o}},[`@media (max-width: ${tg(r)})`]:{[t]:{insetInlineEnd:a}}}})(l)]},e=>({zIndexPopup:e.zIndexBase+10})),mC=e=>{let{prefixCls:t,className:n,rootClassName:r,visibilityHeight:o=400,target:a,onClick:i,duration:l=450}=e,[c,s]=x.useState(0===o),u=x.useRef(null),d=()=>{var e;return(null==(e=u.current)?void 0:e.ownerDocument)||window},f=eD(e=>{s(ab(e.target)>=o)});x.useEffect(()=>{let e=(a||d)();return f({target:e}),null==e||e.addEventListener("scroll",f),()=>{f.cancel(),null==e||e.removeEventListener("scroll",f)}},[a]);let{getPrefixCls:p,direction:m}=x.useContext(eW),g=p("back-top",t),h=p(),[v,b,y]=mw(g),$=E()(b,y,g,{[`${g}-rtl`]:"rtl"===m},n,r),w=iX(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),C=x.createElement("div",{className:`${g}-content`},x.createElement("div",{className:`${g}-icon`},x.createElement(mx,null)));return v(x.createElement("div",Object.assign({},w,{className:$,onClick:e=>{ay(0,{getContainer:a||d,duration:l}),null==i||i(e)},ref:u}),x.createElement(oG,{visible:c,motionName:`${h}-fade`},({className:t})=>o9(e.children||C,({className:e})=>({className:E()(t,e)})))))},mE=new na("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),mS=new na("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),mk=new na("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),mO=new na("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),mA=new na("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),mI=new na("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),mN=e=>{let{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=e.colorTextLightSolid,i=e.colorError,l=e.colorErrorHover;return nR(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:a,badgeColor:i,badgeColorHover:l,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},mj=e=>{let{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},mM=rK("Badge",e=>(e=>{let{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:a,textFontSizeSM:i,statusSize:l,dotSize:c,textFontWeight:s,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,m=`${r}-scroll-number`,g=me(e,(e,{darkColor:n})=>({[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:s,fontSize:a,lineHeight:tg(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${tg(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:i,lineHeight:tg(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${tg(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${tg(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:mI,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:mE,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mS,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:mk,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mO,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:mA,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(mN(e)),mj),mR=rK(["Badge","Ribbon"],e=>(e=>{let{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=me(e,(e,{darkColor:t})=>({[`&${i}-color-${e}`]:{background:t,color:t}}));return{[l]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{position:"absolute",top:r,padding:`0 ${tg(e.paddingXS)}`,color:e.colorPrimary,lineHeight:tg(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${tg(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(mN(e)),mj),mP=e=>{let t,{prefixCls:n,value:r,current:o,offset:a=0}=e;return a&&(t={position:"absolute",top:`${a}00%`,left:0}),x.createElement("span",{style:t,className:E()(`${n}-only-unit`,{current:o})},r)},mT=e=>{let t,n,{prefixCls:r,count:o,value:a}=e,i=Number(a),l=Math.abs(o),[c,s]=x.useState(i),[u,d]=x.useState(l),f=()=>{s(i),d(l)};if(x.useEffect(()=>{let e=setTimeout(f,1e3);return()=>clearTimeout(e)},[i]),c===i||Number.isNaN(i)||Number.isNaN(c))t=[x.createElement(mP,Object.assign({},e,{key:i,current:!0}))],n={transition:"none"};else{t=[];let r=i+10,o=[];for(let e=i;e<=r;e+=1)o.push(e);let a=u<l?1:-1,s=o.findIndex(e=>e%10===c);t=(a<0?o.slice(0,s+1):o.slice(s)).map((t,n)=>x.createElement(mP,Object.assign({},e,{key:t,value:t%10,offset:a<0?n-s:n,current:n===s}))),n={transform:`translateY(${-function(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}(c,i,a)}00%)`}}return x.createElement("span",{className:`${r}-only`,style:n,onTransitionEnd:f},t)};var mz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mB=x.forwardRef((e,t)=>{let{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:l,show:c,component:s="sup",children:u}=e,d=mz(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=x.useContext(eW),p=f("scroll-number",n),m=Object.assign(Object.assign({},d),{"data-show":c,style:i,className:E()(p,o,a),title:l}),g=r;if(r&&Number(r)%1==0){let e=String(r).split("");g=x.createElement("bdi",null,e.map((t,n)=>x.createElement(mT,{prefixCls:p,count:Number(r),value:t,key:e.length-n})))}return((null==i?void 0:i.borderColor)&&(m.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u)?o9(u,e=>({className:E()(`${p}-custom-component`,null==e?void 0:e.className,a)})):x.createElement(s,Object.assign({},m,{ref:t}),g)});var mD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mH=x.forwardRef((e,t)=>{var n,r,o,a,i;let{prefixCls:l,scrollNumberPrefixCls:c,children:s,status:u,text:d,color:f,count:p=null,overflowCount:m=99,dot:g=!1,size:h="default",title:v,offset:b,style:y,className:$,rootClassName:w,classNames:C,styles:S,showZero:k=!1}=e,O=mD(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:A,direction:I,badge:N}=x.useContext(eW),j=A("badge",l),[M,R,P]=mM(j),T=p>m?`${m}+`:p,z="0"===T||0===T||"0"===d||0===d,B=null===p||z&&!k,D=(null!=u||null!=f)&&B,H=null!=u||!z,L=g&&!z,F=L?"":T,W=(0,x.useMemo)(()=>((null==F||""===F)&&(null==d||""===d)||z&&!k)&&!L,[F,z,k,L,d]),_=(0,x.useRef)(p);W||(_.current=p);let V=_.current,q=(0,x.useRef)(F);W||(q.current=F);let K=q.current,X=(0,x.useRef)(L);W||(X.current=L);let G=(0,x.useMemo)(()=>{if(!b)return Object.assign(Object.assign({},null==N?void 0:N.style),y);let e={marginTop:b[1]};return"rtl"===I?e.left=Number.parseInt(b[0],10):e.right=-Number.parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},e),null==N?void 0:N.style),y)},[I,b,y,null==N?void 0:N.style]),Y=null!=v?v:"string"==typeof V||"number"==typeof V?V:void 0,U=!W&&(0===d?k:!!d&&!0!==d),Q=U?x.createElement("span",{className:`${j}-status-text`},d):null,Z=V&&"object"==typeof V?o9(V,e=>({style:Object.assign(Object.assign({},G),e.style)})):void 0,J=ma(f,!1),ee=E()(null==C?void 0:C.indicator,null==(n=null==N?void 0:N.classNames)?void 0:n.indicator,{[`${j}-status-dot`]:D,[`${j}-status-${u}`]:!!u,[`${j}-color-${f}`]:J}),et={};f&&!J&&(et.color=f,et.background=f);let en=E()(j,{[`${j}-status`]:D,[`${j}-not-a-wrapper`]:!s,[`${j}-rtl`]:"rtl"===I},$,w,null==N?void 0:N.className,null==(r=null==N?void 0:N.classNames)?void 0:r.root,null==C?void 0:C.root,R,P);if(!s&&D&&(d||H||!B)){let e=G.color;return M(x.createElement("span",Object.assign({},O,{className:en,style:Object.assign(Object.assign(Object.assign({},null==S?void 0:S.root),null==(o=null==N?void 0:N.styles)?void 0:o.root),G)}),x.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},null==S?void 0:S.indicator),null==(a=null==N?void 0:N.styles)?void 0:a.indicator),et)}),U&&x.createElement("span",{style:{color:e},className:`${j}-status-text`},d)))}return M(x.createElement("span",Object.assign({ref:t},O,{className:en,style:Object.assign(Object.assign({},null==(i=null==N?void 0:N.styles)?void 0:i.root),null==S?void 0:S.root)}),s,x.createElement(oG,{visible:!W,motionName:`${j}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:e})=>{var t,n;let r=A("scroll-number",c),o=X.current,a=E()(null==C?void 0:C.indicator,null==(t=null==N?void 0:N.classNames)?void 0:t.indicator,{[`${j}-dot`]:o,[`${j}-count`]:!o,[`${j}-count-sm`]:"small"===h,[`${j}-multiple-words`]:!o&&K&&K.toString().length>1,[`${j}-status-${u}`]:!!u,[`${j}-color-${f}`]:J}),i=Object.assign(Object.assign(Object.assign({},null==S?void 0:S.indicator),null==(n=null==N?void 0:N.styles)?void 0:n.indicator),G);return f&&!J&&((i=i||{}).background=f),x.createElement(mB,{prefixCls:r,show:!W,motionClassName:e,className:a,count:K,title:Y,style:i,key:"scrollNumber"},Z)}),Q))});mH.Ribbon=e=>{let{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:l="end",rootClassName:c}=e,{getPrefixCls:s,direction:u}=x.useContext(eW),d=s("ribbon",n),f=`${d}-wrapper`,[p,m,g]=mR(d,f),h=ma(o,!1),v=E()(d,`${d}-placement-${l}`,{[`${d}-rtl`]:"rtl"===u,[`${d}-color-${o}`]:h},t),b={},y={};return o&&!h&&(b.background=o,y.color=o),p(x.createElement("div",{className:E()(f,c,m,g)},a,x.createElement("div",{className:E()(v,m),style:Object.assign(Object.assign({},b),r)},x.createElement("span",{className:`${d}-text`},i),x.createElement("div",{className:`${d}-corner`,style:y}))))};let mL=mH,mF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var mW=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:mF}))}),m_=aM.ESC,mV=aM.TAB,mq=(0,x.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=(0,x.useMemo)(function(){return"function"==typeof n?n():n},[n]),i=G(t,Z(a));return w().createElement(w().Fragment,null,r&&w().createElement("div",{className:"".concat(o,"-arrow")}),w().cloneElement(a,{ref:U(a)?i:void 0}))}),mK={adjustX:1,adjustY:1},mX=[0,0];let mG={topLeft:{points:["bl","tl"],overflow:mK,offset:[0,-4],targetOffset:mX},top:{points:["bc","tc"],overflow:mK,offset:[0,-4],targetOffset:mX},topRight:{points:["br","tr"],overflow:mK,offset:[0,-4],targetOffset:mX},bottomLeft:{points:["tl","bl"],overflow:mK,offset:[0,4],targetOffset:mX},bottom:{points:["tc","bc"],overflow:mK,offset:[0,4],targetOffset:mX},bottomRight:{points:["tr","br"],overflow:mK,offset:[0,4],targetOffset:mX}};var mY=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];let mU=w().forwardRef(function(e,t){var n,r,o,a,i,l,c,s,u,d,f,p,m,g,h=e.arrow,v=void 0!==h&&h,b=e.prefixCls,y=void 0===b?"rc-dropdown":b,$=e.transitionName,C=e.animation,k=e.align,O=e.placement,A=e.placements,I=e.getPopupContainer,N=e.showAction,j=e.hideAction,M=e.overlayClassName,R=e.overlayStyle,P=e.visible,T=e.trigger,z=void 0===T?["hover"]:T,B=e.autoFocus,D=e.overlay,H=e.children,L=e.onVisibleChange,F=(0,r3.A)(e,mY),W=w().useState(),_=(0,eK.A)(W,2),V=_[0],q=_[1],K="visible"in e?P:V,X=w().useRef(null),Y=w().useRef(null),Q=w().useRef(null);w().useImperativeHandle(t,function(){return X.current});var J=function(e){q(e),null==L||L(e)};r=(n={visible:K,triggerRef:Q,onVisibleChange:J,autoFocus:B,overlayRef:Y}).visible,o=n.triggerRef,a=n.onVisibleChange,i=n.autoFocus,l=n.overlayRef,c=x.useRef(!1),s=function(){if(r){var e,t;null==(e=o.current)||null==(t=e.focus)||t.call(e),null==a||a(!1)}},u=function(){var e;return null!=(e=l.current)&&!!e.focus&&(l.current.focus(),c.current=!0,!0)},d=function(e){switch(e.keyCode){case m_:s();break;case mV:var t=!1;c.current||(t=u()),t?e.preventDefault():s()}},x.useEffect(function(){return r?(window.addEventListener("keydown",d),i&&eB(u,3),function(){window.removeEventListener("keydown",d),c.current=!1}):function(){c.current=!1}},[r]);var ee=function(){return w().createElement(mq,{ref:Y,overlay:D,prefixCls:y,arrow:v})},et=w().cloneElement(H,{className:E()(null==(g=H.props)?void 0:g.className,K&&(void 0!==(f=e.openClassName)?f:"".concat(y,"-open"))),ref:U(H)?G(Q,Z(H)):void 0}),en=j;return en||-1===z.indexOf("contextMenu")||(en=["click"]),w().createElement(fe,S({builtinPlacements:void 0===A?mG:A},F,{prefixCls:y,ref:X,popupClassName:E()(M,(0,eX.A)({},"".concat(y,"-show-arrow"),v)),popupStyle:R,action:z,showAction:N,hideAction:en,popupPlacement:void 0===O?"bottomLeft":O,popupAlign:k,popupTransitionName:$,popupAnimation:C,popupVisible:K,stretch:(p=e.minOverlayWidthMatchTrigger,m=e.alignPoint,"minOverlayWidthMatchTrigger"in e?p:!m)?"minWidth":"",popup:"function"==typeof D?ee:ee(),onPopupVisibleChange:J,onPopupClick:function(t){var n=e.onOverlayClick;q(!1),n&&n(t)},getPopupContainer:I}),et)});var mQ=x.createContext(null);function mZ(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function mJ(e){return mZ(x.useContext(mQ),e)}var m0=["children","locked"],m1=x.createContext(null);function m2(e){var t=e.children,n=e.locked,r=(0,r3.A)(e,m0),o=x.useContext(m1),a=q(function(){var e;return e=(0,D.A)({},o),Object.keys(r).forEach(function(t){var n=r[t];void 0!==n&&(e[t]=n)}),e},[o,r],function(e,t){return!n&&(e[0]!==t[0]||!e8(e[1],t[1],!0))});return x.createElement(m1.Provider,{value:a},t)}var m4=x.createContext(null);function m3(){return x.useContext(m4)}var m6=x.createContext([]);function m5(e){var t=x.useContext(m6);return x.useMemo(function(){return void 0!==e?[].concat((0,eM.A)(t),[e]):t},[t,e])}var m8=x.createContext(null),m7=x.createContext({});function m9(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(iG(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var ge=aM.LEFT,gt=aM.RIGHT,gn=aM.UP,gr=aM.DOWN,go=aM.ENTER,ga=aM.ESC,gi=aM.HOME,gl=aM.END,gc=[gn,gr,ge,gt];function gs(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,eM.A)(e.querySelectorAll("*")).filter(function(e){return m9(e,t)});return m9(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function gu(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=gs(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var gd=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(mZ(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:o}},gf="__RC_UTIL_PATH_SPLIT__",gp=function(e){return e.join(gf)},gm="rc-menu-more";function gg(e){var t=x.useRef(e);t.current=e;var n=x.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(r))},[]);return e?n:void 0}var gh=Math.random().toFixed(5).toString().slice(2),gv=0;function gb(e,t,n,r){var o=x.useContext(m1),a=o.activeKey,i=o.onActive,l=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),i(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),c}function gy(e){var t=x.useContext(m1),n=t.mode,r=t.rtl,o=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}function g$(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=x.createElement(n,(0,D.A)({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var gx=["item"];function gw(e){var t=e.item,n=(0,r3.A)(e,gx);return Object.defineProperty(n,"item",{get:function(){return B(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var gC=["title","attribute","elementRef"],gE=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],gS=["active"],gk=function(e){(0,eE.A)(n,e);var t=eA(n);function n(){return(0,ew.A)(this,n),t.apply(this,arguments)}return(0,eC.A)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=iX((0,r3.A)(e,gC),["eventKey","popupClassName","popupOffset","onTitleClick"]);return B(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),x.createElement(dM.Item,S({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(x.Component),gO=x.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey,a=(e.warnKey,e.disabled),i=e.itemIcon,l=e.children,c=e.role,s=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,p=e.onFocus,m=(0,r3.A)(e,gE),g=mJ(o),h=x.useContext(m1),v=h.prefixCls,b=h.onItemClick,y=h.disabled,$=h.overflowDisabled,w=h.itemIcon,C=h.selectedKeys,k=h.onActive,O=x.useContext(m7)._internalRenderMenuItem,A="".concat(v,"-item"),I=x.useRef(),N=x.useRef(),j=y||a,M=Y(t,N),R=m5(o),P=function(e){return{key:o,keyPath:(0,eM.A)(R).reverse(),item:I.current,domEvent:e}},T=gb(o,j,s,u),z=T.active,B=(0,r3.A)(T,gS),H=C.includes(o),L=gy(R.length),F={};"option"===e.role&&(F["aria-selected"]=H);var W=x.createElement(gk,S({ref:I,elementRef:M,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":$&&g?null:g},iX(m,["extra"]),B,F,{component:"li","aria-disabled":a,style:(0,D.A)((0,D.A)({},L),n),className:E()(A,(0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(A,"-active"),z),"".concat(A,"-selected"),H),"".concat(A,"-disabled"),j),r),onClick:function(e){if(!j){var t=P(e);null==d||d(gw(t)),b(t)}},onKeyDown:function(e){if(null==f||f(e),e.which===aM.ENTER){var t=P(e);null==d||d(gw(t)),b(t)}},onFocus:function(e){k(o),null==p||p(e)}}),l,x.createElement(g$,{props:(0,D.A)((0,D.A)({},e),{},{isSelected:H}),icon:i||w}));return O&&(W=O(W,e,{selected:H})),W});let gA=x.forwardRef(function(e,t){var n=e.eventKey,r=m3(),o=m5(n);return(x.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r)?null:x.createElement(gO,S({},e,{ref:t}))});var gI=["className","children"],gN=x.forwardRef(function(e,t){var n=e.className,r=e.children,o=(0,r3.A)(e,gI),a=x.useContext(m1),i=a.prefixCls,l=a.mode,c=a.rtl;return x.createElement("ul",S({className:E()(i,c&&"".concat(i,"-rtl"),"".concat(i,"-sub"),"".concat(i,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)});function gj(e,t){return j(e).map(function(e,n){if(x.isValidElement(e)){var r,o,a=e.key,i=null!=(r=null==(o=e.props)?void 0:o.eventKey)?r:a;null==i&&(i="tmp_key-".concat([].concat((0,eM.A)(t),[n]).join("-")));var l={key:i,eventKey:i};return x.cloneElement(e,l)}return e})}gN.displayName="SubMenuList";var gM={adjustX:1,adjustY:1},gR={topLeft:{points:["bl","tl"],overflow:gM},topRight:{points:["br","tr"],overflow:gM},bottomLeft:{points:["tl","bl"],overflow:gM},bottomRight:{points:["tr","br"],overflow:gM},leftTop:{points:["tr","tl"],overflow:gM},leftBottom:{points:["br","bl"],overflow:gM},rightTop:{points:["tl","tr"],overflow:gM},rightBottom:{points:["bl","br"],overflow:gM}},gP={topLeft:{points:["bl","tl"],overflow:gM},topRight:{points:["br","tr"],overflow:gM},bottomLeft:{points:["tl","bl"],overflow:gM},bottomRight:{points:["tr","br"],overflow:gM},rightTop:{points:["tr","tl"],overflow:gM},rightBottom:{points:["br","bl"],overflow:gM},leftTop:{points:["tl","tr"],overflow:gM},leftBottom:{points:["bl","br"],overflow:gM}};function gT(e,t,n){return t||(n?n[e]||n.other:void 0)}var gz={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function gB(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,l=e.popupOffset,c=e.disabled,s=e.mode,u=e.onVisibleChange,d=x.useContext(m1),f=d.getPopupContainer,p=d.rtl,m=d.subMenuOpenDelay,g=d.subMenuCloseDelay,h=d.builtinPlacements,v=d.triggerSubMenuAction,b=d.forceSubMenuRender,y=d.rootClassName,$=d.motion,w=d.defaultMotions,C=x.useState(!1),S=(0,eK.A)(C,2),k=S[0],O=S[1],A=p?(0,D.A)((0,D.A)({},gP),h):(0,D.A)((0,D.A)({},gR),h),I=gz[s],N=gT(s,$,w),j=x.useRef(N);"inline"!==s&&(j.current=N);var M=(0,D.A)((0,D.A)({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),R=x.useRef();return x.useEffect(function(){return R.current=eB(function(){O(n)}),function(){eB.cancel(R.current)}},[n]),x.createElement(fe,{prefixCls:t,popupClassName:E()("".concat(t,"-popup"),(0,eX.A)({},"".concat(t,"-rtl"),p),i,y),stretch:"horizontal"===s?"minWidth":null,getPopupContainer:f,builtinPlacements:A,popupPlacement:I,popupVisible:k,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[v],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:b,popupMotion:M,fresh:!0},r)}function gD(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=x.useContext(m1),l=i.prefixCls,c=i.forceSubMenuRender,s=i.motion,u=i.defaultMotions,d=i.mode,f=x.useRef(!1);f.current=d===a;var p=x.useState(!f.current),m=(0,eK.A)(p,2),g=m[0],h=m[1],v=!!f.current&&n;x.useEffect(function(){f.current&&h(!1)},[d]);var b=(0,D.A)({},gT(a,s,u));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return(b.onVisibleChanged=function(e){return f.current||e||h(!0),null==y?void 0:y(e)},g)?null:x.createElement(m2,{mode:a,locked:!f.current},x.createElement(oG,S({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(e){var n=e.className,r=e.style;return x.createElement(gN,{id:t,className:n,style:r},o)}))}var gH=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gL=["active"],gF=x.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey,i=(e.warnKey,e.disabled),l=e.internalPopupClose,c=e.children,s=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.popupStyle,m=e.onClick,g=e.onMouseEnter,h=e.onMouseLeave,v=e.onTitleClick,b=e.onTitleMouseEnter,y=e.onTitleMouseLeave,$=(0,r3.A)(e,gH),w=mJ(a),C=x.useContext(m1),k=C.prefixCls,O=C.mode,A=C.openKeys,I=C.disabled,N=C.overflowDisabled,j=C.activeKey,M=C.selectedKeys,R=C.itemIcon,P=C.expandIcon,T=C.onItemClick,z=C.onOpenChange,B=C.onActive,H=x.useContext(m7)._internalRenderSubMenuItem,L=x.useContext(m8).isSubPathKey,F=m5(),W="".concat(k,"-submenu"),_=I||i,V=x.useRef(),q=x.useRef(),K=null!=u?u:P,X=A.includes(a),G=!N&&X,Y=L(M,a),U=gb(a,_,b,y),Q=U.active,Z=(0,r3.A)(U,gL),J=x.useState(!1),ee=(0,eK.A)(J,2),et=ee[0],en=ee[1],er=function(e){_||en(e)},eo=x.useMemo(function(){return Q||"inline"!==O&&(et||L([j],a))},[O,Q,j,et,a,L]),ea=gy(F.length),ei=gg(function(e){null==m||m(gw(e)),T(e)}),el=w&&"".concat(w,"-popup"),ec=x.useMemo(function(){return x.createElement(g$,{icon:"horizontal"!==O?K:void 0,props:(0,D.A)((0,D.A)({},e),{},{isOpen:G,isSubMenu:!0})},x.createElement("i",{className:"".concat(W,"-arrow")}))},[O,K,e,G,W]),es=x.createElement("div",S({role:"menuitem",style:ea,className:"".concat(W,"-title"),tabIndex:_?null:-1,ref:V,title:"string"==typeof o?o:null,"data-menu-id":N&&w?null:w,"aria-expanded":G,"aria-haspopup":!0,"aria-controls":el,"aria-disabled":_,onClick:function(e){_||(null==v||v({key:a,domEvent:e}),"inline"===O&&z(a,!X))},onFocus:function(){B(a)}},Z),o,ec),eu=x.useRef(O);if("inline"!==O&&F.length>1?eu.current="vertical":eu.current=O,!N){var ed=eu.current;es=x.createElement(gB,{mode:ed,prefixCls:W,visible:!l&&G&&"inline"!==O,popupClassName:d,popupOffset:f,popupStyle:p,popup:x.createElement(m2,{mode:"horizontal"===ed?"vertical":ed},x.createElement(gN,{id:el,ref:q},c)),disabled:_,onVisibleChange:function(e){"inline"!==O&&z(a,e)}},es)}var ef=x.createElement(dM.Item,S({ref:t,role:"none"},$,{component:"li",style:n,className:E()(W,"".concat(W,"-").concat(O),r,(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(W,"-open"),G),"".concat(W,"-active"),eo),"".concat(W,"-selected"),Y),"".concat(W,"-disabled"),_)),onMouseEnter:function(e){er(!0),null==g||g({key:a,domEvent:e})},onMouseLeave:function(e){er(!1),null==h||h({key:a,domEvent:e})}}),es,!N&&x.createElement(gD,{id:el,open:G,keyPath:F},c));return H&&(ef=H(ef,e,{selected:Y,active:eo,open:G,disabled:_})),x.createElement(m2,{onItemClick:ei,mode:"horizontal"===O?"vertical":O,itemIcon:null!=s?s:R,expandIcon:K},ef)}),gW=x.forwardRef(function(e,t){var n,r=e.eventKey,o=e.children,a=m5(r),i=gj(o,a),l=m3();return x.useEffect(function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}},[a]),n=l?i:x.createElement(gF,S({ref:t},e),i),x.createElement(m6.Provider,{value:a},n)});function g_(e){var t=e.className,n=e.style,r=x.useContext(m1).prefixCls;return m3()?null:x.createElement("li",{role:"separator",className:E()("".concat(r,"-item-divider"),t),style:n})}var gV=["className","title","eventKey","children"],gq=x.forwardRef(function(e,t){var n=e.className,r=e.title,o=(e.eventKey,e.children),a=(0,r3.A)(e,gV),i=x.useContext(m1).prefixCls,l="".concat(i,"-item-group");return x.createElement("li",S({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:E()(l,n)}),x.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),x.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),gK=x.forwardRef(function(e,t){var n=e.eventKey,r=gj(e.children,m5(n));return m3()?r:x.createElement(gq,S({ref:t},iX(e,["warnKey"])),r)}),gX=["label","children","key","type","extra"];function gG(e,t,n,r,o){var a=e,i=(0,D.A)({divider:g_,item:gA,group:gK,submenu:gW},r);return t&&(a=function e(t,n,r){var o=n.item,a=n.group,i=n.submenu,l=n.divider;return(t||[]).map(function(t,c){if(t&&"object"===(0,k.A)(t)){var s=t.label,u=t.children,d=t.key,f=t.type,p=t.extra,m=(0,r3.A)(t,gX),g=null!=d?d:"tmp-".concat(c);return u||"group"===f?"group"===f?x.createElement(a,S({key:g},m,{title:s}),e(u,n,r)):x.createElement(i,S({key:g},m,{title:s}),e(u,n,r)):"divider"===f?x.createElement(l,S({key:g},m)):x.createElement(o,S({key:g},m,{extra:p}),s,(!!p||0===p)&&x.createElement("span",{className:"".concat(r,"-item-extra")},p))}return null}).filter(function(e){return e})}(t,i,o)),gj(a,n)}var gY=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],gU=[],gQ=x.forwardRef(function(e,t){var n,r,o,a,i,l,c,s,u,d,f,p,m,g,h,v,b,y,$,w,C,k,O,A,I,N,j=e.prefixCls,M=void 0===j?"rc-menu":j,R=e.rootClassName,P=e.style,T=e.className,z=e.tabIndex,B=e.items,L=e.children,F=e.direction,W=e.id,_=e.mode,V=void 0===_?"vertical":_,q=e.inlineCollapsed,K=e.disabled,X=e.disabledOverflow,G=e.subMenuOpenDelay,Y=e.subMenuCloseDelay,U=e.forceSubMenuRender,Q=e.defaultOpenKeys,Z=e.openKeys,J=e.activeKey,ee=e.defaultActiveFirst,et=e.selectable,en=void 0===et||et,er=e.multiple,eo=void 0!==er&&er,ea=e.defaultSelectedKeys,ei=e.selectedKeys,el=e.onSelect,ec=e.onDeselect,es=e.inlineIndent,eu=e.motion,ed=e.defaultMotions,ef=e.triggerSubMenuAction,ep=e.builtinPlacements,em=e.itemIcon,eg=e.expandIcon,eh=e.overflowedIndicator,ev=void 0===eh?"...":eh,eb=e.overflowedIndicatorPopupClassName,ey=e.getPopupContainer,e$=e.onClick,ex=e.onOpenChange,ew=e.onKeyDown,eC=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),eE=e._internalRenderSubMenuItem,eS=e._internalComponents,ek=(0,r3.A)(e,gY),eO=x.useMemo(function(){return[gG(L,B,gU,eS,M),gG(L,B,gU,{},M)]},[L,B,eS]),eA=(0,eK.A)(eO,2),eI=eA[0],eN=eA[1],ej=x.useState(!1),eR=(0,eK.A)(ej,2),eP=eR[0],eT=eR[1],ez=x.useRef(),eD=(n=ny(W,{value:W}),o=(r=(0,eK.A)(n,2))[0],a=r[1],x.useEffect(function(){gv+=1;var e="".concat(gh,"-").concat(gv);a("rc-menu-uuid-".concat(e))},[]),o),eH="rtl"===F,eL=ny(Q,{value:Z,postState:function(e){return e||gU}}),eF=(0,eK.A)(eL,2),eW=eF[0],e_=eF[1],eV=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){e_(e),null==ex||ex(e)}t?(0,H.flushSync)(n):n()},eq=x.useState(eW),eG=(0,eK.A)(eq,2),eY=eG[0],eU=eG[1],eQ=x.useRef(!1),eZ=x.useMemo(function(){return("inline"===V||"vertical"===V)&&q?["vertical",q]:[V,!1]},[V,q]),eJ=(0,eK.A)(eZ,2),e0=eJ[0],e1=eJ[1],e2="inline"===e0,e4=x.useState(e0),e3=(0,eK.A)(e4,2),e6=e3[0],e5=e3[1],e7=x.useState(e1),e9=(0,eK.A)(e7,2),te=e9[0],tt=e9[1];x.useEffect(function(){e5(e0),tt(e1),eQ.current&&(e2?e_(eY):eV(gU))},[e0,e1]);var tn=x.useState(0),tr=(0,eK.A)(tn,2),to=tr[0],ta=tr[1],ti=to>=eI.length-1||"horizontal"!==e6||X;x.useEffect(function(){e2&&eU(eW)},[eW]),x.useEffect(function(){return eQ.current=!0,function(){eQ.current=!1}},[]);var tl=(i=x.useState({}),l=(0,eK.A)(i,2)[1],c=(0,x.useRef)(new Map),s=(0,x.useRef)(new Map),u=x.useState([]),f=(d=(0,eK.A)(u,2))[0],p=d[1],m=(0,x.useRef)(0),g=(0,x.useRef)(!1),h=function(){g.current||l({})},v=(0,x.useCallback)(function(e,t){var n=gp(t);s.current.set(n,e),c.current.set(e,n),m.current+=1;var r=m.current;Promise.resolve().then(function(){r===m.current&&h()})},[]),b=(0,x.useCallback)(function(e,t){var n=gp(t);s.current.delete(n),c.current.delete(e)},[]),y=(0,x.useCallback)(function(e){p(e)},[]),$=(0,x.useCallback)(function(e,t){var n=(c.current.get(e)||"").split(gf);return t&&f.includes(n[0])&&n.unshift(gm),n},[f]),w=(0,x.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return $(e,!0).includes(t)})},[$]),C=(0,x.useCallback)(function(e){var t="".concat(c.current.get(e)).concat(gf),n=new Set;return(0,eM.A)(s.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(s.current.get(e))}),n},[]),x.useEffect(function(){return function(){g.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:y,isSubPathKey:w,getKeyPath:$,getKeys:function(){var e=(0,eM.A)(c.current.keys());return f.length&&e.push(gm),e},getSubPathKeys:C}),tc=tl.registerPath,ts=tl.unregisterPath,tu=tl.refreshOverflowKeys,td=tl.isSubPathKey,tf=tl.getKeyPath,tp=tl.getKeys,tm=tl.getSubPathKeys,tg=x.useMemo(function(){return{registerPath:tc,unregisterPath:ts}},[tc,ts]),th=x.useMemo(function(){return{isSubPathKey:td}},[td]);x.useEffect(function(){tu(ti?gU:eI.slice(to+1).map(function(e){return e.key}))},[to,ti]);var tv=ny(J||ee&&(null==(N=eI[0])?void 0:N.key),{value:J}),tb=(0,eK.A)(tv,2),ty=tb[0],t$=tb[1],tx=gg(function(e){t$(e)}),tw=gg(function(){t$(void 0)});(0,x.useImperativeHandle)(t,function(){return{list:ez.current,focus:function(e){var t,n,r=gd(tp(),eD),o=r.elements,a=r.key2element,i=r.element2key,l=gs(ez.current,o),c=null!=ty?ty:l[0]?i.get(l[0]):null==(t=eI.find(function(e){return!e.props.disabled}))?void 0:t.key,s=a.get(c);c&&s&&(null==s||null==(n=s.focus)||n.call(s,e))}}});var tC=ny(ea||[],{value:ei,postState:function(e){return Array.isArray(e)?e:null==e?gU:[e]}}),tE=(0,eK.A)(tC,2),tS=tE[0],tk=tE[1],tO=function(e){if(en){var t,n=e.key,r=tS.includes(n);tk(t=eo?r?tS.filter(function(e){return e!==n}):[].concat((0,eM.A)(tS),[n]):[n]);var o=(0,D.A)((0,D.A)({},e),{},{selectedKeys:t});r?null==ec||ec(o):null==el||el(o)}!eo&&eW.length&&"inline"!==e6&&eV(gU)},tA=gg(function(e){null==e$||e$(gw(e)),tO(e)}),tI=gg(function(e,t){var n=eW.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==e6){var r=tm(e);n=n.filter(function(e){return!r.has(e)})}e8(eW,n,!0)||eV(n,!0)}),tN=(k=function(e,t){var n=null!=t?t:!eW.includes(e);tI(e,n)},O=x.useRef(),(A=x.useRef()).current=ty,I=function(){eB.cancel(O.current)},x.useEffect(function(){return function(){I()}},[]),function(e){var t=e.which;if([].concat(gc,[go,ga,gi,gl]).includes(t)){var n=tp(),r=gd(n,eD),o=r,a=o.elements,i=o.key2element,l=o.element2key,c=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(i.get(ty),a),s=l.get(c),u=function(e,t,n,r){var o,a="prev",i="next",l="children",c="parent";if("inline"===e&&r===go)return{inlineTrigger:!0};var s=(0,eX.A)((0,eX.A)({},gn,a),gr,i),u=(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},ge,n?i:a),gt,n?a:i),gr,l),go,l),d=(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},gn,a),gr,i),go,l),ga,c),ge,n?l:c),gt,n?c:l);switch(null==(o=({inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d})["".concat(e).concat(t?"":"Sub")])?void 0:o[r]){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e6,1===tf(s,!0).length,eH,t);if(!u&&t!==gi&&t!==gl)return;(gc.includes(t)||[gi,gl].includes(t))&&e.preventDefault();var d=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=l.get(e);t$(r),I(),O.current=eB(function(){A.current===r&&t.focus()})}};if([gi,gl].includes(t)||u.sibling||!c){var f=c&&"inline"!==e6?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(c):ez.current,p=gs(f,a);d(t===gi?p[0]:t===gl?p[p.length-1]:gu(f,a,c,u.offset))}else if(u.inlineTrigger)k(s);else if(u.offset>0)k(s,!0),I(),O.current=eB(function(){r=gd(n,eD);var e=c.getAttribute("aria-controls");d(gu(document.getElementById(e),r.elements))},5);else if(u.offset<0){var m=tf(s,!0),g=m[m.length-2],h=i.get(g);k(g,!1),d(h)}}null==ew||ew(e)});x.useEffect(function(){eT(!0)},[]);var tj=x.useMemo(function(){return{_internalRenderMenuItem:eC,_internalRenderSubMenuItem:eE}},[eC,eE]),tM="horizontal"!==e6||X?eI:eI.map(function(e,t){return x.createElement(m2,{key:e.key,overflowDisabled:t>to},e)}),tR=x.createElement(dM,S({id:W,ref:ez,prefixCls:"".concat(M,"-overflow"),component:"ul",itemComponent:gA,className:E()(M,"".concat(M,"-root"),"".concat(M,"-").concat(e6),T,(0,eX.A)((0,eX.A)({},"".concat(M,"-inline-collapsed"),te),"".concat(M,"-rtl"),eH),R),dir:F,style:P,role:"menu",tabIndex:void 0===z?0:z,data:tM,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?eI.slice(-t):null;return x.createElement(gW,{eventKey:gm,title:ev,disabled:ti,internalPopupClose:0===t,popupClassName:eb},n)},maxCount:"horizontal"!==e6||X?dM.INVALIDATE:dM.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){ta(e)},onKeyDown:tN},ek));return x.createElement(m7.Provider,{value:tj},x.createElement(mQ.Provider,{value:eD},x.createElement(m2,{prefixCls:M,rootClassName:R,mode:e6,openKeys:eW,rtl:eH,disabled:K,motion:eP?eu:null,defaultMotions:eP?ed:null,activeKey:ty,onActive:tx,onInactive:tw,selectedKeys:tS,inlineIndent:void 0===es?24:es,subMenuOpenDelay:void 0===G?.1:G,subMenuCloseDelay:void 0===Y?.1:Y,forceSubMenuRender:U,builtinPlacements:ep,triggerSubMenuAction:void 0===ef?"hover":ef,getPopupContainer:ey,itemIcon:em,expandIcon:eg,onItemClick:tA,onOpenChange:tI},x.createElement(m8.Provider,{value:th},tR),x.createElement("div",{style:{display:"none"},"aria-hidden":!0},x.createElement(m4.Provider,{value:tg},eN)))))});gQ.Item=gA,gQ.SubMenu=gW,gQ.ItemGroup=gK,gQ.Divider=g_;let gZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var gJ=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:gZ}))});let g0=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),g1=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${a}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*i,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},g2=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],g4=rK("Layout",e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:i,headerColor:l,footerPadding:c,fontSize:s,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:i,color:l,lineHeight:tg(a),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:s,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},g1,{deprecatedTokens:g2}),g3=rK(["Layout","Sider"],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:a,triggerHeight:i,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:tg(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${tg(f)} ${tg(f)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${tg(f)} 0 0 ${tg(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${h}`,borderInlineStart:0}}}}},g1,{deprecatedTokens:g2});var g6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let g5={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},g8=x.createContext({}),g7=(s=0,(e="")=>(s+=1,`${e}${s}`)),g9=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:s=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:h}=e,v=g6(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,x.useContext)(g0),[y,$]=(0,x.useState)("collapsed"in e?e.collapsed:i),[w,C]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in e&&$(e.collapsed)},[e.collapsed]);let S=(t,n)=>{"collapsed"in e||$(t),null==g||g(t,n)},{getPrefixCls:k,direction:O}=(0,x.useContext)(eW),A=k("layout-sider",n),[I,N,j]=g3(A),M=(0,x.useRef)(null);M.current=e=>{C(e.matches),null==h||h(e.matches),y!==e.matches&&S(e.matches,"responsive")},(0,x.useEffect)(()=>{let e;function t(e){var t;return null==(t=M.current)?void 0:t.call(M,e)}return void 0!==(null==window?void 0:window.matchMedia)&&m&&m in g5&&(pD(e=window.matchMedia(`screen and (max-width: ${g5[m]})`),t),t(e)),()=>{pH(e,t)}},[m]),(0,x.useEffect)(()=>{let e=g7("ant-sider-");return b.addSider(e),()=>b.removeSider(e)},[]);let R=()=>{S(!y,"clickTrigger")},P=iX(v,["collapsed"]),T=y?f:d,z=!Number.isNaN(Number.parseFloat(T))&&Number.isFinite(Number(T))?`${T}px`:String(T),B=0===Number.parseFloat(String(f||0))?x.createElement("span",{onClick:R,className:E()(`${A}-zero-width-trigger`,`${A}-zero-width-trigger-${u?"right":"left"}`),style:p},o||x.createElement(gJ,null)):null,D="rtl"===O==!u,H={expanded:D?x.createElement(lT,null):x.createElement(mW,null),collapsed:D?x.createElement(mW,null):x.createElement(lT,null)}[y?"collapsed":"expanded"],L=null!==o?B||x.createElement("div",{className:`${A}-trigger`,onClick:R,style:{width:z}},o||H):null,F=Object.assign(Object.assign({},c),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),W=E()(A,`${A}-${l}`,{[`${A}-collapsed`]:!!y,[`${A}-has-trigger`]:s&&null!==o&&!B,[`${A}-below`]:!!w,[`${A}-zero-width`]:0===Number.parseFloat(z)},r,N,j),_=x.useMemo(()=>({siderCollapsed:y}),[y]);return I(x.createElement(g8.Provider,{value:_},x.createElement("aside",Object.assign({className:W},P,{style:F,ref:t}),x.createElement("div",{className:`${A}-children`},a),s||w&&B?L:null)))}),he={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var ht=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:he}))});let hn=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var hr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ho=e=>{let{prefixCls:t,className:n,dashed:r}=e,o=hr(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=x.useContext(eW),i=a("menu",t),l=E()({[`${i}-item-divider-dashed`]:!!r},n);return x.createElement(g_,Object.assign({className:l},o))},ha=e=>{var t;let n,r,{className:o,children:a,icon:i,title:l,danger:c,extra:s}=e,{prefixCls:u,firstLevel:d,direction:f,disableMenuItemTitleTooltip:p,inlineCollapsed:m}=x.useContext(hn),{siderCollapsed:g}=x.useContext(g8),h=l;void 0===l?h=d?a:"":!1===l&&(h="");let v={title:h};g||m||(v.title=null,v.open=!1);let b=j(a).length,y=x.createElement(gA,Object.assign({},iX(e,["title","icon","danger"]),{className:E()({[`${u}-item-danger`]:c,[`${u}-item-only-child`]:(i?b+1:b)===1},o),title:"string"==typeof l?l:void 0}),o9(i,{className:E()(x.isValidElement(i)?null==(t=i.props)?void 0:t.className:void 0,`${u}-item-icon`)}),(n=null==a?void 0:a[0],r=x.createElement("span",{className:E()(`${u}-title-content`,{[`${u}-title-content-with-extra`]:!!s||0===s})},a),(!i||x.isValidElement(a)&&"span"===a.type)&&a&&m&&d&&"string"==typeof n?x.createElement("div",{className:`${u}-inline-collapsed-noicon`},n.charAt(0)):r));return p||(y=x.createElement(ms,Object.assign({},v,{placement:"rtl"===f?"left":"right",classNames:{root:`${u}-inline-collapsed-tooltip`}}),y)),y};var hi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let hl=x.createContext(null),hc=x.forwardRef((e,t)=>{let{children:n}=e,r=hi(e,["children"]),o=x.useContext(hl),a=x.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=Q(n)&&U(n),l=Y(t,i?Z(n):null);return x.createElement(hl.Provider,{value:a},x.createElement(sG,{space:!0},i?x.cloneElement(n,{ref:l}):n))}),hs=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:l,subMenuItemBg:c,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:$,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:A,itemActiveBg:I,menuSubMenuBg:N,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:R,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},nV(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},nV(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${tg(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${tg(f)} ${y} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${tg(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:`transform ${v} ${g},opacity ${v} ${g}`,content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:`transform ${v} ${m},opacity ${v} ${m}`}}}}}},hu=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:tg(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,
117
+ `]:{animationName:f6},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},pi(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"},nL),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},pi(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},f8(e,"slide-up"),f8(e,"slide-down"),pa(e,"move-up"),pa(e,"move-down")]})(e),{[`${t}-rtl`]:{direction:"rtl"}},ca(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]})(n),{[n.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},{"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},pd(n,{borderColor:n.colorBorder,hoverBorderHover:n.hoverBorderColor,activeBorderColor:n.activeBorderColor,activeOutlineColor:n.activeOutlineColor,color:n.colorText})),pf(n,{status:"error",borderColor:n.colorError,hoverBorderHover:n.colorErrorHover,activeBorderColor:n.colorError,activeOutlineColor:n.colorErrorOutline,color:n.colorError})),pf(n,{status:"warning",borderColor:n.colorWarning,hoverBorderHover:n.colorWarningHover,activeBorderColor:n.colorWarning,activeOutlineColor:n.colorWarningOutline,color:n.colorWarning})),{[`&${n.componentCls}-disabled`]:{[`&:not(${n.componentCls}-customize-input) ${n.componentCls}-selector`]:{background:n.colorBgContainerDisabled,color:n.colorTextDisabled}},[`&${n.componentCls}-multiple ${n.componentCls}-selection-item`]:{background:n.multipleItemBg,border:`${tg(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`}})}),{"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pp(n,{bg:n.colorFillTertiary,hoverBg:n.colorFillSecondary,activeBorderColor:n.activeBorderColor,color:n.colorText})),pm(n,{status:"error",bg:n.colorErrorBg,hoverBg:n.colorErrorBgHover,activeBorderColor:n.colorError,color:n.colorError})),pm(n,{status:"warning",bg:n.colorWarningBg,hoverBg:n.colorWarningBgHover,activeBorderColor:n.colorWarning,color:n.colorWarning})),{[`&${n.componentCls}-disabled`]:{[`&:not(${n.componentCls}-customize-input) ${n.componentCls}-selector`]:{borderColor:n.colorBorder,background:n.colorBgContainerDisabled,color:n.colorTextDisabled}},[`&${n.componentCls}-multiple ${n.componentCls}-selection-item`]:{background:n.colorBgContainer,border:`${tg(n.lineWidth)} ${n.lineType} ${n.colorSplit}`}})}),{"&-borderless":{[`${n.componentCls}-selector`]:{background:"transparent",border:`${tg(n.lineWidth)} ${n.lineType} transparent`},[`&${n.componentCls}-disabled`]:{[`&:not(${n.componentCls}-customize-input) ${n.componentCls}-selector`]:{color:n.colorTextDisabled}},[`&${n.componentCls}-multiple ${n.componentCls}-selection-item`]:{background:n.multipleItemBg,border:`${tg(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`},[`&${n.componentCls}-status-error`]:{[`${n.componentCls}-prefix, ${n.componentCls}-selection-item`]:{color:n.colorError}},[`&${n.componentCls}-status-warning`]:{[`${n.componentCls}-prefix, ${n.componentCls}-selection-item`]:{color:n.colorWarning}}}}),{"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},pg(n,{borderColor:n.colorBorder,hoverBorderHover:n.hoverBorderColor,activeBorderColor:n.activeBorderColor,activeOutlineColor:n.activeOutlineColor,color:n.colorText})),ph(n,{status:"error",borderColor:n.colorError,hoverBorderHover:n.colorErrorHover,activeBorderColor:n.colorError,activeOutlineColor:n.colorErrorOutline,color:n.colorError})),ph(n,{status:"warning",borderColor:n.colorWarning,hoverBorderHover:n.colorWarningHover,activeBorderColor:n.colorWarning,activeOutlineColor:n.colorWarningOutline,color:n.colorWarning})),{[`&${n.componentCls}-disabled`]:{[`&:not(${n.componentCls}-customize-input) ${n.componentCls}-selector`]:{color:n.colorTextDisabled}},[`&${n.componentCls}-multiple ${n.componentCls}-selection-item`]:{background:n.multipleItemBg,border:`${tg(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`}})})}]},e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:$}=e,x=2*l,w=2*r,C=Math.min(o-x,o-w),E=Math.min(a-x,a-w),S=Math.min(i-x,i-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:E,multipleItemHeightLG:S,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:$,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),pb={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"};var py=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:pb}))});let p$={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"};var px=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:p$}))});let pw={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"};var pC=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:pw}))});function pE({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:i,prefixCls:l,showSuffixIcon:c,feedbackIcon:s,showArrow:u,componentName:d}){let f=null!=t?t:x.createElement(ou,null),p=t=>null!==e||i||u?x.createElement(x.Fragment,null,!1!==c&&t,i&&s):null,m=null;if(void 0!==e)m=p(e);else if(o)m=p(x.createElement(aq,{spin:!0}));else{let e=`${l}-suffix`;m=({open:t,showSearch:n})=>t&&n?p(x.createElement(pC,{className:e})):p(x.createElement(px,{className:e}))}let g=null;g=void 0!==n?n:a?x.createElement(py,null):null;return{clearIcon:f,suffixIcon:m,itemIcon:g,removeIcon:void 0!==r?r:x.createElement(of,null)}}let pS=function(e){return w().useMemo(()=>{if(e)return(...t)=>w().createElement(sG,{space:!0},e.apply(void 0,t))},[e])};function pk(e,t){return void 0!==t?t:null!==e}var pO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let pA="SECRET_COMBOBOX_MODE_DO_NOT_USE",pI=x.forwardRef((e,t)=>{var n,r,o,a,i;let l,{prefixCls:c,bordered:s,className:u,rootClassName:d,getPopupContainer:f,popupClassName:p,dropdownClassName:m,listHeight:g=256,placement:h,listItemHeight:v,size:b,disabled:y,notFoundContent:$,status:w,builtinPlacements:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:k,direction:O,style:A,allowClear:I,variant:N,dropdownStyle:j,transitionName:M,tagRender:R,maxCount:P,prefix:T,dropdownRender:z,popupRender:B,onDropdownVisibleChange:D,onOpenChange:H,styles:L,classNames:F}=e,W=pO(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:_,getPrefixCls:V,renderEmpty:q,direction:K,virtual:X,popupMatchSelectWidth:G,popupOverflow:Y}=x.useContext(eW),{showSearch:U,style:Q,styles:Z,className:J,classNames:ee}=eq("select"),[,et]=rq(),en=null!=v?v:null==et?void 0:et.controlHeight,er=V("select",c),eo=V(),ea=null!=O?O:K,{compactSize:ei,compactItemClassnames:el}=i6(er,ea),[ec,es]=f0("select",N,s),eu=a$(er),[ed,ef,ep]=pv(er,eu),em=x.useMemo(()=>{let{mode:t}=e;if("combobox"!==t)return t===pA?"combobox":t},[e.mode]),eg="multiple"===em||"tags"===em,eh=pk(e.suffixIcon,e.showArrow),ev=null!=(n=null!=k?k:S)?n:G,eb=(null==(r=null==L?void 0:L.popup)?void 0:r.root)||(null==(o=Z.popup)?void 0:o.root)||j,ey=pS(B||z),{status:e$,hasFeedback:ex,isFormItemInput:ew,feedbackIcon:eC}=x.useContext(sq);l=void 0!==$?$:"combobox"===em?null:(null==q?void 0:q("Select"))||x.createElement(fJ,{componentName:"Select"});let{suffixIcon:eE,itemIcon:eS,removeIcon:ek,clearIcon:eO}=pE(Object.assign(Object.assign({},W),{multiple:eg,hasFeedback:ex,feedbackIcon:eC,showSuffixIcon:eh,prefixCls:er,componentName:"Select"})),eA=iX(W,["suffixIcon","itemIcon"]),eI=E()((null==(a=null==F?void 0:F.popup)?void 0:a.root)||(null==(i=null==ee?void 0:ee.popup)?void 0:i.root)||p||m,{[`${er}-dropdown-${ea}`]:"rtl"===ea},d,ee.root,null==F?void 0:F.root,ep,eu,ef),eN=i1(e=>{var t;return null!=(t=null!=b?b:ei)?t:e}),ej=x.useContext(id),eM=E()({[`${er}-lg`]:"large"===eN,[`${er}-sm`]:"small"===eN,[`${er}-rtl`]:"rtl"===ea,[`${er}-${ec}`]:es,[`${er}-in-form-item`]:ew},fK(er,w||e$,ex),el,J,u,ee.root,null==F?void 0:F.root,d,ep,eu,ef),eR=x.useMemo(()=>void 0!==h?h:"rtl"===ea?"bottomRight":"bottomLeft",[h,ea]),[eP]=aY("SelectLike",null==eb?void 0:eb.zIndex);return ed(x.createElement(fq,Object.assign({ref:t,virtual:X,showSearch:U},eA,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Z.root),null==L?void 0:L.root),Q),A),dropdownMatchSelectWidth:ev,transitionName:iV(eo,"slide-up",M),builtinPlacements:f1(C,Y),listHeight:g,listItemHeight:en,mode:em,prefixCls:er,placement:eR,direction:ea,prefix:T,suffixIcon:eE,menuItemSelectedIcon:eS,removeIcon:ek,allowClear:!0===I?{clearIcon:eO}:I,notFoundContent:l,className:eM,getPopupContainer:f||_,dropdownClassName:eI,disabled:null!=y?y:ej,dropdownStyle:Object.assign(Object.assign({},eb),{zIndex:eP}),maxCount:eg?P:void 0,tagRender:eg?R:void 0,dropdownRender:ey,onDropdownVisibleChange:H||D})))}),pN=df(pI,"dropdownAlign");pI.SECRET_COMBOBOX_MODE_DO_NOT_USE=pA,pI.Option=fh,pI.OptGroup=fg,pI._InternalPanelDoNotUseOrYouWillBeFired=pN;let pj=pI,{Option:pM}=pj;function pR(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}let pP=x.forwardRef((e,t)=>{var n,r;let o,a,{prefixCls:i,className:l,popupClassName:c,dropdownClassName:s,children:u,dataSource:d,dropdownStyle:f,dropdownRender:p,popupRender:m,onDropdownVisibleChange:g,onOpenChange:h,styles:v,classNames:b}=e,y=j(u),$=(null==(n=null==v?void 0:v.popup)?void 0:n.root)||f,w=(null==(r=null==b?void 0:b.popup)?void 0:r.root)||c||s;1===y.length&&x.isValidElement(y[0])&&!pR(y[0])&&([o]=y);let C=o?()=>o:void 0;a=y.length&&pR(y[0])?u:d?d.map(e=>{if(x.isValidElement(e))return e;switch(typeof e){case"string":return x.createElement(pM,{key:e,value:e},e);case"object":{let{value:t}=e;return x.createElement(pM,{key:t,value:t},e.text)}default:return}}):[];let{getPrefixCls:S}=x.useContext(eW),k=S("select",i),[O]=aY("SelectLike",null==$?void 0:$.zIndex);return x.createElement(pj,Object.assign({ref:t,suffixIcon:null},iX(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:k,classNames:{popup:{root:w},root:null==b?void 0:b.root},styles:{popup:{root:Object.assign(Object.assign({},$),{zIndex:O})},root:null==v?void 0:v.root},className:E()(`${k}-auto-complete`,l),mode:pj.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:m||p,onOpenChange:h||g,getInputElement:C}),a)}),{Option:pT}=pj,pz=df(pP,"dropdownAlign",e=>iX(e,["visible"]));pP.Option=pT,pP._InternalPanelDoNotUseOrYouWillBeFired=pz;let pB=pP,pD=(e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)},pH=(e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)},pL=["xxl","xl","lg","md","sm","xs"],pF=(e,t)=>{if(t){for(let n of pL)if(e[n]&&(null==t?void 0:t[n])!==void 0)return t[n]}},pW=()=>w().useReducer(e=>e+1,0),p_=function(e=!0,t={}){let n=(0,x.useRef)(t),[,r]=pW(),o=(()=>{let e,[,t]=rq(),n=((e=[].concat(pL).reverse()).forEach((n,r)=>{let o=n.toUpperCase(),a=`screen${o}Min`,i=`screen${o}`;if(!(t[a]<=t[i]))throw Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(r<e.length-1){let n=`screen${o}Max`;if(!(t[i]<=t[n]))throw Error(`${i}<=${n} fails : !(${t[i]}<=${t[n]})`);let a=e[r+1].toUpperCase(),l=`screen${a}Min`;if(!(t[n]<=t[l]))throw Error(`${n}<=${l} fails : !(${t[n]}<=${t[l]})`)}}),{xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`});return w().useMemo(()=>{let e=new Map,t=-1,r={};return{responsiveMap:n,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(n).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},o=window.matchMedia(t);pD(o,n),this.matchHandlers[t]={mql:o,listener:n},n(o)})},unregister(){Object.values(n).forEach(e=>{let t=this.matchHandlers[e];pH(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[n])})();return t$(()=>{let t=o.subscribe(t=>{n.current=t,e&&r()});return()=>o.unsubscribe(t)},[]),n.current},pV=x.createContext({}),pq=rK("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=nR(e,{avatarBg:n,avatarColor:t});return[(e=>{let{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:l,containerSizeSM:c,textFontSize:s,textFontSizeLG:u,textFontSizeSM:d,iconFontSize:f,iconFontSizeLG:p,iconFontSizeSM:m,borderRadius:g,borderRadiusLG:h,borderRadiusSM:v,lineWidth:b,lineType:y}=e,$=(e,t,o,a)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${n}-square`]:{borderRadius:a},[`&${n}-icon`]:{fontSize:o,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${tg(b)} ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),$(i,s,f,g)),{"&-lg":Object.assign({},$(l,u,p,h)),"&-sm":Object.assign({},$(c,d,m,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}})(r),(e=>{let{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}})(r)]},e=>{let{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:l,marginXS:c,marginXXS:s,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((a+i)/2),iconFontSizeLG:l,iconFontSizeSM:o,groupSpace:s,groupOverlapping:-c,groupBorderColor:u}});var pK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let pX=x.forwardRef((e,t)=>{let n,{prefixCls:r,shape:o,size:a,src:i,srcSet:l,icon:c,className:s,rootClassName:u,style:d,alt:f,draggable:p,children:m,crossOrigin:g,gap:h=4,onError:v}=e,b=pK(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[y,$]=x.useState(1),[w,C]=x.useState(!1),[S,k]=x.useState(!0),O=x.useRef(null),A=x.useRef(null),I=G(t,O),{getPrefixCls:N,avatar:j}=x.useContext(eW),M=x.useContext(pV),R=()=>{if(!A.current||!O.current)return;let e=A.current.offsetWidth,t=O.current.offsetWidth;0!==e&&0!==t&&2*h<t&&$(t-2*h<e?(t-2*h)/e:1)};x.useEffect(()=>{C(!0)},[]),x.useEffect(()=>{k(!0),$(1)},[i]),x.useEffect(R,[h]);let P=i1(e=>{var t,n;return null!=(n=null!=(t=null!=a?a:null==M?void 0:M.size)?t:e)?n:"default"}),T=p_(Object.keys("object"==typeof P&&P||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e))),z=x.useMemo(()=>{if("object"!=typeof P)return{};let e=P[pL.find(e=>T[e])];return e?{width:e,height:e,fontSize:e&&(c||m)?e/2:18}:{}},[T,P,c,m]),B=N("avatar",r),D=a$(B),[H,L,F]=pq(B,D),W=E()({[`${B}-lg`]:"large"===P,[`${B}-sm`]:"small"===P}),_=x.isValidElement(i),V=o||(null==M?void 0:M.shape)||"circle",q=E()(B,W,null==j?void 0:j.className,`${B}-${V}`,{[`${B}-image`]:_||i&&S,[`${B}-icon`]:!!c},F,D,s,u,L),K="number"==typeof P?{width:P,height:P,fontSize:c?P/2:18}:{};if("string"==typeof i&&S)n=x.createElement("img",{src:i,draggable:p,srcSet:l,onError:()=>{!1!==(null==v?void 0:v())&&k(!1)},alt:f,crossOrigin:g});else if(_)n=i;else if(c)n=c;else if(w||1!==y){let e=`scale(${y})`;n=x.createElement(ej,{onResize:R},x.createElement("span",{className:`${B}-string`,ref:A,style:{msTransform:e,WebkitTransform:e,transform:e}},m))}else n=x.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:A},m);return H(x.createElement("span",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign(Object.assign({},K),z),null==j?void 0:j.style),d),className:q,ref:I}),n))}),pG=e=>e?"function"==typeof e?e():e:null;function pY(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,l=e.style;return x.createElement("div",{className:E()("".concat(n,"-content"),i),style:l},x.createElement("div",{className:E()("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var pU={shiftX:64,adjustY:1},pQ={adjustX:1,shiftY:!0},pZ=[0,0],pJ={left:{points:["cr","cl"],overflow:pQ,offset:[-4,0],targetOffset:pZ},right:{points:["cl","cr"],overflow:pQ,offset:[4,0],targetOffset:pZ},top:{points:["bc","tc"],overflow:pU,offset:[0,-4],targetOffset:pZ},bottom:{points:["tc","bc"],overflow:pU,offset:[0,4],targetOffset:pZ},topLeft:{points:["bl","tl"],overflow:pU,offset:[0,-4],targetOffset:pZ},leftTop:{points:["tr","tl"],overflow:pQ,offset:[-4,0],targetOffset:pZ},topRight:{points:["br","tr"],overflow:pU,offset:[0,-4],targetOffset:pZ},rightTop:{points:["tl","tr"],overflow:pQ,offset:[4,0],targetOffset:pZ},bottomRight:{points:["tr","br"],overflow:pU,offset:[0,4],targetOffset:pZ},rightBottom:{points:["bl","br"],overflow:pQ,offset:[4,0],targetOffset:pZ},bottomLeft:{points:["tl","bl"],overflow:pU,offset:[0,4],targetOffset:pZ},leftBottom:{points:["br","bl"],overflow:pQ,offset:[-4,0],targetOffset:pZ}},p0=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"];let p1=(0,x.forwardRef)(function(e,t){var n,r,o,a=e.overlayClassName,i=e.trigger,l=e.mouseEnterDelay,c=e.mouseLeaveDelay,s=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,m=e.afterVisibleChange,g=e.transitionName,h=e.animation,v=e.motion,b=e.placement,y=e.align,$=e.destroyTooltipOnHide,w=e.defaultVisible,C=e.getTooltipContainer,k=e.overlayInnerStyle,O=(e.arrowContent,e.overlay),A=e.id,I=e.showArrow,N=e.classNames,j=e.styles,M=(0,r3.A)(e,p0),R=cI(A),P=(0,x.useRef)(null);(0,x.useImperativeHandle)(t,function(){return P.current});var T=(0,D.A)({},M);return"visible"in e&&(T.popupVisible=e.visible),x.createElement(fe,S({popupClassName:E()(a,null==N?void 0:N.root),prefixCls:d,popup:function(){return x.createElement(pY,{key:"content",prefixCls:d,id:R,bodyClassName:null==N?void 0:N.body,overlayInnerStyle:(0,D.A)((0,D.A)({},k),null==j?void 0:j.body)},O)},action:void 0===i?["hover"]:i,builtinPlacements:pJ,popupPlacement:void 0===b?"right":b,ref:P,popupAlign:void 0===y?{}:y,getPopupContainer:C,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:h,popupMotion:v,defaultPopupVisible:w,autoDestroy:void 0!==$&&$,mouseLeaveDelay:void 0===c?.1:c,popupStyle:(0,D.A)((0,D.A)({},s),null==j?void 0:j.root),mouseEnterDelay:void 0===l?0:l,arrow:void 0===I||I},T),(r=(null==(n=x.Children.only(f))?void 0:n.props)||{},o=(0,D.A)((0,D.A)({},r),{},{"aria-describedby":O?R:null}),x.cloneElement(f,o)))});function p2(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=r/Math.sqrt(2),i=o-r*(1-1/Math.sqrt(2)),l=o-1/Math.sqrt(2)*n,c=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,s=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),u=r*(Math.sqrt(2)-1),d=`polygon(${u}px 100%, 50% ${u}px, ${2*o-u}px 100%, ${u}px 100%)`;return{arrowShadowWidth:s,arrowPath:`path('M 0 ${o} A ${r} ${r} 0 0 0 ${a} ${i} L ${l} ${c} A ${n} ${n} 0 0 1 ${2*o-l} ${c} L ${2*o-a} ${i} A ${r} ${r} 0 0 0 ${2*o-0} ${o} Z')`,arrowPolygon:d}}let p4=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${tg(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function p3(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function p6(e,t,n){var r,o,a,i,l,c,s,u;let{componentCls:d,boxShadowPopoverArrow:f,arrowOffsetVertical:p,arrowOffsetHorizontal:m}=e,{arrowDistance:g=0,arrowPlacement:h={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({[`${d}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},p4(e,t,f)),{"&:before":{background:t}})]},(r=!!h.top,o={[`&-placement-top > ${d}-arrow,&-placement-topLeft > ${d}-arrow,&-placement-topRight > ${d}-arrow`]:{bottom:g,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${d}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":m,[`> ${d}-arrow`]:{left:{_skip_check_:!0,value:m}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${tg(m)})`,[`> ${d}-arrow`]:{right:{_skip_check_:!0,value:m}}}},r?o:{})),(a=!!h.bottom,i={[`&-placement-bottom > ${d}-arrow,&-placement-bottomLeft > ${d}-arrow,&-placement-bottomRight > ${d}-arrow`]:{top:g,transform:"translateY(-100%)"},[`&-placement-bottom > ${d}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":m,[`> ${d}-arrow`]:{left:{_skip_check_:!0,value:m}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${tg(m)})`,[`> ${d}-arrow`]:{right:{_skip_check_:!0,value:m}}}},a?i:{})),(l=!!h.left,c={[`&-placement-left > ${d}-arrow,&-placement-leftTop > ${d}-arrow,&-placement-leftBottom > ${d}-arrow`]:{right:{_skip_check_:!0,value:g},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${d}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${d}-arrow`]:{top:p},[`&-placement-leftBottom > ${d}-arrow`]:{bottom:p}},l?c:{})),(s=!!h.right,u={[`&-placement-right > ${d}-arrow,&-placement-rightTop > ${d}-arrow,&-placement-rightBottom > ${d}-arrow`]:{left:{_skip_check_:!0,value:g},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${d}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${d}-arrow`]:{top:p},[`&-placement-rightBottom > ${d}-arrow`]:{bottom:p}},s?u:{}))}}let p5={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},p8={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},p7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function p9(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,c={},s=p3({contentRadius:a,limitVerticalRadius:!0});return Object.keys(p5).forEach(e=>{let a=Object.assign(Object.assign({},r&&p8[e]||p5[e]),{offset:[0,0],dynamicInset:!0});switch(c[e]=a,p7.has(e)&&(a.autoArrow=!1),e){case"top":case"topLeft":case"topRight":a.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":a.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":a.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":a.offset[0]=l+o}if(r)switch(e){case"topLeft":case"bottomLeft":a.offset[0]=-s.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":a.offset[0]=s.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":a.offset[1]=-(2*s.arrowOffsetHorizontal)+l;break;case"leftBottom":case"rightBottom":a.offset[1]=2*s.arrowOffsetHorizontal-l}a.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),r&&"object"==typeof r?r:{});return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,s,t,n),i&&(a.htmlRegion="visibleFirst")}),c}function me(e,t){return le.reduce((n,r)=>{let o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}let mt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},p3({contentRadius:e.borderRadius,limitVerticalRadius:!0})),p2(nR(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),mn=(e,t=!0)=>rK("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e;return[(e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:c,boxShadowSecondary:s,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(i).add(p).add(f).equal(),g=t(i).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:g,minHeight:c,padding:`${tg(e.calc(u).div(2).equal())} ${tg(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:s,boxSizing:"border-box"},"&-placement-topLeft,&-placement-topRight,&-placement-bottomLeft,&-placement-bottomRight":{minWidth:m},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${n}-inner`]:{borderRadius:e.min(i,8)}},[`${n}-content`]:{position:"relative"}}),me(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},p6(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]})(nR(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),uk(e,"zoom-big-fast")]},mt,{resetStyle:!1,injectStyle:t})(e),mr=le.map(e=>`${e}-inverse`),mo=["success","processing","error","default","warning"];function ma(e,t=!0){return t?[].concat((0,eM.A)(mr),(0,eM.A)(le)).includes(e):le.includes(e)}function mi(e,t){let n=ma(t),r=E()({[`${e}-${t}`]:t&&n}),o={},a={},i=lG(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255;return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=l<.5?"#FFF":"#000",a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}var ml=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mc=x.forwardRef((e,t)=>{var n,r;let{prefixCls:o,openClassName:a,getTooltipContainer:i,color:l,overlayInnerStyle:c,children:s,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:p,arrow:m=!0,title:g,overlay:h,builtinPlacements:v,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0,motion:$,getPopupContainer:w,placement:C="top",mouseEnterDelay:S=.1,mouseLeaveDelay:k=.1,overlayStyle:O,rootClassName:A,overlayClassName:I,styles:N,classNames:j}=e,M=ml(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),R=!!m,[,P]=rq(),{getPopupContainer:T,getPrefixCls:z,direction:B,className:D,style:H,classNames:L,styles:F}=eq("tooltip"),W=aj(),_=x.useRef(null),V=()=>{var e;null==(e=_.current)||e.forceAlign()};x.useImperativeHandle(t,()=>{var e,t;return{forceAlign:V,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:null==(e=_.current)?void 0:e.nativeElement,popupElement:null==(t=_.current)?void 0:t.popupElement}});let[q,K]=ny(!1,{value:null!=(n=e.open)?n:e.visible,defaultValue:null!=(r=e.defaultOpen)?r:e.defaultVisible}),X=!g&&!h&&0!==g,G=x.useMemo(()=>{var e,t;let n=b;return"object"==typeof m&&(n=null!=(t=null!=(e=m.pointAtCenter)?e:m.arrowPointAtCenter)?t:b),v||p9({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:R?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS,visibleFirst:!0})},[b,m,v,P]),Y=x.useMemo(()=>0===g?g:h||g||"",[h,g]),U=x.createElement(sG,{space:!0},"function"==typeof Y?Y():Y),Q=z("tooltip",o),Z=z(),J=e["data-popover-inject"],ee=q;"open"in e||"visible"in e||!X||(ee=!1);let et=x.isValidElement(s)&&!o8(s)?s:x.createElement("span",null,s),en=et.props,er=en.className&&"string"!=typeof en.className?en.className:E()(en.className,a||`${Q}-open`),[eo,ea,ei]=mn(Q,!J),el=mi(Q,l),ec=el.arrowStyle,es=E()(I,{[`${Q}-rtl`]:"rtl"===B},el.className,A,ea,ei,D,L.root,null==j?void 0:j.root),eu=E()(L.body,null==j?void 0:j.body),[ed,ef]=aY("Tooltip",M.zIndex),ep=x.createElement(p1,Object.assign({},M,{zIndex:ed,showArrow:R,placement:C,mouseEnterDelay:S,mouseLeaveDelay:k,prefixCls:Q,classNames:{root:es,body:eu},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ec),F.root),H),O),null==N?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},F.body),c),null==N?void 0:N.body),el.overlayStyle)},getTooltipContainer:w||i||T,ref:_,builtinPlacements:G,overlay:U,visible:ee,onVisibleChange:t=>{var n,r;K(!X&&t),X||(null==(n=e.onOpenChange)||n.call(e,t),null==(r=e.onVisibleChange)||r.call(e,t))},afterVisibleChange:null!=u?u:d,arrowContent:x.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:iV(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=p?p:!!f}),ee?o9(et,{className:er}):et);return eo(x.createElement(aK.Provider,{value:ef},ep))});mc._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=x.useContext(eW),c=l("tooltip",t),[s,u,d]=mn(c),f=mi(c,a),p=f.arrowStyle,m=Object.assign(Object.assign({},i),f.overlayStyle),g=E()(u,d,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return s(x.createElement("div",{className:g,style:p},x.createElement("div",{className:`${c}-arrow`}),x.createElement(pY,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:m}),o)))};let ms=mc,mu=rK("Popover",e=>{let{colorBgElevated:t,colorText:n}=e,r=nR(e,{popoverBg:t,popoverColor:n});return[(e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},nF(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},p6(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]})(r),(e=>{let{componentCls:t}=e;return{[t]:le.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}})(r),uk(r,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},p2(e)),p3({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:12*!a,titleMarginBottom:a?0:c,titlePadding:a?`${f/2}px ${o}px ${f/2-t}px`:0,titleBorderBottom:a?`${t}px ${s} ${u}`:"none",innerContentPadding:a?`${d}px ${o}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var md=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mf=({title:e,content:t,prefixCls:n})=>e||t?x.createElement(x.Fragment,null,e&&x.createElement("div",{className:`${n}-title`},e),t&&x.createElement("div",{className:`${n}-inner-content`},t)):null,mp=e=>{let{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:l,children:c}=e,s=pG(i),u=pG(l),d=E()(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return x.createElement("div",{className:d,style:o},x.createElement("div",{className:`${n}-arrow`}),x.createElement(pY,Object.assign({},e,{className:t,prefixCls:n}),c||x.createElement(mf,{prefixCls:n,title:s,content:u})))},mm=e=>{let{prefixCls:t,className:n}=e,r=md(e,["prefixCls","className"]),{getPrefixCls:o}=x.useContext(eW),a=o("popover",t),[i,l,c]=mu(a);return i(x.createElement(mp,Object.assign({},r,{prefixCls:a,hashId:l,className:E()(n,c)})))};var mg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mh=x.forwardRef((e,t)=>{var n,r;let{prefixCls:o,title:a,content:i,overlayClassName:l,placement:c="top",trigger:s="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:p,overlayStyle:m={},styles:g,classNames:h}=e,v=mg(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:y,style:$,classNames:w,styles:C}=eq("popover"),S=b("popover",o),[k,O,A]=mu(S),I=b(),N=E()(l,O,A,y,w.root,null==h?void 0:h.root),j=E()(w.body,null==h?void 0:h.body),[M,R]=ny(!1,{value:null!=(n=e.open)?n:e.visible,defaultValue:null!=(r=e.defaultOpen)?r:e.defaultVisible}),P=(e,t)=>{R(e,!0),null==p||p(e,t)},T=pG(a),z=pG(i);return k(x.createElement(ms,Object.assign({placement:c,trigger:s,mouseEnterDelay:d,mouseLeaveDelay:f},v,{prefixCls:S,classNames:{root:N,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),$),m),null==g?void 0:g.root),body:Object.assign(Object.assign({},C.body),null==g?void 0:g.body)},ref:t,open:M,onOpenChange:e=>{P(e)},overlay:T||z?x.createElement(mf,{prefixCls:S,title:T,content:z}):null,transitionName:iV(I,"zoom-big",v.transitionName),"data-popover-inject":!0}),o9(u,{onKeyDown:e=>{var t,n;(0,x.isValidElement)(u)&&(null==(n=null==u?void 0:(t=u.props).onKeyDown)||n.call(t,e)),e.keyCode===aM.ESC&&P(!1,e)}})))});mh._InternalPanelDoNotUseOrYouWillBeFired=mm;let mv=mh,mb=e=>{let{size:t,shape:n}=x.useContext(pV),r=x.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return x.createElement(pV.Provider,{value:r},e.children)};pX.Group=e=>{var t,n,r,o;let{getPrefixCls:a,direction:i}=x.useContext(eW),{prefixCls:l,className:c,rootClassName:s,style:u,maxCount:d,maxStyle:f,size:p,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:h,children:v,max:b}=e,y=a("avatar",l),$=`${y}-group`,w=a$(y),[C,S,k]=pq(y,w),O=E()($,{[`${$}-rtl`]:"rtl"===i},k,w,c,s,S),A=j(v).map((e,t)=>o9(e,{key:`avatar-key-${t}`})),I=(null==b?void 0:b.count)||d,N=A.length;if(I&&I<N){let e=A.slice(0,I),a=A.slice(I,N),i=(null==b?void 0:b.style)||f,l=(null==(t=null==b?void 0:b.popover)?void 0:t.trigger)||h||"hover",c=(null==(n=null==b?void 0:b.popover)?void 0:n.placement)||g||"top",s=Object.assign(Object.assign({content:a},null==b?void 0:b.popover),{classNames:{root:E()(`${$}-popover`,null==(o=null==(r=null==b?void 0:b.popover)?void 0:r.classNames)?void 0:o.root)},placement:c,trigger:l});return e.push(x.createElement(mv,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},s),x.createElement(pX,{style:i},`+${N-I}`))),C(x.createElement(mb,{shape:m,size:p},x.createElement("div",{className:O,style:u},e)))}return C(x.createElement(mb,{shape:m,size:p},x.createElement("div",{className:O,style:u},A)))};let my=pX,m$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};var mx=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:m$}))});let mw=rK("BackTop",e=>{let{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:r,colorText:o,controlHeightLG:a,calc:i}=e,l=nR(e,{backTopBackground:n,backTopColor:r,backTopHoverBackground:o,backTopFontSize:t,backTopSize:a,backTopBlockEnd:i(a).mul(1.25).equal(),backTopInlineEnd:i(a).mul(2.5).equal(),backTopInlineEndMD:i(a).mul(1.5).equal(),backTopInlineEndXS:i(a).mul(.5).equal()});return[(e=>{let{componentCls:t,backTopFontSize:n,backTopSize:r,zIndexPopup:o}=e;return{[t]:Object.assign(Object.assign({},nF(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:o,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:r,height:r,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:r,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:tg(r)}})}})(l),(e=>{let{componentCls:t,screenMD:n,screenXS:r,backTopInlineEndMD:o,backTopInlineEndXS:a}=e;return{[`@media (max-width: ${tg(n)})`]:{[t]:{insetInlineEnd:o}},[`@media (max-width: ${tg(r)})`]:{[t]:{insetInlineEnd:a}}}})(l)]},e=>({zIndexPopup:e.zIndexBase+10})),mC=e=>{let{prefixCls:t,className:n,rootClassName:r,visibilityHeight:o=400,target:a,onClick:i,duration:l=450}=e,[c,s]=x.useState(0===o),u=x.useRef(null),d=()=>{var e;return(null==(e=u.current)?void 0:e.ownerDocument)||window},f=eD(e=>{s(ab(e.target)>=o)});x.useEffect(()=>{let e=(a||d)();return f({target:e}),null==e||e.addEventListener("scroll",f),()=>{f.cancel(),null==e||e.removeEventListener("scroll",f)}},[a]);let{getPrefixCls:p,direction:m}=x.useContext(eW),g=p("back-top",t),h=p(),[v,b,y]=mw(g),$=E()(b,y,g,{[`${g}-rtl`]:"rtl"===m},n,r),w=iX(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),C=x.createElement("div",{className:`${g}-content`},x.createElement("div",{className:`${g}-icon`},x.createElement(mx,null)));return v(x.createElement("div",Object.assign({},w,{className:$,onClick:e=>{ay(0,{getContainer:a||d,duration:l}),null==i||i(e)},ref:u}),x.createElement(oG,{visible:c,motionName:`${h}-fade`},({className:t})=>o9(e.children||C,({className:e})=>({className:E()(t,e)})))))},mE=new na("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),mS=new na("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),mk=new na("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),mO=new na("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),mA=new na("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),mI=new na("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),mN=e=>{let{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,a=e.colorTextLightSolid,i=e.colorError,l=e.colorErrorHover;return nR(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:a,badgeColor:i,badgeColorHover:l,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},mj=e=>{let{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},mM=rK("Badge",e=>(e=>{let{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:a,textFontSizeSM:i,statusSize:l,dotSize:c,textFontWeight:s,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,m=`${r}-scroll-number`,g=me(e,(e,{darkColor:n})=>({[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:s,fontSize:a,lineHeight:tg(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${tg(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:i,lineHeight:tg(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${tg(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${tg(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:mI,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:mE,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mS,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:mk,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mO,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:mA,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(mN(e)),mj),mR=rK(["Badge","Ribbon"],e=>(e=>{let{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:a}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=me(e,(e,{darkColor:t})=>({[`&${i}-color-${e}`]:{background:t,color:t}}));return{[l]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{position:"absolute",top:r,padding:`0 ${tg(e.paddingXS)}`,color:e.colorPrimary,lineHeight:tg(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${tg(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${i}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(mN(e)),mj),mP=e=>{let t,{prefixCls:n,value:r,current:o,offset:a=0}=e;return a&&(t={position:"absolute",top:`${a}00%`,left:0}),x.createElement("span",{style:t,className:E()(`${n}-only-unit`,{current:o})},r)},mT=e=>{let t,n,{prefixCls:r,count:o,value:a}=e,i=Number(a),l=Math.abs(o),[c,s]=x.useState(i),[u,d]=x.useState(l),f=()=>{s(i),d(l)};if(x.useEffect(()=>{let e=setTimeout(f,1e3);return()=>clearTimeout(e)},[i]),c===i||Number.isNaN(i)||Number.isNaN(c))t=[x.createElement(mP,Object.assign({},e,{key:i,current:!0}))],n={transition:"none"};else{t=[];let r=i+10,o=[];for(let e=i;e<=r;e+=1)o.push(e);let a=u<l?1:-1,s=o.findIndex(e=>e%10===c);t=(a<0?o.slice(0,s+1):o.slice(s)).map((t,n)=>x.createElement(mP,Object.assign({},e,{key:t,value:t%10,offset:a<0?n-s:n,current:n===s}))),n={transform:`translateY(${-function(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}(c,i,a)}00%)`}}return x.createElement("span",{className:`${r}-only`,style:n,onTransitionEnd:f},t)};var mz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mB=x.forwardRef((e,t)=>{let{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:l,show:c,component:s="sup",children:u}=e,d=mz(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=x.useContext(eW),p=f("scroll-number",n),m=Object.assign(Object.assign({},d),{"data-show":c,style:i,className:E()(p,o,a),title:l}),g=r;if(r&&Number(r)%1==0){let e=String(r).split("");g=x.createElement("bdi",null,e.map((t,n)=>x.createElement(mT,{prefixCls:p,count:Number(r),value:t,key:e.length-n})))}return((null==i?void 0:i.borderColor)&&(m.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u)?o9(u,e=>({className:E()(`${p}-custom-component`,null==e?void 0:e.className,a)})):x.createElement(s,Object.assign({},m,{ref:t}),g)});var mD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mH=x.forwardRef((e,t)=>{var n,r,o,a,i;let{prefixCls:l,scrollNumberPrefixCls:c,children:s,status:u,text:d,color:f,count:p=null,overflowCount:m=99,dot:g=!1,size:h="default",title:v,offset:b,style:y,className:$,rootClassName:w,classNames:C,styles:S,showZero:k=!1}=e,O=mD(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:A,direction:I,badge:N}=x.useContext(eW),j=A("badge",l),[M,R,P]=mM(j),T=p>m?`${m}+`:p,z="0"===T||0===T||"0"===d||0===d,B=null===p||z&&!k,D=(null!=u||null!=f)&&B,H=null!=u||!z,L=g&&!z,F=L?"":T,W=(0,x.useMemo)(()=>((null==F||""===F)&&(null==d||""===d)||z&&!k)&&!L,[F,z,k,L,d]),_=(0,x.useRef)(p);W||(_.current=p);let V=_.current,q=(0,x.useRef)(F);W||(q.current=F);let K=q.current,X=(0,x.useRef)(L);W||(X.current=L);let G=(0,x.useMemo)(()=>{if(!b)return Object.assign(Object.assign({},null==N?void 0:N.style),y);let e={marginTop:b[1]};return"rtl"===I?e.left=Number.parseInt(b[0],10):e.right=-Number.parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},e),null==N?void 0:N.style),y)},[I,b,y,null==N?void 0:N.style]),Y=null!=v?v:"string"==typeof V||"number"==typeof V?V:void 0,U=!W&&(0===d?k:!!d&&!0!==d),Q=U?x.createElement("span",{className:`${j}-status-text`},d):null,Z=V&&"object"==typeof V?o9(V,e=>({style:Object.assign(Object.assign({},G),e.style)})):void 0,J=ma(f,!1),ee=E()(null==C?void 0:C.indicator,null==(n=null==N?void 0:N.classNames)?void 0:n.indicator,{[`${j}-status-dot`]:D,[`${j}-status-${u}`]:!!u,[`${j}-color-${f}`]:J}),et={};f&&!J&&(et.color=f,et.background=f);let en=E()(j,{[`${j}-status`]:D,[`${j}-not-a-wrapper`]:!s,[`${j}-rtl`]:"rtl"===I},$,w,null==N?void 0:N.className,null==(r=null==N?void 0:N.classNames)?void 0:r.root,null==C?void 0:C.root,R,P);if(!s&&D&&(d||H||!B)){let e=G.color;return M(x.createElement("span",Object.assign({},O,{className:en,style:Object.assign(Object.assign(Object.assign({},null==S?void 0:S.root),null==(o=null==N?void 0:N.styles)?void 0:o.root),G)}),x.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},null==S?void 0:S.indicator),null==(a=null==N?void 0:N.styles)?void 0:a.indicator),et)}),U&&x.createElement("span",{style:{color:e},className:`${j}-status-text`},d)))}return M(x.createElement("span",Object.assign({ref:t},O,{className:en,style:Object.assign(Object.assign({},null==(i=null==N?void 0:N.styles)?void 0:i.root),null==S?void 0:S.root)}),s,x.createElement(oG,{visible:!W,motionName:`${j}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:e})=>{var t,n;let r=A("scroll-number",c),o=X.current,a=E()(null==C?void 0:C.indicator,null==(t=null==N?void 0:N.classNames)?void 0:t.indicator,{[`${j}-dot`]:o,[`${j}-count`]:!o,[`${j}-count-sm`]:"small"===h,[`${j}-multiple-words`]:!o&&K&&K.toString().length>1,[`${j}-status-${u}`]:!!u,[`${j}-color-${f}`]:J}),i=Object.assign(Object.assign(Object.assign({},null==S?void 0:S.indicator),null==(n=null==N?void 0:N.styles)?void 0:n.indicator),G);return f&&!J&&((i=i||{}).background=f),x.createElement(mB,{prefixCls:r,show:!W,motionClassName:e,className:a,count:K,title:Y,style:i,key:"scrollNumber"},Z)}),Q))});mH.Ribbon=e=>{let{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:l="end",rootClassName:c}=e,{getPrefixCls:s,direction:u}=x.useContext(eW),d=s("ribbon",n),f=`${d}-wrapper`,[p,m,g]=mR(d,f),h=ma(o,!1),v=E()(d,`${d}-placement-${l}`,{[`${d}-rtl`]:"rtl"===u,[`${d}-color-${o}`]:h},t),b={},y={};return o&&!h&&(b.background=o,y.color=o),p(x.createElement("div",{className:E()(f,c,m,g)},a,x.createElement("div",{className:E()(v,m),style:Object.assign(Object.assign({},b),r)},x.createElement("span",{className:`${d}-text`},i),x.createElement("div",{className:`${d}-corner`,style:y}))))};let mL=mH,mF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var mW=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:mF}))}),m_=aM.ESC,mV=aM.TAB,mq=(0,x.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=(0,x.useMemo)(function(){return"function"==typeof n?n():n},[n]),i=G(t,Z(a));return w().createElement(w().Fragment,null,r&&w().createElement("div",{className:"".concat(o,"-arrow")}),w().cloneElement(a,{ref:U(a)?i:void 0}))}),mK={adjustX:1,adjustY:1},mX=[0,0];let mG={topLeft:{points:["bl","tl"],overflow:mK,offset:[0,-4],targetOffset:mX},top:{points:["bc","tc"],overflow:mK,offset:[0,-4],targetOffset:mX},topRight:{points:["br","tr"],overflow:mK,offset:[0,-4],targetOffset:mX},bottomLeft:{points:["tl","bl"],overflow:mK,offset:[0,4],targetOffset:mX},bottom:{points:["tc","bc"],overflow:mK,offset:[0,4],targetOffset:mX},bottomRight:{points:["tr","br"],overflow:mK,offset:[0,4],targetOffset:mX}};var mY=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];let mU=w().forwardRef(function(e,t){var n,r,o,a,i,l,c,s,u,d,f,p,m,g,h=e.arrow,v=void 0!==h&&h,b=e.prefixCls,y=void 0===b?"rc-dropdown":b,$=e.transitionName,C=e.animation,k=e.align,O=e.placement,A=e.placements,I=e.getPopupContainer,N=e.showAction,j=e.hideAction,M=e.overlayClassName,R=e.overlayStyle,P=e.visible,T=e.trigger,z=void 0===T?["hover"]:T,B=e.autoFocus,D=e.overlay,H=e.children,L=e.onVisibleChange,F=(0,r3.A)(e,mY),W=w().useState(),_=(0,eK.A)(W,2),V=_[0],q=_[1],K="visible"in e?P:V,X=w().useRef(null),Y=w().useRef(null),Q=w().useRef(null);w().useImperativeHandle(t,function(){return X.current});var J=function(e){q(e),null==L||L(e)};r=(n={visible:K,triggerRef:Q,onVisibleChange:J,autoFocus:B,overlayRef:Y}).visible,o=n.triggerRef,a=n.onVisibleChange,i=n.autoFocus,l=n.overlayRef,c=x.useRef(!1),s=function(){if(r){var e,t;null==(e=o.current)||null==(t=e.focus)||t.call(e),null==a||a(!1)}},u=function(){var e;return null!=(e=l.current)&&!!e.focus&&(l.current.focus(),c.current=!0,!0)},d=function(e){switch(e.keyCode){case m_:s();break;case mV:var t=!1;c.current||(t=u()),t?e.preventDefault():s()}},x.useEffect(function(){return r?(window.addEventListener("keydown",d),i&&eB(u,3),function(){window.removeEventListener("keydown",d),c.current=!1}):function(){c.current=!1}},[r]);var ee=function(){return w().createElement(mq,{ref:Y,overlay:D,prefixCls:y,arrow:v})},et=w().cloneElement(H,{className:E()(null==(g=H.props)?void 0:g.className,K&&(void 0!==(f=e.openClassName)?f:"".concat(y,"-open"))),ref:U(H)?G(Q,Z(H)):void 0}),en=j;return en||-1===z.indexOf("contextMenu")||(en=["click"]),w().createElement(fe,S({builtinPlacements:void 0===A?mG:A},F,{prefixCls:y,ref:X,popupClassName:E()(M,(0,eX.A)({},"".concat(y,"-show-arrow"),v)),popupStyle:R,action:z,showAction:N,hideAction:en,popupPlacement:void 0===O?"bottomLeft":O,popupAlign:k,popupTransitionName:$,popupAnimation:C,popupVisible:K,stretch:(p=e.minOverlayWidthMatchTrigger,m=e.alignPoint,"minOverlayWidthMatchTrigger"in e?p:!m)?"minWidth":"",popup:"function"==typeof D?ee:ee(),onPopupVisibleChange:J,onPopupClick:function(t){var n=e.onOverlayClick;q(!1),n&&n(t)},getPopupContainer:I}),et)});var mQ=x.createContext(null);function mZ(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function mJ(e){return mZ(x.useContext(mQ),e)}var m0=["children","locked"],m1=x.createContext(null);function m2(e){var t=e.children,n=e.locked,r=(0,r3.A)(e,m0),o=x.useContext(m1),a=q(function(){var e;return e=(0,D.A)({},o),Object.keys(r).forEach(function(t){var n=r[t];void 0!==n&&(e[t]=n)}),e},[o,r],function(e,t){return!n&&(e[0]!==t[0]||!e8(e[1],t[1],!0))});return x.createElement(m1.Provider,{value:a},t)}var m4=x.createContext(null);function m3(){return x.useContext(m4)}var m6=x.createContext([]);function m5(e){var t=x.useContext(m6);return x.useMemo(function(){return void 0!==e?[].concat((0,eM.A)(t),[e]):t},[t,e])}var m8=x.createContext(null),m7=x.createContext({});function m9(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(iG(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var ge=aM.LEFT,gt=aM.RIGHT,gn=aM.UP,gr=aM.DOWN,go=aM.ENTER,ga=aM.ESC,gi=aM.HOME,gl=aM.END,gc=[gn,gr,ge,gt];function gs(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,eM.A)(e.querySelectorAll("*")).filter(function(e){return m9(e,t)});return m9(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function gu(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=gs(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var gd=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(mZ(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:o}},gf="__RC_UTIL_PATH_SPLIT__",gp=function(e){return e.join(gf)},gm="rc-menu-more";function gg(e){var t=x.useRef(e);t.current=e;var n=x.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(r))},[]);return e?n:void 0}var gh=Math.random().toFixed(5).toString().slice(2),gv=0;function gb(e,t,n,r){var o=x.useContext(m1),a=o.activeKey,i=o.onActive,l=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),i(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),c}function gy(e){var t=x.useContext(m1),n=t.mode,r=t.rtl,o=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}function g$(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=x.createElement(n,(0,D.A)({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var gx=["item"];function gw(e){var t=e.item,n=(0,r3.A)(e,gx);return Object.defineProperty(n,"item",{get:function(){return B(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var gC=["title","attribute","elementRef"],gE=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],gS=["active"],gk=function(e){(0,eE.A)(n,e);var t=eA(n);function n(){return(0,ew.A)(this,n),t.apply(this,arguments)}return(0,eC.A)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=iX((0,r3.A)(e,gC),["eventKey","popupClassName","popupOffset","onTitleClick"]);return B(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),x.createElement(dM.Item,S({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(x.Component),gO=x.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey,a=(e.warnKey,e.disabled),i=e.itemIcon,l=e.children,c=e.role,s=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,p=e.onFocus,m=(0,r3.A)(e,gE),g=mJ(o),h=x.useContext(m1),v=h.prefixCls,b=h.onItemClick,y=h.disabled,$=h.overflowDisabled,w=h.itemIcon,C=h.selectedKeys,k=h.onActive,O=x.useContext(m7)._internalRenderMenuItem,A="".concat(v,"-item"),I=x.useRef(),N=x.useRef(),j=y||a,M=Y(t,N),R=m5(o),P=function(e){return{key:o,keyPath:(0,eM.A)(R).reverse(),item:I.current,domEvent:e}},T=gb(o,j,s,u),z=T.active,B=(0,r3.A)(T,gS),H=C.includes(o),L=gy(R.length),F={};"option"===e.role&&(F["aria-selected"]=H);var W=x.createElement(gk,S({ref:I,elementRef:M,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":$&&g?null:g},iX(m,["extra"]),B,F,{component:"li","aria-disabled":a,style:(0,D.A)((0,D.A)({},L),n),className:E()(A,(0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(A,"-active"),z),"".concat(A,"-selected"),H),"".concat(A,"-disabled"),j),r),onClick:function(e){if(!j){var t=P(e);null==d||d(gw(t)),b(t)}},onKeyDown:function(e){if(null==f||f(e),e.which===aM.ENTER){var t=P(e);null==d||d(gw(t)),b(t)}},onFocus:function(e){k(o),null==p||p(e)}}),l,x.createElement(g$,{props:(0,D.A)((0,D.A)({},e),{},{isSelected:H}),icon:i||w}));return O&&(W=O(W,e,{selected:H})),W});let gA=x.forwardRef(function(e,t){var n=e.eventKey,r=m3(),o=m5(n);return(x.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r)?null:x.createElement(gO,S({},e,{ref:t}))});var gI=["className","children"],gN=x.forwardRef(function(e,t){var n=e.className,r=e.children,o=(0,r3.A)(e,gI),a=x.useContext(m1),i=a.prefixCls,l=a.mode,c=a.rtl;return x.createElement("ul",S({className:E()(i,c&&"".concat(i,"-rtl"),"".concat(i,"-sub"),"".concat(i,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)});function gj(e,t){return j(e).map(function(e,n){if(x.isValidElement(e)){var r,o,a=e.key,i=null!=(r=null==(o=e.props)?void 0:o.eventKey)?r:a;null==i&&(i="tmp_key-".concat([].concat((0,eM.A)(t),[n]).join("-")));var l={key:i,eventKey:i};return x.cloneElement(e,l)}return e})}gN.displayName="SubMenuList";var gM={adjustX:1,adjustY:1},gR={topLeft:{points:["bl","tl"],overflow:gM},topRight:{points:["br","tr"],overflow:gM},bottomLeft:{points:["tl","bl"],overflow:gM},bottomRight:{points:["tr","br"],overflow:gM},leftTop:{points:["tr","tl"],overflow:gM},leftBottom:{points:["br","bl"],overflow:gM},rightTop:{points:["tl","tr"],overflow:gM},rightBottom:{points:["bl","br"],overflow:gM}},gP={topLeft:{points:["bl","tl"],overflow:gM},topRight:{points:["br","tr"],overflow:gM},bottomLeft:{points:["tl","bl"],overflow:gM},bottomRight:{points:["tr","br"],overflow:gM},rightTop:{points:["tr","tl"],overflow:gM},rightBottom:{points:["br","bl"],overflow:gM},leftTop:{points:["tl","tr"],overflow:gM},leftBottom:{points:["bl","br"],overflow:gM}};function gT(e,t,n){return t||(n?n[e]||n.other:void 0)}var gz={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function gB(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,l=e.popupOffset,c=e.disabled,s=e.mode,u=e.onVisibleChange,d=x.useContext(m1),f=d.getPopupContainer,p=d.rtl,m=d.subMenuOpenDelay,g=d.subMenuCloseDelay,h=d.builtinPlacements,v=d.triggerSubMenuAction,b=d.forceSubMenuRender,y=d.rootClassName,$=d.motion,w=d.defaultMotions,C=x.useState(!1),S=(0,eK.A)(C,2),k=S[0],O=S[1],A=p?(0,D.A)((0,D.A)({},gP),h):(0,D.A)((0,D.A)({},gR),h),I=gz[s],N=gT(s,$,w),j=x.useRef(N);"inline"!==s&&(j.current=N);var M=(0,D.A)((0,D.A)({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),R=x.useRef();return x.useEffect(function(){return R.current=eB(function(){O(n)}),function(){eB.cancel(R.current)}},[n]),x.createElement(fe,{prefixCls:t,popupClassName:E()("".concat(t,"-popup"),(0,eX.A)({},"".concat(t,"-rtl"),p),i,y),stretch:"horizontal"===s?"minWidth":null,getPopupContainer:f,builtinPlacements:A,popupPlacement:I,popupVisible:k,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[v],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:b,popupMotion:M,fresh:!0},r)}function gD(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=x.useContext(m1),l=i.prefixCls,c=i.forceSubMenuRender,s=i.motion,u=i.defaultMotions,d=i.mode,f=x.useRef(!1);f.current=d===a;var p=x.useState(!f.current),m=(0,eK.A)(p,2),g=m[0],h=m[1],v=!!f.current&&n;x.useEffect(function(){f.current&&h(!1)},[d]);var b=(0,D.A)({},gT(a,s,u));r.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return(b.onVisibleChanged=function(e){return f.current||e||h(!0),null==y?void 0:y(e)},g)?null:x.createElement(m2,{mode:a,locked:!f.current},x.createElement(oG,S({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(e){var n=e.className,r=e.style;return x.createElement(gN,{id:t,className:n,style:r},o)}))}var gH=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gL=["active"],gF=x.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey,i=(e.warnKey,e.disabled),l=e.internalPopupClose,c=e.children,s=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.popupStyle,m=e.onClick,g=e.onMouseEnter,h=e.onMouseLeave,v=e.onTitleClick,b=e.onTitleMouseEnter,y=e.onTitleMouseLeave,$=(0,r3.A)(e,gH),w=mJ(a),C=x.useContext(m1),k=C.prefixCls,O=C.mode,A=C.openKeys,I=C.disabled,N=C.overflowDisabled,j=C.activeKey,M=C.selectedKeys,R=C.itemIcon,P=C.expandIcon,T=C.onItemClick,z=C.onOpenChange,B=C.onActive,H=x.useContext(m7)._internalRenderSubMenuItem,L=x.useContext(m8).isSubPathKey,F=m5(),W="".concat(k,"-submenu"),_=I||i,V=x.useRef(),q=x.useRef(),K=null!=u?u:P,X=A.includes(a),G=!N&&X,Y=L(M,a),U=gb(a,_,b,y),Q=U.active,Z=(0,r3.A)(U,gL),J=x.useState(!1),ee=(0,eK.A)(J,2),et=ee[0],en=ee[1],er=function(e){_||en(e)},eo=x.useMemo(function(){return Q||"inline"!==O&&(et||L([j],a))},[O,Q,j,et,a,L]),ea=gy(F.length),ei=gg(function(e){null==m||m(gw(e)),T(e)}),el=w&&"".concat(w,"-popup"),ec=x.useMemo(function(){return x.createElement(g$,{icon:"horizontal"!==O?K:void 0,props:(0,D.A)((0,D.A)({},e),{},{isOpen:G,isSubMenu:!0})},x.createElement("i",{className:"".concat(W,"-arrow")}))},[O,K,e,G,W]),es=x.createElement("div",S({role:"menuitem",style:ea,className:"".concat(W,"-title"),tabIndex:_?null:-1,ref:V,title:"string"==typeof o?o:null,"data-menu-id":N&&w?null:w,"aria-expanded":G,"aria-haspopup":!0,"aria-controls":el,"aria-disabled":_,onClick:function(e){_||(null==v||v({key:a,domEvent:e}),"inline"===O&&z(a,!X))},onFocus:function(){B(a)}},Z),o,ec),eu=x.useRef(O);if("inline"!==O&&F.length>1?eu.current="vertical":eu.current=O,!N){var ed=eu.current;es=x.createElement(gB,{mode:ed,prefixCls:W,visible:!l&&G&&"inline"!==O,popupClassName:d,popupOffset:f,popupStyle:p,popup:x.createElement(m2,{mode:"horizontal"===ed?"vertical":ed},x.createElement(gN,{id:el,ref:q},c)),disabled:_,onVisibleChange:function(e){"inline"!==O&&z(a,e)}},es)}var ef=x.createElement(dM.Item,S({ref:t,role:"none"},$,{component:"li",style:n,className:E()(W,"".concat(W,"-").concat(O),r,(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(W,"-open"),G),"".concat(W,"-active"),eo),"".concat(W,"-selected"),Y),"".concat(W,"-disabled"),_)),onMouseEnter:function(e){er(!0),null==g||g({key:a,domEvent:e})},onMouseLeave:function(e){er(!1),null==h||h({key:a,domEvent:e})}}),es,!N&&x.createElement(gD,{id:el,open:G,keyPath:F},c));return H&&(ef=H(ef,e,{selected:Y,active:eo,open:G,disabled:_})),x.createElement(m2,{onItemClick:ei,mode:"horizontal"===O?"vertical":O,itemIcon:null!=s?s:R,expandIcon:K},ef)}),gW=x.forwardRef(function(e,t){var n,r=e.eventKey,o=e.children,a=m5(r),i=gj(o,a),l=m3();return x.useEffect(function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}},[a]),n=l?i:x.createElement(gF,S({ref:t},e),i),x.createElement(m6.Provider,{value:a},n)});function g_(e){var t=e.className,n=e.style,r=x.useContext(m1).prefixCls;return m3()?null:x.createElement("li",{role:"separator",className:E()("".concat(r,"-item-divider"),t),style:n})}var gV=["className","title","eventKey","children"],gq=x.forwardRef(function(e,t){var n=e.className,r=e.title,o=(e.eventKey,e.children),a=(0,r3.A)(e,gV),i=x.useContext(m1).prefixCls,l="".concat(i,"-item-group");return x.createElement("li",S({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:E()(l,n)}),x.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),x.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),gK=x.forwardRef(function(e,t){var n=e.eventKey,r=gj(e.children,m5(n));return m3()?r:x.createElement(gq,S({ref:t},iX(e,["warnKey"])),r)}),gX=["label","children","key","type","extra"];function gG(e,t,n,r,o){var a=e,i=(0,D.A)({divider:g_,item:gA,group:gK,submenu:gW},r);return t&&(a=function e(t,n,r){var o=n.item,a=n.group,i=n.submenu,l=n.divider;return(t||[]).map(function(t,c){if(t&&"object"===(0,k.A)(t)){var s=t.label,u=t.children,d=t.key,f=t.type,p=t.extra,m=(0,r3.A)(t,gX),g=null!=d?d:"tmp-".concat(c);return u||"group"===f?"group"===f?x.createElement(a,S({key:g},m,{title:s}),e(u,n,r)):x.createElement(i,S({key:g},m,{title:s}),e(u,n,r)):"divider"===f?x.createElement(l,S({key:g},m)):x.createElement(o,S({key:g},m,{extra:p}),s,(!!p||0===p)&&x.createElement("span",{className:"".concat(r,"-item-extra")},p))}return null}).filter(function(e){return e})}(t,i,o)),gj(a,n)}var gY=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],gU=[],gQ=x.forwardRef(function(e,t){var n,r,o,a,i,l,c,s,u,d,f,p,m,g,h,v,b,y,$,w,C,k,O,A,I,N,j=e.prefixCls,M=void 0===j?"rc-menu":j,R=e.rootClassName,P=e.style,T=e.className,z=e.tabIndex,B=e.items,L=e.children,F=e.direction,W=e.id,_=e.mode,V=void 0===_?"vertical":_,q=e.inlineCollapsed,K=e.disabled,X=e.disabledOverflow,G=e.subMenuOpenDelay,Y=e.subMenuCloseDelay,U=e.forceSubMenuRender,Q=e.defaultOpenKeys,Z=e.openKeys,J=e.activeKey,ee=e.defaultActiveFirst,et=e.selectable,en=void 0===et||et,er=e.multiple,eo=void 0!==er&&er,ea=e.defaultSelectedKeys,ei=e.selectedKeys,el=e.onSelect,ec=e.onDeselect,es=e.inlineIndent,eu=e.motion,ed=e.defaultMotions,ef=e.triggerSubMenuAction,ep=e.builtinPlacements,em=e.itemIcon,eg=e.expandIcon,eh=e.overflowedIndicator,ev=void 0===eh?"...":eh,eb=e.overflowedIndicatorPopupClassName,ey=e.getPopupContainer,e$=e.onClick,ex=e.onOpenChange,ew=e.onKeyDown,eC=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),eE=e._internalRenderSubMenuItem,eS=e._internalComponents,ek=(0,r3.A)(e,gY),eO=x.useMemo(function(){return[gG(L,B,gU,eS,M),gG(L,B,gU,{},M)]},[L,B,eS]),eA=(0,eK.A)(eO,2),eI=eA[0],eN=eA[1],ej=x.useState(!1),eR=(0,eK.A)(ej,2),eP=eR[0],eT=eR[1],ez=x.useRef(),eD=(n=ny(W,{value:W}),o=(r=(0,eK.A)(n,2))[0],a=r[1],x.useEffect(function(){gv+=1;var e="".concat(gh,"-").concat(gv);a("rc-menu-uuid-".concat(e))},[]),o),eH="rtl"===F,eL=ny(Q,{value:Z,postState:function(e){return e||gU}}),eF=(0,eK.A)(eL,2),eW=eF[0],e_=eF[1],eV=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){e_(e),null==ex||ex(e)}t?(0,H.flushSync)(n):n()},eq=x.useState(eW),eG=(0,eK.A)(eq,2),eY=eG[0],eU=eG[1],eQ=x.useRef(!1),eZ=x.useMemo(function(){return("inline"===V||"vertical"===V)&&q?["vertical",q]:[V,!1]},[V,q]),eJ=(0,eK.A)(eZ,2),e0=eJ[0],e1=eJ[1],e2="inline"===e0,e4=x.useState(e0),e3=(0,eK.A)(e4,2),e6=e3[0],e5=e3[1],e7=x.useState(e1),e9=(0,eK.A)(e7,2),te=e9[0],tt=e9[1];x.useEffect(function(){e5(e0),tt(e1),eQ.current&&(e2?e_(eY):eV(gU))},[e0,e1]);var tn=x.useState(0),tr=(0,eK.A)(tn,2),to=tr[0],ta=tr[1],ti=to>=eI.length-1||"horizontal"!==e6||X;x.useEffect(function(){e2&&eU(eW)},[eW]),x.useEffect(function(){return eQ.current=!0,function(){eQ.current=!1}},[]);var tl=(i=x.useState({}),l=(0,eK.A)(i,2)[1],c=(0,x.useRef)(new Map),s=(0,x.useRef)(new Map),u=x.useState([]),f=(d=(0,eK.A)(u,2))[0],p=d[1],m=(0,x.useRef)(0),g=(0,x.useRef)(!1),h=function(){g.current||l({})},v=(0,x.useCallback)(function(e,t){var n=gp(t);s.current.set(n,e),c.current.set(e,n),m.current+=1;var r=m.current;Promise.resolve().then(function(){r===m.current&&h()})},[]),b=(0,x.useCallback)(function(e,t){var n=gp(t);s.current.delete(n),c.current.delete(e)},[]),y=(0,x.useCallback)(function(e){p(e)},[]),$=(0,x.useCallback)(function(e,t){var n=(c.current.get(e)||"").split(gf);return t&&f.includes(n[0])&&n.unshift(gm),n},[f]),w=(0,x.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return $(e,!0).includes(t)})},[$]),C=(0,x.useCallback)(function(e){var t="".concat(c.current.get(e)).concat(gf),n=new Set;return(0,eM.A)(s.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(s.current.get(e))}),n},[]),x.useEffect(function(){return function(){g.current=!0}},[]),{registerPath:v,unregisterPath:b,refreshOverflowKeys:y,isSubPathKey:w,getKeyPath:$,getKeys:function(){var e=(0,eM.A)(c.current.keys());return f.length&&e.push(gm),e},getSubPathKeys:C}),tc=tl.registerPath,ts=tl.unregisterPath,tu=tl.refreshOverflowKeys,td=tl.isSubPathKey,tf=tl.getKeyPath,tp=tl.getKeys,tm=tl.getSubPathKeys,tg=x.useMemo(function(){return{registerPath:tc,unregisterPath:ts}},[tc,ts]),th=x.useMemo(function(){return{isSubPathKey:td}},[td]);x.useEffect(function(){tu(ti?gU:eI.slice(to+1).map(function(e){return e.key}))},[to,ti]);var tv=ny(J||ee&&(null==(N=eI[0])?void 0:N.key),{value:J}),tb=(0,eK.A)(tv,2),ty=tb[0],t$=tb[1],tx=gg(function(e){t$(e)}),tw=gg(function(){t$(void 0)});(0,x.useImperativeHandle)(t,function(){return{list:ez.current,focus:function(e){var t,n,r=gd(tp(),eD),o=r.elements,a=r.key2element,i=r.element2key,l=gs(ez.current,o),c=null!=ty?ty:l[0]?i.get(l[0]):null==(t=eI.find(function(e){return!e.props.disabled}))?void 0:t.key,s=a.get(c);c&&s&&(null==s||null==(n=s.focus)||n.call(s,e))}}});var tC=ny(ea||[],{value:ei,postState:function(e){return Array.isArray(e)?e:null==e?gU:[e]}}),tE=(0,eK.A)(tC,2),tS=tE[0],tk=tE[1],tO=function(e){if(en){var t,n=e.key,r=tS.includes(n);tk(t=eo?r?tS.filter(function(e){return e!==n}):[].concat((0,eM.A)(tS),[n]):[n]);var o=(0,D.A)((0,D.A)({},e),{},{selectedKeys:t});r?null==ec||ec(o):null==el||el(o)}!eo&&eW.length&&"inline"!==e6&&eV(gU)},tA=gg(function(e){null==e$||e$(gw(e)),tO(e)}),tI=gg(function(e,t){var n=eW.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==e6){var r=tm(e);n=n.filter(function(e){return!r.has(e)})}e8(eW,n,!0)||eV(n,!0)}),tN=(k=function(e,t){var n=null!=t?t:!eW.includes(e);tI(e,n)},O=x.useRef(),(A=x.useRef()).current=ty,I=function(){eB.cancel(O.current)},x.useEffect(function(){return function(){I()}},[]),function(e){var t=e.which;if([].concat(gc,[go,ga,gi,gl]).includes(t)){var n=tp(),r=gd(n,eD),o=r,a=o.elements,i=o.key2element,l=o.element2key,c=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(i.get(ty),a),s=l.get(c),u=function(e,t,n,r){var o,a="prev",i="next",l="children",c="parent";if("inline"===e&&r===go)return{inlineTrigger:!0};var s=(0,eX.A)((0,eX.A)({},gn,a),gr,i),u=(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},ge,n?i:a),gt,n?a:i),gr,l),go,l),d=(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},gn,a),gr,i),go,l),ga,c),ge,n?l:c),gt,n?c:l);switch(null==(o=({inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d})["".concat(e).concat(t?"":"Sub")])?void 0:o[r]){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e6,1===tf(s,!0).length,eH,t);if(!u&&t!==gi&&t!==gl)return;(gc.includes(t)||[gi,gl].includes(t))&&e.preventDefault();var d=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=l.get(e);t$(r),I(),O.current=eB(function(){A.current===r&&t.focus()})}};if([gi,gl].includes(t)||u.sibling||!c){var f=c&&"inline"!==e6?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(c):ez.current,p=gs(f,a);d(t===gi?p[0]:t===gl?p[p.length-1]:gu(f,a,c,u.offset))}else if(u.inlineTrigger)k(s);else if(u.offset>0)k(s,!0),I(),O.current=eB(function(){r=gd(n,eD);var e=c.getAttribute("aria-controls");d(gu(document.getElementById(e),r.elements))},5);else if(u.offset<0){var m=tf(s,!0),g=m[m.length-2],h=i.get(g);k(g,!1),d(h)}}null==ew||ew(e)});x.useEffect(function(){eT(!0)},[]);var tj=x.useMemo(function(){return{_internalRenderMenuItem:eC,_internalRenderSubMenuItem:eE}},[eC,eE]),tM="horizontal"!==e6||X?eI:eI.map(function(e,t){return x.createElement(m2,{key:e.key,overflowDisabled:t>to},e)}),tR=x.createElement(dM,S({id:W,ref:ez,prefixCls:"".concat(M,"-overflow"),component:"ul",itemComponent:gA,className:E()(M,"".concat(M,"-root"),"".concat(M,"-").concat(e6),T,(0,eX.A)((0,eX.A)({},"".concat(M,"-inline-collapsed"),te),"".concat(M,"-rtl"),eH),R),dir:F,style:P,role:"menu",tabIndex:void 0===z?0:z,data:tM,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?eI.slice(-t):null;return x.createElement(gW,{eventKey:gm,title:ev,disabled:ti,internalPopupClose:0===t,popupClassName:eb},n)},maxCount:"horizontal"!==e6||X?dM.INVALIDATE:dM.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){ta(e)},onKeyDown:tN},ek));return x.createElement(m7.Provider,{value:tj},x.createElement(mQ.Provider,{value:eD},x.createElement(m2,{prefixCls:M,rootClassName:R,mode:e6,openKeys:eW,rtl:eH,disabled:K,motion:eP?eu:null,defaultMotions:eP?ed:null,activeKey:ty,onActive:tx,onInactive:tw,selectedKeys:tS,inlineIndent:void 0===es?24:es,subMenuOpenDelay:void 0===G?.1:G,subMenuCloseDelay:void 0===Y?.1:Y,forceSubMenuRender:U,builtinPlacements:ep,triggerSubMenuAction:void 0===ef?"hover":ef,getPopupContainer:ey,itemIcon:em,expandIcon:eg,onItemClick:tA,onOpenChange:tI},x.createElement(m8.Provider,{value:th},tR),x.createElement("div",{style:{display:"none"},"aria-hidden":!0},x.createElement(m4.Provider,{value:tg},eN)))))});gQ.Item=gA,gQ.SubMenu=gW,gQ.ItemGroup=gK,gQ.Divider=g_;let gZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var gJ=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:gZ}))});let g0=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),g1=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${a}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*i,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},g2=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],g4=rK("Layout",e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:i,headerColor:l,footerPadding:c,fontSize:s,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:i,color:l,lineHeight:tg(a),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:s,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},g1,{deprecatedTokens:g2}),g3=rK(["Layout","Sider"],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:a,triggerHeight:i,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:tg(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${tg(f)} ${tg(f)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${tg(f)} 0 0 ${tg(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${h}`,borderInlineStart:0}}}}},g1,{deprecatedTokens:g2});var g6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let g5={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},g8=x.createContext({}),g7=(s=0,(e="")=>(s+=1,`${e}${s}`)),g9=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:s=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:h}=e,v=g6(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,x.useContext)(g0),[y,$]=(0,x.useState)("collapsed"in e?e.collapsed:i),[w,C]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in e&&$(e.collapsed)},[e.collapsed]);let S=(t,n)=>{"collapsed"in e||$(t),null==g||g(t,n)},{getPrefixCls:k,direction:O}=(0,x.useContext)(eW),A=k("layout-sider",n),[I,N,j]=g3(A),M=(0,x.useRef)(null);M.current=e=>{C(e.matches),null==h||h(e.matches),y!==e.matches&&S(e.matches,"responsive")},(0,x.useEffect)(()=>{let e;function t(e){var t;return null==(t=M.current)?void 0:t.call(M,e)}return void 0!==(null==window?void 0:window.matchMedia)&&m&&m in g5&&(pD(e=window.matchMedia(`screen and (max-width: ${g5[m]})`),t),t(e)),()=>{pH(e,t)}},[m]),(0,x.useEffect)(()=>{let e=g7("ant-sider-");return b.addSider(e),()=>b.removeSider(e)},[]);let R=()=>{S(!y,"clickTrigger")},P=iX(v,["collapsed"]),T=y?f:d,z=!Number.isNaN(Number.parseFloat(T))&&Number.isFinite(Number(T))?`${T}px`:String(T),B=0===Number.parseFloat(String(f||0))?x.createElement("span",{onClick:R,className:E()(`${A}-zero-width-trigger`,`${A}-zero-width-trigger-${u?"right":"left"}`),style:p},o||x.createElement(gJ,null)):null,D="rtl"===O==!u,H={expanded:D?x.createElement(lT,null):x.createElement(mW,null),collapsed:D?x.createElement(mW,null):x.createElement(lT,null)}[y?"collapsed":"expanded"],L=null!==o?B||x.createElement("div",{className:`${A}-trigger`,onClick:R,style:{width:z}},o||H):null,F=Object.assign(Object.assign({},c),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),W=E()(A,`${A}-${l}`,{[`${A}-collapsed`]:!!y,[`${A}-has-trigger`]:s&&null!==o&&!B,[`${A}-below`]:!!w,[`${A}-zero-width`]:0===Number.parseFloat(z)},r,N,j),_=x.useMemo(()=>({siderCollapsed:y}),[y]);return I(x.createElement(g8.Provider,{value:_},x.createElement("aside",Object.assign({className:W},P,{style:F,ref:t}),x.createElement("div",{className:`${A}-children`},a),s||w&&B?L:null)))}),he={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var ht=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:he}))});let hn=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var hr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ho=e=>{let{prefixCls:t,className:n,dashed:r}=e,o=hr(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=x.useContext(eW),i=a("menu",t),l=E()({[`${i}-item-divider-dashed`]:!!r},n);return x.createElement(g_,Object.assign({className:l},o))},ha=e=>{var t;let n,r,{className:o,children:a,icon:i,title:l,danger:c,extra:s}=e,{prefixCls:u,firstLevel:d,direction:f,disableMenuItemTitleTooltip:p,inlineCollapsed:m}=x.useContext(hn),{siderCollapsed:g}=x.useContext(g8),h=l;void 0===l?h=d?a:"":!1===l&&(h="");let v={title:h};g||m||(v.title=null,v.open=!1);let b=j(a).length,y=x.createElement(gA,Object.assign({},iX(e,["title","icon","danger"]),{className:E()({[`${u}-item-danger`]:c,[`${u}-item-only-child`]:(i?b+1:b)===1},o),title:"string"==typeof l?l:void 0}),o9(i,{className:E()(x.isValidElement(i)?null==(t=i.props)?void 0:t.className:void 0,`${u}-item-icon`)}),(n=null==a?void 0:a[0],r=x.createElement("span",{className:E()(`${u}-title-content`,{[`${u}-title-content-with-extra`]:!!s||0===s})},a),(!i||x.isValidElement(a)&&"span"===a.type)&&a&&m&&d&&"string"==typeof n?x.createElement("div",{className:`${u}-inline-collapsed-noicon`},n.charAt(0)):r));return p||(y=x.createElement(ms,Object.assign({},v,{placement:"rtl"===f?"left":"right",classNames:{root:`${u}-inline-collapsed-tooltip`}}),y)),y};var hi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let hl=x.createContext(null),hc=x.forwardRef((e,t)=>{let{children:n}=e,r=hi(e,["children"]),o=x.useContext(hl),a=x.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=Q(n)&&U(n),l=Y(t,i?Z(n):null);return x.createElement(hl.Provider,{value:a},x.createElement(sG,{space:!0},i?x.cloneElement(n,{ref:l}):n))}),hs=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:i,itemBg:l,subMenuItemBg:c,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:$,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:A,itemActiveBg:I,menuSubMenuBg:N,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:R,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},nV(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},nV(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${tg(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${tg(f)} ${y} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${tg(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:`transform ${v} ${g},opacity ${v} ${g}`,content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:`transform ${v} ${m},opacity ${v} ${m}`}}}}}},hu=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:tg(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,
118
118
  > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:tg(n)},[`${t}-item-group-list ${t}-submenu-title,
119
119
  ${t}-submenu-title`]:{paddingInlineEnd:u}}},hd=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:`border-color ${n},background ${n},padding calc(${n} + 0.1s) ${o}`,[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:`font-size ${r} ${a},margin ${n} ${o},color ${n}`,"+ span":{marginInlineStart:c,opacity:1,transition:`opacity ${n} ${o},margin ${n},color ${n}`}},[`${t}-item-icon`]:Object.assign({},nW()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},hf=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:`background ${n} ${r},transform ${n} ${r},top ${n} ${r},color ${n} ${r}`,content:'""'},"&::before":{transform:`rotate(45deg) translateY(${tg(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${tg(i)})`}}}}},hp=e=>{var t,n,r;let{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:$,padding:x,fontSize:w,controlHeightSM:C,fontSizeLG:E,colorTextLightSolid:S,colorErrorHover:k}=e,O=null!=(t=e.activeBarWidth)?t:0,A=null!=(n=e.activeBarBorderWidth)?n:p,I=null!=(r=e.itemMarginInline)?r:e.marginXXS,N=new n4(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:A,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:$,itemPaddingInline:x,horizontalLineHeight:`${1.15*v}px`,iconSize:w,iconMarginInlineEnd:C-w,collapsedIconSize:E,groupTitleFontSize:w,darkItemDisabledColor:new n4(S).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:S,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:a,itemWidth:O?`calc(100% + ${A}px)`:`calc(100% - ${2*I}px)`}},hm=e=>{var t;let n,{popupClassName:r,icon:o,title:a,theme:i}=e,l=x.useContext(hn),{prefixCls:c,inlineCollapsed:s,theme:u}=l,d=m5();if(o){let e=x.isValidElement(a)&&"span"===a.type;n=x.createElement(x.Fragment,null,o9(o,{className:E()(x.isValidElement(o)?null==(t=o.props)?void 0:t.className:void 0,`${c}-item-icon`)}),e?a:x.createElement("span",{className:`${c}-title-content`},a))}else n=s&&!d.length&&a&&"string"==typeof a?x.createElement("div",{className:`${c}-inline-collapsed-noicon`},a.charAt(0)):x.createElement("span",{className:`${c}-title-content`},a);let f=x.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[p]=aY("Menu");return x.createElement(hn.Provider,{value:f},x.createElement(gW,Object.assign({},iX(e,["icon"]),{title:n,popupClassName:E()(c,r,`${c}-${i||u}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var hg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hh(e){return null===e||!1===e}let hv={item:ha,submenu:hm,divider:ho},hb=(0,x.forwardRef)((e,t)=>{var n;let r=x.useContext(hl),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:l,menu:c}=x.useContext(eW),s=a(),{prefixCls:u,className:d,style:f,theme:p="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:h,siderCollapsed:v,rootClassName:b,mode:y,selectable:$,onClick:w,overflowedIndicatorPopupClassName:C}=e,S=iX(hg(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null==(n=o.validator)||n.call(o,{mode:y});let k=nh((...e)=>{var t;null==w||w.apply(void 0,e),null==(t=o.onClick)||t.call(o)}),O=o.mode||y,A=null!=$?$:o.selectable,I=null!=h?h:v,N={horizontal:{motionName:`${s}-slide-up`},inline:iq(s),other:{motionName:`${s}-zoom-big`}},j=a("menu",u||o.prefixCls),M=a$(j),[R,P,T]=((e,t=e,n=!0)=>rK("Menu",e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:a,darkItemBg:i,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,$=e.calc(r).div(7).mul(5).equal(),x=nR(e,{menuArrowSize:$,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc($).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),w=nR(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:i,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[(e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},n_()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),n_()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${tg(l)} ${tg(c)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:`border-color ${o} ${i},background ${o} ${i}`},[`${n}-submenu, ${n}-submenu-inline`]:{transition:`border-color ${o} ${i},background ${o} ${i},padding ${a} ${i}`},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:`background ${o} ${i},padding ${o} ${i}`},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),hd(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${tg(e.calc(r).mul(2).equal())} ${tg(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},hd(e)),hf(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},[`
120
120
  &-placement-leftTop,
@@ -168,7 +168,7 @@
168
168
  &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
169
169
  &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:f4},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
170
170
  &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
171
- &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:f6}}},p6(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},nF(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},nq(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${tg(s)} ${tg(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${tg(s)} ${tg(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},nq(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${tg(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${tg(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[f8(e,"slide-up"),f8(e,"slide-down"),pa(e,"move-up"),pa(e,"move-down"),uk(e,"zoom-big")]]})(a),(e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}})(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},p3({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),p2(e)),{resetStyle:!1}),hw=e=>{var t;let{menu:n,arrow:r,prefixCls:o,children:a,trigger:i,disabled:l,dropdownRender:c,popupRender:s,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:m,onOpenChange:g,visible:h,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:$=!0,placement:w="",overlay:C,transitionName:S,destroyOnHidden:k,destroyPopupOnHide:O}=e,{getPopupContainer:A,getPrefixCls:I,direction:N,dropdown:j}=x.useContext(eW),M=s||c;aj("Dropdown");let R=x.useMemo(()=>{let e=I();return void 0!==S?S:w.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[I,w,S]),P=x.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===N?"bottomRight":"bottomLeft",[w,N]),T=I("dropdown",o),z=a$(T),[B,D,H]=hx(T,z),[,L]=rq(),F=x.Children.only("object"!=typeof a&&"function"!=typeof a||null===a?x.createElement("span",null,a):a),W=o9(F,{className:E()(`${T}-trigger`,{[`${T}-rtl`]:"rtl"===N},F.props.className),disabled:null!=(t=F.props.disabled)?t:l}),_=l?[]:i,V=!!(null==_?void 0:_.includes("contextMenu")),[q,K]=ny(!1,{value:null!=m?m:h}),X=nh(e=>{null==g||g(e,{source:"trigger"}),null==v||v(e),K(e)}),G=E()(d,f,D,H,z,null==j?void 0:j.className,{[`${T}-rtl`]:"rtl"===N}),Y=p9({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:$,offset:L.marginXXS,arrowWidth:r?L.sizePopupArrow:0,borderRadius:L.borderRadius}),U=nh(()=>{null!=n&&n.selectable&&null!=n&&n.multiple||(null==g||g(!1,{source:"menu"}),K(!1))}),[Q,Z]=aY("Dropdown",null==p?void 0:p.zIndex),J=x.createElement(mU,Object.assign({alignPoint:V},iX(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:q,builtinPlacements:Y,arrow:!!r,overlayClassName:G,prefixCls:T,getPopupContainer:u||A,transitionName:R,trigger:_,overlay:()=>{let e;return e=(null==n?void 0:n.items)?x.createElement(h$,Object.assign({},n)):"function"==typeof C?C():C,M&&(e=M(e)),e=x.Children.only("string"==typeof e?x.createElement("span",null,e):e),x.createElement(hc,{prefixCls:`${T}-menu`,rootClassName:E()(H,z),expandIcon:x.createElement("span",{className:`${T}-menu-submenu-arrow`},"rtl"===N?x.createElement(mW,{className:`${T}-menu-submenu-arrow-icon`}):x.createElement(lT,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:U,validator:({mode:e})=>{}},e)},placement:P,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},null==j?void 0:j.style),p),{zIndex:Q}),autoDestroy:null!=k?k:O}),W);return Q&&(J=x.createElement(aK.Provider,{value:Z},J)),B(J)},hC=df(hw,"align",void 0,"dropdown",e=>e);hw._InternalPanelDoNotUseOrYouWillBeFired=e=>x.createElement(hC,Object.assign({},e),x.createElement("span",null));let hE=({children:e})=>{let{getPrefixCls:t}=x.useContext(eW),n=t("breadcrumb");return x.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},""===e?e:e||"/")};hE.__ANT_BREADCRUMB_SEPARATOR=!0;var hS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hk(e,t,n,r){if(null==n)return null;let{className:o,onClick:a}=t,i=Object.assign(Object.assign({},o5(hS(t,["className","onClick"]),{data:!0,aria:!0})),{onClick:a});return void 0!==r?x.createElement("a",Object.assign({},i,{className:E()(`${e}-link`,o),href:r}),n):x.createElement("span",Object.assign({},i,{className:E()(`${e}-link`,o)}),n)}var hO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let hA=e=>{let{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:i,href:l}=e,c=(e=>{if(o||a){let n=Object.assign({},i);if(o){let e=o||{},{items:t}=e;n.menu=Object.assign(Object.assign({},hO(e,["items"])),{items:null==t?void 0:t.map((e,t)=>{var{key:n,title:r,label:o,path:a}=e,i=hO(e,["key","title","label","path"]);let c=null!=o?o:r;return a&&(c=x.createElement("a",{href:`${l}${a}`},c)),Object.assign(Object.assign({},i),{key:null!=n?n:t,label:c})})})}else a&&(n.overlay=a);return x.createElement(hw,Object.assign({placement:"bottom"},n),x.createElement("span",{className:`${t}-overlay-link`},e,x.createElement(px,null)))}return e})(r);return null!=c?x.createElement(x.Fragment,null,x.createElement("li",{className:`${t}-item`},c),n&&x.createElement(hE,null,n)):null},hI=e=>{let{prefixCls:t,children:n,href:r}=e,o=hO(e,["prefixCls","children","href"]),{getPrefixCls:a}=x.useContext(eW),i=a("breadcrumb",t);return x.createElement(hA,Object.assign({},o,{prefixCls:i}),hk(i,o,n,r))};hI.__ANT_BREADCRUMB_ITEM=!0;let hN=rK("Breadcrumb",e=>(e=>{let{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},nF(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${tg(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},nq(e)),[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
171
+ &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:f6}}},p6(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},nF(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},nq(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${tg(s)} ${tg(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${tg(s)} ${tg(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},nq(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${tg(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${tg(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[f8(e,"slide-up"),f8(e,"slide-down"),pa(e,"move-up"),pa(e,"move-down"),uk(e,"zoom-big")]]})(a),(e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}})(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},p3({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),p2(e)),{resetStyle:!1}),hw=e=>{var t;let{menu:n,arrow:r,prefixCls:o,children:a,trigger:i,disabled:l,dropdownRender:c,popupRender:s,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:m,onOpenChange:g,visible:h,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:$=!0,placement:w="",overlay:C,transitionName:S,destroyOnHidden:k,destroyPopupOnHide:O}=e,{getPopupContainer:A,getPrefixCls:I,direction:N,dropdown:j}=x.useContext(eW),M=s||c;aj();let R=x.useMemo(()=>{let e=I();return void 0!==S?S:w.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[I,w,S]),P=x.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===N?"bottomRight":"bottomLeft",[w,N]),T=I("dropdown",o),z=a$(T),[B,D,H]=hx(T,z),[,L]=rq(),F=x.Children.only("object"!=typeof a&&"function"!=typeof a||null===a?x.createElement("span",null,a):a),W=o9(F,{className:E()(`${T}-trigger`,{[`${T}-rtl`]:"rtl"===N},F.props.className),disabled:null!=(t=F.props.disabled)?t:l}),_=l?[]:i,V=!!(null==_?void 0:_.includes("contextMenu")),[q,K]=ny(!1,{value:null!=m?m:h}),X=nh(e=>{null==g||g(e,{source:"trigger"}),null==v||v(e),K(e)}),G=E()(d,f,D,H,z,null==j?void 0:j.className,{[`${T}-rtl`]:"rtl"===N}),Y=p9({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:$,offset:L.marginXXS,arrowWidth:r?L.sizePopupArrow:0,borderRadius:L.borderRadius}),U=nh(()=>{null!=n&&n.selectable&&null!=n&&n.multiple||(null==g||g(!1,{source:"menu"}),K(!1))}),[Q,Z]=aY("Dropdown",null==p?void 0:p.zIndex),J=x.createElement(mU,Object.assign({alignPoint:V},iX(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:q,builtinPlacements:Y,arrow:!!r,overlayClassName:G,prefixCls:T,getPopupContainer:u||A,transitionName:R,trigger:_,overlay:()=>{let e;return e=(null==n?void 0:n.items)?x.createElement(h$,Object.assign({},n)):"function"==typeof C?C():C,M&&(e=M(e)),e=x.Children.only("string"==typeof e?x.createElement("span",null,e):e),x.createElement(hc,{prefixCls:`${T}-menu`,rootClassName:E()(H,z),expandIcon:x.createElement("span",{className:`${T}-menu-submenu-arrow`},"rtl"===N?x.createElement(mW,{className:`${T}-menu-submenu-arrow-icon`}):x.createElement(lT,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:U,validator:({mode:e})=>{}},e)},placement:P,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},null==j?void 0:j.style),p),{zIndex:Q}),autoDestroy:null!=k?k:O}),W);return Q&&(J=x.createElement(aK.Provider,{value:Z},J)),B(J)},hC=df(hw,"align",void 0,"dropdown",e=>e);hw._InternalPanelDoNotUseOrYouWillBeFired=e=>x.createElement(hC,Object.assign({},e),x.createElement("span",null));let hE=({children:e})=>{let{getPrefixCls:t}=x.useContext(eW),n=t("breadcrumb");return x.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},""===e?e:e||"/")};hE.__ANT_BREADCRUMB_SEPARATOR=!0;var hS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hk(e,t,n,r){if(null==n)return null;let{className:o,onClick:a}=t,i=Object.assign(Object.assign({},o5(hS(t,["className","onClick"]),{data:!0,aria:!0})),{onClick:a});return void 0!==r?x.createElement("a",Object.assign({},i,{className:E()(`${e}-link`,o),href:r}),n):x.createElement("span",Object.assign({},i,{className:E()(`${e}-link`,o)}),n)}var hO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let hA=e=>{let{prefixCls:t,separator:n="/",children:r,menu:o,overlay:a,dropdownProps:i,href:l}=e,c=(e=>{if(o||a){let n=Object.assign({},i);if(o){let e=o||{},{items:t}=e;n.menu=Object.assign(Object.assign({},hO(e,["items"])),{items:null==t?void 0:t.map((e,t)=>{var{key:n,title:r,label:o,path:a}=e,i=hO(e,["key","title","label","path"]);let c=null!=o?o:r;return a&&(c=x.createElement("a",{href:`${l}${a}`},c)),Object.assign(Object.assign({},i),{key:null!=n?n:t,label:c})})})}else a&&(n.overlay=a);return x.createElement(hw,Object.assign({placement:"bottom"},n),x.createElement("span",{className:`${t}-overlay-link`},e,x.createElement(px,null)))}return e})(r);return null!=c?x.createElement(x.Fragment,null,x.createElement("li",{className:`${t}-item`},c),n&&x.createElement(hE,null,n)):null},hI=e=>{let{prefixCls:t,children:n,href:r}=e,o=hO(e,["prefixCls","children","href"]),{getPrefixCls:a}=x.useContext(eW),i=a("breadcrumb",t);return x.createElement(hA,Object.assign({},o,{prefixCls:i}),hk(i,o,n,r))};hI.__ANT_BREADCRUMB_ITEM=!0;let hN=rK("Breadcrumb",e=>(e=>{let{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},nF(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${tg(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},nq(e)),[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
172
172
  > ${n} + span,
173
173
  > ${n} + a
174
174
  `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${tg(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})(nR(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));var hj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hM(e){let{breadcrumbName:t,children:n}=e,r=Object.assign({title:t},hj(e,["breadcrumbName","children"]));return n&&(r.menu={items:n.map(e=>{var{breadcrumbName:t}=e;return Object.assign(Object.assign({},hj(e,["breadcrumbName"])),{title:t})})}),r}var hR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let hP=e=>{let t,{prefixCls:n,separator:r="/",style:o,className:a,rootClassName:i,routes:l,items:c,children:s,itemRender:u,params:d={}}=e,f=hR(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:p,direction:m,breadcrumb:g}=x.useContext(eW),h=p("breadcrumb",n),[v,b,y]=hN(h),$=(0,x.useMemo)(()=>c||(l?l.map(hM):null),[c,l]),w=(e,t,n,r,o)=>{if(u)return u(e,t,n,r);let a=function(e,t){if(void 0===e.title||null===e.title)return null;let n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(RegExp(`:(${n})`,"g"),(e,n)=>t[n]||e)}(e,t);return hk(h,e,a,o)};if($&&$.length>0){let e=[],n=c||l;t=$.map((t,o)=>{let{path:a,key:i,type:l,menu:c,overlay:s,onClick:u,className:f,separator:p,dropdownProps:m}=t,g=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{n=n.replace(`:${t}`,e[t])}),n})(d,a);void 0!==g&&e.push(g);let v=null!=i?i:o;if("separator"===l)return x.createElement(hE,{key:v},p);let b={},y=o===$.length-1;c?b.menu=c:s&&(b.overlay=s);let{href:C}=t;return e.length&&void 0!==g&&(C=`#/${e.join("/")}`),x.createElement(hA,Object.assign({key:v},b,o5(t,{data:!0,aria:!0}),{className:f,dropdownProps:m,href:C,separator:y?"":r,onClick:u,prefixCls:h}),w(t,d,n,e,C))})}else if(s){let e=j(s).length;t=j(s).map((t,n)=>t?o9(t,{separator:n===e-1?"":r,key:n}):t)}let C=E()(h,null==g?void 0:g.className,{[`${h}-rtl`]:"rtl"===m},a,i,b,y),S=Object.assign(Object.assign({},null==g?void 0:g.style),o);return v(x.createElement("nav",Object.assign({className:C,style:S},f),x.createElement("ol",null,t)))};hP.Item=hI,hP.Separator=hE;let hT=hP;var hz=n(6911),hB=n.n(hz),hD=n(8176),hH=n.n(hD),hL=n(5530),hF=n.n(hL),hW=n(4020),h_=n.n(hW),hV=n(7749),hq=n.n(hV),hK=n(6769),hX=n.n(hK),hG=n(8251),hY=n.n(hG);hB().extend(hY()),hB().extend(hX()),hB().extend(hH()),hB().extend(hF()),hB().extend(h_()),hB().extend(hq()),hB().extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}});var hU={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},hQ=function(e){return hU[e]||e.split("_")[0]},hZ=function(){};let hJ={getNow:function(){var e=hB()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return hB()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return hB()().locale(hQ(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(hQ(e)).weekday(0)},getWeek:function(e,t){return t.locale(hQ(e)).week()},getShortWeekDays:function(e){return hB()().locale(hQ(e)).localeData().weekdaysMin()},getShortMonths:function(e){return hB()().locale(hQ(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(hQ(e)).format(n)},parse:function(e,t,n){for(var r=hQ(e),o=0;o<n.length;o+=1){var a=n[o];if(a.includes("wo")||a.includes("Wo")){for(var i=t.split("-")[0],l=t.split("-")[1],c=hB()(i,"YYYY").startOf("year").locale(r),s=0;s<=52;s+=1){var u=c.add(s,"week");if(u.format("Wo")===l)return u}return hZ(),null}var d=hB()(t,a,!0).locale(r);if(d.isValid())return d}return t&&hZ(),null}}};var h0=x.createContext(null),h1={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};let h2=function(e){var t,n=e.popupElement,r=e.popupStyle,o=e.popupClassName,a=e.popupAlign,i=e.transitionName,l=e.getPopupContainer,c=e.children,s=e.range,u=e.placement,d=e.builtinPlacements,f=e.direction,p=e.visible,m=e.onClose,g=x.useContext(h0).prefixCls,h="".concat(g,"-dropdown"),v=(t="rtl"===f,void 0!==u?u:t?"bottomRight":"bottomLeft");return x.createElement(fe,{showAction:[],hideAction:["click"],popupPlacement:v,builtinPlacements:void 0===d?h1:d,prefixCls:h,popupTransitionName:i,popup:n,popupAlign:a,popupVisible:p,popupClassName:E()(o,(0,eX.A)((0,eX.A)({},"".concat(h,"-range"),s),"".concat(h,"-rtl"),"rtl"===f)),popupStyle:r,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||m()}},c)};function h4(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function h3(e){return null==e?[]:Array.isArray(e)?e:[e]}function h6(e,t,n){var r=(0,eM.A)(e);return r[t]=n,r}function h5(e,t){var n={};return(t||Object.keys(e)).forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}function h8(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function h7(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find(function(t){return e[t]});return r!==o?e[o]:void 0}function h9(e){return h5(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ve(e,t,n,r){var o=x.useMemo(function(){return e||function(e,r){return t&&"date"===r.type?t(e,r.today):n&&"month"===r.type?n(e,r.locale):r.originNode}},[e,n,t]);return x.useCallback(function(e,t){return o(e,(0,D.A)((0,D.A)({},t),{},{range:r}))},[o,r])}function vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=x.useState([!1,!1]),o=(0,eK.A)(r,2),a=o[0],i=o[1];return[x.useMemo(function(){return a.map(function(r,o){if(r)return!0;var a=e[o];return!!a&&!!(!n[o]&&!a||a&&t(a,{activeIndex:o}))})},[e,a,t,n]),function(e,t){i(function(n){return h6(n,t,e)})}]}function vn(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function vr(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,a=t.showMillisecond,i=t.use12Hours;return w().useMemo(function(){var t,l,c,s,u,d,f,p,m,g,h,v,b;return t=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,h=e.dayFormat,v=e.cellDateFormat,b=vn(n,r,o,a,i),(0,D.A)((0,D.A)({},e),{},{fieldDateTimeFormat:t||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||h||"D"})},[e,n,r,o,a,i])}function vo(e,t,n){return null!=n?n:t.some(function(t){return e.includes(t)})}var va=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function vi(e,t,n,r){return[e,t,n,r].some(function(e){return void 0!==e})}function vl(e,t,n,r,o){var a=t,i=n,l=r;if(e||a||i||l||o){if(e){var c,s,u,d=[a,i,l].some(function(e){return!1===e}),f=[a,i,l].some(function(e){return!0===e}),p=!!d||!f;a=null!=(c=a)?c:p,i=null!=(s=i)?s:p,l=null!=(u=l)?u:p}}else a=!0,i=!0,l=!0;return[a,i,l,o]}function vc(e){var t,n,r,o,a=e.showTime,i=(t=h5(e,va),n=e.format,r=e.picker,o=null,n&&(Array.isArray(o=n)&&(o=o[0]),o="object"===(0,k.A)(o)?o.format:o),"time"===r&&(t.format=o),[t,o]),l=(0,eK.A)(i,2),c=l[0],s=l[1],u=a&&"object"===(0,k.A)(a)?a:{},d=(0,D.A)((0,D.A)({defaultOpenValue:u.defaultOpenValue||u.defaultValue},c),u),f=d.showMillisecond,p=d.showHour,m=d.showMinute,g=d.showSecond,h=vl(vi(p,m,g,f),p,m,g,f),v=(0,eK.A)(h,3);return p=v[0],m=v[1],g=v[2],[d,(0,D.A)((0,D.A)({},d),{},{showHour:p,showMinute:m,showSecond:g,showMillisecond:f}),d.format,s]}function vs(e,t,n,r,o){var a="time"===e;if("datetime"===e||a){for(var i=h8(e,o,null),l=[t,n],c=0;c<l.length;c+=1){var s=h3(l[c])[0];if(s&&"string"==typeof s){i=s;break}}var u=r.showHour,d=r.showMinute,f=r.showSecond,p=r.showMillisecond,m=vo(i,["a","A","LT","LLL","LTS"],r.use12Hours),g=vi(u,d,f,p);g||(u=vo(i,["H","h","k","LT","LLL"]),d=vo(i,["m","LT","LLL"]),f=vo(i,["s","LTS"]),p=vo(i,["SSS"]));var h=vl(g,u,d,f,p),v=(0,eK.A)(h,3);u=v[0],d=v[1],f=v[2];var b=t||vn(u,d,f,p,m);return(0,D.A)((0,D.A)({},r),{},{format:b,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:m})}return null}function vu(e,t,n){return!e&&!t||e===t||!!e&&!!t&&n()}function vd(e,t,n){return vu(t,n,function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)})}function vf(e,t,n){return vu(t,n,function(){return e.getYear(t)===e.getYear(n)})}function vp(e,t){return Math.floor(e.getMonth(t)/3)+1}function vm(e,t,n){return vu(t,n,function(){return vf(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function vg(e,t,n){return vu(t,n,function(){return vf(e,t,n)&&vm(e,t,n)&&e.getDate(t)===e.getDate(n)})}function vh(e,t,n){return vu(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function vv(e,t,n){return vu(t,n,function(){return vg(e,t,n)&&vh(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function vb(e,t,n,r){return vu(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),a=e.locale.getWeekFirstDate(t,r);return vf(e,o,a)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function vy(e,t,n,r,o){switch(o){case"date":return vg(e,n,r);case"week":return vb(e,t.locale,n,r);case"month":return vm(e,n,r);case"quarter":return vu(n,r,function(){return vf(e,n,r)&&vp(e,n)===vp(e,r)});case"year":return vf(e,n,r);case"decade":return vd(e,n,r);case"time":return vh(e,n,r);default:return vv(e,n,r)}}function v$(e,t,n,r){return!!t&&!!n&&!!r&&e.isAfter(r,t)&&e.isAfter(n,r)}function vx(e,t,n,r,o){return!!vy(e,t,n,r,o)||e.isAfter(n,r)}function vw(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function vC(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach(function(t,a){r=n?e[t](r,e[o[a]](n)):e[t](r,0)}),r}function vE(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return x.useMemo(function(){var n=e?h3(e):e;return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function vS(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,a=void 0===o?"date":o,i=e.prefixCls,l=void 0===i?"rc-picker":i,c=e.styles,s=void 0===c?{}:c,u=e.classNames,d=void 0===u?{}:u,f=e.order,p=void 0===f||f,m=e.components,g=void 0===m?{}:m,h=e.inputRender,v=e.allowClear,b=e.clearIcon,y=e.needConfirm,$=e.multiple,w=e.format,C=e.inputReadOnly,E=e.disabledDate,S=e.minDate,O=e.maxDate,A=e.showTime,I=e.value,N=e.defaultValue,j=e.pickerValue,M=e.defaultPickerValue,R=vE(I),P=vE(N),T=vE(j),z=vE(M),B="date"===a&&A?"datetime":a,H="time"===B||"datetime"===B,L=H||$,F=null!=y?y:H,W=vc(e),_=(0,eK.A)(W,4),V=_[0],q=_[1],K=_[2],X=_[3],G=vr(r,q),Y=x.useMemo(function(){return vs(B,K,X,V,G)},[B,K,X,V,G]),U=x.useMemo(function(){return(0,D.A)((0,D.A)({},e),{},{prefixCls:l,locale:G,picker:a,styles:s,classNames:d,order:p,components:(0,D.A)({input:h},g),clearIcon:!1===v?null:(v&&"object"===(0,k.A)(v)?v:{}).clearIcon||b||x.createElement("span",{className:"".concat(l,"-clear-btn")}),showTime:Y,value:R,defaultValue:P,pickerValue:T,defaultPickerValue:z},null==t?void 0:t())},[e]),Q=x.useMemo(function(){var e=h3(h8(B,G,w)),t=e[0],n="object"===(0,k.A)(t)&&"mask"===t.type?t.format:null;return[e.map(function(e){return"string"==typeof e||"function"==typeof e?e:e.format}),n]},[B,G,w]),Z=(0,eK.A)(Q,2),J=Z[0],ee=Z[1],et="function"==typeof J[0]||!!$||C,en=nh(function(e,t){return!!(E&&E(e,t)||S&&n.isAfter(S,e)&&!vy(n,r,S,e,t.type)||O&&n.isAfter(e,O)&&!vy(n,r,O,e,t.type))}),er=nh(function(e,t){var r=(0,D.A)({type:a},t);if(delete r.activeIndex,!n.isValidate(e)||en&&en(e,r))return!0;if(("date"===a||"time"===a)&&Y){var o,i=t&&1===t.activeIndex?"end":"start",l=(null==(o=Y.disabledTime)?void 0:o.call(Y,e,i,{from:r.from}))||{},c=l.disabledHours,s=l.disabledMinutes,u=l.disabledSeconds,d=l.disabledMilliseconds,f=Y.disabledHours,p=Y.disabledMinutes,m=Y.disabledSeconds,g=c||f,h=s||p,v=u||m,b=n.getHour(e),y=n.getMinute(e),$=n.getSecond(e),x=n.getMillisecond(e);if(g&&g().includes(b)||h&&h(b).includes(y)||v&&v(b,y).includes($)||d&&d(b,y,$).includes(x))return!0}return!1});return[x.useMemo(function(){return(0,D.A)((0,D.A)({},U),{},{needConfirm:F,inputReadOnly:et,disabledDate:en})},[U,F,et,en]),B,L,J,ee,er]}function vk(e,t){var n,r,o,a,i,l,c,s,u,d,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],p=arguments.length>3?arguments[3]:void 0,m=(n=!f.every(function(e){return e})&&e,r=ny(t||!1,{value:n}),a=(o=(0,eK.A)(r,2))[0],i=o[1],l=w().useRef(n),c=w().useRef(),s=function(){eB.cancel(c.current)},u=nh(function(){i(l.current),p&&a!==l.current&&p(l.current)}),d=nh(function(e,t){s(),l.current=e,e||t?u():c.current=eB(u)}),w().useEffect(function(){return s},[]),[a,d]),g=(0,eK.A)(m,2),h=g[0],v=g[1];return[h,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t.inherit||h)&&v(e,t.force)}]}function vO(e){var t=x.useRef();return x.useImperativeHandle(e,function(){var e;return{nativeElement:null==(e=t.current)?void 0:e.nativeElement,focus:function(e){var n;null==(n=t.current)||n.focus(e)},blur:function(){var e;null==(e=t.current)||e.blur()}}}),t}function vA(e,t){return x.useMemo(function(){return e||(t?(B(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=(0,eK.A)(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function vI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=x.useRef(t);r.current=t,tx(function(){if(e)r.current(e);else{var t=eB(function(){r.current(e)},n);return function(){eB.cancel(t)}}},[e])}function vN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=x.useState(0),o=(0,eK.A)(r,2),a=o[0],i=o[1],l=x.useState(!1),c=(0,eK.A)(l,2),s=c[0],u=c[1],d=x.useRef([]),f=x.useRef(null),p=x.useRef(null),m=function(e){f.current=e};return vI(s||n,function(){s||(d.current=[],m(null))}),x.useEffect(function(){s&&d.current.push(a)},[s,a]),[s,function(e){u(e)},function(e){return e&&(p.current=e),p.current},a,i,function(n){var r=d.current,o=new Set(r.filter(function(e){return n[e]||t[e]})),a=+(0===r[r.length-1]);return o.size>=2||e[a]?null:a},d.current,m,function(e){return f.current===e}]}function vj(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var vM=[];function vR(e,t,n,r,o,a,i,l){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:vM,s=arguments.length>9&&void 0!==arguments[9]?arguments[9]:vM,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:vM,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m="time"===i,g=a||0,h=function(t){var r=e.getNow();return m&&(r=vC(e,r)),c[t]||n[t]||r},v=(0,eK.A)(s,2),b=v[0],y=v[1],$=ny(function(){return h(0)},{value:b}),w=(0,eK.A)($,2),C=w[0],E=w[1],S=ny(function(){return h(1)},{value:y}),k=(0,eK.A)(S,2),O=k[0],A=k[1],I=x.useMemo(function(){var t=[C,O][g];return m?t:vC(e,t,u[g])},[m,C,O,g,e,u]),N=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[E,A][g])(n);var a=[C,O];a[g]=n,!d||vy(e,t,C,a[0],i)&&vy(e,t,O,a[1],i)||d(a,{source:o,range:1===g?"end":"start",mode:r})},j=function(n,r){if(l){var o={date:"month",week:"month",month:"year",quarter:"year"}[i];if(o&&!vy(e,t,n,r,o)||"year"===i&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return vj(e,i,r,-1)}return r},M=x.useRef(null);return t$(function(){if(o&&!c[g]){var t=m?null:e.getNow();if(null!==M.current&&M.current!==g?t=[C,O][1^g]:n[g]?t=0===g?n[0]:j(n[0],n[1]):n[1^g]&&(t=n[1^g]),t){f&&e.isAfter(f,t)&&(t=f);var r=l?vj(e,i,t,1):t;p&&e.isAfter(r,p)&&(t=l?vj(e,i,p,-1):p),N(t,"reset")}}},[o,g,n[g]]),x.useEffect(function(){o?M.current=g:M.current=null},[o,g]),t$(function(){o&&c&&c[g]&&N(c[g],"reset")},[o,g]),[I,N]}function vP(e,t){var n=x.useRef(e),r=x.useState({}),o=(0,eK.A)(r,2)[1],a=function(e){return e&&void 0!==t?t:n.current};return[a,function(e){n.current=e,o({})},a(!0)]}var vT=[];function vz(e,t,n){return[function(r){return r.map(function(r){return vw(r,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,a=0;a<r;a+=1){var i=t[a]||null,l=n[a]||null;if(i!==l&&!vv(e,i,l)){o=a;break}}return[o<0,0!==o]}]}function vB(e,t){return(0,eM.A)(e).sort(function(e,n){return t.isAfter(e,n)?1:-1})}function vD(e,t,n,r,o,a,i,l,c){var s,u,d,f,p,m=ny(a,{value:i}),g=(0,eK.A)(m,2),h=g[0],v=g[1],b=h||vT,y=(s=vP(b),d=(u=(0,eK.A)(s,2))[0],f=u[1],p=nh(function(){f(b)}),x.useEffect(function(){p()},[b]),[d,f]),$=(0,eK.A)(y,2),w=$[0],C=$[1],E=vz(e,t,n),S=(0,eK.A)(E,2),k=S[0],O=S[1],A=nh(function(t){var n=(0,eM.A)(t);if(r)for(var a=0;a<2;a+=1)n[a]=n[a]||null;else o&&(n=vB(n.filter(function(e){return e}),e));var i=O(w(),n),c=(0,eK.A)(i,2),s=c[0],u=c[1];if(!s&&(C(n),l)){var d=k(n);l(n,d,{range:u?"end":"start"})}});return[b,v,w,A,function(){c&&c(w())}]}function vH(e,t,n,r,o,a,i,l,c,s){var u=e.generateConfig,d=e.locale,f=e.picker,p=e.onChange,m=e.allowEmpty,g=e.order,h=!a.some(function(e){return e})&&g,v=vz(u,d,i),b=(0,eK.A)(v,2),y=b[0],$=b[1],w=vP(t),C=(0,eK.A)(w,2),E=C[0],S=C[1],k=nh(function(){S(t)});x.useEffect(function(){k()},[t]);var O=nh(function(e){var r=null===e,i=(0,eM.A)(e||E());if(r)for(var l=Math.max(a.length,i.length),c=0;c<l;c+=1)a[c]||(i[c]=null);h&&i[0]&&i[1]&&(i=vB(i,u)),o(i);var v=i,b=(0,eK.A)(v,2),x=b[0],w=b[1],C=!x,S=!w,k=!m||(!C||m[0])&&(!S||m[1]),O=!g||C||S||vy(u,d,x,w,f)||u.isAfter(w,x),A=(a[0]||!x||!s(x,{activeIndex:0}))&&(a[1]||!w||!s(w,{from:x,activeIndex:1})),I=r||k&&O&&A;if(I){n(i);var N=$(i,t),j=(0,eK.A)(N,1)[0];p&&!j&&p(r&&i.every(function(e){return!e})?null:i,y(i))}return I}),A=nh(function(e,t){S(h6(E(),e,r()[e])),t&&O()}),I=!l&&!c;return vI(!I,function(){I&&(O(),o(t),k())},2),[A,O]}function vL(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function vF(){return[]}function vW(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,i=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||i.push({label:h4(c,a),value:c,disabled:s})}return i}function v_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,a=r.hourStep,i=void 0===a?1:a,l=r.minuteStep,c=void 0===l?1:l,s=r.secondStep,u=void 0===s?1:s,d=r.millisecondStep,f=void 0===d?100:d,p=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,h=r.disabledMinutes,v=r.disabledSeconds,b=x.useMemo(function(){return n||e.getNow()},[n,e]),y=x.useCallback(function(e){var t=(null==m?void 0:m(e))||{};return[t.disabledHours||g||vF,t.disabledMinutes||h||vF,t.disabledSeconds||v||vF,t.disabledMilliseconds||vF]},[m,g,h,v]),$=x.useMemo(function(){return y(b)},[b,y]),w=(0,eK.A)($,4),C=w[0],E=w[1],S=w[2],k=w[3],O=x.useCallback(function(e,t,n,r){var a=vW(0,23,i,p,e());return[o?a.map(function(e){return(0,D.A)((0,D.A)({},e),{},{label:h4(e.value%12||12,2)})}):a,function(e){return vW(0,59,c,p,t(e))},function(e,t){return vW(0,59,u,p,n(e,t))},function(e,t,n){return vW(0,999,f,p,r(e,t,n),3)}]},[p,i,o,f,c,u]),A=x.useMemo(function(){return O(C,E,S,k)},[O,C,E,S,k]),I=(0,eK.A)(A,4),N=I[0],j=I[1],M=I[2],R=I[3];return[function(t,n){var r=function(){return N},o=j,a=M,i=R;if(n){var l=y(n),c=(0,eK.A)(l,4),s=O(c[0],c[1],c[2],c[3]),u=(0,eK.A)(s,4),d=u[0],f=u[1],p=u[2],m=u[3];r=function(){return d},o=f,a=p,i=m}return function(e,t,n,r,o,a){var i=e;function l(e,t,n){var r=a[e](i),o=n.find(function(e){return e.value===r});if(!o||o.disabled){var l=n.filter(function(e){return!e.disabled}),c=(0,eM.A)(l).reverse().find(function(e){return e.value<=r})||l[0];c&&(r=c.value,i=a[t](i,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),i}(t,r,o,a,i,e)},N,j,M,R]}function vV(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,i=e.onSubmit,l=e.onNow,c=e.invalid,s=e.needConfirm,u=e.generateConfig,d=e.disabledDate,f=x.useContext(h0),p=f.prefixCls,m=f.locale,g=f.button,h=u.getNow(),v=v_(u,a,h),b=(0,eK.A)(v,1)[0],y=null==r?void 0:r(t),$=d(h,{type:t}),w="".concat(p,"-now"),C="".concat(w,"-btn"),S=o&&x.createElement("li",{className:w},x.createElement("a",{className:E()(C,$&&"".concat(C,"-disabled")),"aria-disabled":$,onClick:function(){$||l(b(h))}},"date"===n?m.today:m.now)),k=s&&x.createElement("li",{className:"".concat(p,"-ok")},x.createElement(void 0===g?"button":g,{disabled:c,onClick:i},m.ok)),O=(S||k)&&x.createElement("ul",{className:"".concat(p,"-ranges")},S,k);return y||O?x.createElement("div",{className:"".concat(p,"-footer")},y&&x.createElement("div",{className:"".concat(p,"-footer-extra")},y),O):null}function vq(e,t,n){return function(r,o){var a=r.findIndex(function(r){return vy(e,t,r,o,n)});if(-1===a)return[].concat((0,eM.A)(r),[o]);var i=(0,eM.A)(r);return i.splice(a,1),i}}var vK=x.createContext(null);function vX(){return x.useContext(vK)}function vG(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,h=e.nextIcon,v=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:h,superPrevIcon:v,superNextIcon:b},y]}var vY=x.createContext({});function vU(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,a=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,c=e.getCellText,s=e.getCellClassName,u=e.headerCells,d=e.cellSelection,f=void 0===d||d,p=e.disabledDate,m=vX(),g=m.prefixCls,h=m.panelType,v=m.now,b=m.disabledDate,y=m.cellRender,$=m.onHover,w=m.hoverValue,C=m.hoverRangeValue,S=m.generateConfig,k=m.values,O=m.locale,A=m.onSelect,I=p||b,N="".concat(g,"-cell"),j=x.useContext(vY).onCellDblClick,M=function(e){return k.some(function(t){return t&&vy(S,O,e,t,h)})},R=[],P=0;P<t;P+=1){for(var T=[],z=void 0,B=0;B<n;B+=1)!function(){var e=o(r,P*n+B),t=null==I?void 0:I(e,{type:h});0===B&&(z=e,a&&T.push(a(z)));var i=!1,u=!1,d=!1;if(f&&C){var p=(0,eK.A)(C,2),m=p[0],b=p[1];i=v$(S,m,b,e),u=vy(S,O,e,m,h),d=vy(S,O,e,b,h)}var k=l?vw(e,{locale:O,format:l,generateConfig:S}):void 0,R=x.createElement("div",{className:"".concat(N,"-inner")},c(e));T.push(x.createElement("td",{key:B,title:k,className:E()(N,(0,D.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(N,"-disabled"),t),"".concat(N,"-hover"),(w||[]).some(function(t){return vy(S,O,e,t,h)})),"".concat(N,"-in-range"),i&&!u&&!d),"".concat(N,"-range-start"),u),"".concat(N,"-range-end"),d),"".concat(g,"-cell-selected"),!C&&"week"!==h&&M(e)),s(e))),onClick:function(){t||A(e)},onDoubleClick:function(){!t&&j&&j()},onMouseEnter:function(){t||null==$||$(e)},onMouseLeave:function(){t||null==$||$(null)}},y?y(e,{prefixCls:g,originNode:R,today:v,type:h,locale:O}):R))}();R.push(x.createElement("tr",{key:P,className:null==i?void 0:i(z)},T))}return x.createElement("div",{className:"".concat(g,"-body")},x.createElement("table",{className:"".concat(g,"-content")},u&&x.createElement("thead",null,x.createElement("tr",null,u)),x.createElement("tbody",null,R)))}var vQ={visibility:"hidden"};let vZ=function(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,a=e.getEnd,i=e.children,l=vX(),c=l.prefixCls,s=l.prevIcon,u=l.nextIcon,d=l.superPrevIcon,f=l.superNextIcon,p=l.minDate,m=l.maxDate,g=l.generateConfig,h=l.locale,v=l.pickerValue,b=l.panelType,y="".concat(c,"-header"),$=x.useContext(vY),w=$.hidePrev,C=$.hideNext,S=$.hideHeader,k=x.useMemo(function(){return!!p&&!!t&&!!a&&!vx(g,h,a(t(-1,v)),p,b)},[p,t,v,a,g,h,b]),O=x.useMemo(function(){return!!p&&!!n&&!!a&&!vx(g,h,a(n(-1,v)),p,b)},[p,n,v,a,g,h,b]),A=x.useMemo(function(){return!!m&&!!t&&!!o&&!vx(g,h,m,o(t(1,v)),b)},[m,t,v,o,g,h,b]),I=x.useMemo(function(){return!!m&&!!n&&!!o&&!vx(g,h,m,o(n(1,v)),b)},[m,n,v,o,g,h,b]),N=function(e){t&&r(t(e,v))},j=function(e){n&&r(n(e,v))};if(S)return null;var M="".concat(y,"-prev-btn"),R="".concat(y,"-next-btn"),P="".concat(y,"-super-prev-btn"),T="".concat(y,"-super-next-btn");return x.createElement("div",{className:y},n&&x.createElement("button",{type:"button","aria-label":h.previousYear,onClick:function(){return j(-1)},tabIndex:-1,className:E()(P,O&&"".concat(P,"-disabled")),disabled:O,style:w?vQ:{}},void 0===d?"\xab":d),t&&x.createElement("button",{type:"button","aria-label":h.previousMonth,onClick:function(){return N(-1)},tabIndex:-1,className:E()(M,k&&"".concat(M,"-disabled")),disabled:k,style:w?vQ:{}},void 0===s?"‹":s),x.createElement("div",{className:"".concat(y,"-view")},i),t&&x.createElement("button",{type:"button","aria-label":h.nextMonth,onClick:function(){return N(1)},tabIndex:-1,className:E()(R,A&&"".concat(R,"-disabled")),disabled:A,style:C?vQ:{}},void 0===u?"›":u),n&&x.createElement("button",{type:"button","aria-label":h.nextYear,onClick:function(){return j(1)},tabIndex:-1,className:E()(T,I&&"".concat(T,"-disabled")),disabled:I,style:C?vQ:{}},void 0===f?"\xbb":f))};function vJ(e){var t,n,r,o,a,i=e.prefixCls,l=e.panelName,c=e.locale,s=e.generateConfig,u=e.pickerValue,d=e.onPickerValueChange,f=e.onModeChange,p=e.mode,m=void 0===p?"date":p,g=e.disabledDate,h=e.onSelect,v=e.onHover,b=e.showWeek,y="".concat(i,"-").concat(void 0===l?"date":l,"-panel"),$="".concat(i,"-cell"),w="week"===m,C=vG(e,m),k=(0,eK.A)(C,2),O=k[0],A=k[1],I=s.locale.getWeekFirstDay(c.locale),N=s.setDate(u,1),j=(t=c.locale,n=s.locale.getWeekFirstDay(t),r=s.setDate(N,1),o=s.getWeekDay(r),a=s.addDate(r,n-o),s.getMonth(a)===s.getMonth(N)&&s.getDate(a)>1&&(a=s.addDate(a,-7)),a),M=s.getMonth(u),R=(void 0===b?w:b)?function(e){var t=null==g?void 0:g(e,{type:"week"});return x.createElement("td",{key:"week",className:E()($,"".concat($,"-week"),(0,eX.A)({},"".concat($,"-disabled"),t)),onClick:function(){t||h(e)},onMouseEnter:function(){t||null==v||v(e)},onMouseLeave:function(){t||null==v||v(null)}},x.createElement("div",{className:"".concat($,"-inner")},s.locale.getWeek(c.locale,e)))}:null,P=[],T=c.shortWeekDays||(s.locale.getShortWeekDays?s.locale.getShortWeekDays(c.locale):[]);R&&P.push(x.createElement("th",{key:"empty"},x.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},c.week)));for(var z=0;z<7;z+=1)P.push(x.createElement("th",{key:z},T[(z+I)%7]));var B=c.shortMonths||(s.locale.getShortMonths?s.locale.getShortMonths(c.locale):[]),D=x.createElement("button",{type:"button","aria-label":c.yearSelect,key:"year",onClick:function(){f("year",u)},tabIndex:-1,className:"".concat(i,"-year-btn")},vw(u,{locale:c,format:c.yearFormat,generateConfig:s})),H=x.createElement("button",{type:"button","aria-label":c.monthSelect,key:"month",onClick:function(){f("month",u)},tabIndex:-1,className:"".concat(i,"-month-btn")},c.monthFormat?vw(u,{locale:c,format:c.monthFormat,generateConfig:s}):B[M]),L=c.monthBeforeYear?[H,D]:[D,H];return x.createElement(vK.Provider,{value:O},x.createElement("div",{className:E()(y,b&&"".concat(y,"-show-week"))},x.createElement(vZ,{offset:function(e){return s.addMonth(u,e)},superOffset:function(e){return s.addYear(u,e)},onChange:d,getStart:function(e){return s.setDate(e,1)},getEnd:function(e){var t=s.setDate(e,1);return t=s.addMonth(t,1),s.addDate(t,-1)}},L),x.createElement(vU,S({titleFormat:c.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:j,headerCells:P,getCellDate:function(e,t){return s.addDate(e,t)},getCellText:function(e){return vw(e,{locale:c,format:c.cellDateFormat,generateConfig:s})},getCellClassName:function(e){return(0,eX.A)((0,eX.A)({},"".concat(i,"-cell-in-view"),vm(s,e,u)),"".concat(i,"-cell-today"),vg(s,e,A))},prefixColumn:R,cellSelection:!w}))))}var v0=1/3;function v1(e){var t,n,r,o,a,i,l=e.units,c=e.value,s=e.optionalValue,u=e.type,d=e.onChange,f=e.onHover,p=e.onDblClick,m=e.changeOnScroll,g=vX(),h=g.prefixCls,v=g.cellRender,b=g.now,y=g.locale,$="".concat(h,"-time-panel-cell"),w=x.useRef(null),C=x.useRef(),S=function(){clearTimeout(C.current)},k=(t=null!=c?c:s,n=x.useRef(!1),r=x.useRef(null),o=x.useRef(null),a=function(){eB.cancel(r.current),n.current=!1},i=x.useRef(),[nh(function(){var e=w.current;if(o.current=null,i.current=0,e){var l=e.querySelector('[data-value="'.concat(t,'"]')),c=e.querySelector("li");l&&c&&function t(){a(),n.current=!0,i.current+=1;var s=e.scrollTop,u=c.offsetTop,d=l.offsetTop,f=d-u;if(0===d&&l!==c||!iG(e)){i.current<=5&&(r.current=eB(t));return}var p=s+(f-s)*v0,m=Math.abs(f-p);if(null!==o.current&&o.current<m)return void a();if(o.current=m,m<=1){e.scrollTop=f,a();return}e.scrollTop=p,r.current=eB(t)}()}}),a,function(){return n.current}]),O=(0,eK.A)(k,3),A=O[0],I=O[1],N=O[2];return t$(function(){return A(),S(),function(){I(),S()}},[c,s,l.map(function(e){return[e.value,e.label,e.disabled].join(",")}).join(";")]),x.createElement("ul",{className:"".concat("".concat(h,"-time-panel"),"-column"),ref:w,"data-type":u,onScroll:function(e){S();var t=e.target;!N()&&m&&(C.current=setTimeout(function(){var e=w.current,n=e.querySelector("li").offsetTop,r=Array.from(e.querySelectorAll("li")).map(function(e){return e.offsetTop-n}).map(function(e,n){return l[n].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-t.scrollTop)}),o=Math.min.apply(Math,(0,eM.A)(r)),a=l[r.findIndex(function(e){return e===o})];a&&!a.disabled&&d(a.value)},300))}},l.map(function(e){var t=e.label,n=e.value,r=e.disabled,o=x.createElement("div",{className:"".concat($,"-inner")},t);return x.createElement("li",{key:n,className:E()($,(0,eX.A)((0,eX.A)({},"".concat($,"-selected"),c===n),"".concat($,"-disabled"),r)),onClick:function(){r||d(n)},onDoubleClick:function(){!r&&p&&p()},onMouseEnter:function(){f(n)},onMouseLeave:function(){f(null)},"data-value":n},v?v(n,{prefixCls:h,originNode:o,today:b,type:"time",subType:u,locale:y}):o)}))}function v2(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,a=e.use12Hours,i=e.changeOnScroll,l=vX(),c=l.prefixCls,s=l.values,u=l.generateConfig,d=l.locale,f=l.onSelect,p=l.onHover,m=void 0===p?function(){}:p,g=l.pickerValue,h=(null==s?void 0:s[0])||null,v=x.useContext(vY).onCellDblClick,b=v_(u,e,h),y=(0,eK.A)(b,5),$=y[0],w=y[1],C=y[2],E=y[3],k=y[4],O=function(e){return[h&&u[e](h),g&&u[e](g)]},A=O("getHour"),I=(0,eK.A)(A,2),N=I[0],j=I[1],M=O("getMinute"),R=(0,eK.A)(M,2),P=R[0],T=R[1],z=O("getSecond"),B=(0,eK.A)(z,2),D=B[0],H=B[1],L=O("getMillisecond"),F=(0,eK.A)(L,2),W=F[0],_=F[1],V=null===N?null:N<12?"am":"pm",q=x.useMemo(function(){return a?N<12?w.filter(function(e){return e.value<12}):w.filter(function(e){return!(e.value<12)}):w},[N,w,a]),K=function(e,t){var n,r=e.filter(function(e){return!e.disabled});return null!=t?t:null==r||null==(n=r[0])?void 0:n.value},X=K(w,N),G=x.useMemo(function(){return C(X)},[C,X]),Y=K(G,P),U=x.useMemo(function(){return E(X,Y)},[E,X,Y]),Q=K(U,D),Z=x.useMemo(function(){return k(X,Y,Q)},[k,X,Y,Q]),J=K(Z,W),ee=x.useMemo(function(){if(!a)return[];var e=u.getNow(),t=u.setHour(e,6),n=u.setHour(e,18),r=function(e,t){var n=d.cellMeridiemFormat;return n?vw(e,{generateConfig:u,locale:d,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:w.every(function(e){return e.disabled||!(e.value<12)})},{label:r(n,"PM"),value:"pm",disabled:w.every(function(e){return e.disabled||e.value<12})}]},[w,a,u,d]),et=function(e){f($(e))},en=x.useMemo(function(){var e=h||g||u.getNow(),t=function(e){return null!=e};return t(N)?(e=u.setHour(e,N),e=u.setMinute(e,P),e=u.setSecond(e,D),e=u.setMillisecond(e,W)):t(j)?(e=u.setHour(e,j),e=u.setMinute(e,T),e=u.setSecond(e,H),e=u.setMillisecond(e,_)):t(X)&&(e=u.setHour(e,X),e=u.setMinute(e,Y),e=u.setSecond(e,Q),e=u.setMillisecond(e,J)),e},[h,g,N,P,D,W,X,Y,Q,J,j,T,H,_,u]),er=function(e,t){return null===e?null:u[t](en,e)},eo=function(e){return er(e,"setHour")},ea=function(e){return er(e,"setMinute")},ei=function(e){return er(e,"setSecond")},el=function(e){return er(e,"setMillisecond")},ec=function(e){return null===e?null:"am"!==e||N<12?"pm"===e&&N<12?u.setHour(en,N+12):en:u.setHour(en,N-12)},es={onDblClick:v,changeOnScroll:i};return x.createElement("div",{className:"".concat(c,"-content")},t&&x.createElement(v1,S({units:q,value:N,optionalValue:j,type:"hour",onChange:function(e){et(eo(e))},onHover:function(e){m(eo(e))}},es)),n&&x.createElement(v1,S({units:G,value:P,optionalValue:T,type:"minute",onChange:function(e){et(ea(e))},onHover:function(e){m(ea(e))}},es)),r&&x.createElement(v1,S({units:U,value:D,optionalValue:H,type:"second",onChange:function(e){et(ei(e))},onHover:function(e){m(ei(e))}},es)),o&&x.createElement(v1,S({units:Z,value:W,optionalValue:_,type:"millisecond",onChange:function(e){et(el(e))},onHover:function(e){m(el(e))}},es)),a&&x.createElement(v1,S({units:ee,value:V,type:"meridiem",onChange:function(e){et(ec(e))},onHover:function(e){m(ec(e))}},es)))}function v4(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,a=e.showTime,i=(a||{}).format,l=vG(e,"time"),c=(0,eK.A)(l,1)[0];return x.createElement(vK.Provider,{value:c},x.createElement("div",{className:E()("".concat(t,"-time-panel"))},x.createElement(vZ,null,n?vw(n,{locale:r,format:i,generateConfig:o}):"\xa0"),x.createElement(v2,a)))}var v3={date:vJ,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,a=e.value,i=e.pickerValue,l=e.onHover,c=v_(n,r),s=(0,eK.A)(c,1)[0],u=function(e){return a?vC(n,e,a):vC(n,e,i)};return x.createElement("div",{className:"".concat(t,"-datetime-panel")},x.createElement(vJ,S({},e,{onSelect:function(e){var t=u(e);o(s(t,t))},onHover:function(e){null==l||l(e?u(e):e)}})),x.createElement(v4,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.hoverValue,i=e.hoverRangeValue,l=r.locale,c="".concat(t,"-week-panel-row");return x.createElement(vJ,S({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(i){var r=(0,eK.A)(i,2),s=r[0],u=r[1],d=vb(n,l,s,e),f=vb(n,l,u,e);t["".concat(c,"-range-start")]=d,t["".concat(c,"-range-end")]=f,t["".concat(c,"-range-hover")]=!d&&!f&&v$(n,s,u,e)}return a&&(t["".concat(c,"-hover")]=a.some(function(t){return vb(n,l,e,t)})),E()(c,(0,eX.A)({},"".concat(c,"-selected"),!i&&vb(n,l,o,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-month-panel"),s=vG(e,"month"),u=(0,eK.A)(s,1)[0],d=r.setMonth(o,0),f=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),p=a?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,r.getMonth(n)+1),i=r.addDate(o,-1);return a(n,t)&&a(i,t)}:null,m=x.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},vw(o,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(vK.Provider,{value:u},x.createElement("div",{className:c},x.createElement(vZ,{superOffset:function(e){return r.addYear(o,e)},onChange:i,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},m),x.createElement(vU,S({},e,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(e,t){return r.addMonth(e,t)},getCellText:function(e){var t=r.getMonth(e);return n.monthFormat?vw(e,{locale:n,format:n.monthFormat,generateConfig:r}):f[t]},getCellClassName:function(){return(0,eX.A)({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,i=e.onModeChange,l="".concat(t,"-quarter-panel"),c=vG(e,"quarter"),s=(0,eK.A)(c,1)[0],u=r.setMonth(o,0),d=x.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){i("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},vw(o,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(vK.Provider,{value:s},x.createElement("div",{className:l},x.createElement(vZ,{superOffset:function(e){return r.addYear(o,e)},onChange:a,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},d),x.createElement(vU,S({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return r.addMonth(e,3*t)},getCellText:function(e){return vw(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},getCellClassName:function(){return(0,eX.A)({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-year-panel"),s=vG(e,"year"),u=(0,eK.A)(s,1)[0],d=function(e){var t=10*Math.floor(r.getYear(e)/10);return r.setYear(e,t)},f=function(e){var t=d(e);return r.addYear(t,9)},p=d(o),m=f(o),g=r.addYear(p,-1),h=a?function(e,t){var n=r.setMonth(e,0),o=r.setDate(n,1),i=r.addYear(o,1),l=r.addDate(i,-1);return a(o,t)&&a(l,t)}:null,v=x.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},vw(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-",vw(m,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(vK.Provider,{value:u},x.createElement("div",{className:c},x.createElement(vZ,{superOffset:function(e){return r.addYear(o,10*e)},onChange:i,getStart:d,getEnd:f},v),x.createElement(vU,S({},e,{disabledDate:h,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:function(e,t){return r.addYear(e,t)},getCellText:function(e){return vw(e,{locale:n,format:n.cellYearFormat,generateConfig:r})},getCellClassName:function(e){return(0,eX.A)({},"".concat(t,"-cell-in-view"),vf(r,e,p)||vf(r,e,m)||v$(r,p,m,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,a=e.disabledDate,i=e.onPickerValueChange,l=vG(e,"decade"),c=(0,eK.A)(l,1)[0],s=function(e){var t=100*Math.floor(r.getYear(e)/100);return r.setYear(e,t)},u=function(e){var t=s(e);return r.addYear(t,99)},d=s(o),f=u(o),p=r.addYear(d,-10),m=a?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,0),i=r.setYear(o,10*Math.floor(r.getYear(o)/10)),l=r.addYear(i,10),c=r.addDate(l,-1);return a(i,t)&&a(c,t)}:null,g="".concat(vw(d,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(vw(f,{locale:n,format:n.yearFormat,generateConfig:r}));return x.createElement(vK.Provider,{value:c},x.createElement("div",{className:"".concat(t,"-decade-panel")},x.createElement(vZ,{superOffset:function(e){return r.addYear(o,100*e)},onChange:i,getStart:s,getEnd:u},g),x.createElement(vU,S({},e,{disabledDate:m,colNum:3,rowNum:4,baseDate:p,getCellDate:function(e,t){return r.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,o=vw(e,{locale:n,format:t,generateConfig:r}),a=vw(r.addYear(e,9),{locale:n,format:t,generateConfig:r});return"".concat(o,"-").concat(a)},getCellClassName:function(e){return(0,eX.A)({},"".concat(t,"-cell-in-view"),vd(r,e,d)||vd(r,e,f)||v$(r,d,f,e))}}))))},time:v4},v6=x.memo(x.forwardRef(function(e,t){var n,r=e.locale,o=e.generateConfig,a=e.direction,i=e.prefixCls,l=e.tabIndex,c=e.multiple,s=e.defaultValue,u=e.value,d=e.onChange,f=e.onSelect,p=e.defaultPickerValue,m=e.pickerValue,g=e.onPickerValueChange,h=e.mode,v=e.onPanelChange,b=e.picker,y=void 0===b?"date":b,$=e.showTime,w=e.hoverValue,C=e.hoverRangeValue,k=e.cellRender,O=e.dateRender,A=e.monthCellRender,I=e.components,N=e.hideHeader,j=(null==(n=x.useContext(h0))?void 0:n.prefixCls)||i||"rc-picker",M=x.useRef();x.useImperativeHandle(t,function(){return{nativeElement:M.current}});var R=vc(e),P=(0,eK.A)(R,4),T=P[0],z=P[1],B=P[2],H=P[3],L=vr(r,z),F="date"===y&&$?"datetime":y,W=x.useMemo(function(){return vs(F,B,H,T,L)},[F,B,H,T,L]),_=o.getNow(),V=ny(y,{value:h,postState:function(e){return e||"date"}}),q=(0,eK.A)(V,2),K=q[0],X=q[1],G="date"===K&&W?"datetime":K,Y=vq(o,r,F),U=ny(s,{value:u}),Q=(0,eK.A)(U,2),Z=Q[0],J=Q[1],ee=x.useMemo(function(){var e=h3(Z).filter(function(e){return e});return c?e:e.slice(0,1)},[Z,c]),et=nh(function(e){J(e),d&&(null===e||ee.length!==e.length||ee.some(function(t,n){return!vy(o,r,t,e[n],F)}))&&(null==d||d(c?e:e[0]))}),en=nh(function(e){null==f||f(e),K===y&&et(c?Y(ee,e):[e])}),er=ny(p||ee[0]||_,{value:m}),eo=(0,eK.A)(er,2),ea=eo[0],ei=eo[1];x.useEffect(function(){ee[0]&&!m&&ei(ee[0])},[ee[0]]);var el=function(e,t){null==v||v(e||m,t||K)},ec=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ei(e),null==g||g(e),t&&el(e)},es=function(e,t){X(e),t&&ec(t),el(t,e)},eu=x.useMemo(function(){if(Array.isArray(C)){var e,t,n=(0,eK.A)(C,2);e=n[0],t=n[1]}else e=C;return e||t?(e=e||t,t=t||e,o.isAfter(e,t)?[t,e]:[e,t]):null},[C,o]),ed=ve(k,O,A),ef=(void 0===I?{}:I)[G]||v3[G]||vJ,ep=x.useContext(vY),em=x.useMemo(function(){return(0,D.A)((0,D.A)({},ep),{},{hideHeader:N})},[ep,N]),eg="".concat(j,"-panel"),eh=h5(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return x.createElement(vY.Provider,{value:em},x.createElement("div",{ref:M,tabIndex:void 0===l?0:l,className:E()(eg,(0,eX.A)({},"".concat(eg,"-rtl"),"rtl"===a))},x.createElement(ef,S({},eh,{showTime:W,prefixCls:j,locale:L,generateConfig:o,onModeChange:es,pickerValue:ea,onPickerValueChange:function(e){ec(e,!0)},value:ee[0],onSelect:function(e){if(en(e),ec(e),K!==y){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat((0,eM.A)(n),["week"]),date:[].concat((0,eM.A)(n),["date"])}[y]||n,o=r.indexOf(K),a=r[o+1];a&&es(a,e)}},values:ee,cellRender:ed,hoverRangeValue:eu,hoverValue:w}))))}));function v5(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,i=e.onSubmit,l=e.range,c=e.hoverValue,s=x.useContext(h0),u=s.prefixCls,d=s.generateConfig,f=x.useCallback(function(e,n){return vj(d,t,e,n)},[d,t]),p=x.useMemo(function(){return f(r,1)},[r,f]),m={onCellDblClick:function(){a&&i()}},g=(0,D.A)((0,D.A)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:"time"===t});return(l?g.hoverRangeValue=c:g.hoverValue=c,n)?x.createElement("div",{className:"".concat(u,"-panels")},x.createElement(vY.Provider,{value:(0,D.A)((0,D.A)({},m),{},{hideNext:!0})},x.createElement(v6,g)),x.createElement(vY.Provider,{value:(0,D.A)((0,D.A)({},m),{},{hidePrev:!0})},x.createElement(v6,S({},g,{pickerValue:p,onPickerValueChange:function(e){o(f(e,-1))}})))):x.createElement(vY.Provider,{value:(0,D.A)({},m)},x.createElement(v6,g))}function v8(e){return"function"==typeof e?e():e}function v7(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?x.createElement("div",{className:"".concat(t,"-presets")},x.createElement("ul",null,n.map(function(e,t){var n=e.label,a=e.value;return x.createElement("li",{key:t,onClick:function(){r(v8(a))},onMouseEnter:function(){o(v8(a))},onMouseLeave:function(){o(null)}},n)}))):null}function v9(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,a=e.range,i=e.multiple,l=e.activeInfo,c=e.presets,s=e.onPresetHover,u=e.onPresetSubmit,d=e.onFocus,f=e.onBlur,p=e.onPanelMouseDown,m=e.direction,g=e.value,h=e.onSelect,v=e.isInvalid,b=e.defaultOpenValue,y=e.onOk,$=e.onSubmit,w=x.useContext(h0).prefixCls,C="".concat(w,"-panel"),k="rtl"===m,O=x.useRef(null),A=x.useRef(null),I=x.useState(0),N=(0,eK.A)(I,2),j=N[0],M=N[1],R=x.useState(0),P=(0,eK.A)(R,2),T=P[0],z=P[1],B=x.useState(0),D=(0,eK.A)(B,2),H=D[0],L=D[1],F=(0,eK.A)(void 0===l?[0,0,0]:l,3),W=F[0],_=F[1],V=F[2],q=x.useState(0),K=(0,eK.A)(q,2),X=K[0],G=K[1];function Y(e){return e.filter(function(e){return e})}x.useEffect(function(){G(10)},[W]),x.useEffect(function(){if(a&&A.current){var e,t=(null==(e=O.current)?void 0:e.offsetWidth)||0,n=A.current.getBoundingClientRect();if(!n.height||n.right<0)return void G(function(e){return Math.max(0,e-1)});L((k?_-t:W)-n.left),j&&j<V?z(Math.max(0,k?n.right-(_-t+j):W+t-n.left-j)):z(0)}},[X,k,j,W,_,V,a]);var U=x.useMemo(function(){return Y(h3(g))},[g]),Q="time"===r&&!U.length,Z=x.useMemo(function(){return Q?Y([b]):U},[Q,U,b]),J=Q?b:U,ee=x.useMemo(function(){return!Z.length||Z.some(function(e){return v(e)})},[Z,v]),et=x.createElement("div",{className:"".concat(w,"-panel-layout")},x.createElement(v7,{prefixCls:w,presets:c,onClick:u,onHover:s}),x.createElement("div",null,x.createElement(v5,S({},e,{value:J})),x.createElement(vV,S({},e,{showNow:!i&&o,invalid:ee,onSubmit:function(){Q&&h(b),y(),$()}}))));t&&(et=t(et));var en="marginLeft",er="marginRight",eo=x.createElement("div",{onMouseDown:p,tabIndex:-1,className:E()("".concat(C,"-container"),"".concat(w,"-").concat(n,"-panel-container")),style:(0,eX.A)((0,eX.A)({},k?er:en,T),k?en:er,"auto"),onFocus:d,onBlur:f},et);return a&&(eo=x.createElement("div",{onMouseDown:p,ref:A,className:E()("".concat(w,"-range-wrapper"),"".concat(w,"-").concat(r,"-range-wrapper"))},x.createElement("div",{ref:O,className:"".concat(w,"-range-arrow"),style:{left:H}}),x.createElement(ej,{onResize:function(e){e.width&&M(e.width)}},eo))),eo}function be(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,a=e.locale,i=e.preserveInvalidOnBlur,l=e.inputReadOnly,c=e.required,s=e["aria-required"],u=e.onSubmit,d=e.onFocus,f=e.onBlur,p=e.onInputChange,m=e.onInvalid,g=e.open,h=e.onOpenChange,v=e.onKeyDown,b=e.onChange,y=e.activeHelp,$=e.name,w=e.autoComplete,C=e.id,E=e.value,S=e.invalid,k=e.placeholder,O=e.disabled,A=e.activeIndex,I=e.allHelp,N=e.picker,j=function(e,t){var n=o.locale.parse(a.locale,e,[t]);return n&&o.isValidate(n)?n:null},M=n[0],R=x.useCallback(function(e){return vw(e,{locale:a,format:M,generateConfig:o})},[a,o,M]),P=x.useMemo(function(){return E.map(R)},[E,R]),T=x.useMemo(function(){return Math.max("time"===N?8:10,"function"==typeof M?M(o.getNow()).length:M.length)+2},[M,N,o]),z=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"==typeof r){var o=j(e,r);if(o)return o}}return!1};return[function(n){function o(e){return void 0!==n?e[n]:e}var a=o5(e,{aria:!0,data:!0}),x=(0,D.A)((0,D.A)({},a),{},{format:r,validateFormat:function(e){return!!z(e)},preserveInvalidOnBlur:i,readOnly:l,required:c,"aria-required":s,name:$,autoComplete:w,size:T,id:o(C),value:o(P)||"",invalid:o(S),placeholder:o(k),active:A===n,helped:I||y&&A===n,disabled:o(O),onFocus:function(e){d(e,n)},onBlur:function(e){f(e,n)},onSubmit:u,onChange:function(e){p();var t=z(e);if(t){m(!1,n),b(t,n);return}m(!!e,n)},onHelp:function(){h(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null==v||v(e,function(){t=!0}),!e.defaultPrevented&&!t)switch(e.key){case"Escape":h(!1,{index:n});break;case"Enter":g||h(!0)}}},null==t?void 0:t({valueTexts:P}));return Object.keys(x).forEach(function(e){void 0===x[e]&&delete x[e]}),x},R]}var bt=["onMouseEnter","onMouseLeave"];function bn(e){return x.useMemo(function(){return h5(e,bt)},[e])}var br=["icon","type"],bo=["onClear"];function ba(e){var t=e.icon,n=e.type,r=(0,r3.A)(e,br),o=x.useContext(h0).prefixCls;return t?x.createElement("span",S({className:"".concat(o,"-").concat(n)},r),t):null}function bi(e){var t=e.onClear,n=(0,r3.A)(e,bo);return x.createElement(ba,S({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var bl=["YYYY","MM","DD","HH","mm","ss","SSS"],bc=function(){function e(t){(0,ew.A)(this,e),(0,eX.A)(this,"format",void 0),(0,eX.A)(this,"maskFormat",void 0),(0,eX.A)(this,"cells",void 0),(0,eX.A)(this,"maskCells",void 0),this.format=t;var n=RegExp(bl.map(function(e){return"(".concat(e,")")}).join("|"),"g");this.maskFormat=t.replace(n,function(e){return"顧".repeat(e.length)});var r=new RegExp("(".concat(bl.join("|"),")")),o=(t.split(r)||[]).filter(function(e){return e}),a=0;this.cells=o.map(function(e){var t=bl.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(function(e){return e.mask})}return(0,eC.A)(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],a=o.start,i=o.end;if(e>=a&&e<=i)return r;var l=Math.min(Math.abs(e-a),Math.abs(e-i));l<t&&(t=l,n=r)}return n}}]),e}(),bs=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],bu=x.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=e.suffixIcon,a=e.format,i=e.validateFormat,l=e.onChange,c=(e.onInput,e.helped),s=e.onHelp,u=e.onSubmit,d=e.onKeyDown,f=e.preserveInvalidOnBlur,p=void 0!==f&&f,m=e.invalid,g=e.clearIcon,h=(0,r3.A)(e,bs),v=e.value,b=e.onFocus,y=e.onBlur,$=e.onMouseUp,w=x.useContext(h0),C=w.prefixCls,k=w.input,O="".concat(C,"-input"),A=x.useState(!1),I=(0,eK.A)(A,2),N=I[0],j=I[1],M=x.useState(v),R=(0,eK.A)(M,2),P=R[0],T=R[1],z=x.useState(""),B=(0,eK.A)(z,2),D=B[0],H=B[1],L=x.useState(null),F=(0,eK.A)(L,2),W=F[0],_=F[1],V=x.useState(null),q=(0,eK.A)(V,2),K=q[0],X=q[1],G=P||"";x.useEffect(function(){T(v)},[v]);var Y=x.useRef(),U=x.useRef();x.useImperativeHandle(t,function(){return{nativeElement:Y.current,inputElement:U.current,focus:function(e){U.current.focus(e)},blur:function(){U.current.blur()}}});var Q=x.useMemo(function(){return new bc(a||"")},[a]),Z=x.useMemo(function(){return c?[0,0]:Q.getSelection(W)},[Q,W,c]),J=(0,eK.A)(Z,2),ee=J[0],et=J[1],en=function(e){e&&e!==a&&e!==v&&s()},er=nh(function(e){i(e)&&l(e),T(e),en(e)}),eo=x.useRef(!1),ea=function(e){y(e)};vI(n,function(){n||p||T(v)});var ei=function(e){"Enter"===e.key&&i(G)&&u(),null==d||d(e)},el=x.useRef();t$(function(){if(N&&a&&!eo.current)return Q.match(G)?(U.current.setSelectionRange(ee,et),el.current=eB(function(){U.current.setSelectionRange(ee,et)}),function(){eB.cancel(el.current)}):void er(a)},[Q,a,N,G,W,ee,et,K,er]);var ec=a?{onFocus:function(e){j(!0),_(0),H(""),b(e)},onBlur:function(e){j(!1),ea(e)},onKeyDown:function(e){ei(e);var t=e.key,n=null,r=null,o=et-ee,i=a.slice(ee,et),l=function(e){_(function(t){var n=t+e;return Math.min(n=Math.max(n,0),Q.size()-1)})},c=function(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[i],n=(0,eK.A)(t,3),r=n[0],o=n[1],a=n[2],l=Number(G.slice(ee,et));if(isNaN(l))return String(a||(e>0?r:o));var c=o-r+1;return String(r+(c+(l+e)-r)%c)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=D+t)}null!==n&&(H(n),n.length>=o&&(l(1),H(""))),null!==r&&er((G.slice(0,ee)+h4(r,o)+G.slice(et)).slice(0,a.length)),X({})},onMouseDown:function(){eo.current=!0},onMouseUp:function(e){var t=e.target.selectionStart;_(Q.getMaskCellIndex(t)),X({}),null==$||$(e),eo.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");i(t)&&er(t)}}:{};return x.createElement("div",{ref:Y,className:E()(O,(0,eX.A)((0,eX.A)({},"".concat(O,"-active"),n&&(void 0===r||r)),"".concat(O,"-placeholder"),c))},x.createElement(void 0===k?"input":k,S({ref:U,"aria-invalid":m,autoComplete:"off"},h,{onKeyDown:ei,onBlur:ea},ec,{value:G,onChange:function(e){if(!a){var t=e.target.value;en(t),T(t),l(t)}}})),x.createElement(ba,{type:"suffix",icon:o}),g)}),bd=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],bf=["index"],bp=x.forwardRef(function(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=e.separator,l=e.activeIndex,c=(e.activeHelp,e.allHelp,e.focused),s=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),u=e.className,d=e.style,f=e.onClick,p=e.onClear,m=e.value,g=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),h=e.invalid,v=(e.inputReadOnly,e.direction),b=(e.onOpenChange,e.onActiveInfo),y=(e.placement,e.onMouseDown),$=(e.required,e["aria-required"],e.autoFocus),w=e.tabIndex,C=(0,r3.A)(e,bd),O=x.useContext(h0).prefixCls,A=x.useMemo(function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]},[n]),I=x.useRef(),N=x.useRef(),j=x.useRef(),M=function(e){var t;return null==(t=[N,j][e])?void 0:t.current};x.useImperativeHandle(t,function(){return{nativeElement:I.current,focus:function(e){if("object"===(0,k.A)(e)){var t,n,r=e||{},o=r.index,a=(0,r3.A)(r,bf);null==(n=M(void 0===o?0:o))||n.focus(a)}else null==(t=M(null!=e?e:0))||t.focus()},blur:function(){var e,t;null==(e=M(0))||e.blur(),null==(t=M(1))||t.blur()}}});var R=bn(C),P=x.useMemo(function(){return Array.isArray(s)?s:[s,s]},[s]),T=be((0,D.A)((0,D.A)({},e),{},{id:A,placeholder:P})),z=(0,eK.A)(T,1)[0],B=x.useState({position:"absolute",width:0}),H=(0,eK.A)(B,2),L=H[0],F=H[1],W=nh(function(){var e=M(l);if(e){var t=e.nativeElement.getBoundingClientRect(),n=I.current.getBoundingClientRect(),r=t.left-n.left;F(function(e){return(0,D.A)((0,D.A)({},e),{},{width:t.width,left:r})}),b([t.left,t.right,n.width])}});x.useEffect(function(){W()},[l]);var _=o&&(m[0]&&!g[0]||m[1]&&!g[1]),V=$&&!g[0],q=$&&!V&&!g[1];return x.createElement(ej,{onResize:W},x.createElement("div",S({},R,{className:E()(O,"".concat(O,"-range"),(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(O,"-focused"),c),"".concat(O,"-disabled"),g.every(function(e){return e})),"".concat(O,"-invalid"),h.some(function(e){return e})),"".concat(O,"-rtl"),"rtl"===v),u),style:d,ref:I,onClick:f,onMouseDown:function(e){var t=e.target;t!==N.current.inputElement&&t!==j.current.inputElement&&e.preventDefault(),null==y||y(e)}}),r&&x.createElement("div",{className:"".concat(O,"-prefix")},r),x.createElement(bu,S({ref:N},z(0),{autoFocus:V,tabIndex:w,"date-range":"start"})),x.createElement("div",{className:"".concat(O,"-range-separator")},void 0===i?"~":i),x.createElement(bu,S({ref:j},z(1),{autoFocus:q,tabIndex:w,"date-range":"end"})),x.createElement("div",{className:"".concat(O,"-active-bar"),style:L}),x.createElement(ba,{type:"suffix",icon:a}),_&&x.createElement(bi,{icon:o,onClear:p})))});function bm(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function bg(e){return 1===e?"end":"start"}var bh=x.forwardRef(function(e,t){var n,r=vS(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:bm(t,!1),allowEmpty:bm(n,!1)}}),o=(0,eK.A)(r,6),a=o[0],i=o[1],l=o[2],c=o[3],s=o[4],u=o[5],d=a.prefixCls,f=a.styles,p=a.classNames,m=a.defaultValue,g=a.value,h=a.needConfirm,v=a.onKeyDown,b=a.disabled,y=a.allowEmpty,$=a.disabledDate,w=a.minDate,C=a.maxDate,E=a.defaultOpen,k=a.open,O=a.onOpenChange,A=a.locale,I=a.generateConfig,N=a.picker,j=a.showNow,M=a.showToday,R=a.showTime,P=a.mode,T=a.onPanelChange,z=a.onCalendarChange,B=a.onOk,H=a.defaultPickerValue,L=a.pickerValue,F=a.onPickerValueChange,W=a.inputReadOnly,_=a.suffixIcon,V=a.onFocus,q=a.onBlur,K=a.presets,X=a.ranges,G=a.components,Y=a.cellRender,U=a.dateRender,Q=a.monthCellRender,Z=a.onClick,J=vO(t),ee=vk(k,E,b,O),et=(0,eK.A)(ee,2),en=et[0],er=et[1],eo=function(e,t){(b.some(function(e){return!e})||!e)&&er(e,t)},ea=vD(I,A,c,!0,!1,m,g,z,B),ei=(0,eK.A)(ea,5),el=ei[0],ec=ei[1],es=ei[2],eu=ei[3],ed=ei[4],ef=es(),ep=vN(b,y,en),em=(0,eK.A)(ep,9),eg=em[0],eh=em[1],ev=em[2],eb=em[3],ey=em[4],e$=em[5],ex=em[6],ew=em[7],eC=em[8],eE=function(e,t){eh(!0),null==V||V(e,{range:bg(null!=t?t:eb)})},eS=function(e,t){eh(!1),null==q||q(e,{range:bg(null!=t?t:eb)})},ek=x.useMemo(function(){if(!R)return null;var e=R.disabledTime,t=e?function(t){return e(t,bg(eb),{from:h7(ef,ex,eb)})}:void 0;return(0,D.A)((0,D.A)({},R),{},{disabledTime:t})},[R,eb,ef,ex]),eO=ny([N,N],{value:P}),eA=(0,eK.A)(eO,2),eI=eA[0],eN=eA[1],ej=eI[eb]||N,eR="date"===ej&&ek?"datetime":ej,eP=eR===N&&"time"!==eR,eT=vL(N,ej,j,M,!0),ez=vH(a,el,ec,es,eu,b,c,eg,en,u),eB=(0,eK.A)(ez,2),eD=eB[0],eH=eB[1],eL=(n=ex[ex.length-1],function(e,t){var r=(0,eK.A)(ef,2),o=r[0],a=r[1],i=(0,D.A)((0,D.A)({},t),{},{from:h7(ef,ex)});return!!(1===n&&b[0]&&o&&!vy(I,A,o,e,i.type)&&I.isAfter(o,e)||0===n&&b[1]&&a&&!vy(I,A,a,e,i.type)&&I.isAfter(e,a))||(null==$?void 0:$(e,i))}),eF=vt(ef,u,y),eW=(0,eK.A)(eF,2),e_=eW[0],eV=eW[1],eq=vR(I,A,ef,eI,en,eb,i,eP,H,L,null==ek?void 0:ek.defaultOpenValue,F,w,C),eX=(0,eK.A)(eq,2),eG=eX[0],eY=eX[1],eU=nh(function(e,t,n){var r=h6(eI,eb,t);if((r[0]!==eI[0]||r[1]!==eI[1])&&eN(r),T&&!1!==n){var o=(0,eM.A)(ef);e&&(o[eb]=e),T(o,r)}}),eQ=function(e,t){return h6(ef,t,e)},eZ=function(e,t){var n=ef;e&&(n=eQ(e,eb)),ew(eb);var r=e$(n);eu(n),eD(eb,null===r),null===r?eo(!1,{force:!0}):t||J.current.focus({index:r})},eJ=x.useState(null),e0=(0,eK.A)(eJ,2),e1=e0[0],e2=e0[1],e4=x.useState(null),e3=(0,eK.A)(e4,2),e6=e3[0],e5=e3[1],e8=x.useMemo(function(){return e6||ef},[ef,e6]);x.useEffect(function(){en||e5(null)},[en]);var e7=x.useState([0,0,0]),e9=(0,eK.A)(e7,2),te=e9[0],tt=e9[1],tn=vA(K,X),tr=ve(Y,U,Q,bg(eb)),to=ef[eb]||null,ta=nh(function(e){return u(e,{activeIndex:eb})}),ti=x.useMemo(function(){var e=o5(a,!1);return iX(a,[].concat((0,eM.A)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))},[a]),tl=x.createElement(v9,S({},ti,{showNow:eT,showTime:ek,range:!0,multiplePanel:eP,activeInfo:te,disabledDate:eL,onFocus:function(e){eo(!0),eE(e)},onBlur:eS,onPanelMouseDown:function(){ev("panel")},picker:N,mode:ej,internalMode:eR,onPanelChange:eU,format:s,value:to,isInvalid:ta,onChange:null,onSelect:function(e){eu(h6(ef,eb,e)),h||l||i!==eR||eZ(e)},pickerValue:eG,defaultOpenValue:h3(null==R?void 0:R.defaultOpenValue)[eb],onPickerValueChange:eY,hoverValue:e8,onHover:function(e){e5(e?eQ(e,eb):null),e2("cell")},needConfirm:h,onSubmit:eZ,onOk:ed,presets:tn,onPresetHover:function(e){e5(e),e2("preset")},onPresetSubmit:function(e){eH(e)&&eo(!1,{force:!0})},onNow:function(e){eZ(e)},cellRender:tr})),tc=x.useMemo(function(){return{prefixCls:d,locale:A,generateConfig:I,button:G.button,input:G.input}},[d,A,I,G.button,G.input]);return t$(function(){en&&void 0!==eb&&eU(null,N,!1)},[en,eb,N]),t$(function(){var e=ev();en||"input"!==e||(eo(!1),eZ(null,!0)),en||!l||h||"panel"!==e||(eo(!0),eZ())},[en]),x.createElement(h0.Provider,{value:tc},x.createElement(h2,S({},h9(a),{popupElement:tl,popupStyle:f.popup,popupClassName:p.popup,visible:en,onClose:function(){eo(!1)},range:!0}),x.createElement(bp,S({},a,{ref:J,suffixIcon:_,activeIndex:eg||en?eb:null,activeHelp:!!e6,allHelp:!!e6&&"preset"===e1,focused:eg,onFocus:function(e,t){var n=ex.length,r=ex[n-1];n&&r!==t&&h&&!y[r]&&!eC(r)&&ef[r]?J.current.focus({index:r}):(ev("input"),eo(!0,{inherit:!0}),eb!==t&&en&&!h&&l&&eZ(null,!0),ey(t),eE(e,t))},onBlur:function(e,t){eo(!1),h||"input"!==ev()||eD(eb,null===e$(ef)),eS(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&eZ(null,!0),null==v||v(e,t)},onSubmit:eZ,value:e8,maskFormat:s,onChange:function(e,t){eu(eQ(e,t))},onInputChange:function(){ev("input")},format:c,inputReadOnly:W,disabled:b,open:en,onOpenChange:eo,onClick:function(e){var t,n=e.target.getRootNode();if(!J.current.nativeElement.contains(null!=(t=n.activeElement)?t:document.activeElement)){var r=b.findIndex(function(e){return!e});r>=0&&J.current.focus({index:r})}eo(!0),null==Z||Z(e)},onClear:function(){eH(null),eo(!1,{force:!0})},invalid:e_,onInvalid:eV,onActiveInfo:tt}))))});function bv(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=void 0===o?"\xd7":o,i=e.formatDate,l=e.disabled,c=e.maxTagCount,s=e.placeholder,u="".concat(t,"-selection");function d(e,t){return x.createElement("span",{className:E()("".concat(u,"-item")),title:"string"==typeof e?e:null},x.createElement("span",{className:"".concat(u,"-item-content")},e),!l&&t&&x.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(u,"-item-remove")},a))}return x.createElement("div",{className:"".concat(t,"-selector")},x.createElement(dM,{prefixCls:"".concat(u,"-overflow"),data:n,renderItem:function(e){return d(i(e),function(t){t&&t.stopPropagation(),r(e)})},renderRest:function(e){return d("+ ".concat(e.length," ..."))},itemKey:function(e){return i(e)},maxCount:c}),!n.length&&x.createElement("span",{className:"".concat(t,"-selection-placeholder")},s))}var bb=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"],by=x.forwardRef(function(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,a=e.suffixIcon,i=(e.activeHelp,e.allHelp,e.focused),l=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),c=e.generateConfig,s=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,m=e.internalPicker,g=e.value,h=e.onChange,v=e.onSubmit,b=(e.onInputChange,e.multiple),y=e.maxTagCount,$=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),w=e.invalid,C=(e.inputReadOnly,e.direction),k=(e.onOpenChange,e.onMouseDown),O=(e.required,e["aria-required"],e.autoFocus),A=e.tabIndex,I=e.removeIcon,N=(0,r3.A)(e,bb),j=x.useContext(h0).prefixCls,M=x.useRef(),R=x.useRef();x.useImperativeHandle(t,function(){return{nativeElement:M.current,focus:function(e){var t;null==(t=R.current)||t.focus(e)},blur:function(){var e;null==(e=R.current)||e.blur()}}});var P=bn(N),T=be((0,D.A)((0,D.A)({},e),{},{onChange:function(e){h([e])}}),function(e){return{value:e.valueTexts[0]||"",active:i}}),z=(0,eK.A)(T,2),B=z[0],H=z[1],L=!!(o&&g.length&&!$),F=b?x.createElement(x.Fragment,null,x.createElement(bv,{prefixCls:j,value:g,onRemove:function(e){h(g.filter(function(t){return t&&!vy(c,l,t,e,m)})),n||v()},formatDate:H,maxTagCount:y,disabled:$,removeIcon:I,placeholder:s}),x.createElement("input",{className:"".concat(j,"-multiple-input"),value:g.map(H).join(","),ref:R,readOnly:!0,autoFocus:O,tabIndex:A}),x.createElement(ba,{type:"suffix",icon:a}),L&&x.createElement(bi,{icon:o,onClear:p})):x.createElement(bu,S({ref:R},B(),{autoFocus:O,tabIndex:A,suffixIcon:a,clearIcon:L&&x.createElement(bi,{icon:o,onClear:p}),showActiveCls:!1}));return x.createElement("div",S({},P,{className:E()(j,(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(j,"-multiple"),b),"".concat(j,"-focused"),i),"".concat(j,"-disabled"),$),"".concat(j,"-invalid"),w),"".concat(j,"-rtl"),"rtl"===C),u),style:d,ref:M,onClick:f,onMouseDown:function(e){var t;e.target!==(null==(t=R.current)?void 0:t.inputElement)&&e.preventDefault(),null==k||k(e)}}),r&&x.createElement("div",{className:"".concat(j,"-prefix")},r),F)}),b$=x.forwardRef(function(e,t){var n=vS(e),r=(0,eK.A)(n,6),o=r[0],a=r[1],i=r[2],l=r[3],c=r[4],s=r[5],u=o.prefixCls,d=o.styles,f=o.classNames,p=o.order,m=o.defaultValue,g=o.value,h=o.needConfirm,v=o.onChange,b=o.onKeyDown,y=o.disabled,$=o.disabledDate,w=o.minDate,C=o.maxDate,E=o.defaultOpen,k=o.open,O=o.onOpenChange,A=o.locale,I=o.generateConfig,N=o.picker,j=o.showNow,M=o.showToday,R=o.showTime,P=o.mode,T=o.onPanelChange,z=o.onCalendarChange,B=o.onOk,H=o.multiple,L=o.defaultPickerValue,F=o.pickerValue,W=o.onPickerValueChange,_=o.inputReadOnly,V=o.suffixIcon,q=o.removeIcon,K=o.onFocus,X=o.onBlur,G=o.presets,Y=o.components,U=o.cellRender,Q=o.dateRender,Z=o.monthCellRender,J=o.onClick,ee=vO(t);function et(e){return null===e?null:H?e:e[0]}var en=vq(I,A,a),er=vk(k,E,[y],O),eo=(0,eK.A)(er,2),ea=eo[0],ei=eo[1],el=vD(I,A,l,!1,p,m,g,function(e,t,n){if(z){var r=(0,D.A)({},n);delete r.range,z(et(e),et(t),r)}},function(e){null==B||B(et(e))}),ec=(0,eK.A)(el,5),es=ec[0],eu=ec[1],ed=ec[2],ef=ec[3],ep=ec[4],em=ed(),eg=vN([y]),eh=(0,eK.A)(eg,4),ev=eh[0],eb=eh[1],ey=eh[2],e$=eh[3],ex=function(e){eb(!0),null==K||K(e,{})},ew=function(e){eb(!1),null==X||X(e,{})},eC=ny(N,{value:P}),eE=(0,eK.A)(eC,2),eS=eE[0],ek=eE[1],eO="date"===eS&&R?"datetime":eS,eA=vL(N,eS,j,M),eI=vH((0,D.A)((0,D.A)({},o),{},{onChange:v&&function(e,t){v(et(e),et(t))}}),es,eu,ed,ef,[],l,ev,ea,s),eN=(0,eK.A)(eI,2)[1],ej=vt(em,s),eR=(0,eK.A)(ej,2),eP=eR[0],eT=eR[1],ez=x.useMemo(function(){return eP.some(function(e){return e})},[eP]),eB=vR(I,A,em,[eS],ea,e$,a,!1,L,F,h3(null==R?void 0:R.defaultOpenValue),function(e,t){if(W){var n=(0,D.A)((0,D.A)({},t),{},{mode:t.mode[0]});delete n.range,W(e[0],n)}},w,C),eD=(0,eK.A)(eB,2),eH=eD[0],eL=eD[1],eF=nh(function(e,t,n){ek(t),T&&!1!==n&&T(e||em[em.length-1],t)}),eW=function(){eN(ed()),ei(!1,{force:!0})},e_=x.useState(null),eV=(0,eK.A)(e_,2),eq=eV[0],eX=eV[1],eG=x.useState(null),eY=(0,eK.A)(eG,2),eU=eY[0],eQ=eY[1],eZ=x.useMemo(function(){var e=[eU].concat((0,eM.A)(em)).filter(function(e){return e});return H?e:e.slice(0,1)},[em,eU,H]),eJ=x.useMemo(function(){return!H&&eU?[eU]:em.filter(function(e){return e})},[em,eU,H]);x.useEffect(function(){ea||eQ(null)},[ea]);var e0=vA(G),e1=function(e){eN(H?en(ed(),e):[e])&&!H&&ei(!1,{force:!0})},e2=ve(U,Q,Z),e4=x.useMemo(function(){var e=o5(o,!1),t=iX(o,[].concat((0,eM.A)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,D.A)((0,D.A)({},t),{},{multiple:o.multiple})},[o]),e3=x.createElement(v9,S({},e4,{showNow:eA,showTime:R,disabledDate:$,onFocus:function(e){ei(!0),ex(e)},onBlur:ew,picker:N,mode:eS,internalMode:eO,onPanelChange:eF,format:c,value:em,isInvalid:s,onChange:null,onSelect:function(e){ey("panel"),(!H||eO===N)&&(ef(H?en(ed(),e):[e]),h||i||a!==eO||eW())},pickerValue:eH,defaultOpenValue:null==R?void 0:R.defaultOpenValue,onPickerValueChange:eL,hoverValue:eZ,onHover:function(e){eQ(e),eX("cell")},needConfirm:h,onSubmit:eW,onOk:ep,presets:e0,onPresetHover:function(e){eQ(e),eX("preset")},onPresetSubmit:e1,onNow:function(e){e1(e)},cellRender:e2})),e6=x.useMemo(function(){return{prefixCls:u,locale:A,generateConfig:I,button:Y.button,input:Y.input}},[u,A,I,Y.button,Y.input]);return t$(function(){ea&&void 0!==e$&&eF(null,N,!1)},[ea,e$,N]),t$(function(){var e=ey();ea||"input"!==e||(ei(!1),eW()),ea||!i||h||"panel"!==e||eW()},[ea]),x.createElement(h0.Provider,{value:e6},x.createElement(h2,S({},h9(o),{popupElement:e3,popupStyle:d.popup,popupClassName:f.popup,visible:ea,onClose:function(){ei(!1)}}),x.createElement(by,S({},o,{ref:ee,suffixIcon:V,removeIcon:q,activeHelp:!!eU,allHelp:!!eU&&"preset"===eq,focused:ev,onFocus:function(e){ey("input"),ei(!0,{inherit:!0}),ex(e)},onBlur:function(e){ei(!1),ew(e)},onKeyDown:function(e,t){"Tab"===e.key&&eW(),null==b||b(e,t)},onSubmit:eW,value:eJ,maskFormat:c,onChange:function(e){ef(e)},onInputChange:function(){ey("input")},internalPicker:a,format:l,inputReadOnly:_,disabled:y,open:ea,onOpenChange:ei,onClick:function(e){y||ee.current.nativeElement.contains(document.activeElement)||ee.current.focus(),ei(!0),null==J||J(e)},onClear:function(){eN(null),ei(!1,{force:!0})},invalid:ez,onInvalid:function(e){eT(e,0)}}))))});let bx=x.createContext(null),bw=bx.Provider,bC=x.createContext(null),bE=bC.Provider;var bS=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],bk=(0,x.forwardRef)(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,l=e.disabled,c=e.defaultChecked,s=e.type,u=void 0===s?"checkbox":s,d=e.title,f=e.onChange,p=(0,r3.A)(e,bS),m=(0,x.useRef)(null),g=(0,x.useRef)(null),h=ny(void 0!==c&&c,{value:i}),v=(0,eK.A)(h,2),b=v[0],y=v[1];(0,x.useImperativeHandle)(t,function(){return{focus:function(e){var t;null==(t=m.current)||t.focus(e)},blur:function(){var e;null==(e=m.current)||e.blur()},input:m.current,nativeElement:g.current}});var $=E()(r,o,(0,eX.A)((0,eX.A)({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),l));return x.createElement("span",{className:$,title:d,style:a,ref:g},x.createElement("input",S({},p,{className:"".concat(r,"-input"),ref:m,onChange:function(t){l||("checked"in e||y(t.target.checked),null==f||f({target:(0,D.A)((0,D.A)({},e),{},{type:u,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:l,checked:!!b,type:u})),x.createElement("span",{className:"".concat(r,"-inner")}))});function bO(e){let t=w().useRef(null),n=()=>{eB.cancel(t.current),t.current=null};return[()=>{n(),t.current=eB(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),null==e||e(r)}]}let bA=rK("Radio",e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${tg(n)} ${t}`,o=nR(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[(e=>{let{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},nF(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}})(o),(e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,$=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},nF(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${tg(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},nF(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
@@ -274,7 +274,7 @@
274
274
  ${t}-col-xl-24${n}-label`]:SC(e)}}})(n),(e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
275
275
  > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}})(n),(e=>{let{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
276
276
  ${r}-col-24${n}-label,
277
- ${r}-col-xl-24${n}-label`]:SC(e)},[`@media (max-width: ${tg(e.screenXSMax)})`]:[(e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:SC(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}})(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:SC(e)}}}],[`@media (max-width: ${tg(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:SC(e)}}},[`@media (max-width: ${tg(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:SC(e)}}},[`@media (max-width: ${tg(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:SC(e)}}}}})(n),lq(n),uy]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),Sk=[];function SO(e,t,n,r=0){return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}let SA=({help:e,helpStatus:t,errors:n=Sk,warnings:r=Sk,className:o,fieldId:a,onVisibleChanged:i})=>{let{prefixCls:l}=x.useContext(sV),c=`${l}-item-explain`,s=a$(l),[u,d,f]=SS(l,s),p=x.useMemo(()=>iq(l),[l]),m=Sx(n),g=Sx(r),h=x.useMemo(()=>null!=e?[SO(e,"help",t)]:[].concat((0,eM.A)(m.map((e,t)=>SO(e,"error","error",t))),(0,eM.A)(g.map((e,t)=>SO(e,"warning","warning",t)))),[e,t,m,g]),v=x.useMemo(()=>{let e={};return h.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),h.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[h]),b={};return a&&(b.id=`${a}_help`),u(x.createElement(oG,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!v.length,onVisibleChanged:i},e=>{let{className:t,style:n}=e;return x.createElement("div",Object.assign({},b,{className:E()(c,t,f,s,o,d),style:n}),x.createElement(o4,Object.assign({keys:v},iq(l),{motionName:`${l}-show-help-item`,component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:o,style:a}=e;return x.createElement("div",{key:t,className:E()(o,{[`${c}-${r}`]:r}),style:a},n)}))}))};var SI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let SN=x.forwardRef((e,t)=>{let n=x.useContext(id),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:l,className:c,style:s}=eq("form"),{prefixCls:u,className:d,rootClassName:f,size:p,disabled:m=n,form:g,colon:h,labelAlign:v,labelWrap:b,labelCol:y,wrapperCol:$,hideRequiredMark:w,layout:C="horizontal",scrollToFirstError:S,requiredMark:k,onFinishFailed:O,name:A,style:I,feedbackIcons:N,variant:j}=e,M=SI(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),R=i1(p),P=x.useContext(a8),T=x.useMemo(()=>void 0!==k?k:!w&&(void 0===a||a),[w,k,a]),z=null!=h?h:i,B=r("form",u),D=a$(B),[H,L,F]=SS(B,D),W=E()(B,`${B}-${C}`,{[`${B}-hide-required-mark`]:!1===T,[`${B}-rtl`]:"rtl"===o,[`${B}-${R}`]:R},F,D,L,c,d,f),[_]=bD(g),{__INTERNAL__:V}=_;V.name=A;let q=x.useMemo(()=>({name:A,labelAlign:v,labelCol:y,labelWrap:b,wrapperCol:$,layout:C,colon:z,requiredMark:T,itemRef:V.itemRef,form:_,feedbackIcons:N}),[A,v,y,$,C,z,T,_,N]),K=x.useRef(null);x.useImperativeHandle(t,()=>{var e;return Object.assign(Object.assign({},_),{nativeElement:null==(e=K.current)?void 0:e.nativeElement})});let X=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),_.scrollToField(t,n)}};return H(x.createElement(sX.Provider,{value:j},x.createElement(ip,{disabled:m},x.createElement(im.Provider,{value:R},x.createElement(s_,{validateMessages:P},x.createElement(sF.Provider,{value:q},x.createElement(sK,{status:!0},x.createElement(sL,Object.assign({id:A},M,{name:A,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==S)return void X(S,t);void 0!==l&&X(l,t)}},form:_,ref:K,style:Object.assign(Object.assign({},s),I),className:W})))))))))}),Sj=()=>{let{status:e,errors:t=[],warnings:n=[]}=x.useContext(sq);return{status:e,errors:t,warnings:n}};Sj.Context=sq;var SM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function SR(e,t){let[n,r]=x.useState("string"==typeof e?e:"");return x.useEffect(()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<pL.length;n++){let o=pL[n];if(!t||!t[o])continue;let a=e[o];if(void 0!==a)return void r(a)}})()},[JSON.stringify(e),t]),n}let SP=x.forwardRef((e,t)=>{let n,r,o,{prefixCls:a,justify:i,align:l,className:c,style:s,children:u,gutter:d=0,wrap:f}=e,p=SM(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:m,direction:g}=x.useContext(eW),h=p_(!0,null),v=SR(l,h),b=SR(i,h),y=m("row",a),[$,w,C]=uf(y),S=(n=[void 0,void 0],r=Array.isArray(d)?d:[d,void 0],o=h||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0},r.forEach((e,t)=>{if("object"==typeof e&&null!==e)for(let r=0;r<pL.length;r++){let a=pL[r];if(o[a]&&void 0!==e[a]){n[t]=e[a];break}}else n[t]=e}),n),k=E()(y,{[`${y}-no-wrap`]:!1===f,[`${y}-${b}`]:b,[`${y}-${v}`]:v,[`${y}-rtl`]:"rtl"===g},c,w,C),O={};if(null==S?void 0:S[0]){let e="number"==typeof S[0]?`${-(S[0]/2)}px`:`calc(${S[0]} / -2)`;O.marginLeft=e,O.marginRight=e}let[A,I]=S;O.rowGap=I;let N=x.useMemo(()=>({gutter:[A,I],wrap:f}),[A,I,f]);return $(x.createElement(xR.Provider,{value:N},x.createElement("div",Object.assign({},p,{className:k,style:Object.assign(Object.assign({},O),s),ref:t}),u)))}),ST=rG(["Form","item-item"],(e,{rootPrefixCls:t})=>(e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}})(SE(e,t)));var Sz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let SB=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:l,_internalItemRender:c,extra:s,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,g=`${t}-item`,h=x.useContext(sF),v=x.useMemo(()=>{let e=Object.assign({},o||h.wrapperCol||{});return null!==m||r||o||!h.labelCol||[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{let n=t?[t]:[],r=n$(h.labelCol,n),o="object"==typeof r?r:{},a=n$(e,n);"span"in o&&!("offset"in("object"==typeof a?a:{}))&&o.span<24&&(e=nk(e,[].concat(n,["offset"]),o.span))}),e},[o,h.wrapperCol,h.labelCol,m,r]),b=E()(`${g}-control`,v.className),y=x.useMemo(()=>{let{labelCol:e,wrapperCol:t}=h;return Sz(h,["labelCol","wrapperCol"])},[h]),$=x.useRef(null),[w,C]=x.useState(0);t$(()=>{s&&$.current?C($.current.clientHeight):C(0)},[s]);let S=x.createElement("div",{className:`${g}-control-input`},x.createElement("div",{className:`${g}-control-input-content`},a)),k=x.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=null!==f||i.length||l.length?x.createElement(sV.Provider,{value:k},x.createElement(SA,{fieldId:d,errors:i,warnings:l,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})):null,A={};d&&(A.id=`${d}_extra`);let I=s?x.createElement("div",Object.assign({},A,{className:`${g}-extra`,ref:$}),s):null,N=O||I?x.createElement("div",{className:`${g}-additional`,style:f?{minHeight:f+w}:{}},O,I):null,j=c&&"pro_table_render"===c.mark&&c.render?c.render(e,{input:S,errorList:O,extra:I}):x.createElement(x.Fragment,null,S,N);return x.createElement(sF.Provider,{value:y},x.createElement(xB,Object.assign({},v,{className:b}),j),x.createElement(ST,{prefixCls:t}))},SD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var SH=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:SD}))}),SL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let SF=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:l,tooltip:c,vertical:s})=>{var u;let d,[f]=iK("Form"),{labelAlign:p,labelCol:m,labelWrap:g,colon:h}=x.useContext(sF);if(!t)return null;let v=r||m||{},b=`${e}-item-label`,y=E()(b,"left"===(o||p)&&`${b}-left`,v.className,{[`${b}-wrap`]:!!g}),$=t,w=!0===a||!1!==h&&!1!==a;w&&!s&&"string"==typeof t&&t.trim()&&($=t.replace(/[:|:]\s*$/,""));let C=Sr(c);if(C){let{icon:t=x.createElement(SH,null)}=C,n=SL(C,["icon"]),r=x.createElement(ms,Object.assign({},n),x.cloneElement(t,{className:`${e}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));$=x.createElement(x.Fragment,null,$,r)}let S="optional"===l,k="function"==typeof l;k?$=l($,{required:!!i}):S&&!i&&($=x.createElement(x.Fragment,null,$,x.createElement("span",{className:`${e}-item-optional`,title:""},(null==f?void 0:f.optional)||(null==(u=io.Form)?void 0:u.optional)))),!1===l?d="hidden":(S||k)&&(d="optional");let O=E()({[`${e}-item-required`]:i,[`${e}-item-required-mark-${d}`]:d,[`${e}-item-no-colon`]:!w});return x.createElement(xB,Object.assign({},v,{className:y}),x.createElement("label",{htmlFor:n,className:O,title:"string"==typeof t?t:""},$))},SW={success:oc,warning:om,error:ou,validating:aq};function S_({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:l,name:c}){let s=`${a}-item`,{feedbackIcons:u}=x.useContext(sF),d=bP(t,n,i,null,!!r,o),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:g,name:h}=x.useContext(sq),v=x.useMemo(()=>{var e;let o;if(r){let a=!0!==r&&r.icons||u,i=d&&(null==(e=null==a?void 0:a({status:d,errors:t,warnings:n}))?void 0:e[d]),l=d?SW[d]:null;o=!1!==i&&l?x.createElement("span",{className:E()(`${s}-feedback-icon`,`${s}-feedback-icon-${d}`)},i||x.createElement(l,null)):null}let a={status:d||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:o,isFormItemInput:!0,name:c};return l&&(a.status=(null!=d?d:p)||"",a.isFormItemInput=f,a.hasFeedback=!!(null!=r?r:m),a.feedbackIcon=void 0!==r?a.feedbackIcon:g,a.name=null!=c?c:h),a},[d,r,l,f,p]);return x.createElement(sq.Provider,{value:v},e)}var SV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Sq(e){let{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:l,validateStatus:c,meta:s,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:g,onSubItemMetaChange:h,layout:v,name:b}=e,y=SV(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),$=`${t}-item`,{requiredMark:w,layout:C}=x.useContext(sF),S=v||C,k="vertical"===S,O=x.useRef(null),A=Sx(i),I=Sx(l),N=null!=a,j=!!(N||i.length||l.length),M=!!O.current&&iG(O.current),[R,P]=x.useState(null);t$(()=>{j&&O.current&&P(Number.parseInt(getComputedStyle(O.current).marginBottom,10))},[j,M]);let T=((e=!1)=>bP(e?A:s.errors,e?I:s.warnings,s,"",!!u,c))(),z=E()($,n,r,{[`${$}-with-help`]:N||A.length||I.length,[`${$}-has-feedback`]:T&&u,[`${$}-has-success`]:"success"===T,[`${$}-has-warning`]:"warning"===T,[`${$}-has-error`]:"error"===T,[`${$}-is-validating`]:"validating"===T,[`${$}-hidden`]:d,[`${$}-${S}`]:S});return x.createElement("div",{className:z,style:o,ref:O},x.createElement(SP,Object.assign({className:`${$}-row`},iX(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),x.createElement(SF,Object.assign({htmlFor:p},e,{requiredMark:w,required:null!=m?m:g,prefixCls:t,vertical:k})),x.createElement(SB,Object.assign({},e,s,{errors:A,warnings:I,prefixCls:t,status:T,help:a,marginBottom:R,onErrorVisibleChanged:e=>{e||P(null)}}),x.createElement(sW.Provider,{value:h},x.createElement(S_,{prefixCls:t,meta:s,errors:s.errors,warnings:s.warnings,hasFeedback:u,validateStatus:T,name:b},f)))),!!R&&x.createElement("div",{className:`${$}-margin-offset`,style:{marginBottom:-R}}))}let SK=x.memo(({children:e})=>e,(e,t)=>{var n,r;let o,a;return n=e.control,r=t.control,o=Object.keys(n),a=Object.keys(r),o.length===a.length&&o.every(e=>{let t=n[e],o=r[e];return t===o||"function"==typeof t||"function"==typeof o})&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n])});function SX(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let SG=function(e){let{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:c,required:s,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:m,help:g,layout:h}=e,{getPrefixCls:v}=x.useContext(eW),{name:b}=x.useContext(sF),y=function(e){if("function"==typeof e)return e;let t=j(e);return t.length<=1?t[0]:t}(c),$="function"==typeof y,w=x.useContext(sW),{validateTrigger:C}=x.useContext(cW),S=void 0!==p?p:C,k=null!=t,O=v("form",a),A=a$(O),[I,N,M]=SS(O,A);aj("Form.Item");let R=x.useContext(c_),P=x.useRef(null),[T,z]=function(e){let[t,n]=x.useState(e),r=x.useRef(null),o=x.useRef([]),a=x.useRef(!1);return x.useEffect(()=>(a.current=!1,()=>{a.current=!0,eB.cancel(r.current),r.current=null}),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=eB(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[B,D]=nv(()=>SX()),H=(e,t)=>{z(n=>{let r=Object.assign({},n),o=[].concat((0,eM.A)(e.name.slice(0,-1)),(0,eM.A)(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[L,F]=x.useMemo(()=>{let e=(0,eM.A)(B.errors),t=(0,eM.A)(B.warnings);return Object.values(T).forEach(n=>{e.push.apply(e,(0,eM.A)(n.errors||[])),t.push.apply(t,(0,eM.A)(n.warnings||[]))}),[e,t]},[T,B.errors,B.warnings]),W=function(){let{itemRef:e}=x.useContext(sF),t=x.useRef({});return function(n,r){let o=r&&"object"==typeof r&&Z(r),a=n.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=G(e(n),o)),t.current.ref}}();function _(o,a,i){return n&&!m?x.createElement(S_,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:L,warnings:F,noStyle:!0,name:t},o):x.createElement(Sq,Object.assign({key:"row"},e,{className:E()(r,M,A,N),prefixCls:O,fieldId:a,isRequired:i,errors:L,warnings:F,meta:B,onSubItemMetaChange:H,layout:h,name:t}),o)}if(!k&&!$&&!o)return I(_(y));let V={};return"string"==typeof u?V.label=u:t&&(V.label=String(t)),d&&(V=Object.assign(Object.assign({},V),d)),I(x.createElement(sk,Object.assign({},e,{messageVariables:V,trigger:f,validateTrigger:S,onMetaChange:e=>{let t=null==R?void 0:R.getKey(e.name);if(D(e.destroy?SX():e,!0),n&&!1!==g&&w){let n=e.name;if(e.destroy)n=P.current||n;else if(void 0!==t){let[e,r]=t;P.current=n=[e].concat((0,eM.A)(r))}w(e,n)}}}),(n,r,a)=>{let c=bM(t).length&&r?r.name:[],u=bR(c,b),d=void 0!==s?s:!!(null==l?void 0:l.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){let t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1})),p=Object.assign({},n),m=null;if(Array.isArray(y)&&k)m=y;else if($&&(!(i||o)||k));else if(!o||$||k)if(x.isValidElement(y)){let t=Object.assign(Object.assign({},y.props),p);if(t.id||(t.id=u),g||L.length>0||F.length>0||e.extra){let n=[];(g||L.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}L.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),U(y)&&(t.ref=W(c,y)),new Set([].concat((0,eM.A)(bM(f)),(0,eM.A)(bM(S)))).forEach(e=>{t[e]=(...t)=>{var n,r,o;null==(n=p[e])||n.call.apply(n,[p].concat(t)),null==(o=(r=y.props)[e])||o.call.apply(o,[r].concat(t))}});let n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=x.createElement(SK,{control:p,update:y,childProps:n},o9(y,t))}else m=$&&(i||o)&&!k?y(a):y;return _(m,u,d)}))};SG.useStatus=Sj;var SY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};SN.Item=SG,SN.List=e=>{var{prefixCls:t,children:n}=e,r=SY(e,["prefixCls","children"]);let{getPrefixCls:o}=x.useContext(eW),a=o("form",t),i=x.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return x.createElement(sO,Object.assign({},r),(e,t,r)=>x.createElement(sV.Provider,{value:i},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))},SN.ErrorList=SA,SN.useForm=bD,SN.useFormInstance=function(){let{form:e}=x.useContext(sF);return e},SN.useWatch=sH,SN.Provider=s_,SN.create=()=>{};let SU=SN,SQ={useBreakpoint:function(){return p_()}},SZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var SJ=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:SZ}))});function S0(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function S1(e,t,n,r){var o=L().unstable_batchedUpdates?function(e){L().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var S2=x.createContext(null);let S4=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,o=e.prefixCls,a=e.rootClassName,i=e.icons,l=e.countRender,c=e.showSwitch,s=e.showProgress,u=e.current,d=e.transform,f=e.count,p=e.scale,m=e.minScale,g=e.maxScale,h=e.closeIcon,v=e.onActive,b=e.onClose,y=e.onZoomIn,$=e.onZoomOut,w=e.onRotateRight,C=e.onRotateLeft,S=e.onFlipX,k=e.onFlipY,O=e.onReset,A=e.toolbarRender,I=e.zIndex,N=e.image,j=(0,x.useContext)(S2),M=i.rotateLeft,R=i.rotateRight,P=i.zoomIn,T=i.zoomOut,z=i.close,B=i.left,H=i.right,L=i.flipX,F=i.flipY,W="".concat(o,"-operations-operation");x.useEffect(function(){var e=function(e){e.keyCode===aM.ESC&&b()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var _=function(e,t){e.preventDefault(),e.stopPropagation(),v(t)},V=x.useCallback(function(e){var t=e.type,n=e.disabled,r=e.onClick,a=e.icon;return x.createElement("div",{key:t,className:E()(W,"".concat(o,"-operations-operation-").concat(t),(0,eX.A)({},"".concat(o,"-operations-operation-disabled"),!!n)),onClick:r},a)},[W,o]),q=c?V({icon:B,onClick:function(e){return _(e,-1)},type:"prev",disabled:0===u}):void 0,K=c?V({icon:H,onClick:function(e){return _(e,1)},type:"next",disabled:u===f-1}):void 0,X=V({icon:F,onClick:k,type:"flipY"}),G=V({icon:L,onClick:S,type:"flipX"}),Y=V({icon:M,onClick:C,type:"rotateLeft"}),U=V({icon:R,onClick:w,type:"rotateRight"}),Q=V({icon:T,onClick:$,type:"zoomOut",disabled:p<=m}),Z=V({icon:P,onClick:y,type:"zoomIn",disabled:p===g}),J=x.createElement("div",{className:"".concat(o,"-operations")},X,G,Y,U,Q,Z);return x.createElement(oG,{visible:t,motionName:n},function(e){var t=e.className,n=e.style;return x.createElement(cS,{open:!0,getContainer:null!=r?r:document.body},x.createElement("div",{className:E()("".concat(o,"-operations-wrapper"),t,a),style:(0,D.A)((0,D.A)({},n),{},{zIndex:I})},null===h?null:x.createElement("button",{className:"".concat(o,"-close"),onClick:b},h||z),c&&x.createElement(x.Fragment,null,x.createElement("div",{className:E()("".concat(o,"-switch-left"),(0,eX.A)({},"".concat(o,"-switch-left-disabled"),0===u)),onClick:function(e){return _(e,-1)}},B),x.createElement("div",{className:E()("".concat(o,"-switch-right"),(0,eX.A)({},"".concat(o,"-switch-right-disabled"),u===f-1)),onClick:function(e){return _(e,1)}},H)),x.createElement("div",{className:"".concat(o,"-footer")},s&&x.createElement("div",{className:"".concat(o,"-progress")},l?l(u+1,f):x.createElement("bdi",null,"".concat(u+1," / ").concat(f))),A?A(J,(0,D.A)((0,D.A)({icons:{prevIcon:q,nextIcon:K,flipYIcon:X,flipXIcon:G,rotateLeftIcon:Y,rotateRightIcon:U,zoomOutIcon:Q,zoomInIcon:Z},actions:{onActive:v,onFlipY:k,onFlipX:S,onRotateLeft:C,onRotateRight:w,onZoomOut:$,onZoomIn:y,onReset:O,onClose:b},transform:d},j?{current:u,total:f}:{}),{},{image:N})):J)))})};var S3={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function S6(e,t,n,r){var o=t+n,a=(n-r)/2;if(n>r){if(t>0)return(0,eX.A)({},e,a);if(t<0&&o<r)return(0,eX.A)({},e,-a)}else if(t<0||o>r)return(0,eX.A)({},e,t<0?a:-a);return{}}function S5(e,t,n,r){var o=S0(),a=o.width,i=o.height,l=null;return e<=a&&t<=i?l={x:0,y:0}:(e>a||t>i)&&(l=(0,D.A)((0,D.A)({},S6("x",n,e,a)),S6("y",r,t,i))),l}function S8(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=(0,x.useState)(n?"loading":"normal"),a=(0,eK.A)(o,2),i=a[0],l=a[1],c=(0,x.useRef)(!1),s="error"===i;(0,x.useEffect)(function(){var e=!0;return new Promise(function(e){if(!t)return void e(!1);var n=document.createElement("img");n.onerror=function(){return e(!1)},n.onload=function(){return e(!0)},n.src=t}).then(function(t){!t&&e&&l("error")}),function(){e=!1}},[t]),(0,x.useEffect)(function(){n&&!c.current?l("loading"):s&&l("normal")},[t]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===i&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&r?{src:r}:{onLoad:u,src:t},i]}function S7(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}var S9=["fallback","src","imgRef"],ke=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],kt=function(e){var t=e.fallback,n=e.src,r=e.imgRef,o=(0,r3.A)(e,S9),a=S8({src:n,fallback:t}),i=(0,eK.A)(a,2),l=i[0],c=i[1];return w().createElement("img",S({ref:function(e){r.current=e,l(e)}},o,c))};let kn=function(e){var t,n,r,o,a,i,l,c,s,u,d,f,p,m,g,h,v,b,y,$,C,k,O,A,I,N,j,M,R=e.prefixCls,P=e.src,T=e.alt,z=e.imageInfo,B=e.fallback,H=e.movable,L=void 0===H||H,F=e.onClose,W=e.visible,_=e.icons,V=e.rootClassName,q=e.closeIcon,K=e.getContainer,X=e.current,G=void 0===X?0:X,Y=e.count,U=void 0===Y?1:Y,Q=e.countRender,Z=e.scaleStep,J=void 0===Z?.5:Z,ee=e.minScale,et=void 0===ee?1:ee,en=e.maxScale,er=void 0===en?50:en,eo=e.transitionName,ea=e.maskTransitionName,ei=void 0===ea?"fade":ea,el=e.imageRender,ec=e.imgCommonProps,es=e.toolbarRender,eu=e.onTransform,ed=e.onChange,ef=(0,r3.A)(e,ke),ep=(0,x.useRef)(),em=(0,x.useContext)(S2),eg=em&&U>1,eh=em&&U>=1,ev=(0,x.useState)(!0),eb=(0,eK.A)(ev,2),ey=eb[0],e$=eb[1],ex=(t=(0,x.useRef)(null),n=(0,x.useRef)([]),r=(0,x.useState)(S3),a=(o=(0,eK.A)(r,2))[0],i=o[1],l=function(e,r){null===t.current&&(n.current=[],t.current=eB(function(){i(function(e){var o=e;return n.current.forEach(function(e){o=(0,D.A)((0,D.A)({},o),e)}),t.current=null,null==eu||eu({transform:o,action:r}),o})})),n.current.push((0,D.A)((0,D.A)({},a),e))},{transform:a,resetTransform:function(e){i(S3),e8(S3,a)||null==eu||eu({transform:S3,action:e})},updateTransform:l,dispatchZoomChange:function(e,t,n,r,o){var i=ep.current,c=i.width,s=i.height,u=i.offsetWidth,d=i.offsetHeight,f=i.offsetLeft,p=i.offsetTop,m=e,g=a.scale*e;g>er?(g=er,m=er/a.scale):g<et&&(m=(g=o?g:et)/a.scale);var h=null!=r?r:innerHeight/2,v=m-1,b=v*((null!=n?n:innerWidth/2)-a.x-f),y=v*(h-a.y-p),$=a.x-(b-v*c*.5),x=a.y-(y-v*s*.5);if(e<1&&1===g){var w=u*g,C=d*g,E=S0(),S=E.width,k=E.height;w<=S&&C<=k&&($=0,x=0)}l({x:$,y:x,scale:g},t)}}),ew=ex.transform,eC=ex.resetTransform,eE=ex.updateTransform,eS=ex.dispatchZoomChange,ek=(c=ew.rotate,s=ew.scale,u=ew.x,d=ew.y,f=(0,x.useState)(!1),m=(p=(0,eK.A)(f,2))[0],g=p[1],h=(0,x.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(e){W&&m&&eE({x:e.pageX-h.current.diffX,y:e.pageY-h.current.diffY},"move")},b=function(){if(W&&m){g(!1);var e=h.current,t=e.transformX,n=e.transformY;if(u!==t&&d!==n){var r=ep.current.offsetWidth*s,o=ep.current.offsetHeight*s,a=ep.current.getBoundingClientRect(),i=a.left,l=a.top,f=c%180!=0,p=S5(f?o:r,f?r:o,i,l);p&&eE((0,D.A)({},p),"dragRebound")}}},(0,x.useEffect)(function(){var e,t,n,r;if(L){n=S1(window,"mouseup",b,!1),r=S1(window,"mousemove",v,!1);try{window.top!==window.self&&(e=S1(window.top,"mouseup",b,!1),t=S1(window.top,"mousemove",v,!1))}catch(e){}}return function(){var o,a,i,l;null==(o=n)||o.remove(),null==(a=r)||a.remove(),null==(i=e)||i.remove(),null==(l=t)||l.remove()}},[W,m,u,d,c,L]),{isMoving:m,onMouseDown:function(e){L&&0===e.button&&(e.preventDefault(),e.stopPropagation(),h.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},g(!0))},onMouseMove:v,onMouseUp:b,onWheel:function(e){if(W&&0!=e.deltaY){var t=1+Math.min(Math.abs(e.deltaY/100),1)*J;e.deltaY>0&&(t=1/t),eS(t,"wheel",e.clientX,e.clientY)}}}),eO=ek.isMoving,eA=ek.onMouseDown,eI=ek.onWheel,eN=(y=ew.rotate,$=ew.scale,C=ew.x,k=ew.y,O=(0,x.useState)(!1),I=(A=(0,eK.A)(O,2))[0],N=A[1],j=(0,x.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),M=function(e){j.current=(0,D.A)((0,D.A)({},j.current),e)},(0,x.useEffect)(function(){var e;return W&&L&&(e=S1(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var t;null==(t=e)||t.remove()}},[W,L]),{isTouching:I,onTouchStart:function(e){if(L){e.stopPropagation(),N(!0);var t=e.touches,n=void 0===t?[]:t;n.length>1?M({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:"touchZoom"}):M({point1:{x:n[0].clientX-C,y:n[0].clientY-k},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=j.current,o=r.point1,a=r.point2,i=r.eventType;if(n.length>1&&"touchZoom"===i){var l={x:n[0].clientX,y:n[0].clientY},c={x:n[1].clientX,y:n[1].clientY},s=function(e,t,n,r){var o=S7(e,n),a=S7(t,r);if(0===o&&0===a)return[e.x,e.y];var i=o/(o+a);return[e.x+i*(t.x-e.x),e.y+i*(t.y-e.y)]}(o,a,l,c),u=(0,eK.A)(s,2),d=u[0],f=u[1];eS(S7(l,c)/S7(o,a),"touchZoom",d,f,!0),M({point1:l,point2:c,eventType:"touchZoom"})}else"move"===i&&(eE({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),M({eventType:"move"}))},onTouchEnd:function(){if(W){if(I&&N(!1),M({eventType:"none"}),et>$)return eE({x:0,y:0,scale:et},"touchZoom");var e=ep.current.offsetWidth*$,t=ep.current.offsetHeight*$,n=ep.current.getBoundingClientRect(),r=n.left,o=n.top,a=y%180!=0,i=S5(a?t:e,a?e:t,r,o);i&&eE((0,D.A)({},i),"dragRebound")}}}),ej=eN.isTouching,eM=eN.onTouchStart,eR=eN.onTouchMove,eP=eN.onTouchEnd,eT=ew.rotate,ez=ew.scale,eD=E()((0,eX.A)({},"".concat(R,"-moving"),eO));(0,x.useEffect)(function(){ey||e$(!0)},[ey]);var eH=function(e){var t=G+e;!Number.isInteger(t)||t<0||t>U-1||(e$(!1),eC(e<0?"prev":"next"),null==ed||ed(t,G))},eL=function(e){W&&eg&&(e.keyCode===aM.LEFT?eH(-1):e.keyCode===aM.RIGHT&&eH(1))};(0,x.useEffect)(function(){var e=S1(window,"keydown",eL,!1);return function(){e.remove()}},[W,eg,G]);var eF=w().createElement(kt,S({},ec,{width:e.width,height:e.height,imgRef:ep,className:"".concat(R,"-img"),alt:T,style:{transform:"translate3d(".concat(ew.x,"px, ").concat(ew.y,"px, 0) scale3d(").concat(ew.flipX?"-":"").concat(ez,", ").concat(ew.flipY?"-":"").concat(ez,", 1) rotate(").concat(eT,"deg)"),transitionDuration:(!ey||ej)&&"0s"},fallback:B,src:P,onWheel:eI,onMouseDown:eA,onDoubleClick:function(e){W&&(1!==ez?eE({x:0,y:0,scale:1},"doubleClick"):eS(1+J,"doubleClick",e.clientX,e.clientY))},onTouchStart:eM,onTouchMove:eR,onTouchEnd:eP,onTouchCancel:eP})),eW=(0,D.A)({url:P,alt:T},z);return w().createElement(w().Fragment,null,w().createElement(cH,S({transitionName:void 0===eo?"zoom":eo,maskTransitionName:ei,closable:!1,keyboard:!0,prefixCls:R,onClose:F,visible:W,classNames:{wrapper:eD},rootClassName:V,getContainer:K},ef,{afterClose:function(){eC("close")}}),w().createElement("div",{className:"".concat(R,"-img-wrapper")},el?el(eF,(0,D.A)({transform:ew,image:eW},em?{current:G}:{})):eF)),w().createElement(S4,{visible:W,transform:ew,maskTransitionName:ei,closeIcon:q,getContainer:K,prefixCls:R,rootClassName:V,icons:void 0===_?{}:_,countRender:Q,showSwitch:eg,showProgress:eh,current:G,count:U,scale:ez,minScale:et,maxScale:er,toolbarRender:es,onActive:eH,onZoomIn:function(){eS(1+J,"zoomIn")},onZoomOut:function(){eS(1/(1+J),"zoomOut")},onRotateRight:function(){eE({rotate:eT+90},"rotateRight")},onRotateLeft:function(){eE({rotate:eT-90},"rotateLeft")},onFlipX:function(){eE({flipX:!ew.flipX},"flipX")},onFlipY:function(){eE({flipY:!ew.flipY},"flipY")},onClose:F,onReset:function(){eC("reset")},zIndex:void 0!==ef.zIndex?ef.zIndex+1:void 0,image:eW}))};var kr=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ko=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ka=["src"],ki=0,kl=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],kc=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ks=function(e){var t,n,r,o,a=e.src,i=e.alt,l=e.onPreviewClose,c=e.prefixCls,s=void 0===c?"rc-image":c,u=e.previewPrefixCls,d=void 0===u?"".concat(s,"-preview"):u,f=e.placeholder,p=e.fallback,m=e.width,g=e.height,h=e.style,v=e.preview,b=void 0===v||v,y=e.className,$=e.onClick,w=e.onError,C=e.wrapperClassName,O=e.wrapperStyle,A=e.rootClassName,I=(0,r3.A)(e,kl),N="object"===(0,k.A)(b)?b:{},j=N.src,M=N.visible,R=void 0===M?void 0:M,P=N.onVisibleChange,T=N.getContainer,z=N.mask,B=N.maskClassName,H=N.movable,L=N.icons,F=N.scaleStep,W=N.minScale,_=N.maxScale,V=N.imageRender,q=N.toolbarRender,K=(0,r3.A)(N,kc),X=null!=j?j:a,G=ny(!!R,{value:R,onChange:void 0===P?l:P}),Y=(0,eK.A)(G,2),U=Y[0],Q=Y[1],Z=S8({src:a,isCustomPlaceholder:f&&!0!==f,fallback:p}),J=(0,eK.A)(Z,3),ee=J[0],et=J[1],en=J[2],er=(0,x.useState)(null),eo=(0,eK.A)(er,2),ea=eo[0],ei=eo[1],el=(0,x.useContext)(S2),ec=!!b,es=E()(s,C,A,(0,eX.A)({},"".concat(s,"-error"),"error"===en)),eu=(0,x.useMemo)(function(){var t={};return kr.forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t},kr.map(function(t){return e[t]})),ed=(0,x.useMemo)(function(){return(0,D.A)((0,D.A)({},eu),{},{src:X})},[X,eu]),ef=(t=x.useState(function(){return String(ki+=1)}),n=(0,eK.A)(t,1)[0],r=x.useContext(S2),o={data:ed,canPreview:ec},x.useEffect(function(){if(r)return r.register(n,o)},[]),x.useEffect(function(){r&&r.register(n,o)},[ec,ed]),n);return x.createElement(x.Fragment,null,x.createElement("div",S({},I,{className:es,onClick:ec?function(e){var t,n,r=(t=e.target.getBoundingClientRect(),n=document.documentElement,{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}),o=r.left,a=r.top;el?el.onPreview(ef,X,o,a):(ei({x:o,y:a}),Q(!0)),null==$||$(e)}:$,style:(0,D.A)({width:m,height:g},O)}),x.createElement("img",S({},eu,{className:E()("".concat(s,"-img"),(0,eX.A)({},"".concat(s,"-img-placeholder"),!0===f),y),style:(0,D.A)({height:g},h),ref:ee},et,{width:m,height:g,onError:w})),"loading"===en&&x.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},f),z&&ec&&x.createElement("div",{className:E()("".concat(s,"-mask"),B),style:{display:(null==h?void 0:h.display)==="none"?"none":void 0}},z)),!el&&ec&&x.createElement(kn,S({"aria-hidden":!U,visible:U,prefixCls:d,onClose:function(){Q(!1),ei(null)},mousePosition:ea,src:X,alt:i,imageInfo:{width:m,height:g},fallback:p,getContainer:void 0===T?void 0:T,icons:L,movable:H,scaleStep:F,minScale:W,maxScale:_,rootClassName:A,imageRender:V,imgCommonProps:eu,toolbarRender:q},K)))};ks.PreviewGroup=function(e){var t,n,r,o,a,i,l=e.previewPrefixCls,c=e.children,s=e.icons,u=e.items,d=e.preview,f=e.fallback,p="object"===(0,k.A)(d)?d:{},m=p.visible,g=p.onVisibleChange,h=p.getContainer,v=p.current,b=p.movable,y=p.minScale,$=p.maxScale,w=p.countRender,C=p.closeIcon,E=p.onChange,O=p.onTransform,A=p.toolbarRender,I=p.imageRender,N=(0,r3.A)(p,ko),j=(t=x.useState({}),r=(n=(0,eK.A)(t,2))[0],o=n[1],a=x.useCallback(function(e,t){return o(function(n){return(0,D.A)((0,D.A)({},n),{},(0,eX.A)({},e,t))}),function(){o(function(t){var n=(0,D.A)({},t);return delete n[e],n})}},[]),[x.useMemo(function(){return u?u.map(function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach(function(n){["src"].concat((0,eM.A)(kr)).includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(r).reduce(function(e,t){var n=r[t],o=n.canPreview,a=n.data;return o&&e.push({data:a,id:t}),e},[])},[u,r]),a,!!u]),M=(0,eK.A)(j,3),R=M[0],P=M[1],T=M[2],z=ny(0,{value:v}),B=(0,eK.A)(z,2),H=B[0],L=B[1],F=(0,x.useState)(!1),W=(0,eK.A)(F,2),_=W[0],V=W[1],q=(null==(i=R[H])?void 0:i.data)||{},K=q.src,X=(0,r3.A)(q,ka),G=ny(!!m,{value:m,onChange:function(e,t){null==g||g(e,t,H)}}),Y=(0,eK.A)(G,2),U=Y[0],Q=Y[1],Z=(0,x.useState)(null),J=(0,eK.A)(Z,2),ee=J[0],et=J[1],en=x.useCallback(function(e,t,n,r){var o=T?R.findIndex(function(e){return e.data.src===t}):R.findIndex(function(t){return t.id===e});L(o<0?0:o),Q(!0),et({x:n,y:r}),V(!0)},[R,T]);x.useEffect(function(){U?_||L(0):V(!1)},[U]);var er=x.useMemo(function(){return{register:P,onPreview:en}},[P,en]);return x.createElement(S2.Provider,{value:er},c,x.createElement(kn,S({"aria-hidden":!U,movable:b,visible:U,prefixCls:void 0===l?"rc-image-preview":l,closeIcon:C,onClose:function(){Q(!1),et(null)},mousePosition:ee,imgCommonProps:X,src:K,fallback:f,icons:void 0===s?{}:s,minScale:y,maxScale:$,getContainer:h,current:H,count:R.length,countRender:w,onTransform:O,toolbarRender:A,imageRender:I,onChange:function(e,t){L(e),null==E||E(e,t)}},N)))};var ku={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},kd=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:ku}))}),kf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},kp=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:kf}))});let km={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};var kg=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:km}))});let kh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var kv=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:kh}))});let kb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var ky=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:kb}))});let k$=e=>({position:e||"absolute",inset:0}),kx=rK("Image",e=>{let t=`${e.componentCls}-preview`,n=nR(e,{previewCls:t,modalMaskBg:new n4("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[(e=>{let{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},(e=>{let{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new n4("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},nL),{padding:`0 ${tg(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}})(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},k$())}}})(n),(e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},k$()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},k$()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[(e=>{let{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:a,paddingLG:i,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new n4(n).setA(.1),p=f.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${tg(i)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}})(e),(e=>{let{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:a,motionDurationSlow:i}=e,l=new n4(t).setA(.1),c=l.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}})(e)]}]})(n),uA(nR(n,{componentCls:t})),(e=>{let{previewCls:t}=e;return{[`${t}-root`]:uk(e,"zoom"),"&":ub(e,!0)}})(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new n4(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new n4(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new n4(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}));var kw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kC={rotateLeft:x.createElement(kd,null),rotateRight:x.createElement(kp,null),zoomIn:x.createElement(kv,null),zoomOut:x.createElement(ky,null),close:x.createElement(of,null),left:x.createElement(mW,null),right:x.createElement(lT,null),flipX:x.createElement(kg,null),flipY:x.createElement(kg,{rotate:90})};var kE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kS=e=>{let{prefixCls:t,preview:n,className:r,rootClassName:o,style:a,fallback:i}=e,l=kE(e,["prefixCls","preview","className","rootClassName","style","fallback"]),{getPrefixCls:c,getPopupContainer:s,className:u,style:d,preview:f,fallback:p}=eq("image"),[m]=iK("Image"),g=c("image",t),h=c(),v=a$(g),[b,y,$]=kx(g,v),w=E()(o,y,$,v),C=E()(r,y,u),[S]=aY("ImagePreview","object"==typeof n?n.zIndex:void 0),k=x.useMemo(()=>{if(!1===n)return n;let e="object"==typeof n?n:{},{getContainer:t,closeIcon:r,rootClassName:o,destroyOnClose:a,destroyOnHidden:i}=e,l=kE(e,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:x.createElement("div",{className:`${g}-mask-info`},x.createElement(SJ,null),null==m?void 0:m.preview),icons:kC},l),{destroyOnClose:null!=i?i:a,rootClassName:E()(w,o),getContainer:null!=t?t:s,transitionName:iV(h,"zoom",e.transitionName),maskTransitionName:iV(h,"fade",e.maskTransitionName),zIndex:S,closeIcon:null!=r?r:null==f?void 0:f.closeIcon})},[n,m,null==f?void 0:f.closeIcon]),O=Object.assign(Object.assign({},d),a);return b(x.createElement(ks,Object.assign({prefixCls:g,preview:k,rootClassName:w,className:C,style:O,fallback:null!=i?i:p},l)))};kS.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=kw(e,["previewPrefixCls","preview"]);let{getPrefixCls:o,direction:a}=x.useContext(eW),i=o("image",t),l=`${i}-preview`,c=o(),s=a$(i),[u,d,f]=kx(i,s),[p]=aY("ImagePreview","object"==typeof n?n.zIndex:void 0),m=x.useMemo(()=>Object.assign(Object.assign({},kC),{left:"rtl"===a?x.createElement(lT,null):x.createElement(mW,null),right:"rtl"===a?x.createElement(mW,null):x.createElement(lT,null)}),[a]),g=x.useMemo(()=>{var e;if(!1===n)return n;let t="object"==typeof n?n:{},r=E()(d,f,s,null!=(e=t.rootClassName)?e:"");return Object.assign(Object.assign({},t),{transitionName:iV(c,"zoom",t.transitionName),maskTransitionName:iV(c,"fade",t.maskTransitionName),rootClassName:r,zIndex:p})},[n,c,p,d,f,s]);return u(x.createElement(ks.PreviewGroup,Object.assign({preview:g,previewPrefixCls:l,icons:m},r)))};let kk=kS,kO=rK(["Input","OTP"],e=>(e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})(nR(e,bG(e))),bY);var kA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kI=x.forwardRef((e,t)=>{let{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:l}=e,c=kA(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:s}=x.useContext(eW),u=s("otp"),d="string"==typeof l?l:r,f=x.useRef(null);x.useImperativeHandle(t,()=>f.current);let p=()=>{eB(()=>{var e;let t=null==(e=f.current)?void 0:e.input;document.activeElement===t&&t&&t.select()})};return x.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},l&&""!==r&&void 0!==r&&x.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),x.createElement(w6,Object.assign({"aria-label":`OTP Input ${i+1}`,type:!0===l?"password":"text"},c,{ref:f,value:r,onInput:e=>{o(i,e.target.value)},onFocus:p,onKeyDown:e=>{let{key:t,ctrlKey:n,metaKey:o}=e;"ArrowLeft"===t?a(i-1):"ArrowRight"===t?a(i+1):"z"===t&&(n||o)?e.preventDefault():"Backspace"!==t||r||a(i-1),p()},onMouseDown:p,onMouseUp:p,className:E()(n,{[`${u}-mask-input`]:l})})))});var kN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function kj(e){return(e||"").split("")}let kM=e=>{let{index:t,prefixCls:n,separator:r}=e,o="function"==typeof r?r(t):r;return o?x.createElement("span",{className:`${n}-separator`},o):null},kR=x.forwardRef((e,t)=>{let n,{prefixCls:r,length:o=6,size:a,defaultValue:i,value:l,onChange:c,formatter:s,separator:u,variant:d,disabled:f,status:p,autoFocus:m,mask:g,type:h,onInput:v,inputMode:b}=e,y=kN(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:$,direction:w}=x.useContext(eW),C=$("otp",r),S=o5(y,{aria:!0,data:!0,attr:!0}),[k,O,A]=kO(C),I=i1(e=>null!=a?a:e),N=x.useContext(sq),j=(n=N.status,p||n),M=x.useMemo(()=>Object.assign(Object.assign({},N),{status:j,hasFeedback:!1,feedbackIcon:null}),[N,j]),R=x.useRef(null),P=x.useRef({});x.useImperativeHandle(t,()=>({focus:()=>{var e;null==(e=P.current[0])||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null==(e=P.current[t])||e.blur()},nativeElement:R.current}));let T=e=>s?s(e):e,[z,B]=x.useState(()=>kj(T(i||"")));x.useEffect(()=>{void 0!==l&&B(kj(l))},[l]);let D=nh(e=>{B(e),v&&v(e),c&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>z[t]!==e)&&c(e.join(""))}),H=nh((e,t)=>{let n=(0,eM.A)(z);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(kj(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();return n=kj(T(n.map(e=>e||" ").join(""))).map((e,t)=>" "!==e||n[t]?e:n[t])}),L=(e,t)=>{var n;let r=H(e,t),a=Math.min(e+t.length,o-1);a!==e&&void 0!==r[e]&&(null==(n=P.current[a])||n.focus()),D(r)},F=e=>{var t;null==(t=P.current[e])||t.focus()},W={variant:d,disabled:f,status:j,mask:g,type:h,inputMode:b};return k(x.createElement("div",Object.assign({},S,{ref:R,className:E()(C,{[`${C}-sm`]:"small"===I,[`${C}-lg`]:"large"===I,[`${C}-rtl`]:"rtl"===w},A,O),role:"group"}),x.createElement(sq.Provider,{value:M},Array.from({length:o}).map((e,t)=>{let n=`otp-${t}`,r=z[t]||"";return x.createElement(x.Fragment,{key:n},x.createElement(kI,Object.assign({ref:e=>{P.current[t]=e},index:t,size:I,htmlSize:1,className:`${C}-input`,onChange:L,value:r,onActiveChange:F,autoFocus:0===t&&m},W)),t<o-1&&x.createElement(kM,{separator:u,index:t,prefixCls:C}))}))))}),kP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var kT=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:kP}))}),kz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kB=e=>e?x.createElement(SJ,null):x.createElement(kT,null),kD={click:"onClick",hover:"onMouseOver"},kH=x.forwardRef((e,t)=>{let n,r,o,{disabled:a,action:i="click",visibilityToggle:l=!0,iconRender:c=kB,suffix:s}=e,u=x.useContext(id),d=null!=a?a:u,f="object"==typeof l&&void 0!==l.visible,[p,m]=(0,x.useState)(()=>!!f&&l.visible),g=(0,x.useRef)(null);x.useEffect(()=>{f&&m(l.visible)},[f,l]);let h=w4(g),{className:v,prefixCls:b,inputPrefixCls:y,size:$}=e,w=kz(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=x.useContext(eW),S=C("input",y),k=C("input-password",b),O=l&&(n=kD[i]||"",r=c(p),o={[n]:()=>{var e;if(d)return;p&&h();let t=!p;m(t),"object"==typeof l&&(null==(e=l.onVisibleChange)||e.call(l,t))},className:`${k}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}},x.cloneElement(x.isValidElement(r)?r:x.createElement("span",null,r),o)),A=E()(k,v,{[`${k}-${$}`]:!!$}),I=Object.assign(Object.assign({},iX(w,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:A,prefixCls:S,suffix:x.createElement(x.Fragment,null,O,s)});return $&&(I.size=$),x.createElement(w6,Object.assign({ref:G(t,g)},I))});var kL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kF=x.forwardRef((e,t)=>{let n,{prefixCls:r,inputPrefixCls:o,className:a,size:i,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g,variant:h,onPressEnter:v}=e,b=kL(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:$}=x.useContext(eW),w=x.useRef(!1),C=y("input-search",r),S=y("input",o),{compactSize:k}=i6(C,$),O=i1(e=>{var t;return null!=(t=null!=i?i:k)?t:e}),A=x.useRef(null),I=e=>{var t;document.activeElement===(null==(t=A.current)?void 0:t.input)&&e.preventDefault()},N=e=>{var t,n;f&&f(null==(n=null==(t=A.current)?void 0:t.input)?void 0:n.value,e,{source:"input"})},j="boolean"==typeof c?x.createElement(pC,null):null,M=`${C}-button`,R=c||{},P=R.type&&!0===R.type.__ANT_BUTTON;n=P||"button"===R.type?o9(R,Object.assign({onMouseDown:I,onClick:e=>{var t,n;null==(n=null==(t=null==R?void 0:R.props)?void 0:t.onClick)||n.call(t,e),N(e)},key:"enterButton"},P?{className:M,size:O}:{})):x.createElement(cu,{className:M,color:c?"primary":"default",size:O,disabled:d,key:"enterButton",onMouseDown:I,onClick:N,loading:u,icon:j,variant:"borderless"===h||"filled"===h||"underlined"===h?"text":c?"solid":void 0},c),s&&(n=[n,o9(s,{key:"addonAfter"})]);let T=E()(C,{[`${C}-rtl`]:"rtl"===$,[`${C}-${O}`]:!!O,[`${C}-with-button`]:!!c},a),z=Object.assign(Object.assign({},b),{className:T,prefixCls:S,type:"search",size:O,variant:h,onPressEnter:e=>{w.current||u||(null==v||v(e),N(e))},onCompositionStart:e=>{w.current=!0,null==m||m(e)},onCompositionEnd:e=>{w.current=!1,null==g||g(e)},addonAfter:n,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},disabled:d,_skipAddonWarning:!0});return x.createElement(w6,Object.assign({ref:G(A,t)},z))});var kW=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],k_={},kV=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kq=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.defaultValue,o=e.value,a=e.autoSize,i=e.onResize,l=e.className,c=e.style,s=e.disabled,u=e.onChange,d=(e.onInternalAutoSize,(0,r3.A)(e,kV)),f=ny(r,{value:o,postState:function(e){return null!=e?e:""}}),p=(0,eK.A)(f,2),m=p[0],g=p[1],h=x.useRef();x.useImperativeHandle(t,function(){return{textArea:h.current}});var v=x.useMemo(function(){return a&&"object"===(0,k.A)(a)?[a.minRows,a.maxRows]:[]},[a]),b=(0,eK.A)(v,2),y=b[0],w=b[1],C=!!a,O=x.useState(2),A=(0,eK.A)(O,2),I=A[0],N=A[1],j=x.useState(),M=(0,eK.A)(j,2),R=M[0],P=M[1],T=function(){N(0)};t$(function(){C&&T()},[o,y,w,C]),t$(function(){if(0===I)N(1);else if(1===I){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;$||(($=document.createElement("textarea")).setAttribute("tab-index","-1"),$.setAttribute("aria-hidden","true"),$.setAttribute("name","hiddenTextarea"),document.body.appendChild($)),e.getAttribute("wrap")?$.setAttribute("wrap",e.getAttribute("wrap")):$.removeAttribute("wrap");var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&k_[n])return k_[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:kW.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(k_[n]=l),l}(e,n),i=a.paddingSize,l=a.borderSize,c=a.boxSizing,s=a.sizingStyle;$.setAttribute("style","".concat(s,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),$.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f=$.scrollHeight;if("border-box"===c?f+=l:"content-box"===c&&(f-=i),null!==r||null!==o){$.value=" ";var p=$.scrollHeight-i;null!==r&&(u=p*r,"border-box"===c&&(u=u+i+l),f=Math.max(u,f)),null!==o&&(d=p*o,"border-box"===c&&(d=d+i+l),t=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:t,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}(h.current,!1,y,w);N(2),P(e)}},[I]);var z=x.useRef(),B=function(){eB.cancel(z.current)};x.useEffect(function(){return B},[]);var H=(0,D.A)((0,D.A)({},c),C?R:null);return(0===I||1===I)&&(H.overflowY="hidden",H.overflowX="hidden"),x.createElement(ej,{onResize:function(e){2===I&&(null==i||i(e),a&&(B(),z.current=eB(function(){T()})))},disabled:!(a||i)},x.createElement("textarea",S({},d,{ref:h,style:H,className:E()(n,l,(0,eX.A)({},"".concat(n,"-disabled"),s)),disabled:s,value:m,onChange:function(e){g(e.target.value),null==u||u(e)}})))}),kK=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],kX=w().forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,l=e.onBlur,c=e.onChange,s=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,g=void 0===m?"rc-textarea":m,h=e.showCount,v=e.count,b=e.className,y=e.style,$=e.disabled,C=e.hidden,k=e.classNames,O=e.styles,A=e.onResize,I=e.onClear,N=e.onPressEnter,j=e.readOnly,M=e.autoSize,R=e.onKeyDown,P=(0,r3.A)(e,kK),T=ny(o,{value:a,defaultValue:o}),z=(0,eK.A)(T,2),B=z[0],H=z[1],L=null==B?"":String(B),F=w().useState(!1),W=(0,eK.A)(F,2),_=W[0],V=W[1],q=w().useRef(!1),K=w().useState(null),X=(0,eK.A)(K,2),G=X[0],Y=X[1],U=(0,x.useRef)(null),Q=(0,x.useRef)(null),Z=function(){var e;return null==(e=Q.current)?void 0:e.textArea},J=function(){Z().focus()};(0,x.useImperativeHandle)(t,function(){var e;return{resizableTextArea:Q.current,focus:J,blur:function(){Z().blur()},nativeElement:(null==(e=U.current)?void 0:e.nativeElement)||Z()}}),(0,x.useEffect)(function(){V(function(e){return!$&&e})},[$]);var ee=w().useState(null),et=(0,eK.A)(ee,2),en=et[0],er=et[1];w().useEffect(function(){if(en){var e;(e=Z()).setSelectionRange.apply(e,(0,eM.A)(en))}},[en]);var eo=wm(v,h),ea=null!=(n=eo.max)?n:u,ei=Number(ea)>0,el=eo.strategy(L),ec=!!ea&&el>ea,es=function(e,t){var n=t;!q.current&&eo.exceedFormatter&&eo.max&&eo.strategy(t)>eo.max&&(n=eo.exceedFormatter(t,{max:eo.max}),t!==n&&er([Z().selectionStart||0,Z().selectionEnd||0])),H(n),wu(e.currentTarget,e,c,n)},eu=p;eo.show&&(r=eo.showFormatter?eo.showFormatter({value:L,count:el,maxLength:ea}):"".concat(el).concat(ei?" / ".concat(ea):""),eu=w().createElement(w().Fragment,null,eu,w().createElement("span",{className:E()("".concat(g,"-data-count"),null==k?void 0:k.count),style:null==O?void 0:O.count},r)));var ed=!M&&!h&&!s;return w().createElement(wf,{ref:U,value:L,allowClear:s,handleReset:function(e){H(""),J(),wu(Z(),e,c)},suffix:eu,prefixCls:g,classNames:(0,D.A)((0,D.A)({},k),{},{affixWrapper:E()(null==k?void 0:k.affixWrapper,(0,eX.A)((0,eX.A)({},"".concat(g,"-show-count"),h),"".concat(g,"-textarea-allow-clear"),s))}),disabled:$,focused:_,className:E()(b,ec&&"".concat(g,"-out-of-range")),style:(0,D.A)((0,D.A)({},y),G&&!ed?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof r?r:void 0}},hidden:C,readOnly:j,onClear:I},w().createElement(kq,S({},P,{autoSize:M,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&N&&N(e),null==R||R(e)},onChange:function(e){es(e,e.target.value)},onFocus:function(e){V(!0),null==i||i(e)},onBlur:function(e){V(!1),null==l||l(e)},onCompositionStart:function(e){q.current=!0,null==d||d(e)},onCompositionEnd:function(e){q.current=!1,es(e,e.currentTarget.value),null==f||f(e)},className:E()(null==k?void 0:k.textarea),style:(0,D.A)((0,D.A)({},null==O?void 0:O.textarea),{},{resize:null==y?void 0:y.resize}),disabled:$,prefixCls:g,onResize:function(e){var t;null==A||A(e),null!=(t=Z())&&t.style.height&&Y(!0)},ref:Q,readOnly:j})))});let kG=rK(["Input","TextArea"],e=>(e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
277
+ ${r}-col-xl-24${n}-label`]:SC(e)},[`@media (max-width: ${tg(e.screenXSMax)})`]:[(e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:SC(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}})(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:SC(e)}}}],[`@media (max-width: ${tg(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:SC(e)}}},[`@media (max-width: ${tg(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:SC(e)}}},[`@media (max-width: ${tg(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:SC(e)}}}}})(n),lq(n),uy]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),Sk=[];function SO(e,t,n,r=0){return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}let SA=({help:e,helpStatus:t,errors:n=Sk,warnings:r=Sk,className:o,fieldId:a,onVisibleChanged:i})=>{let{prefixCls:l}=x.useContext(sV),c=`${l}-item-explain`,s=a$(l),[u,d,f]=SS(l,s),p=x.useMemo(()=>iq(l),[l]),m=Sx(n),g=Sx(r),h=x.useMemo(()=>null!=e?[SO(e,"help",t)]:[].concat((0,eM.A)(m.map((e,t)=>SO(e,"error","error",t))),(0,eM.A)(g.map((e,t)=>SO(e,"warning","warning",t)))),[e,t,m,g]),v=x.useMemo(()=>{let e={};return h.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),h.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[h]),b={};return a&&(b.id=`${a}_help`),u(x.createElement(oG,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!v.length,onVisibleChanged:i},e=>{let{className:t,style:n}=e;return x.createElement("div",Object.assign({},b,{className:E()(c,t,f,s,o,d),style:n}),x.createElement(o4,Object.assign({keys:v},iq(l),{motionName:`${l}-show-help-item`,component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:o,style:a}=e;return x.createElement("div",{key:t,className:E()(o,{[`${c}-${r}`]:r}),style:a},n)}))}))};var SI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let SN=x.forwardRef((e,t)=>{let n=x.useContext(id),{getPrefixCls:r,direction:o,requiredMark:a,colon:i,scrollToFirstError:l,className:c,style:s}=eq("form"),{prefixCls:u,className:d,rootClassName:f,size:p,disabled:m=n,form:g,colon:h,labelAlign:v,labelWrap:b,labelCol:y,wrapperCol:$,hideRequiredMark:w,layout:C="horizontal",scrollToFirstError:S,requiredMark:k,onFinishFailed:O,name:A,style:I,feedbackIcons:N,variant:j}=e,M=SI(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),R=i1(p),P=x.useContext(a8),T=x.useMemo(()=>void 0!==k?k:!w&&(void 0===a||a),[w,k,a]),z=null!=h?h:i,B=r("form",u),D=a$(B),[H,L,F]=SS(B,D),W=E()(B,`${B}-${C}`,{[`${B}-hide-required-mark`]:!1===T,[`${B}-rtl`]:"rtl"===o,[`${B}-${R}`]:R},F,D,L,c,d,f),[_]=bD(g),{__INTERNAL__:V}=_;V.name=A;let q=x.useMemo(()=>({name:A,labelAlign:v,labelCol:y,labelWrap:b,wrapperCol:$,layout:C,colon:z,requiredMark:T,itemRef:V.itemRef,form:_,feedbackIcons:N}),[A,v,y,$,C,z,T,_,N]),K=x.useRef(null);x.useImperativeHandle(t,()=>{var e;return Object.assign(Object.assign({},_),{nativeElement:null==(e=K.current)?void 0:e.nativeElement})});let X=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),_.scrollToField(t,n)}};return H(x.createElement(sX.Provider,{value:j},x.createElement(ip,{disabled:m},x.createElement(im.Provider,{value:R},x.createElement(s_,{validateMessages:P},x.createElement(sF.Provider,{value:q},x.createElement(sK,{status:!0},x.createElement(sL,Object.assign({id:A},M,{name:A,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==S)return void X(S,t);void 0!==l&&X(l,t)}},form:_,ref:K,style:Object.assign(Object.assign({},s),I),className:W})))))))))}),Sj=()=>{let{status:e,errors:t=[],warnings:n=[]}=x.useContext(sq);return{status:e,errors:t,warnings:n}};Sj.Context=sq;var SM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function SR(e,t){let[n,r]=x.useState("string"==typeof e?e:"");return x.useEffect(()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<pL.length;n++){let o=pL[n];if(!t||!t[o])continue;let a=e[o];if(void 0!==a)return void r(a)}})()},[JSON.stringify(e),t]),n}let SP=x.forwardRef((e,t)=>{let n,r,o,{prefixCls:a,justify:i,align:l,className:c,style:s,children:u,gutter:d=0,wrap:f}=e,p=SM(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:m,direction:g}=x.useContext(eW),h=p_(!0,null),v=SR(l,h),b=SR(i,h),y=m("row",a),[$,w,C]=uf(y),S=(n=[void 0,void 0],r=Array.isArray(d)?d:[d,void 0],o=h||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0},r.forEach((e,t)=>{if("object"==typeof e&&null!==e)for(let r=0;r<pL.length;r++){let a=pL[r];if(o[a]&&void 0!==e[a]){n[t]=e[a];break}}else n[t]=e}),n),k=E()(y,{[`${y}-no-wrap`]:!1===f,[`${y}-${b}`]:b,[`${y}-${v}`]:v,[`${y}-rtl`]:"rtl"===g},c,w,C),O={};if(null==S?void 0:S[0]){let e="number"==typeof S[0]?`${-(S[0]/2)}px`:`calc(${S[0]} / -2)`;O.marginLeft=e,O.marginRight=e}let[A,I]=S;O.rowGap=I;let N=x.useMemo(()=>({gutter:[A,I],wrap:f}),[A,I,f]);return $(x.createElement(xR.Provider,{value:N},x.createElement("div",Object.assign({},p,{className:k,style:Object.assign(Object.assign({},O),s),ref:t}),u)))}),ST=rG(["Form","item-item"],(e,{rootPrefixCls:t})=>(e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}})(SE(e,t)));var Sz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let SB=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:i,warnings:l,_internalItemRender:c,extra:s,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:m}=e,g=`${t}-item`,h=x.useContext(sF),v=x.useMemo(()=>{let e=Object.assign({},o||h.wrapperCol||{});return null!==m||r||o||!h.labelCol||[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{let n=t?[t]:[],r=n$(h.labelCol,n),o="object"==typeof r?r:{},a=n$(e,n);"span"in o&&!("offset"in("object"==typeof a?a:{}))&&o.span<24&&(e=nk(e,[].concat(n,["offset"]),o.span))}),e},[o,h.wrapperCol,h.labelCol,m,r]),b=E()(`${g}-control`,v.className),y=x.useMemo(()=>{let{labelCol:e,wrapperCol:t}=h;return Sz(h,["labelCol","wrapperCol"])},[h]),$=x.useRef(null),[w,C]=x.useState(0);t$(()=>{s&&$.current?C($.current.clientHeight):C(0)},[s]);let S=x.createElement("div",{className:`${g}-control-input`},x.createElement("div",{className:`${g}-control-input-content`},a)),k=x.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=null!==f||i.length||l.length?x.createElement(sV.Provider,{value:k},x.createElement(SA,{fieldId:d,errors:i,warnings:l,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})):null,A={};d&&(A.id=`${d}_extra`);let I=s?x.createElement("div",Object.assign({},A,{className:`${g}-extra`,ref:$}),s):null,N=O||I?x.createElement("div",{className:`${g}-additional`,style:f?{minHeight:f+w}:{}},O,I):null,j=c&&"pro_table_render"===c.mark&&c.render?c.render(e,{input:S,errorList:O,extra:I}):x.createElement(x.Fragment,null,S,N);return x.createElement(sF.Provider,{value:y},x.createElement(xB,Object.assign({},v,{className:b}),j),x.createElement(ST,{prefixCls:t}))},SD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var SH=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:SD}))}),SL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let SF=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:i,requiredMark:l,tooltip:c,vertical:s})=>{var u;let d,[f]=iK("Form"),{labelAlign:p,labelCol:m,labelWrap:g,colon:h}=x.useContext(sF);if(!t)return null;let v=r||m||{},b=`${e}-item-label`,y=E()(b,"left"===(o||p)&&`${b}-left`,v.className,{[`${b}-wrap`]:!!g}),$=t,w=!0===a||!1!==h&&!1!==a;w&&!s&&"string"==typeof t&&t.trim()&&($=t.replace(/[:|:]\s*$/,""));let C=Sr(c);if(C){let{icon:t=x.createElement(SH,null)}=C,n=SL(C,["icon"]),r=x.createElement(ms,Object.assign({},n),x.cloneElement(t,{className:`${e}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));$=x.createElement(x.Fragment,null,$,r)}let S="optional"===l,k="function"==typeof l;k?$=l($,{required:!!i}):S&&!i&&($=x.createElement(x.Fragment,null,$,x.createElement("span",{className:`${e}-item-optional`,title:""},(null==f?void 0:f.optional)||(null==(u=io.Form)?void 0:u.optional)))),!1===l?d="hidden":(S||k)&&(d="optional");let O=E()({[`${e}-item-required`]:i,[`${e}-item-required-mark-${d}`]:d,[`${e}-item-no-colon`]:!w});return x.createElement(xB,Object.assign({},v,{className:y}),x.createElement("label",{htmlFor:n,className:O,title:"string"==typeof t?t:""},$))},SW={success:oc,warning:om,error:ou,validating:aq};function S_({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:i,noStyle:l,name:c}){let s=`${a}-item`,{feedbackIcons:u}=x.useContext(sF),d=bP(t,n,i,null,!!r,o),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:g,name:h}=x.useContext(sq),v=x.useMemo(()=>{var e;let o;if(r){let a=!0!==r&&r.icons||u,i=d&&(null==(e=null==a?void 0:a({status:d,errors:t,warnings:n}))?void 0:e[d]),l=d?SW[d]:null;o=!1!==i&&l?x.createElement("span",{className:E()(`${s}-feedback-icon`,`${s}-feedback-icon-${d}`)},i||x.createElement(l,null)):null}let a={status:d||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:o,isFormItemInput:!0,name:c};return l&&(a.status=(null!=d?d:p)||"",a.isFormItemInput=f,a.hasFeedback=!!(null!=r?r:m),a.feedbackIcon=void 0!==r?a.feedbackIcon:g,a.name=null!=c?c:h),a},[d,r,l,f,p]);return x.createElement(sq.Provider,{value:v},e)}var SV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Sq(e){let{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:l,validateStatus:c,meta:s,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:g,onSubItemMetaChange:h,layout:v,name:b}=e,y=SV(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),$=`${t}-item`,{requiredMark:w,layout:C}=x.useContext(sF),S=v||C,k="vertical"===S,O=x.useRef(null),A=Sx(i),I=Sx(l),N=null!=a,j=!!(N||i.length||l.length),M=!!O.current&&iG(O.current),[R,P]=x.useState(null);t$(()=>{j&&O.current&&P(Number.parseInt(getComputedStyle(O.current).marginBottom,10))},[j,M]);let T=((e=!1)=>bP(e?A:s.errors,e?I:s.warnings,s,"",!!u,c))(),z=E()($,n,r,{[`${$}-with-help`]:N||A.length||I.length,[`${$}-has-feedback`]:T&&u,[`${$}-has-success`]:"success"===T,[`${$}-has-warning`]:"warning"===T,[`${$}-has-error`]:"error"===T,[`${$}-is-validating`]:"validating"===T,[`${$}-hidden`]:d,[`${$}-${S}`]:S});return x.createElement("div",{className:z,style:o,ref:O},x.createElement(SP,Object.assign({className:`${$}-row`},iX(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),x.createElement(SF,Object.assign({htmlFor:p},e,{requiredMark:w,required:null!=m?m:g,prefixCls:t,vertical:k})),x.createElement(SB,Object.assign({},e,s,{errors:A,warnings:I,prefixCls:t,status:T,help:a,marginBottom:R,onErrorVisibleChanged:e=>{e||P(null)}}),x.createElement(sW.Provider,{value:h},x.createElement(S_,{prefixCls:t,meta:s,errors:s.errors,warnings:s.warnings,hasFeedback:u,validateStatus:T,name:b},f)))),!!R&&x.createElement("div",{className:`${$}-margin-offset`,style:{marginBottom:-R}}))}let SK=x.memo(({children:e})=>e,(e,t)=>{var n,r;let o,a;return n=e.control,r=t.control,o=Object.keys(n),a=Object.keys(r),o.length===a.length&&o.every(e=>{let t=n[e],o=r[e];return t===o||"function"==typeof t||"function"==typeof o})&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n])});function SX(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let SG=function(e){let{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:c,required:s,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:m,help:g,layout:h}=e,{getPrefixCls:v}=x.useContext(eW),{name:b}=x.useContext(sF),y=function(e){if("function"==typeof e)return e;let t=j(e);return t.length<=1?t[0]:t}(c),$="function"==typeof y,w=x.useContext(sW),{validateTrigger:C}=x.useContext(cW),S=void 0!==p?p:C,k=null!=t,O=v("form",a),A=a$(O),[I,N,M]=SS(O,A);aj();let R=x.useContext(c_),P=x.useRef(null),[T,z]=function(e){let[t,n]=x.useState(e),r=x.useRef(null),o=x.useRef([]),a=x.useRef(!1);return x.useEffect(()=>(a.current=!1,()=>{a.current=!0,eB.cancel(r.current),r.current=null}),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=eB(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[B,D]=nv(()=>SX()),H=(e,t)=>{z(n=>{let r=Object.assign({},n),o=[].concat((0,eM.A)(e.name.slice(0,-1)),(0,eM.A)(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[L,F]=x.useMemo(()=>{let e=(0,eM.A)(B.errors),t=(0,eM.A)(B.warnings);return Object.values(T).forEach(n=>{e.push.apply(e,(0,eM.A)(n.errors||[])),t.push.apply(t,(0,eM.A)(n.warnings||[]))}),[e,t]},[T,B.errors,B.warnings]),W=function(){let{itemRef:e}=x.useContext(sF),t=x.useRef({});return function(n,r){let o=r&&"object"==typeof r&&Z(r),a=n.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=G(e(n),o)),t.current.ref}}();function _(o,a,i){return n&&!m?x.createElement(S_,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:L,warnings:F,noStyle:!0,name:t},o):x.createElement(Sq,Object.assign({key:"row"},e,{className:E()(r,M,A,N),prefixCls:O,fieldId:a,isRequired:i,errors:L,warnings:F,meta:B,onSubItemMetaChange:H,layout:h,name:t}),o)}if(!k&&!$&&!o)return I(_(y));let V={};return"string"==typeof u?V.label=u:t&&(V.label=String(t)),d&&(V=Object.assign(Object.assign({},V),d)),I(x.createElement(sk,Object.assign({},e,{messageVariables:V,trigger:f,validateTrigger:S,onMetaChange:e=>{let t=null==R?void 0:R.getKey(e.name);if(D(e.destroy?SX():e,!0),n&&!1!==g&&w){let n=e.name;if(e.destroy)n=P.current||n;else if(void 0!==t){let[e,r]=t;P.current=n=[e].concat((0,eM.A)(r))}w(e,n)}}}),(n,r,a)=>{let c=bM(t).length&&r?r.name:[],u=bR(c,b),d=void 0!==s?s:!!(null==l?void 0:l.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){let t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1})),p=Object.assign({},n),m=null;if(Array.isArray(y)&&k)m=y;else if($&&(!(i||o)||k));else if(!o||$||k)if(x.isValidElement(y)){let t=Object.assign(Object.assign({},y.props),p);if(t.id||(t.id=u),g||L.length>0||F.length>0||e.extra){let n=[];(g||L.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}L.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),U(y)&&(t.ref=W(c,y)),new Set([].concat((0,eM.A)(bM(f)),(0,eM.A)(bM(S)))).forEach(e=>{t[e]=(...t)=>{var n,r,o;null==(n=p[e])||n.call.apply(n,[p].concat(t)),null==(o=(r=y.props)[e])||o.call.apply(o,[r].concat(t))}});let n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=x.createElement(SK,{control:p,update:y,childProps:n},o9(y,t))}else m=$&&(i||o)&&!k?y(a):y;return _(m,u,d)}))};SG.useStatus=Sj;var SY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};SN.Item=SG,SN.List=e=>{var{prefixCls:t,children:n}=e,r=SY(e,["prefixCls","children"]);let{getPrefixCls:o}=x.useContext(eW),a=o("form",t),i=x.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return x.createElement(sO,Object.assign({},r),(e,t,r)=>x.createElement(sV.Provider,{value:i},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))},SN.ErrorList=SA,SN.useForm=bD,SN.useFormInstance=function(){let{form:e}=x.useContext(sF);return e},SN.useWatch=sH,SN.Provider=s_,SN.create=()=>{};let SU=SN,SQ={useBreakpoint:function(){return p_()}},SZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var SJ=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:SZ}))});function S0(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function S1(e,t,n,r){var o=L().unstable_batchedUpdates?function(e){L().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var S2=x.createContext(null);let S4=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,o=e.prefixCls,a=e.rootClassName,i=e.icons,l=e.countRender,c=e.showSwitch,s=e.showProgress,u=e.current,d=e.transform,f=e.count,p=e.scale,m=e.minScale,g=e.maxScale,h=e.closeIcon,v=e.onActive,b=e.onClose,y=e.onZoomIn,$=e.onZoomOut,w=e.onRotateRight,C=e.onRotateLeft,S=e.onFlipX,k=e.onFlipY,O=e.onReset,A=e.toolbarRender,I=e.zIndex,N=e.image,j=(0,x.useContext)(S2),M=i.rotateLeft,R=i.rotateRight,P=i.zoomIn,T=i.zoomOut,z=i.close,B=i.left,H=i.right,L=i.flipX,F=i.flipY,W="".concat(o,"-operations-operation");x.useEffect(function(){var e=function(e){e.keyCode===aM.ESC&&b()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var _=function(e,t){e.preventDefault(),e.stopPropagation(),v(t)},V=x.useCallback(function(e){var t=e.type,n=e.disabled,r=e.onClick,a=e.icon;return x.createElement("div",{key:t,className:E()(W,"".concat(o,"-operations-operation-").concat(t),(0,eX.A)({},"".concat(o,"-operations-operation-disabled"),!!n)),onClick:r},a)},[W,o]),q=c?V({icon:B,onClick:function(e){return _(e,-1)},type:"prev",disabled:0===u}):void 0,K=c?V({icon:H,onClick:function(e){return _(e,1)},type:"next",disabled:u===f-1}):void 0,X=V({icon:F,onClick:k,type:"flipY"}),G=V({icon:L,onClick:S,type:"flipX"}),Y=V({icon:M,onClick:C,type:"rotateLeft"}),U=V({icon:R,onClick:w,type:"rotateRight"}),Q=V({icon:T,onClick:$,type:"zoomOut",disabled:p<=m}),Z=V({icon:P,onClick:y,type:"zoomIn",disabled:p===g}),J=x.createElement("div",{className:"".concat(o,"-operations")},X,G,Y,U,Q,Z);return x.createElement(oG,{visible:t,motionName:n},function(e){var t=e.className,n=e.style;return x.createElement(cS,{open:!0,getContainer:null!=r?r:document.body},x.createElement("div",{className:E()("".concat(o,"-operations-wrapper"),t,a),style:(0,D.A)((0,D.A)({},n),{},{zIndex:I})},null===h?null:x.createElement("button",{className:"".concat(o,"-close"),onClick:b},h||z),c&&x.createElement(x.Fragment,null,x.createElement("div",{className:E()("".concat(o,"-switch-left"),(0,eX.A)({},"".concat(o,"-switch-left-disabled"),0===u)),onClick:function(e){return _(e,-1)}},B),x.createElement("div",{className:E()("".concat(o,"-switch-right"),(0,eX.A)({},"".concat(o,"-switch-right-disabled"),u===f-1)),onClick:function(e){return _(e,1)}},H)),x.createElement("div",{className:"".concat(o,"-footer")},s&&x.createElement("div",{className:"".concat(o,"-progress")},l?l(u+1,f):x.createElement("bdi",null,"".concat(u+1," / ").concat(f))),A?A(J,(0,D.A)((0,D.A)({icons:{prevIcon:q,nextIcon:K,flipYIcon:X,flipXIcon:G,rotateLeftIcon:Y,rotateRightIcon:U,zoomOutIcon:Q,zoomInIcon:Z},actions:{onActive:v,onFlipY:k,onFlipX:S,onRotateLeft:C,onRotateRight:w,onZoomOut:$,onZoomIn:y,onReset:O,onClose:b},transform:d},j?{current:u,total:f}:{}),{},{image:N})):J)))})};var S3={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function S6(e,t,n,r){var o=t+n,a=(n-r)/2;if(n>r){if(t>0)return(0,eX.A)({},e,a);if(t<0&&o<r)return(0,eX.A)({},e,-a)}else if(t<0||o>r)return(0,eX.A)({},e,t<0?a:-a);return{}}function S5(e,t,n,r){var o=S0(),a=o.width,i=o.height,l=null;return e<=a&&t<=i?l={x:0,y:0}:(e>a||t>i)&&(l=(0,D.A)((0,D.A)({},S6("x",n,e,a)),S6("y",r,t,i))),l}function S8(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=(0,x.useState)(n?"loading":"normal"),a=(0,eK.A)(o,2),i=a[0],l=a[1],c=(0,x.useRef)(!1),s="error"===i;(0,x.useEffect)(function(){var e=!0;return new Promise(function(e){if(!t)return void e(!1);var n=document.createElement("img");n.onerror=function(){return e(!1)},n.onload=function(){return e(!0)},n.src=t}).then(function(t){!t&&e&&l("error")}),function(){e=!1}},[t]),(0,x.useEffect)(function(){n&&!c.current?l("loading"):s&&l("normal")},[t]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===i&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&r?{src:r}:{onLoad:u,src:t},i]}function S7(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}var S9=["fallback","src","imgRef"],ke=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],kt=function(e){var t=e.fallback,n=e.src,r=e.imgRef,o=(0,r3.A)(e,S9),a=S8({src:n,fallback:t}),i=(0,eK.A)(a,2),l=i[0],c=i[1];return w().createElement("img",S({ref:function(e){r.current=e,l(e)}},o,c))};let kn=function(e){var t,n,r,o,a,i,l,c,s,u,d,f,p,m,g,h,v,b,y,$,C,k,O,A,I,N,j,M,R=e.prefixCls,P=e.src,T=e.alt,z=e.imageInfo,B=e.fallback,H=e.movable,L=void 0===H||H,F=e.onClose,W=e.visible,_=e.icons,V=e.rootClassName,q=e.closeIcon,K=e.getContainer,X=e.current,G=void 0===X?0:X,Y=e.count,U=void 0===Y?1:Y,Q=e.countRender,Z=e.scaleStep,J=void 0===Z?.5:Z,ee=e.minScale,et=void 0===ee?1:ee,en=e.maxScale,er=void 0===en?50:en,eo=e.transitionName,ea=e.maskTransitionName,ei=void 0===ea?"fade":ea,el=e.imageRender,ec=e.imgCommonProps,es=e.toolbarRender,eu=e.onTransform,ed=e.onChange,ef=(0,r3.A)(e,ke),ep=(0,x.useRef)(),em=(0,x.useContext)(S2),eg=em&&U>1,eh=em&&U>=1,ev=(0,x.useState)(!0),eb=(0,eK.A)(ev,2),ey=eb[0],e$=eb[1],ex=(t=(0,x.useRef)(null),n=(0,x.useRef)([]),r=(0,x.useState)(S3),a=(o=(0,eK.A)(r,2))[0],i=o[1],l=function(e,r){null===t.current&&(n.current=[],t.current=eB(function(){i(function(e){var o=e;return n.current.forEach(function(e){o=(0,D.A)((0,D.A)({},o),e)}),t.current=null,null==eu||eu({transform:o,action:r}),o})})),n.current.push((0,D.A)((0,D.A)({},a),e))},{transform:a,resetTransform:function(e){i(S3),e8(S3,a)||null==eu||eu({transform:S3,action:e})},updateTransform:l,dispatchZoomChange:function(e,t,n,r,o){var i=ep.current,c=i.width,s=i.height,u=i.offsetWidth,d=i.offsetHeight,f=i.offsetLeft,p=i.offsetTop,m=e,g=a.scale*e;g>er?(g=er,m=er/a.scale):g<et&&(m=(g=o?g:et)/a.scale);var h=null!=r?r:innerHeight/2,v=m-1,b=v*((null!=n?n:innerWidth/2)-a.x-f),y=v*(h-a.y-p),$=a.x-(b-v*c*.5),x=a.y-(y-v*s*.5);if(e<1&&1===g){var w=u*g,C=d*g,E=S0(),S=E.width,k=E.height;w<=S&&C<=k&&($=0,x=0)}l({x:$,y:x,scale:g},t)}}),ew=ex.transform,eC=ex.resetTransform,eE=ex.updateTransform,eS=ex.dispatchZoomChange,ek=(c=ew.rotate,s=ew.scale,u=ew.x,d=ew.y,f=(0,x.useState)(!1),m=(p=(0,eK.A)(f,2))[0],g=p[1],h=(0,x.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(e){W&&m&&eE({x:e.pageX-h.current.diffX,y:e.pageY-h.current.diffY},"move")},b=function(){if(W&&m){g(!1);var e=h.current,t=e.transformX,n=e.transformY;if(u!==t&&d!==n){var r=ep.current.offsetWidth*s,o=ep.current.offsetHeight*s,a=ep.current.getBoundingClientRect(),i=a.left,l=a.top,f=c%180!=0,p=S5(f?o:r,f?r:o,i,l);p&&eE((0,D.A)({},p),"dragRebound")}}},(0,x.useEffect)(function(){var e,t,n,r;if(L){n=S1(window,"mouseup",b,!1),r=S1(window,"mousemove",v,!1);try{window.top!==window.self&&(e=S1(window.top,"mouseup",b,!1),t=S1(window.top,"mousemove",v,!1))}catch(e){}}return function(){var o,a,i,l;null==(o=n)||o.remove(),null==(a=r)||a.remove(),null==(i=e)||i.remove(),null==(l=t)||l.remove()}},[W,m,u,d,c,L]),{isMoving:m,onMouseDown:function(e){L&&0===e.button&&(e.preventDefault(),e.stopPropagation(),h.current={diffX:e.pageX-u,diffY:e.pageY-d,transformX:u,transformY:d},g(!0))},onMouseMove:v,onMouseUp:b,onWheel:function(e){if(W&&0!=e.deltaY){var t=1+Math.min(Math.abs(e.deltaY/100),1)*J;e.deltaY>0&&(t=1/t),eS(t,"wheel",e.clientX,e.clientY)}}}),eO=ek.isMoving,eA=ek.onMouseDown,eI=ek.onWheel,eN=(y=ew.rotate,$=ew.scale,C=ew.x,k=ew.y,O=(0,x.useState)(!1),I=(A=(0,eK.A)(O,2))[0],N=A[1],j=(0,x.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),M=function(e){j.current=(0,D.A)((0,D.A)({},j.current),e)},(0,x.useEffect)(function(){var e;return W&&L&&(e=S1(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var t;null==(t=e)||t.remove()}},[W,L]),{isTouching:I,onTouchStart:function(e){if(L){e.stopPropagation(),N(!0);var t=e.touches,n=void 0===t?[]:t;n.length>1?M({point1:{x:n[0].clientX,y:n[0].clientY},point2:{x:n[1].clientX,y:n[1].clientY},eventType:"touchZoom"}):M({point1:{x:n[0].clientX-C,y:n[0].clientY-k},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=j.current,o=r.point1,a=r.point2,i=r.eventType;if(n.length>1&&"touchZoom"===i){var l={x:n[0].clientX,y:n[0].clientY},c={x:n[1].clientX,y:n[1].clientY},s=function(e,t,n,r){var o=S7(e,n),a=S7(t,r);if(0===o&&0===a)return[e.x,e.y];var i=o/(o+a);return[e.x+i*(t.x-e.x),e.y+i*(t.y-e.y)]}(o,a,l,c),u=(0,eK.A)(s,2),d=u[0],f=u[1];eS(S7(l,c)/S7(o,a),"touchZoom",d,f,!0),M({point1:l,point2:c,eventType:"touchZoom"})}else"move"===i&&(eE({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),M({eventType:"move"}))},onTouchEnd:function(){if(W){if(I&&N(!1),M({eventType:"none"}),et>$)return eE({x:0,y:0,scale:et},"touchZoom");var e=ep.current.offsetWidth*$,t=ep.current.offsetHeight*$,n=ep.current.getBoundingClientRect(),r=n.left,o=n.top,a=y%180!=0,i=S5(a?t:e,a?e:t,r,o);i&&eE((0,D.A)({},i),"dragRebound")}}}),ej=eN.isTouching,eM=eN.onTouchStart,eR=eN.onTouchMove,eP=eN.onTouchEnd,eT=ew.rotate,ez=ew.scale,eD=E()((0,eX.A)({},"".concat(R,"-moving"),eO));(0,x.useEffect)(function(){ey||e$(!0)},[ey]);var eH=function(e){var t=G+e;!Number.isInteger(t)||t<0||t>U-1||(e$(!1),eC(e<0?"prev":"next"),null==ed||ed(t,G))},eL=function(e){W&&eg&&(e.keyCode===aM.LEFT?eH(-1):e.keyCode===aM.RIGHT&&eH(1))};(0,x.useEffect)(function(){var e=S1(window,"keydown",eL,!1);return function(){e.remove()}},[W,eg,G]);var eF=w().createElement(kt,S({},ec,{width:e.width,height:e.height,imgRef:ep,className:"".concat(R,"-img"),alt:T,style:{transform:"translate3d(".concat(ew.x,"px, ").concat(ew.y,"px, 0) scale3d(").concat(ew.flipX?"-":"").concat(ez,", ").concat(ew.flipY?"-":"").concat(ez,", 1) rotate(").concat(eT,"deg)"),transitionDuration:(!ey||ej)&&"0s"},fallback:B,src:P,onWheel:eI,onMouseDown:eA,onDoubleClick:function(e){W&&(1!==ez?eE({x:0,y:0,scale:1},"doubleClick"):eS(1+J,"doubleClick",e.clientX,e.clientY))},onTouchStart:eM,onTouchMove:eR,onTouchEnd:eP,onTouchCancel:eP})),eW=(0,D.A)({url:P,alt:T},z);return w().createElement(w().Fragment,null,w().createElement(cH,S({transitionName:void 0===eo?"zoom":eo,maskTransitionName:ei,closable:!1,keyboard:!0,prefixCls:R,onClose:F,visible:W,classNames:{wrapper:eD},rootClassName:V,getContainer:K},ef,{afterClose:function(){eC("close")}}),w().createElement("div",{className:"".concat(R,"-img-wrapper")},el?el(eF,(0,D.A)({transform:ew,image:eW},em?{current:G}:{})):eF)),w().createElement(S4,{visible:W,transform:ew,maskTransitionName:ei,closeIcon:q,getContainer:K,prefixCls:R,rootClassName:V,icons:void 0===_?{}:_,countRender:Q,showSwitch:eg,showProgress:eh,current:G,count:U,scale:ez,minScale:et,maxScale:er,toolbarRender:es,onActive:eH,onZoomIn:function(){eS(1+J,"zoomIn")},onZoomOut:function(){eS(1/(1+J),"zoomOut")},onRotateRight:function(){eE({rotate:eT+90},"rotateRight")},onRotateLeft:function(){eE({rotate:eT-90},"rotateLeft")},onFlipX:function(){eE({flipX:!ew.flipX},"flipX")},onFlipY:function(){eE({flipY:!ew.flipY},"flipY")},onClose:F,onReset:function(){eC("reset")},zIndex:void 0!==ef.zIndex?ef.zIndex+1:void 0,image:eW}))};var kr=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ko=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ka=["src"],ki=0,kl=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],kc=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ks=function(e){var t,n,r,o,a=e.src,i=e.alt,l=e.onPreviewClose,c=e.prefixCls,s=void 0===c?"rc-image":c,u=e.previewPrefixCls,d=void 0===u?"".concat(s,"-preview"):u,f=e.placeholder,p=e.fallback,m=e.width,g=e.height,h=e.style,v=e.preview,b=void 0===v||v,y=e.className,$=e.onClick,w=e.onError,C=e.wrapperClassName,O=e.wrapperStyle,A=e.rootClassName,I=(0,r3.A)(e,kl),N="object"===(0,k.A)(b)?b:{},j=N.src,M=N.visible,R=void 0===M?void 0:M,P=N.onVisibleChange,T=N.getContainer,z=N.mask,B=N.maskClassName,H=N.movable,L=N.icons,F=N.scaleStep,W=N.minScale,_=N.maxScale,V=N.imageRender,q=N.toolbarRender,K=(0,r3.A)(N,kc),X=null!=j?j:a,G=ny(!!R,{value:R,onChange:void 0===P?l:P}),Y=(0,eK.A)(G,2),U=Y[0],Q=Y[1],Z=S8({src:a,isCustomPlaceholder:f&&!0!==f,fallback:p}),J=(0,eK.A)(Z,3),ee=J[0],et=J[1],en=J[2],er=(0,x.useState)(null),eo=(0,eK.A)(er,2),ea=eo[0],ei=eo[1],el=(0,x.useContext)(S2),ec=!!b,es=E()(s,C,A,(0,eX.A)({},"".concat(s,"-error"),"error"===en)),eu=(0,x.useMemo)(function(){var t={};return kr.forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t},kr.map(function(t){return e[t]})),ed=(0,x.useMemo)(function(){return(0,D.A)((0,D.A)({},eu),{},{src:X})},[X,eu]),ef=(t=x.useState(function(){return String(ki+=1)}),n=(0,eK.A)(t,1)[0],r=x.useContext(S2),o={data:ed,canPreview:ec},x.useEffect(function(){if(r)return r.register(n,o)},[]),x.useEffect(function(){r&&r.register(n,o)},[ec,ed]),n);return x.createElement(x.Fragment,null,x.createElement("div",S({},I,{className:es,onClick:ec?function(e){var t,n,r=(t=e.target.getBoundingClientRect(),n=document.documentElement,{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}),o=r.left,a=r.top;el?el.onPreview(ef,X,o,a):(ei({x:o,y:a}),Q(!0)),null==$||$(e)}:$,style:(0,D.A)({width:m,height:g},O)}),x.createElement("img",S({},eu,{className:E()("".concat(s,"-img"),(0,eX.A)({},"".concat(s,"-img-placeholder"),!0===f),y),style:(0,D.A)({height:g},h),ref:ee},et,{width:m,height:g,onError:w})),"loading"===en&&x.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},f),z&&ec&&x.createElement("div",{className:E()("".concat(s,"-mask"),B),style:{display:(null==h?void 0:h.display)==="none"?"none":void 0}},z)),!el&&ec&&x.createElement(kn,S({"aria-hidden":!U,visible:U,prefixCls:d,onClose:function(){Q(!1),ei(null)},mousePosition:ea,src:X,alt:i,imageInfo:{width:m,height:g},fallback:p,getContainer:void 0===T?void 0:T,icons:L,movable:H,scaleStep:F,minScale:W,maxScale:_,rootClassName:A,imageRender:V,imgCommonProps:eu,toolbarRender:q},K)))};ks.PreviewGroup=function(e){var t,n,r,o,a,i,l=e.previewPrefixCls,c=e.children,s=e.icons,u=e.items,d=e.preview,f=e.fallback,p="object"===(0,k.A)(d)?d:{},m=p.visible,g=p.onVisibleChange,h=p.getContainer,v=p.current,b=p.movable,y=p.minScale,$=p.maxScale,w=p.countRender,C=p.closeIcon,E=p.onChange,O=p.onTransform,A=p.toolbarRender,I=p.imageRender,N=(0,r3.A)(p,ko),j=(t=x.useState({}),r=(n=(0,eK.A)(t,2))[0],o=n[1],a=x.useCallback(function(e,t){return o(function(n){return(0,D.A)((0,D.A)({},n),{},(0,eX.A)({},e,t))}),function(){o(function(t){var n=(0,D.A)({},t);return delete n[e],n})}},[]),[x.useMemo(function(){return u?u.map(function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach(function(n){["src"].concat((0,eM.A)(kr)).includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(r).reduce(function(e,t){var n=r[t],o=n.canPreview,a=n.data;return o&&e.push({data:a,id:t}),e},[])},[u,r]),a,!!u]),M=(0,eK.A)(j,3),R=M[0],P=M[1],T=M[2],z=ny(0,{value:v}),B=(0,eK.A)(z,2),H=B[0],L=B[1],F=(0,x.useState)(!1),W=(0,eK.A)(F,2),_=W[0],V=W[1],q=(null==(i=R[H])?void 0:i.data)||{},K=q.src,X=(0,r3.A)(q,ka),G=ny(!!m,{value:m,onChange:function(e,t){null==g||g(e,t,H)}}),Y=(0,eK.A)(G,2),U=Y[0],Q=Y[1],Z=(0,x.useState)(null),J=(0,eK.A)(Z,2),ee=J[0],et=J[1],en=x.useCallback(function(e,t,n,r){var o=T?R.findIndex(function(e){return e.data.src===t}):R.findIndex(function(t){return t.id===e});L(o<0?0:o),Q(!0),et({x:n,y:r}),V(!0)},[R,T]);x.useEffect(function(){U?_||L(0):V(!1)},[U]);var er=x.useMemo(function(){return{register:P,onPreview:en}},[P,en]);return x.createElement(S2.Provider,{value:er},c,x.createElement(kn,S({"aria-hidden":!U,movable:b,visible:U,prefixCls:void 0===l?"rc-image-preview":l,closeIcon:C,onClose:function(){Q(!1),et(null)},mousePosition:ee,imgCommonProps:X,src:K,fallback:f,icons:void 0===s?{}:s,minScale:y,maxScale:$,getContainer:h,current:H,count:R.length,countRender:w,onTransform:O,toolbarRender:A,imageRender:I,onChange:function(e,t){L(e),null==E||E(e,t)}},N)))};var ku={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},kd=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:ku}))}),kf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},kp=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:kf}))});let km={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};var kg=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:km}))});let kh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var kv=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:kh}))});let kb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var ky=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:kb}))});let k$=e=>({position:e||"absolute",inset:0}),kx=rK("Image",e=>{let t=`${e.componentCls}-preview`,n=nR(e,{previewCls:t,modalMaskBg:new n4("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[(e=>{let{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},(e=>{let{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new n4("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},nL),{padding:`0 ${tg(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}})(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},k$())}}})(n),(e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},k$()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},k$()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[(e=>{let{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:a,paddingLG:i,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new n4(n).setA(.1),p=f.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:a},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${tg(i)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}})(e),(e=>{let{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:a,motionDurationSlow:i}=e,l=new n4(t).setA(.1),c=l.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}})(e)]}]})(n),uA(nR(n,{componentCls:t})),(e=>{let{previewCls:t}=e;return{[`${t}-root`]:uk(e,"zoom"),"&":ub(e,!0)}})(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new n4(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new n4(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new n4(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}));var kw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kC={rotateLeft:x.createElement(kd,null),rotateRight:x.createElement(kp,null),zoomIn:x.createElement(kv,null),zoomOut:x.createElement(ky,null),close:x.createElement(of,null),left:x.createElement(mW,null),right:x.createElement(lT,null),flipX:x.createElement(kg,null),flipY:x.createElement(kg,{rotate:90})};var kE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kS=e=>{let{prefixCls:t,preview:n,className:r,rootClassName:o,style:a,fallback:i}=e,l=kE(e,["prefixCls","preview","className","rootClassName","style","fallback"]),{getPrefixCls:c,getPopupContainer:s,className:u,style:d,preview:f,fallback:p}=eq("image"),[m]=iK("Image"),g=c("image",t),h=c(),v=a$(g),[b,y,$]=kx(g,v),w=E()(o,y,$,v),C=E()(r,y,u),[S]=aY("ImagePreview","object"==typeof n?n.zIndex:void 0),k=x.useMemo(()=>{if(!1===n)return n;let e="object"==typeof n?n:{},{getContainer:t,closeIcon:r,rootClassName:o,destroyOnClose:a,destroyOnHidden:i}=e,l=kE(e,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:x.createElement("div",{className:`${g}-mask-info`},x.createElement(SJ,null),null==m?void 0:m.preview),icons:kC},l),{destroyOnClose:null!=i?i:a,rootClassName:E()(w,o),getContainer:null!=t?t:s,transitionName:iV(h,"zoom",e.transitionName),maskTransitionName:iV(h,"fade",e.maskTransitionName),zIndex:S,closeIcon:null!=r?r:null==f?void 0:f.closeIcon})},[n,m,null==f?void 0:f.closeIcon]),O=Object.assign(Object.assign({},d),a);return b(x.createElement(ks,Object.assign({prefixCls:g,preview:k,rootClassName:w,className:C,style:O,fallback:null!=i?i:p},l)))};kS.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=kw(e,["previewPrefixCls","preview"]);let{getPrefixCls:o,direction:a}=x.useContext(eW),i=o("image",t),l=`${i}-preview`,c=o(),s=a$(i),[u,d,f]=kx(i,s),[p]=aY("ImagePreview","object"==typeof n?n.zIndex:void 0),m=x.useMemo(()=>Object.assign(Object.assign({},kC),{left:"rtl"===a?x.createElement(lT,null):x.createElement(mW,null),right:"rtl"===a?x.createElement(mW,null):x.createElement(lT,null)}),[a]),g=x.useMemo(()=>{var e;if(!1===n)return n;let t="object"==typeof n?n:{},r=E()(d,f,s,null!=(e=t.rootClassName)?e:"");return Object.assign(Object.assign({},t),{transitionName:iV(c,"zoom",t.transitionName),maskTransitionName:iV(c,"fade",t.maskTransitionName),rootClassName:r,zIndex:p})},[n,c,p,d,f,s]);return u(x.createElement(ks.PreviewGroup,Object.assign({preview:g,previewPrefixCls:l,icons:m},r)))};let kk=kS,kO=rK(["Input","OTP"],e=>(e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})(nR(e,bG(e))),bY);var kA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kI=x.forwardRef((e,t)=>{let{className:n,value:r,onChange:o,onActiveChange:a,index:i,mask:l}=e,c=kA(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:s}=x.useContext(eW),u=s("otp"),d="string"==typeof l?l:r,f=x.useRef(null);x.useImperativeHandle(t,()=>f.current);let p=()=>{eB(()=>{var e;let t=null==(e=f.current)?void 0:e.input;document.activeElement===t&&t&&t.select()})};return x.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},l&&""!==r&&void 0!==r&&x.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),x.createElement(w6,Object.assign({"aria-label":`OTP Input ${i+1}`,type:!0===l?"password":"text"},c,{ref:f,value:r,onInput:e=>{o(i,e.target.value)},onFocus:p,onKeyDown:e=>{let{key:t,ctrlKey:n,metaKey:o}=e;"ArrowLeft"===t?a(i-1):"ArrowRight"===t?a(i+1):"z"===t&&(n||o)?e.preventDefault():"Backspace"!==t||r||a(i-1),p()},onMouseDown:p,onMouseUp:p,className:E()(n,{[`${u}-mask-input`]:l})})))});var kN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function kj(e){return(e||"").split("")}let kM=e=>{let{index:t,prefixCls:n,separator:r}=e,o="function"==typeof r?r(t):r;return o?x.createElement("span",{className:`${n}-separator`},o):null},kR=x.forwardRef((e,t)=>{let n,{prefixCls:r,length:o=6,size:a,defaultValue:i,value:l,onChange:c,formatter:s,separator:u,variant:d,disabled:f,status:p,autoFocus:m,mask:g,type:h,onInput:v,inputMode:b}=e,y=kN(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:$,direction:w}=x.useContext(eW),C=$("otp",r),S=o5(y,{aria:!0,data:!0,attr:!0}),[k,O,A]=kO(C),I=i1(e=>null!=a?a:e),N=x.useContext(sq),j=(n=N.status,p||n),M=x.useMemo(()=>Object.assign(Object.assign({},N),{status:j,hasFeedback:!1,feedbackIcon:null}),[N,j]),R=x.useRef(null),P=x.useRef({});x.useImperativeHandle(t,()=>({focus:()=>{var e;null==(e=P.current[0])||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null==(e=P.current[t])||e.blur()},nativeElement:R.current}));let T=e=>s?s(e):e,[z,B]=x.useState(()=>kj(T(i||"")));x.useEffect(()=>{void 0!==l&&B(kj(l))},[l]);let D=nh(e=>{B(e),v&&v(e),c&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>z[t]!==e)&&c(e.join(""))}),H=nh((e,t)=>{let n=(0,eM.A)(z);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(kj(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();return n=kj(T(n.map(e=>e||" ").join(""))).map((e,t)=>" "!==e||n[t]?e:n[t])}),L=(e,t)=>{var n;let r=H(e,t),a=Math.min(e+t.length,o-1);a!==e&&void 0!==r[e]&&(null==(n=P.current[a])||n.focus()),D(r)},F=e=>{var t;null==(t=P.current[e])||t.focus()},W={variant:d,disabled:f,status:j,mask:g,type:h,inputMode:b};return k(x.createElement("div",Object.assign({},S,{ref:R,className:E()(C,{[`${C}-sm`]:"small"===I,[`${C}-lg`]:"large"===I,[`${C}-rtl`]:"rtl"===w},A,O),role:"group"}),x.createElement(sq.Provider,{value:M},Array.from({length:o}).map((e,t)=>{let n=`otp-${t}`,r=z[t]||"";return x.createElement(x.Fragment,{key:n},x.createElement(kI,Object.assign({ref:e=>{P.current[t]=e},index:t,size:I,htmlSize:1,className:`${C}-input`,onChange:L,value:r,onActiveChange:F,autoFocus:0===t&&m},W)),t<o-1&&x.createElement(kM,{separator:u,index:t,prefixCls:C}))}))))}),kP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var kT=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:kP}))}),kz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kB=e=>e?x.createElement(SJ,null):x.createElement(kT,null),kD={click:"onClick",hover:"onMouseOver"},kH=x.forwardRef((e,t)=>{let n,r,o,{disabled:a,action:i="click",visibilityToggle:l=!0,iconRender:c=kB,suffix:s}=e,u=x.useContext(id),d=null!=a?a:u,f="object"==typeof l&&void 0!==l.visible,[p,m]=(0,x.useState)(()=>!!f&&l.visible),g=(0,x.useRef)(null);x.useEffect(()=>{f&&m(l.visible)},[f,l]);let h=w4(g),{className:v,prefixCls:b,inputPrefixCls:y,size:$}=e,w=kz(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=x.useContext(eW),S=C("input",y),k=C("input-password",b),O=l&&(n=kD[i]||"",r=c(p),o={[n]:()=>{var e;if(d)return;p&&h();let t=!p;m(t),"object"==typeof l&&(null==(e=l.onVisibleChange)||e.call(l,t))},className:`${k}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}},x.cloneElement(x.isValidElement(r)?r:x.createElement("span",null,r),o)),A=E()(k,v,{[`${k}-${$}`]:!!$}),I=Object.assign(Object.assign({},iX(w,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:A,prefixCls:S,suffix:x.createElement(x.Fragment,null,O,s)});return $&&(I.size=$),x.createElement(w6,Object.assign({ref:G(t,g)},I))});var kL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kF=x.forwardRef((e,t)=>{let n,{prefixCls:r,inputPrefixCls:o,className:a,size:i,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g,variant:h,onPressEnter:v}=e,b=kL(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:$}=x.useContext(eW),w=x.useRef(!1),C=y("input-search",r),S=y("input",o),{compactSize:k}=i6(C,$),O=i1(e=>{var t;return null!=(t=null!=i?i:k)?t:e}),A=x.useRef(null),I=e=>{var t;document.activeElement===(null==(t=A.current)?void 0:t.input)&&e.preventDefault()},N=e=>{var t,n;f&&f(null==(n=null==(t=A.current)?void 0:t.input)?void 0:n.value,e,{source:"input"})},j="boolean"==typeof c?x.createElement(pC,null):null,M=`${C}-button`,R=c||{},P=R.type&&!0===R.type.__ANT_BUTTON;n=P||"button"===R.type?o9(R,Object.assign({onMouseDown:I,onClick:e=>{var t,n;null==(n=null==(t=null==R?void 0:R.props)?void 0:t.onClick)||n.call(t,e),N(e)},key:"enterButton"},P?{className:M,size:O}:{})):x.createElement(cu,{className:M,color:c?"primary":"default",size:O,disabled:d,key:"enterButton",onMouseDown:I,onClick:N,loading:u,icon:j,variant:"borderless"===h||"filled"===h||"underlined"===h?"text":c?"solid":void 0},c),s&&(n=[n,o9(s,{key:"addonAfter"})]);let T=E()(C,{[`${C}-rtl`]:"rtl"===$,[`${C}-${O}`]:!!O,[`${C}-with-button`]:!!c},a),z=Object.assign(Object.assign({},b),{className:T,prefixCls:S,type:"search",size:O,variant:h,onPressEnter:e=>{w.current||u||(null==v||v(e),N(e))},onCompositionStart:e=>{w.current=!0,null==m||m(e)},onCompositionEnd:e=>{w.current=!1,null==g||g(e)},addonAfter:n,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},disabled:d,_skipAddonWarning:!0});return x.createElement(w6,Object.assign({ref:G(A,t)},z))});var kW=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],k_={},kV=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kq=x.forwardRef(function(e,t){var n=e.prefixCls,r=e.defaultValue,o=e.value,a=e.autoSize,i=e.onResize,l=e.className,c=e.style,s=e.disabled,u=e.onChange,d=(e.onInternalAutoSize,(0,r3.A)(e,kV)),f=ny(r,{value:o,postState:function(e){return null!=e?e:""}}),p=(0,eK.A)(f,2),m=p[0],g=p[1],h=x.useRef();x.useImperativeHandle(t,function(){return{textArea:h.current}});var v=x.useMemo(function(){return a&&"object"===(0,k.A)(a)?[a.minRows,a.maxRows]:[]},[a]),b=(0,eK.A)(v,2),y=b[0],w=b[1],C=!!a,O=x.useState(2),A=(0,eK.A)(O,2),I=A[0],N=A[1],j=x.useState(),M=(0,eK.A)(j,2),R=M[0],P=M[1],T=function(){N(0)};t$(function(){C&&T()},[o,y,w,C]),t$(function(){if(0===I)N(1);else if(1===I){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;$||(($=document.createElement("textarea")).setAttribute("tab-index","-1"),$.setAttribute("aria-hidden","true"),$.setAttribute("name","hiddenTextarea"),document.body.appendChild($)),e.getAttribute("wrap")?$.setAttribute("wrap",e.getAttribute("wrap")):$.removeAttribute("wrap");var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&k_[n])return k_[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:kW.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(k_[n]=l),l}(e,n),i=a.paddingSize,l=a.borderSize,c=a.boxSizing,s=a.sizingStyle;$.setAttribute("style","".concat(s,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),$.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f=$.scrollHeight;if("border-box"===c?f+=l:"content-box"===c&&(f-=i),null!==r||null!==o){$.value=" ";var p=$.scrollHeight-i;null!==r&&(u=p*r,"border-box"===c&&(u=u+i+l),f=Math.max(u,f)),null!==o&&(d=p*o,"border-box"===c&&(d=d+i+l),t=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:t,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}(h.current,!1,y,w);N(2),P(e)}},[I]);var z=x.useRef(),B=function(){eB.cancel(z.current)};x.useEffect(function(){return B},[]);var H=(0,D.A)((0,D.A)({},c),C?R:null);return(0===I||1===I)&&(H.overflowY="hidden",H.overflowX="hidden"),x.createElement(ej,{onResize:function(e){2===I&&(null==i||i(e),a&&(B(),z.current=eB(function(){T()})))},disabled:!(a||i)},x.createElement("textarea",S({},d,{ref:h,style:H,className:E()(n,l,(0,eX.A)({},"".concat(n,"-disabled"),s)),disabled:s,value:m,onChange:function(e){g(e.target.value),null==u||u(e)}})))}),kK=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],kX=w().forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,l=e.onBlur,c=e.onChange,s=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,g=void 0===m?"rc-textarea":m,h=e.showCount,v=e.count,b=e.className,y=e.style,$=e.disabled,C=e.hidden,k=e.classNames,O=e.styles,A=e.onResize,I=e.onClear,N=e.onPressEnter,j=e.readOnly,M=e.autoSize,R=e.onKeyDown,P=(0,r3.A)(e,kK),T=ny(o,{value:a,defaultValue:o}),z=(0,eK.A)(T,2),B=z[0],H=z[1],L=null==B?"":String(B),F=w().useState(!1),W=(0,eK.A)(F,2),_=W[0],V=W[1],q=w().useRef(!1),K=w().useState(null),X=(0,eK.A)(K,2),G=X[0],Y=X[1],U=(0,x.useRef)(null),Q=(0,x.useRef)(null),Z=function(){var e;return null==(e=Q.current)?void 0:e.textArea},J=function(){Z().focus()};(0,x.useImperativeHandle)(t,function(){var e;return{resizableTextArea:Q.current,focus:J,blur:function(){Z().blur()},nativeElement:(null==(e=U.current)?void 0:e.nativeElement)||Z()}}),(0,x.useEffect)(function(){V(function(e){return!$&&e})},[$]);var ee=w().useState(null),et=(0,eK.A)(ee,2),en=et[0],er=et[1];w().useEffect(function(){if(en){var e;(e=Z()).setSelectionRange.apply(e,(0,eM.A)(en))}},[en]);var eo=wm(v,h),ea=null!=(n=eo.max)?n:u,ei=Number(ea)>0,el=eo.strategy(L),ec=!!ea&&el>ea,es=function(e,t){var n=t;!q.current&&eo.exceedFormatter&&eo.max&&eo.strategy(t)>eo.max&&(n=eo.exceedFormatter(t,{max:eo.max}),t!==n&&er([Z().selectionStart||0,Z().selectionEnd||0])),H(n),wu(e.currentTarget,e,c,n)},eu=p;eo.show&&(r=eo.showFormatter?eo.showFormatter({value:L,count:el,maxLength:ea}):"".concat(el).concat(ei?" / ".concat(ea):""),eu=w().createElement(w().Fragment,null,eu,w().createElement("span",{className:E()("".concat(g,"-data-count"),null==k?void 0:k.count),style:null==O?void 0:O.count},r)));var ed=!M&&!h&&!s;return w().createElement(wf,{ref:U,value:L,allowClear:s,handleReset:function(e){H(""),J(),wu(Z(),e,c)},suffix:eu,prefixCls:g,classNames:(0,D.A)((0,D.A)({},k),{},{affixWrapper:E()(null==k?void 0:k.affixWrapper,(0,eX.A)((0,eX.A)({},"".concat(g,"-show-count"),h),"".concat(g,"-textarea-allow-clear"),s))}),disabled:$,focused:_,className:E()(b,ec&&"".concat(g,"-out-of-range")),style:(0,D.A)((0,D.A)({},y),G&&!ed?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof r?r:void 0}},hidden:C,readOnly:j,onClear:I},w().createElement(kq,S({},P,{autoSize:M,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&N&&N(e),null==R||R(e)},onChange:function(e){es(e,e.target.value)},onFocus:function(e){V(!0),null==i||i(e)},onBlur:function(e){V(!1),null==l||l(e)},onCompositionStart:function(e){q.current=!0,null==d||d(e)},onCompositionEnd:function(e){q.current=!1,es(e,e.currentTarget.value),null==f||f(e)},className:E()(null==k?void 0:k.textarea),style:(0,D.A)((0,D.A)({},null==O?void 0:O.textarea),{},{resize:null==y?void 0:y.resize}),disabled:$,prefixCls:g,onResize:function(e){var t;null==A||A(e),null!=(t=Z())&&t.style.height&&Y(!0)},ref:Q,readOnly:j})))});let kG=rK(["Input","TextArea"],e=>(e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
278
278
  &-allow-clear > ${t},
279
279
  &-affix-wrapper${r}-has-feedback ${t}
280
280
  `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})(nR(e,bG(e))),bY,{resetFont:!1});var kY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kU=(0,x.forwardRef)((e,t)=>{var n;let{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:l,allowClear:c,classNames:s,rootClassName:u,className:d,style:f,styles:p,variant:m,showCount:g,onMouseDown:h,onResize:v}=e,b=kY(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:y,direction:$,allowClear:w,autoComplete:C,className:S,style:k,classNames:O,styles:A}=eq("textArea"),I=x.useContext(id),{status:N,hasFeedback:j,feedbackIcon:M}=x.useContext(sq),R=x.useRef(null);x.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null==(e=R.current)?void 0:e.resizableTextArea,focus:e=>{var t,n;wd(null==(n=null==(t=R.current)?void 0:t.resizableTextArea)?void 0:n.textArea,e)},blur:()=>{var e;return null==(e=R.current)?void 0:e.blur()}}});let P=y("input",r),T=a$(P),[z,B,D]=wX(P,u),[H]=kG(P,T),{compactSize:L,compactItemClassnames:F}=i6(P,$),W=i1(e=>{var t;return null!=(t=null!=a?a:L)?t:e}),[_,V]=f0("textArea",m,o),q=w2(null!=c?c:w),[K,X]=x.useState(!1),[G,Y]=x.useState(!1);return z(H(x.createElement(kX,Object.assign({autoComplete:C},b,{style:Object.assign(Object.assign({},k),f),styles:Object.assign(Object.assign({},A),p),disabled:null!=i?i:I,allowClear:q,className:E()(D,T,d,u,F,S,G&&`${P}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},s),O),{textarea:E()({[`${P}-sm`]:"small"===W,[`${P}-lg`]:"large"===W},B,null==s?void 0:s.textarea,O.textarea,K&&`${P}-mouse-active`),variant:E()({[`${P}-${_}`]:V},fK(P,l||N)),affixWrapper:E()(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:"rtl"===$,[`${P}-affix-wrapper-sm`]:"small"===W,[`${P}-affix-wrapper-lg`]:"large"===W,[`${P}-textarea-show-count`]:g||(null==(n=e.count)?void 0:n.show)},B)}),prefixCls:P,suffix:j&&x.createElement("span",{className:`${P}-textarea-suffix`},M),showCount:g,ref:R,onResize:e=>{var t,n;if(null==v||v(e),K&&"function"==typeof getComputedStyle){let e=null==(n=null==(t=R.current)?void 0:t.nativeElement)?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Y(!0)}},onMouseDown:e=>{X(!0),null==h||h(e);let t=()=>{X(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))});w6.Group=e=>{let{getPrefixCls:t,direction:n}=(0,x.useContext)(eW),{prefixCls:r,className:o}=e,a=t("input-group",r),[i,l,c]=wG(t("input")),s=E()(a,c,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},l,o),u=(0,x.useContext)(sq),d=(0,x.useMemo)(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return i(x.createElement("span",{className:s,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},x.createElement(sq.Provider,{value:d},e.children)))},w6.Search=kF,w6.TextArea=kU,w6.Password=kH,w6.OTP=kR;let kQ=w6;var kZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function kJ({suffixCls:e,tagName:t,displayName:n}){return n=>x.forwardRef((r,o)=>x.createElement(n,Object.assign({ref:o,suffixCls:e,tagName:t},r)))}let k0=x.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=kZ(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=x.useContext(eW),c=l("layout",n),[s,u,d]=g4(c),f=r?`${c}-${r}`:c;return s(x.createElement(a,Object.assign({className:E()(n||f,o,u,d),ref:t},i)))}),k1=x.forwardRef((e,t)=>{let{direction:n}=x.useContext(eW),[r,o]=x.useState([]),{prefixCls:a,className:i,rootClassName:l,children:c,hasSider:s,tagName:u,style:d}=e,f=iX(kZ(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:p,className:m,style:g}=eq("layout"),h=p("layout",a),v="boolean"==typeof s?s:!!r.length||j(c).some(e=>e.type===g9),[b,y,$]=g4(h),w=E()(h,{[`${h}-has-sider`]:v,[`${h}-rtl`]:"rtl"===n},m,i,l,y,$),C=x.useMemo(()=>({siderHook:{addSider:e=>{o(t=>[].concat((0,eM.A)(t),[e]))},removeSider:e=>{o(t=>t.filter(t=>t!==e))}}}),[]);return b(x.createElement(g0.Provider,{value:C},x.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},g),d)},f),c)))}),k2=kJ({tagName:"div",displayName:"Layout"})(k1),k4=kJ({suffixCls:"header",tagName:"header",displayName:"Header"})(k0),k3=kJ({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(k0),k6=kJ({suffixCls:"content",tagName:"main",displayName:"Content"})(k0);k2.Header=k4,k2.Footer=k3,k2.Content=k6,k2.Sider=g9,k2._InternalSiderContext=g8;let k5=k2,k8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var k7=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:k8}))});let k9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var Oe=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:k9}))});let Ot={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var On=[10,20,50,100];let Or=function(e){var t=e.pageSizeOptions,n=void 0===t?On:t,r=e.locale,o=e.changeSize,a=e.pageSize,i=e.goButton,l=e.quickGo,c=e.rootPrefixCls,s=e.disabled,u=e.buildOptionText,d=e.showSizeChanger,f=e.sizeChangerRender,p=w().useState(""),m=(0,eK.A)(p,2),g=m[0],h=m[1],v=function(){return!g||Number.isNaN(g)?void 0:Number(g)},b="function"==typeof u?u:function(e){return"".concat(e," ").concat(r.items_per_page)},y=function(e){""!==g&&(e.keyCode===aM.ENTER||"click"===e.type)&&(h(""),null==l||l(v()))},$="".concat(c,"-options");if(!d&&!l)return null;var x=null,C=null,E=null;return d&&f&&(x=f({disabled:s,size:a,onSizeChange:function(e){null==o||o(Number(e))},"aria-label":r.page_size,className:"".concat($,"-size-changer"),options:(n.some(function(e){return e.toString()===a.toString()})?n:n.concat([a]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:b(e),value:e}})})),l&&(i&&(E="boolean"==typeof i?w().createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:s,className:"".concat($,"-quick-jumper-button")},r.jump_to_confirm):w().createElement("span",{onClick:y,onKeyUp:y},i)),C=w().createElement("div",{className:"".concat($,"-quick-jumper")},r.jump_to,w().createElement("input",{disabled:s,type:"text",value:g,onChange:function(e){h(e.target.value)},onKeyUp:y,onBlur:function(e){i||""===g||(h(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(v()))},"aria-label":r.page}),r.page,E)),w().createElement("li",{className:$},x,C)},Oo=function(e){var t=e.rootPrefixCls,n=e.page,r=e.active,o=e.className,a=e.showTitle,i=e.onClick,l=e.onKeyPress,c=e.itemRender,s="".concat(t,"-item"),u=E()(s,"".concat(s,"-").concat(n),(0,eX.A)((0,eX.A)({},"".concat(s,"-active"),r),"".concat(s,"-disabled"),!n),o),d=c(n,"page",w().createElement("a",{rel:"nofollow"},n));return d?w().createElement("li",{title:a?String(n):null,className:u,onClick:function(){i(n)},onKeyDown:function(e){l(e,i,n)},tabIndex:0},d):null};var Oa=function(e,t,n){return n};function Oi(){}function Ol(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Oc(e,t,n){return Math.floor((n-1)/(void 0===e?t:e))+1}let Os=function(e){var t,n,r,o,a=e.prefixCls,i=void 0===a?"rc-pagination":a,l=e.selectPrefixCls,c=e.className,s=e.current,u=e.defaultCurrent,d=e.total,f=void 0===d?0:d,p=e.pageSize,m=e.defaultPageSize,g=e.onChange,h=void 0===g?Oi:g,v=e.hideOnSinglePage,b=e.align,y=e.showPrevNextJumpers,$=e.showQuickJumper,C=e.showLessItems,O=e.showTitle,A=void 0===O||O,I=e.onShowSizeChange,N=void 0===I?Oi:I,j=e.locale,M=void 0===j?Ot:j,R=e.style,P=e.totalBoundaryShowSizeChanger,T=e.disabled,z=e.simple,B=e.showTotal,H=e.showSizeChanger,L=void 0===H?f>(void 0===P?50:P):H,F=e.sizeChangerRender,W=e.pageSizeOptions,_=e.itemRender,V=void 0===_?Oa:_,q=e.jumpPrevIcon,K=e.jumpNextIcon,X=e.prevIcon,G=e.nextIcon,Y=w().useRef(null),U=ny(10,{value:p,defaultValue:void 0===m?10:m}),Q=(0,eK.A)(U,2),Z=Q[0],J=Q[1],ee=ny(1,{value:s,defaultValue:void 0===u?1:u,postState:function(e){return Math.max(1,Math.min(e,Oc(void 0,Z,f)))}}),et=(0,eK.A)(ee,2),en=et[0],er=et[1],eo=w().useState(en),ea=(0,eK.A)(eo,2),ei=ea[0],el=ea[1];(0,x.useEffect)(function(){el(en)},[en]);var ec=Math.max(1,en-(C?3:5)),es=Math.min(Oc(void 0,Z,f),en+(C?3:5));function eu(t,n){var r=t||w().createElement("button",{type:"button","aria-label":n,className:"".concat(i,"-item-link")});return"function"==typeof t&&(r=w().createElement(t,(0,D.A)({},e))),r}function ed(e){var t=e.target.value,n=Oc(void 0,Z,f);return""===t?t:Number.isNaN(Number(t))?ei:t>=n?n:Number(t)}var ef=f>Z&&$;function ep(e){var t=ed(e);switch(t!==ei&&el(t),e.keyCode){case aM.ENTER:em(t);break;case aM.UP:em(t-1);break;case aM.DOWN:em(t+1)}}function em(e){if(Ol(e)&&e!==en&&Ol(f)&&f>0&&!T){var t=Oc(void 0,Z,f),n=e;return e>t?n=t:e<1&&(n=1),n!==ei&&el(n),er(n),null==h||h(n,Z),n}return en}var eg=en>1,eh=en<Oc(void 0,Z,f);function ev(){eg&&em(en-1)}function eb(){eh&&em(en+1)}function ey(){em(ec)}function e$(){em(es)}function ex(e,t){if("Enter"===e.key||e.charCode===aM.ENTER||e.keyCode===aM.ENTER){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function ew(e){("click"===e.type||e.keyCode===aM.ENTER)&&em(ei)}var eC=null,eE=o5(e,{aria:!0,data:!0}),eS=B&&w().createElement("li",{className:"".concat(i,"-total-text")},B(f,[0===f?0:(en-1)*Z+1,en*Z>f?f:en*Z])),ek=null,eO=Oc(void 0,Z,f);if(v&&f<=Z)return null;var eA=[],eI={rootPrefixCls:i,onClick:em,onKeyPress:ex,showTitle:A,itemRender:V,page:-1},eN=en-1>0?en-1:0,ej=en+1<eO?en+1:eO,eM=$&&$.goButton,eR="object"===(0,k.A)(z)?z.readOnly:!z,eP=eM,eT=null;z&&(eM&&(eP="boolean"==typeof eM?w().createElement("button",{type:"button",onClick:ew,onKeyUp:ew},M.jump_to_confirm):w().createElement("span",{onClick:ew,onKeyUp:ew},eM),eP=w().createElement("li",{title:A?"".concat(M.jump_to).concat(en,"/").concat(eO):null,className:"".concat(i,"-simple-pager")},eP)),eT=w().createElement("li",{title:A?"".concat(en,"/").concat(eO):null,className:"".concat(i,"-simple-pager")},eR?ei:w().createElement("input",{type:"text","aria-label":M.jump_to,value:ei,disabled:T,onKeyDown:function(e){(e.keyCode===aM.UP||e.keyCode===aM.DOWN)&&e.preventDefault()},onKeyUp:ep,onChange:ep,onBlur:function(e){em(ed(e))},size:3}),w().createElement("span",{className:"".concat(i,"-slash")},"/"),eO));var ez=C?1:2;if(eO<=3+2*ez){eO||eA.push(w().createElement(Oo,S({},eI,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var eB=1;eB<=eO;eB+=1)eA.push(w().createElement(Oo,S({},eI,{key:eB,page:eB,active:en===eB})))}else{var eD=C?M.prev_3:M.prev_5,eH=C?M.next_3:M.next_5,eL=V(ec,"jump-prev",eu(q,"prev page")),eF=V(es,"jump-next",eu(K,"next page"));(void 0===y||y)&&(eC=eL?w().createElement("li",{title:A?eD:null,key:"prev",onClick:ey,tabIndex:0,onKeyDown:function(e){ex(e,ey)},className:E()("".concat(i,"-jump-prev"),(0,eX.A)({},"".concat(i,"-jump-prev-custom-icon"),!!q))},eL):null,ek=eF?w().createElement("li",{title:A?eH:null,key:"next",onClick:e$,tabIndex:0,onKeyDown:function(e){ex(e,e$)},className:E()("".concat(i,"-jump-next"),(0,eX.A)({},"".concat(i,"-jump-next-custom-icon"),!!K))},eF):null);var eW=Math.max(1,en-ez),e_=Math.min(en+ez,eO);en-1<=ez&&(e_=1+2*ez),eO-en<=ez&&(eW=eO-2*ez);for(var eV=eW;eV<=e_;eV+=1)eA.push(w().createElement(Oo,S({},eI,{key:eV,page:eV,active:en===eV})));if(en-1>=2*ez&&3!==en&&(eA[0]=w().cloneElement(eA[0],{className:E()("".concat(i,"-item-after-jump-prev"),eA[0].props.className)}),eA.unshift(eC)),eO-en>=2*ez&&en!==eO-2){var eq=eA[eA.length-1];eA[eA.length-1]=w().cloneElement(eq,{className:E()("".concat(i,"-item-before-jump-next"),eq.props.className)}),eA.push(ek)}1!==eW&&eA.unshift(w().createElement(Oo,S({},eI,{key:1,page:1}))),e_!==eO&&eA.push(w().createElement(Oo,S({},eI,{key:eO,page:eO})))}var eG=(t=V(eN,"prev",eu(X,"prev page")),w().isValidElement(t)?w().cloneElement(t,{disabled:!eg}):t);if(eG){var eY=!eg||!eO;eG=w().createElement("li",{title:A?M.prev_page:null,onClick:ev,tabIndex:eY?null:0,onKeyDown:function(e){ex(e,ev)},className:E()("".concat(i,"-prev"),(0,eX.A)({},"".concat(i,"-disabled"),eY)),"aria-disabled":eY},eG)}var eU=(n=V(ej,"next",eu(G,"next page")),w().isValidElement(n)?w().cloneElement(n,{disabled:!eh}):n);eU&&(z?(r=!eh,o=eg?0:null):o=(r=!eh||!eO)?null:0,eU=w().createElement("li",{title:A?M.next_page:null,onClick:eb,tabIndex:o,onKeyDown:function(e){ex(e,eb)},className:E()("".concat(i,"-next"),(0,eX.A)({},"".concat(i,"-disabled"),r)),"aria-disabled":r},eU));var eQ=E()(i,c,(0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)((0,eX.A)({},"".concat(i,"-start"),"start"===b),"".concat(i,"-center"),"center"===b),"".concat(i,"-end"),"end"===b),"".concat(i,"-simple"),z),"".concat(i,"-disabled"),T));return w().createElement("ul",S({className:eQ,style:R,ref:Y},eE),eS,eG,z?eT:eA,eU,w().createElement(Or,{locale:M,rootPrefixCls:i,disabled:T,selectPrefixCls:void 0===l?"rc-select":l,changeSize:function(e){var t=Oc(e,Z,f),n=en>t&&0!==t?t:en;J(e),el(n),null==N||N(en,e),er(n),null==h||h(n,e)},pageSize:Z,pageSizeOptions:W,quickGo:ef?em:null,goButton:eP,showSizeChanger:L,sizeChangerRender:F}))},Ou=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},bY(e)),Od=e=>nR(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},bG(e)),Of=rK("Pagination",e=>{let t=Od(e);return[(e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nF(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:tg(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),(e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:tg(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${tg(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${tg(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}})(e)),(e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
@@ -374,7 +374,7 @@
374
374
  `]:{padding:`${tg(o)} ${tg(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:tg(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${tg(r(o).mul(-1).equal())} ${tg(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:tg(r(o).mul(-1).equal()),marginInline:`${tg(r(n).sub(a).equal())} ${tg(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:tg(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}})(T),(e=>{let{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}})(T),(e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,l=`${tg(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
375
375
  & > ${t}-row,
376
376
  & > div:not(${t}-row) > ${t}-row
377
- `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${tg(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}})(T)]},e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:$,opacityLoading:x,controlInteractiveSize:w}=e,C=new n4(o).onBackground(n).toHexString(),E=new n4(a).onBackground(n).toHexString(),S=new n4(t).onBackground(n).toHexString(),k=new n4(y),O=new n4($),A=w/2-b,I=2*A+3*b;return{headerBg:S,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:E,bodySortBg:S,rowHoverBg:S,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:S,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:k.clone().setA(k.a*x).toRgbString(),headerIconHoverColor:O.clone().setA(O.a*x).toRgbString(),expandIconHalfInner:A,expandIconSize:I,expandIconScale:w/I}},{unitless:{expandIconScale:!0}}),MB=[],MD=x.forwardRef((e,t)=>{var n,r,o;let a,i,{prefixCls:l,className:c,rootClassName:s,style:u,size:d,bordered:f,dropdownPrefixCls:p,dataSource:m,pagination:g,rowSelection:h,rowKey:v="key",rowClassName:b,columns:y,children:$,childrenColumnName:w,onChange:C,getPopupContainer:S,loading:k,expandIcon:O,expandable:A,expandedRowRender:I,expandIconColumnIndex:N,indentSize:j,scroll:M,sortDirections:R,locale:P,showSorterTooltip:T={target:"full-header"},virtual:z}=e;aj("Table");let B=x.useMemo(()=>y||NK($),[y,$]),D=p_(x.useMemo(()=>B.some(e=>e.responsive),[B])),H=x.useMemo(()=>{let e=new Set(Object.keys(D).filter(e=>D[e]));return B.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[B,D]),L=iX(e,["className","style","columns"]),{locale:F=io,direction:W,table:_,renderEmpty:V,getPrefixCls:q,getPopupContainer:K}=x.useContext(eW),X=i1(d),G=Object.assign(Object.assign({},F.Table),P),Y=m||MB,U=q("table",l),Q=q("dropdown",p),[,Z]=rq(),J=a$(U),[ee,et,en]=Mz(U,J),er=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:N},A),{expandIcon:null!=(n=null==A?void 0:A.expandIcon)?n:null==(r=null==_?void 0:_.expandable)?void 0:r.expandIcon}),{childrenColumnName:eo="children"}=er,ea=x.useMemo(()=>Y.some(e=>null==e?void 0:e[eo])?"nest":I||(null==A?void 0:A.expandedRowRender)?"row":null,[Y]),ei={body:x.useRef(null)},el=(e,t)=>{let n=e.querySelector(`.${U}-container`),r=t;if(n){let e=getComputedStyle(n);r=t-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return r},ec=x.useRef(null),es=x.useRef(null);(0,x.useImperativeHandle)(t,()=>{let e=(()=>Object.assign(Object.assign({},es.current),{nativeElement:ec.current}))(),{nativeElement:t}=e;return"u">typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(t._antProxy=t._antProxy||{},Object.keys(e).forEach(n=>{if(!(n in t._antProxy)){let r=t[n];t._antProxy[n]=r,t[n]=e[n]}}),t)});let eu=x.useMemo(()=>"function"==typeof v?v:e=>null==e?void 0:e[v],[v]),[ed]=(a=x.useRef({}),[function(e){var t;if(!a.current||a.current.data!==Y||a.current.childrenColumnName!==eo||a.current.getRowKey!==eu){let e=new Map;!function t(n){n.forEach((n,r)=>{let o=eu(n,r);e.set(o,n),n&&"object"==typeof n&&eo in n&&t(n[eo]||[])})}(Y),a.current={data:Y,childrenColumnName:eo,kvMap:e,getRowKey:eu}}return null==(t=a.current.kvMap)?void 0:t.get(e)}]),ef={},ep=(e,t,n=!1)=>{var r,o,a,i;let l=Object.assign(Object.assign({},ef),e);n&&(null==(r=ef.resetPagination)||r.call(ef),(null==(o=l.pagination)?void 0:o.current)&&(l.pagination.current=1),g&&(null==(a=g.onChange)||a.call(g,1,null==(i=l.pagination)?void 0:i.pageSize))),M&&!1!==M.scrollToFirstRowOnChange&&ei.body.current&&ay(0,{getContainer:()=>ei.body.current}),null==C||C(l.pagination,l.filters,l.sorter,{currentDataSource:Mg(Mj(Y,l.sorterStates,eo),l.filterStates,eo),action:t})},[em,eg,eh,ev]=(e=>{let{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:i}=e,[l,c]=x.useState(()=>MO(n,!0)),s=(e,t)=>{let n=[];return e.forEach((e,r)=>{let o=jS(r,t);if(n.push(jE(e,o)),Array.isArray(e.children)){let t=s(e.children,o);n.push.apply(n,(0,eM.A)(t))}}),n},u=x.useMemo(()=>{let e=!0,t=MO(n,!1);if(!t.length){let e=s(n);return l.filter(({key:t})=>e.includes(t))}let r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let a=null;return t.forEach(t=>{null===a?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),o(t))}),r},[n,l]),d=x.useMemo(()=>{var e,t;let n=u.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:null==(e=n[0])?void 0:e.column,sortOrder:null==(t=n[0])?void 0:t.order}},[u]),f=e=>{let t;c(t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat((0,eM.A)(u.filter(({key:t})=>t!==e.key)),[e]):[e]),i(MN(t),t)};return[e=>MA(t,e,u,f,r,o,a),u,d,()=>MN(u)]})({prefixCls:U,mergedColumns:H,onSorterChange:(e,t)=>{ep({sorter:e,sorterStates:t},"sort",!1)},sortDirections:R||["ascend","descend"],tableLocale:G,showSorterTooltip:T}),eb=x.useMemo(()=>Mj(Y,eg,eo),[Y,eg]);ef.sorter=ev(),ef.sorterStates=eg;let[ey,e$,ex]=(e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:i,rootClassName:l}=e;aj("Table");let c=x.useMemo(()=>Mh(r||[]),[r]),[s,u]=x.useState(()=>Mp(c,!0)),d=x.useMemo(()=>{let e=Mp(c,!1);if(0===e.length)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e&&(t=!1)}),t){let e=(c||[]).map((e,t)=>jE(e,jS(t)));return s.filter(({key:t})=>e.includes(t)).map(t=>{let n=c[e.indexOf(t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[c,s]),f=x.useMemo(()=>Mm(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),o(Mm(t),t)};return[e=>(function e(t,n,r,o,a,i,l,c,s){return r.map((r,u)=>{let d=jS(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=r,h=r;if(h.filters||h.filterDropdown){let e=jE(h,d),c=o.find(({key:t})=>e===t);h=Object.assign(Object.assign({},h),{title:o=>x.createElement(Mf,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:a,getPopupContainer:l,rootClassName:s},jk(r.title,o))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,o,a,i,l,d,s)})),h})})(t,n,e,d,i,p,a,void 0,l),d,f]})({prefixCls:U,locale:G,dropdownPrefixCls:Q,mergedColumns:H,onFilterChange:(e,t)=>{ep({filters:e,filterStates:t},"filter",!0)},getPopupContainer:S||K,rootClassName:E()(s,J)}),ew=Mg(eb,e$,eo);ef.filters=ex,ef.filterStates=e$;let[eC]=(o=x.useMemo(()=>{let e={};return Object.keys(ex).forEach(t=>{null!==ex[t]&&(e[t]=ex[t])}),Object.assign(Object.assign({},eh),{filters:e})},[eh,ex]),[x.useCallback(e=>MM(e,o),[o])]),[eE,eS]=Mb(ew.length,(e,t)=>{ep({pagination:Object.assign(Object.assign({},ef.pagination),{current:e,pageSize:t})},"paginate")},g);ef.pagination=!1===g?{}:(i={current:eE.current,pageSize:eE.pageSize},Object.keys(g&&"object"==typeof g?g:{}).forEach(e=>{let t=eE[e];"function"!=typeof t&&(i[e]=t)}),i),ef.resetPagination=eS;let ek=x.useMemo(()=>{if(!1===g||!eE.pageSize)return ew;let{current:e=1,total:t,pageSize:n=10}=eE;return ew.length<t?ew.length>n?ew.slice((e-1)*n,e*n):ew:ew.slice((e-1)*n,e*n)},[!!g,ew,null==eE?void 0:eE.current,null==eE?void 0:eE.pageSize,null==eE?void 0:eE.total]),[eO,eA]=((e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,getTitleCheckboxProps:i,onChange:l,onSelect:c,onSelectAll:s,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:g,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:$,data:w,pageData:C,getRecordByKey:S,getRowKey:k,expandType:O,childrenColumnName:A,locale:I,getPopupContainer:N}=e,j=aj("Table"),[M,R]=jv(e=>e),[P,T]=ny(r||o||jw,{value:r}),z=x.useRef(new Map),B=(0,x.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=S(e);!n&&z.current.has(e)&&(n=z.current.get(e)),t.set(e,n)}),z.current=t}},[S,n]);x.useEffect(()=>{B(P)},[P]);let D=(0,x.useMemo)(()=>jC(A,C),[A,C]),{keyEntities:H}=(0,x.useMemo)(()=>{if(y)return{keyEntities:null};let e=w;if(n){let t=new Set(D.map((e,t)=>k(e,t))),n=Array.from(z.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat((0,eM.A)(e),(0,eM.A)(n))}return $J(e,{externalGetKey:k,childrenPropName:A})},[w,k,y,A,n,D]),L=(0,x.useMemo)(()=>{let e=new Map;return D.forEach((t,n)=>{let r=k(t,n),o=(a?a(t):null)||{};e.set(r,o)}),e},[D,k,a]),F=(0,x.useCallback)(e=>{let t,n=k(e);return!!(null==(t=L.has(n)?L.get(k(e)):a?a(e):void 0)?void 0:t.disabled)},[L,k]),[W,_]=(0,x.useMemo)(()=>{if(y)return[P||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=$5(P,!0,H,F);return[e||[],t]},[P,y,H,F]),V=(0,x.useMemo)(()=>new Set("radio"===m?W.slice(0,1):W),[W,m]),q=(0,x.useMemo)(()=>"radio"===m?new Set:new Set(_),[_,m]);x.useEffect(()=>{t||T(jw)},[!!t]);let K=(0,x.useCallback)((e,t)=>{let r,o;B(e),n?(r=e,o=e.map(e=>z.current.get(e))):(r=[],o=[],e.forEach(e=>{let t=S(e);void 0!==t&&(r.push(e),o.push(t))})),T(r),null==l||l(r,o,{type:t})},[T,S,l,n]),X=(0,x.useCallback)((e,t,n,r)=>{if(c){let o=n.map(e=>S(e));c(S(e),t,o,r)}K(n,"single")},[c,S,K]),G=(0,x.useMemo)(()=>!g||b?null:(!0===g?[jy,j$,jx]:g).map(e=>e===jy?{key:"all",text:I.selectionAll,onSelect(){K(w.map((e,t)=>k(e,t)).filter(e=>{let t=L.get(e);return!(null==t?void 0:t.disabled)||V.has(e)}),"all")}}:e===j$?{key:"invert",text:I.selectInvert,onSelect(){let e=new Set(V);C.forEach((t,n)=>{let r=k(t,n),o=L.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,"onSelectInvert","onChange"),u(t)),K(t,"invert")}}:e===jx?{key:"none",text:I.selectNone,onSelect(){null==d||d(),K(Array.from(V).filter(e=>{let t=L.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var n;null==(n=e.onSelect)||n.call.apply(n,[e].concat(t)),R(null)}})),[g,V,C,k,u,K]);return[(0,x.useCallback)(e=>{var n;let r,o,a;if(!t)return e.filter(e=>e!==jb);let l=(0,eM.A)(e),c=new Set(V),u=D.map(k).filter(e=>!L.get(e).disabled),d=u.every(e=>c.has(e)),w=u.some(e=>c.has(e));if("radio"!==m){let e;if(G){let t={getPopupContainer:N,items:G.map((e,t)=>{let{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(u)},label:r}})};e=x.createElement("div",{className:`${$}-selection-extra`},x.createElement(E4,{menu:t,getPopupContainer:N},x.createElement("span",null,x.createElement(px,null))))}let t=D.map((e,t)=>{let n=k(e,t),r=L.get(n)||{};return Object.assign({checked:c.has(n)},r)}).filter(({disabled:e})=>e),n=!!t.length&&t.length===D.length,a=n&&t.every(({checked:e})=>e),l=n&&t.some(({checked:e})=>e),f=(null==i?void 0:i())||{},{onChange:p,disabled:m}=f;o=x.createElement(xM,Object.assign({"aria-label":e?"Custom selection":"Select all"},f,{checked:n?a:!!D.length&&d,indeterminate:n?!a&&l:!d&&w,onChange:e=>{let t,n;t=[],d?u.forEach(e=>{c.delete(e),t.push(e)}):u.forEach(e=>{c.has(e)||(c.add(e),t.push(e))}),n=Array.from(c),null==s||s(!d,n.map(e=>S(e)),t.map(e=>S(e))),K(n,"all"),R(null),null==p||p(e)},disabled:null!=m?m:0===D.length||n,skipGroup:!0})),r=!b&&x.createElement("div",{className:`${$}-selection`},o,e)}if(a="radio"===m?(e,t,n)=>{let r=k(t,n),o=c.has(r),a=L.get(r);return{node:x.createElement(Is,Object.assign({},a,{checked:o,onClick:e=>{var t;e.stopPropagation(),null==(t=null==a?void 0:a.onClick)||t.call(a,e)},onChange:e=>{var t;c.has(r)||X(r,!0,[r],e.nativeEvent),null==(t=null==a?void 0:a.onChange)||t.call(a,e)}})),checked:o}}:(e,t,n)=>{var r;let o,a=k(t,n),i=c.has(a),l=q.has(a),s=L.get(a);return o="nest"===O?l:null!=(r=null==s?void 0:s.indeterminate)?r:l,{node:x.createElement(xM,Object.assign({},s,{indeterminate:o,checked:i,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null==(t=null==s?void 0:s.onClick)||t.call(s,e)},onChange:e=>{var t;let{nativeEvent:n}=e,{shiftKey:r}=n,o=u.indexOf(a),l=W.some(e=>u.includes(e));if(r&&y&&l){let e=M(o,u,c),t=Array.from(c);null==f||f(!i,t.map(e=>S(e)),e.map(e=>S(e))),K(t,"multiple")}else if(y){let e=i?ju(W,a):jd(W,a);X(a,!i,e,n)}else{let{checkedKeys:e,halfCheckedKeys:t}=$5([].concat((0,eM.A)(W),[a]),!0,H,F),r=e;if(i){let n=new Set(e);n.delete(a),r=$5(Array.from(n),{checked:!1,halfCheckedKeys:t},H,F).checkedKeys}X(a,!i,r,n)}i?R(null):R(o),null==(t=null==s?void 0:s.onChange)||t.call(s,e)}})),checked:i}},!l.includes(jb))if(0===l.findIndex(e=>{var t;return(null==(t=e[NT])?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=l;l=[e,jb].concat((0,eM.A)(t))}else l=[jb].concat((0,eM.A)(l));let C=l.indexOf(jb),A=(l=l.filter((e,t)=>e!==jb||t===C))[C-1],I=l[C+1],j=h;void 0===j&&((null==I?void 0:I.fixed)!==void 0?j=I.fixed:(null==A?void 0:A.fixed)!==void 0&&(j=A.fixed)),j&&A&&(null==(n=A[NT])?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===A.fixed&&(A.fixed=j);let P=E()(`${$}-selection-col`,{[`${$}-selection-col-with-dropdown`]:g&&"checkbox"===m}),T={fixed:j,width:p,className:`${$}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(o):t.columnTitle:r,render:(e,t,n)=>{let{node:r,checked:o}=a(e,t,n);return v?v(o,t,n,r):r},onCell:t.onCell,align:t.align,[NT]:{className:P}};return l.map(e=>e===jb?T:e)},[k,D,t,W,V,q,p,G,O,L,f,X,F]),V]})({prefixCls:U,data:ew,pageData:ek,getRowKey:eu,getRecordByKey:ed,expandType:ea,childrenColumnName:eo,locale:G,getPopupContainer:S||K},h);er.__PARENT_RENDER_ICON__=er.expandIcon,er.expandIcon=er.expandIcon||O||(e=>{let{prefixCls:t,onExpand:n,record:r,expanded:o,expandable:a}=e,i=`${t}-row-expand-icon`;return x.createElement("button",{type:"button",onClick:e=>{n(r,e),e.stopPropagation()},className:E()(i,{[`${i}-spaced`]:!a,[`${i}-expanded`]:a&&o,[`${i}-collapsed`]:a&&!o}),"aria-label":o?G.collapse:G.expand,"aria-expanded":o})}),"nest"===ea&&void 0===er.expandIconColumnIndex?er.expandIconColumnIndex=+!!h:er.expandIconColumnIndex>0&&h&&(er.expandIconColumnIndex-=1),"number"!=typeof er.indentSize&&(er.indentSize="number"==typeof j?j:15);let eI=x.useCallback(e=>eC(eO(ey(em(e)))),[em,ey,eO]),eN=x.useMemo(()=>"boolean"==typeof k?{spinning:k}:"object"==typeof k&&null!==k?Object.assign({spinning:!0},k):void 0,[k]),ej=E()(en,J,`${U}-wrapper`,null==_?void 0:_.className,{[`${U}-wrapper-rtl`]:"rtl"===W},c,s,et),eR=Object.assign(Object.assign({},null==_?void 0:_.style),u),eP=x.useMemo(()=>(null==eN?void 0:eN.spinning)&&Y===MB?null:void 0!==(null==P?void 0:P.emptyText)?P.emptyText:(null==V?void 0:V("Table"))||x.createElement(fJ,{componentName:"Table"}),[null==eN?void 0:eN.spinning,Y,null==P?void 0:P.emptyText,V]),eT={},ez=x.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:o,paddingSM:a}=Z,i=Math.floor(e*t);switch(X){case"middle":return 2*a+i+n;case"small":return 2*o+i+n;default:return 2*r+i+n}},[Z,X]);z&&(eT.listItemHeight=ez);let{top:eB,bottom:eD}=(()=>{if(!1===g||!(null==eE?void 0:eE.total))return{};let e=e=>x.createElement(Oh,Object.assign({},eE,{align:eE.align||("left"===e?"start":"right"===e?"end":e),className:E()(`${U}-pagination`,eE.className),size:eE.size||("small"===X||"middle"===X?"small":void 0)})),t="rtl"===W?"left":"right",n=eE.position;if(null===n||!Array.isArray(n))return{bottom:e(t)};let r=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("top")),o=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("bottom")),a=n.every(e=>"none"==`${e}`),i=r?r.toLowerCase().replace("top",""):"",l=o?o.toLowerCase().replace("bottom",""):"",c=!r&&!o&&!a;return{top:i?e(i):void 0,bottom:l?e(l):c?e(t):void 0}})();return ee(x.createElement("div",{ref:ec,className:ej,style:eR},x.createElement(OA,Object.assign({spinning:!1},eN),eB,x.createElement(z?MP:MR,Object.assign({},eT,L,{ref:es,columns:H,direction:W,expandable:er,prefixCls:U,className:E()({[`${U}-middle`]:"middle"===X,[`${U}-small`]:"small"===X,[`${U}-bordered`]:f,[`${U}-empty`]:0===Y.length},en,J,et),data:ek,rowKey:eu,rowClassName:(e,t,n)=>{let r;return r="function"==typeof b?E()(b(e,t,n)):E()(b),E()({[`${U}-row-selected`]:eA.has(eu(e,t))},r)},emptyText:eP,internalHooks:Nn,internalRefs:ei,transformColumns:eI,getContainerWidth:el,measureRowRender:e=>x.createElement(iO,{getPopupContainer:e=>e},e)})),eD)))}),MH=x.forwardRef((e,t)=>{let n=x.useRef(0);return n.current+=1,x.createElement(MD,Object.assign({},e,{ref:t,_renderTimes:n.current}))});MH.SELECTION_COLUMN=jb,MH.EXPAND_COLUMN=Nt,MH.SELECTION_ALL=jy,MH.SELECTION_INVERT=j$,MH.SELECTION_NONE=jx,MH.Column=e=>null,MH.ColumnGroup=e=>null,MH.Summary=Ny;let ML=MH,MF=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return nR(e,{tagFontSize:o,tagLineHeight:tg(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},MW=e=>({defaultBg:new n4(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),M_=rK("Tag",e=>(e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),l=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},nF(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${tg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(MF(e)),MW);var MV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Mq=x.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:o,checked:a,children:i,icon:l,onChange:c,onClick:s}=e,u=MV(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:d,tag:f}=x.useContext(eW),p=d("tag",n),[m,g,h]=M_(p),v=E()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},null==f?void 0:f.className,o,g,h);return m(x.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),null==f?void 0:f.style),className:v,onClick:e=>{null==c||c(!a),null==s||s(e)}}),l,x.createElement("span",null,i)))}),MK=rG(["Tag","preset"],e=>{let t;return me(t=MF(e),(e,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${t.componentCls}${t.componentCls}-${e}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}))},MW),MX=(e,t,n)=>{let r="string"!=typeof n?n:n.charAt(0).toUpperCase()+n.slice(1);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},MG=rG(["Tag","status"],e=>{let t=MF(e);return[MX(t,"success","Success"),MX(t,"processing","Info"),MX(t,"error","Error"),MX(t,"warning","Warning")]},MW);var MY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let MU=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:l,color:c,onClose:s,bordered:u=!0,visible:d}=e,f=MY(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:g}=x.useContext(eW),[h,v]=x.useState(!0),b=iX(f,["closeIcon","closable"]);x.useEffect(()=>{void 0!==d&&v(d)},[d]);let y=ma(c),$=mo.includes(c),w=y||$,C=Object.assign(Object.assign({backgroundColor:c&&!w?c:void 0},null==g?void 0:g.style),a),S=p("tag",n),[k,O,A]=M_(S),I=E()(S,null==g?void 0:g.className,{[`${S}-${c}`]:w,[`${S}-has-color`]:c&&!w,[`${S}-hidden`]:!h,[`${S}-rtl`]:"rtl"===m,[`${S}-borderless`]:!u},r,o,O,A),N=e=>{e.stopPropagation(),null==s||s(e),e.defaultPrevented||v(!1)},[,j]=sJ(sU(e),sU(g),{closable:!1,closeIconRender:e=>{let t=x.createElement("span",{className:`${S}-close-icon`,onClick:N},e);return o7(e,t,e=>({onClick:t=>{var n;null==(n=null==e?void 0:e.onClick)||n.call(e,t),N(t)},className:E()(null==e?void 0:e.className,`${S}-close-icon`)}))}}),M="function"==typeof f.onClick||i&&"a"===i.type,R=l||null,P=R?x.createElement(x.Fragment,null,R,i&&x.createElement("span",null,i)):i,T=x.createElement("span",Object.assign({},b,{ref:t,className:I,style:C}),P,j,y&&x.createElement(MK,{key:"preset",prefixCls:S}),$&&x.createElement(MG,{key:"status",prefixCls:S}));return k(M?x.createElement(i0,{component:"Tag"},T):T)});MU.CheckableTag=Mq;let MQ=MU,MZ=(e,t)=>new n4(e).setA(t).toRgbString(),MJ=(e,t)=>new n4(e).lighten(t).toHexString(),M0=e=>{let t=n7(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},M1=(e,t)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:MZ(r,.85),colorTextSecondary:MZ(r,.65),colorTextTertiary:MZ(r,.45),colorTextQuaternary:MZ(r,.25),colorFill:MZ(r,.18),colorFillSecondary:MZ(r,.12),colorFillTertiary:MZ(r,.08),colorFillQuaternary:MZ(r,.04),colorBgSolid:MZ(r,.95),colorBgSolidHover:MZ(r,1),colorBgSolidActive:MZ(r,.9),colorBgElevated:MJ(n,12),colorBgContainer:MJ(n,8),colorBgLayout:MJ(n,0),colorBgSpotlight:MJ(n,26),colorBgBlur:MZ(r,.04),colorBorder:MJ(n,26),colorBorderSecondary:MJ(n,19)}},M2={defaultSeed:nQ.token,useToken:function(){let[e,t,n]=rq();return{theme:e,token:t,hashId:n}},defaultAlgorithm:rP,darkAlgorithm:(e,t)=>{let n=Object.keys(nY).map(t=>{let n=n7(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),r=null!=t?t:rP(e),o=rO(e,{generateColorPalettes:M0,generateNeutralColorPalettes:M1});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})},compactAlgorithm:(e,t)=>{let n=null!=t?t:rP(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),rI(r)),{controlHeight:o}),rA(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?tc(e.algorithm):rT;return tA(Object.assign(Object.assign({},nU),null==e?void 0:e.token),{override:null==e?void 0:e.token},t,rH)},defaultConfig:nQ,_internalContext:nZ};var M4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let{TimePicker:M3,RangePicker:M6}=Eg,M5=x.forwardRef((e,t)=>x.createElement(M6,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),M8=x.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:o,bordered:a}=e,i=M4(e,["addon","renderExtraFooter","variant","bordered"]);let[l]=f0("timePicker",o,a),c=x.useMemo(()=>r||n||void 0,[n,r]);return x.createElement(M3,Object.assign({},i,{mode:void 0,ref:t,renderExtraFooter:c,variant:l}))}),M7=df(M8,"popupAlign",void 0,"picker");M8._InternalPanelDoNotUseOrYouWillBeFired=M7,M8.RangePicker=M5,M8._InternalPanelDoNotUseOrYouWillBeFired=M7;let M9=M8,Re=rK("Timeline",e=>(e=>{let{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},nF(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${tg(e.itemHeadSize)})`,borderInlineStart:`${tg(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${tg(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,
377
+ `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${tg(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}})(T)]},e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:$,opacityLoading:x,controlInteractiveSize:w}=e,C=new n4(o).onBackground(n).toHexString(),E=new n4(a).onBackground(n).toHexString(),S=new n4(t).onBackground(n).toHexString(),k=new n4(y),O=new n4($),A=w/2-b,I=2*A+3*b;return{headerBg:S,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:E,bodySortBg:S,rowHoverBg:S,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:S,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:k.clone().setA(k.a*x).toRgbString(),headerIconHoverColor:O.clone().setA(O.a*x).toRgbString(),expandIconHalfInner:A,expandIconSize:I,expandIconScale:w/I}},{unitless:{expandIconScale:!0}}),MB=[],MD=x.forwardRef((e,t)=>{var n,r,o;let a,i,{prefixCls:l,className:c,rootClassName:s,style:u,size:d,bordered:f,dropdownPrefixCls:p,dataSource:m,pagination:g,rowSelection:h,rowKey:v="key",rowClassName:b,columns:y,children:$,childrenColumnName:w,onChange:C,getPopupContainer:S,loading:k,expandIcon:O,expandable:A,expandedRowRender:I,expandIconColumnIndex:N,indentSize:j,scroll:M,sortDirections:R,locale:P,showSorterTooltip:T={target:"full-header"},virtual:z}=e;aj();let B=x.useMemo(()=>y||NK($),[y,$]),D=p_(x.useMemo(()=>B.some(e=>e.responsive),[B])),H=x.useMemo(()=>{let e=new Set(Object.keys(D).filter(e=>D[e]));return B.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[B,D]),L=iX(e,["className","style","columns"]),{locale:F=io,direction:W,table:_,renderEmpty:V,getPrefixCls:q,getPopupContainer:K}=x.useContext(eW),X=i1(d),G=Object.assign(Object.assign({},F.Table),P),Y=m||MB,U=q("table",l),Q=q("dropdown",p),[,Z]=rq(),J=a$(U),[ee,et,en]=Mz(U,J),er=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:N},A),{expandIcon:null!=(n=null==A?void 0:A.expandIcon)?n:null==(r=null==_?void 0:_.expandable)?void 0:r.expandIcon}),{childrenColumnName:eo="children"}=er,ea=x.useMemo(()=>Y.some(e=>null==e?void 0:e[eo])?"nest":I||(null==A?void 0:A.expandedRowRender)?"row":null,[Y]),ei={body:x.useRef(null)},el=(e,t)=>{let n=e.querySelector(`.${U}-container`),r=t;if(n){let e=getComputedStyle(n);r=t-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return r},ec=x.useRef(null),es=x.useRef(null);(0,x.useImperativeHandle)(t,()=>{let e=(()=>Object.assign(Object.assign({},es.current),{nativeElement:ec.current}))(),{nativeElement:t}=e;return"u">typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(t._antProxy=t._antProxy||{},Object.keys(e).forEach(n=>{if(!(n in t._antProxy)){let r=t[n];t._antProxy[n]=r,t[n]=e[n]}}),t)});let eu=x.useMemo(()=>"function"==typeof v?v:e=>null==e?void 0:e[v],[v]),[ed]=(a=x.useRef({}),[function(e){var t;if(!a.current||a.current.data!==Y||a.current.childrenColumnName!==eo||a.current.getRowKey!==eu){let e=new Map;!function t(n){n.forEach((n,r)=>{let o=eu(n,r);e.set(o,n),n&&"object"==typeof n&&eo in n&&t(n[eo]||[])})}(Y),a.current={data:Y,childrenColumnName:eo,kvMap:e,getRowKey:eu}}return null==(t=a.current.kvMap)?void 0:t.get(e)}]),ef={},ep=(e,t,n=!1)=>{var r,o,a,i;let l=Object.assign(Object.assign({},ef),e);n&&(null==(r=ef.resetPagination)||r.call(ef),(null==(o=l.pagination)?void 0:o.current)&&(l.pagination.current=1),g&&(null==(a=g.onChange)||a.call(g,1,null==(i=l.pagination)?void 0:i.pageSize))),M&&!1!==M.scrollToFirstRowOnChange&&ei.body.current&&ay(0,{getContainer:()=>ei.body.current}),null==C||C(l.pagination,l.filters,l.sorter,{currentDataSource:Mg(Mj(Y,l.sorterStates,eo),l.filterStates,eo),action:t})},[em,eg,eh,ev]=(e=>{let{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:i}=e,[l,c]=x.useState(()=>MO(n,!0)),s=(e,t)=>{let n=[];return e.forEach((e,r)=>{let o=jS(r,t);if(n.push(jE(e,o)),Array.isArray(e.children)){let t=s(e.children,o);n.push.apply(n,(0,eM.A)(t))}}),n},u=x.useMemo(()=>{let e=!0,t=MO(n,!1);if(!t.length){let e=s(n);return l.filter(({key:t})=>e.includes(t))}let r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let a=null;return t.forEach(t=>{null===a?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),o(t))}),r},[n,l]),d=x.useMemo(()=>{var e,t;let n=u.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:null==(e=n[0])?void 0:e.column,sortOrder:null==(t=n[0])?void 0:t.order}},[u]),f=e=>{let t;c(t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat((0,eM.A)(u.filter(({key:t})=>t!==e.key)),[e]):[e]),i(MN(t),t)};return[e=>MA(t,e,u,f,r,o,a),u,d,()=>MN(u)]})({prefixCls:U,mergedColumns:H,onSorterChange:(e,t)=>{ep({sorter:e,sorterStates:t},"sort",!1)},sortDirections:R||["ascend","descend"],tableLocale:G,showSorterTooltip:T}),eb=x.useMemo(()=>Mj(Y,eg,eo),[Y,eg]);ef.sorter=ev(),ef.sorterStates=eg;let[ey,e$,ex]=(e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:i,rootClassName:l}=e;aj();let c=x.useMemo(()=>Mh(r||[]),[r]),[s,u]=x.useState(()=>Mp(c,!0)),d=x.useMemo(()=>{let e=Mp(c,!1);if(0===e.length)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e&&(t=!1)}),t){let e=(c||[]).map((e,t)=>jE(e,jS(t)));return s.filter(({key:t})=>e.includes(t)).map(t=>{let n=c[e.indexOf(t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[c,s]),f=x.useMemo(()=>Mm(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),o(Mm(t),t)};return[e=>(function e(t,n,r,o,a,i,l,c,s){return r.map((r,u)=>{let d=jS(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=r,h=r;if(h.filters||h.filterDropdown){let e=jE(h,d),c=o.find(({key:t})=>e===t);h=Object.assign(Object.assign({},h),{title:o=>x.createElement(Mf,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:a,getPopupContainer:l,rootClassName:s},jk(r.title,o))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,o,a,i,l,d,s)})),h})})(t,n,e,d,i,p,a,void 0,l),d,f]})({prefixCls:U,locale:G,dropdownPrefixCls:Q,mergedColumns:H,onFilterChange:(e,t)=>{ep({filters:e,filterStates:t},"filter",!0)},getPopupContainer:S||K,rootClassName:E()(s,J)}),ew=Mg(eb,e$,eo);ef.filters=ex,ef.filterStates=e$;let[eC]=(o=x.useMemo(()=>{let e={};return Object.keys(ex).forEach(t=>{null!==ex[t]&&(e[t]=ex[t])}),Object.assign(Object.assign({},eh),{filters:e})},[eh,ex]),[x.useCallback(e=>MM(e,o),[o])]),[eE,eS]=Mb(ew.length,(e,t)=>{ep({pagination:Object.assign(Object.assign({},ef.pagination),{current:e,pageSize:t})},"paginate")},g);ef.pagination=!1===g?{}:(i={current:eE.current,pageSize:eE.pageSize},Object.keys(g&&"object"==typeof g?g:{}).forEach(e=>{let t=eE[e];"function"!=typeof t&&(i[e]=t)}),i),ef.resetPagination=eS;let ek=x.useMemo(()=>{if(!1===g||!eE.pageSize)return ew;let{current:e=1,total:t,pageSize:n=10}=eE;return ew.length<t?ew.length>n?ew.slice((e-1)*n,e*n):ew:ew.slice((e-1)*n,e*n)},[!!g,ew,null==eE?void 0:eE.current,null==eE?void 0:eE.pageSize,null==eE?void 0:eE.total]),[eO,eA]=((e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,getTitleCheckboxProps:i,onChange:l,onSelect:c,onSelectAll:s,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:g,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:$,data:w,pageData:C,getRecordByKey:S,getRowKey:k,expandType:O,childrenColumnName:A,locale:I,getPopupContainer:N}=e,j=aj(),[M,R]=jv(e=>e),[P,T]=ny(r||o||jw,{value:r}),z=x.useRef(new Map),B=(0,x.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=S(e);!n&&z.current.has(e)&&(n=z.current.get(e)),t.set(e,n)}),z.current=t}},[S,n]);x.useEffect(()=>{B(P)},[P]);let D=(0,x.useMemo)(()=>jC(A,C),[A,C]),{keyEntities:H}=(0,x.useMemo)(()=>{if(y)return{keyEntities:null};let e=w;if(n){let t=new Set(D.map((e,t)=>k(e,t))),n=Array.from(z.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat((0,eM.A)(e),(0,eM.A)(n))}return $J(e,{externalGetKey:k,childrenPropName:A})},[w,k,y,A,n,D]),L=(0,x.useMemo)(()=>{let e=new Map;return D.forEach((t,n)=>{let r=k(t,n),o=(a?a(t):null)||{};e.set(r,o)}),e},[D,k,a]),F=(0,x.useCallback)(e=>{let t,n=k(e);return!!(null==(t=L.has(n)?L.get(k(e)):a?a(e):void 0)?void 0:t.disabled)},[L,k]),[W,_]=(0,x.useMemo)(()=>{if(y)return[P||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=$5(P,!0,H,F);return[e||[],t]},[P,y,H,F]),V=(0,x.useMemo)(()=>new Set("radio"===m?W.slice(0,1):W),[W,m]),q=(0,x.useMemo)(()=>"radio"===m?new Set:new Set(_),[_,m]);x.useEffect(()=>{t||T(jw)},[!!t]);let K=(0,x.useCallback)((e,t)=>{let r,o;B(e),n?(r=e,o=e.map(e=>z.current.get(e))):(r=[],o=[],e.forEach(e=>{let t=S(e);void 0!==t&&(r.push(e),o.push(t))})),T(r),null==l||l(r,o,{type:t})},[T,S,l,n]),X=(0,x.useCallback)((e,t,n,r)=>{if(c){let o=n.map(e=>S(e));c(S(e),t,o,r)}K(n,"single")},[c,S,K]),G=(0,x.useMemo)(()=>!g||b?null:(!0===g?[jy,j$,jx]:g).map(e=>e===jy?{key:"all",text:I.selectionAll,onSelect(){K(w.map((e,t)=>k(e,t)).filter(e=>{let t=L.get(e);return!(null==t?void 0:t.disabled)||V.has(e)}),"all")}}:e===j$?{key:"invert",text:I.selectInvert,onSelect(){let e=new Set(V);C.forEach((t,n)=>{let r=k(t,n),o=L.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,"onSelectInvert","onChange"),u(t)),K(t,"invert")}}:e===jx?{key:"none",text:I.selectNone,onSelect(){null==d||d(),K(Array.from(V).filter(e=>{let t=L.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var n;null==(n=e.onSelect)||n.call.apply(n,[e].concat(t)),R(null)}})),[g,V,C,k,u,K]);return[(0,x.useCallback)(e=>{var n;let r,o,a;if(!t)return e.filter(e=>e!==jb);let l=(0,eM.A)(e),c=new Set(V),u=D.map(k).filter(e=>!L.get(e).disabled),d=u.every(e=>c.has(e)),w=u.some(e=>c.has(e));if("radio"!==m){let e;if(G){let t={getPopupContainer:N,items:G.map((e,t)=>{let{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(u)},label:r}})};e=x.createElement("div",{className:`${$}-selection-extra`},x.createElement(E4,{menu:t,getPopupContainer:N},x.createElement("span",null,x.createElement(px,null))))}let t=D.map((e,t)=>{let n=k(e,t),r=L.get(n)||{};return Object.assign({checked:c.has(n)},r)}).filter(({disabled:e})=>e),n=!!t.length&&t.length===D.length,a=n&&t.every(({checked:e})=>e),l=n&&t.some(({checked:e})=>e),f=(null==i?void 0:i())||{},{onChange:p,disabled:m}=f;o=x.createElement(xM,Object.assign({"aria-label":e?"Custom selection":"Select all"},f,{checked:n?a:!!D.length&&d,indeterminate:n?!a&&l:!d&&w,onChange:e=>{let t,n;t=[],d?u.forEach(e=>{c.delete(e),t.push(e)}):u.forEach(e=>{c.has(e)||(c.add(e),t.push(e))}),n=Array.from(c),null==s||s(!d,n.map(e=>S(e)),t.map(e=>S(e))),K(n,"all"),R(null),null==p||p(e)},disabled:null!=m?m:0===D.length||n,skipGroup:!0})),r=!b&&x.createElement("div",{className:`${$}-selection`},o,e)}if(a="radio"===m?(e,t,n)=>{let r=k(t,n),o=c.has(r),a=L.get(r);return{node:x.createElement(Is,Object.assign({},a,{checked:o,onClick:e=>{var t;e.stopPropagation(),null==(t=null==a?void 0:a.onClick)||t.call(a,e)},onChange:e=>{var t;c.has(r)||X(r,!0,[r],e.nativeEvent),null==(t=null==a?void 0:a.onChange)||t.call(a,e)}})),checked:o}}:(e,t,n)=>{var r;let o,a=k(t,n),i=c.has(a),l=q.has(a),s=L.get(a);return o="nest"===O?l:null!=(r=null==s?void 0:s.indeterminate)?r:l,{node:x.createElement(xM,Object.assign({},s,{indeterminate:o,checked:i,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null==(t=null==s?void 0:s.onClick)||t.call(s,e)},onChange:e=>{var t;let{nativeEvent:n}=e,{shiftKey:r}=n,o=u.indexOf(a),l=W.some(e=>u.includes(e));if(r&&y&&l){let e=M(o,u,c),t=Array.from(c);null==f||f(!i,t.map(e=>S(e)),e.map(e=>S(e))),K(t,"multiple")}else if(y){let e=i?ju(W,a):jd(W,a);X(a,!i,e,n)}else{let{checkedKeys:e,halfCheckedKeys:t}=$5([].concat((0,eM.A)(W),[a]),!0,H,F),r=e;if(i){let n=new Set(e);n.delete(a),r=$5(Array.from(n),{checked:!1,halfCheckedKeys:t},H,F).checkedKeys}X(a,!i,r,n)}i?R(null):R(o),null==(t=null==s?void 0:s.onChange)||t.call(s,e)}})),checked:i}},!l.includes(jb))if(0===l.findIndex(e=>{var t;return(null==(t=e[NT])?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=l;l=[e,jb].concat((0,eM.A)(t))}else l=[jb].concat((0,eM.A)(l));let C=l.indexOf(jb),A=(l=l.filter((e,t)=>e!==jb||t===C))[C-1],I=l[C+1],j=h;void 0===j&&((null==I?void 0:I.fixed)!==void 0?j=I.fixed:(null==A?void 0:A.fixed)!==void 0&&(j=A.fixed)),j&&A&&(null==(n=A[NT])?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===A.fixed&&(A.fixed=j);let P=E()(`${$}-selection-col`,{[`${$}-selection-col-with-dropdown`]:g&&"checkbox"===m}),T={fixed:j,width:p,className:`${$}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(o):t.columnTitle:r,render:(e,t,n)=>{let{node:r,checked:o}=a(e,t,n);return v?v(o,t,n,r):r},onCell:t.onCell,align:t.align,[NT]:{className:P}};return l.map(e=>e===jb?T:e)},[k,D,t,W,V,q,p,G,O,L,f,X,F]),V]})({prefixCls:U,data:ew,pageData:ek,getRowKey:eu,getRecordByKey:ed,expandType:ea,childrenColumnName:eo,locale:G,getPopupContainer:S||K},h);er.__PARENT_RENDER_ICON__=er.expandIcon,er.expandIcon=er.expandIcon||O||(e=>{let{prefixCls:t,onExpand:n,record:r,expanded:o,expandable:a}=e,i=`${t}-row-expand-icon`;return x.createElement("button",{type:"button",onClick:e=>{n(r,e),e.stopPropagation()},className:E()(i,{[`${i}-spaced`]:!a,[`${i}-expanded`]:a&&o,[`${i}-collapsed`]:a&&!o}),"aria-label":o?G.collapse:G.expand,"aria-expanded":o})}),"nest"===ea&&void 0===er.expandIconColumnIndex?er.expandIconColumnIndex=+!!h:er.expandIconColumnIndex>0&&h&&(er.expandIconColumnIndex-=1),"number"!=typeof er.indentSize&&(er.indentSize="number"==typeof j?j:15);let eI=x.useCallback(e=>eC(eO(ey(em(e)))),[em,ey,eO]),eN=x.useMemo(()=>"boolean"==typeof k?{spinning:k}:"object"==typeof k&&null!==k?Object.assign({spinning:!0},k):void 0,[k]),ej=E()(en,J,`${U}-wrapper`,null==_?void 0:_.className,{[`${U}-wrapper-rtl`]:"rtl"===W},c,s,et),eR=Object.assign(Object.assign({},null==_?void 0:_.style),u),eP=x.useMemo(()=>(null==eN?void 0:eN.spinning)&&Y===MB?null:void 0!==(null==P?void 0:P.emptyText)?P.emptyText:(null==V?void 0:V("Table"))||x.createElement(fJ,{componentName:"Table"}),[null==eN?void 0:eN.spinning,Y,null==P?void 0:P.emptyText,V]),eT={},ez=x.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:o,paddingSM:a}=Z,i=Math.floor(e*t);switch(X){case"middle":return 2*a+i+n;case"small":return 2*o+i+n;default:return 2*r+i+n}},[Z,X]);z&&(eT.listItemHeight=ez);let{top:eB,bottom:eD}=(()=>{if(!1===g||!(null==eE?void 0:eE.total))return{};let e=e=>x.createElement(Oh,Object.assign({},eE,{align:eE.align||("left"===e?"start":"right"===e?"end":e),className:E()(`${U}-pagination`,eE.className),size:eE.size||("small"===X||"middle"===X?"small":void 0)})),t="rtl"===W?"left":"right",n=eE.position;if(null===n||!Array.isArray(n))return{bottom:e(t)};let r=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("top")),o=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("bottom")),a=n.every(e=>"none"==`${e}`),i=r?r.toLowerCase().replace("top",""):"",l=o?o.toLowerCase().replace("bottom",""):"",c=!r&&!o&&!a;return{top:i?e(i):void 0,bottom:l?e(l):c?e(t):void 0}})();return ee(x.createElement("div",{ref:ec,className:ej,style:eR},x.createElement(OA,Object.assign({spinning:!1},eN),eB,x.createElement(z?MP:MR,Object.assign({},eT,L,{ref:es,columns:H,direction:W,expandable:er,prefixCls:U,className:E()({[`${U}-middle`]:"middle"===X,[`${U}-small`]:"small"===X,[`${U}-bordered`]:f,[`${U}-empty`]:0===Y.length},en,J,et),data:ek,rowKey:eu,rowClassName:(e,t,n)=>{let r;return r="function"==typeof b?E()(b(e,t,n)):E()(b),E()({[`${U}-row-selected`]:eA.has(eu(e,t))},r)},emptyText:eP,internalHooks:Nn,internalRefs:ei,transformColumns:eI,getContainerWidth:el,measureRowRender:e=>x.createElement(iO,{getPopupContainer:e=>e},e)})),eD)))}),MH=x.forwardRef((e,t)=>{let n=x.useRef(0);return n.current+=1,x.createElement(MD,Object.assign({},e,{ref:t,_renderTimes:n.current}))});MH.SELECTION_COLUMN=jb,MH.EXPAND_COLUMN=Nt,MH.SELECTION_ALL=jy,MH.SELECTION_INVERT=j$,MH.SELECTION_NONE=jx,MH.Column=e=>null,MH.ColumnGroup=e=>null,MH.Summary=Ny;let ML=MH,MF=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return nR(e,{tagFontSize:o,tagLineHeight:tg(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},MW=e=>({defaultBg:new n4(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),M_=rK("Tag",e=>(e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),l=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},nF(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${tg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(MF(e)),MW);var MV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Mq=x.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:o,checked:a,children:i,icon:l,onChange:c,onClick:s}=e,u=MV(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:d,tag:f}=x.useContext(eW),p=d("tag",n),[m,g,h]=M_(p),v=E()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},null==f?void 0:f.className,o,g,h);return m(x.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),null==f?void 0:f.style),className:v,onClick:e=>{null==c||c(!a),null==s||s(e)}}),l,x.createElement("span",null,i)))}),MK=rG(["Tag","preset"],e=>{let t;return me(t=MF(e),(e,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${t.componentCls}${t.componentCls}-${e}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}))},MW),MX=(e,t,n)=>{let r="string"!=typeof n?n:n.charAt(0).toUpperCase()+n.slice(1);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},MG=rG(["Tag","status"],e=>{let t=MF(e);return[MX(t,"success","Success"),MX(t,"processing","Info"),MX(t,"error","Error"),MX(t,"warning","Warning")]},MW);var MY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let MU=x.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:l,color:c,onClose:s,bordered:u=!0,visible:d}=e,f=MY(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:g}=x.useContext(eW),[h,v]=x.useState(!0),b=iX(f,["closeIcon","closable"]);x.useEffect(()=>{void 0!==d&&v(d)},[d]);let y=ma(c),$=mo.includes(c),w=y||$,C=Object.assign(Object.assign({backgroundColor:c&&!w?c:void 0},null==g?void 0:g.style),a),S=p("tag",n),[k,O,A]=M_(S),I=E()(S,null==g?void 0:g.className,{[`${S}-${c}`]:w,[`${S}-has-color`]:c&&!w,[`${S}-hidden`]:!h,[`${S}-rtl`]:"rtl"===m,[`${S}-borderless`]:!u},r,o,O,A),N=e=>{e.stopPropagation(),null==s||s(e),e.defaultPrevented||v(!1)},[,j]=sJ(sU(e),sU(g),{closable:!1,closeIconRender:e=>{let t=x.createElement("span",{className:`${S}-close-icon`,onClick:N},e);return o7(e,t,e=>({onClick:t=>{var n;null==(n=null==e?void 0:e.onClick)||n.call(e,t),N(t)},className:E()(null==e?void 0:e.className,`${S}-close-icon`)}))}}),M="function"==typeof f.onClick||i&&"a"===i.type,R=l||null,P=R?x.createElement(x.Fragment,null,R,i&&x.createElement("span",null,i)):i,T=x.createElement("span",Object.assign({},b,{ref:t,className:I,style:C}),P,j,y&&x.createElement(MK,{key:"preset",prefixCls:S}),$&&x.createElement(MG,{key:"status",prefixCls:S}));return k(M?x.createElement(i0,{component:"Tag"},T):T)});MU.CheckableTag=Mq;let MQ=MU,MZ=(e,t)=>new n4(e).setA(t).toRgbString(),MJ=(e,t)=>new n4(e).lighten(t).toHexString(),M0=e=>{let t=n7(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},M1=(e,t)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:MZ(r,.85),colorTextSecondary:MZ(r,.65),colorTextTertiary:MZ(r,.45),colorTextQuaternary:MZ(r,.25),colorFill:MZ(r,.18),colorFillSecondary:MZ(r,.12),colorFillTertiary:MZ(r,.08),colorFillQuaternary:MZ(r,.04),colorBgSolid:MZ(r,.95),colorBgSolidHover:MZ(r,1),colorBgSolidActive:MZ(r,.9),colorBgElevated:MJ(n,12),colorBgContainer:MJ(n,8),colorBgLayout:MJ(n,0),colorBgSpotlight:MJ(n,26),colorBgBlur:MZ(r,.04),colorBorder:MJ(n,26),colorBorderSecondary:MJ(n,19)}},M2={defaultSeed:nQ.token,useToken:function(){let[e,t,n]=rq();return{theme:e,token:t,hashId:n}},defaultAlgorithm:rP,darkAlgorithm:(e,t)=>{let n=Object.keys(nY).map(t=>{let n=n7(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),r=null!=t?t:rP(e),o=rO(e,{generateColorPalettes:M0,generateNeutralColorPalettes:M1});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})},compactAlgorithm:(e,t)=>{let n=null!=t?t:rP(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),rI(r)),{controlHeight:o}),rA(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?tc(e.algorithm):rT;return tA(Object.assign(Object.assign({},nU),null==e?void 0:e.token),{override:null==e?void 0:e.token},t,rH)},defaultConfig:nQ,_internalContext:nZ};var M4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let{TimePicker:M3,RangePicker:M6}=Eg,M5=x.forwardRef((e,t)=>x.createElement(M6,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),M8=x.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:o,bordered:a}=e,i=M4(e,["addon","renderExtraFooter","variant","bordered"]);let[l]=f0("timePicker",o,a),c=x.useMemo(()=>r||n||void 0,[n,r]);return x.createElement(M3,Object.assign({},i,{mode:void 0,ref:t,renderExtraFooter:c,variant:l}))}),M7=df(M8,"popupAlign",void 0,"picker");M8._InternalPanelDoNotUseOrYouWillBeFired=M7,M8.RangePicker=M5,M8._InternalPanelDoNotUseOrYouWillBeFired=M7;let M9=M8,Re=rK("Timeline",e=>(e=>{let{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},nF(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${tg(e.itemHeadSize)})`,borderInlineStart:`${tg(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${tg(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,
378
378
  &${t}-right,
379
379
  &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${tg(e.marginXXS)})`,width:`calc(50% - ${tg(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${tg(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,
380
380
  ${t}-item-head,
@@ -382,7 +382,7 @@
382
382
  ${t}-item-last
383
383
  ${t}-item-tail`]:{display:"block",height:`calc(100% - ${tg(e.margin)})`,borderInlineStart:`${tg(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse
384
384
  ${t}-item-last
385
- ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${tg(e.margin)})`,borderInlineStart:`${tg(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${tg(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${tg(e.marginSM)})`,width:`calc(50% - ${tg(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}})(nR(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2})),e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding}));var Rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Rn=e=>{var{prefixCls:t,className:n,color:r="blue",dot:o,pending:a=!1,position:i,label:l,children:c}=e,s=Rt(e,["prefixCls","className","color","dot","pending","position","label","children"]);let{getPrefixCls:u}=x.useContext(eW),d=u("timeline",t),f=E()(`${d}-item`,{[`${d}-item-pending`]:a},n),p=/blue|red|green|gray/.test(r||"")?void 0:r,m=E()(`${d}-item-head`,{[`${d}-item-head-custom`]:!!o,[`${d}-item-head-${r}`]:!p});return x.createElement("li",Object.assign({},s,{className:f}),l&&x.createElement("div",{className:`${d}-item-label`},l),x.createElement("div",{className:`${d}-item-tail`}),x.createElement("div",{className:m,style:{borderColor:p,color:p}},o),x.createElement("div",{className:`${d}-item-content`},c))};var Rr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ro=e=>{var{prefixCls:t,className:n,pending:r=!1,children:o,items:a,rootClassName:i,reverse:l=!1,direction:c,hashId:s,pendingDot:u,mode:d=""}=e,f=Rr(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);let p=(0,eM.A)(a||[]),m="boolean"==typeof r?null:r;r&&p.push({pending:!!r,dot:u||x.createElement(aq,null),children:m}),l&&p.reverse();let g=p.length,h=`${t}-item-last`,v=p.filter(e=>!!e).map((e,n)=>{var o,a,i;let c=n===g-2?h:"",s=n===g-1?h:"",{className:u}=e,f=Rr(e,["className"]);return x.createElement(Rn,Object.assign({},f,{className:E()([u,!l&&r?c:s,(a=null!=(o=null==e?void 0:e.position)?o:"",i=n,"alternate"===d?"right"===a?`${t}-item-right`:"left"===a||i%2==0?`${t}-item-left`:`${t}-item-right`:"left"===d?`${t}-item-left`:"right"===d||"right"===a?`${t}-item-right`:"")]),key:(null==e?void 0:e.key)||n}))}),b=p.some(e=>!!(null==e?void 0:e.label)),y=E()(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!l,[`${t}-${d}`]:!!d&&!b,[`${t}-label`]:b,[`${t}-rtl`]:"rtl"===c},n,i,s);return x.createElement("ol",Object.assign({},f,{className:y}),v)};var Ra=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ri=e=>{let{getPrefixCls:t,direction:n,timeline:r}=x.useContext(eW),{prefixCls:o,children:a,items:i,className:l,style:c}=e,s=Ra(e,["prefixCls","children","items","className","style"]),u=t("timeline",o),d=a$(u),[f,p,m]=Re(u,d),g=i&&Array.isArray(i)?i:j(a).map(e=>{var t,n;return Object.assign({children:null!=(n=null==(t=null==e?void 0:e.props)?void 0:t.children)?n:""},e.props)});return f(x.createElement(Ro,Object.assign({},s,{className:E()(null==r?void 0:r.className,l,m,d),style:Object.assign(Object.assign({},null==r?void 0:r.style),c),prefixCls:u,direction:n,items:g,hashId:p})))};Ri.Item=Rn;let Rl=Ri;function Rc(e){return null!==e&&"object"===(0,k.A)(e)}function Rs(e,t,n){if(!1===e||!1===t&&(!Rc(e)||!e.closeIcon))return null;var r,o="boolean"!=typeof t?t:void 0;return Rc(e)?(0,D.A)((0,D.A)({},e),{},{closeIcon:null!=(r=e.closeIcon)?r:o}):n||e||t?{closeIcon:o}:"empty"}var Ru={fill:"transparent",pointerEvents:"auto"};let Rd=function(e){var t=e.prefixCls,n=e.rootClassName,r=e.pos,o=e.showMask,a=e.style,i=e.fill,l=e.open,c=e.animated,s=e.zIndex,u=e.disabledInteraction,d=cI(),f="".concat(t,"-mask-").concat(d),p="object"===(0,k.A)(c)?null==c?void 0:c.placeholder:c,m="u">typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return w().createElement(cS,{open:l,autoLock:!0},w().createElement("div",{className:E()("".concat(t,"-mask"),n),style:(0,D.A)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:s,pointerEvents:r&&!u?"none":"auto"},void 0===a?{}:a)},o?w().createElement("svg",{style:{width:"100%",height:"100%"}},w().createElement("defs",null,w().createElement("mask",{id:f},w().createElement("rect",S({x:"0",y:"0"},m?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"},{fill:"white"})),r&&w().createElement("rect",{x:r.left,y:r.top,rx:r.radius,width:r.width,height:r.height,fill:"black",className:p?"".concat(t,"-placeholder-animated"):""}))),w().createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:void 0===i?"rgba(0,0,0,0.5)":i,mask:"url(#".concat(f,")")}),r&&w().createElement(w().Fragment,null,w().createElement("rect",S({},Ru,{x:"0",y:"0",width:"100%",height:r.top})),w().createElement("rect",S({},Ru,{x:"0",y:"0",width:r.left,height:"100%"})),w().createElement("rect",S({},Ru,{x:"0",y:r.top+r.height,width:"100%",height:"calc(100vh - ".concat(r.top+r.height,"px)")})),w().createElement("rect",S({},Ru,{x:r.left+r.width,y:"0",width:"calc(100vw - ".concat(r.left+r.width,"px)"),height:"100%"})))):null))};var Rf=[0,0],Rp={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Rm(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};return Object.keys(Rp).forEach(function(n){t[n]=(0,D.A)((0,D.A)({},Rp[n]),{},{autoArrow:e,targetOffset:Rf})}),t}function Rg(e){var t,n=e.prefixCls,r=e.current,o=e.total,a=e.title,i=e.description,l=e.onClose,c=e.onPrev,s=e.onNext,u=e.onFinish,d=e.className,f=e.closable,p=o5(f||{},!0),m=null!=(t=null==f?void 0:f.closeIcon)?t:x.createElement("span",{className:"".concat(n,"-close-x")},"\xd7"),g=!!f;return x.createElement("div",{className:E()("".concat(n,"-content"),d)},x.createElement("div",{className:"".concat(n,"-inner")},g&&x.createElement("button",S({type:"button",onClick:l,"aria-label":"Close"},p,{className:"".concat(n,"-close")}),m),x.createElement("div",{className:"".concat(n,"-header")},x.createElement("div",{className:"".concat(n,"-title")},a)),x.createElement("div",{className:"".concat(n,"-description")},i),x.createElement("div",{className:"".concat(n,"-footer")},x.createElement("div",{className:"".concat(n,"-sliders")},o>1?(0,eM.A)(Array.from({length:o}).keys()).map(function(e,t){return x.createElement("span",{key:e,className:t===r?"active":""})}):null),x.createElement("div",{className:"".concat(n,"-buttons")},0!==r?x.createElement("button",{className:"".concat(n,"-prev-btn"),onClick:c},"Prev"):null,r===o-1?x.createElement("button",{className:"".concat(n,"-finish-btn"),onClick:u},"Finish"):x.createElement("button",{className:"".concat(n,"-next-btn"),onClick:s},"Next")))))}Rm();let Rh=function(e){var t=e.current,n=e.renderPanel;return x.createElement(x.Fragment,null,"function"==typeof n?n(e,t):x.createElement(Rg,e))};var Rv=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],Rb={left:"50%",top:"50%",width:1,height:1},Ry={block:"center",inline:"center"};let R$=function(e){var t,n,r,o,a,i,l,c,s,u,d,f,p,m=e.prefixCls,g=void 0===m?"rc-tour":m,h=e.steps,v=void 0===h?[]:h,b=e.defaultCurrent,y=e.current,$=e.onChange,w=e.onClose,C=e.onFinish,O=e.open,A=e.mask,I=e.arrow,N=e.rootClassName,j=e.placement,M=e.renderPanel,R=e.gap,P=e.animated,T=e.scrollIntoViewOptions,z=e.zIndex,B=void 0===z?1001:z,H=e.closeIcon,L=e.closable,F=e.builtinPlacements,W=e.disabledInteraction,_=(0,r3.A)(e,Rv),V=x.useRef(),q=ny(0,{value:y,defaultValue:b}),K=(0,eK.A)(q,2),X=K[0],G=K[1],Y=ny(void 0,{value:O,postState:function(e){return!(X<0)&&!(X>=v.length)&&(null==e||e)}}),U=(0,eK.A)(Y,2),Q=U[0],Z=U[1],J=x.useState(Q),ee=(0,eK.A)(J,2),et=ee[0],en=ee[1],er=x.useRef(Q);t$(function(){Q&&(er.current||G(0),en(!0)),er.current=Q},[Q]);var eo=v[X]||{},ea=eo.target,ei=eo.placement,el=eo.style,ec=eo.arrow,es=eo.className,eu=eo.mask,ed=eo.scrollIntoViewOptions,ef=void 0===ed?Ry:ed,ep=eo.closeIcon,em=(t=eo.closable,x.useMemo(function(){var e=Rs(t,ep,!1),n=Rs(L,H,!0);return"empty"!==e?e:n},[L,H,t,ep])),eg=Q&&(null!=eu?eu:void 0===A||A),eh=(n=null!=ef?ef:void 0===T?Ry:T,r=(0,x.useState)(void 0),a=(o=(0,eK.A)(r,2))[0],i=o[1],t$(function(){i(("function"==typeof ea?ea():ea)||null)}),l=(0,x.useState)(null),s=(c=(0,eK.A)(l,2))[0],u=c[1],d=nh(function(){if(a){e=window.innerWidth||document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight,o=(r=a.getBoundingClientRect()).top,i=r.right,l=r.bottom,c=r.left,o>=0&&c>=0&&i<=e&&l<=t||!O||a.scrollIntoView(n);var e,t,r,o,i,l,c,s=a.getBoundingClientRect(),d={left:s.left,top:s.top,width:s.width,height:s.height,radius:0};u(function(e){return JSON.stringify(e)!==JSON.stringify(d)?d:e})}else u(null)}),f=function(e){var t;return null!=(t=Array.isArray(null==R?void 0:R.offset)?null==R?void 0:R.offset[e]:null==R?void 0:R.offset)?t:6},t$(function(){return d(),window.addEventListener("resize",d),function(){window.removeEventListener("resize",d)}},[a,O,d]),[(0,x.useMemo)(function(){if(!s)return s;var e,t=f(0),n=f(1),r="number"!=typeof(e=null==R?void 0:R.radius)||Number.isNaN(e)?2:null==R?void 0:R.radius;return{left:s.left-t,top:s.top-n,width:s.width+2*t,height:s.height+2*n,radius:r}},[s,R]),a]),ev=(0,eK.A)(eh,2),eb=ev[0],ey=ev[1],e$=null!=(p=null!=ei?ei:j)?p:null===ey?"center":"bottom",ex=!!ey&&(void 0===ec?void 0===I||I:ec),ew="object"===(0,k.A)(ex)&&ex.pointAtCenter;t$(function(){var e;null==(e=V.current)||e.forceAlign()},[ew,X]);var eC=function(e){G(e),null==$||$(e)},eE=(0,x.useMemo)(function(){return F?"function"==typeof F?F({arrowPointAtCenter:ew}):F:Rm(ew)},[F,ew]);if(void 0===ey||!et)return null;var eS=function(){Z(!1),null==w||w(X)},ek="boolean"==typeof eg?void 0:eg;return x.createElement(x.Fragment,null,x.createElement(Rd,{zIndex:B,prefixCls:g,pos:eb,showMask:"boolean"==typeof eg?eg:!!eg,style:null==ek?void 0:ek.style,fill:null==ek?void 0:ek.color,open:Q,animated:P,rootClassName:N,disabledInteraction:W}),x.createElement(fe,S({},_,{builtinPlacements:eE,ref:V,popupStyle:el,popupPlacement:e$,popupVisible:Q,popupClassName:E()(N,es),prefixCls:g,popup:function(){return x.createElement(Rh,S({arrow:ex,key:"content",prefixCls:g,total:v.length,renderPanel:M,onPrev:function(){eC(X-1)},onNext:function(){eC(X+1)},onClose:eS,current:X,onFinish:function(){eS(),null==C||C()}},v[X],{closable:em}))},forceRender:!1,destroyPopupOnHide:!0,zIndex:B,getTriggerDOMNode:function(e){return e||ey||document.body},arrow:!!ex}),x.createElement(cS,{open:Q,autoLock:!0},x.createElement("div",{className:E()(N,"".concat(g,"-target-placeholder")),style:(0,D.A)((0,D.A)({},eb||Rb),{},{position:"fixed",pointerEvents:"none"})}))))},Rx=e=>{var t,n;let r,{stepProps:o,current:a,type:i,indicatorsRender:l,actionsRender:c}=e,{prefixCls:s,total:u=1,title:d,onClose:f,onPrev:p,onNext:m,onFinish:g,cover:h,description:v,nextButtonProps:b,prevButtonProps:y,type:$,closable:x}=o,C=null!=$?$:i,S=o5(null!=x?x:{},!0),[k]=iK("global",io.global),[O]=iK("Tour",io.Tour),A=w().createElement("button",Object.assign({type:"button",onClick:f,className:`${s}-close`,"aria-label":null==k?void 0:k.close},S),(null==x?void 0:x.closeIcon)||w().createElement(of,{className:`${s}-close-icon`})),I=a===u-1,N=null!=d?w().createElement("div",{className:`${s}-header`},w().createElement("div",{className:`${s}-title`},d)):null,j=null!=v?w().createElement("div",{className:`${s}-description`},v):null,M=null!=h?w().createElement("div",{className:`${s}-cover`},h):null;r=l?l(a,u):(0,eM.A)(Array.from({length:u}).keys()).map((e,t)=>w().createElement("span",{key:e,className:E()(t===a&&`${s}-indicator-active`,`${s}-indicator`)}));let R=w().createElement(w().Fragment,null,0!==a?w().createElement(cu,Object.assign({size:"small"},{type:"default",ghost:"primary"===C},y,{onClick:()=>{var e;null==p||p(),null==(e=null==y?void 0:y.onClick)||e.call(y)},className:E()(`${s}-prev-btn`,null==y?void 0:y.className)}),null!=(t=null==y?void 0:y.children)?t:null==O?void 0:O.Previous):null,w().createElement(cu,Object.assign({size:"small",type:"primary"===C?"default":"primary"},b,{onClick:()=>{var e;I?null==g||g():null==m||m(),null==(e=null==b?void 0:b.onClick)||e.call(b)},className:E()(`${s}-next-btn`,null==b?void 0:b.className)}),null!=(n=null==b?void 0:b.children)?n:I?null==O?void 0:O.Finish:null==O?void 0:O.Next));return w().createElement("div",{className:`${s}-content`},w().createElement("div",{className:`${s}-inner`},x&&A,M,N,j,w().createElement("div",{className:`${s}-footer`},u>1&&w().createElement("div",{className:`${s}-indicators`},r),w().createElement("div",{className:`${s}-buttons`},c?c(R,{current:a,total:u}):R))))},Rw=rK("Tour",e=>{let{borderRadiusLG:t}=e;return(e=>{let{componentCls:t,padding:n,paddingXS:r,borderRadius:o,borderRadiusXS:a,colorPrimary:i,colorFill:l,indicatorHeight:c,indicatorWidth:s,boxShadowTertiary:u,zIndexPopup:d,colorBgElevated:f,fontWeightStrong:p,marginXS:m,colorTextLightSolid:g,tourBorderRadius:h,colorWhite:v,primaryNextBtnHoverBg:b,closeBtnSize:y,motionDurationSlow:$,antCls:x,primaryPrevBtnBg:w}=e;return[{[t]:Object.assign(Object.assign({},nF(e)),{position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":f,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:h,boxShadow:u,position:"relative",backgroundColor:f,border:"none",backgroundClip:"padding-box",[`${t}-close`]:Object.assign({position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:y,height:y,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},nq(e)),[`${t}-cover`]:{textAlign:"center",padding:`${tg(e.calc(n).add(y).add(r).equal())} ${tg(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${tg(n)} ${tg(n)} ${tg(r)}`,width:`calc(100% - ${tg(y)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:p}},[`${t}-description`]:{padding:`0 ${tg(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${tg(r)} ${tg(n)} ${tg(n)}`,textAlign:"end",borderRadius:`0 0 ${tg(a)} ${tg(a)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:s,height:c,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:i}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${x}-btn`]:{marginInlineStart:m}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":i,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:i,borderRadius:o,boxShadow:u,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:w,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:w,backgroundColor:i,"&:hover":{backgroundColor:w,borderColor:"transparent"}},[`${t}-next-btn`]:{color:i,borderColor:"transparent",background:v,"&:hover":{background:b}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${$}`}},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${t}-inner`]:{borderRadius:e.min(h,8)}}},p6(e,"var(--antd-arrow-background-color)")]})(nR(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t}))},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new n4(e.colorTextLightSolid).setA(.15).toRgbString(),primaryNextBtnHoverBg:new n4(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString()},p3({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),p2(e)));var RC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let RE=dd(e=>{let{prefixCls:t,current:n=0,total:r=6,className:o,style:a,type:i,closable:l,closeIcon:c}=e,s=RC(e,["prefixCls","current","total","className","style","type","closable","closeIcon"]),{getPrefixCls:u}=x.useContext(eW),d=u("tour",t),[f,p,m]=Rw(d),[g,h]=sJ({closable:l,closeIcon:c},null,{closable:!0,closeIconRender:e=>{var t;return x.isValidElement(e)?o9(e,{className:E()(null==(t=e.props)?void 0:t.className,`${d}-close-icon`)}):e}});return f(x.createElement(mp,{prefixCls:d,hashId:p,className:E()(o,`${d}-pure`,i&&`${d}-${i}`,m),style:a},x.createElement(Rx,{stepProps:Object.assign(Object.assign({},s),{prefixCls:d,total:r,closable:g?{closeIcon:h}:void 0}),current:n,type:i})))});var RS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Rk=e=>{let{prefixCls:t,type:n,rootClassName:r,indicatorsRender:o,actionsRender:a,steps:i,closeIcon:l}=e,c=RS(e,["prefixCls","type","rootClassName","indicatorsRender","actionsRender","steps","closeIcon"]),{getPrefixCls:s,direction:u,tour:d}=(0,x.useContext)(eW),f=s("tour",t),[p,m,g]=Rw(f),[,h]=rq(),v=w().useMemo(()=>null==i?void 0:i.map(e=>{var t;return Object.assign(Object.assign({},e),{className:E()(e.className,{[`${f}-primary`]:(null!=(t=e.type)?t:n)==="primary"})})}),[f,i,n]),b=E()({[`${f}-rtl`]:"rtl"===u},m,g,r),[y,$]=aY("Tour",c.zIndex);return p(w().createElement(aK.Provider,{value:$},w().createElement(R$,Object.assign({},c,{closeIcon:null!=l?l:null==d?void 0:d.closeIcon,zIndex:y,rootClassName:b,prefixCls:f,animated:!0,renderPanel:(e,t)=>w().createElement(Rx,{type:n,stepProps:e,current:t,indicatorsRender:o,actionsRender:a}),builtinPlacements:e=>{var t;return p9({arrowPointAtCenter:null==(t=null==e?void 0:e.arrowPointAtCenter)||t,autoAdjustOverflow:!0,offset:h.marginXXS,arrowWidth:h.sizePopupArrow,borderRadius:h.borderRadius})},steps:v}))))};Rk._InternalPanelDoNotUseOrYouWillBeFired=RE;let RO=Rk,RA=e=>{let t=new Map;return e.forEach((e,n)=>{t.set(e,n)}),t},RI=[];function RN(e,t){let n=e.filter(e=>t.has(e));return e.length===n.length?e:n}function Rj(e){return Array.from(e).join(";")}let RM=function(e,t,n){let[r,o]=x.useMemo(()=>[new Set(e.map(e=>null==e?void 0:e.key)),new Set(t.map(e=>null==e?void 0:e.key))],[e,t]),[a,i]=ny(RI,{value:n}),l=x.useMemo(()=>RN(a,r),[a,r]),c=x.useMemo(()=>RN(a,o),[a,o]);x.useEffect(()=>{i([].concat((0,eM.A)(RN(a,r)),(0,eM.A)(RN(a,o))))},[Rj(r),Rj(o)]);let s=nh(e=>{i([].concat((0,eM.A)(e),(0,eM.A)(c)))}),u=nh(e=>{i([].concat((0,eM.A)(l),(0,eM.A)(e)))});return[l,c,s,u]},RR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var RP=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:RR}))});let RT=x.memo(e=>{let t,{renderedText:n,renderedEl:r,item:o,checked:a,disabled:i,prefixCls:l,onClick:c,onRemove:s,showRemove:u}=e,d=E()(`${l}-content-item`,{[`${l}-content-item-disabled`]:i||o.disabled,[`${l}-content-item-checked`]:a&&!o.disabled});("string"==typeof n||"number"==typeof n)&&(t=String(n));let[f]=iK("Transfer",io.Transfer),p={className:d,title:t},m=x.createElement("span",{className:`${l}-content-item-text`},r);return u?x.createElement("li",Object.assign({},p),m,x.createElement("button",{type:"button",disabled:i||o.disabled,className:`${l}-content-item-remove`,"aria-label":null==f?void 0:f.remove,onClick:()=>null==s?void 0:s(o)},x.createElement(RP,null))):(p.onClick=i||o.disabled?void 0:e=>c(o,e),x.createElement("li",Object.assign({},p),x.createElement(xM,{className:`${l}-checkbox`,checked:a,disabled:i||o.disabled}),m))}),Rz=["handleFilter","handleClear","checkedKeys"],RB=x.forwardRef((e,t)=>{let{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:l,onScroll:c,onItemSelect:s,onItemRemove:u}=e,[d,f]=x.useState(1),p=x.useMemo(()=>{var e;return l?(e="object"==typeof l?l:{},Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e)):null},[l]),[m,g]=ny(10,{value:null==p?void 0:p.pageSize});x.useEffect(()=>{p&&f(Math.min(d,Math.ceil(r.length/m)))},[r,p,m]);let h=(e,t)=>{s(e.key,!o.includes(e.key),t)},v=e=>{null==u||u([e.key])},b=x.useMemo(()=>p?r.slice((d-1)*m,d*m):r,[d,r,p,m]);x.useImperativeHandle(t,()=>({items:b}));let y=p?x.createElement(Oh,{size:"small",disabled:a,simple:p.simple,pageSize:m,showLessItems:p.showLessItems,showSizeChanger:p.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:e=>{f(e)},onShowSizeChange:(e,t)=>{f(e),g(t)}}):null,$=E()(`${n}-content`,{[`${n}-content-show-remove`]:i});return x.createElement(x.Fragment,null,x.createElement("ul",{className:$,onScroll:c},(b||[]).map(({renderedEl:e,renderedText:t,item:r})=>x.createElement(RT,{key:r.key,item:r,renderedText:t,renderedEl:e,prefixCls:n,showRemove:i,onClick:h,onRemove:v,checked:o.includes(r.key),disabled:a||r.disabled}))),y)}),RD=e=>{let{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,l=x.useCallback(e=>{null==a||a(e),""===e.target.value&&(null==i||i())},[a]);return x.createElement(w6,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:!0,prefix:x.createElement(pC,null)})},RH=()=>null;function RL(e){return e.filter(e=>!e.disabled).map(e=>e.key)}let RF=e=>{var t,n;let r,{prefixCls:o,dataSource:a=[],titleText:i="",checkedKeys:l,disabled:c,showSearch:s=!1,style:u,searchPlaceholder:d,notFoundContent:f,selectAll:p,deselectAll:m,selectCurrent:g,selectInvert:h,removeAll:v,removeCurrent:b,showSelectAll:y=!0,showRemove:$,pagination:C,direction:S,itemsUnit:k,itemUnit:O,selectAllLabel:A,selectionsIcon:I,footer:N,renderList:j,onItemSelectAll:M,onItemRemove:R,handleFilter:P,handleClear:T,filterOption:z,render:B=RH}=e,D=s&&"object"==typeof s?Object.assign(Object.assign({},s),{defaultValue:s.defaultValue||""}):{defaultValue:"",placeholder:""},[H,L]=(0,x.useState)(D.defaultValue),F=(0,x.useRef)({}),W=e=>{L(e.target.value),P(e)},_=()=>{L(""),T()},V=(0,x.useMemo)(()=>Array.isArray(f)?f[+("left"!==S)]:f,[f,S]),[q,K]=(0,x.useMemo)(()=>{let e=[],t=[];return a.forEach(n=>{var r;let o,a,i={item:n,renderedEl:(a=!!((o=B(n))&&!w().isValidElement(o)&&"[object Object]"===Object.prototype.toString.call(o)))?o.label:o,renderedText:a?o.value:o};(!H||(r=i.renderedText,"function"==typeof z?z(H,n,S):r.includes(H)))&&(e.push(n),t.push(i))}),[e,t]},[a,H]),X=(0,x.useMemo)(()=>q.filter(e=>l.includes(e.key)&&!e.disabled),[l,q]),G=(0,x.useMemo)(()=>{if(0===X.length)return"none";let e=RA(l);return q.every(t=>e.has(t.key)||!!t.disabled)?"all":"part"},[X.length,l,q]),Y=w().createElement(xM,{disabled:0===a.filter(e=>!e.disabled).length||c,checked:"all"===G,indeterminate:"part"===G,className:`${o}-checkbox`,onChange:()=>{null==M||M(q.filter(e=>!e.disabled).map(({key:e})=>e),"all"!==G)}}),U=N&&(N.length<2?N(e):N(e,{direction:S})),Q=E()(o,{[`${o}-with-pagination`]:!!C,[`${o}-with-footer`]:!!U}),Z=U?w().createElement("div",{className:`${o}-footer`},U):null;r=$?[C?{key:"removeCurrent",label:b,onClick(){var e;let t=RL(((null==(e=F.current)?void 0:e.items)||[]).map(e=>e.item));null==R||R(t)}}:null,{key:"removeAll",label:v,onClick(){null==R||R(RL(q))}}].filter(Boolean):[{key:"selectAll",label:"all"===G?m:p,onClick(){let e=RL(q);null==M||M(e,e.length!==l.length)}},C?{key:"selectCurrent",label:g,onClick(){var e;let t=(null==(e=F.current)?void 0:e.items)||[];null==M||M(RL(t.map(e=>e.item)),!0)}}:null,{key:"selectInvert",label:h,onClick(){var e;let t=RL(((null==(e=F.current)?void 0:e.items)||[]).map(e=>e.item)),n=new Set(l),r=new Set(n);t.forEach(e=>{n.has(e)?r.delete(e):r.add(e)}),null==M||M(Array.from(r),"replace")}}];let J=w().createElement(E4,{className:`${o}-header-dropdown`,menu:{items:r},disabled:c},void 0!==I?I:w().createElement(px,null));return w().createElement("div",{className:Q,style:u},w().createElement("div",{className:`${o}-header`},y?w().createElement(w().Fragment,null,!$&&!C&&Y,J):null,w().createElement("span",{className:`${o}-header-selected`},(t=X.length,n=q.length,A?"function"==typeof A?A({selectedCount:t,totalCount:n}):A:w().createElement(w().Fragment,null,(t>0?`${t}/`:"")+n," ",n>1?k:O))),w().createElement("span",{className:`${o}-header-title`},i)),(()=>{var t;let n,r,a,i=s?w().createElement("div",{className:`${o}-body-search-wrapper`},w().createElement(RD,{prefixCls:`${o}-search`,onChange:W,handleClear:_,placeholder:D.placeholder||d,value:H,disabled:c})):null,{customize:u,bodyContent:f}=(t=Object.assign(Object.assign({},iX(e,Rz)),{filteredItems:q,filteredRenderItems:K,selectedKeys:l}),(a=!!(r=j?j(Object.assign(Object.assign({},t),{onItemSelect:(e,n)=>t.onItemSelect(e,n)})):null))||(r=w().createElement(RB,Object.assign({ref:F},t))),{customize:a,bodyContent:r});return n=u?w().createElement("div",{className:`${o}-body-customize-wrapper`},f):q.length?f:w().createElement("div",{className:`${o}-body-not-found`},V),w().createElement("div",{className:E()(`${o}-body`,{[`${o}-body-with-search`]:s})},i,n)})(),Z)},RW=e=>{let{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:l,className:c,style:s,direction:u,oneWay:d}=e;return x.createElement("div",{className:c,style:s},x.createElement(cu,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:"rtl"!==u?x.createElement(lT,null):x.createElement(mW,null)},a),!d&&x.createElement(cu,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:"rtl"!==u?x.createElement(mW,null):x.createElement(lT,null)},o))},R_=(e,t)=>{let{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},RV=rK("Transfer",e=>{let t=nR(e);return[(e=>{let{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:a,fontSizeIcon:i,colorBgContainerDisabled:l}=e;return{[r]:Object.assign(Object.assign({},nF(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:(e=>{let{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:l,itemPaddingBlock:c,controlItemBgActive:s,colorTextDisabled:u,colorTextSecondary:d,listHeight:f,listWidth:p,listWidthLG:m,fontSizeIcon:g,marginXS:h,paddingSM:v,lineType:b,antCls:y,iconCls:$,motionDurationSlow:x,controlItemBgHover:w,borderRadiusLG:C,colorBgContainer:E,colorText:S,controlItemBgActiveHover:k}=e,O=tg(e.calc(C).sub(o).equal());return{display:"flex",flexDirection:"column",width:p,height:f,border:`${tg(o)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${$}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${tg(e.calc(l).sub(o).equal())} ${tg(v)} ${tg(l)}`,color:S,background:E,borderBottom:`${tg(o)} ${b} ${r}`,borderRadius:`${tg(C)} ${tg(C)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},nL),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},nW()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:v}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${O} ${O}`,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${tg(c)} ${tg(v)}`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},nL),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},nX(e)),{color:n,"&:hover, &:focus":{color:d}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:k}},"&-checked":{backgroundColor:s},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${tg(o)} ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${tg(o)} ${b} ${r}`},"&-checkbox":{lineHeight:1}}})(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${tg(o)}`,verticalAlign:"middle",gap:a,[`${t}-btn ${n}`]:{fontSize:i}}})}})(t),(e=>{let{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o}=e,a=`${t}-table`,i=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:o,minWidth:o}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${i}[disabled]`]:{backgroundColor:"transparent"}}}})(t),(e=>{let{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},R_(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},R_(e,e.colorWarning))}})(t),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o,lineWidth:a}=e,i=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-i)/2,transferHeaderVerticalPadding:Math.ceil((o-a-i)/2)}}),Rq=e=>{var t;let{dataSource:n,targetKeys:r=[],selectedKeys:o,selectAllLabels:a=[],operations:i=[],style:l={},listStyle:c={},locale:s={},titles:u,disabled:d,showSearch:f=!1,operationStyle:p,showSelectAll:m,oneWay:g,pagination:h,status:v,prefixCls:b,className:y,rootClassName:$,selectionsIcon:C,filterOption:S,render:k,footer:O,children:A,rowKey:I,onScroll:N,onChange:j,onSearch:M,onSelectChange:R}=e,{getPrefixCls:P,renderEmpty:T,direction:z,transfer:B}=(0,x.useContext)(eW),D=(0,x.useContext)(id),H=null!=d?d:D,L=P("transfer",b),[F,W,_]=RV(L),[V,q,K]=((e,t,n)=>{let r=x.useMemo(()=>(e||[]).map(e=>t?Object.assign(Object.assign({},e),{key:t(e)}):e),[e,t]),[o,a]=x.useMemo(()=>{var e;let t=[],o=Array.from({length:null!=(e=null==n?void 0:n.length)?e:0}),a=RA(n||[]);return r.forEach(e=>{a.has(e.key)?o[a.get(e.key)]=e:t.push(e)}),[t,o]},[r,n]);return[r,o.filter(Boolean),a.filter(Boolean)]})(n,I,r),[X,G,Y,U]=RM(q,K,o),[Q,Z]=jv(e=>e.key),[J,ee]=jv(e=>e.key),et=(0,x.useCallback)((e,t)=>{"left"===e?Y("function"==typeof t?t(X||[]):t):U("function"==typeof t?t(G||[]):t)},[X,G]),en=(e,t)=>{("left"===e?Z:ee)(t)},er=(0,x.useCallback)((e,t)=>{"left"===e?null==R||R(t,G):null==R||R(X,t)},[X,G]),eo=e=>{let t,n="right"===e?X:G,o=(t=new Map,V.forEach(({disabled:e,key:n},r)=>{e&&t.set(n,r)}),t),a=n.filter(e=>!o.has(e)),i=RA(a),l="right"===e?a.concat(r):r.filter(e=>!i.has(e)),c="right"===e?"left":"right";et(c,[]),er(c,[]),null==j||j(l,e,a)},ea=(e,t,n)=>{et(e,r=>{let o=[];if("replace"===n)o=t;else if(n)o=Array.from(new Set([].concat((0,eM.A)(r),(0,eM.A)(t))));else{let e=RA(t);o=r.filter(t=>!e.has(t))}return er(e,o),o}),en(e,null)},ei=(t,n,r,o)=>{let a="left"===t,i=(0,eM.A)(a?X:G),l=new Set(i),c=(0,eM.A)(a?q:K).filter(e=>!(null==e?void 0:e.disabled)),s=c.findIndex(e=>e.key===n);if(o&&i.length>0)("left"===t?Q:J)(s,c,l);else l.has(n)&&(l.delete(n),en(t,null)),r&&(l.add(n),en(t,s));let u=Array.from(l);er(t,u),e.selectedKeys||et(t,u)},el=e=>"function"==typeof c?c({direction:e}):c||{},{hasFeedback:ec,status:es}=(0,x.useContext)(sq),eu=!A&&h,ed=K.filter(e=>G.includes(e.key)&&!e.disabled).length>0,ef=q.filter(e=>X.includes(e.key)&&!e.disabled).length>0,ep=E()(L,{[`${L}-disabled`]:H,[`${L}-customize-list`]:!!A,[`${L}-rtl`]:"rtl"===z},fK(L,v||es,ec),null==B?void 0:B.className,y,$,W,_),[em]=iK("Transfer",io.Transfer),eg=Object.assign(Object.assign(Object.assign({},em),{notFoundContent:(null==T?void 0:T("Transfer"))||w().createElement(fJ,{componentName:"Transfer"})}),s),[eh,ev]=null!=(t=null!=u?u:eg.titles)?t:[],eb=null!=C?C:null==B?void 0:B.selectionsIcon;return F(w().createElement("div",{className:ep,style:Object.assign(Object.assign({},null==B?void 0:B.style),l)},w().createElement(RF,Object.assign({prefixCls:`${L}-list`,titleText:eh,dataSource:q,filterOption:S,style:el("left"),checkedKeys:X,handleFilter:e=>null==M?void 0:M("left",e.target.value),handleClear:()=>null==M?void 0:M("left",""),onItemSelect:(e,t,n)=>{ei("left",e,t,null==n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ea("left",e,t)},render:k,showSearch:f,renderList:A,footer:O,onScroll:e=>{null==N||N("left",e)},disabled:H,direction:"rtl"===z?"right":"left",showSelectAll:m,selectAllLabel:a[0],pagination:eu,selectionsIcon:eb},eg)),w().createElement(RW,{className:`${L}-operation`,rightActive:ef,rightArrowText:i[0],moveToRight:()=>{eo("right"),en("right",null)},leftActive:ed,leftArrowText:i[1],moveToLeft:()=>{eo("left"),en("left",null)},style:p,disabled:H,direction:z,oneWay:g}),w().createElement(RF,Object.assign({prefixCls:`${L}-list`,titleText:ev,dataSource:K,filterOption:S,style:el("right"),checkedKeys:G,handleFilter:e=>null==M?void 0:M("right",e.target.value),handleClear:()=>null==M?void 0:M("right",""),onItemSelect:(e,t,n)=>{ei("right",e,t,null==n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ea("right",e,t)},onItemRemove:e=>{et("right",[]),null==j||j(r.filter(t=>!e.includes(t)),"left",(0,eM.A)(e))},render:k,showSearch:f,renderList:A,footer:O,onScroll:e=>{null==N||N("right",e)},disabled:H,direction:"rtl"===z?"left":"right",showSelectAll:m,selectAllLabel:a[1],showRemove:g,pagination:eu,selectionsIcon:eb},eg))))};Rq.List=RF,Rq.Search=RD,Rq.Operation=RW;let RK=Rq,RX=function(e){var t=x.useRef({valueLabels:new Map});return x.useMemo(function(){var n=t.current.valueLabels,r=new Map,o=e.map(function(e){var t=e.value,o=e.label,a=null!=o?o:n.get(t);return r.set(t,a),(0,D.A)((0,D.A)({},e),{},{label:a})});return t.current.valueLabels=r,[o]},[e])},RG=function(){return null};var RY=["children","value"];function RU(e){if(!e)return e;var t=(0,D.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return B(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}let RQ=function(e,t,n){var r=n.fieldNames,o=n.treeNodeFilterProp,a=n.filterTreeNode,i=r.children;return x.useMemo(function(){if(!t||!1===a)return e;var n="function"==typeof a?a:function(e,n){return String(n[o]).toUpperCase().includes(t.toUpperCase())};return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce(function(r,a){var l=a[i],c=o||n(t,RU(a)),s=e(l||[],c);return(c||s.length)&&r.push((0,D.A)((0,D.A)({},a),{},(0,eX.A)({isLeaf:void 0},i,s))),r},[])}(e)},[e,t,i,o,a])};function RZ(e){var t=x.useRef();return t.current=e,x.useCallback(function(){return t.current.apply(t,arguments)},[])}var RJ=x.createContext(null),R0=x.createContext(null),R1=function(e){var t=e||{},n=t.label,r=t.value;return{_title:n?[n]:["title","label"],value:r||"value",key:r||"value",children:t.children||"children"}},R2=function(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable},R4=function(e,t){var n=[];return!function e(r){r.forEach(function(r){var o=r[t.children];o&&(n.push(r[t.value]),e(o))})}(e),n},R3=function(e){return null==e},R6={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R5=x.forwardRef(function(e,t){var n=dv(),r=n.prefixCls,o=n.multiple,a=n.searchValue,i=n.toggleOpen,l=n.open,c=n.notFoundContent,s=x.useContext(R0),u=s.virtual,d=s.listHeight,f=s.listItemHeight,p=s.listItemScrollOffset,m=s.treeData,g=s.fieldNames,h=s.onSelect,v=s.dropdownMatchSelectWidth,b=s.treeExpandAction,y=s.treeTitleRender,$=s.onPopupScroll,w=s.leftMaxCount,C=s.leafCountOnly,E=s.valueEntities,k=x.useContext(RJ),O=k.checkable,A=k.checkedKeys,I=k.halfCheckedKeys,N=k.treeExpandedKeys,j=k.treeDefaultExpandAll,M=k.treeDefaultExpandedKeys,R=k.onTreeExpand,P=k.treeIcon,T=k.showTreeIcon,z=k.switcherIcon,B=k.treeLine,D=k.treeNodeFilterProp,H=k.loadData,L=k.treeLoadedKeys,F=k.treeMotion,W=k.onTreeLoad,_=k.keyEntities,V=x.useRef(),K=q(function(){return m},[l,m],function(e,t){return t[0]&&e[1]!==t[1]}),X=x.useMemo(function(){return O?{checked:A,halfChecked:I}:null},[O,A,I]);x.useEffect(function(){if(l&&!o&&A.length){var e;null==(e=V.current)||e.scrollTo({key:A[0]})}},[l]);var G=function(e){e.preventDefault()},Y=function(e,t){var n=t.node;!(O&&R2(n))&&(h(n.key,{selected:!A.includes(n.key)}),o||i(!1))},U=x.useState(M),Q=(0,eK.A)(U,2),Z=Q[0],J=Q[1],ee=x.useState(null),et=(0,eK.A)(ee,2),en=et[0],er=et[1],eo=x.useMemo(function(){return N?(0,eM.A)(N):a?en:Z},[Z,en,N,a]),ea=String(a).toLowerCase(),ei=function(e){return!!ea&&String(e[D]).toLowerCase().includes(ea)};x.useEffect(function(){a&&er(R4(m,g))},[a]);var el=x.useState(function(){return new Map}),ec=(0,eK.A)(el,2),es=ec[0],eu=ec[1];x.useEffect(function(){w&&eu(new Map)},[w]);var ed=nh(function(e){var t=e[g.value];if(A.includes(t)||null===w)return!1;if(w<=0)return!0;if(C&&w){var n=e[g.value];if(!es.has(n)){var r=E.get(n);if(0===(r.children||[]).length)es.set(n,!1);else{var o=r.children.filter(function(e){return!e.node.disabled&&!e.node.disableCheckbox&&!A.includes(e.node[g.value])}).length;es.set(n,o>w)}}return es.get(n)}return!1}),ef=function e(t){var n,r=(0,AK.A)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!o.disabled&&!1!==o.selectable){if(!a||ei(o))return o;if(o[g.children]){var i=e(o[g.children]);if(i)return i}}}}catch(e){r.e(e)}finally{r.f()}return null},ep=x.useState(null),em=(0,eK.A)(ep,2),eg=em[0],eh=em[1],ev=_[eg];x.useEffect(function(){if(l){var e,t=null;eh(t=o||!A.length||a?(e=ef(K))?e[g.value]:null:A[0])}},[l,a]),x.useImperativeHandle(t,function(){var e;return{scrollTo:null==(e=V.current)?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case aM.UP:case aM.DOWN:case aM.LEFT:case aM.RIGHT:null==(t=V.current)||t.onKeyDown(e);break;case aM.ENTER:if(ev){var n=ed(ev.node),r=(null==ev?void 0:ev.node)||{},o=r.selectable,a=r.value,l=r.disabled;!1===o||l||n||Y(null,{node:{key:eg},selected:!A.includes(a)})}break;case aM.ESC:i(!1)}},onKeyUp:function(){}}});var eb=q(function(){return!a},[a,N||Z],function(e,t){var n=(0,eK.A)(e,1)[0],r=(0,eK.A)(t,2),o=r[0],a=r[1];return n!==o&&!!(o||a)});if(0===K.length)return x.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:G},c);var ey={fieldNames:g};return L&&(ey.loadedKeys=L),eo&&(ey.expandedKeys=eo),x.createElement("div",{onMouseDown:G},ev&&l&&x.createElement("span",{style:R6,"aria-live":"assertive"},ev.node.value),x.createElement(jo.Provider,{value:{nodeDisabled:ed}},x.createElement(jV,S({ref:V,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:K,height:d,itemHeight:f,itemScrollOffset:p,virtual:!1!==u&&!1!==v,multiple:o,icon:P,showIcon:T,switcherIcon:z,showLine:B,loadData:eb?H:null,motion:F,activeKey:eg,checkable:O,checkStrictly:!0,checkedKeys:X,selectedKeys:O?[]:A,defaultExpandAll:j,titleRender:y},ey,{onActiveChange:eh,onSelect:Y,onCheck:Y,onExpand:function(e){J(e),er(e),R&&R(e)},onLoad:W,filterTreeNode:ei,expandAction:b,onScroll:$}))))}),R8="SHOW_ALL",R7="SHOW_PARENT",R9="SHOW_CHILD";function Pe(e,t,n,r){var o=new Set(e);return t===R9?e.filter(function(e){var t=n[e];return!t||!t.children||!t.children.some(function(e){var t=e.node;return o.has(t[r.value])})||!t.children.every(function(e){var t=e.node;return R2(t)||o.has(t[r.value])})}):t===R7?e.filter(function(e){var t=n[e],r=t?t.parent:null;return!r||R2(r.node)||!o.has(r.key)}):e}var Pt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"],Pn=x.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=e.value,a=e.defaultValue,i=e.onChange,l=e.onSelect,c=e.onDeselect,s=e.searchValue,u=e.inputValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,m=e.filterTreeNode,g=e.treeNodeFilterProp,h=void 0===g?"value":g,v=e.showCheckedStrategy,b=e.treeNodeLabelProp,y=e.multiple,$=e.treeCheckable,w=e.treeCheckStrictly,C=e.labelInValue,E=e.maxCount,O=e.fieldNames,A=e.treeDataSimpleMode,I=e.treeData,N=e.children,M=e.loadData,R=e.treeLoadedKeys,P=e.onTreeLoad,T=e.treeDefaultExpandAll,z=e.treeExpandedKeys,H=e.treeDefaultExpandedKeys,L=e.onTreeExpand,F=e.treeExpandAction,W=e.virtual,_=e.listHeight,V=void 0===_?200:_,q=e.listItemHeight,K=void 0===q?20:q,X=e.listItemScrollOffset,G=void 0===X?0:X,Y=e.onDropdownVisibleChange,U=e.dropdownMatchSelectWidth,Q=void 0===U||U,Z=e.treeLine,J=e.treeIcon,ee=e.showTreeIcon,et=e.switcherIcon,en=e.treeMotion,er=e.treeTitleRender,eo=e.onPopupScroll,ea=(0,r3.A)(e,Pt),ei=fH(n),el=$&&!w,ec=$||w,es=w||C,eu=ec||y,ed=ny(a,{value:o}),ef=(0,eK.A)(ed,2),ep=ef[0],em=ef[1],eg=x.useMemo(function(){return $?v||R9:R8},[v,$]),eh=x.useMemo(function(){return R1(O)},[JSON.stringify(O)]),ev=ny("",{value:void 0!==s?s:u,postState:function(e){return e||""}}),eb=(0,eK.A)(ev,2),ey=eb[0],e$=eb[1],ex=x.useMemo(function(){if(I){if(A){var e,t,n,r,o,a=(0,D.A)({id:"id",pId:"pId",rootPId:null},"object"===(0,k.A)(A)?A:{});return e=a.id,t=a.pId,n=a.rootPId,r=new Map,o=[],I.forEach(function(t){var n=t[e],o=(0,D.A)((0,D.A)({},t),{},{key:t.key||n});r.set(n,o)}),r.forEach(function(e){var a=e[t],i=r.get(a);i?(i.children=i.children||[],i.children.push(e)):(a===n||null===n)&&o.push(e)}),o}return I}return function e(t){return j(t).map(function(t){if(!x.isValidElement(t)||!t.type)return null;var n=t.key,r=t.props,o=r.children,a=r.value,i=(0,r3.A)(r,RY),l=(0,D.A)({key:n,value:a},i),c=e(o);return c.length&&(l.children=c),l}).filter(function(e){return e})}(N)},[N,A,I]),ew=x.useMemo(function(){return $J(ex,{fieldNames:eh,initWrapper:function(e){return(0,D.A)((0,D.A)({},e),{},{valueEntities:new Map})},processEntity:function(e,t){var n=e.node[eh.value];t.valueEntities.set(n,e)}})},[ex,eh]),eC=ew.keyEntities,eE=ew.valueEntities,eS=x.useCallback(function(e){var t=[],n=[];return e.forEach(function(e){eE.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[eE]),ek=RQ(ex,ey,{fieldNames:eh,treeNodeFilterProp:h,filterTreeNode:m}),eO=x.useCallback(function(e){if(e){if(b)return e[b];for(var t=eh._title,n=0;n<t.length;n+=1){var r=e[t[n]];if(void 0!==r)return r}}},[eh,b]),eA=x.useCallback(function(e){return(Array.isArray(e)?e:void 0!==e?[e]:[]).map(function(e){return e&&"object"===(0,k.A)(e)?e:{value:e}})},[]),eI=x.useCallback(function(e){return eA(e).map(function(e){var t,n,r=e.label,o=e.value,a=e.halfChecked,i=eE.get(o);return i?(r=er?er(i.node):null!=(n=r)?n:eO(i.node),t=i.node.disabled):void 0===r&&(r=eA(ep).find(function(e){return e.value===o}).label),{label:r,value:o,halfChecked:a,disabled:t}})},[eE,eO,eA,ep]),eN=x.useMemo(function(){return eA(null===ep?[]:ep)},[eA,ep]),ej=x.useMemo(function(){var e=[],t=[];return eN.forEach(function(n){n.halfChecked?t.push(n):e.push(n)}),[e,t]},[eN]),eR=(0,eK.A)(ej,2),eP=eR[0],eT=eR[1],ez=x.useMemo(function(){return eP.map(function(e){return e.value})},[eP]),eB=x.useMemo(function(){var e=function(e){return e.map(function(e){return e.value})},t=e(eP),n=e(eT),r=t.filter(function(e){return!eC[e]}),o=t,a=n;if(el){var i=$5(t,!0,eC);o=i.checkedKeys,a=i.halfCheckedKeys}return[Array.from(new Set([].concat((0,eM.A)(r),(0,eM.A)(o)))),a]},[eP,eT,el,eC]),eD=(0,eK.A)(eB,2),eH=eD[0],eL=eD[1],eF=RX(x.useMemo(function(){var e=eI(Pe(eH,eg,eC,eh).map(function(e){var t,n;return null!=(t=null==(n=eC[e])||null==(n=n.node)?void 0:n[eh.value])?t:e}).map(function(e){var t=eP.find(function(t){return t.value===e});return{value:e,label:C?null==t?void 0:t.label:null==er?void 0:er(t)}})),t=e[0];return!eu&&t&&R3(t.value)&&R3(t.label)?[]:e.map(function(e){var t;return(0,D.A)((0,D.A)({},e),{},{label:null!=(t=e.label)?t:e.value})})},[eh,eu,eH,eP,eI,eg,eC])),eW=(0,eK.A)(eF,1)[0],e_=x.useMemo(function(){return eu&&("SHOW_CHILD"===eg||w||!$)?E:null},[E,eu,w,eg,$]),eV=RZ(function(e,t,n){var r=Pe(e,eg,eC,eh);if((!e_||!(r.length>e_))&&(em(eI(e)),p&&e$(""),i)){var o=e;el&&(o=r.map(function(e){var t=eE.get(e);return t?t.node[eh.value]:e}));var a=t||{triggerValue:void 0,selected:void 0},l=a.triggerValue,c=a.selected,s=o;if(w){var u=eT.filter(function(e){return!o.includes(e.value)});s=[].concat((0,eM.A)(s),(0,eM.A)(u))}var d=eI(s),f={preValue:eP,triggerValue:l},m=!0;(w||"selection"===n&&!c)&&(m=!1);var g=m,h=null,v=null;function b(){v||(v=[],function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n.map(function(n,a){var i="".concat(r,"-").concat(a),c=n[eh.value],s=e.includes(c),u=t(n[eh.children]||[],i,s),d=x.createElement(RG,n,u.map(function(e){return e.node}));if(l===c&&(h=d),s){var f={pos:i,node:d,children:u};return o||v.push(f),f}return null}).filter(function(e){return e})}(ex),v.sort(function(t,n){var r=t.node.props.value,o=n.node.props.value;return e.indexOf(r)-e.indexOf(o)}))}Object.defineProperty(f,"triggerNode",{get:function(){return B(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),b(),h}}),Object.defineProperty(f,"allCheckedNodes",{get:function(){return(B(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),b(),g)?v:v.map(function(e){return e.node})}}),ec?f.checked=c:f.selected=c;var y=es?d:d.map(function(e){return e.value});i(eu?y:y[0],es?null:d.map(function(e){return e.label}),f)}}),eq=x.useCallback(function(e,t){var n=t.selected,r=t.source,o=eC[e],a=null==o?void 0:o.node,i=null!=(u=null==a?void 0:a[eh.value])?u:e;if(eu){var s=n?[].concat((0,eM.A)(ez),[i]):eH.filter(function(e){return e!==i});if(el){var u,d,f=eS(s),p=f.missingRawValues,m=f.existRawValues.map(function(e){return eE.get(e).key});d=n?$5(m,!0,eC).checkedKeys:$5(m,{checked:!1,halfCheckedKeys:eL},eC).checkedKeys,s=[].concat((0,eM.A)(p),(0,eM.A)(d.map(function(e){return eC[e].node[eh.value]})))}eV(s,{selected:n,triggerValue:i},r||"option")}else eV([i],{selected:!0,triggerValue:i},"option");n||!eu?null==l||l(i,RU(a)):null==c||c(i,RU(a))},[eS,eE,eC,eh,eu,ez,eV,el,l,c,eH,eL,E]),eX=x.useCallback(function(e){if(Y){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return B(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Y(e,t)}},[Y]),eG=RZ(function(e,t){var n=e.map(function(e){return e.value});"clear"===t.type?eV(n,{},"selection"):t.values.length&&eq(t.values[0].value,{selected:!1,source:"selection"})}),eY=x.useMemo(function(){return{virtual:W,dropdownMatchSelectWidth:Q,listHeight:V,listItemHeight:K,listItemScrollOffset:G,treeData:ek,fieldNames:eh,onSelect:eq,treeExpandAction:F,treeTitleRender:er,onPopupScroll:eo,leftMaxCount:void 0===E?null:E-eW.length,leafCountOnly:"SHOW_CHILD"===eg&&!w&&!!$,valueEntities:eE}},[W,Q,V,K,G,ek,eh,eq,F,er,eo,E,eW.length,eg,w,$,eE]),eU=x.useMemo(function(){return{checkable:ec,loadData:M,treeLoadedKeys:R,onTreeLoad:P,checkedKeys:eH,halfCheckedKeys:eL,treeDefaultExpandAll:T,treeExpandedKeys:z,treeDefaultExpandedKeys:H,onTreeExpand:L,treeIcon:J,treeMotion:en,showTreeIcon:ee,switcherIcon:et,treeLine:Z,treeNodeFilterProp:h,keyEntities:eC}},[ec,M,R,P,eH,eL,T,z,H,L,J,en,ee,et,Z,h,eC]);return x.createElement(R0.Provider,{value:eY},x.createElement(RJ.Provider,{value:eU},x.createElement(fm,S({ref:t},ea,{id:ei,prefixCls:void 0===r?"rc-tree-select":r,mode:eu?"multiple":void 0,displayValues:eW,onDisplayValuesChange:eG,searchValue:ey,onSearch:function(e){e$(e),null==d||d(e)},OptionList:R5,emptyOptions:!ex.length,onDropdownVisibleChange:eX,dropdownMatchSelectWidth:Q}))))});Pn.TreeNode=RG,Pn.SHOW_ALL=R8,Pn.SHOW_PARENT=R7,Pn.SHOW_CHILD=R9;var Pr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Po=x.forwardRef((e,t)=>{var n,r,o,a,i;let l,{prefixCls:c,size:s,disabled:u,bordered:d=!0,style:f,className:p,rootClassName:m,treeCheckable:g,multiple:h,listHeight:v=256,listItemHeight:b,placement:y,notFoundContent:$,switcherIcon:w,treeLine:C,getPopupContainer:S,popupClassName:k,dropdownClassName:O,treeIcon:A=!1,transitionName:I,choiceTransitionName:N="",status:j,treeExpandAction:M,builtinPlacements:R,dropdownMatchSelectWidth:P,popupMatchSelectWidth:T,allowClear:z,variant:B,dropdownStyle:D,dropdownRender:H,popupRender:L,onDropdownVisibleChange:F,onOpenChange:W,tagRender:_,maxCount:V,showCheckedStrategy:q,treeCheckStrictly:K,styles:X,classNames:G}=e,Y=Pr(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:U,getPrefixCls:Q,renderEmpty:Z,direction:J,virtual:ee,popupMatchSelectWidth:et,popupOverflow:en}=x.useContext(eW),{styles:er,classNames:eo,switcherIcon:ea}=eq("treeSelect"),[,ei]=rq(),el=null!=b?b:(null==ei?void 0:ei.controlHeightSM)+(null==ei?void 0:ei.paddingXXS),ec=Q(),es=Q("select",c),eu=Q("select-tree",c),ed=Q("tree-select",c),{compactSize:ef,compactItemClassnames:ep}=i6(es,J),em=a$(es),eg=a$(ed),[eh,ev,eb]=pv(es,em),[ey]=rK("TreeSelect",e=>(e=>{let{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${tg(e.paddingXS)} ${tg(e.calc(e.paddingXS).div(2).equal())}`},j0(n,nR(e,{colorBgContainer:r}),!1),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},xm(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]})(nR(e,{treePrefixCls:eu})),j1)(ed,eg),[e$,ex]=f0("treeSelect",B,d),ew=E()((null==(n=null==G?void 0:G.popup)?void 0:n.root)||(null==(r=null==eo?void 0:eo.popup)?void 0:r.root)||k||O,`${ed}-dropdown`,{[`${ed}-dropdown-rtl`]:"rtl"===J},m,eo.root,null==G?void 0:G.root,eb,em,eg,ev),eC=(null==(o=null==X?void 0:X.popup)?void 0:o.root)||(null==(a=null==er?void 0:er.popup)?void 0:a.root)||D,eE=pS(L||H),eS=!!(g||h),ek=x.useMemo(()=>{if(!V||("SHOW_ALL"!==q||K)&&"SHOW_PARENT"!==q)return V},[V,q,K]),eO=pk(e.suffixIcon,e.showArrow),eA=null!=(i=null!=T?T:P)?i:et,{status:eI,hasFeedback:eN,isFormItemInput:ej,feedbackIcon:eM}=x.useContext(sq),{suffixIcon:eR,removeIcon:eP,clearIcon:eT}=pE(Object.assign(Object.assign({},Y),{multiple:eS,showSuffixIcon:eO,hasFeedback:eN,feedbackIcon:eM,prefixCls:es,componentName:"TreeSelect"}));l=void 0!==$?$:(null==Z?void 0:Z("Select"))||x.createElement(fJ,{componentName:"Select"});let ez=iX(Y,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),eB=x.useMemo(()=>void 0!==y?y:"rtl"===J?"bottomRight":"bottomLeft",[y,J]),eD=i1(e=>{var t;return null!=(t=null!=s?s:ef)?t:e}),eH=x.useContext(id),eL=E()(!c&&ed,{[`${es}-lg`]:"large"===eD,[`${es}-sm`]:"small"===eD,[`${es}-rtl`]:"rtl"===J,[`${es}-${e$}`]:ex,[`${es}-in-form-item`]:ej},fK(es,j||eI,eN),ep,p,m,eo.root,null==G?void 0:G.root,eb,em,eg,ev),eF=null!=w?w:ea,[e_]=aY("SelectLike",null==eC?void 0:eC.zIndex);return eh(ey(x.createElement(Pn,Object.assign({virtual:ee,disabled:null!=u?u:eH},ez,{dropdownMatchSelectWidth:eA,builtinPlacements:f1(R,en),ref:t,prefixCls:es,className:eL,style:Object.assign(Object.assign({},null==X?void 0:X.root),f),listHeight:v,listItemHeight:el,treeCheckable:g?x.createElement("span",{className:`${es}-tree-checkbox-inner`}):g,treeLine:!!C,suffixIcon:eR,multiple:eS,placement:eB,removeIcon:eP,allowClear:!0===z?{clearIcon:eT}:z,switcherIcon:e=>x.createElement(Me,{prefixCls:eu,switcherIcon:eF,treeNodeProps:e,showLine:C}),showTreeIcon:A,notFoundContent:l,getPopupContainer:S||U,treeMotion:null,dropdownClassName:ew,dropdownStyle:Object.assign(Object.assign({},eC),{zIndex:e_}),dropdownRender:eE,onDropdownVisibleChange:W||F,choiceTransitionName:iV(ec,"",N),transitionName:iV(ec,"slide-up",I),treeExpandAction:M,tagRender:eS?_:void 0,maxCount:ek,showCheckedStrategy:q,treeCheckStrictly:K}))))}),Pa=df(Po,"dropdownAlign",e=>iX(e,["visible"]));Po.TreeNode=RG,Po.SHOW_ALL=R8,Po.SHOW_PARENT=R7,Po.SHOW_CHILD=R9,Po._InternalPanelDoNotUseOrYouWillBeFired=Pa;let Pi=Po,Pl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var Pc=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:Pl}))});let Ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var Pu=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:Ps}))});let Pd=rK("Typography",e=>{let t,{componentCls:n,titleMarginTop:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success`]:{color:e.colorSuccessText},[`&${n}-warning`]:{color:e.colorWarningText},[`&${n}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
385
+ ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${tg(e.margin)})`,borderInlineStart:`${tg(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${tg(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${tg(e.marginSM)})`,width:`calc(50% - ${tg(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}})(nR(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2})),e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding}));var Rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Rn=e=>{var{prefixCls:t,className:n,color:r="blue",dot:o,pending:a=!1,position:i,label:l,children:c}=e,s=Rt(e,["prefixCls","className","color","dot","pending","position","label","children"]);let{getPrefixCls:u}=x.useContext(eW),d=u("timeline",t),f=E()(`${d}-item`,{[`${d}-item-pending`]:a},n),p=/blue|red|green|gray/.test(r||"")?void 0:r,m=E()(`${d}-item-head`,{[`${d}-item-head-custom`]:!!o,[`${d}-item-head-${r}`]:!p});return x.createElement("li",Object.assign({},s,{className:f}),l&&x.createElement("div",{className:`${d}-item-label`},l),x.createElement("div",{className:`${d}-item-tail`}),x.createElement("div",{className:m,style:{borderColor:p,color:p}},o),x.createElement("div",{className:`${d}-item-content`},c))};var Rr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ro=e=>{var{prefixCls:t,className:n,pending:r=!1,children:o,items:a,rootClassName:i,reverse:l=!1,direction:c,hashId:s,pendingDot:u,mode:d=""}=e,f=Rr(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);let p=(0,eM.A)(a||[]),m="boolean"==typeof r?null:r;r&&p.push({pending:!!r,dot:u||x.createElement(aq,null),children:m}),l&&p.reverse();let g=p.length,h=`${t}-item-last`,v=p.filter(e=>!!e).map((e,n)=>{var o,a,i;let c=n===g-2?h:"",s=n===g-1?h:"",{className:u}=e,f=Rr(e,["className"]);return x.createElement(Rn,Object.assign({},f,{className:E()([u,!l&&r?c:s,(a=null!=(o=null==e?void 0:e.position)?o:"",i=n,"alternate"===d?"right"===a?`${t}-item-right`:"left"===a||i%2==0?`${t}-item-left`:`${t}-item-right`:"left"===d?`${t}-item-left`:"right"===d||"right"===a?`${t}-item-right`:"")]),key:(null==e?void 0:e.key)||n}))}),b=p.some(e=>!!(null==e?void 0:e.label)),y=E()(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!l,[`${t}-${d}`]:!!d&&!b,[`${t}-label`]:b,[`${t}-rtl`]:"rtl"===c},n,i,s);return x.createElement("ol",Object.assign({},f,{className:y}),v)};var Ra=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ri=e=>{let{getPrefixCls:t,direction:n,timeline:r}=x.useContext(eW),{prefixCls:o,children:a,items:i,className:l,style:c}=e,s=Ra(e,["prefixCls","children","items","className","style"]),u=t("timeline",o),d=a$(u),[f,p,m]=Re(u,d),g=i&&Array.isArray(i)?i:j(a).map(e=>{var t,n;return Object.assign({children:null!=(n=null==(t=null==e?void 0:e.props)?void 0:t.children)?n:""},e.props)});return f(x.createElement(Ro,Object.assign({},s,{className:E()(null==r?void 0:r.className,l,m,d),style:Object.assign(Object.assign({},null==r?void 0:r.style),c),prefixCls:u,direction:n,items:g,hashId:p})))};Ri.Item=Rn;let Rl=Ri;function Rc(e){return null!==e&&"object"===(0,k.A)(e)}function Rs(e,t,n){if(!1===e||!1===t&&(!Rc(e)||!e.closeIcon))return null;var r,o="boolean"!=typeof t?t:void 0;return Rc(e)?(0,D.A)((0,D.A)({},e),{},{closeIcon:null!=(r=e.closeIcon)?r:o}):n||e||t?{closeIcon:o}:"empty"}var Ru={fill:"transparent",pointerEvents:"auto"};let Rd=function(e){var t=e.prefixCls,n=e.rootClassName,r=e.pos,o=e.showMask,a=e.style,i=e.fill,l=e.open,c=e.animated,s=e.zIndex,u=e.disabledInteraction,d=cI(),f="".concat(t,"-mask-").concat(d),p="object"===(0,k.A)(c)?null==c?void 0:c.placeholder:c,m="u">typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return w().createElement(cS,{open:l,autoLock:!0},w().createElement("div",{className:E()("".concat(t,"-mask"),n),style:(0,D.A)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:s,pointerEvents:r&&!u?"none":"auto"},void 0===a?{}:a)},o?w().createElement("svg",{style:{width:"100%",height:"100%"}},w().createElement("defs",null,w().createElement("mask",{id:f},w().createElement("rect",S({x:"0",y:"0"},m?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"},{fill:"white"})),r&&w().createElement("rect",{x:r.left,y:r.top,rx:r.radius,width:r.width,height:r.height,fill:"black",className:p?"".concat(t,"-placeholder-animated"):""}))),w().createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:void 0===i?"rgba(0,0,0,0.5)":i,mask:"url(#".concat(f,")")}),r&&w().createElement(w().Fragment,null,w().createElement("rect",S({},Ru,{x:"0",y:"0",width:"100%",height:r.top})),w().createElement("rect",S({},Ru,{x:"0",y:"0",width:r.left,height:"100%"})),w().createElement("rect",S({},Ru,{x:"0",y:r.top+r.height,width:"100%",height:"calc(100vh - ".concat(r.top+r.height,"px)")})),w().createElement("rect",S({},Ru,{x:r.left+r.width,y:"0",width:"calc(100vw - ".concat(r.left+r.width,"px)"),height:"100%"})))):null))};var Rf=[0,0],Rp={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Rm(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};return Object.keys(Rp).forEach(function(n){t[n]=(0,D.A)((0,D.A)({},Rp[n]),{},{autoArrow:e,targetOffset:Rf})}),t}function Rg(e){var t,n=e.prefixCls,r=e.current,o=e.total,a=e.title,i=e.description,l=e.onClose,c=e.onPrev,s=e.onNext,u=e.onFinish,d=e.className,f=e.closable,p=o5(f||{},!0),m=null!=(t=null==f?void 0:f.closeIcon)?t:x.createElement("span",{className:"".concat(n,"-close-x")},"\xd7"),g=!!f;return x.createElement("div",{className:E()("".concat(n,"-content"),d)},x.createElement("div",{className:"".concat(n,"-inner")},g&&x.createElement("button",S({type:"button",onClick:l,"aria-label":"Close"},p,{className:"".concat(n,"-close")}),m),x.createElement("div",{className:"".concat(n,"-header")},x.createElement("div",{className:"".concat(n,"-title")},a)),x.createElement("div",{className:"".concat(n,"-description")},i),x.createElement("div",{className:"".concat(n,"-footer")},x.createElement("div",{className:"".concat(n,"-sliders")},o>1?(0,eM.A)(Array.from({length:o}).keys()).map(function(e,t){return x.createElement("span",{key:e,className:t===r?"active":""})}):null),x.createElement("div",{className:"".concat(n,"-buttons")},0!==r?x.createElement("button",{className:"".concat(n,"-prev-btn"),onClick:c},"Prev"):null,r===o-1?x.createElement("button",{className:"".concat(n,"-finish-btn"),onClick:u},"Finish"):x.createElement("button",{className:"".concat(n,"-next-btn"),onClick:s},"Next")))))}Rm();let Rh=function(e){var t=e.current,n=e.renderPanel;return x.createElement(x.Fragment,null,"function"==typeof n?n(e,t):x.createElement(Rg,e))};var Rv=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],Rb={left:"50%",top:"50%",width:1,height:1},Ry={block:"center",inline:"center"};let R$=function(e){var t,n,r,o,a,i,l,c,s,u,d,f,p,m=e.prefixCls,g=void 0===m?"rc-tour":m,h=e.steps,v=void 0===h?[]:h,b=e.defaultCurrent,y=e.current,$=e.onChange,w=e.onClose,C=e.onFinish,O=e.open,A=e.mask,I=e.arrow,N=e.rootClassName,j=e.placement,M=e.renderPanel,R=e.gap,P=e.animated,T=e.scrollIntoViewOptions,z=e.zIndex,B=void 0===z?1001:z,H=e.closeIcon,L=e.closable,F=e.builtinPlacements,W=e.disabledInteraction,_=(0,r3.A)(e,Rv),V=x.useRef(),q=ny(0,{value:y,defaultValue:b}),K=(0,eK.A)(q,2),X=K[0],G=K[1],Y=ny(void 0,{value:O,postState:function(e){return!(X<0)&&!(X>=v.length)&&(null==e||e)}}),U=(0,eK.A)(Y,2),Q=U[0],Z=U[1],J=x.useState(Q),ee=(0,eK.A)(J,2),et=ee[0],en=ee[1],er=x.useRef(Q);t$(function(){Q&&(er.current||G(0),en(!0)),er.current=Q},[Q]);var eo=v[X]||{},ea=eo.target,ei=eo.placement,el=eo.style,ec=eo.arrow,es=eo.className,eu=eo.mask,ed=eo.scrollIntoViewOptions,ef=void 0===ed?Ry:ed,ep=eo.closeIcon,em=(t=eo.closable,x.useMemo(function(){var e=Rs(t,ep,!1),n=Rs(L,H,!0);return"empty"!==e?e:n},[L,H,t,ep])),eg=Q&&(null!=eu?eu:void 0===A||A),eh=(n=null!=ef?ef:void 0===T?Ry:T,r=(0,x.useState)(void 0),a=(o=(0,eK.A)(r,2))[0],i=o[1],t$(function(){i(("function"==typeof ea?ea():ea)||null)}),l=(0,x.useState)(null),s=(c=(0,eK.A)(l,2))[0],u=c[1],d=nh(function(){if(a){e=window.innerWidth||document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight,o=(r=a.getBoundingClientRect()).top,i=r.right,l=r.bottom,c=r.left,o>=0&&c>=0&&i<=e&&l<=t||!O||a.scrollIntoView(n);var e,t,r,o,i,l,c,s=a.getBoundingClientRect(),d={left:s.left,top:s.top,width:s.width,height:s.height,radius:0};u(function(e){return JSON.stringify(e)!==JSON.stringify(d)?d:e})}else u(null)}),f=function(e){var t;return null!=(t=Array.isArray(null==R?void 0:R.offset)?null==R?void 0:R.offset[e]:null==R?void 0:R.offset)?t:6},t$(function(){return d(),window.addEventListener("resize",d),function(){window.removeEventListener("resize",d)}},[a,O,d]),[(0,x.useMemo)(function(){if(!s)return s;var e,t=f(0),n=f(1),r="number"!=typeof(e=null==R?void 0:R.radius)||Number.isNaN(e)?2:null==R?void 0:R.radius;return{left:s.left-t,top:s.top-n,width:s.width+2*t,height:s.height+2*n,radius:r}},[s,R]),a]),ev=(0,eK.A)(eh,2),eb=ev[0],ey=ev[1],e$=null!=(p=null!=ei?ei:j)?p:null===ey?"center":"bottom",ex=!!ey&&(void 0===ec?void 0===I||I:ec),ew="object"===(0,k.A)(ex)&&ex.pointAtCenter;t$(function(){var e;null==(e=V.current)||e.forceAlign()},[ew,X]);var eC=function(e){G(e),null==$||$(e)},eE=(0,x.useMemo)(function(){return F?"function"==typeof F?F({arrowPointAtCenter:ew}):F:Rm(ew)},[F,ew]);if(void 0===ey||!et)return null;var eS=function(){Z(!1),null==w||w(X)},ek="boolean"==typeof eg?void 0:eg;return x.createElement(x.Fragment,null,x.createElement(Rd,{zIndex:B,prefixCls:g,pos:eb,showMask:"boolean"==typeof eg?eg:!!eg,style:null==ek?void 0:ek.style,fill:null==ek?void 0:ek.color,open:Q,animated:P,rootClassName:N,disabledInteraction:W}),x.createElement(fe,S({},_,{builtinPlacements:eE,ref:V,popupStyle:el,popupPlacement:e$,popupVisible:Q,popupClassName:E()(N,es),prefixCls:g,popup:function(){return x.createElement(Rh,S({arrow:ex,key:"content",prefixCls:g,total:v.length,renderPanel:M,onPrev:function(){eC(X-1)},onNext:function(){eC(X+1)},onClose:eS,current:X,onFinish:function(){eS(),null==C||C()}},v[X],{closable:em}))},forceRender:!1,destroyPopupOnHide:!0,zIndex:B,getTriggerDOMNode:function(e){return e||ey||document.body},arrow:!!ex}),x.createElement(cS,{open:Q,autoLock:!0},x.createElement("div",{className:E()(N,"".concat(g,"-target-placeholder")),style:(0,D.A)((0,D.A)({},eb||Rb),{},{position:"fixed",pointerEvents:"none"})}))))},Rx=e=>{var t,n;let r,{stepProps:o,current:a,type:i,indicatorsRender:l,actionsRender:c}=e,{prefixCls:s,total:u=1,title:d,onClose:f,onPrev:p,onNext:m,onFinish:g,cover:h,description:v,nextButtonProps:b,prevButtonProps:y,type:$,closable:x}=o,C=null!=$?$:i,S=o5(null!=x?x:{},!0),[k]=iK("global",io.global),[O]=iK("Tour",io.Tour),A=w().createElement("button",Object.assign({type:"button",onClick:f,className:`${s}-close`,"aria-label":null==k?void 0:k.close},S),(null==x?void 0:x.closeIcon)||w().createElement(of,{className:`${s}-close-icon`})),I=a===u-1,N=null!=d?w().createElement("div",{className:`${s}-header`},w().createElement("div",{className:`${s}-title`},d)):null,j=null!=v?w().createElement("div",{className:`${s}-description`},v):null,M=null!=h?w().createElement("div",{className:`${s}-cover`},h):null;r=l?l(a,u):(0,eM.A)(Array.from({length:u}).keys()).map((e,t)=>w().createElement("span",{key:e,className:E()(t===a&&`${s}-indicator-active`,`${s}-indicator`)}));let R=w().createElement(w().Fragment,null,0!==a?w().createElement(cu,Object.assign({size:"small"},{type:"default",ghost:"primary"===C},y,{onClick:()=>{var e;null==p||p(),null==(e=null==y?void 0:y.onClick)||e.call(y)},className:E()(`${s}-prev-btn`,null==y?void 0:y.className)}),null!=(t=null==y?void 0:y.children)?t:null==O?void 0:O.Previous):null,w().createElement(cu,Object.assign({size:"small",type:"primary"===C?"default":"primary"},b,{onClick:()=>{var e;I?null==g||g():null==m||m(),null==(e=null==b?void 0:b.onClick)||e.call(b)},className:E()(`${s}-next-btn`,null==b?void 0:b.className)}),null!=(n=null==b?void 0:b.children)?n:I?null==O?void 0:O.Finish:null==O?void 0:O.Next));return w().createElement("div",{className:`${s}-content`},w().createElement("div",{className:`${s}-inner`},x&&A,M,N,j,w().createElement("div",{className:`${s}-footer`},u>1&&w().createElement("div",{className:`${s}-indicators`},r),w().createElement("div",{className:`${s}-buttons`},c?c(R,{current:a,total:u}):R))))},Rw=rK("Tour",e=>{let{borderRadiusLG:t}=e;return(e=>{let{componentCls:t,padding:n,paddingXS:r,borderRadius:o,borderRadiusXS:a,colorPrimary:i,colorFill:l,indicatorHeight:c,indicatorWidth:s,boxShadowTertiary:u,zIndexPopup:d,colorBgElevated:f,fontWeightStrong:p,marginXS:m,colorTextLightSolid:g,tourBorderRadius:h,colorWhite:v,primaryNextBtnHoverBg:b,closeBtnSize:y,motionDurationSlow:$,antCls:x,primaryPrevBtnBg:w}=e;return[{[t]:Object.assign(Object.assign({},nF(e)),{position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":f,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:h,boxShadow:u,position:"relative",backgroundColor:f,border:"none",backgroundClip:"padding-box",[`${t}-close`]:Object.assign({position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:y,height:y,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},nq(e)),[`${t}-cover`]:{textAlign:"center",padding:`${tg(e.calc(n).add(y).add(r).equal())} ${tg(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${tg(n)} ${tg(n)} ${tg(r)}`,width:`calc(100% - ${tg(y)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:p}},[`${t}-description`]:{padding:`0 ${tg(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${tg(r)} ${tg(n)} ${tg(n)}`,textAlign:"end",borderRadius:`0 0 ${tg(a)} ${tg(a)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:s,height:c,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:i}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${x}-btn`]:{marginInlineStart:m}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":i,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:i,borderRadius:o,boxShadow:u,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:w,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:w,backgroundColor:i,"&:hover":{backgroundColor:w,borderColor:"transparent"}},[`${t}-next-btn`]:{color:i,borderColor:"transparent",background:v,"&:hover":{background:b}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${$}`}},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${t}-inner`]:{borderRadius:e.min(h,8)}}},p6(e,"var(--antd-arrow-background-color)")]})(nR(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t}))},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new n4(e.colorTextLightSolid).setA(.15).toRgbString(),primaryNextBtnHoverBg:new n4(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString()},p3({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),p2(e)));var RC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let RE=dd(e=>{let{prefixCls:t,current:n=0,total:r=6,className:o,style:a,type:i,closable:l,closeIcon:c}=e,s=RC(e,["prefixCls","current","total","className","style","type","closable","closeIcon"]),{getPrefixCls:u}=x.useContext(eW),d=u("tour",t),[f,p,m]=Rw(d),[g,h]=sJ({closable:l,closeIcon:c},null,{closable:!0,closeIconRender:e=>{var t;return x.isValidElement(e)?o9(e,{className:E()(null==(t=e.props)?void 0:t.className,`${d}-close-icon`)}):e}});return f(x.createElement(mp,{prefixCls:d,hashId:p,className:E()(o,`${d}-pure`,i&&`${d}-${i}`,m),style:a},x.createElement(Rx,{stepProps:Object.assign(Object.assign({},s),{prefixCls:d,total:r,closable:g?{closeIcon:h}:void 0}),current:n,type:i})))});var RS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Rk=e=>{let{prefixCls:t,type:n,rootClassName:r,indicatorsRender:o,actionsRender:a,steps:i,closeIcon:l}=e,c=RS(e,["prefixCls","type","rootClassName","indicatorsRender","actionsRender","steps","closeIcon"]),{getPrefixCls:s,direction:u,tour:d}=(0,x.useContext)(eW),f=s("tour",t),[p,m,g]=Rw(f),[,h]=rq(),v=w().useMemo(()=>null==i?void 0:i.map(e=>{var t;return Object.assign(Object.assign({},e),{className:E()(e.className,{[`${f}-primary`]:(null!=(t=e.type)?t:n)==="primary"})})}),[f,i,n]),b=E()({[`${f}-rtl`]:"rtl"===u},m,g,r),[y,$]=aY("Tour",c.zIndex);return p(w().createElement(aK.Provider,{value:$},w().createElement(R$,Object.assign({},c,{closeIcon:null!=l?l:null==d?void 0:d.closeIcon,zIndex:y,rootClassName:b,prefixCls:f,animated:!0,renderPanel:(e,t)=>w().createElement(Rx,{type:n,stepProps:e,current:t,indicatorsRender:o,actionsRender:a}),builtinPlacements:e=>{var t;return p9({arrowPointAtCenter:null==(t=null==e?void 0:e.arrowPointAtCenter)||t,autoAdjustOverflow:!0,offset:h.marginXXS,arrowWidth:h.sizePopupArrow,borderRadius:h.borderRadius})},steps:v}))))};Rk._InternalPanelDoNotUseOrYouWillBeFired=RE;let RO=Rk,RA=e=>{let t=new Map;return e.forEach((e,n)=>{t.set(e,n)}),t},RI=[];function RN(e,t){let n=e.filter(e=>t.has(e));return e.length===n.length?e:n}function Rj(e){return Array.from(e).join(";")}let RM=function(e,t,n){let[r,o]=x.useMemo(()=>[new Set(e.map(e=>null==e?void 0:e.key)),new Set(t.map(e=>null==e?void 0:e.key))],[e,t]),[a,i]=ny(RI,{value:n}),l=x.useMemo(()=>RN(a,r),[a,r]),c=x.useMemo(()=>RN(a,o),[a,o]);x.useEffect(()=>{i([].concat((0,eM.A)(RN(a,r)),(0,eM.A)(RN(a,o))))},[Rj(r),Rj(o)]);let s=nh(e=>{i([].concat((0,eM.A)(e),(0,eM.A)(c)))}),u=nh(e=>{i([].concat((0,eM.A)(l),(0,eM.A)(e)))});return[l,c,s,u]},RR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var RP=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:RR}))});let RT=x.memo(e=>{let t,{renderedText:n,renderedEl:r,item:o,checked:a,disabled:i,prefixCls:l,onClick:c,onRemove:s,showRemove:u}=e,d=E()(`${l}-content-item`,{[`${l}-content-item-disabled`]:i||o.disabled,[`${l}-content-item-checked`]:a&&!o.disabled});("string"==typeof n||"number"==typeof n)&&(t=String(n));let[f]=iK("Transfer",io.Transfer),p={className:d,title:t},m=x.createElement("span",{className:`${l}-content-item-text`},r);return u?x.createElement("li",Object.assign({},p),m,x.createElement("button",{type:"button",disabled:i||o.disabled,className:`${l}-content-item-remove`,"aria-label":null==f?void 0:f.remove,onClick:()=>null==s?void 0:s(o)},x.createElement(RP,null))):(p.onClick=i||o.disabled?void 0:e=>c(o,e),x.createElement("li",Object.assign({},p),x.createElement(xM,{className:`${l}-checkbox`,checked:a,disabled:i||o.disabled}),m))}),Rz=["handleFilter","handleClear","checkedKeys"],RB=x.forwardRef((e,t)=>{let{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:l,onScroll:c,onItemSelect:s,onItemRemove:u}=e,[d,f]=x.useState(1),p=x.useMemo(()=>{var e;return l?(e="object"==typeof l?l:{},Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e)):null},[l]),[m,g]=ny(10,{value:null==p?void 0:p.pageSize});x.useEffect(()=>{p&&f(Math.min(d,Math.ceil(r.length/m)))},[r,p,m]);let h=(e,t)=>{s(e.key,!o.includes(e.key),t)},v=e=>{null==u||u([e.key])},b=x.useMemo(()=>p?r.slice((d-1)*m,d*m):r,[d,r,p,m]);x.useImperativeHandle(t,()=>({items:b}));let y=p?x.createElement(Oh,{size:"small",disabled:a,simple:p.simple,pageSize:m,showLessItems:p.showLessItems,showSizeChanger:p.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:e=>{f(e)},onShowSizeChange:(e,t)=>{f(e),g(t)}}):null,$=E()(`${n}-content`,{[`${n}-content-show-remove`]:i});return x.createElement(x.Fragment,null,x.createElement("ul",{className:$,onScroll:c},(b||[]).map(({renderedEl:e,renderedText:t,item:r})=>x.createElement(RT,{key:r.key,item:r,renderedText:t,renderedEl:e,prefixCls:n,showRemove:i,onClick:h,onRemove:v,checked:o.includes(r.key),disabled:a||r.disabled}))),y)}),RD=e=>{let{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,l=x.useCallback(e=>{null==a||a(e),""===e.target.value&&(null==i||i())},[a]);return x.createElement(w6,{placeholder:t,className:r,value:n,onChange:l,disabled:o,allowClear:!0,prefix:x.createElement(pC,null)})},RH=()=>null;function RL(e){return e.filter(e=>!e.disabled).map(e=>e.key)}let RF=e=>{var t,n;let r,{prefixCls:o,dataSource:a=[],titleText:i="",checkedKeys:l,disabled:c,showSearch:s=!1,style:u,searchPlaceholder:d,notFoundContent:f,selectAll:p,deselectAll:m,selectCurrent:g,selectInvert:h,removeAll:v,removeCurrent:b,showSelectAll:y=!0,showRemove:$,pagination:C,direction:S,itemsUnit:k,itemUnit:O,selectAllLabel:A,selectionsIcon:I,footer:N,renderList:j,onItemSelectAll:M,onItemRemove:R,handleFilter:P,handleClear:T,filterOption:z,render:B=RH}=e,D=s&&"object"==typeof s?Object.assign(Object.assign({},s),{defaultValue:s.defaultValue||""}):{defaultValue:"",placeholder:""},[H,L]=(0,x.useState)(D.defaultValue),F=(0,x.useRef)({}),W=e=>{L(e.target.value),P(e)},_=()=>{L(""),T()},V=(0,x.useMemo)(()=>Array.isArray(f)?f[+("left"!==S)]:f,[f,S]),[q,K]=(0,x.useMemo)(()=>{let e=[],t=[];return a.forEach(n=>{var r;let o,a,i=(a=!!((o=B(n))&&!w().isValidElement(o)&&"[object Object]"===Object.prototype.toString.call(o)),{item:n,renderedEl:a?o.label:o,renderedText:a?o.value:o});(!H||(r=i.renderedText,"function"==typeof z?z(H,n,S):r.includes(H)))&&(e.push(n),t.push(i))}),[e,t]},[a,H]),X=(0,x.useMemo)(()=>q.filter(e=>l.includes(e.key)&&!e.disabled),[l,q]),G=(0,x.useMemo)(()=>{if(0===X.length)return"none";let e=RA(l);return q.every(t=>e.has(t.key)||!!t.disabled)?"all":"part"},[X.length,l,q]),Y=w().createElement(xM,{disabled:0===a.filter(e=>!e.disabled).length||c,checked:"all"===G,indeterminate:"part"===G,className:`${o}-checkbox`,onChange:()=>{null==M||M(q.filter(e=>!e.disabled).map(({key:e})=>e),"all"!==G)}}),U=N&&(N.length<2?N(e):N(e,{direction:S})),Q=E()(o,{[`${o}-with-pagination`]:!!C,[`${o}-with-footer`]:!!U}),Z=U?w().createElement("div",{className:`${o}-footer`},U):null;r=$?[C?{key:"removeCurrent",label:b,onClick(){var e;let t=RL(((null==(e=F.current)?void 0:e.items)||[]).map(e=>e.item));null==R||R(t)}}:null,{key:"removeAll",label:v,onClick(){null==R||R(RL(q))}}].filter(Boolean):[{key:"selectAll",label:"all"===G?m:p,onClick(){let e=RL(q);null==M||M(e,e.length!==l.length)}},C?{key:"selectCurrent",label:g,onClick(){var e;let t=(null==(e=F.current)?void 0:e.items)||[];null==M||M(RL(t.map(e=>e.item)),!0)}}:null,{key:"selectInvert",label:h,onClick(){var e;let t=RL(((null==(e=F.current)?void 0:e.items)||[]).map(e=>e.item)),n=new Set(l),r=new Set(n);t.forEach(e=>{n.has(e)?r.delete(e):r.add(e)}),null==M||M(Array.from(r),"replace")}}];let J=w().createElement(E4,{className:`${o}-header-dropdown`,menu:{items:r},disabled:c},void 0!==I?I:w().createElement(px,null));return w().createElement("div",{className:Q,style:u},w().createElement("div",{className:`${o}-header`},y?w().createElement(w().Fragment,null,!$&&!C&&Y,J):null,w().createElement("span",{className:`${o}-header-selected`},(t=X.length,n=q.length,A?"function"==typeof A?A({selectedCount:t,totalCount:n}):A:w().createElement(w().Fragment,null,(t>0?`${t}/`:"")+n," ",n>1?k:O))),w().createElement("span",{className:`${o}-header-title`},i)),(()=>{var t;let n,r,a,i=s?w().createElement("div",{className:`${o}-body-search-wrapper`},w().createElement(RD,{prefixCls:`${o}-search`,onChange:W,handleClear:_,placeholder:D.placeholder||d,value:H,disabled:c})):null,{customize:u,bodyContent:f}=(t=Object.assign(Object.assign({},iX(e,Rz)),{filteredItems:q,filteredRenderItems:K,selectedKeys:l}),(a=!!(r=j?j(Object.assign(Object.assign({},t),{onItemSelect:(e,n)=>t.onItemSelect(e,n)})):null))||(r=w().createElement(RB,Object.assign({ref:F},t))),{customize:a,bodyContent:r});return n=u?w().createElement("div",{className:`${o}-body-customize-wrapper`},f):q.length?f:w().createElement("div",{className:`${o}-body-not-found`},V),w().createElement("div",{className:E()(`${o}-body`,{[`${o}-body-with-search`]:s})},i,n)})(),Z)},RW=e=>{let{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:l,className:c,style:s,direction:u,oneWay:d}=e;return x.createElement("div",{className:c,style:s},x.createElement(cu,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:"rtl"!==u?x.createElement(lT,null):x.createElement(mW,null)},a),!d&&x.createElement(cu,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:"rtl"!==u?x.createElement(mW,null):x.createElement(lT,null)},o))},R_=(e,t)=>{let{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},RV=rK("Transfer",e=>{let t=nR(e);return[(e=>{let{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:a,fontSizeIcon:i,colorBgContainerDisabled:l}=e;return{[r]:Object.assign(Object.assign({},nF(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:(e=>{let{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:l,itemPaddingBlock:c,controlItemBgActive:s,colorTextDisabled:u,colorTextSecondary:d,listHeight:f,listWidth:p,listWidthLG:m,fontSizeIcon:g,marginXS:h,paddingSM:v,lineType:b,antCls:y,iconCls:$,motionDurationSlow:x,controlItemBgHover:w,borderRadiusLG:C,colorBgContainer:E,colorText:S,controlItemBgActiveHover:k}=e,O=tg(e.calc(C).sub(o).equal());return{display:"flex",flexDirection:"column",width:p,height:f,border:`${tg(o)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${$}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${tg(e.calc(l).sub(o).equal())} ${tg(v)} ${tg(l)}`,color:S,background:E,borderBottom:`${tg(o)} ${b} ${r}`,borderRadius:`${tg(C)} ${tg(C)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},nL),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},nW()),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:v}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${O} ${O}`,"&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${tg(c)} ${tg(v)}`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},nL),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},nX(e)),{color:n,"&:hover, &:focus":{color:d}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:k}},"&-checked":{backgroundColor:s},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${tg(o)} ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${tg(o)} ${b} ${r}`},"&-checkbox":{lineHeight:1}}})(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${tg(o)}`,verticalAlign:"middle",gap:a,[`${t}-btn ${n}`]:{fontSize:i}}})}})(t),(e=>{let{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o}=e,a=`${t}-table`,i=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:o,minWidth:o}},[`${a}-pagination${a}-pagination`]:{margin:0,padding:e.paddingXS}},[`${i}[disabled]`]:{backgroundColor:"transparent"}}}})(t),(e=>{let{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},R_(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},R_(e,e.colorWarning))}})(t),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o,lineWidth:a}=e,i=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-i)/2,transferHeaderVerticalPadding:Math.ceil((o-a-i)/2)}}),Rq=e=>{var t;let{dataSource:n,targetKeys:r=[],selectedKeys:o,selectAllLabels:a=[],operations:i=[],style:l={},listStyle:c={},locale:s={},titles:u,disabled:d,showSearch:f=!1,operationStyle:p,showSelectAll:m,oneWay:g,pagination:h,status:v,prefixCls:b,className:y,rootClassName:$,selectionsIcon:C,filterOption:S,render:k,footer:O,children:A,rowKey:I,onScroll:N,onChange:j,onSearch:M,onSelectChange:R}=e,{getPrefixCls:P,renderEmpty:T,direction:z,transfer:B}=(0,x.useContext)(eW),D=(0,x.useContext)(id),H=null!=d?d:D,L=P("transfer",b),[F,W,_]=RV(L),[V,q,K]=((e,t,n)=>{let r=x.useMemo(()=>(e||[]).map(e=>t?Object.assign(Object.assign({},e),{key:t(e)}):e),[e,t]),[o,a]=x.useMemo(()=>{var e;let t=[],o=Array.from({length:null!=(e=null==n?void 0:n.length)?e:0}),a=RA(n||[]);return r.forEach(e=>{a.has(e.key)?o[a.get(e.key)]=e:t.push(e)}),[t,o]},[r,n]);return[r,o.filter(Boolean),a.filter(Boolean)]})(n,I,r),[X,G,Y,U]=RM(q,K,o),[Q,Z]=jv(e=>e.key),[J,ee]=jv(e=>e.key),et=(0,x.useCallback)((e,t)=>{"left"===e?Y("function"==typeof t?t(X||[]):t):U("function"==typeof t?t(G||[]):t)},[X,G]),en=(e,t)=>{("left"===e?Z:ee)(t)},er=(0,x.useCallback)((e,t)=>{"left"===e?null==R||R(t,G):null==R||R(X,t)},[X,G]),eo=e=>{let t,n="right"===e?X:G,o=(t=new Map,V.forEach(({disabled:e,key:n},r)=>{e&&t.set(n,r)}),t),a=n.filter(e=>!o.has(e)),i=RA(a),l="right"===e?a.concat(r):r.filter(e=>!i.has(e)),c="right"===e?"left":"right";et(c,[]),er(c,[]),null==j||j(l,e,a)},ea=(e,t,n)=>{et(e,r=>{let o=[];if("replace"===n)o=t;else if(n)o=Array.from(new Set([].concat((0,eM.A)(r),(0,eM.A)(t))));else{let e=RA(t);o=r.filter(t=>!e.has(t))}return er(e,o),o}),en(e,null)},ei=(t,n,r,o)=>{let a="left"===t,i=(0,eM.A)(a?X:G),l=new Set(i),c=(0,eM.A)(a?q:K).filter(e=>!(null==e?void 0:e.disabled)),s=c.findIndex(e=>e.key===n);if(o&&i.length>0)("left"===t?Q:J)(s,c,l);else l.has(n)&&(l.delete(n),en(t,null)),r&&(l.add(n),en(t,s));let u=Array.from(l);er(t,u),e.selectedKeys||et(t,u)},el=e=>"function"==typeof c?c({direction:e}):c||{},{hasFeedback:ec,status:es}=(0,x.useContext)(sq),eu=!A&&h,ed=K.filter(e=>G.includes(e.key)&&!e.disabled).length>0,ef=q.filter(e=>X.includes(e.key)&&!e.disabled).length>0,ep=E()(L,{[`${L}-disabled`]:H,[`${L}-customize-list`]:!!A,[`${L}-rtl`]:"rtl"===z},fK(L,v||es,ec),null==B?void 0:B.className,y,$,W,_),[em]=iK("Transfer",io.Transfer),eg=Object.assign(Object.assign(Object.assign({},em),{notFoundContent:(null==T?void 0:T("Transfer"))||w().createElement(fJ,{componentName:"Transfer"})}),s),[eh,ev]=null!=(t=null!=u?u:eg.titles)?t:[],eb=null!=C?C:null==B?void 0:B.selectionsIcon;return F(w().createElement("div",{className:ep,style:Object.assign(Object.assign({},null==B?void 0:B.style),l)},w().createElement(RF,Object.assign({prefixCls:`${L}-list`,titleText:eh,dataSource:q,filterOption:S,style:el("left"),checkedKeys:X,handleFilter:e=>null==M?void 0:M("left",e.target.value),handleClear:()=>null==M?void 0:M("left",""),onItemSelect:(e,t,n)=>{ei("left",e,t,null==n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ea("left",e,t)},render:k,showSearch:f,renderList:A,footer:O,onScroll:e=>{null==N||N("left",e)},disabled:H,direction:"rtl"===z?"right":"left",showSelectAll:m,selectAllLabel:a[0],pagination:eu,selectionsIcon:eb},eg)),w().createElement(RW,{className:`${L}-operation`,rightActive:ef,rightArrowText:i[0],moveToRight:()=>{eo("right"),en("right",null)},leftActive:ed,leftArrowText:i[1],moveToLeft:()=>{eo("left"),en("left",null)},style:p,disabled:H,direction:z,oneWay:g}),w().createElement(RF,Object.assign({prefixCls:`${L}-list`,titleText:ev,dataSource:K,filterOption:S,style:el("right"),checkedKeys:G,handleFilter:e=>null==M?void 0:M("right",e.target.value),handleClear:()=>null==M?void 0:M("right",""),onItemSelect:(e,t,n)=>{ei("right",e,t,null==n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ea("right",e,t)},onItemRemove:e=>{et("right",[]),null==j||j(r.filter(t=>!e.includes(t)),"left",(0,eM.A)(e))},render:k,showSearch:f,renderList:A,footer:O,onScroll:e=>{null==N||N("right",e)},disabled:H,direction:"rtl"===z?"left":"right",showSelectAll:m,selectAllLabel:a[1],showRemove:g,pagination:eu,selectionsIcon:eb},eg))))};Rq.List=RF,Rq.Search=RD,Rq.Operation=RW;let RK=Rq,RX=function(e){var t=x.useRef({valueLabels:new Map});return x.useMemo(function(){var n=t.current.valueLabels,r=new Map,o=e.map(function(e){var t=e.value,o=e.label,a=null!=o?o:n.get(t);return r.set(t,a),(0,D.A)((0,D.A)({},e),{},{label:a})});return t.current.valueLabels=r,[o]},[e])},RG=function(){return null};var RY=["children","value"];function RU(e){if(!e)return e;var t=(0,D.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return B(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}let RQ=function(e,t,n){var r=n.fieldNames,o=n.treeNodeFilterProp,a=n.filterTreeNode,i=r.children;return x.useMemo(function(){if(!t||!1===a)return e;var n="function"==typeof a?a:function(e,n){return String(n[o]).toUpperCase().includes(t.toUpperCase())};return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce(function(r,a){var l=a[i],c=o||n(t,RU(a)),s=e(l||[],c);return(c||s.length)&&r.push((0,D.A)((0,D.A)({},a),{},(0,eX.A)({isLeaf:void 0},i,s))),r},[])}(e)},[e,t,i,o,a])};function RZ(e){var t=x.useRef();return t.current=e,x.useCallback(function(){return t.current.apply(t,arguments)},[])}var RJ=x.createContext(null),R0=x.createContext(null),R1=function(e){var t=e||{},n=t.label,r=t.value;return{_title:n?[n]:["title","label"],value:r||"value",key:r||"value",children:t.children||"children"}},R2=function(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable},R4=function(e,t){var n=[];return!function e(r){r.forEach(function(r){var o=r[t.children];o&&(n.push(r[t.value]),e(o))})}(e),n},R3=function(e){return null==e},R6={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R5=x.forwardRef(function(e,t){var n=dv(),r=n.prefixCls,o=n.multiple,a=n.searchValue,i=n.toggleOpen,l=n.open,c=n.notFoundContent,s=x.useContext(R0),u=s.virtual,d=s.listHeight,f=s.listItemHeight,p=s.listItemScrollOffset,m=s.treeData,g=s.fieldNames,h=s.onSelect,v=s.dropdownMatchSelectWidth,b=s.treeExpandAction,y=s.treeTitleRender,$=s.onPopupScroll,w=s.leftMaxCount,C=s.leafCountOnly,E=s.valueEntities,k=x.useContext(RJ),O=k.checkable,A=k.checkedKeys,I=k.halfCheckedKeys,N=k.treeExpandedKeys,j=k.treeDefaultExpandAll,M=k.treeDefaultExpandedKeys,R=k.onTreeExpand,P=k.treeIcon,T=k.showTreeIcon,z=k.switcherIcon,B=k.treeLine,D=k.treeNodeFilterProp,H=k.loadData,L=k.treeLoadedKeys,F=k.treeMotion,W=k.onTreeLoad,_=k.keyEntities,V=x.useRef(),K=q(function(){return m},[l,m],function(e,t){return t[0]&&e[1]!==t[1]}),X=x.useMemo(function(){return O?{checked:A,halfChecked:I}:null},[O,A,I]);x.useEffect(function(){if(l&&!o&&A.length){var e;null==(e=V.current)||e.scrollTo({key:A[0]})}},[l]);var G=function(e){e.preventDefault()},Y=function(e,t){var n=t.node;!(O&&R2(n))&&(h(n.key,{selected:!A.includes(n.key)}),o||i(!1))},U=x.useState(M),Q=(0,eK.A)(U,2),Z=Q[0],J=Q[1],ee=x.useState(null),et=(0,eK.A)(ee,2),en=et[0],er=et[1],eo=x.useMemo(function(){return N?(0,eM.A)(N):a?en:Z},[Z,en,N,a]),ea=String(a).toLowerCase(),ei=function(e){return!!ea&&String(e[D]).toLowerCase().includes(ea)};x.useEffect(function(){a&&er(R4(m,g))},[a]);var el=x.useState(function(){return new Map}),ec=(0,eK.A)(el,2),es=ec[0],eu=ec[1];x.useEffect(function(){w&&eu(new Map)},[w]);var ed=nh(function(e){var t=e[g.value];if(A.includes(t)||null===w)return!1;if(w<=0)return!0;if(C&&w){var n=e[g.value];if(!es.has(n)){var r=E.get(n);if(0===(r.children||[]).length)es.set(n,!1);else{var o=r.children.filter(function(e){return!e.node.disabled&&!e.node.disableCheckbox&&!A.includes(e.node[g.value])}).length;es.set(n,o>w)}}return es.get(n)}return!1}),ef=function e(t){var n,r=(0,AK.A)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!o.disabled&&!1!==o.selectable){if(!a||ei(o))return o;if(o[g.children]){var i=e(o[g.children]);if(i)return i}}}}catch(e){r.e(e)}finally{r.f()}return null},ep=x.useState(null),em=(0,eK.A)(ep,2),eg=em[0],eh=em[1],ev=_[eg];x.useEffect(function(){if(l){var e,t=null;eh(t=o||!A.length||a?(e=ef(K))?e[g.value]:null:A[0])}},[l,a]),x.useImperativeHandle(t,function(){var e;return{scrollTo:null==(e=V.current)?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case aM.UP:case aM.DOWN:case aM.LEFT:case aM.RIGHT:null==(t=V.current)||t.onKeyDown(e);break;case aM.ENTER:if(ev){var n=ed(ev.node),r=(null==ev?void 0:ev.node)||{},o=r.selectable,a=r.value,l=r.disabled;!1===o||l||n||Y(null,{node:{key:eg},selected:!A.includes(a)})}break;case aM.ESC:i(!1)}},onKeyUp:function(){}}});var eb=q(function(){return!a},[a,N||Z],function(e,t){var n=(0,eK.A)(e,1)[0],r=(0,eK.A)(t,2),o=r[0],a=r[1];return n!==o&&!!(o||a)});if(0===K.length)return x.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:G},c);var ey={fieldNames:g};return L&&(ey.loadedKeys=L),eo&&(ey.expandedKeys=eo),x.createElement("div",{onMouseDown:G},ev&&l&&x.createElement("span",{style:R6,"aria-live":"assertive"},ev.node.value),x.createElement(jo.Provider,{value:{nodeDisabled:ed}},x.createElement(jV,S({ref:V,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:K,height:d,itemHeight:f,itemScrollOffset:p,virtual:!1!==u&&!1!==v,multiple:o,icon:P,showIcon:T,switcherIcon:z,showLine:B,loadData:eb?H:null,motion:F,activeKey:eg,checkable:O,checkStrictly:!0,checkedKeys:X,selectedKeys:O?[]:A,defaultExpandAll:j,titleRender:y},ey,{onActiveChange:eh,onSelect:Y,onCheck:Y,onExpand:function(e){J(e),er(e),R&&R(e)},onLoad:W,filterTreeNode:ei,expandAction:b,onScroll:$}))))}),R8="SHOW_ALL",R7="SHOW_PARENT",R9="SHOW_CHILD";function Pe(e,t,n,r){var o=new Set(e);return t===R9?e.filter(function(e){var t=n[e];return!t||!t.children||!t.children.some(function(e){var t=e.node;return o.has(t[r.value])})||!t.children.every(function(e){var t=e.node;return R2(t)||o.has(t[r.value])})}):t===R7?e.filter(function(e){var t=n[e],r=t?t.parent:null;return!r||R2(r.node)||!o.has(r.key)}):e}var Pt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"],Pn=x.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=e.value,a=e.defaultValue,i=e.onChange,l=e.onSelect,c=e.onDeselect,s=e.searchValue,u=e.inputValue,d=e.onSearch,f=e.autoClearSearchValue,p=void 0===f||f,m=e.filterTreeNode,g=e.treeNodeFilterProp,h=void 0===g?"value":g,v=e.showCheckedStrategy,b=e.treeNodeLabelProp,y=e.multiple,$=e.treeCheckable,w=e.treeCheckStrictly,C=e.labelInValue,E=e.maxCount,O=e.fieldNames,A=e.treeDataSimpleMode,I=e.treeData,N=e.children,M=e.loadData,R=e.treeLoadedKeys,P=e.onTreeLoad,T=e.treeDefaultExpandAll,z=e.treeExpandedKeys,H=e.treeDefaultExpandedKeys,L=e.onTreeExpand,F=e.treeExpandAction,W=e.virtual,_=e.listHeight,V=void 0===_?200:_,q=e.listItemHeight,K=void 0===q?20:q,X=e.listItemScrollOffset,G=void 0===X?0:X,Y=e.onDropdownVisibleChange,U=e.dropdownMatchSelectWidth,Q=void 0===U||U,Z=e.treeLine,J=e.treeIcon,ee=e.showTreeIcon,et=e.switcherIcon,en=e.treeMotion,er=e.treeTitleRender,eo=e.onPopupScroll,ea=(0,r3.A)(e,Pt),ei=fH(n),el=$&&!w,ec=$||w,es=w||C,eu=ec||y,ed=ny(a,{value:o}),ef=(0,eK.A)(ed,2),ep=ef[0],em=ef[1],eg=x.useMemo(function(){return $?v||R9:R8},[v,$]),eh=x.useMemo(function(){return R1(O)},[JSON.stringify(O)]),ev=ny("",{value:void 0!==s?s:u,postState:function(e){return e||""}}),eb=(0,eK.A)(ev,2),ey=eb[0],e$=eb[1],ex=x.useMemo(function(){if(I){if(A){var e,t,n,r,o,a=(0,D.A)({id:"id",pId:"pId",rootPId:null},"object"===(0,k.A)(A)?A:{});return e=a.id,t=a.pId,n=a.rootPId,r=new Map,o=[],I.forEach(function(t){var n=t[e],o=(0,D.A)((0,D.A)({},t),{},{key:t.key||n});r.set(n,o)}),r.forEach(function(e){var a=e[t],i=r.get(a);i?(i.children=i.children||[],i.children.push(e)):(a===n||null===n)&&o.push(e)}),o}return I}return function e(t){return j(t).map(function(t){if(!x.isValidElement(t)||!t.type)return null;var n=t.key,r=t.props,o=r.children,a=r.value,i=(0,r3.A)(r,RY),l=(0,D.A)({key:n,value:a},i),c=e(o);return c.length&&(l.children=c),l}).filter(function(e){return e})}(N)},[N,A,I]),ew=x.useMemo(function(){return $J(ex,{fieldNames:eh,initWrapper:function(e){return(0,D.A)((0,D.A)({},e),{},{valueEntities:new Map})},processEntity:function(e,t){var n=e.node[eh.value];t.valueEntities.set(n,e)}})},[ex,eh]),eC=ew.keyEntities,eE=ew.valueEntities,eS=x.useCallback(function(e){var t=[],n=[];return e.forEach(function(e){eE.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[eE]),ek=RQ(ex,ey,{fieldNames:eh,treeNodeFilterProp:h,filterTreeNode:m}),eO=x.useCallback(function(e){if(e){if(b)return e[b];for(var t=eh._title,n=0;n<t.length;n+=1){var r=e[t[n]];if(void 0!==r)return r}}},[eh,b]),eA=x.useCallback(function(e){return(Array.isArray(e)?e:void 0!==e?[e]:[]).map(function(e){return e&&"object"===(0,k.A)(e)?e:{value:e}})},[]),eI=x.useCallback(function(e){return eA(e).map(function(e){var t,n,r=e.label,o=e.value,a=e.halfChecked,i=eE.get(o);return i?(r=er?er(i.node):null!=(n=r)?n:eO(i.node),t=i.node.disabled):void 0===r&&(r=eA(ep).find(function(e){return e.value===o}).label),{label:r,value:o,halfChecked:a,disabled:t}})},[eE,eO,eA,ep]),eN=x.useMemo(function(){return eA(null===ep?[]:ep)},[eA,ep]),ej=x.useMemo(function(){var e=[],t=[];return eN.forEach(function(n){n.halfChecked?t.push(n):e.push(n)}),[e,t]},[eN]),eR=(0,eK.A)(ej,2),eP=eR[0],eT=eR[1],ez=x.useMemo(function(){return eP.map(function(e){return e.value})},[eP]),eB=x.useMemo(function(){var e=function(e){return e.map(function(e){return e.value})},t=e(eP),n=e(eT),r=t.filter(function(e){return!eC[e]}),o=t,a=n;if(el){var i=$5(t,!0,eC);o=i.checkedKeys,a=i.halfCheckedKeys}return[Array.from(new Set([].concat((0,eM.A)(r),(0,eM.A)(o)))),a]},[eP,eT,el,eC]),eD=(0,eK.A)(eB,2),eH=eD[0],eL=eD[1],eF=RX(x.useMemo(function(){var e=eI(Pe(eH,eg,eC,eh).map(function(e){var t,n;return null!=(t=null==(n=eC[e])||null==(n=n.node)?void 0:n[eh.value])?t:e}).map(function(e){var t=eP.find(function(t){return t.value===e});return{value:e,label:C?null==t?void 0:t.label:null==er?void 0:er(t)}})),t=e[0];return!eu&&t&&R3(t.value)&&R3(t.label)?[]:e.map(function(e){var t;return(0,D.A)((0,D.A)({},e),{},{label:null!=(t=e.label)?t:e.value})})},[eh,eu,eH,eP,eI,eg,eC])),eW=(0,eK.A)(eF,1)[0],e_=x.useMemo(function(){return eu&&("SHOW_CHILD"===eg||w||!$)?E:null},[E,eu,w,eg,$]),eV=RZ(function(e,t,n){var r=Pe(e,eg,eC,eh);if((!e_||!(r.length>e_))&&(em(eI(e)),p&&e$(""),i)){var o=e;el&&(o=r.map(function(e){var t=eE.get(e);return t?t.node[eh.value]:e}));var a=t||{triggerValue:void 0,selected:void 0},l=a.triggerValue,c=a.selected,s=o;if(w){var u=eT.filter(function(e){return!o.includes(e.value)});s=[].concat((0,eM.A)(s),(0,eM.A)(u))}var d=eI(s),f={preValue:eP,triggerValue:l},m=!0;(w||"selection"===n&&!c)&&(m=!1);var g=m,h=null,v=null;function b(){v||(v=[],function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n.map(function(n,a){var i="".concat(r,"-").concat(a),c=n[eh.value],s=e.includes(c),u=t(n[eh.children]||[],i,s),d=x.createElement(RG,n,u.map(function(e){return e.node}));if(l===c&&(h=d),s){var f={pos:i,node:d,children:u};return o||v.push(f),f}return null}).filter(function(e){return e})}(ex),v.sort(function(t,n){var r=t.node.props.value,o=n.node.props.value;return e.indexOf(r)-e.indexOf(o)}))}Object.defineProperty(f,"triggerNode",{get:function(){return B(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),b(),h}}),Object.defineProperty(f,"allCheckedNodes",{get:function(){return(B(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),b(),g)?v:v.map(function(e){return e.node})}}),ec?f.checked=c:f.selected=c;var y=es?d:d.map(function(e){return e.value});i(eu?y:y[0],es?null:d.map(function(e){return e.label}),f)}}),eq=x.useCallback(function(e,t){var n=t.selected,r=t.source,o=eC[e],a=null==o?void 0:o.node,i=null!=(u=null==a?void 0:a[eh.value])?u:e;if(eu){var s=n?[].concat((0,eM.A)(ez),[i]):eH.filter(function(e){return e!==i});if(el){var u,d,f=eS(s),p=f.missingRawValues,m=f.existRawValues.map(function(e){return eE.get(e).key});d=n?$5(m,!0,eC).checkedKeys:$5(m,{checked:!1,halfCheckedKeys:eL},eC).checkedKeys,s=[].concat((0,eM.A)(p),(0,eM.A)(d.map(function(e){return eC[e].node[eh.value]})))}eV(s,{selected:n,triggerValue:i},r||"option")}else eV([i],{selected:!0,triggerValue:i},"option");n||!eu?null==l||l(i,RU(a)):null==c||c(i,RU(a))},[eS,eE,eC,eh,eu,ez,eV,el,l,c,eH,eL,E]),eX=x.useCallback(function(e){if(Y){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return B(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Y(e,t)}},[Y]),eG=RZ(function(e,t){var n=e.map(function(e){return e.value});"clear"===t.type?eV(n,{},"selection"):t.values.length&&eq(t.values[0].value,{selected:!1,source:"selection"})}),eY=x.useMemo(function(){return{virtual:W,dropdownMatchSelectWidth:Q,listHeight:V,listItemHeight:K,listItemScrollOffset:G,treeData:ek,fieldNames:eh,onSelect:eq,treeExpandAction:F,treeTitleRender:er,onPopupScroll:eo,leftMaxCount:void 0===E?null:E-eW.length,leafCountOnly:"SHOW_CHILD"===eg&&!w&&!!$,valueEntities:eE}},[W,Q,V,K,G,ek,eh,eq,F,er,eo,E,eW.length,eg,w,$,eE]),eU=x.useMemo(function(){return{checkable:ec,loadData:M,treeLoadedKeys:R,onTreeLoad:P,checkedKeys:eH,halfCheckedKeys:eL,treeDefaultExpandAll:T,treeExpandedKeys:z,treeDefaultExpandedKeys:H,onTreeExpand:L,treeIcon:J,treeMotion:en,showTreeIcon:ee,switcherIcon:et,treeLine:Z,treeNodeFilterProp:h,keyEntities:eC}},[ec,M,R,P,eH,eL,T,z,H,L,J,en,ee,et,Z,h,eC]);return x.createElement(R0.Provider,{value:eY},x.createElement(RJ.Provider,{value:eU},x.createElement(fm,S({ref:t},ea,{id:ei,prefixCls:void 0===r?"rc-tree-select":r,mode:eu?"multiple":void 0,displayValues:eW,onDisplayValuesChange:eG,searchValue:ey,onSearch:function(e){e$(e),null==d||d(e)},OptionList:R5,emptyOptions:!ex.length,onDropdownVisibleChange:eX,dropdownMatchSelectWidth:Q}))))});Pn.TreeNode=RG,Pn.SHOW_ALL=R8,Pn.SHOW_PARENT=R7,Pn.SHOW_CHILD=R9;var Pr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Po=x.forwardRef((e,t)=>{var n,r,o,a,i;let l,{prefixCls:c,size:s,disabled:u,bordered:d=!0,style:f,className:p,rootClassName:m,treeCheckable:g,multiple:h,listHeight:v=256,listItemHeight:b,placement:y,notFoundContent:$,switcherIcon:w,treeLine:C,getPopupContainer:S,popupClassName:k,dropdownClassName:O,treeIcon:A=!1,transitionName:I,choiceTransitionName:N="",status:j,treeExpandAction:M,builtinPlacements:R,dropdownMatchSelectWidth:P,popupMatchSelectWidth:T,allowClear:z,variant:B,dropdownStyle:D,dropdownRender:H,popupRender:L,onDropdownVisibleChange:F,onOpenChange:W,tagRender:_,maxCount:V,showCheckedStrategy:q,treeCheckStrictly:K,styles:X,classNames:G}=e,Y=Pr(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:U,getPrefixCls:Q,renderEmpty:Z,direction:J,virtual:ee,popupMatchSelectWidth:et,popupOverflow:en}=x.useContext(eW),{styles:er,classNames:eo,switcherIcon:ea}=eq("treeSelect"),[,ei]=rq(),el=null!=b?b:(null==ei?void 0:ei.controlHeightSM)+(null==ei?void 0:ei.paddingXXS),ec=Q(),es=Q("select",c),eu=Q("select-tree",c),ed=Q("tree-select",c),{compactSize:ef,compactItemClassnames:ep}=i6(es,J),em=a$(es),eg=a$(ed),[eh,ev,eb]=pv(es,em),[ey]=rK("TreeSelect",e=>(e=>{let{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${tg(e.paddingXS)} ${tg(e.calc(e.paddingXS).div(2).equal())}`},j0(n,nR(e,{colorBgContainer:r}),!1),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},xm(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]})(nR(e,{treePrefixCls:eu})),j1)(ed,eg),[e$,ex]=f0("treeSelect",B,d),ew=E()((null==(n=null==G?void 0:G.popup)?void 0:n.root)||(null==(r=null==eo?void 0:eo.popup)?void 0:r.root)||k||O,`${ed}-dropdown`,{[`${ed}-dropdown-rtl`]:"rtl"===J},m,eo.root,null==G?void 0:G.root,eb,em,eg,ev),eC=(null==(o=null==X?void 0:X.popup)?void 0:o.root)||(null==(a=null==er?void 0:er.popup)?void 0:a.root)||D,eE=pS(L||H),eS=!!(g||h),ek=x.useMemo(()=>{if(!V||("SHOW_ALL"!==q||K)&&"SHOW_PARENT"!==q)return V},[V,q,K]),eO=pk(e.suffixIcon,e.showArrow),eA=null!=(i=null!=T?T:P)?i:et,{status:eI,hasFeedback:eN,isFormItemInput:ej,feedbackIcon:eM}=x.useContext(sq),{suffixIcon:eR,removeIcon:eP,clearIcon:eT}=pE(Object.assign(Object.assign({},Y),{multiple:eS,showSuffixIcon:eO,hasFeedback:eN,feedbackIcon:eM,prefixCls:es,componentName:"TreeSelect"}));l=void 0!==$?$:(null==Z?void 0:Z("Select"))||x.createElement(fJ,{componentName:"Select"});let ez=iX(Y,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),eB=x.useMemo(()=>void 0!==y?y:"rtl"===J?"bottomRight":"bottomLeft",[y,J]),eD=i1(e=>{var t;return null!=(t=null!=s?s:ef)?t:e}),eH=x.useContext(id),eL=E()(!c&&ed,{[`${es}-lg`]:"large"===eD,[`${es}-sm`]:"small"===eD,[`${es}-rtl`]:"rtl"===J,[`${es}-${e$}`]:ex,[`${es}-in-form-item`]:ej},fK(es,j||eI,eN),ep,p,m,eo.root,null==G?void 0:G.root,eb,em,eg,ev),eF=null!=w?w:ea,[e_]=aY("SelectLike",null==eC?void 0:eC.zIndex);return eh(ey(x.createElement(Pn,Object.assign({virtual:ee,disabled:null!=u?u:eH},ez,{dropdownMatchSelectWidth:eA,builtinPlacements:f1(R,en),ref:t,prefixCls:es,className:eL,style:Object.assign(Object.assign({},null==X?void 0:X.root),f),listHeight:v,listItemHeight:el,treeCheckable:g?x.createElement("span",{className:`${es}-tree-checkbox-inner`}):g,treeLine:!!C,suffixIcon:eR,multiple:eS,placement:eB,removeIcon:eP,allowClear:!0===z?{clearIcon:eT}:z,switcherIcon:e=>x.createElement(Me,{prefixCls:eu,switcherIcon:eF,treeNodeProps:e,showLine:C}),showTreeIcon:A,notFoundContent:l,getPopupContainer:S||U,treeMotion:null,dropdownClassName:ew,dropdownStyle:Object.assign(Object.assign({},eC),{zIndex:e_}),dropdownRender:eE,onDropdownVisibleChange:W||F,choiceTransitionName:iV(ec,"",N),transitionName:iV(ec,"slide-up",I),treeExpandAction:M,tagRender:eS?_:void 0,maxCount:ek,showCheckedStrategy:q,treeCheckStrictly:K}))))}),Pa=df(Po,"dropdownAlign",e=>iX(e,["visible"]));Po.TreeNode=RG,Po.SHOW_ALL=R8,Po.SHOW_PARENT=R7,Po.SHOW_CHILD=R9,Po._InternalPanelDoNotUseOrYouWillBeFired=Pa;let Pi=Po,Pl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var Pc=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:Pl}))});let Ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var Pu=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:Ps}))});let Pd=rK("Typography",e=>{let t,{componentCls:n,titleMarginTop:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success`]:{color:e.colorSuccessText},[`&${n}-warning`]:{color:e.colorWarningText},[`&${n}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
386
386
  div&,
387
387
  p
388
388
  `]:{marginBottom:"1em"}},(t={},[1,2,3,4,5].forEach(n=>{t[`
@@ -442,5 +442,4 @@
442
442
  `]:{zIndex:10,width:r,margin:`0 ${tg(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${tg(a(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${tg(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}})(i),(e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:a}=e,i=`${t}-list-item`,l=`${i}-actions`,c=`${i}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},n_()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:a(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},nL),{padding:`0 ${tg(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
443
443
  ${c}:focus-visible,
444
444
  &.picture ${c}
445
- `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}})(i),(e=>{let{componentCls:t}=e,n=new na("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new na("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:ub(e)},n,r]})(i),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(i),lq(i)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),P0={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var P1=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:P0}))});let P2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var P4=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:P2}))});let P3={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var P6=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:P3}))});function P5(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function P8(e,t){let n=(0,eM.A)(t),r=n.findIndex(({uid:t})=>t===e.uid);return -1===r?n.push(e):n[r]=e,n}function P7(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let P9=e=>0===e.indexOf("image/"),Te=e=>{if(e.type&&!e.thumbUrl)return P9(e.type);let t=e.thumbUrl||e.url||"",n=((e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function Tt(e){return new Promise(t=>{if(!e.type||!P9(e.type))return void t("");let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,c=0,s=0;e>a?s=-((l=200/e*a)-i)/2:c=-((i=200/a*e)-l)/2,r.drawImage(o,c,s,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}let Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var Tr=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:Tn}))});let To=x.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:a,items:i,progress:l,iconRender:c,actionIconRender:s,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,previewIcon:g,removeIcon:h,downloadIcon:v,extra:b,onPreview:y,onDownload:$,onClose:w},C)=>{var S,k;let{status:O}=a,[A,I]=x.useState(O);x.useEffect(()=>{"removed"!==O&&I(O)},[O]);let[N,j]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=c(a),R=x.createElement("div",{className:`${e}-icon`},M);if("picture"===o||"picture-card"===o||"picture-circle"===o)if("uploading"!==A&&(a.thumbUrl||a.url)){let t=(null==d?void 0:d(a))?x.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):M,n=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(a)});R=x.createElement("a",{className:n,onClick:e=>y(a,e),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}else{let t=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==A});R=x.createElement("div",{className:t},M)}let P=E()(`${e}-list-item`,`${e}-list-item-${A}`),T="string"==typeof a.linkProps?JSON.parse(a.linkProps):a.linkProps,z=("function"==typeof p?p(a):p)?s(("function"==typeof h?h(a):h)||x.createElement(RP,null),()=>w(a),e,r.removeFile,!0):null,B=("function"==typeof m?m(a):m)&&"done"===A?s(("function"==typeof v?v(a):v)||x.createElement(Tr,null),()=>$(a),e,r.downloadFile):null,D="picture-card"!==o&&"picture-circle"!==o&&x.createElement("span",{key:"download-delete",className:E()(`${e}-list-item-actions`,{picture:"picture"===o})},B,z),H="function"==typeof b?b(a):b,L=H&&x.createElement("span",{className:`${e}-list-item-extra`},H),F=E()(`${e}-list-item-name`),W=a.url?x.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:a.name},T,{href:a.url,onClick:e=>y(a,e)}),a.name,L):x.createElement("span",{key:"view",className:F,onClick:e=>y(a,e),title:a.name},a.name,L),_=("function"==typeof f?f(a):f)&&(a.url||a.thumbUrl)?x.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>y(a,e),title:r.previewFile},"function"==typeof g?g(a):g||x.createElement(SJ,null)):null,V=("picture-card"===o||"picture-circle"===o)&&"uploading"!==A&&x.createElement("span",{className:`${e}-list-item-actions`},_,"done"===A&&B,z),{getPrefixCls:q}=x.useContext(eW),K=q(),X=x.createElement("div",{className:P},R,W,D,V,N&&x.createElement(oG,{motionName:`${K}-fade`,visible:"uploading"===A,motionDeadline:2e3},({className:t})=>{let n="percent"in a?x.createElement(Aq,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},l)):null;return x.createElement("div",{className:E()(`${e}-list-item-progress`,t)},n)})),G=a.response&&"string"==typeof a.response?a.response:(null==(S=a.error)?void 0:S.statusText)||(null==(k=a.error)?void 0:k.message)||r.uploadError,Y="error"===A?x.createElement(ms,{title:G,getPopupContainer:e=>e.parentNode},X):X;return x.createElement("div",{className:E()(`${e}-list-item-container`,t),style:n,ref:C},u?u(Y,a,i,{download:$.bind(null,a),preview:y.bind(null,a),remove:w.bind(null,a)}):Y)}),Ta=x.forwardRef((e,t)=>{let{listType:n="text",previewFile:r=Tt,onPreview:o,onDownload:a,onRemove:i,locale:l,iconRender:c,isImageUrl:s=Te,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,progress:y={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:w=!0,itemRender:C,disabled:S}=e,[,k]=pW(),[O,A]=x.useState(!1),I=["picture-card","picture-circle"].includes(n);x.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",k()}))})},[n,d,r]),x.useEffect(()=>{A(!0)},[]);let N=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},j=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},M=e=>{null==i||i(e)},R=e=>{if(c)return c(e,n);let t="uploading"===e.status;if(n.startsWith("picture")){let r="picture"===n?x.createElement(aq,null):l.uploading,o=(null==s?void 0:s(e))?x.createElement(P6,null):x.createElement(P1,null);return t?r:o}return t?x.createElement(aq,null):x.createElement(P4,null)},P=(e,t,n,r,o)=>{let a={type:"text",size:"small",title:r,onClick:n=>{var r,o;t(),x.isValidElement(e)&&(null==(o=(r=e.props).onClick)||o.call(r,n))},className:`${n}-list-item-action`,disabled:!!o&&S};return x.isValidElement(e)?x.createElement(cu,Object.assign({},a,{icon:o9(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):x.createElement(cu,Object.assign({},a),x.createElement("span",null,e))};x.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:j}));let{getPrefixCls:T}=x.useContext(eW),z=T("upload",u),B=T(),D=E()(`${z}-list`,`${z}-list-${n}`),H=x.useMemo(()=>iX(iq(B),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[B]),L=Object.assign(Object.assign({},I?{}:H),{motionDeadline:2e3,motionName:`${z}-${I?"animate-inline":"animate"}`,keys:(0,eM.A)(d.map(e=>({key:e.uid,file:e}))),motionAppear:O});return x.createElement("div",{className:D},x.createElement(o4,Object.assign({},L,{component:!1}),({key:e,file:t,className:r,style:o})=>x.createElement(To,{key:e,locale:l,prefixCls:z,className:r,style:o,file:t,items:d,progress:y,listType:n,isImgUrl:s,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,iconRender:R,actionIconRender:P,itemRender:C,onPreview:N,onDownload:j,onClose:M})),$&&x.createElement(oG,Object.assign({},L,{visible:w,forceRender:!0}),({className:e,style:t})=>o9($,n=>({className:E()(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))}),Ti=`__LIST_IGNORE_${Date.now()}__`,Tl=x.forwardRef((e,t)=>{let n=eq("upload"),{fileList:r,defaultFileList:o,onRemove:a,showUploadList:i=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:g,isImageUrl:h,progress:v,prefixCls:b,className:y,type:$="select",children:w,style:C,itemRender:S,maxCount:k,data:O={},multiple:A=!1,hasControlInside:I=!0,action:N="",accept:j="",supportServerRender:M=!0,rootClassName:R}=e,P=x.useContext(id),T=null!=p?p:P,z=e.customRequest||n.customRequest,[B,D]=ny(o||[],{value:r,postState:e=>null!=e?e:[]}),[L,F]=x.useState("drop"),W=x.useRef(null),_=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let V=(e,t,n)=>{let r=(0,eM.A)(t),o=!1;1===k?r=r.slice(-1):k&&(o=r.length>k,r=r.slice(0,k)),(0,H.flushSync)(()=>{D(r)});let a={file:e,fileList:r};n&&(a.event=n),(!o||"removed"===e.status||r.some(t=>t.uid===e.uid))&&(0,H.flushSync)(()=>{null==u||u(a)})},q=e=>{let t=e.filter(e=>!e.file[Ti]);if(!t.length)return;let n=t.map(e=>P5(e.file)),r=(0,eM.A)(B);n.forEach(e=>{r=P8(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t,{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}V(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!P7(t,B))return;let r=P5(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=P8(r,B);V(r,o)},X=(e,t)=>{if(!P7(t,B))return;let n=P5(t);n.status="uploading",n.percent=e.percent;let r=P8(n,B);V(n,r,e)},G=(e,t,n)=>{if(!P7(n,B))return;let r=P5(n);r.error=e,r.response=t,r.status="error";let o=P8(r,B);V(r,o)},Y=e=>{let t;Promise.resolve("function"==typeof a?a(e):a).then(n=>{var r;let o,a;if(!1===n)return;let i=(o=void 0!==e.uid?"uid":"name",(a=B.filter(t=>t[o]!==e[o])).length===B.length?null:a);i&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==B||B.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null==(r=W.current)||r.abort(t),V(t,i))})},U=e=>{F(e.type),"drop"===e.type&&(null==d||d(e))};x.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:K,onProgress:X,onError:G,fileList:B,upload:W.current,nativeElement:_.current}));let{getPrefixCls:Q,direction:Z,upload:J}=x.useContext(eW),ee=Q("upload",b),et=Object.assign(Object.assign({onBatchStart:q,onError:G,onProgress:X,onSuccess:K},e),{customRequest:z,data:O,multiple:A,action:N,accept:j,supportServerRender:M,prefixCls:ee,disabled:T,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[Ti],e===Ti)return Object.defineProperty(t,Ti,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}c((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:I});delete et.className,delete et.style,(!w||T)&&delete et.id;let en=`${ee}-wrapper`,[er,eo,ea]=PJ(ee,en),[ei]=iK("Upload",io.Upload),{showRemoveIcon:el,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,extra:ep}="boolean"==typeof i?{}:i,em=void 0===el?!T:el,eg=(e,t)=>i?x.createElement(Ta,{prefixCls:ee,listType:l,items:B,previewFile:f,onPreview:c,onDownload:s,onRemove:Y,showRemoveIcon:em,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,iconRender:g,extra:ep,locale:Object.assign(Object.assign({},ei),m),isImageUrl:h,progress:v,appendAction:e,appendActionVisible:t,itemRender:S,disabled:T}):e,eh=E()(en,y,R,eo,ea,null==J?void 0:J.className,{[`${ee}-rtl`]:"rtl"===Z,[`${ee}-picture-card-wrapper`]:"picture-card"===l,[`${ee}-picture-circle-wrapper`]:"picture-circle"===l}),ev=Object.assign(Object.assign({},null==J?void 0:J.style),C);if("drag"===$){let e=E()(eo,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:B.some(e=>"uploading"===e.status),[`${ee}-drag-hover`]:"dragover"===L,[`${ee}-disabled`]:T,[`${ee}-rtl`]:"rtl"===Z});return er(x.createElement("span",{className:eh,ref:_},x.createElement("div",{className:e,style:ev,onDrop:U,onDragOver:U,onDragLeave:U},x.createElement(PZ,Object.assign({},et,{ref:W,className:`${ee}-btn`}),x.createElement("div",{className:`${ee}-drag-container`},w))),eg()))}let eb=E()(ee,`${ee}-select`,{[`${ee}-disabled`]:T,[`${ee}-hidden`]:!w}),ey=x.createElement("div",{className:eb,style:ev},x.createElement(PZ,Object.assign({},et,{ref:W})));return er("picture-card"===l||"picture-circle"===l?x.createElement("span",{className:eh,ref:_},eg(ey,!!w)):x.createElement("span",{className:eh,ref:_},ey,eg()))});var Tc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ts=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:o=!1,children:a}=e,i=Tc(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:r});return x.createElement(Tl,Object.assign({ref:t,hasControlInside:o},i,{style:l,type:"drag"}),a)});Tl.Dragger=Ts,Tl.LIST_IGNORE=Ti;let Tu=Tl;w().Component;var Td={subtree:!0,childList:!0,attributeFilter:["style","class"]};let Tf=(e,t,n=1)=>{let r=document.createElement("canvas"),o=r.getContext("2d"),a=e*n,i=t*n;return r.setAttribute("width",`${a}px`),r.setAttribute("height",`${i}px`),o.save(),[o,r,a,i]},Tp={visibility:"visible !important"};function Tm(e,t){return e.size===t.size?e:t}let Tg={position:"relative",overflow:"hidden"},Th=e=>{var t,n,r;let o,a,i,l,c,{zIndex:s=9,rotate:u=-22,width:d,height:f,image:p,content:m,font:g={},style:h,className:v,rootClassName:b,gap:y=[100,100],offset:$,children:C,inherit:S=!0}=e,k=Object.assign(Object.assign({},Tg),h),[,O]=rq(),{color:A=O.colorFill,fontSize:I=O.fontSizeLG,fontWeight:N="normal",fontStyle:j="normal",fontFamily:M="sans-serif",textAlign:R="center"}=g,[P=100,T=100]=y,z=P/2,B=T/2,D=null!=(t=null==$?void 0:$[0])?t:z,H=null!=(n=null==$?void 0:$[1])?n:B,L=w().useMemo(()=>{let e={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"},t=D-z,n=H-B;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e},[s,D,z,H,B]),[F,W]=w().useState(),[_,V]=w().useState(()=>new Set),q=w().useMemo(()=>[].concat(F?[F]:[],(0,eM.A)(Array.from(_))),[F,_]),K=w().useCallback((e,t,n,r,o,a,i,l)=>{let[c,s,u,d]=Tf(r,o,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{let{color:t,fontSize:r,fontStyle:i,fontWeight:l,fontFamily:s,textAlign:d}=a,f=Number(r)*n;c.font=`${i} normal ${l} ${f}px/${o}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";let p=OX(e);null==p||p.forEach((e,t)=>{c.fillText(null!=e?e:"",u/2,t*(f+3*n))})}let f=Math.PI/180*Number(t),p=Math.max(r,o),[m,g,h]=Tf(p,p,n);m.translate(h/2,h/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let v=0,b=0,y=0,$=0,x=u/2,w=d/2;[[0-x,0-w],[0+x,0-w],[0+x,0+w],[0-x,0+w]].forEach(([e,t])=>{let[n,r]=[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)];v=Math.min(v,n),b=Math.max(b,n),y=Math.min(y,r),$=Math.max($,r)});let C=v+h/2,E=y+h/2,S=b-v,k=$-y,O=i*n,A=l*n,I=(S+O)*2,N=k+A,[j,M]=Tf(I,N),R=(e=0,t=0)=>{j.drawImage(g,C,E,S,k,e,t,S,k)};return R(),R(S+O,-k/2-A/2),R(S+O,k/2+A/2),[M.toDataURL(),I/n,N/n]},[]),X=(o=x.useRef([null,null]),(e,t)=>{let n=e.map(e=>e instanceof HTMLElement||Number.isNaN(e)?"":e);return e8(o.current[0],n)||(o.current=[n,t()]),o.current[1]}),[G,Y]=w().useState(null),U=(r=()=>{let e=document.createElement("canvas").getContext("2d");if(e){let t=window.devicePixelRatio||1,[n,r]=(e=>{let t=120,n=64;if(!p&&e.measureText){e.font=`${Number(I)}px ${M}`;let r=OX(m),o=r.map(t=>{let n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[1]))))*r.length+(r.length-1)*3}return[null!=d?d:t,null!=f?f:n]})(e),o=e=>{let o=[e||"",u,t,n,r,{color:A,fontSize:I,fontStyle:j,fontWeight:N,fontFamily:M,textAlign:R},P,T],[a,i]=X(o,()=>K.apply(void 0,o));Y([a,i])};if(p){let e=new Image;e.onload=()=>{o(e)},e.onerror=()=>{o(m)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=p}else o(m)}},a=w().useRef(!1),i=w().useRef(null),l=nh(r),()=>{a.current||(a.current=!0,l(),i.current=eB(()=>{a.current=!1}))}),[Q,Z,J]=(c=x.useRef(new Map),[(e,t,n)=>{if(n){var r;if(!c.current.get(n)){let e=document.createElement("div");c.current.set(n,e)}let o=c.current.get(n);o.setAttribute("style",Object.keys(r=Object.assign(Object.assign(Object.assign({},L),{backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`}),Tp)).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r[e]};`).join(" ")),o.removeAttribute("class"),o.removeAttribute("hidden"),o.parentElement!==n&&n.append(o)}return c.current.get(n)},e=>{let t=c.current.get(e);t&&e&&e.removeChild(t),c.current.delete(e)},e=>Array.from(c.current.values()).includes(e)]);(0,x.useEffect)(()=>{G&&q.forEach(e=>{Q(G[0],G[1],e)})},[G,q]),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Td;x.useEffect(function(){if(eY()&&e){var r,o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach(function(e){r.observe(e,n)})),function(){var e,t;null==(e=r)||e.takeRecords(),null==(t=r)||t.disconnect()}}},[n,e])}(q,nh(e=>{e.forEach(e=>{let t;if(t=!1,e.removedNodes.length&&(t=Array.from(e.removedNodes).some(e=>J(e))),"attributes"===e.type&&J(e.target)&&(t=!0),t)U();else if(e.target===F&&"style"===e.attributeName){let e=Object.keys(Tg);for(let t=0;t<e.length;t+=1){let n=e[t],r=k[n],o=F.style[n];r&&r!==o&&(F.style[n]=r)}}})})),(0,x.useEffect)(U,[u,s,d,f,p,m,A,I,N,j,M,R,P,T,D,H]);let ee=w().useMemo(()=>({add:e=>{V(t=>{let n=new Set(t);return n.add(e),Tm(t,n)})},remove:e=>{Z(e),V(t=>{let n=new Set(t);return n.delete(e),Tm(t,n)})}}),[]),et=S?w().createElement(ua.Provider,{value:ee},C):C;return w().createElement("div",{ref:W,className:E()(v,b),style:k},et)}},796(e,t,n){"use strict";var r=n(3498),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,c,s,u,d,f=!1;t||(t={}),i=t.debug||!1;try{if(c=r(),s=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),s.selectNodeContents(d),u.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}},6769(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(a)}}},8251(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e*=1)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[a,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};return function(n,r,o){o.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(l=n.parseTwoDigitYear);var a=r.prototype,c=a.parse;a.parse=function(n){var r=n.date,a=n.utc,l=n.args;this.$u=a;var s=l[1];if("string"==typeof s){var u=!0===l[2],d=!0===l[3],p=l[2];d&&(p=l[2]),i=this.$locale(),!u&&p&&(i=o.Ls[p]),this.$d=function(n,r,o,a){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var l=(function(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=f[s],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(r)(n),c=l.year,s=l.month,u=l.day,d=l.hours,p=l.minutes,m=l.seconds,g=l.milliseconds,h=l.zone,v=l.week,b=new Date,y=u||(c||s?1:b.getDate()),$=c||b.getFullYear(),x=0;c&&!s||(x=s>0?s-1:b.getMonth());var w,C=d||0,E=p||0,S=m||0,k=g||0;return h?new Date(Date.UTC($,x,y,C,E,S,k+60*h.offset*1e3)):o?new Date(Date.UTC($,x,y,C,E,S,k)):(w=new Date($,x,y,C,E,S,k),v&&(w=a(w).week(v).toDate()),w)}catch(e){return new Date("")}}(r,s,a,o),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),(u||d)&&r!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var m=s.length,g=1;g<=m;g+=1){l[1]=s[g-1];var h=o.apply(this,l);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()},5530(e){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var i=e.name?e:e.$locale(),l=o(i[t]),c=o(i[n]),s=l||c.map(function(e){return e.slice(0,r)});if(!a)return s;var u=i.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},i=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(i(),"months")},n.monthsShort=function(){return a(i(),"monthsShort","months",3)},n.weekdays=function(e){return a(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(i(),"weekdaysMin","weekdays",2,e)}}},4020(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},7749(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}},8176(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}},5401(e,t,n){var r=n(6532),o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,a){var i,l=e[o];i=o=r(o),/[height|width]$/.test(i)&&"number"==typeof l&&(l+="px"),!0===l?t+=o:!1===l?t+="not "+o:t+="("+o+": "+l+")",a<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=", ")}),t):o(e)}},4726(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},3930(e,t,n){"use strict";e.exports=n(4726)},6532(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},3498(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9400(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var a in e)t.call(e,a)&&e[a]&&(o=r(o,a));return o}(a)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}}]);
446
- //# sourceMappingURL=162.js.map
445
+ `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}})(i),(e=>{let{componentCls:t}=e,n=new na("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new na("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:ub(e)},n,r]})(i),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(i),lq(i)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),P0={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var P1=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:P0}))});let P2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var P4=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:P2}))});let P3={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var P6=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:P3}))});function P5(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function P8(e,t){let n=(0,eM.A)(t),r=n.findIndex(({uid:t})=>t===e.uid);return -1===r?n.push(e):n[r]=e,n}function P7(e,t){let n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}let P9=e=>0===e.indexOf("image/"),Te=e=>{if(e.type&&!e.thumbUrl)return P9(e.type);let t=e.thumbUrl||e.url||"",n=((e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n};function Tt(e){return new Promise(t=>{if(!e.type||!P9(e.type))return void t("");let n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);let r=n.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:e,height:a}=o,i=200,l=200,c=0,s=0;e>a?s=-((l=200/e*a)-i)/2:c=-((i=200/a*e)-l)/2,r.drawImage(o,c,s,i,l);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}let Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var Tr=x.forwardRef(function(e,t){return x.createElement(ol,S({},e,{ref:t,icon:Tn}))});let To=x.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:a,items:i,progress:l,iconRender:c,actionIconRender:s,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,previewIcon:g,removeIcon:h,downloadIcon:v,extra:b,onPreview:y,onDownload:$,onClose:w},C)=>{var S,k;let{status:O}=a,[A,I]=x.useState(O);x.useEffect(()=>{"removed"!==O&&I(O)},[O]);let[N,j]=x.useState(!1);x.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=c(a),R=x.createElement("div",{className:`${e}-icon`},M);if("picture"===o||"picture-card"===o||"picture-circle"===o)if("uploading"!==A&&(a.thumbUrl||a.url)){let t=(null==d?void 0:d(a))?x.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):M,n=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(a)});R=x.createElement("a",{className:n,onClick:e=>y(a,e),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}else{let t=E()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==A});R=x.createElement("div",{className:t},M)}let P=E()(`${e}-list-item`,`${e}-list-item-${A}`),T="string"==typeof a.linkProps?JSON.parse(a.linkProps):a.linkProps,z=("function"==typeof p?p(a):p)?s(("function"==typeof h?h(a):h)||x.createElement(RP,null),()=>w(a),e,r.removeFile,!0):null,B=("function"==typeof m?m(a):m)&&"done"===A?s(("function"==typeof v?v(a):v)||x.createElement(Tr,null),()=>$(a),e,r.downloadFile):null,D="picture-card"!==o&&"picture-circle"!==o&&x.createElement("span",{key:"download-delete",className:E()(`${e}-list-item-actions`,{picture:"picture"===o})},B,z),H="function"==typeof b?b(a):b,L=H&&x.createElement("span",{className:`${e}-list-item-extra`},H),F=E()(`${e}-list-item-name`),W=a.url?x.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:a.name},T,{href:a.url,onClick:e=>y(a,e)}),a.name,L):x.createElement("span",{key:"view",className:F,onClick:e=>y(a,e),title:a.name},a.name,L),_=("function"==typeof f?f(a):f)&&(a.url||a.thumbUrl)?x.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>y(a,e),title:r.previewFile},"function"==typeof g?g(a):g||x.createElement(SJ,null)):null,V=("picture-card"===o||"picture-circle"===o)&&"uploading"!==A&&x.createElement("span",{className:`${e}-list-item-actions`},_,"done"===A&&B,z),{getPrefixCls:q}=x.useContext(eW),K=q(),X=x.createElement("div",{className:P},R,W,D,V,N&&x.createElement(oG,{motionName:`${K}-fade`,visible:"uploading"===A,motionDeadline:2e3},({className:t})=>{let n="percent"in a?x.createElement(Aq,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},l)):null;return x.createElement("div",{className:E()(`${e}-list-item-progress`,t)},n)})),G=a.response&&"string"==typeof a.response?a.response:(null==(S=a.error)?void 0:S.statusText)||(null==(k=a.error)?void 0:k.message)||r.uploadError,Y="error"===A?x.createElement(ms,{title:G,getPopupContainer:e=>e.parentNode},X):X;return x.createElement("div",{className:E()(`${e}-list-item-container`,t),style:n,ref:C},u?u(Y,a,i,{download:$.bind(null,a),preview:y.bind(null,a),remove:w.bind(null,a)}):Y)}),Ta=x.forwardRef((e,t)=>{let{listType:n="text",previewFile:r=Tt,onPreview:o,onDownload:a,onRemove:i,locale:l,iconRender:c,isImageUrl:s=Te,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,progress:y={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:w=!0,itemRender:C,disabled:S}=e,[,k]=pW(),[O,A]=x.useState(!1),I=["picture-card","picture-circle"].includes(n);x.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",k()}))})},[n,d,r]),x.useEffect(()=>{A(!0)},[]);let N=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},j=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},M=e=>{null==i||i(e)},R=e=>{if(c)return c(e,n);let t="uploading"===e.status;if(n.startsWith("picture")){let r="picture"===n?x.createElement(aq,null):l.uploading,o=(null==s?void 0:s(e))?x.createElement(P6,null):x.createElement(P1,null);return t?r:o}return t?x.createElement(aq,null):x.createElement(P4,null)},P=(e,t,n,r,o)=>{let a={type:"text",size:"small",title:r,onClick:n=>{var r,o;t(),x.isValidElement(e)&&(null==(o=(r=e.props).onClick)||o.call(r,n))},className:`${n}-list-item-action`,disabled:!!o&&S};return x.isValidElement(e)?x.createElement(cu,Object.assign({},a,{icon:o9(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):x.createElement(cu,Object.assign({},a),x.createElement("span",null,e))};x.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:j}));let{getPrefixCls:T}=x.useContext(eW),z=T("upload",u),B=T(),D=E()(`${z}-list`,`${z}-list-${n}`),H=x.useMemo(()=>iX(iq(B),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[B]),L=Object.assign(Object.assign({},I?{}:H),{motionDeadline:2e3,motionName:`${z}-${I?"animate-inline":"animate"}`,keys:(0,eM.A)(d.map(e=>({key:e.uid,file:e}))),motionAppear:O});return x.createElement("div",{className:D},x.createElement(o4,Object.assign({},L,{component:!1}),({key:e,file:t,className:r,style:o})=>x.createElement(To,{key:e,locale:l,prefixCls:z,className:r,style:o,file:t,items:d,progress:y,listType:n,isImgUrl:s,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:h,downloadIcon:v,extra:b,iconRender:R,actionIconRender:P,itemRender:C,onPreview:N,onDownload:j,onClose:M})),$&&x.createElement(oG,Object.assign({},L,{visible:w,forceRender:!0}),({className:e,style:t})=>o9($,n=>({className:E()(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))}),Ti=`__LIST_IGNORE_${Date.now()}__`,Tl=x.forwardRef((e,t)=>{let n=eq("upload"),{fileList:r,defaultFileList:o,onRemove:a,showUploadList:i=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:m,iconRender:g,isImageUrl:h,progress:v,prefixCls:b,className:y,type:$="select",children:w,style:C,itemRender:S,maxCount:k,data:O={},multiple:A=!1,hasControlInside:I=!0,action:N="",accept:j="",supportServerRender:M=!0,rootClassName:R}=e,P=x.useContext(id),T=null!=p?p:P,z=e.customRequest||n.customRequest,[B,D]=ny(o||[],{value:r,postState:e=>null!=e?e:[]}),[L,F]=x.useState("drop"),W=x.useRef(null),_=x.useRef(null);x.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let V=(e,t,n)=>{let r=(0,eM.A)(t),o=!1;1===k?r=r.slice(-1):k&&(o=r.length>k,r=r.slice(0,k)),(0,H.flushSync)(()=>{D(r)});let a={file:e,fileList:r};n&&(a.event=n),(!o||"removed"===e.status||r.some(t=>t.uid===e.uid))&&(0,H.flushSync)(()=>{null==u||u(a)})},q=e=>{let t=e.filter(e=>!e.file[Ti]);if(!t.length)return;let n=t.map(e=>P5(e.file)),r=(0,eM.A)(B);n.forEach(e=>{r=P8(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{let t,{originFileObj:n}=e;try{t=new File([n],n.name,{type:n.type})}catch(e){(t=new Blob([n],{type:n.type})).name=n.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,o=t}V(o,r)})},K=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!P7(t,B))return;let r=P5(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;let o=P8(r,B);V(r,o)},X=(e,t)=>{if(!P7(t,B))return;let n=P5(t);n.status="uploading",n.percent=e.percent;let r=P8(n,B);V(n,r,e)},G=(e,t,n)=>{if(!P7(n,B))return;let r=P5(n);r.error=e,r.response=t,r.status="error";let o=P8(r,B);V(r,o)},Y=e=>{let t;Promise.resolve("function"==typeof a?a(e):a).then(n=>{var r;let o,a;if(!1===n)return;let i=(o=void 0!==e.uid?"uid":"name",(a=B.filter(t=>t[o]!==e[o])).length===B.length?null:a);i&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==B||B.forEach(e=>{let n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null==(r=W.current)||r.abort(t),V(t,i))})},U=e=>{F(e.type),"drop"===e.type&&(null==d||d(e))};x.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:K,onProgress:X,onError:G,fileList:B,upload:W.current,nativeElement:_.current}));let{getPrefixCls:Q,direction:Z,upload:J}=x.useContext(eW),ee=Q("upload",b),et=Object.assign(Object.assign({onBatchStart:q,onError:G,onProgress:X,onSuccess:K},e),{customRequest:z,data:O,multiple:A,action:N,accept:j,supportServerRender:M,prefixCls:ee,disabled:T,beforeUpload:(t,n)=>{var r,o,a,i;return r=void 0,o=void 0,a=void 0,i=function*(){let{beforeUpload:r,transformFile:o}=e,a=t;if(r){let e=yield r(t,n);if(!1===e)return!1;if(delete t[Ti],e===Ti)return Object.defineProperty(t,Ti,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return o&&(a=yield o(a)),a},new(a||(a=Promise))(function(e,t){function n(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,l)}c((i=i.apply(r,o||[])).next())})},onChange:void 0,hasControlInside:I});delete et.className,delete et.style,(!w||T)&&delete et.id;let en=`${ee}-wrapper`,[er,eo,ea]=PJ(ee,en),[ei]=iK("Upload",io.Upload),{showRemoveIcon:el,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,extra:ep}="boolean"==typeof i?{}:i,em=void 0===el?!T:el,eg=(e,t)=>i?x.createElement(Ta,{prefixCls:ee,listType:l,items:B,previewFile:f,onPreview:c,onDownload:s,onRemove:Y,showRemoveIcon:em,showPreviewIcon:ec,showDownloadIcon:es,removeIcon:eu,previewIcon:ed,downloadIcon:ef,iconRender:g,extra:ep,locale:Object.assign(Object.assign({},ei),m),isImageUrl:h,progress:v,appendAction:e,appendActionVisible:t,itemRender:S,disabled:T}):e,eh=E()(en,y,R,eo,ea,null==J?void 0:J.className,{[`${ee}-rtl`]:"rtl"===Z,[`${ee}-picture-card-wrapper`]:"picture-card"===l,[`${ee}-picture-circle-wrapper`]:"picture-circle"===l}),ev=Object.assign(Object.assign({},null==J?void 0:J.style),C);if("drag"===$){let e=E()(eo,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:B.some(e=>"uploading"===e.status),[`${ee}-drag-hover`]:"dragover"===L,[`${ee}-disabled`]:T,[`${ee}-rtl`]:"rtl"===Z});return er(x.createElement("span",{className:eh,ref:_},x.createElement("div",{className:e,style:ev,onDrop:U,onDragOver:U,onDragLeave:U},x.createElement(PZ,Object.assign({},et,{ref:W,className:`${ee}-btn`}),x.createElement("div",{className:`${ee}-drag-container`},w))),eg()))}let eb=E()(ee,`${ee}-select`,{[`${ee}-disabled`]:T,[`${ee}-hidden`]:!w}),ey=x.createElement("div",{className:eb,style:ev},x.createElement(PZ,Object.assign({},et,{ref:W})));return er("picture-card"===l||"picture-circle"===l?x.createElement("span",{className:eh,ref:_},eg(ey,!!w)):x.createElement("span",{className:eh,ref:_},ey,eg()))});var Tc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Ts=x.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:o=!1,children:a}=e,i=Tc(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:r});return x.createElement(Tl,Object.assign({ref:t,hasControlInside:o},i,{style:l,type:"drag"}),a)});Tl.Dragger=Ts,Tl.LIST_IGNORE=Ti;let Tu=Tl;w().Component;var Td={subtree:!0,childList:!0,attributeFilter:["style","class"]};let Tf=(e,t,n=1)=>{let r=document.createElement("canvas"),o=r.getContext("2d"),a=e*n,i=t*n;return r.setAttribute("width",`${a}px`),r.setAttribute("height",`${i}px`),o.save(),[o,r,a,i]},Tp={visibility:"visible !important"};function Tm(e,t){return e.size===t.size?e:t}let Tg={position:"relative",overflow:"hidden"},Th=e=>{var t,n,r;let o,a,i,l,c,{zIndex:s=9,rotate:u=-22,width:d,height:f,image:p,content:m,font:g={},style:h,className:v,rootClassName:b,gap:y=[100,100],offset:$,children:C,inherit:S=!0}=e,k=Object.assign(Object.assign({},Tg),h),[,O]=rq(),{color:A=O.colorFill,fontSize:I=O.fontSizeLG,fontWeight:N="normal",fontStyle:j="normal",fontFamily:M="sans-serif",textAlign:R="center"}=g,[P=100,T=100]=y,z=P/2,B=T/2,D=null!=(t=null==$?void 0:$[0])?t:z,H=null!=(n=null==$?void 0:$[1])?n:B,L=w().useMemo(()=>{let e={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"},t=D-z,n=H-B;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e},[s,D,z,H,B]),[F,W]=w().useState(),[_,V]=w().useState(()=>new Set),q=w().useMemo(()=>[].concat(F?[F]:[],(0,eM.A)(Array.from(_))),[F,_]),K=w().useCallback((e,t,n,r,o,a,i,l)=>{let[c,s,u,d]=Tf(r,o,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{let{color:t,fontSize:r,fontStyle:i,fontWeight:l,fontFamily:s,textAlign:d}=a,f=Number(r)*n;c.font=`${i} normal ${l} ${f}px/${o}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";let p=OX(e);null==p||p.forEach((e,t)=>{c.fillText(null!=e?e:"",u/2,t*(f+3*n))})}let f=Math.PI/180*Number(t),p=Math.max(r,o),[m,g,h]=Tf(p,p,n);m.translate(h/2,h/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let v=0,b=0,y=0,$=0,x=u/2,w=d/2;[[0-x,0-w],[0+x,0-w],[0+x,0+w],[0-x,0+w]].forEach(([e,t])=>{let[n,r]=[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)];v=Math.min(v,n),b=Math.max(b,n),y=Math.min(y,r),$=Math.max($,r)});let C=v+h/2,E=y+h/2,S=b-v,k=$-y,O=i*n,A=l*n,I=(S+O)*2,N=k+A,[j,M]=Tf(I,N),R=(e=0,t=0)=>{j.drawImage(g,C,E,S,k,e,t,S,k)};return R(),R(S+O,-k/2-A/2),R(S+O,k/2+A/2),[M.toDataURL(),I/n,N/n]},[]),X=(o=x.useRef([null,null]),(e,t)=>{let n=e.map(e=>e instanceof HTMLElement||Number.isNaN(e)?"":e);return e8(o.current[0],n)||(o.current=[n,t()]),o.current[1]}),[G,Y]=w().useState(null),U=(r=()=>{let e=document.createElement("canvas").getContext("2d");if(e){let t=window.devicePixelRatio||1,[n,r]=(e=>{let t=120,n=64;if(!p&&e.measureText){e.font=`${Number(I)}px ${M}`;let r=OX(m),o=r.map(t=>{let n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,(0,eM.A)(o.map(e=>e[1]))))*r.length+(r.length-1)*3}return[null!=d?d:t,null!=f?f:n]})(e),o=e=>{let o=[e||"",u,t,n,r,{color:A,fontSize:I,fontStyle:j,fontWeight:N,fontFamily:M,textAlign:R},P,T],[a,i]=X(o,()=>K.apply(void 0,o));Y([a,i])};if(p){let e=new Image;e.onload=()=>{o(e)},e.onerror=()=>{o(m)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=p}else o(m)}},a=w().useRef(!1),i=w().useRef(null),l=nh(r),()=>{a.current||(a.current=!0,l(),i.current=eB(()=>{a.current=!1}))}),[Q,Z,J]=(c=x.useRef(new Map),[(e,t,n)=>{if(n){var r;if(!c.current.get(n)){let e=document.createElement("div");c.current.set(n,e)}let o=c.current.get(n);o.setAttribute("style",Object.keys(r=Object.assign(Object.assign(Object.assign({},L),{backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`}),Tp)).map(e=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${r[e]};`).join(" ")),o.removeAttribute("class"),o.removeAttribute("hidden"),o.parentElement!==n&&n.append(o)}return c.current.get(n)},e=>{let t=c.current.get(e);t&&e&&e.removeChild(t),c.current.delete(e)},e=>Array.from(c.current.values()).includes(e)]);(0,x.useEffect)(()=>{G&&q.forEach(e=>{Q(G[0],G[1],e)})},[G,q]),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Td;x.useEffect(function(){if(eY()&&e){var r,o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach(function(e){r.observe(e,n)})),function(){var e,t;null==(e=r)||e.takeRecords(),null==(t=r)||t.disconnect()}}},[n,e])}(q,nh(e=>{e.forEach(e=>{let t;if(t=!1,e.removedNodes.length&&(t=Array.from(e.removedNodes).some(e=>J(e))),"attributes"===e.type&&J(e.target)&&(t=!0),t)U();else if(e.target===F&&"style"===e.attributeName){let e=Object.keys(Tg);for(let t=0;t<e.length;t+=1){let n=e[t],r=k[n],o=F.style[n];r&&r!==o&&(F.style[n]=r)}}})})),(0,x.useEffect)(U,[u,s,d,f,p,m,A,I,N,j,M,R,P,T,D,H]);let ee=w().useMemo(()=>({add:e=>{V(t=>{let n=new Set(t);return n.add(e),Tm(t,n)})},remove:e=>{Z(e),V(t=>{let n=new Set(t);return n.delete(e),Tm(t,n)})}}),[]),et=S?w().createElement(ua.Provider,{value:ee},C):C;return w().createElement("div",{ref:W,className:E()(v,b),style:k},et)}},796(e,t,n){"use strict";var r=n(3498),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,l,c,s,u,d,f=!1;t||(t={}),i=t.debug||!1;try{if(c=r(),s=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=o[t.format]||o.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),s.selectNodeContents(d),u.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",l=n.replace(/#{\s*key\s*}/g,a),window.prompt(l,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}},6769(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(a)}}},8251(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e*=1)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[a,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};return function(n,r,o){o.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(l=n.parseTwoDigitYear);var a=r.prototype,c=a.parse;a.parse=function(n){var r=n.date,a=n.utc,l=n.args;this.$u=a;var s=l[1];if("string"==typeof s){var u=!0===l[2],d=!0===l[3],p=l[2];d&&(p=l[2]),i=this.$locale(),!u&&p&&(i=o.Ls[p]),this.$d=function(n,r,o,a){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var l=(function(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=f[s],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}})(r)(n),c=l.year,s=l.month,u=l.day,d=l.hours,p=l.minutes,m=l.seconds,g=l.milliseconds,h=l.zone,v=l.week,b=new Date,y=u||(c||s?1:b.getDate()),$=c||b.getFullYear(),x=0;c&&!s||(x=s>0?s-1:b.getMonth());var w,C=d||0,E=p||0,S=m||0,k=g||0;return h?new Date(Date.UTC($,x,y,C,E,S,k+60*h.offset*1e3)):o?new Date(Date.UTC($,x,y,C,E,S,k)):(w=new Date($,x,y,C,E,S,k),v&&(w=a(w).week(v).toDate()),w)}catch(e){return new Date("")}}(r,s,a,o),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),(u||d)&&r!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var m=s.length,g=1;g<=m;g+=1){l[1]=s[g-1];var h=o.apply(this,l);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()},5530(e){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var i=e.name?e:e.$locale(),l=o(i[t]),c=o(i[n]),s=l||c.map(function(e){return e.slice(0,r)});if(!a)return s;var u=i.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},i=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(i(),"months")},n.monthsShort=function(){return a(i(),"monthsShort","months",3)},n.weekdays=function(e){return a(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(i(),"weekdaysMin","weekdays",2,e)}}},4020(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},7749(e){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}},8176(e){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}},5401(e,t,n){var r=n(6532),o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,a){var i,l=e[o];i=o=r(o),/[height|width]$/.test(i)&&"number"==typeof l&&(l+="px"),!0===l?t+=o:!1===l?t+="not "+o:t+="("+o+": "+l+")",a<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=o(n),r<e.length-1&&(t+=", ")}),t):o(e)}},4726(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},3930(e,t,n){"use strict";e.exports=n(4726)},6532(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},3498(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},9400(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var a in e)t.call(e,a)&&e[a]&&(o=r(o,a));return o}(a)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()}}]);