From d87e37c8667c9722632678dfd39596d7ca370fa8 Mon Sep 17 00:00:00 2001 From: Sergei Malinin Date: Tue, 9 Jul 2024 20:17:28 +0700 Subject: [PATCH] add build --- docs/index.css | 1 + docs/index.html | 14 +++ docs/index.js | 256 ++++++++++++++++++++++++++++++++++++++++++++++++ docs/vite.svg | 1 + package.json | 2 +- vite.config.ts | 9 ++ 6 files changed, 282 insertions(+), 1 deletion(-) create mode 100644 docs/index.css create mode 100644 docs/index.html create mode 100644 docs/index.js create mode 100644 docs/vite.svg diff --git a/docs/index.css b/docs/index.css new file mode 100644 index 0000000..b23ad05 --- /dev/null +++ b/docs/index.css @@ -0,0 +1 @@ +._input_169wh_1{width:120px}body{max-width:1000px;margin:0 auto} diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..aa24e96 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,14 @@ + + + + + + + T-Shirt Estimation Helper + + + + +
+ + diff --git a/docs/index.js b/docs/index.js new file mode 100644 index 0000000..a855dd2 --- /dev/null +++ b/docs/index.js @@ -0,0 +1,256 @@ +function W0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U0={exports:{}},Ku={},K0={exports:{}},Be={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Vl=Symbol.for("react.element"),cw=Symbol.for("react.portal"),dw=Symbol.for("react.fragment"),fw=Symbol.for("react.strict_mode"),vw=Symbol.for("react.profiler"),mw=Symbol.for("react.provider"),pw=Symbol.for("react.context"),gw=Symbol.for("react.forward_ref"),hw=Symbol.for("react.suspense"),yw=Symbol.for("react.memo"),bw=Symbol.for("react.lazy"),Pp=Symbol.iterator;function Sw(e){return e===null||typeof e!="object"?null:(e=Pp&&e[Pp]||e["@@iterator"],typeof e=="function"?e:null)}var G0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q0=Object.assign,X0={};function ma(e,t,n){this.props=e,this.context=t,this.refs=X0,this.updater=n||G0}ma.prototype.isReactComponent={};ma.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ma.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Q0(){}Q0.prototype=ma.prototype;function Uv(e,t,n){this.props=e,this.context=t,this.refs=X0,this.updater=n||G0}var Kv=Uv.prototype=new Q0;Kv.constructor=Uv;q0(Kv,ma.prototype);Kv.isPureReactComponent=!0;var _p=Array.isArray,Y0=Object.prototype.hasOwnProperty,Gv={current:null},Z0={key:!0,ref:!0,__self:!0,__source:!0};function J0(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Y0.call(t,r)&&!Z0.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,z=R[_];if(0>>1;_o(K,N))Go(W,K)?(R[_]=W,R[G]=N,_=G):(R[_]=K,R[H]=N,_=H);else if(Go(W,N))R[_]=W,R[G]=N,_=G;else break e}}return F}function o(R,F){var N=R.sortIndex-F.sortIndex;return N!==0?N:R.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],d=1,f=null,v=3,y=!1,h=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(R){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=R)r(c),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(c)}}function S(R){if(b=!1,p(R),!h)if(n(s)!==null)h=!0,L(w);else{var F=n(c);F!==null&&I(S,F.startTime-R)}}function w(R,F){h=!1,b&&(b=!1,g($),$=-1),y=!0;var N=v;try{for(p(F),f=n(s);f!==null&&(!(f.expirationTime>F)||R&&!k());){var _=f.callback;if(typeof _=="function"){f.callback=null,v=f.priorityLevel;var z=_(f.expirationTime<=F);F=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(s)&&r(s),p(F)}else r(s);f=n(s)}if(f!==null)var V=!0;else{var H=n(c);H!==null&&I(S,H.startTime-F),V=!1}return V}finally{f=null,v=N,y=!1}}var x=!1,E=null,$=-1,O=5,P=-1;function k(){return!(e.unstable_now()-PR||125_?(R.sortIndex=N,t(c,R),n(s)===null&&R===n(c)&&(b?(g($),$=-1):b=!0,I(S,N-_))):(R.sortIndex=z,t(s,R),h||y||(h=!0,L(w))),R},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(R){var F=v;return function(){var N=v;v=F;try{return R.apply(this,arguments)}finally{v=N}}}})(oy);ry.exports=oy;var Mw=ry.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Tw=u,Nn=Mw;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qd=Object.prototype.hasOwnProperty,Nw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Tp={},Np={};function Lw(e){return qd.call(Np,e)?!0:qd.call(Tp,e)?!1:Nw.test(e)?Np[e]=!0:(Tp[e]=!0,!1)}function Fw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kw(e,t,n,r){if(t===null||typeof t>"u"||Fw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vn(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new vn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new vn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new vn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new vn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jt[e]=new vn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new vn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new vn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new vn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new vn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xv=/[\-:]([a-z])/g;function Qv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Xv,Qv);Jt[t]=new vn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Xv,Qv);Jt[t]=new vn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Xv,Qv);Jt[t]=new vn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new vn(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new vn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new vn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yv(e,t,n,r){var o=Jt.hasOwnProperty(t)?Jt[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Wc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ba(e):""}function Aw(e){switch(e.tag){case 5:return Ba(e.type);case 16:return Ba("Lazy");case 13:return Ba("Suspense");case 19:return Ba("SuspenseList");case 0:case 2:case 15:return e=Uc(e.type,!1),e;case 11:return e=Uc(e.type.render,!1),e;case 1:return e=Uc(e.type,!0),e;default:return""}}function Zd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fi:return"Fragment";case Li:return"Portal";case Xd:return"Profiler";case Zv:return"StrictMode";case Qd:return"Suspense";case Yd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ly:return(e.displayName||"Context")+".Consumer";case ay:return(e._context.displayName||"Context")+".Provider";case Jv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case em:return t=e.displayName||null,t!==null?t:Zd(e.type)||"Memo";case io:t=e._payload,e=e._init;try{return Zd(e(t))}catch{}}return null}function jw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zd(t);case 8:return t===Zv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zw(e){var t=uy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function is(e){e._valueTracker||(e._valueTracker=zw(e))}function cy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function su(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jd(e,t){var n=t.checked;return xt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dy(e,t){t=t.checked,t!=null&&Yv(e,"checked",t,!1)}function ef(e,t){dy(e,t);var n=xo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tf(e,t.type,n):t.hasOwnProperty("defaultValue")&&tf(e,t.type,xo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tf(e,t,n){(t!=="number"||su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Va=Array.isArray;function Xi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=as.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ga={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dw=["Webkit","ms","Moz","O"];Object.keys(Ga).forEach(function(e){Dw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ga[t]=Ga[e]})});function py(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ga.hasOwnProperty(e)&&Ga[e]?(""+t).trim():t+"px"}function gy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=py(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bw=xt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function of(e,t){if(t){if(Bw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function af(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lf=null;function tm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sf=null,Qi=null,Yi=null;function zp(e){if(e=Ul(e)){if(typeof sf!="function")throw Error(J(280));var t=e.stateNode;t&&(t=Zu(t),sf(e.stateNode,e.type,t))}}function hy(e){Qi?Yi?Yi.push(e):Yi=[e]:Qi=e}function yy(){if(Qi){var e=Qi,t=Yi;if(Yi=Qi=null,zp(e),t)for(e=0;e>>=0,e===0?32:31-(Zw(e)/Jw|0)|0}var ls=64,ss=4194304;function Ha(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Ha(l):(i&=a,i!==0&&(r=Ha(i)))}else a=n&~o,a!==0?r=Ha(a):i!==0&&(r=Ha(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Hl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ur(t),e[t]=n}function rx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xa),qp=" ",Xp=!1;function jy(e,t){switch(e){case"keyup":return Mx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ki=!1;function Nx(e,t){switch(e){case"compositionend":return zy(t);case"keypress":return t.which!==32?null:(Xp=!0,qp);case"textInput":return e=t.data,e===qp&&Xp?null:e;default:return null}}function Lx(e,t){if(ki)return e==="compositionend"||!um&&jy(e,t)?(e=ky(),Bs=am=uo=null,ki=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jp(n)}}function Hy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wy(){for(var e=window,t=su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=su(e.document)}return t}function cm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Hx(e){var t=Wy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hy(n.ownerDocument.documentElement,n)){if(r!==null&&cm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=eg(n,i);var a=eg(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ai=null,mf=null,Ya=null,pf=!1;function tg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pf||Ai==null||Ai!==su(r)||(r=Ai,"selectionStart"in r&&cm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ya&&pl(Ya,r)||(Ya=r,r=pu(mf,"onSelect"),0Di||(e.current=Cf[Di],Cf[Di]=null,Di--)}function ft(e,t){Di++,Cf[Di]=e.current,e.current=t}var Eo={},sn=Ro(Eo),Sn=Ro(!1),ri=Eo;function oa(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Cn(e){return e=e.childContextTypes,e!=null}function hu(){pt(Sn),pt(sn)}function sg(e,t,n){if(sn.current!==Eo)throw Error(J(168));ft(sn,t),ft(Sn,n)}function Jy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(J(108,jw(e)||"Unknown",o));return xt({},n,r)}function yu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,ri=sn.current,ft(sn,e),ft(Sn,Sn.current),!0}function ug(e,t,n){var r=e.stateNode;if(!r)throw Error(J(169));n?(e=Jy(e,t,ri),r.__reactInternalMemoizedMergedChildContext=e,pt(Sn),pt(sn),ft(sn,e)):pt(Sn),ft(Sn,n)}var Ar=null,Ju=!1,id=!1;function eb(e){Ar===null?Ar=[e]:Ar.push(e)}function tE(e){Ju=!0,eb(e)}function Io(){if(!id&&Ar!==null){id=!0;var e=0,t=rt;try{var n=Ar;for(rt=1;e>=a,o-=a,zr=1<<32-ur(t)+o|n<$?(O=E,E=null):O=E.sibling;var P=v(g,E,p[$],S);if(P===null){E===null&&(E=O);break}e&&E&&P.alternate===null&&t(g,E),m=i(P,m,$),x===null?w=P:x.sibling=P,x=P,E=O}if($===p.length)return n(g,E),yt&&Ho(g,$),w;if(E===null){for(;$$?(O=E,E=null):O=E.sibling;var k=v(g,E,P.value,S);if(k===null){E===null&&(E=O);break}e&&E&&k.alternate===null&&t(g,E),m=i(k,m,$),x===null?w=k:x.sibling=k,x=k,E=O}if(P.done)return n(g,E),yt&&Ho(g,$),w;if(E===null){for(;!P.done;$++,P=p.next())P=f(g,P.value,S),P!==null&&(m=i(P,m,$),x===null?w=P:x.sibling=P,x=P);return yt&&Ho(g,$),w}for(E=r(g,E);!P.done;$++,P=p.next())P=y(E,g,$,P.value,S),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?$:P.key),m=i(P,m,$),x===null?w=P:x.sibling=P,x=P);return e&&E.forEach(function(A){return t(g,A)}),yt&&Ho(g,$),w}function C(g,m,p,S){if(typeof p=="object"&&p!==null&&p.type===Fi&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case os:e:{for(var w=p.key,x=m;x!==null;){if(x.key===w){if(w=p.type,w===Fi){if(x.tag===7){n(g,x.sibling),m=o(x,p.props.children),m.return=g,g=m;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===io&&fg(w)===x.type){n(g,x.sibling),m=o(x,p.props),m.ref=Na(g,x,p),m.return=g,g=m;break e}n(g,x);break}else t(g,x);x=x.sibling}p.type===Fi?(m=Jo(p.props.children,g.mode,S,p.key),m.return=g,g=m):(S=Xs(p.type,p.key,p.props,null,g.mode,S),S.ref=Na(g,m,p),S.return=g,g=S)}return a(g);case Li:e:{for(x=p.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){n(g,m.sibling),m=o(m,p.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=vd(p,g.mode,S),m.return=g,g=m}return a(g);case io:return x=p._init,C(g,m,x(p._payload),S)}if(Va(p))return h(g,m,p,S);if(Ia(p))return b(g,m,p,S);ps(g,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,m!==null&&m.tag===6?(n(g,m.sibling),m=o(m,p),m.return=g,g=m):(n(g,m),m=fd(p,g.mode,S),m.return=g,g=m),a(g)):n(g,m)}return C}var aa=ob(!0),ib=ob(!1),Cu=Ro(null),wu=null,Hi=null,mm=null;function pm(){mm=Hi=wu=null}function gm(e){var t=Cu.current;pt(Cu),e._currentValue=t}function Ef(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ji(e,t){wu=e,mm=Hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yn=!0),e.firstContext=null)}function qn(e){var t=e._currentValue;if(mm!==e)if(e={context:e,memoizedValue:t,next:null},Hi===null){if(wu===null)throw Error(J(308));Hi=e,wu.dependencies={lanes:0,firstContext:e}}else Hi=Hi.next=e;return t}var Go=null;function hm(e){Go===null?Go=[e]:Go.push(e)}function ab(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,hm(t)):(n.next=o.next,o.next=n),t.interleaved=n,Kr(e,r)}function Kr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ao=!1;function ym(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Br(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Qe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Kr(e,n)}return o=r.interleaved,o===null?(t.next=t,hm(r)):(t.next=o.next,o.next=t),r.interleaved=t,Kr(e,n)}function Hs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}function vg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xu(e,t,n,r){var o=e.updateQueue;ao=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(i!==null){var f=o.baseState;a=0,d=c=s=null,l=i;do{var v=l.lane,y=l.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,b=l;switch(v=t,y=n,b.tag){case 1:if(h=b.payload,typeof h=="function"){f=h.call(y,f,v);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=b.payload,v=typeof h=="function"?h.call(y,f,v):h,v==null)break e;f=xt({},f,v);break e;case 2:ao=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[l]:v.push(l))}else y={eventTime:y,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=y,s=f):d=d.next=y,a|=v;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;v=l,l=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(!0);if(d===null&&(s=f),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);ai|=a,e.lanes=a,e.memoizedState=f}}function mg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ld.transition;ld.transition={};try{e(!1),t()}finally{rt=n,ld.transition=r}}function Eb(){return Xn().memoizedState}function iE(e,t,n){var r=Co(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$b(e))Ob(t,n);else if(n=ab(e,t,n,r),n!==null){var o=cn();cr(n,e,r,o),Rb(n,t,r)}}function aE(e,t,n){var r=Co(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($b(e))Ob(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,vr(l,a)){var s=t.interleaved;s===null?(o.next=o,hm(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=ab(e,t,o,r),n!==null&&(o=cn(),cr(n,e,r,o),Rb(n,t,r))}}function $b(e){var t=e.alternate;return e===wt||t!==null&&t===wt}function Ob(e,t){Za=$u=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}var Ou={readContext:qn,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useInsertionEffect:nn,useLayoutEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useMutableSource:nn,useSyncExternalStore:nn,useId:nn,unstable_isNewReconciler:!1},lE={readContext:qn,useCallback:function(e,t){return Cr().memoizedState=[e,t===void 0?null:t],e},useContext:qn,useEffect:gg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Us(4194308,4,bb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){return Us(4,2,e,t)},useMemo:function(e,t){var n=Cr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=iE.bind(null,wt,e),[r.memoizedState,e]},useRef:function(e){var t=Cr();return e={current:e},t.memoizedState=e},useState:pg,useDebugValue:Om,useDeferredValue:function(e){return Cr().memoizedState=e},useTransition:function(){var e=pg(!1),t=e[0];return e=oE.bind(null,e[1]),Cr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wt,o=Cr();if(yt){if(n===void 0)throw Error(J(407));n=n()}else{if(n=t(),Gt===null)throw Error(J(349));ii&30||db(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,gg(vb.bind(null,r,i,e),[e]),r.flags|=2048,xl(9,fb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Cr(),t=Gt.identifierPrefix;if(yt){var n=Dr,r=zr;n=(r&~(1<<32-ur(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[wr]=t,e[yl]=r,Ab(e,t,!1,!1),t.stateNode=e;e:{switch(a=af(n,r),n){case"dialog":vt("cancel",e),vt("close",e),o=r;break;case"iframe":case"object":case"embed":vt("load",e),o=r;break;case"video":case"audio":for(o=0;oua&&(t.flags|=128,r=!0,La(i,!1),t.lanes=4194304)}else{if(!r)if(e=Eu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),La(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!yt)return rn(t),null}else 2*Mt()-i.renderingStartTime>ua&&n!==1073741824&&(t.flags|=128,r=!0,La(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Mt(),t.sibling=null,n=Ct.current,ft(Ct,r?n&1|2:n&1),t):(rn(t),null);case 22:case 23:return Tm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pn&1073741824&&(rn(t),t.subtreeFlags&6&&(t.flags|=8192)):rn(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function pE(e,t){switch(fm(t),t.tag){case 1:return Cn(t.type)&&hu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return la(),pt(Sn),pt(sn),Cm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sm(t),null;case 13:if(pt(Ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pt(Ct),null;case 4:return la(),null;case 10:return gm(t.type._context),null;case 22:case 23:return Tm(),null;case 24:return null;default:return null}}var hs=!1,an=!1,gE=typeof WeakSet=="function"?WeakSet:Set,ye=null;function Wi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){It(e,t,r)}else n.current=null}function Nf(e,t,n){try{n()}catch(r){It(e,t,r)}}var Rg=!1;function hE(e,t){if(gf=vu,e=Wy(),cm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,c=0,d=0,f=e,v=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==i||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)v=f,f=y;for(;;){if(f===e)break t;if(v===n&&++c===o&&(l=a),v===i&&++d===r&&(s=a),(y=f.nextSibling)!==null)break;f=v,v=f.parentNode}f=y}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(hf={focusedElem:e,selectionRange:n},vu=!1,ye=t;ye!==null;)if(t=ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ye=e;else for(;ye!==null;){t=ye;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,C=h.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:rr(t.type,b),C);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(S){It(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ye=e;break}ye=t.return}return h=Rg,Rg=!1,h}function Ja(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Nf(t,n,i)}o=o.next}while(o!==r)}}function nc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Lf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Db(e){var t=e.alternate;t!==null&&(e.alternate=null,Db(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wr],delete t[yl],delete t[Sf],delete t[Jx],delete t[eE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bb(e){return e.tag===5||e.tag===3||e.tag===4}function Ig(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ff(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gu));else if(r!==4&&(e=e.child,e!==null))for(Ff(e,t,n),e=e.sibling;e!==null;)Ff(e,t,n),e=e.sibling}function kf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(kf(e,t,n),e=e.sibling;e!==null;)kf(e,t,n),e=e.sibling}var Qt=null,or=!1;function no(e,t,n){for(n=n.child;n!==null;)Vb(e,t,n),n=n.sibling}function Vb(e,t,n){if(Er&&typeof Er.onCommitFiberUnmount=="function")try{Er.onCommitFiberUnmount(qu,n)}catch{}switch(n.tag){case 5:an||Wi(n,t);case 6:var r=Qt,o=or;Qt=null,no(e,t,n),Qt=r,or=o,Qt!==null&&(or?(e=Qt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qt.removeChild(n.stateNode));break;case 18:Qt!==null&&(or?(e=Qt,n=n.stateNode,e.nodeType===8?od(e.parentNode,n):e.nodeType===1&&od(e,n),vl(e)):od(Qt,n.stateNode));break;case 4:r=Qt,o=or,Qt=n.stateNode.containerInfo,or=!0,no(e,t,n),Qt=r,or=o;break;case 0:case 11:case 14:case 15:if(!an&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Nf(n,t,a),o=o.next}while(o!==r)}no(e,t,n);break;case 1:if(!an&&(Wi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){It(n,t,l)}no(e,t,n);break;case 21:no(e,t,n);break;case 22:n.mode&1?(an=(r=an)||n.memoizedState!==null,no(e,t,n),an=r):no(e,t,n);break;default:no(e,t,n)}}function Pg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gE),t.forEach(function(r){var o=OE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function er(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Mt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bE(r/1960))-r,10e?16:e,co===null)var r=!1;else{if(e=co,co=null,Pu=0,Qe&6)throw Error(J(331));var o=Qe;for(Qe|=4,ye=e.current;ye!==null;){var i=ye,a=i.child;if(ye.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sMt()-_m?Zo(e,0):Pm|=n),wn(e,t)}function Qb(e,t){t===0&&(e.mode&1?(t=ss,ss<<=1,!(ss&130023424)&&(ss=4194304)):t=1);var n=cn();e=Kr(e,t),e!==null&&(Hl(e,t,n),wn(e,n))}function $E(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qb(e,n)}function OE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(J(314))}r!==null&&r.delete(t),Qb(e,n)}var Yb;Yb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Sn.current)yn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yn=!1,vE(e,t,n);yn=!!(e.flags&131072)}else yn=!1,yt&&t.flags&1048576&&tb(t,Su,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ks(e,t),e=t.pendingProps;var o=oa(t,sn.current);Ji(t,n),o=xm(null,t,r,e,o,n);var i=Em();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Cn(r)?(i=!0,yu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ym(t),o.updater=tc,t.stateNode=o,o._reactInternals=t,Of(t,r,e,n),t=Pf(null,t,r,!0,i,n)):(t.tag=0,yt&&i&&dm(t),un(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ks(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=IE(r),e=rr(r,e),o){case 0:t=If(null,t,r,e,n);break e;case 1:t=Eg(null,t,r,e,n);break e;case 11:t=wg(null,t,r,e,n);break e;case 14:t=xg(null,t,r,rr(r.type,e),n);break e}throw Error(J(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rr(r,o),If(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rr(r,o),Eg(e,t,r,o,n);case 3:e:{if(Lb(t),e===null)throw Error(J(387));r=t.pendingProps,i=t.memoizedState,o=i.element,lb(e,t),xu(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=sa(Error(J(423)),t),t=$g(e,t,r,n,o);break e}else if(r!==o){o=sa(Error(J(424)),t),t=$g(e,t,r,n,o);break e}else for(_n=yo(t.stateNode.containerInfo.firstChild),Tn=t,yt=!0,lr=null,n=ib(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),r===o){t=Gr(e,t,n);break e}un(e,t,r,n)}t=t.child}return t;case 5:return sb(t),e===null&&xf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,yf(r,o)?a=null:i!==null&&yf(r,i)&&(t.flags|=32),Nb(e,t),un(e,t,a,n),t.child;case 6:return e===null&&xf(t),null;case 13:return Fb(e,t,n);case 4:return bm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=aa(t,null,r,n):un(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rr(r,o),wg(e,t,r,o,n);case 7:return un(e,t,t.pendingProps,n),t.child;case 8:return un(e,t,t.pendingProps.children,n),t.child;case 12:return un(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ft(Cu,r._currentValue),r._currentValue=a,i!==null)if(vr(i.value,a)){if(i.children===o.children&&!Sn.current){t=Gr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Br(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ef(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(J(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Ef(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}un(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ji(t,n),o=qn(o),r=r(o),t.flags|=1,un(e,t,r,n),t.child;case 14:return r=t.type,o=rr(r,t.pendingProps),o=rr(r.type,o),xg(e,t,r,o,n);case 15:return Mb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rr(r,o),Ks(e,t),t.tag=1,Cn(r)?(e=!0,yu(t)):e=!1,Ji(t,n),Ib(t,r,o),Of(t,r,o,n),Pf(null,t,r,!0,e,n);case 19:return kb(e,t,n);case 22:return Tb(e,t,n)}throw Error(J(156,t.tag))};function Zb(e,t){return $y(e,t)}function RE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(e,t,n,r){return new RE(e,t,n,r)}function Lm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function IE(e){if(typeof e=="function")return Lm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jv)return 11;if(e===em)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=Un(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xs(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Lm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Fi:return Jo(n.children,o,i,t);case Zv:a=8,o|=8;break;case Xd:return e=Un(12,n,t,o|2),e.elementType=Xd,e.lanes=i,e;case Qd:return e=Un(13,n,t,o),e.elementType=Qd,e.lanes=i,e;case Yd:return e=Un(19,n,t,o),e.elementType=Yd,e.lanes=i,e;case sy:return oc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ay:a=10;break e;case ly:a=9;break e;case Jv:a=11;break e;case em:a=14;break e;case io:a=16,r=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=Un(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Jo(e,t,n,r){return e=Un(7,e,r,t),e.lanes=n,e}function oc(e,t,n,r){return e=Un(22,e,r,t),e.elementType=sy,e.lanes=n,e.stateNode={isHidden:!1},e}function fd(e,t,n){return e=Un(6,e,null,t),e.lanes=n,e}function vd(e,t,n){return t=Un(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function PE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gc(0),this.expirationTimes=Gc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fm(e,t,n,r,o,i,a,l,s){return e=new PE(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Un(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ym(i),e}function _E(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n1)}catch(e){console.error(e)}}n1(),ny.exports=Fn;var ha=ny.exports;const Bf=Uu(ha),FE=W0({__proto__:null,default:Bf},[ha]);var Ag=ha;Gd.createRoot=Ag.createRoot,Gd.hydrateRoot=Ag.hydrateRoot;var r1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Z.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(qr(r)):nl.isFragment(r)&&r.props?n=n.concat(qr(r.props.children,t)):n.push(r))}),n}var Vf={},zE=function(t){};function DE(e,t){}function BE(e,t){}function VE(){Vf={}}function a1(e,t,n){!t&&!Vf[n]&&(e(!1,n),Vf[n]=!0)}function ln(e,t){a1(DE,e,t)}function HE(e,t){a1(BE,e,t)}ln.preMessage=zE;ln.resetWarned=VE;ln.noteOnce=HE;function Fe(e){"@babel/helpers - typeof";return Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fe(e)}function WE(e,t){if(Fe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l1(e){var t=WE(e,"string");return Fe(t)=="symbol"?t:t+""}function j(e,t,n){return(t=l1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t=19;var Hf=u.createContext(null);function UE(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),i=u.useContext(Hf),a=u.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,c)},[n,i]);return u.createElement(Hf.Provider,{value:a},t)}var u1=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!Wf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),YE?(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(){!Wf||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=QE.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c1=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ca(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new a$(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ca(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new l$(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),f1=typeof WeakMap<"u"?new WeakMap:new u1,v1=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ZE.getInstance(),r=new s$(t,n,this);f1.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){v1.prototype[e]=function(){var t;return(t=f1.get(this))[e].apply(t,arguments)}});var u$=function(){return typeof Tu.ResizeObserver<"u"?Tu.ResizeObserver:v1}(),fo=new Map;function c$(e){e.forEach(function(t){var n,r=t.target;(n=fo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var m1=new u$(c$);function d$(e,t){fo.has(e)||(fo.set(e,new Set),m1.observe(e)),fo.get(e).add(t)}function f$(e,t){fo.has(e)&&(fo.get(e).delete(t),fo.get(e).size||(m1.unobserve(e),fo.delete(e)))}function Ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bg(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Vg+=1;var r=Vg;function o(i){if(i===0)y1(r),t();else{var a=g1(function(){o(i-1)});Wm.set(r,a)}}return o(n),r};gt.cancel=function(e){var t=Wm.get(e);return y1(e),h1(t)};function b1(e){if(Array.isArray(e))return e}function C$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function S1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(e,t){return b1(e)||C$(e,t)||Hm(e,t)||S1()}function Il(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function xn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function w$(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 Hg="data-rc-order",Wg="data-rc-priority",x$="rc-util-key",Kf=new Map;function C1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):x$}function Cc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function E$(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Um(e){return Array.from((Kf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function w1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=E$(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(Hg,a),l&&i&&s.setAttribute(Wg,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=Cc(t),d=c.firstChild;if(r){if(l){var f=(t.styles||Um(c)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Hg)))return!1;var y=Number(v.getAttribute(Wg)||0);return i>=y});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function x1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Cc(t);return(t.styles||Um(n)).find(function(r){return r.getAttribute(C1(t))===e})}function Pl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=x1(e,t);if(n){var r=Cc(t);r.removeChild(n)}}function $$(e,t){var n=Kf.get(e);if(!n||!w$(document,n)){var r=w1("",t),o=r.parentNode;Kf.set(e,o),e.removeChild(r)}}function Vr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Cc(n),o=Um(r),i=B(B({},n),{},{styles:o});$$(r,i);var a=x1(t,i);if(a){var l,s;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=w1(e,i);return d.setAttribute(C1(i),t),d}function O$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function De(e,t){if(e==null)return{};var n,r,o=O$(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _l(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(ln(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,d){var f=U(c,2),v=f[1];return o.internalGet(d)[1]0,void 0),Ug+=1}return Wt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),pd=new Km;function qf(e){var t=Array.isArray(e)?e:[e];return pd.has(t)||pd.set(t,new O1(t)),pd.get(t)}var F$=new WeakMap,gd={};function k$(e,t){for(var n=F$,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=Kg.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof O1?n+=o.id:o&&Fe(o)==="object"?n+=rl(o,t):n+=o}),t&&(n=Il(n)),Kg.set(e,n)),n}function Gg(e,t){return Il("".concat(t,"_").concat(rl(e,!0)))}var Xf=xn();function ee(e){return typeof e=="number"?"".concat(e,"px"):e}function Lu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=B(B({},r),{},j(j({},da,t),dr,n)),a=Object.keys(i).map(function(l){var s=i[l];return s?"".concat(l,'="').concat(s,'"'):null}).filter(function(l){return l}).join(" ");return"")}var Ys=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},A$=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=U(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},R1=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,c=U(a,2),d=c[0],f=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var v,y=Ys(d,r==null?void 0:r.prefix);o[y]=typeof f=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(y,")")}}),[i,A$(o,n,{scope:r==null?void 0:r.scope})]},qg=xn()?u.useLayoutEffect:u.useEffect,mt=function(t,n){var r=u.useRef(!0);qg(function(){return t(r.current)},n),qg(function(){return r.current=!1,function(){r.current=!0}},[])},ta=function(t,n){mt(function(r){if(!r)return t()},n)},j$=B({},Gu),Xg=j$.useInsertionEffect,z$=function(t,n,r){u.useMemo(t,r),mt(function(){return n(!0)},r)},D$=Xg?function(e,t,n){return Xg(function(){return e(),t()},n)}:z$,B$=B({},Gu),V$=B$.useInsertionEffect,H$=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},W$=function(){return function(t){t()}},U$=typeof V$<"u"?H$:W$;function Gm(e,t,n,r,o){var i=u.useContext(wc),a=i.cache,l=[e].concat(ue(t)),s=Gf(l),c=U$([s]),d=function(h){a.opUpdate(s,function(b){var C=b||[void 0,void 0],g=U(C,2),m=g[0],p=m===void 0?0:m,S=g[1],w=S,x=w||n(),E=[p,x];return h?h(E):E})};u.useMemo(function(){d()},[s]);var f=a.opGet(s),v=f[1];return D$(function(){o==null||o(v)},function(y){return d(function(h){var b=U(h,2),C=b[0],g=b[1];return y&&C===0&&(o==null||o(v)),[C+1,g]}),function(){a.opUpdate(s,function(h){var b=h||[],C=U(b,2),g=C[0],m=g===void 0?0:g,p=C[1],S=m-1;return S===0?(c(function(){(y||!a.opGet(s))&&(r==null||r(p,!1))}),null):[m-1,p]})}},[s]),v}var K$={},G$="css",Uo=new Map;function q$(e){Uo.set(e,(Uo.get(e)||0)+1)}function X$(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(da,'="').concat(e,'"]'));n.forEach(function(r){if(r[vo]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var Q$=0;function Y$(e,t){Uo.set(e,(Uo.get(e)||0)-1);var n=Array.from(Uo.keys()),r=n.filter(function(o){var i=Uo.get(o)||0;return i<=0});n.length-r.length>Q$&&r.forEach(function(o){X$(o,t),Uo.delete(o)})}var Z$=function(t,n,r,o){var i=r.getDerivativeToken(t),a=B(B({},i),n);return o&&(a=o(a)),a},I1="token";function J$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(wc),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?K$:s,d=n.formatToken,f=n.getComputedToken,v=n.cssVar,y=k$(function(){return Object.assign.apply(Object,[{}].concat(ue(t)))},t),h=rl(y),b=rl(c),C=v?rl(v):"",g=Gm(I1,[l,e.id,h,b,C],function(){var m,p=f?f(y,c,e):Z$(y,c,e,d),S=B({},p),w="";if(v){var x=R1(p,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),E=U(x,2);p=E[0],w=E[1]}var $=Gg(p,l);p._tokenKey=$,S._tokenKey=Gg(S,l);var O=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:$;p._themeKey=O,q$(O);var P="".concat(G$,"-").concat(Il($));return p._hashId=P,[p,P,S,w,(v==null?void 0:v.key)||""]},function(m){Y$(m[0]._themeKey,o)},function(m){var p=U(m,4),S=p[0],w=p[3];if(v&&w){var x=Vr(w,Il("css-variables-".concat(S._themeKey)),{mark:dr,prepend:"queue",attachTo:i,priority:-999});x[vo]=o,x.setAttribute(da,S._themeKey)}});return g}var e2=function(t,n,r){var o=U(t,5),i=o[2],a=o[3],l=o[4],s=r||{},c=s.plain;if(!a)return null;var d=i._tokenKey,f=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},y=Lu(a,l,d,v,c);return[f,d,y]},t2={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},P1="comm",_1="rule",M1="decl",n2="@import",r2="@keyframes",o2="@layer",T1=Math.abs,qm=String.fromCharCode;function N1(e){return e.trim()}function Zs(e,t,n){return e.replace(t,n)}function i2(e,t,n){return e.indexOf(t,n)}function Ml(e,t){return e.charCodeAt(t)|0}function Tl(e,t,n){return e.slice(t,n)}function jr(e){return e.length}function a2(e){return e.length}function Ss(e,t){return t.push(e),e}var xc=1,fa=1,L1=0,Qn=0,Nt=0,ya="";function Xm(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xc,column:fa,length:a,return:"",siblings:l}}function l2(){return Nt}function s2(){return Nt=Qn>0?Ml(ya,--Qn):0,fa--,Nt===10&&(fa=1,xc--),Nt}function fr(){return Nt=Qn2||Qf(Nt)>3?"":" "}function f2(e,t){for(;--t&&fr()&&!(Nt<48||Nt>102||Nt>57&&Nt<65||Nt>70&&Nt<97););return Ec(e,Js()+(t<6&&ei()==32&&fr()==32))}function Yf(e){for(;fr();)switch(Nt){case e:return Qn;case 34:case 39:e!==34&&e!==39&&Yf(Nt);break;case 40:e===41&&Yf(e);break;case 92:fr();break}return Qn}function v2(e,t){for(;fr()&&e+Nt!==57;)if(e+Nt===84&&ei()===47)break;return"/*"+Ec(t,Qn-1)+"*"+qm(e===47?e:fr())}function m2(e){for(;!Qf(ei());)fr();return Ec(e,Qn)}function p2(e){return c2(eu("",null,null,null,[""],e=u2(e),0,[0],e))}function eu(e,t,n,r,o,i,a,l,s){for(var c=0,d=0,f=a,v=0,y=0,h=0,b=1,C=1,g=1,m=0,p="",S=o,w=i,x=r,E=p;C;)switch(h=m,m=fr()){case 40:if(h!=108&&Ml(E,f-1)==58){i2(E+=Zs(hd(m),"&","&\f"),"&\f",T1(c?l[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:E+=hd(m);break;case 9:case 10:case 13:case 32:E+=d2(h);break;case 92:E+=f2(Js()-1,7);continue;case 47:switch(ei()){case 42:case 47:Ss(g2(v2(fr(),Js()),t,n,s),s);break;default:E+="/"}break;case 123*b:l[c++]=jr(E)*g;case 125*b:case 59:case 0:switch(m){case 0:case 125:C=0;case 59+d:g==-1&&(E=Zs(E,/\f/g,"")),y>0&&jr(E)-f&&Ss(y>32?Yg(E+";",r,n,f-1,s):Yg(Zs(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(Ss(x=Qg(E,t,n,c,d,o,l,p,S=[],w=[],f,i),i),m===123)if(d===0)eu(E,t,x,x,S,i,f,l,w);else switch(v===99&&Ml(E,3)===110?100:v){case 100:case 108:case 109:case 115:eu(e,x,x,r&&Ss(Qg(e,x,x,0,0,o,l,p,o,S=[],f,w),w),o,w,f,l,r?S:w);break;default:eu(E,x,x,x,[""],w,0,l,w)}}c=d=y=0,b=g=1,p=E="",f=a;break;case 58:f=1+jr(E),y=h;default:if(b<1){if(m==123)--b;else if(m==125&&b++==0&&s2()==125)continue}switch(E+=qm(m),m*b){case 38:g=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(jr(E)-1)*g,g=1;break;case 64:ei()===45&&(E+=hd(fr())),v=ei(),d=f=jr(p=E+=m2(Js())),m++;break;case 45:h===45&&jr(E)==2&&(b=0)}}return i}function Qg(e,t,n,r,o,i,a,l,s,c,d,f){for(var v=o-1,y=o===0?i:[""],h=a2(y),b=0,C=0,g=0;b0?y[m]+" "+p:Zs(p,/&\f/g,y[m])))&&(s[g++]=S);return Xm(e,t,n,o===0?_1:l,s,c,d,f)}function g2(e,t,n,r){return Xm(e,t,n,P1,qm(l2()),Tl(e,2,-2),0,r)}function Yg(e,t,n,r,o){return Xm(e,t,n,M1,Tl(e,0,r),Tl(e,r+1,-1),r,o)}function Zf(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var v="",y={};function h(g){var m=g.getName(l);if(!y[m]){var p=e(g.style,n,{root:!1,parentSelectors:a}),S=U(p,1),w=S[0];y[m]="@keyframes ".concat(g.getName(l)).concat(w)}}function b(g){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return g.forEach(function(p){Array.isArray(p)?b(p,m):p&&m.push(p)}),m}var C=b(Array.isArray(t)?t:[t]);return C.forEach(function(g){var m=typeof g=="string"&&!o?{}:g;if(typeof m=="string")v+="".concat(m,` +`);else if(m._keyframe)h(m);else{var p=f.reduce(function(S,w){var x;return(w==null||(x=w.visit)===null||x===void 0?void 0:x.call(w,S))||S},m);Object.keys(p).forEach(function(S){var w=p[S];if(Fe(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!w2(w)){var x=!1,E=S.trim(),$=!1;(o||i)&&l?E.startsWith("@")?x=!0:E=x2(S,l,c):o&&!l&&(E==="&"||E==="")&&(E="",$=!0);var O=e(w,n,{root:$,injectHash:x,parentSelectors:[].concat(ue(a),[E])}),P=U(O,2),k=P[0],A=P[1];y=B(B({},y),A),v+="".concat(E).concat(k)}else{let D=function(L,I){var R=L.replace(/[A-Z]/g,function(N){return"-".concat(N.toLowerCase())}),F=I;!t2[L]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),L==="animationName"&&I!==null&&I!==void 0&&I._keyframe&&(h(I),F=I.getName(l)),v+="".concat(R,":").concat(F,";")};var T,M=(T=w==null?void 0:w.value)!==null&&T!==void 0?T:w;Fe(w)==="object"&&w!==null&&w!==void 0&&w[A1]&&Array.isArray(M)?M.forEach(function(L){D(S,L)}):D(S,M)}})}}),o?s&&(v="@layer ".concat(s.name," {").concat(v,"}"),s.dependencies&&(y["@layer ".concat(s.name)]=s.dependencies.map(function(g){return"@layer ".concat(g,", ").concat(s.name,";")}).join(` +`))):v="{".concat(v,"}"),[v,y]};function j1(e,t){return Il("".concat(e.join("%")).concat(t))}function $2(){return null}var z1="style";function Jf(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(wc),f=d.autoClear;d.mock;var v=d.defaultCache,y=d.hashPriority,h=d.container,b=d.ssrInline,C=d.transformers,g=d.linters,m=d.cache,p=d.layer,S=n._tokenKey,w=[S];p&&w.push("layer"),w.push.apply(w,ue(r));var x=Xf,E=Gm(z1,w,function(){var A=w.join("|");if(b2(A)){var T=S2(A),M=U(T,2),D=M[0],L=M[1];if(D)return[D,S,L,{},l,c]}var I=t(),R=E2(I,{hashId:o,hashPriority:y,layer:p?i:void 0,path:r.join("-"),transformers:C,linters:g}),F=U(R,2),N=F[0],_=F[1],z=tu(N),V=j1(w,z);return[z,S,V,_,l,c]},function(A,T){var M=U(A,3),D=M[2];(T||f)&&Xf&&Pl(D,{mark:dr})},function(A){var T=U(A,4),M=T[0];T[1];var D=T[2],L=T[3];if(x&&M!==F1){var I={mark:dr,prepend:p?!1:"queue",attachTo:h,priority:c},R=typeof a=="function"?a():a;R&&(I.csp={nonce:R});var F=[],N=[];Object.keys(L).forEach(function(z){z.startsWith("@layer")?F.push(z):N.push(z)}),F.forEach(function(z){Vr(tu(L[z]),"_layer-".concat(z),B(B({},I),{},{prepend:!0}))});var _=Vr(M,D,I);_[vo]=m.instanceId,_.setAttribute(da,S),N.forEach(function(z){Vr(tu(L[z]),"_effect-".concat(z),I)})}}),$=U(E,3),O=$[0],P=$[1],k=$[2];return function(A){var T;return!b||x||!v?T=u.createElement($2,null):T=u.createElement("style",me({},j(j({},da,P),dr,k),{dangerouslySetInnerHTML:{__html:O}})),u.createElement(u.Fragment,null,T,A)}}var O2=function(t,n,r){var o=U(t,6),i=o[0],a=o[1],l=o[2],s=o[3],c=o[4],d=o[5],f=r||{},v=f.plain;if(c)return null;var y=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return y=Lu(i,a,l,h,v),s&&Object.keys(s).forEach(function(b){if(!n[b]){n[b]=!0;var C=tu(s[b]),g=Lu(C,a,"_effect-".concat(b),h,v);b.startsWith("@layer")?y=g+y:y+=g}}),[d,l,y]},D1="cssVar",R2=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,d=u.useContext(wc),f=d.cache.instanceId,v=d.container,y=l._tokenKey,h=[].concat(ue(t.path),[r,c,y]),b=Gm(D1,h,function(){var C=n(),g=R1(C,r,{prefix:o,unitless:i,ignore:a,scope:c}),m=U(g,2),p=m[0],S=m[1],w=j1(h,S);return[p,S,w,r]},function(C){var g=U(C,3),m=g[2];Xf&&Pl(m,{mark:dr})},function(C){var g=U(C,3),m=g[1],p=g[2];if(m){var S=Vr(m,p,{mark:dr,prepend:"queue",attachTo:v,priority:-999});S[vo]=f,S.setAttribute(da,r)}});return b},I2=function(t,n,r){var o=U(t,4),i=o[1],a=o[2],l=o[3],s=r||{},c=s.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},v=Lu(i,l,a,f,c);return[d,a,v]};j(j(j({},z1,O2),I1,e2),D1,I2);var Ft=function(){function e(t,n){Ht(this,e),j(this,"name",void 0),j(this,"style",void 0),j(this,"_keyframe",!0),this.name=t,this.style=n}return Wt(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function wi(e){return e.notSplit=!0,e}wi(["borderTop","borderBottom"]),wi(["borderTop"]),wi(["borderBottom"]),wi(["borderLeft","borderRight"]),wi(["borderLeft"]),wi(["borderRight"]);var Qm=u.createContext({});function P2(e){return b1(e)||p1(e)||Hm(e)||S1()}function xr(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!xr(e,t.slice(0,-1))?e:B1(e,t,n,r)}function _2(e){return Fe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Jg(e){return Array.isArray(e)?[]:{}}var M2=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ki(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=T2,e},V1=u.createContext(void 0);var L2={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"},F2={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const H1={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},eh={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"]},F2),timePickerLocale:Object.assign({},H1)},On="${label} is not a valid ${type}",si={locale:"en",Pagination:L2,DatePicker:eh,TimePicker:H1,Calendar:eh,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",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:On,method:On,array:On,object:On,number:On,date:On,boolean:On,integer:On,float:On,regexp:On,email:On,url:On,hex:On},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"}};Object.assign({},si.Modal);let nu=[];const th=()=>nu.reduce((e,t)=>Object.assign(Object.assign({},e),t),si.Modal);function k2(e){if(e){const t=Object.assign({},e);return nu.push(t),th(),()=>{nu=nu.filter(n=>n!==t),th()}}Object.assign({},si.Modal)}const Zm=u.createContext(void 0),W1=(e,t)=>{const n=u.useContext(Zm),r=u.useMemo(()=>{var i;const a=si[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=u.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?si.locale:i},[n]);return[r,o]},A2="internalMark",j2=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>k2(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Zm.Provider,{value:o},n)};function Zt(e,t){z2(e)&&(e="100%");var n=D2(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Cs(e){return Math.min(1,Math.max(0,e))}function z2(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function D2(e){return typeof e=="string"&&e.indexOf("%")!==-1}function U1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ws(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Xo(e){return e.length===1?"0"+e:String(e)}function B2(e,t,n){return{r:Zt(e,255)*255,g:Zt(t,255)*255,b:Zt(n,255)*255}}function nh(e,t,n){e=Zt(e,255),t=Zt(t,255),n=Zt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function V2(e,t,n){var r,o,i;if(e=Zt(e,360),t=Zt(t,100),n=Zt(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=yd(l,a,e+1/3),o=yd(l,a,e),i=yd(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function ev(e,t,n){e=Zt(e,255),t=Zt(t,255),n=Zt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var nv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ni(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=X2(e)),typeof e=="object"&&(Lr(e.r)&&Lr(e.g)&&Lr(e.b)?(t=B2(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Lr(e.h)&&Lr(e.s)&&Lr(e.v)?(r=ws(e.s),o=ws(e.v),t=H2(e.h,r,o),a=!0,l="hsv"):Lr(e.h)&&Lr(e.s)&&Lr(e.l)&&(r=ws(e.s),i=ws(e.l),t=V2(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=U1(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var G2="[-\\+]?\\d+%?",q2="[-\\+]?\\d*\\.\\d+%?",mo="(?:".concat(q2,")|(?:").concat(G2,")"),bd="[\\s|\\(]+(".concat(mo,")[,|\\s]+(").concat(mo,")[,|\\s]+(").concat(mo,")\\s*\\)?"),Sd="[\\s|\\(]+(".concat(mo,")[,|\\s]+(").concat(mo,")[,|\\s]+(").concat(mo,")[,|\\s]+(").concat(mo,")\\s*\\)?"),tr={CSS_UNIT:new RegExp(mo),rgb:new RegExp("rgb"+bd),rgba:new RegExp("rgba"+Sd),hsl:new RegExp("hsl"+bd),hsla:new RegExp("hsla"+Sd),hsv:new RegExp("hsv"+bd),hsva:new RegExp("hsva"+Sd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function X2(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(nv[e])e=nv[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=tr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=tr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=tr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=tr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=tr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=tr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=tr.hex8.exec(e),n?{r:In(n[1]),g:In(n[2]),b:In(n[3]),a:rh(n[4]),format:t?"name":"hex8"}:(n=tr.hex6.exec(e),n?{r:In(n[1]),g:In(n[2]),b:In(n[3]),format:t?"name":"hex"}:(n=tr.hex4.exec(e),n?{r:In(n[1]+n[1]),g:In(n[2]+n[2]),b:In(n[3]+n[3]),a:rh(n[4]+n[4]),format:t?"name":"hex8"}:(n=tr.hex3.exec(e),n?{r:In(n[1]+n[1]),g:In(n[2]+n[2]),b:In(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Lr(e){return!!tr.CSS_UNIT.exec(String(e))}var bn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=K2(t)),this.originalInput=t;var o=Ni(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=U1(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=ev(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=ev(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=nh(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=nh(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),tv(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),W2(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Zt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Zt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+tv(this.r,this.g,this.b,!1),n=0,r=Object.entries(nv);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Cs(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Cs(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Cs(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Cs(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-xs*t:Math.round(e.h)+xs*t:r=n?Math.round(e.h)+xs*t:Math.round(e.h)-xs*t,r<0?r+=360:r>=360&&(r-=360),r}function lh(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-oh*t:t===G1?r=e.s+oh:r=e.s+Q2*t,r>1&&(r=1),n&&t===K1&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function sh(e,t,n){var r;return n?r=e.v+Y2*t:r=e.v-Z2*t,r>1&&(r=1),Number(r.toFixed(2))}function Nl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ni(e),o=K1;o>0;o-=1){var i=ih(r),a=Es(Ni({h:ah(i,o,!0),s:lh(i,o,!0),v:sh(i,o,!0)}));n.push(a)}n.push(Es(r));for(var l=1;l<=G1;l+=1){var s=ih(r),c=Es(Ni({h:ah(s,l),s:lh(s,l),v:sh(s,l)}));n.push(c)}return t.theme==="dark"?J2.map(function(d){var f=d.index,v=d.opacity,y=Es(eO(Ni(t.backgroundColor||"#141414"),Ni(n[f]),v*100));return y}):n}var Cd={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"},rv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];rv.primary=rv[5];var ov=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ov.primary=ov[5];var iv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];iv.primary=iv[5];var Fu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Fu.primary=Fu[5];var av=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];av.primary=av[5];var lv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];lv.primary=lv[5];var sv=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];sv.primary=sv[5];var uv=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];uv.primary=uv[5];var ku=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ku.primary=ku[5];var cv=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];cv.primary=cv[5];var dv=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];dv.primary=dv[5];var fv=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];fv.primary=fv[5];var vv=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];vv.primary=vv[5];var wd={red:rv,volcano:ov,orange:iv,gold:Fu,yellow:av,lime:lv,green:sv,cyan:uv,blue:ku,geekblue:cv,purple:dv,magenta:fv,grey:vv};const q1={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"},Ll=Object.assign(Object.assign({},q1),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'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});function tO(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=n(s),v=n(o),y=n(i),h=n(a),b=n(l),C=r(c,d),g=e.colorLink||e.colorInfo,m=n(g);return Object.assign(Object.assign({},C),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new bn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const nO=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function rO(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},nO(r))}const oO=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ru(e){return(e+8)/e}function iO(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ru(n)}))}const aO=e=>{const t=iO(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function lO(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Fr=(e,t)=>new bn(e).setAlpha(t).toRgbString(),ka=(e,t)=>new bn(e).darken(t).toHexString(),sO=e=>{const t=Nl(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]}},uO=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Fr(r,.88),colorTextSecondary:Fr(r,.65),colorTextTertiary:Fr(r,.45),colorTextQuaternary:Fr(r,.25),colorFill:Fr(r,.15),colorFillSecondary:Fr(r,.06),colorFillTertiary:Fr(r,.04),colorFillQuaternary:Fr(r,.02),colorBgLayout:ka(n,4),colorBgContainer:ka(n,0),colorBgElevated:ka(n,0),colorBgSpotlight:Fr(r,.85),colorBgBlur:"transparent",colorBorder:ka(n,15),colorBorderSecondary:ka(n,6)}};function cO(e){Cd.pink=Cd.magenta,wd.pink=wd.magenta;const t=Object.keys(q1).map(n=>{const r=e[n]===Cd[n]?wd[n]:Nl(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),tO(e,{generateColorPalettes:sO,generateNeutralColorPalettes:uO})),aO(e.fontSize)),lO(e)),oO(e)),rO(e))}const X1=qf(cO),mv={token:Ll,override:{override:Ll},hashed:!0},Q1=Z.createContext(mv),Y1="anticon",dO=["outlined","borderless","filled"],fO=(e,t)=>t||(e?`ant-${e}`:"ant"),st=u.createContext({getPrefixCls:fO,iconPrefixCls:Y1}),vO=`-ant-${Date.now()}-${Math.random()}`;function mO(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new bn(a),c=Nl(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new bn(t.primaryColor),l=Nl(a.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new bn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` +`)} + } + `.trim()}function pO(e,t){const n=mO(e,t);xn()&&Vr(n,`${vO}-dynamic-theme`)}const $o=u.createContext(!1),Z1=e=>{let{children:t,disabled:n}=e;const r=u.useContext($o);return u.createElement($o.Provider,{value:n??r},t)},ui=u.createContext(void 0),gO=e=>{let{children:t,size:n}=e;const r=u.useContext(ui);return u.createElement(ui.Provider,{value:n||r},t)};function hO(){const e=u.useContext($o),t=u.useContext(ui);return{componentDisabled:e,componentSize:t}}const Au=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],yO="5.19.1";function xd(e){return e>=0&&e<=255}function $s(e,t){const{r:n,g:r,b:o,a:i}=new bn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new bn(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),v=Math.round((o-s*(1-c))/c);if(xd(d)&&xd(f)&&xd(v))return new bn({r:d,g:f,b:v,a:Math.round(c*100)/100}).toRgbString()}return new bn({r:n,g:r,b:o,a:1}).toRgbString()}var bO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[v]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,c=1200,d=1600;if(o.motion===!1){const v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:$s(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:$s(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:$s(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:$s(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:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new bn("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new bn("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new bn("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var uh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=uh(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=J1(a),i&&Object.entries(i).forEach(l=>{let[s,c]=l;const{theme:d}=c,f=uh(c,["theme"]);let v=f;d&&(v=nS(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=v}),a};function mr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=Z.useContext(Q1),i=`${yO}-${t||""}`,a=n||X1,[l,s,c]=J$(a,[Ll,e],{salt:i,override:r,getComputedToken:nS,formatToken:J1,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:eS,ignore:tS,preserve:SO}});return[a,c,t?s:"",l,o]}function Kt(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;ao&&typeof o=="object"?`obj_${this.getObjectID(o)}`:`${typeof o}_${o}`).join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);const r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){if(this.accessBeat>1e4){const n=Date.now();this.lastAccessBeat.forEach((r,o)=>{n-r>CO&&(this.map.delete(o),this.lastAccessBeat.delete(o))}),this.accessBeat=0}}}])}();const ch=new wO;function xO(e,t){return Z.useMemo(()=>{const n=ch.get(t);if(n)return n;const r=e();return ch.set(t,r),r},t)}const rS=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),EO={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Rr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},oS=()=>({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"}}),$O=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),OO=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),RO=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},IO=e=>({outline:`${ee(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Jm=e=>({"&:focus-visible":Object.assign({},IO(e))});function PO(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;ree(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;ree(o)).join(",")})`}}}const iS=typeof CSSINJS_STATISTIC<"u";let pv=!0;function en(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),pv=!0,r}const dh={};function _O(){}const MO=e=>{let t,n=e,r=_O;return iS&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return pv&&t.add(i),o[i]}}),r=(o,i)=>{var a;dh[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=dh[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},aS=(e,t)=>{const[n,r]=mr();return Jf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},oS()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},lS=(e,t,n)=>{var r;return typeof n=="function"?n(en(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},sS=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(l=>{let[s,c]=l;var d;(o!=null&&o[s]||o!=null&&o[c])&&((d=o[c])!==null&&d!==void 0||(o[c]=o==null?void 0:o[s]))})}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach(a=>{i[a]===t[a]&&delete i[a]}),i},fh=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function ep(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[c,d,f,v,y]=mr(),{getPrefixCls:h,iconPrefixCls:b,csp:C}=u.useContext(st),g=h(),m=y?"css":"js",p=xO(()=>{const $=new Set;return y&&Object.keys(r.unitless||{}).forEach(O=>{$.add(Ys(O,y.prefix)),$.add(Ys(O,fh(i,y.prefix)))}),N$(m,$)},[m,i,y==null?void 0:y.prefix]),{max:S,min:w}=PO(m),x={theme:c,token:v,hashId:f,nonce:()=>C==null?void 0:C.nonce,clientOnly:r.clientOnly,layer:{name:"antd"},order:r.order||-999};return Jf(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",g]}),()=>[{"&":OO(v)}]),aS(b,C),[Jf(Object.assign(Object.assign({},x),{path:[a,l,b]}),()=>{if(r.injectStyle===!1)return[];const{token:$,flush:O}=MO(v),P=lS(i,d,n),k=`.${l}`,A=sS(i,d,P,{deprecatedTokens:r.deprecatedTokens});y&&Object.keys(P).forEach(D=>{P[D]=`var(${Ys(D,fh(i,y.prefix))})`});const T=en($,{componentCls:k,prefixCls:l,iconCls:`.${b}`,antCls:`.${g}`,calc:p,max:S,min:w},y?P:A),M=t(T,{hashId:f,prefixCls:l,rootPrefixCls:g,iconPrefixCls:b});return O(i,A),[r.resetStyle===!1?null:RO(T,l,s,r.resetFont),M]}),f]}}const uS=(e,t,n,r)=>{const o=ep(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:l,rootCls:s=l}=a;return o(l,s),null}},TO=(e,t,n)=>{const{unitless:r,injectStyle:o=!0,prefixToken:i}=n,a=s=>{let{rootCls:c,cssVar:d}=s;const[,f]=mr();return R2({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:r,ignore:tS,token:f,scope:c},()=>{const v=lS(e,f,t),y=sS(e,f,v,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(v).forEach(h=>{y[i(h)]=y[h],delete y[h]}),y}),null};return s=>{const[,,,,c]=mr();return[d=>o&&c?Z.createElement(Z.Fragment,null,Z.createElement(a,{rootCls:s,cssVar:c,component:e}),d):d,c==null?void 0:c.key]}},gr=(e,t,n,r)=>{const o=Array.isArray(e)?e[0]:e;function i(f){return`${o}${f.slice(0,1).toUpperCase()}${f.slice(1)}`}const a=(r==null?void 0:r.unitless)||{},l=Object.assign(Object.assign({},eS),{[i("zIndexPopup")]:!0});Object.keys(a).forEach(f=>{l[i(f)]=a[f]});const s=Object.assign(Object.assign({},r),{unitless:l,prefixToken:i}),c=ep(e,t,n,s),d=TO(o,n,s);return function(f){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;const[,y]=c(f,v),[h,b]=d(v);return[h,y,b]}};function NO(e,t){return Au.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const LO=Object.assign({},Gu),{useId:vh}=LO,FO=()=>"",kO=typeof vh>"u"?FO:vh;function AO(e,t,n){var r;Ym();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},mv),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:mv.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=kO();return bc(()=>{var l,s;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),e.components[v])});const d=`css-var-${a.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(l,s)=>l.some((c,d)=>{const f=s[d];return!_l(c,f,!0)}))}var jO=["children"],cS=u.createContext({});function zO(e){var t=e.children,n=De(e,jO);return u.createElement(cS.Provider,{value:n},t)}var DO=function(e){_o(n,e);var t=Mo(n);function n(){return Ht(this,n),t.apply(this,arguments)}return Wt(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function BO(e){var t=u.useReducer(function(l){return l+1},0),n=U(t,2),r=n[1],o=u.useRef(e),i=Kt(function(){return o.current}),a=Kt(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var oo="none",Os="appear",Rs="enter",Is="leave",mh="none",ar="prepare",Gi="start",qi="active",tp="end",dS="prepared";function ph(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function VO(e,t){var n={animationend:ph("Animation","AnimationEnd"),transitionend:ph("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var HO=VO(xn(),typeof window<"u"?window:{}),fS={};if(xn()){var WO=document.createElement("div");fS=WO.style}var Ps={};function vS(e){if(Ps[e])return Ps[e];var t=HO[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=gt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var GO=[ar,Gi,qi,tp],qO=[ar,dS],yS=!1,XO=!0;function bS(e){return e===qi||e===tp}const QO=function(e,t,n){var r=va(mh),o=U(r,2),i=o[0],a=o[1],l=KO(),s=U(l,2),c=s[0],d=s[1];function f(){a(ar,!0)}var v=t?qO:GO;return hS(function(){if(i!==mh&&i!==tp){var y=v.indexOf(i),h=v[y+1],b=n(i);b===yS?a(h,!0):h&&c(function(C){function g(){C.isCanceled()||a(h,!0)}b===!0?g():Promise.resolve(b).then(g)})}},[e,i]),u.useEffect(function(){return function(){d()}},[]),[f,i]};function YO(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,y=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,C=r.onEnterStart,g=r.onLeaveStart,m=r.onAppearActive,p=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,$=r.onVisibleChanged,O=va(),P=U(O,2),k=P[0],A=P[1],T=BO(oo),M=U(T,2),D=M[0],L=M[1],I=va(null),R=U(I,2),F=R[0],N=R[1],_=D(),z=u.useRef(!1),V=u.useRef(null);function H(){return n()}var K=u.useRef(!1);function G(){L(oo),N(null,!0)}var W=Kt(function(ne){var te=D();if(te!==oo){var xe=H();if(!(ne&&!ne.deadline&&ne.target!==xe)){var ge=K.current,ve;te===Os&&ge?ve=w==null?void 0:w(xe,ne):te===Rs&&ge?ve=x==null?void 0:x(xe,ne):te===Is&&ge&&(ve=E==null?void 0:E(xe,ne)),ge&&ve!==!1&&G()}}}),q=UO(W),Y=U(q,1),ie=Y[0],ae=function(te){switch(te){case Os:return j(j(j({},ar,v),Gi,b),qi,m);case Rs:return j(j(j({},ar,y),Gi,C),qi,p);case Is:return j(j(j({},ar,h),Gi,g),qi,S);default:return{}}},le=u.useMemo(function(){return ae(_)},[_]),fe=QO(_,!e,function(ne){if(ne===ar){var te=le[ar];return te?te(H()):yS}if(pe in le){var xe;N(((xe=le[pe])===null||xe===void 0?void 0:xe.call(le,H(),null))||null)}return pe===qi&&_!==oo&&(ie(H()),d>0&&(clearTimeout(V.current),V.current=setTimeout(function(){W({deadline:!0})},d))),pe===dS&&G(),XO}),Q=U(fe,2),re=Q[0],pe=Q[1],Re=bS(pe);K.current=Re,hS(function(){A(t);var ne=z.current;z.current=!0;var te;!ne&&t&&l&&(te=Os),ne&&t&&i&&(te=Rs),(ne&&!t&&c||!ne&&f&&!t&&c)&&(te=Is);var xe=ae(te);te&&(e||xe[ar])?(L(te),re()):L(oo)},[t]),u.useEffect(function(){(_===Os&&!l||_===Rs&&!i||_===Is&&!c)&&L(oo)},[l,i,c]),u.useEffect(function(){return function(){z.current=!1,clearTimeout(V.current)}},[]);var Me=u.useRef(!1);u.useEffect(function(){k&&(Me.current=!0),k!==void 0&&_===oo&&((Me.current||k)&&($==null||$(k)),Me.current=!0)},[k,_]);var be=F;return le[ar]&&pe===Gi&&(be=B({transition:"none"},be)),[_,pe,be,k??t]}function ZO(e){var t=e;Fe(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=u.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,c=s===void 0?!0:s,d=o.forceRender,f=o.children,v=o.motionName,y=o.leavedClassName,h=o.eventProps,b=u.useContext(cS),C=b.motion,g=n(o,C),m=u.useRef(),p=u.useRef();function S(){try{return m.current instanceof HTMLElement?m.current:Qs(p.current)}catch{return null}}var w=YO(g,l,S,o),x=U(w,4),E=x[0],$=x[1],O=x[2],P=x[3],k=u.useRef(P);P&&(k.current=!0);var A=u.useCallback(function(F){m.current=F,Bm(i,F)},[i]),T,M=B(B({},h),{},{visible:l});if(!f)T=null;else if(E===oo)P?T=f(B({},M),A):!c&&k.current&&y?T=f(B(B({},M),{},{className:y}),A):d||!c&&!y?T=f(B(B({},M),{},{style:{display:"none"}}),A):T=null;else{var D;$===ar?D="prepare":bS($)?D="active":$===Gi&&(D="start");var L=yh(v,"".concat(E,"-").concat(D));T=f(B(B({},M),{},{className:X(yh(v,E),j(j({},L,L&&D),v,typeof v=="string")),style:O}),A)}if(u.isValidElement(T)&&Po(T)){var I=T,R=I.ref;R||(T=u.cloneElement(T,{ref:A}))}return u.createElement(DO,{ref:p},T)});return r.displayName="CSSMotion",r}const To=ZO(gS);var gv="add",hv="keep",yv="remove",$d="removed";function JO(e){var t;return e&&Fe(e)==="object"&&"key"in e?t=e:t={key:e},B(B({},t),{},{key:String(t.key)})}function bv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(JO)}function eR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=bv(e),a=bv(t);i.forEach(function(c){for(var d=!1,f=r;f1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,v=d.status;return f!==c||v!==yv}),n.forEach(function(d){d.key===c&&(d.status=hv)})}),n}var tR=["component","children","onVisibleChanged","onAllRemoved"],nR=["status"],rR=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function oR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:To,n=function(r){_o(i,r);var o=Mo(i);function i(){var a;Ht(this,i);for(var l=arguments.length,s=new Array(l),c=0;cnull;var sR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const fR=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(CS=t),r&&dR(r)&&pO(cR(),r)},vR=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:y,popupOverflow:h,legacyLocale:b,parentContext:C,iconPrefixCls:g,theme:m,componentDisabled:p,segmented:S,statistic:w,spin:x,calendar:E,carousel:$,cascader:O,collapse:P,typography:k,checkbox:A,descriptions:T,divider:M,drawer:D,skeleton:L,steps:I,image:R,layout:F,list:N,mentions:_,modal:z,progress:V,result:H,slider:K,breadcrumb:G,menu:W,pagination:q,input:Y,textArea:ie,empty:ae,badge:le,radio:fe,rate:Q,switch:re,transfer:pe,avatar:Re,message:Me,tag:be,table:ne,card:te,tabs:xe,timeline:ge,timePicker:ve,upload:Ie,notification:Se,tree:Et,colorPicker:Je,datePicker:Oe,rangePicker:he,flex:ke,wave:Ae,dropdown:bt,warning:ht,tour:qe,floatButtonGroup:Ge,variant:tt,inputNumber:se,treeSelect:Pe}=e,Ve=u.useCallback((Ue,nt)=>{const{prefixCls:it}=e;if(nt)return nt;const $t=it||C.getPrefixCls("");return Ue?`${$t}-${Ue}`:$t},[C.getPrefixCls,e.prefixCls]),ut=g||C.iconPrefixCls||Y1,$e=n||C.csp;aS(ut,$e);const de=AO(m,C.theme,{prefixCls:Ve("")}),Ce={csp:$e,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||b,direction:c,space:d,virtual:f,popupMatchSelectWidth:y??v,popupOverflow:h,getPrefixCls:Ve,iconPrefixCls:ut,theme:de,segmented:S,statistic:w,spin:x,calendar:E,carousel:$,cascader:O,collapse:P,typography:k,checkbox:A,descriptions:T,divider:M,drawer:D,skeleton:L,steps:I,image:R,input:Y,textArea:ie,layout:F,list:N,mentions:_,modal:z,progress:V,result:H,slider:K,breadcrumb:G,menu:W,pagination:q,empty:ae,badge:le,radio:fe,rate:Q,switch:re,transfer:pe,avatar:Re,message:Me,tag:be,table:ne,card:te,tabs:xe,timeline:ge,timePicker:ve,upload:Ie,notification:Se,tree:Et,colorPicker:Je,datePicker:Oe,rangePicker:he,flex:ke,wave:Ae,dropdown:bt,warning:ht,tour:qe,floatButtonGroup:Ge,variant:tt,inputNumber:se,treeSelect:Pe},oe=Object.assign({},C);Object.keys(Ce).forEach(Ue=>{Ce[Ue]!==void 0&&(oe[Ue]=Ce[Ue])}),uR.forEach(Ue=>{const nt=e[Ue];nt&&(oe[Ue]=nt)}),typeof r<"u"&&(oe.button=Object.assign({autoInsertSpace:r},oe.button));const Te=bc(()=>oe,oe,(Ue,nt)=>{const it=Object.keys(Ue),$t=Object.keys(nt);return it.length!==$t.length||it.some(tn=>Ue[tn]!==nt[tn])}),_e=u.useMemo(()=>({prefixCls:ut,csp:$e}),[ut,$e]);let Ee=u.createElement(u.Fragment,null,u.createElement(lR,{dropdownMatchSelectWidth:v}),t);const We=u.useMemo(()=>{var Ue,nt,it,$t;return Ki(((Ue=si.Form)===null||Ue===void 0?void 0:Ue.defaultValidateMessages)||{},((it=(nt=Te.locale)===null||nt===void 0?void 0:nt.Form)===null||it===void 0?void 0:it.defaultValidateMessages)||{},(($t=Te.form)===null||$t===void 0?void 0:$t.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Te,a==null?void 0:a.validateMessages]);Object.keys(We).length>0&&(Ee=u.createElement(V1.Provider,{value:We},Ee)),l&&(Ee=u.createElement(j2,{locale:l,_ANT_MARK__:A2},Ee)),(ut||$e)&&(Ee=u.createElement(Qm.Provider,{value:_e},Ee)),s&&(Ee=u.createElement(gO,{size:s},Ee)),Ee=u.createElement(aR,null,Ee);const et=u.useMemo(()=>{const Ue=de||{},{algorithm:nt,token:it,components:$t,cssVar:tn}=Ue,mn=sR(Ue,["algorithm","token","components","cssVar"]),pn=nt&&(!Array.isArray(nt)||nt.length>0)?qf(nt):X1,At={};Object.entries($t||{}).forEach(Ne=>{let[ze,St]=Ne;const ct=Object.assign({},St);"algorithm"in ct&&(ct.algorithm===!0?ct.theme=pn:(Array.isArray(ct.algorithm)||typeof ct.algorithm=="function")&&(ct.theme=qf(ct.algorithm)),delete ct.algorithm),At[ze]=ct});const Ke=Object.assign(Object.assign({},Ll),it);return Object.assign(Object.assign({},mn),{theme:pn,token:Ke,components:At,override:Object.assign({override:Ke},At),cssVar:tn})},[de]);return m&&(Ee=u.createElement(Q1.Provider,{value:et},Ee)),Te.warning&&(Ee=u.createElement(N2.Provider,{value:Te.warning},Ee)),p!==void 0&&(Ee=u.createElement(Z1,{disabled:p},Ee)),u.createElement(st.Provider,{value:Te},Ee)},ba=e=>{const t=u.useContext(st),n=u.useContext(Zm);return u.createElement(vR,Object.assign({parentContext:t,legacyLocale:n},e))};ba.ConfigContext=st;ba.SizeContext=ui;ba.config=fR;ba.useConfig=hO;Object.defineProperty(ba,"SizeContext",{get:()=>ui});var mR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function wS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function pR(e){return wS(e)instanceof ShadowRoot}function ju(e){return pR(e)?wS(e):null}function gR(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function hR(e,t){ln(e,"[@ant-design/icons] ".concat(t))}function bh(e){return Fe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Fe(e.icon)==="object"||typeof e.icon=="function")}function Sh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[gR(n)]=r}return t},{})}function Sv(e,t,n){return n?Z.createElement(e.tag,B(B({key:t},Sh(e.attrs)),n),(e.children||[]).map(function(r,o){return Sv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Z.createElement(e.tag,B({key:t},Sh(e.attrs)),(e.children||[]).map(function(r,o){return Sv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function xS(e){return Nl(e)[0]}function ES(e){return e?Array.isArray(e)?e:[e]:[]}var yR=` +.anticon { + display: inline-flex; + align-items: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,bR=function(t){var n=u.useContext(Qm),r=n.csp,o=n.prefixCls,i=yR;o&&(i=i.replace(/anticon/g,o)),u.useEffect(function(){var a=t.current,l=ju(a);Vr(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},SR=["icon","className","onClick","style","primaryColor","secondaryColor"],ol={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function CR(e){var t=e.primaryColor,n=e.secondaryColor;ol.primaryColor=t,ol.secondaryColor=n||xS(t),ol.calculated=!!n}function wR(){return B({},ol)}var Sa=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=De(t,SR),c=u.useRef(),d=ol;if(a&&(d={primaryColor:a,secondaryColor:l||xS(a)}),bR(c),hR(bh(n),"icon should be icon definiton, but got ".concat(n)),!bh(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=B(B({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Sv(f.icon,"svg-".concat(f.name),B(B({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Sa.displayName="IconReact";Sa.getTwoToneColors=wR;Sa.setTwoToneColors=CR;function $S(e){var t=ES(e),n=U(t,2),r=n[0],o=n[1];return Sa.setTwoToneColors({primaryColor:r,secondaryColor:o})}function xR(){var e=Sa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ER=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];$S(ku.primary);var kt=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=De(e,ER),d=u.useContext(Qm),f=d.prefixCls,v=f===void 0?"anticon":f,y=d.rootClassName,h=X(y,v,j(j({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!o||r.name==="loading"),n),b=a;b===void 0&&l&&(b=-1);var C=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=ES(s),m=U(g,2),p=m[0],S=m[1];return u.createElement("span",me({role:"img","aria-label":r.name},c,{ref:t,tabIndex:b,onClick:l,className:h}),u.createElement(Sa,{icon:r,primaryColor:p,secondaryColor:S,style:C}))});kt.displayName="AntdIcon";kt.getTwoToneColor=xR;kt.setTwoToneColor=$S;var $R=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:mR}))},OR=u.forwardRef($R),RR={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},IR=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:RR}))},OS=u.forwardRef(IR),PR={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},_R=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:PR}))},MR=u.forwardRef(_R),TR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},NR=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:TR}))},LR=u.forwardRef(NR),FR=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,kR=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,AR="".concat(FR," ").concat(kR).split(/[\s\n]+/),jR="aria-",zR="data-";function Ch(e,t){return e.indexOf(t)===0}function DR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=B({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Ch(o,jR))||n.data&&Ch(o,zR)||n.attr&&AR.includes(o))&&(r[o]=e[o])}),r}function RS(e){return e&&Z.isValidElement(e)&&e.type===Z.Fragment}const BR=(e,t,n)=>Z.isValidElement(e)?Z.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function ci(e,t){return BR(e,e,t)}const wh=e=>typeof e=="object"&&e!=null&&e.nodeType===1,xh=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Od=(e,t)=>{if(e.clientHeight{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,VR=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Eh=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:d}=t,f=typeof c=="function"?c:L=>L!==c;if(!wh(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,y=[];let h=e;for(;wh(h)&&f(h);){if(h=VR(h),h===v){y.push(h);break}h!=null&&h===document.body&&Od(h)&&!Od(document.documentElement)||h!=null&&Od(h,d)&&y.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,C=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:g,scrollY:m}=window,{height:p,width:S,top:w,right:x,bottom:E,left:$}=e.getBoundingClientRect(),{top:O,right:P,bottom:k,left:A}=(L=>{const I=window.getComputedStyle(L);return{top:parseFloat(I.scrollMarginTop)||0,right:parseFloat(I.scrollMarginRight)||0,bottom:parseFloat(I.scrollMarginBottom)||0,left:parseFloat(I.scrollMarginLeft)||0}})(e);let T=l==="start"||l==="nearest"?w-O:l==="end"?E+k:w+p/2-O+k,M=s==="center"?$+S/2-A+P:s==="end"?x+P:$-A;const D=[];for(let L=0;L=0&&$>=0&&E<=C&&x<=b&&w>=N&&E<=z&&$>=V&&x<=_)return D;const H=getComputedStyle(I),K=parseInt(H.borderLeftWidth,10),G=parseInt(H.borderTopWidth,10),W=parseInt(H.borderRightWidth,10),q=parseInt(H.borderBottomWidth,10);let Y=0,ie=0;const ae="offsetWidth"in I?I.offsetWidth-I.clientWidth-K-W:0,le="offsetHeight"in I?I.offsetHeight-I.clientHeight-G-q:0,fe="offsetWidth"in I?I.offsetWidth===0?0:F/I.offsetWidth:0,Q="offsetHeight"in I?I.offsetHeight===0?0:R/I.offsetHeight:0;if(v===I)Y=l==="start"?T:l==="end"?T-C:l==="nearest"?_s(m,m+C,C,G,q,m+T,m+T+p,p):T-C/2,ie=s==="start"?M:s==="center"?M-b/2:s==="end"?M-b:_s(g,g+b,b,K,W,g+M,g+M+S,S),Y=Math.max(0,Y+m),ie=Math.max(0,ie+g);else{Y=l==="start"?T-N-G:l==="end"?T-z+q+le:l==="nearest"?_s(N,z,R,G,q+le,T,T+p,p):T-(N+R/2)+le/2,ie=s==="start"?M-V-K:s==="center"?M-(V+F/2)+ae/2:s==="end"?M-_+W+ae:_s(V,_,F,K,W+ae,M,M+S,S);const{scrollLeft:re,scrollTop:pe}=I;Y=Q===0?0:Math.max(0,Math.min(pe+Y/Q,I.scrollHeight-R/Q+le)),ie=fe===0?0:Math.max(0,Math.min(re+ie/fe,I.scrollWidth-F/fe+ae)),T+=pe-Y,M+=re-ie}D.push({el:I,top:Y,left:ie})}return D},HR=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function WR(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Eh(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of Eh(e,HR(t))){const l=i-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const No=e=>{const[,,,,t]=mr();return t?`${e}-css-var`:""};var ce={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ce.F1&&n<=ce.F12)return!1;switch(n){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},UR={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},KR=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:UR}))},np=u.forwardRef(KR);const IS=Z.createContext(void 0),xi=100,PS={Modal:xi,Drawer:xi,Popover:xi,Popconfirm:xi,Tooltip:xi,Tour:xi},GR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function qR(e){return e in PS}function XR(e,t){const[,n]=mr(),r=Z.useContext(IS),o=qR(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+PS[e]:a+=GR[e],i=[r===void 0?t:a,a]}return i}function dn(){dn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(L,I,R){L[I]=R.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(L,I,R){return Object.defineProperty(L,I,{value:R,enumerable:!0,configurable:!0,writable:!0}),L[I]}try{c({},"")}catch{c=function(R,F,N){return R[F]=N}}function d(L,I,R,F){var N=I&&I.prototype instanceof g?I:g,_=Object.create(N.prototype),z=new M(F||[]);return o(_,"_invoke",{value:P(L,R,z)}),_}function f(L,I,R){try{return{type:"normal",arg:L.call(I,R)}}catch(F){return{type:"throw",arg:F}}}t.wrap=d;var v="suspendedStart",y="suspendedYield",h="executing",b="completed",C={};function g(){}function m(){}function p(){}var S={};c(S,a,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(D([])));x&&x!==n&&r.call(x,a)&&(S=x);var E=p.prototype=g.prototype=Object.create(S);function $(L){["next","throw","return"].forEach(function(I){c(L,I,function(R){return this._invoke(I,R)})})}function O(L,I){function R(N,_,z,V){var H=f(L[N],L,_);if(H.type!=="throw"){var K=H.arg,G=K.value;return G&&Fe(G)=="object"&&r.call(G,"__await")?I.resolve(G.__await).then(function(W){R("next",W,z,V)},function(W){R("throw",W,z,V)}):I.resolve(G).then(function(W){K.value=W,z(K)},function(W){return R("throw",W,z,V)})}V(H.arg)}var F;o(this,"_invoke",{value:function(_,z){function V(){return new I(function(H,K){R(_,z,H,K)})}return F=F?F.then(V,V):V()}})}function P(L,I,R){var F=v;return function(N,_){if(F===h)throw Error("Generator is already running");if(F===b){if(N==="throw")throw _;return{value:e,done:!0}}for(R.method=N,R.arg=_;;){var z=R.delegate;if(z){var V=k(z,R);if(V){if(V===C)continue;return V}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(F===v)throw F=b,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);F=h;var H=f(L,I,R);if(H.type==="normal"){if(F=R.done?b:y,H.arg===C)continue;return{value:H.arg,done:R.done}}H.type==="throw"&&(F=b,R.method="throw",R.arg=H.arg)}}}function k(L,I){var R=I.method,F=L.iterator[R];if(F===e)return I.delegate=null,R==="throw"&&L.iterator.return&&(I.method="return",I.arg=e,k(L,I),I.method==="throw")||R!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+R+"' method")),C;var N=f(F,L.iterator,I.arg);if(N.type==="throw")return I.method="throw",I.arg=N.arg,I.delegate=null,C;var _=N.arg;return _?_.done?(I[L.resultName]=_.value,I.next=L.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,C):_:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,C)}function A(L){var I={tryLoc:L[0]};1 in L&&(I.catchLoc=L[1]),2 in L&&(I.finallyLoc=L[2],I.afterLoc=L[3]),this.tryEntries.push(I)}function T(L){var I=L.completion||{};I.type="normal",delete I.arg,L.completion=I}function M(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(A,this),this.reset(!0)}function D(L){if(L||L===""){var I=L[a];if(I)return I.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var R=-1,F=function N(){for(;++R=0;--N){var _=this.tryEntries[N],z=_.completion;if(_.tryLoc==="root")return F("end");if(_.tryLoc<=this.prev){var V=r.call(_,"catchLoc"),H=r.call(_,"finallyLoc");if(V&&H){if(this.prev<_.catchLoc)return F(_.catchLoc,!0);if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else if(V){if(this.prev<_.catchLoc)return F(_.catchLoc,!0)}else{if(!H)throw Error("try statement without catch or finally");if(this.prev<_.finallyLoc)return F(_.finallyLoc)}}}},abrupt:function(I,R){for(var F=this.tryEntries.length-1;F>=0;--F){var N=this.tryEntries[F];if(N.tryLoc<=this.prev&&r.call(N,"finallyLoc")&&this.prev=0;--R){var F=this.tryEntries[R];if(F.finallyLoc===I)return this.complete(F.completion,F.afterLoc),T(F),C}},catch:function(I){for(var R=this.tryEntries.length-1;R>=0;--R){var F=this.tryEntries[R];if(F.tryLoc===I){var N=F.completion;if(N.type==="throw"){var _=N.arg;T(F)}return _}}throw Error("illegal catch attempt")},delegateYield:function(I,R,F){return this.delegate={iterator:D(I),resultName:R,nextLoc:F},this.method==="next"&&(this.arg=e),C}},t}function $h(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function mi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){$h(i,r,o,a,l,"next",s)}function l(s){$h(i,r,o,a,l,"throw",s)}a(void 0)})}}var ql=B({},FE),QR=ql.version,YR=ql.render,ZR=ql.unmountComponentAtNode,$c;try{var JR=Number((QR||"").split(".")[0]);JR>=18&&($c=ql.createRoot)}catch{}function Oh(e){var t=ql.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Fe(t)==="object"&&(t.usingClientEntryPoint=e)}var zu="__rc_react_root__";function eI(e,t){Oh(!0);var n=t[zu]||$c(t);Oh(!1),n.render(e),t[zu]=n}function tI(e,t){YR(e,t)}function nI(e,t){if($c){eI(e,t);return}tI(e,t)}function rI(e){return Cv.apply(this,arguments)}function Cv(){return Cv=mi(dn().mark(function e(t){return dn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[zu])===null||o===void 0||o.unmount(),delete t[zu]}));case 1:case"end":return r.stop()}},e)})),Cv.apply(this,arguments)}function oI(e){ZR(e)}function iI(e){return wv.apply(this,arguments)}function wv(){return wv=mi(dn().mark(function e(t){return dn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if($c===void 0){r.next=2;break}return r.abrupt("return",rI(t));case 2:oI(t);case 3:case"end":return r.stop()}},e)})),wv.apply(this,arguments)}const Rd=()=>({height:0,opacity:0}),Rh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},aI=e=>({height:e?e.offsetHeight:0}),Id=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ih=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Rd,onEnterStart:Rd,onAppearActive:Rh,onEnterActive:Rh,onLeaveStart:aI,onLeaveActive:Rd,onAppearEnd:Id,onEnterEnd:Id,onLeaveEnd:Id,motionDeadline:500}},_S=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Oc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},lI=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},sI=ep("Wave",e=>[lI(e)]),MS=`${SS}-wave-target`;function uI(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Pd(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&uI(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function cI(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Pd(t)?t:Pd(n)?n:Pd(r)?r:null}function _d(e){return Number.isNaN(e)?0:e}const dI=e=>{const{className:t,target:n,component:r}=e,o=u.useRef(null),[i,a]=u.useState(null),[l,s]=u.useState([]),[c,d]=u.useState(0),[f,v]=u.useState(0),[y,h]=u.useState(0),[b,C]=u.useState(0),[g,m]=u.useState(!1),p={left:c,top:f,width:y,height:b,borderRadius:l.map(x=>`${x}px`).join(" ")};i&&(p["--wave-color"]=i);function S(){const x=getComputedStyle(n);a(cI(n));const E=x.position==="static",{borderLeftWidth:$,borderTopWidth:O}=x;d(E?n.offsetLeft:_d(-parseFloat($))),v(E?n.offsetTop:_d(-parseFloat(O))),h(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:k,borderBottomLeftRadius:A,borderBottomRightRadius:T}=x;s([P,k,T,A].map(M=>_d(parseFloat(M))))}if(u.useEffect(()=>{if(n){const x=gt(()=>{S(),m(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(S),E.observe(n)),()=>{gt.cancel(x),E==null||E.disconnect()}}},[]),!g)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(MS));return u.createElement(To,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,E)=>{var $;if(E.deadline||E.propertyName==="opacity"){const O=($=o.current)===null||$===void 0?void 0:$.parentElement;iI(O).then(()=>{O==null||O.remove()})}return!1}},(x,E)=>{let{className:$}=x;return u.createElement("div",{ref:En(o,E),className:X(t,$,{"wave-quick":w}),style:p})})},fI=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),nI(u.createElement(dI,Object.assign({},t,{target:e})),o)},vI=(e,t,n)=>{const{wave:r}=u.useContext(st),[,o,i]=mr(),a=Kt(c=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${MS}`)||d,{showEffect:v}=r||{};(v||fI)(f,{className:t,token:o,component:n,event:c,hashId:i})}),l=u.useRef();return c=>{gt.cancel(l.current),l.current=gt(()=>{a(c)})}},mI=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(st),i=u.useRef(null),a=o("wave"),[,l]=sI(a),s=vI(i,X(a,l),r);if(Z.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||n)return;const f=v=>{!Oc(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!Z.isValidElement(t))return t??null;const c=Po(t)?En(t.ref,i):i;return ci(t,{ref:c})},Lo=e=>{const t=Z.useContext(ui);return Z.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},TS=u.createContext(null),Rc=(e,t)=>{const n=u.useContext(TS),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return X(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},pI=e=>{let{children:t}=e;return u.createElement(TS.Provider,{value:null},t)};var gI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=u.useContext(st),{prefixCls:r,size:o,className:i}=e,a=gI(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=mr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const d=X(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return u.createElement(NS.Provider,{value:o},u.createElement("div",Object.assign({},a,{className:d})))},Ph=/^[\u4e00-\u9fa5]{2}$/,xv=Ph.test.bind(Ph);function _h(e){return typeof e=="string"}function Md(e){return e==="text"||e==="link"}function yI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&_h(e.type)&&xv(e.props.children)?ci(e,{children:e.props.children.split("").join(n)}):_h(e)?xv(e)?Z.createElement("span",null,e.split("").join(n)):Z.createElement("span",null,e):RS(e)?Z.createElement("span",null,e):e}function bI(e,t){let n=!1;const r=[];return Z.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),Z.Children.map(r,o=>yI(o,t))}const LS=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=X(`${i}-icon`,n);return Z.createElement("span",{ref:t,className:a,style:r},o)}),Mh=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=X(`${n}-loading-icon`,r);return Z.createElement(LS,{prefixCls:n,className:a,style:o,ref:t},Z.createElement(np,{className:i}))}),Td=()=>({width:0,opacity:0,transform:"scale(0)"}),Nd=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),SI=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?Z.createElement(Mh,{prefixCls:t,className:o,style:i}):Z.createElement(To,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Td,onAppearActive:Nd,onEnterStart:Td,onEnterActive:Nd,onLeaveStart:Nd,onLeaveActive:Td},(l,s)=>{let{className:c,style:d}=l;return Z.createElement(Mh,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:s,iconClassName:c})})},Th=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),CI=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Th(`${t}-primary`,o),Th(`${t}-danger`,i)]}},FS=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return en(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},kS=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:ru(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ru(s),v=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ru(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*v)/2-e.lineWidth,0)}},wI=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ee(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Jm(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Xr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),xI=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),EI=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),$I=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Fl=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Xr(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),rp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},$I(e))}),AS=e=>Object.assign({},rp(e)),Du=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),jS=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},AS(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Xr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Fl(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Xr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Fl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),rp(e))}),OI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},AS(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Xr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Fl(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Xr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Fl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rp(e))}),RI=e=>Object.assign(Object.assign({},jS(e)),{borderStyle:"dashed"}),II=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Xr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Du(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Xr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Du(e))}),PI=e=>Object.assign(Object.assign(Object.assign({},Xr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Du(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Du(e)),Xr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),_I=e=>{const{componentCls:t}=e;return{[`${t}-default`]:jS(e),[`${t}-primary`]:OI(e),[`${t}-dashed`]:RI(e),[`${t}-link`]:II(e),[`${t}-text`]:PI(e),[`${t}-ghost`]:Fl(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},op=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${ee(c)} ${ee(l)}`,borderRadius:a,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:xI(e)},{[`${n}${n}-round${t}`]:EI(e)}]},MI=e=>{const t=en(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return op(t,e.componentCls)},TI=e=>{const t=en(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return op(t,`${e.componentCls}-sm`)},NI=e=>{const t=en(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return op(t,`${e.componentCls}-lg`)},LI=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},FI=gr("Button",e=>{const t=FS(e);return[wI(t),MI(t),TI(t),NI(t),LI(t),_I(t),CI(t)]},kS,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function kI(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function AI(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ip(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},kI(e,r,t)),AI(n,r,t))}}function jI(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function zI(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function DI(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},jI(e,t)),zI(e.componentCls,t))}}const BI=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ee(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ee(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},VI=uS(["Button","compact"],e=>{const t=FS(e);return[ip(t),DI(t),BI(t)]},kS);var HI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o;const{loading:i=!1,prefixCls:a,type:l,danger:s=!1,shape:c="default",size:d,styles:f,disabled:v,className:y,rootClassName:h,children:b,icon:C,iconPosition:g="start",ghost:m=!1,block:p=!1,htmlType:S="button",classNames:w,style:x={},autoInsertSpace:E}=e,$=HI(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=l||"default",{getPrefixCls:P,direction:k,button:A}=u.useContext(st),T=(n=E??(A==null?void 0:A.autoInsertSpace))!==null&&n!==void 0?n:!0,M=P("btn",a),[D,L,I]=FI(M),R=u.useContext($o),F=v??R,N=u.useContext(NS),_=u.useMemo(()=>WI(i),[i]),[z,V]=u.useState(_.loading),[H,K]=u.useState(!1),W=En(t,u.createRef()),q=u.Children.count(b)===1&&!C&&!Md(O);u.useEffect(()=>{let ve=null;_.delay>0?ve=setTimeout(()=>{ve=null,V(!0)},_.delay):V(_.loading);function Ie(){ve&&(clearTimeout(ve),ve=null)}return Ie},[_]),u.useEffect(()=>{if(!W||!W.current||!T)return;const ve=W.current.textContent;q&&xv(ve)?H||K(!0):H&&K(!1)},[W]);const Y=ve=>{const{onClick:Ie}=e;if(z||F){ve.preventDefault();return}Ie==null||Ie(ve)},{compactSize:ie,compactItemClassnames:ae}=Rc(M,k),le={large:"lg",small:"sm",middle:void 0},fe=Lo(ve=>{var Ie,Se;return(Se=(Ie=d??ie)!==null&&Ie!==void 0?Ie:N)!==null&&Se!==void 0?Se:ve}),Q=fe&&le[fe]||"",re=z?"loading":C,pe=Pr($,["navigate"]),Re=X(M,L,I,{[`${M}-${c}`]:c!=="default"&&c,[`${M}-${O}`]:O,[`${M}-${Q}`]:Q,[`${M}-icon-only`]:!b&&b!==0&&!!re,[`${M}-background-ghost`]:m&&!Md(O),[`${M}-loading`]:z,[`${M}-two-chinese-chars`]:H&&T&&!z,[`${M}-block`]:p,[`${M}-dangerous`]:s,[`${M}-rtl`]:k==="rtl",[`${M}-icon-end`]:g==="end"},ae,y,h,A==null?void 0:A.className),Me=Object.assign(Object.assign({},A==null?void 0:A.style),x),be=X(w==null?void 0:w.icon,(r=A==null?void 0:A.classNames)===null||r===void 0?void 0:r.icon),ne=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=A==null?void 0:A.styles)===null||o===void 0?void 0:o.icon)||{}),te=C&&!z?Z.createElement(LS,{prefixCls:M,className:be,style:ne},C):Z.createElement(SI,{existIcon:!!C,prefixCls:M,loading:z}),xe=b||b===0?bI(b,q&&T):null;if(pe.href!==void 0)return D(Z.createElement("a",Object.assign({},pe,{className:X(Re,{[`${M}-disabled`]:F}),href:F?void 0:pe.href,style:Me,onClick:Y,ref:W,tabIndex:F?-1:0}),te,xe));let ge=Z.createElement("button",Object.assign({},$,{type:S,className:Re,style:Me,onClick:Y,disabled:F,ref:W}),te,xe,!!ae&&Z.createElement(VI,{key:"compact",prefixCls:M}));return Md(O)||(ge=Z.createElement(mI,{component:"Button",disabled:z},ge)),D(ge)}),Ic=UI;Ic.Group=hI;Ic.__ANT_BUTTON=!0;var zS=u.createContext(null),Nh=[];function KI(e,t){var n=u.useState(function(){if(!xn())return null;var h=document.createElement("div");return h}),r=U(n,1),o=r[0],i=u.useRef(!1),a=u.useContext(zS),l=u.useState(Nh),s=U(l,2),c=s[0],d=s[1],f=a||(i.current?void 0:function(h){d(function(b){var C=[h].concat(ue(b));return C})});function v(){o.parentElement||document.body.appendChild(o),i.current=!0}function y(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return mt(function(){return e?a?a(v):v():y(),y},[e]),mt(function(){c.length&&(c.forEach(function(h){return h()}),d(Nh))},[c]),[o,f]}function GI(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";Vr(` +#`.concat(t,`::-webkit-scrollbar { +`).concat(d,` +`).concat(f,` +}`),t)}catch(h){console.error(h),o=s,i=c}}document.body.appendChild(n);var v=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Pl(t),{width:v,height:y}}function qI(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:GI(e)}function XI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var QI="rc-util-locker-".concat(Date.now()),Lh=0;function YI(e){var t=!!e,n=u.useState(function(){return Lh+=1,"".concat(QI,"_").concat(Lh)}),r=U(n,1),o=r[0];mt(function(){if(t){var i=qI(document.body).width,a=XI();Vr(` +html body { + overflow-y: hidden; + `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` +}`),o)}else Pl(o);return function(){Pl(o)}},[t,o])}var ZI=!1;function JI(e){return ZI}var Fh=function(t){return t===!1?!1:!xn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},DS=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,l=e.children,s=u.useState(n),c=U(s,2),d=c[0],f=c[1],v=d||n;u.useEffect(function(){(a||n)&&f(n)},[n,a]);var y=u.useState(function(){return Fh(o)}),h=U(y,2),b=h[0],C=h[1];u.useEffect(function(){var k=Fh(o);C(k??null)});var g=KI(v&&!b),m=U(g,2),p=m[0],S=m[1],w=b??p;YI(r&&n&&xn()&&(w===p||w===document.body));var x=null;if(l&&Po(l)&&t){var E=l;x=E.ref}var $=Gl(x,t);if(!v||!xn()||b===void 0)return null;var O=w===!1||JI(),P=l;return t&&(P=u.cloneElement(l,{ref:$})),u.createElement(zS.Provider,{value:S},O?P:ha.createPortal(P,w))});function eP(){var e=B({},Gu);return e.useId}var kh=0,Ah=eP();const tP=Ah?function(t){var n=Ah();return t||n}:function(t){var n=u.useState("ssr-id"),r=U(n,2),o=r[0],i=r[1];return u.useEffect(function(){var a=kh;kh+=1,i("rc_unique_".concat(a))},[]),t||o};var Qo="RC_FORM_INTERNAL_HOOKS",lt=function(){ln(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},di=u.createContext({getFieldValue:lt,getFieldsValue:lt,getFieldError:lt,getFieldWarning:lt,getFieldsError:lt,isFieldsTouched:lt,isFieldTouched:lt,isFieldValidating:lt,isFieldsValidating:lt,resetFields:lt,setFields:lt,setFieldValue:lt,setFieldsValue:lt,validateFields:lt,submit:lt,getInternalHooks:function(){return lt(),{dispatch:lt,initEntityValue:lt,registerField:lt,useSubscribe:lt,setInitialValues:lt,destroyForm:lt,setCallbacks:lt,registerWatch:lt,getFields:lt,setValidateMessages:lt,setPreserve:lt,getInitialValue:lt}}}),kl=u.createContext(null);function Ev(e){return e==null?[]:Array.isArray(e)?e:[e]}function nP(e){return e&&!!e._init}function $v(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ov=$v();function rP(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function oP(e,t,n){if(Vm())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ol(o,n.prototype),o}function Rv(e){var t=typeof Map=="function"?new Map:void 0;return Rv=function(r){if(r===null||!rP(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return oP(r,arguments,Rl(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ol(o,r)},Rv(e)}var iP=/%[sdj%]/g,aP=function(){};function Iv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Mn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function lP(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Vt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||lP(t)&&typeof e=="string"&&!e)}function sP(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,ue(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function jh(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,lt.max?o.push(Mn(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(Mn(i.messages[f].range,t.fullField,t.min,t.max))},BS=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Vt(n,a||t.type))&&o.push(Mn(i.messages.required,t.fullField))},Ms;const gP=function(){if(Ms)return Ms;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),d=function(x){return x&&x.exact?l:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(a).concat(t(x),")"),"g")};d.v4=function(w){return w&&w.exact?s:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",y=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",p='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(y,"|").concat(h,"|").concat(b).concat(C).concat(g,")").concat(m).concat(p);return Ms=new RegExp("(?:^".concat(S,"$)"),"i"),Ms};var Vh={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ua={integer:function(t){return Ua.number(t)&&parseInt(t,10)===t},float:function(t){return Ua.number(t)&&!Ua.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Fe(t)==="object"&&!Ua.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vh.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(gP())},hex:function(t){return typeof t=="string"&&!!t.match(Vh.hex)}},hP=function(t,n,r,o,i){if(t.required&&n===void 0){BS(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Ua[l](n)||o.push(Mn(i.messages.types[l],t.fullField,t.type)):l&&Fe(n)!==t.type&&o.push(Mn(i.messages.types[l],t.fullField,t.type))},yP=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Mn(i.messages.whitespace,t.fullField))};const He={required:BS,whitespace:yP,type:hP,range:pP,enum:vP,pattern:mP};var bP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n)&&!t.required)return r();He.required(t,n,o,a,i)}r(a)},SP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();He.required(t,n,o,a,i,"array"),n!=null&&(He.type(t,n,o,a,i),He.range(t,n,o,a,i))}r(a)},CP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n)&&!t.required)return r();He.required(t,n,o,a,i),n!==void 0&&He.type(t,n,o,a,i)}r(a)},wP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n,"date")&&!t.required)return r();if(He.required(t,n,o,a,i),!Vt(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),He.type(t,s,o,a,i),s&&He.range(t,s.getTime(),o,a,i)}}r(a)},xP="enum",EP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n)&&!t.required)return r();He.required(t,n,o,a,i),n!==void 0&&He[xP](t,n,o,a,i)}r(a)},$P=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n)&&!t.required)return r();He.required(t,n,o,a,i),n!==void 0&&(He.type(t,n,o,a,i),He.range(t,n,o,a,i))}r(a)},OP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n)&&!t.required)return r();He.required(t,n,o,a,i),n!==void 0&&(He.type(t,n,o,a,i),He.range(t,n,o,a,i))}r(a)},RP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n)&&!t.required)return r();He.required(t,n,o,a,i),n!==void 0&&He.type(t,n,o,a,i)}r(a)},IP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Vt(n)&&!t.required)return r();He.required(t,n,o,a,i),n!==void 0&&(He.type(t,n,o,a,i),He.range(t,n,o,a,i))}r(a)},PP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n)&&!t.required)return r();He.required(t,n,o,a,i),n!==void 0&&He.type(t,n,o,a,i)}r(a)},_P=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n,"string")&&!t.required)return r();He.required(t,n,o,a,i),Vt(n,"string")||He.pattern(t,n,o,a,i)}r(a)},MP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n)&&!t.required)return r();He.required(t,n,o,a,i),Vt(n)||He.type(t,n,o,a,i)}r(a)},TP=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":Fe(n);He.required(t,n,o,a,i,l),r(a)},NP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Vt(n,"string")&&!t.required)return r();He.required(t,n,o,a,i,"string"),Vt(n,"string")||(He.type(t,n,o,a,i),He.range(t,n,o,a,i),He.pattern(t,n,o,a,i),t.whitespace===!0&&He.whitespace(t,n,o,a,i))}r(a)},Ld=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Vt(n,a)&&!t.required)return r();He.required(t,n,o,l,i,a),Vt(n,a)||He.type(t,n,o,l,i)}r(l)};const il={string:NP,method:RP,number:IP,boolean:CP,regexp:MP,integer:OP,float:$P,array:SP,object:PP,enum:EP,pattern:_P,date:wP,url:Ld,hex:Ld,email:Ld,required:TP,any:bP};var Xl=function(){function e(t){Ht(this,e),j(this,"rules",null),j(this,"_messages",Ov),this.define(t)}return Wt(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Fe(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Bh($v(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,s=i;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(h){var b=[],C={};function g(p){if(Array.isArray(p)){var S;b=(S=b).concat.apply(S,ue(p))}else b.push(p)}for(var m=0;m0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(E)?E:[E];!l.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&C.message!==void 0&&($=[].concat(C.message));var O=$.map(Dh(C,a));if(l.first&&O.length)return y[C.field]=1,b(O);if(!g)b(O);else{if(C.required&&!h.value)return C.message!==void 0?O=[].concat(C.message).map(Dh(C,a)):l.error&&(O=[l.error(C,Mn(l.messages.required,C.field))]),b(O);var P={};C.defaultField&&Object.keys(h.value).map(function(T){P[T]=C.defaultField}),P=B(B({},P),h.rule.fields);var k={};Object.keys(P).forEach(function(T){var M=P[T],D=Array.isArray(M)?M:[M];k[T]=D.map(m.bind(null,T))});var A=new e(k);A.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),A.validate(h.value,h.rule.options||l,function(T){var M=[];O&&O.length&&M.push.apply(M,ue(O)),T&&T.length&&M.push.apply(M,ue(T)),b(M.length?M:null)})}}var S;if(C.asyncValidator)S=C.asyncValidator(C,h.value,p,h.source,l);else if(C.validator){try{S=C.validator(C,h.value,p,h.source,l)}catch(E){var w,x;(w=(x=console).error)===null||w===void 0||w.call(x,E),l.suppressValidatorError||setTimeout(function(){throw E},0),p(E.message)}S===!0?p():S===!1?p(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):S instanceof Array?p(S):S instanceof Error&&p(S.message)}S&&S.then&&S.then(function(){return p()},function(E){return p(E)})},function(h){c(h)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!il.hasOwnProperty(n.type))throw new Error(Mn("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?il.required:il[this.getType(n)]||void 0}}]),e}();j(Xl,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");il[t]=n});j(Xl,"warning",aP);j(Xl,"messages",Ov);j(Xl,"validators",il);var Rn="'${name}' is not a valid ${type}",VS={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:Rn,method:Rn,array:Rn,object:Rn,number:Rn,date:Rn,boolean:Rn,integer:Rn,float:Rn,regexp:Rn,email:Rn,url:Rn,hex:Rn},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}"}},Hh=Xl;function LP(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Wh="CODE_LOGIC_ERROR";function Pv(e,t,n,r,o){return _v.apply(this,arguments)}function _v(){return _v=mi(dn().mark(function e(t,n,r,o,i){var a,l,s,c,d,f,v,y,h;return dn().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return a=B({},r),delete a.ruleIndex,Hh.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(Wh)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new Hh(j({},t,[a])),d=Ki(VS,o.validateMessages),c.messages(d),f=[],C.prev=10,C.next=13,Promise.resolve(c.validate(j({},t,n),B({},o)));case 13:C.next=18;break;case 15:C.prev=15,C.t0=C.catch(10),C.t0.errors&&(f=C.t0.errors.map(function(g,m){var p=g.message,S=p===Wh?d.default:p;return u.isValidElement(S)?u.cloneElement(S,{key:"error_".concat(m)}):S}));case 18:if(!(!f.length&&s)){C.next=23;break}return C.next=21,Promise.all(n.map(function(g,m){return Pv("".concat(t,".").concat(m),g,s,o,i)}));case 21:return v=C.sent,C.abrupt("return",v.reduce(function(g,m){return[].concat(ue(g),ue(m))},[]));case 23:return y=B(B({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map(function(g){return typeof g=="string"?LP(g,y):g}),C.abrupt("return",h);case 26:case"end":return C.stop()}},e,null,[[10,15]])})),_v.apply(this,arguments)}function FP(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(d,f){var v=d.validator,y=B(B({},d),{},{ruleIndex:f});return v&&(y.validator=function(h,b,C){var g=!1,m=function(){for(var w=arguments.length,x=new Array(w),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return HS(t,r,n)})}function HS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function jP(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Fe(e)!=="object"||Fe(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ue(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function zP(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Fe(t.target)==="object"&&e in t.target?t.target[e]:t}function Kh(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ue(e.slice(0,n)),[o],ue(e.slice(n,t)),ue(e.slice(t+1,r))):i<0?[].concat(ue(e.slice(0,t)),ue(e.slice(t+1,n+1)),[o],ue(e.slice(n+1,r))):e}var DP=["name"],Dn=[];function Gh(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ap=function(e){_o(n,e);var t=Mo(n);function n(r){var o;if(Ht(this,n),o=t.call(this,r),j(je(o),"state",{resetCount:0}),j(je(o),"cancelRegisterFunc",null),j(je(o),"mounted",!1),j(je(o),"touched",!1),j(je(o),"dirty",!1),j(je(o),"validatePromise",void 0),j(je(o),"prevValidating",void 0),j(je(o),"errors",Dn),j(je(o),"warnings",Dn),j(je(o),"cancelRegister",function(){var s=o.props,c=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,_t(f)),o.cancelRegisterFunc=null}),j(je(o),"getNamePath",function(){var s=o.props,c=s.name,d=s.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(ue(v),ue(c)):[]}),j(je(o),"getRules",function(){var s=o.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),j(je(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),j(je(o),"metaCache",null),j(je(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var d=B(B({},o.getMeta()),{},{destroy:s});_l(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),j(je(o),"onStoreChange",function(s,c,d){var f=o.props,v=f.shouldUpdate,y=f.dependencies,h=y===void 0?[]:y,b=f.onReset,C=d.store,g=o.getNamePath(),m=o.getValue(s),p=o.getValue(C),S=c&&na(c,g);switch(d.type==="valueUpdate"&&d.source==="external"&&!_l(m,p)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Dn,o.warnings=Dn,o.triggerMetaEvent()),d.type){case"reset":if(!c||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Dn,o.warnings=Dn,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":{if(v){o.reRender();return}break}case"setField":{var w=d.data;if(S){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||Dn),"warnings"in w&&(o.warnings=w.warnings||Dn),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&na(c,g,!0)){o.reRender();return}if(v&&!g.length&&Gh(v,s,C,m,p,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=h.map(_t);if(x.some(function(E){return na(d.relatedFields,E)})){o.reRender();return}break}default:if(S||(!h.length||g.length||v)&&Gh(v,s,C,m,p,d)){o.reRender();return}break}v===!0&&o.reRender()}),j(je(o),"validateRules",function(s){var c=o.getNamePath(),d=o.getValue(),f=s||{},v=f.triggerName,y=f.validateOnly,h=y===void 0?!1:y,b=Promise.resolve().then(mi(dn().mark(function C(){var g,m,p,S,w,x,E;return dn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(g=o.props,m=g.validateFirst,p=m===void 0?!1:m,S=g.messageVariables,w=g.validateDebounce,x=o.getRules(),v&&(x=x.filter(function(P){return P}).filter(function(P){var k=P.validateTrigger;if(!k)return!0;var A=Ev(k);return A.includes(v)})),!(w&&v)){O.next=10;break}return O.next=8,new Promise(function(P){setTimeout(P,w)});case 8:if(o.validatePromise===b){O.next=10;break}return O.abrupt("return",[]);case 10:return E=FP(c,d,x,s,p,S),E.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dn;if(o.validatePromise===b){var k;o.validatePromise=null;var A=[],T=[];(k=P.forEach)===null||k===void 0||k.call(P,function(M){var D=M.rule.warningOnly,L=M.errors,I=L===void 0?Dn:L;D?T.push.apply(T,ue(I)):A.push.apply(A,ue(I))}),o.errors=A,o.warnings=T,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},C)})));return h||(o.validatePromise=b,o.dirty=!0,o.errors=Dn,o.warnings=Dn,o.triggerMetaEvent(),o.reRender()),b}),j(je(o),"isFieldValidating",function(){return!!o.validatePromise}),j(je(o),"isFieldTouched",function(){return o.touched}),j(je(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(Qo),d=c.getInitialValue;return d(o.getNamePath())!==void 0}),j(je(o),"getErrors",function(){return o.errors}),j(je(o),"getWarnings",function(){return o.warnings}),j(je(o),"isListField",function(){return o.props.isListField}),j(je(o),"isList",function(){return o.props.isList}),j(je(o),"isPreserve",function(){return o.props.preserve}),j(je(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),j(je(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return B(B({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=qr(s);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),j(je(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return xr(s||c(!0),d)}),j(je(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,v=c.validateTrigger,y=c.getValueFromEvent,h=c.normalize,b=c.valuePropName,C=c.getValueProps,g=c.fieldContext,m=v!==void 0?v:g.validateTrigger,p=o.getNamePath(),S=g.getInternalHooks,w=g.getFieldsValue,x=S(Qo),E=x.dispatch,$=o.getValue(),O=C||function(M){return j({},b,M)},P=s[f],k=d!==void 0?O($):{},A=B(B({},s),k);A[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,D=arguments.length,L=new Array(D),I=0;I=0&&P<=k.length?(d.keys=[].concat(ue(d.keys.slice(0,P)),[d.id],ue(d.keys.slice(P))),p([].concat(ue(k.slice(0,P)),[O],ue(k.slice(P))))):(d.keys=[].concat(ue(d.keys),[d.id]),p([].concat(ue(k),[O]))),d.id+=1},remove:function(O){var P=w(),k=new Set(Array.isArray(O)?O:[O]);k.size<=0||(d.keys=d.keys.filter(function(A,T){return!k.has(T)}),p(P.filter(function(A,T){return!k.has(T)})))},move:function(O,P){if(O!==P){var k=w();O<0||O>=k.length||P<0||P>=k.length||(d.keys=Kh(d.keys,O,P),p(Kh(k,O,P)))}}},E=m||[];return Array.isArray(E)||(E=[]),r(E.map(function($,O){var P=d.keys[O];return P===void 0&&(d.keys[O]=d.id,P=d.keys[O],d.id+=1),{name:O,key:P,isListField:!0}}),x,C)})))}function BP(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var US="__@field_split__";function Fd(e){return e.map(function(t){return"".concat(Fe(t),":").concat(t)}).join(US)}var $i=function(){function e(){Ht(this,e),j(this,"kvs",new Map)}return Wt(e,[{key:"set",value:function(n,r){this.kvs.set(Fd(n),r)}},{key:"get",value:function(n){return this.kvs.get(Fd(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Fd(n))}},{key:"map",value:function(n){return ue(this.kvs.entries()).map(function(r){var o=U(r,2),i=o[0],a=o[1],l=i.split(US);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),d=U(c,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),VP=["name"],HP=Wt(function e(t){var n=this;Ht(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(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}}),j(this,"getInternalHooks",function(r){return r===Qo?(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}):(ln(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Ki(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=ir(a,s,xr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),j(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new $i;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),j(this,"getInitialValue",function(r){var o=xr(n.initialValues,r);return r.length?Ki(o):o}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r}),j(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new $i;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=_t(i);return o.get(a)||{INVALIDATE_NAME_PATH:_t(i)}})}),j(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Fe(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return s.forEach(function(d){var f,v,y="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!i&&(f=(v=d).isListField)!==null&&f!==void 0&&f.call(v))return;if(!a)c.push(y);else{var C="getMeta"in d?d.getMeta():null;a(C)&&c.push(y)}}),Uh(n.store,c.map(_t))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var o=_t(r);return xr(n.store,o)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:_t(r[a]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var o=_t(r),i=n.getFieldsError([o])[0];return i.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var o=_t(r),i=n.getFieldsError([o])[0];return i.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new $i,i=n.getFieldEntities(!0);i.forEach(function(s){var c=s.props.initialValue,d=s.getNamePath();if(c!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:c}),o.set(d,f)}});var a=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),y=n.getInitialValue(v);if(y!==void 0)ln(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var h=o.get(v);if(h&&h.size>1)ln(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(v),C=d.isListField();!C&&(!r.skipExist||b===void 0)&&n.updateStore(ir(n.store,v,ue(h)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var d;(d=l).push.apply(d,ue(ue(c).map(function(f){return f.entity})))}})):l=i,a(l)}),j(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Ki(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(_t);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(ir(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),j(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=De(a,VP),c=_t(l);i.push(c),"value"in s&&n.updateStore(ir(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=B(B({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),j(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=xr(n.store,i);a===void 0&&n.updateStore(ir(n.store,i,o))}}),j(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!HS(f.getNamePath(),o)})){var d=n.store;n.updateStore(ir(d,o,c,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),j(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=B(B({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ue(i))}),i}),j(this,"updateValue",function(r,o){var i=_t(r),a=n.store;n.updateStore(ir(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var c=Uh(n.store,[i]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(ue(l)))}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Ki(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),j(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),j(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new $i;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(d){var f=_t(d);a.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(s),v})})});var l=function s(c){var d=a.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(i.push(v),s(v))}})};return l(r),i}),j(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new $i;o.forEach(function(c){var d=c.name,f=c.errors;l.set(d,f)}),a.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=a.filter(function(c){var d=c.name;return na(r,d)});s.length&&i(s,a)}}),j(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,s=l?i.map(_t):[],c=[],d=String(Date.now()),f=new Set,v=a||{},y=v.recursive,h=v.dirty;n.getFieldEntities(!0).forEach(function(m){if(l||s.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(h&&!m.isFieldDirty())){var p=m.getNamePath();if(f.add(p.join(d)),!l||na(s,p,y)){var S=m.validateRules(B({validateMessages:B(B({},VS),n.validateMessages)},a));c.push(S.then(function(){return{name:p,errors:[],warnings:[]}}).catch(function(w){var x,E=[],$=[];return(x=w.forEach)===null||x===void 0||x.call(w,function(O){var P=O.rule.warningOnly,k=O.errors;P?$.push.apply($,ue(k)):E.push.apply(E,ue(k))}),E.length?Promise.reject({name:p,errors:E,warnings:$}):{name:p,errors:E,warnings:$}}))}}});var b=BP(c);n.lastValidatePromise=b,b.catch(function(m){return m}).then(function(m){var p=m.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,p,{type:"validateFinish"}),n.triggerOnFieldsChange(p,m)});var C=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(m){var p=m.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:p,outOfDate:n.lastValidatePromise!==b})});C.catch(function(m){return m});var g=s.filter(function(m){return f.has(m.join(d))});return n.triggerOnFieldsChange(g),C}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function sp(e){var t=u.useRef(),n=u.useState({}),r=U(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new HP(i);t.current=a.getForm()}return[t.current]}var Nv=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),KS=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=u.useContext(Nv),l=u.useRef({});return u.createElement(Nv.Provider,{value:B(B({},a),{},{validateMessages:B(B({},a.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:l.current}),a.triggerFormChange(c,d)},triggerFormFinish:function(c,d){o&&o(c,{values:d,forms:l.current}),a.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(l.current=B(B({},l.current),{},j({},c,d))),a.registerForm(c,d)},unregisterForm:function(c){var d=B({},l.current);delete d[c],l.current=d,a.unregisterForm(c)}})},i)},WP=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],UP=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,y=v===void 0?"onChange":v,h=t.onValuesChange,b=t.onFieldsChange,C=t.onFinish,g=t.onFinishFailed,m=t.clearOnDestroy,p=De(t,WP),S=u.useRef(null),w=u.useContext(Nv),x=sp(a),E=U(x,1),$=E[0],O=$.getInternalHooks(Qo),P=O.useSubscribe,k=O.setInitialValues,A=O.setCallbacks,T=O.setValidateMessages,M=O.setPreserve,D=O.destroyForm;u.useImperativeHandle(n,function(){return B(B({},$),{},{nativeElement:S.current})}),u.useEffect(function(){return w.registerForm(r,$),function(){w.unregisterForm(r)}},[w,$,r]),T(B(B({},w.validateMessages),f)),A({onValuesChange:h,onFieldsChange:function(H){if(w.triggerFormChange(r,H),b){for(var K=arguments.length,G=new Array(K>1?K-1:0),W=1;W{}}),qS=u.createContext(null),XS=e=>{const t=Pr(e,["prefixCls"]);return u.createElement(KS,Object.assign({},t))},up=u.createContext({prefixCls:""}),Ln=u.createContext({}),GP=e=>{let{children:t,status:n,override:r}=e;const o=u.useContext(Ln),i=u.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return u.createElement(Ln.Provider,{value:i},t)},QS=u.createContext(void 0),Al=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=Z.createElement(GP,{override:!0,status:!0},o)),t&&(o=Z.createElement(pI,null,o)),o};var YS=function(t){if(xn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},qP=function(t,n){if(!YS(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function Xh(e,t){return!Array.isArray(e)&&t!==void 0?qP(e,t):YS(e)}const XP=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),QP=e=>({animationDuration:e,animationFillMode:"both"}),YP=e=>({animationDuration:e,animationFillMode:"both"}),ZS=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${i}${e}-enter, + ${i}${e}-appear + `]:Object.assign(Object.assign({},QP(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},YP(r)),{animationPlayState:"paused"}),[` + ${i}${e}-enter${e}-enter-active, + ${i}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ZP=new Ft("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),JP=new Ft("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),e_=new Ft("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),t_=new Ft("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),n_=new Ft("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),r_=new Ft("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o_=new Ft("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),i_=new Ft("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),a_={"slide-up":{inKeyframes:ZP,outKeyframes:JP},"slide-down":{inKeyframes:e_,outKeyframes:t_},"slide-left":{inKeyframes:n_,outKeyframes:r_},"slide-right":{inKeyframes:o_,outKeyframes:i_}},Qh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=a_[t];return[ZS(r,o,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},cp=new Ft("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l_=new Ft("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Yh=new Ft("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Zh=new Ft("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),s_=new Ft("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u_=new Ft("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),c_=new Ft("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),d_=new Ft("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),f_=new Ft("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),v_=new Ft("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),m_=new Ft("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),p_=new Ft("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),g_={zoom:{inKeyframes:cp,outKeyframes:l_},"zoom-big":{inKeyframes:Yh,outKeyframes:Zh},"zoom-big-fast":{inKeyframes:Yh,outKeyframes:Zh},"zoom-left":{inKeyframes:c_,outKeyframes:d_},"zoom-right":{inKeyframes:f_,outKeyframes:v_},"zoom-up":{inKeyframes:s_,outKeyframes:u_},"zoom-down":{inKeyframes:m_,outKeyframes:p_}},h_=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=g_[t];return[ZS(r,o,i,e.motionDurationFast),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},dp=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var y_=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Oi=void 0;function b_(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,v=e.children,y=e.display,h=e.order,b=e.component,C=b===void 0?"div":b,g=De(e,y_),m=a&&!y;function p($){s(c,$)}u.useEffect(function(){return function(){p(null)}},[]);var S=i&&o!==Oi?i(o):v,w;r||(w={opacity:m?0:1,height:m?0:Oi,overflowY:m?"hidden":Oi,order:a?h:Oi,pointerEvents:m?"none":Oi,position:m?"absolute":Oi});var x={};m&&(x["aria-hidden"]=!0);var E=u.createElement(C,me({className:X(!r&&n,d),style:B(B({},w),f)},x,g,{ref:t}),S);return a&&(E=u.createElement(Or,{onResize:function(O){var P=O.offsetWidth;p(P)},disabled:l},E)),E}var al=u.forwardRef(b_);al.displayName="Item";function S_(e){if(typeof MessageChannel>"u")gt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function C_(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],S_(function(){ha.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Aa(e,t){var n=u.useState(t),r=U(n,2),o=r[0],i=r[1],a=Kt(function(l){e(function(){i(l)})});return[o,a]}var Bu=Z.createContext(null),w_=["component"],x_=["className"],E_=["className"],$_=function(t,n){var r=u.useContext(Bu);if(!r){var o=t.component,i=o===void 0?"div":o,a=De(t,w_);return u.createElement(i,me({},a,{ref:n}))}var l=r.className,s=De(r,x_),c=t.className,d=De(t,E_);return u.createElement(Bu.Provider,{value:null},u.createElement(al,me({ref:n,className:X(l,c)},s,d)))},JS=u.forwardRef($_);JS.displayName="RawItem";var O_=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],eC="responsive",tC="invalidate";function R_(e){return"+ ".concat(e.length," ...")}function I_(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,v=e.style,y=e.className,h=e.maxCount,b=e.renderRest,C=e.renderRawRest,g=e.suffix,m=e.component,p=m===void 0?"div":m,S=e.itemComponent,w=e.onVisibleChange,x=De(e,O_),E=f==="full",$=C_(),O=Aa($,null),P=U(O,2),k=P[0],A=P[1],T=k||0,M=Aa($,new Map),D=U(M,2),L=D[0],I=D[1],R=Aa($,0),F=U(R,2),N=F[0],_=F[1],z=Aa($,0),V=U(z,2),H=V[0],K=V[1],G=Aa($,0),W=U(G,2),q=W[0],Y=W[1],ie=u.useState(null),ae=U(ie,2),le=ae[0],fe=ae[1],Q=u.useState(null),re=U(Q,2),pe=re[0],Re=re[1],Me=u.useMemo(function(){return pe===null&&E?Number.MAX_SAFE_INTEGER:pe||0},[pe,k]),be=u.useState(!1),ne=U(be,2),te=ne[0],xe=ne[1],ge="".concat(r,"-item"),ve=Math.max(N,H),Ie=h===eC,Se=i.length&&Ie,Et=h===tC,Je=Se||typeof h=="number"&&i.length>h,Oe=u.useMemo(function(){var _e=i;return Se?k===null&&E?_e=i:_e=i.slice(0,Math.min(i.length,T/d)):typeof h=="number"&&(_e=i.slice(0,h)),_e},[i,d,k,h,Se]),he=u.useMemo(function(){return Se?i.slice(Me+1):i.slice(Oe.length)},[i,Oe,Se,Me]),ke=u.useCallback(function(_e,Ee){var We;return typeof s=="function"?s(_e):(We=s&&(_e==null?void 0:_e[s]))!==null&&We!==void 0?We:Ee},[s]),Ae=u.useCallback(a||function(_e){return _e},[a]);function bt(_e,Ee,We){pe===_e&&(Ee===void 0||Ee===le)||(Re(_e),We||(xe(_eT){bt(et-1,_e-Ue-q+H);break}}g&&se(0)+q>T&&fe(null)}},[T,L,H,q,ke,Oe]);var Pe=te&&!!he.length,Ve={};le!==null&&Se&&(Ve={position:"absolute",left:le,top:0});var ut={prefixCls:ge,responsive:Se,component:S,invalidate:Et},$e=l?function(_e,Ee){var We=ke(_e,Ee);return u.createElement(Bu.Provider,{key:We,value:B(B({},ut),{},{order:Ee,item:_e,itemKey:We,registerSize:qe,display:Ee<=Me})},l(_e,Ee))}:function(_e,Ee){var We=ke(_e,Ee);return u.createElement(al,me({},ut,{order:Ee,key:We,item:_e,renderItem:Ae,itemKey:We,registerSize:qe,display:Ee<=Me}))},de,Ce={order:Pe?Me:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:Ge,display:Pe};if(C)C&&(de=u.createElement(Bu.Provider,{value:B(B({},ut),Ce)},C(he)));else{var oe=b||R_;de=u.createElement(al,me({},ut,Ce),typeof oe=="function"?oe(he):oe)}var Te=u.createElement(p,me({className:X(!Et&&r,y),style:v,ref:t},x),Oe.map($e),Je?de:null,g&&u.createElement(al,me({},ut,{responsive:Ie,responsiveDisabled:!Se,order:Me,className:"".concat(ge,"-suffix"),registerSize:tt,display:!0,style:Ve}),g));return Ie&&(Te=u.createElement(Or,{onResize:ht,disabled:!Se},Te)),Te}var Hr=u.forwardRef(I_);Hr.displayName="Overflow";Hr.Item=JS;Hr.RESPONSIVE=eC;Hr.INVALIDATE=tC;function P_(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=s===void 0?0:s,d=o.y,f=d===void 0?0:d,v=u.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],C=h[0],g=h[1],m=b[0],p=b[1];C===m||!["t","b"].includes(C)?y.top=f:C==="t"?y.top=0:y.bottom=0,g===p||!["l","r"].includes(g)?y.left=c:g==="l"?y.left=0:y.right=0}return u.createElement("div",{ref:v,className:X("".concat(t,"-arrow"),a),style:y},l)}function __(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?u.createElement(To,me({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return u.createElement("div",{style:{zIndex:r},className:X("".concat(t,"-mask"),l)})}):null}var M_=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),T_=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,v=e.mask,y=e.arrow,h=e.arrowPos,b=e.align,C=e.motion,g=e.maskMotion,m=e.forceRender,p=e.getPopupContainer,S=e.autoDestroy,w=e.portal,x=e.zIndex,E=e.onMouseEnter,$=e.onMouseLeave,O=e.onPointerEnter,P=e.ready,k=e.offsetX,A=e.offsetY,T=e.offsetR,M=e.offsetB,D=e.onAlign,L=e.onPrepare,I=e.stretch,R=e.targetWidth,F=e.targetHeight,N=typeof n=="function"?n():n,_=s||c,z=(p==null?void 0:p.length)>0,V=u.useState(!p||!z),H=U(V,2),K=H[0],G=H[1];if(mt(function(){!K&&z&&a&&G(!0)},[K,z,a]),!K)return null;var W="auto",q={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(P||!s){var Y,ie=b.points,ae=b.dynamicInset||((Y=b._experimental)===null||Y===void 0?void 0:Y.dynamicInset),le=ae&&ie[0][1]==="r",fe=ae&&ie[0][0]==="b";le?(q.right=T,q.left=W):(q.left=k,q.right=W),fe?(q.bottom=M,q.top=W):(q.top=A,q.bottom=W)}var Q={};return I&&(I.includes("height")&&F?Q.height=F:I.includes("minHeight")&&F&&(Q.minHeight=F),I.includes("width")&&R?Q.width=R:I.includes("minWidth")&&R&&(Q.minWidth=R)),s||(Q.pointerEvents="none"),u.createElement(w,{open:m||_,getContainer:p&&function(){return p(a)},autoDestroy:S},u.createElement(__,{prefixCls:o,open:s,zIndex:x,mask:v,motion:g}),u.createElement(Or,{onResize:D,disabled:!s},function(re){return u.createElement(To,me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(o,"-hidden")},C,{onAppearPrepare:L,onEnterPrepare:L,visible:s,onVisibleChanged:function(Re){var Me;C==null||(Me=C.onVisibleChanged)===null||Me===void 0||Me.call(C,Re),l(Re)}}),function(pe,Re){var Me=pe.className,be=pe.style,ne=X(o,Me,r);return u.createElement("div",{ref:En(re,t,Re),className:ne,style:B(B(B(B({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),Q),be),{},{boxSizing:"border-box",zIndex:x},i),onMouseEnter:E,onMouseLeave:$,onPointerEnter:O,onClick:f},y&&u.createElement(P_,{prefixCls:o,arrow:y,arrowPos:h,align:b}),u.createElement(M_,{cache:!s&&!d},N))})}))}),N_=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Po(n),i=u.useCallback(function(l){Bm(t,r?r(l):l)},[r]),a=Gl(i,n.ref);return o?u.cloneElement(n,{ref:a}):n}),Jh=u.createContext(null);function e0(e){return e?Array.isArray(e)?e:[e]:[]}function L_(e,t,n,r){return u.useMemo(function(){var o=e0(n??t),i=e0(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function F_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function k_(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ja(e){return jl(parseFloat(e),0)}function n0(e,t){var n=B({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ql(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,y=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,C=ja(l),g=ja(s),m=ja(c),p=ja(d),S=jl(Math.round(f.width/h*1e3)/1e3),w=jl(Math.round(f.height/v*1e3)/1e3),x=(h-b-m-p)*S,E=(v-y-C-g)*w,$=C*w,O=g*w,P=m*S,k=p*S,A=0,T=0;if(i==="clip"){var M=ja(a);A=M*S,T=M*w}var D=f.x+P-A,L=f.y+$-T,I=D+f.width+2*A-P-k-x,R=L+f.height+2*T-$-O-E;n.left=Math.max(n.left,D),n.top=Math.max(n.top,L),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,R)}}),n}function r0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function o0(e,t){var n=t||[],r=U(n,2),o=r[0],i=r[1];return[r0(e.width,o),r0(e.height,i)]}function i0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ri(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function ro(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function A_(e,t,n,r,o,i,a){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=U(l,2),c=s[0],d=s[1],f=u.useRef(0),v=u.useMemo(function(){return t?Lv(t):[]},[t]),y=u.useRef({}),h=function(){y.current={}};e||h();var b=Kt(function(){if(t&&n&&e){let Tt=function(es,Nr){var Bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ne,Si=N.x+es,Ra=N.y+Nr,Ac=Si+Y,jc=Ra+q,zc=Math.max(Si,Bo.left),Dc=Math.max(Ra,Bo.top),we=Math.min(Ac,Bo.right),Le=Math.min(jc,Bo.bottom);return Math.max(0,(we-zc)*(Le-Dc))},Oa=function(){At=N.y+oe,Ke=At+q,Ne=N.x+Ce,ze=Ne+Y};var to=Tt,bi=Oa,m,p,S=t,w=S.ownerDocument,x=Ql(S),E=x.getComputedStyle(S),$=E.width,O=E.height,P=E.position,k=S.style.left,A=S.style.top,T=S.style.right,M=S.style.bottom,D=S.style.overflow,L=B(B({},o[r]),i),I=w.createElement("div");(m=S.parentElement)===null||m===void 0||m.appendChild(I),I.style.left="".concat(S.offsetLeft,"px"),I.style.top="".concat(S.offsetTop,"px"),I.style.position=P,I.style.height="".concat(S.offsetHeight,"px"),I.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var R;if(Array.isArray(n))R={x:n[0],y:n[1],width:0,height:0};else{var F=n.getBoundingClientRect();R={x:F.x,y:F.y,width:F.width,height:F.height}}var N=S.getBoundingClientRect(),_=w.documentElement,z=_.clientWidth,V=_.clientHeight,H=_.scrollWidth,K=_.scrollHeight,G=_.scrollTop,W=_.scrollLeft,q=N.height,Y=N.width,ie=R.height,ae=R.width,le={left:0,top:0,right:z,bottom:V},fe={left:-W,top:-G,right:H-W,bottom:K-G},Q=L.htmlRegion,re="visible",pe="visibleFirst";Q!=="scroll"&&Q!==pe&&(Q=re);var Re=Q===pe,Me=n0(fe,v),be=n0(le,v),ne=Q===re?be:Me,te=Re?be:ne;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var xe=S.getBoundingClientRect();S.style.left=k,S.style.top=A,S.style.right=T,S.style.bottom=M,S.style.overflow=D,(p=S.parentElement)===null||p===void 0||p.removeChild(I);var ge=jl(Math.round(Y/parseFloat($)*1e3)/1e3),ve=jl(Math.round(q/parseFloat(O)*1e3)/1e3);if(ge===0||ve===0||$l(n)&&!Oc(n))return;var Ie=L.offset,Se=L.targetOffset,Et=o0(N,Ie),Je=U(Et,2),Oe=Je[0],he=Je[1],ke=o0(R,Se),Ae=U(ke,2),bt=Ae[0],ht=Ae[1];R.x-=bt,R.y-=ht;var qe=L.points||[],Ge=U(qe,2),tt=Ge[0],se=Ge[1],Pe=i0(se),Ve=i0(tt),ut=Ri(R,Pe),$e=Ri(N,Ve),de=B({},L),Ce=ut.x-$e.x+Oe,oe=ut.y-$e.y+he,Te=Tt(Ce,oe),_e=Tt(Ce,oe,be),Ee=Ri(R,["t","l"]),We=Ri(N,["t","l"]),et=Ri(R,["b","r"]),Ue=Ri(N,["b","r"]),nt=L.overflow||{},it=nt.adjustX,$t=nt.adjustY,tn=nt.shiftX,mn=nt.shiftY,pn=function(Nr){return typeof Nr=="boolean"?Nr:Nr>=0},At,Ke,Ne,ze;Oa();var St=pn($t),ct=Ve[0]===Pe[0];if(St&&Ve[0]==="t"&&(Ke>te.bottom||y.current.bt)){var jt=oe;ct?jt-=q-ie:jt=Ee.y-Ue.y-he;var An=Tt(Ce,jt),Zn=Tt(Ce,jt,be);An>Te||An===Te&&(!Re||Zn>=_e)?(y.current.bt=!0,oe=jt,he=-he,de.points=[ro(Ve,0),ro(Pe,0)]):y.current.bt=!1}if(St&&Ve[0]==="b"&&(AtTe||Pt===Te&&(!Re||Fo>=_e)?(y.current.tb=!0,oe=jn,he=-he,de.points=[ro(Ve,0),ro(Pe,0)]):y.current.tb=!1}var Zr=pn(it),Jr=Ve[1]===Pe[1];if(Zr&&Ve[1]==="l"&&(ze>te.right||y.current.rl)){var zn=Ce;Jr?zn-=Y-ae:zn=Ee.x-Ue.x-Oe;var hr=Tt(zn,oe),ko=Tt(zn,oe,be);hr>Te||hr===Te&&(!Re||ko>=_e)?(y.current.rl=!0,Ce=zn,Oe=-Oe,de.points=[ro(Ve,1),ro(Pe,1)]):y.current.rl=!1}if(Zr&&Ve[1]==="r"&&(NeTe||gi===Te&&(!Re||xa>=_e)?(y.current.lr=!0,Ce=_r,Oe=-Oe,de.points=[ro(Ve,1),ro(Pe,1)]):y.current.lr=!1}Oa();var $n=tn===!0?0:tn;typeof $n=="number"&&(Nebe.right&&(Ce-=ze-be.right-Oe,R.x>be.right-$n&&(Ce+=R.x-be.right+$n)));var gn=mn===!0?0:mn;typeof gn=="number"&&(Atbe.bottom&&(oe-=Ke-be.bottom-he,R.y>be.bottom-gn&&(oe+=R.y-be.bottom+gn)));var Ao=N.x+Ce,hi=Ao+Y,yr=N.y+oe,br=yr+q,jo=R.x,eo=jo+ae,Jn=R.y,Ea=Jn+ie,$a=Math.max(Ao,jo),dt=Math.min(hi,eo),Xe=($a+dt)/2,at=Xe-Ao,qt=Math.max(yr,Jn),Xt=Math.min(br,Ea),Mr=(qt+Xt)/2,zo=Mr-yr;a==null||a(t,de);var Do=xe.right-N.x-(Ce+N.width),Tr=xe.bottom-N.y-(oe+N.height);ge===1&&(Ce=Math.round(Ce),Do=Math.round(Do)),ve===1&&(oe=Math.round(oe),Tr=Math.round(Tr));var yi={ready:!0,offsetX:Ce/ge,offsetY:oe/ve,offsetR:Do/ge,offsetB:Tr/ve,arrowX:at/ge,arrowY:zo/ve,scaleX:ge,scaleY:ve,align:de};d(yi)}}),C=function(){f.current+=1;var p=f.current;Promise.resolve().then(function(){f.current===p&&b()})},g=function(){d(function(p){return B(B({},p),{},{ready:!1})})};return mt(g,[r]),mt(function(){e||g()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,C]}function j_(e,t,n,r,o){mt(function(){if(e&&t&&n){let v=function(){r(),o()};var f=v,i=t,a=n,l=Lv(i),s=Lv(a),c=Ql(a),d=new Set([c].concat(ue(l),ue(s)));return d.forEach(function(y){y.addEventListener("scroll",v,{passive:!0})}),c.addEventListener("resize",v,{passive:!0}),r(),function(){d.forEach(function(y){y.removeEventListener("scroll",v),c.removeEventListener("resize",v)})}}},[e,t,n])}function z_(e,t,n,r,o,i,a,l){var s=u.useRef(e);s.current=e,u.useEffect(function(){if(t&&r&&(!o||i)){var c=function(y){var h=y.target;s.current&&!a(h)&&l(!1)},d=Ql(r);d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0);var f=ju(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),function(){d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i])}var D_=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function B_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DS,t=u.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,v=n.defaultPopupVisible,y=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,C=n.mouseLeaveDelay,g=C===void 0?.1:C,m=n.focusDelay,p=n.blurDelay,S=n.mask,w=n.maskClosable,x=w===void 0?!0:w,E=n.getPopupContainer,$=n.forceRender,O=n.autoDestroy,P=n.destroyPopupOnHide,k=n.popup,A=n.popupClassName,T=n.popupStyle,M=n.popupPlacement,D=n.builtinPlacements,L=D===void 0?{}:D,I=n.popupAlign,R=n.zIndex,F=n.stretch,N=n.getPopupClassNameFromAlign,_=n.fresh,z=n.alignPoint,V=n.onPopupClick,H=n.onPopupAlign,K=n.arrow,G=n.popupMotion,W=n.maskMotion,q=n.popupTransitionName,Y=n.popupAnimation,ie=n.maskTransitionName,ae=n.maskAnimation,le=n.className,fe=n.getTriggerDOMNode,Q=De(n,D_),re=O||P||!1,pe=u.useState(!1),Re=U(pe,2),Me=Re[0],be=Re[1];mt(function(){be(dp())},[]);var ne=u.useRef({}),te=u.useContext(Jh),xe=u.useMemo(function(){return{registerSubPopup:function(Le,Ot){ne.current[Le]=Ot,te==null||te.registerSubPopup(Le,Ot)}}},[te]),ge=tP(),ve=u.useState(null),Ie=U(ve,2),Se=Ie[0],Et=Ie[1],Je=u.useRef(null),Oe=Kt(function(we){Je.current=we,$l(we)&&Se!==we&&Et(we),te==null||te.registerSubPopup(ge,we)}),he=u.useState(null),ke=U(he,2),Ae=ke[0],bt=ke[1],ht=u.useRef(null),qe=Kt(function(we){$l(we)&&Ae!==we&&(bt(we),ht.current=we)}),Ge=u.Children.only(a),tt=(Ge==null?void 0:Ge.props)||{},se={},Pe=Kt(function(we){var Le,Ot,zt=Ae;return(zt==null?void 0:zt.contains(we))||((Le=ju(zt))===null||Le===void 0?void 0:Le.host)===we||we===zt||(Se==null?void 0:Se.contains(we))||((Ot=ju(Se))===null||Ot===void 0?void 0:Ot.host)===we||we===Se||Object.values(ne.current).some(function(Rt){return(Rt==null?void 0:Rt.contains(we))||we===Rt})}),Ve=t0(i,G,Y,q),ut=t0(i,W,ae,ie),$e=u.useState(v||!1),de=U($e,2),Ce=de[0],oe=de[1],Te=f??Ce,_e=Kt(function(we){f===void 0&&oe(we)});mt(function(){oe(f||!1)},[f]);var Ee=u.useRef(Te);Ee.current=Te;var We=u.useRef([]);We.current=[];var et=Kt(function(we){var Le;_e(we),((Le=We.current[We.current.length-1])!==null&&Le!==void 0?Le:Te)!==we&&(We.current.push(we),y==null||y(we))}),Ue=u.useRef(),nt=function(){clearTimeout(Ue.current)},it=function(Le){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;nt(),Ot===0?et(Le):Ue.current=setTimeout(function(){et(Le)},Ot*1e3)};u.useEffect(function(){return nt},[]);var $t=u.useState(!1),tn=U($t,2),mn=tn[0],pn=tn[1];mt(function(we){(!we||Te)&&pn(!0)},[Te]);var At=u.useState(null),Ke=U(At,2),Ne=Ke[0],ze=Ke[1],St=u.useState([0,0]),ct=U(St,2),jt=ct[0],An=ct[1],Zn=function(Le){An([Le.clientX,Le.clientY])},jn=A_(Te,Se,z?jt:Ae,M,L,I,H),Pt=U(jn,11),Fo=Pt[0],Zr=Pt[1],Jr=Pt[2],zn=Pt[3],hr=Pt[4],ko=Pt[5],_r=Pt[6],gi=Pt[7],xa=Pt[8],$n=Pt[9],gn=Pt[10],Ao=L_(Me,s,c,d),hi=U(Ao,2),yr=hi[0],br=hi[1],jo=yr.has("click"),eo=br.has("click")||br.has("contextMenu"),Jn=Kt(function(){mn||gn()}),Ea=function(){Ee.current&&z&&eo&&it(!1)};j_(Te,Ae,Se,Jn,Ea),mt(function(){Jn()},[jt,M]),mt(function(){Te&&!(L!=null&&L[M])&&Jn()},[JSON.stringify(I)]);var $a=u.useMemo(function(){var we=k_(L,i,$n,z);return X(we,N==null?void 0:N($n))},[$n,N,L,i,z]);u.useImperativeHandle(r,function(){return{nativeElement:ht.current,popupElement:Je.current,forceAlign:Jn}});var dt=u.useState(0),Xe=U(dt,2),at=Xe[0],qt=Xe[1],Xt=u.useState(0),Mr=U(Xt,2),zo=Mr[0],Do=Mr[1],Tr=function(){if(F&&Ae){var Le=Ae.getBoundingClientRect();qt(Le.width),Do(Le.height)}},yi=function(){Tr(),Jn()},to=function(Le){pn(!1),gn(),h==null||h(Le)},bi=function(){return new Promise(function(Le){Tr(),ze(function(){return Le})})};mt(function(){Ne&&(gn(),Ne(),ze(null))},[Ne]);function Tt(we,Le,Ot,zt){se[we]=function(Rt){var ts;zt==null||zt(Rt),it(Le,Ot);for(var Bc=arguments.length,Ip=new Array(Bc>1?Bc-1:0),ns=1;ns1?Ot-1:0),Rt=1;Rt1?Ot-1:0),Rt=1;Rtt||e,vp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=u.useContext(st),l=u.useContext(QS),s=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=l??s)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const d=dO.includes(c);return[c,d]};var V_={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"},H_=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:V_}))},W_=u.forwardRef(H_),U_={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"},K_=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:U_}))},G_=u.forwardRef(K_),q_={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"},X_=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:q_}))},Q_=u.forwardRef(X_);const Dl=["xxl","xl","lg","md","sm","xs"],Y_=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Z_=e=>{const t=e,n=[].concat(Dl).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=c=>{let{matches:d}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:d}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function nC(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return u.createElement("div",{className:X("".concat(n,"-content"),i),style:a},u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Ii={shiftX:64,adjustY:1},Pi={adjustX:1,shiftY:!0},Bn=[0,0],eM={left:{points:["cr","cl"],overflow:Pi,offset:[-4,0],targetOffset:Bn},right:{points:["cl","cr"],overflow:Pi,offset:[4,0],targetOffset:Bn},top:{points:["bc","tc"],overflow:Ii,offset:[0,-4],targetOffset:Bn},bottom:{points:["tc","bc"],overflow:Ii,offset:[0,4],targetOffset:Bn},topLeft:{points:["bl","tl"],overflow:Ii,offset:[0,-4],targetOffset:Bn},leftTop:{points:["tr","tl"],overflow:Pi,offset:[-4,0],targetOffset:Bn},topRight:{points:["br","tr"],overflow:Ii,offset:[0,-4],targetOffset:Bn},rightTop:{points:["tl","tr"],overflow:Pi,offset:[4,0],targetOffset:Bn},bottomRight:{points:["tr","br"],overflow:Ii,offset:[0,4],targetOffset:Bn},rightBottom:{points:["bl","br"],overflow:Pi,offset:[4,0],targetOffset:Bn},bottomLeft:{points:["tl","bl"],overflow:Ii,offset:[0,4],targetOffset:Bn},leftBottom:{points:["br","bl"],overflow:Pi,offset:[-4,0],targetOffset:Bn}},tM=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],nM=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,c=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,v=f===void 0?"rc-tooltip":f,y=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,C=t.transitionName,g=t.animation,m=t.motion,p=t.placement,S=p===void 0?"right":p,w=t.align,x=w===void 0?{}:w,E=t.destroyTooltipOnHide,$=E===void 0?!1:E,O=t.defaultVisible,P=t.getTooltipContainer,k=t.overlayInnerStyle;t.arrowContent;var A=t.overlay,T=t.id,M=t.showArrow,D=M===void 0?!0:M,L=De(t,tM),I=u.useRef(null);u.useImperativeHandle(n,function(){return I.current});var R=B({},L);"visible"in t&&(R.popupVisible=t.visible);var F=function(){return u.createElement(nC,{key:"content",prefixCls:v,id:T,overlayInnerStyle:k},A)};return u.createElement(fp,me({popupClassName:r,prefixCls:v,popup:F,action:i,builtinPlacements:eM,popupPlacement:S,ref:I,popupAlign:x,getPopupContainer:P,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:C,popupAnimation:g,popupMotion:m,defaultPopupVisible:O,autoDestroy:$,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:l,arrow:D},R),y)};const rM=u.forwardRef(nM);function oM(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,v=d,y=2*o-l,h=s,b=2*o-i,C=a,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),m=r*(Math.sqrt(2)-1),p=`polygon(${m}px 100%, 50% ${m}px, ${2*o-m}px 100%, ${m}px 100%)`,S=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${d} A ${n} ${n} 0 0 1 ${f} ${v} L ${y} ${h} A ${r} ${r} 0 0 0 ${b} ${C} Z')`;return{arrowShadowWidth:g,arrowPath:S,arrowPolygon:p}}const iM=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ee(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},rC=8;function oC(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?rC:r}}function Ts(e,t){return e?t:{}}function aM(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},iM(e,t,o)),{"&:before":{background:t}})]},Ts(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Ts(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Ts(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Ts(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function lM(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const a0={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"]}},sM={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"]}},uM=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function cM(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(a0).forEach(c=>{const d=r&&sM[c]||a0[c],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,uM.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const v=oC({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-v.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=v.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-v.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=v.arrowOffsetHorizontal+l;break}f.overflow=lM(c,v,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const dM=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${ee(e.calc(c).div(2).equal())} ${ee(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,rC)}},[`${t}-content`]:{position:"relative"}}),NO(e,(f,v)=>{let{darkColor:y}=v;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},aM(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},fM=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},oC({contentRadius:e.borderRadius,limitVerticalRadius:!0})),oM(en(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),iC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return gr("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=en(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[dM(l),h_(r,"zoom-big-fast")]},fM,{resetStyle:!1,injectStyle:t})(e)},vM=Au.map(e=>`${e}-inverse`);function mM(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ue(vM),ue(Au)).includes(e):Au.includes(e)}function aC(e,t){const n=mM(t),r=X({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const pM=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=u.useContext(st),s=l("tooltip",t),[c,d,f]=iC(s),v=aC(s,i),y=v.arrowStyle,h=Object.assign(Object.assign({},a),v.overlayStyle),b=X(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,v.className);return c(u.createElement("div",{className:b,style:y},u.createElement("div",{className:`${s}-arrow`}),u.createElement(nC,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:h}),o)))};var gM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:v,destroyTooltipOnHide:y,arrow:h=!0,title:b,overlay:C,builtinPlacements:g,arrowPointAtCenter:m=!1,autoAdjustOverflow:p=!0}=e,S=!!h,[,w]=mr(),{getPopupContainer:x,getPrefixCls:E,direction:$}=u.useContext(st),O=Ym(),P=u.useRef(null),k=()=>{var ge;(ge=P.current)===null||ge===void 0||ge.forceAlign()};u.useImperativeHandle(t,()=>{var ge;return{forceAlign:k,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),k()},nativeElement:(ge=P.current)===null||ge===void 0?void 0:ge.nativeElement}});const[A,T]=Gn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=!b&&!C&&b!==0,D=ge=>{var ve,Ie;T(M?!1:ge),M||((ve=e.onOpenChange)===null||ve===void 0||ve.call(e,ge),(Ie=e.onVisibleChange)===null||Ie===void 0||Ie.call(e,ge))},L=u.useMemo(()=>{var ge,ve;let Ie=m;return typeof h=="object"&&(Ie=(ve=(ge=h.pointAtCenter)!==null&&ge!==void 0?ge:h.arrowPointAtCenter)!==null&&ve!==void 0?ve:m),g||cM({arrowPointAtCenter:Ie,autoAdjustOverflow:p,arrowWidth:S?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[m,h,g,w]),I=u.useMemo(()=>b===0?b:C||b||"",[C,b]),R=u.createElement(Al,{space:!0},typeof I=="function"?I():I),{getPopupContainer:F,placement:N="top",mouseEnterDelay:_=.1,mouseLeaveDelay:z=.1,overlayStyle:V,rootClassName:H}=e,K=gM(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),G=E("tooltip",o),W=E(),q=e["data-popover-inject"];let Y=A;!("open"in e)&&!("visible"in e)&&M&&(Y=!1);const ie=u.isValidElement(d)&&!RS(d)?d:u.createElement("span",null,d),ae=ie.props,le=!ae.className||typeof ae.className=="string"?X(ae.className,i||`${G}-open`):ae.className,[fe,Q,re]=iC(G,!q),pe=aC(G,s),Re=pe.arrowStyle,Me=Object.assign(Object.assign({},c),pe.overlayStyle),be=X(l,{[`${G}-rtl`]:$==="rtl"},pe.className,H,Q,re),[ne,te]=XR("Tooltip",K.zIndex),xe=u.createElement(rM,Object.assign({},K,{zIndex:ne,showArrow:S,placement:N,mouseEnterDelay:_,mouseLeaveDelay:z,prefixCls:G,overlayClassName:be,overlayStyle:Object.assign(Object.assign({},Re),V),getTooltipContainer:F||a||x,ref:P,builtinPlacements:L,overlay:R,visible:Y,onVisibleChange:D,afterVisibleChange:f??v,overlayInnerStyle:Me,arrowContent:u.createElement("span",{className:`${G}-arrow-content`}),motion:{motionName:_S(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),Y?ci(ie,{className:le}):ie);return fe(u.createElement(IS.Provider,{value:te},xe))}),Yl=hM;Yl._InternalPanelDoNotUseOrYouWillBeFired=pM;var yM=ce.ESC,bM=ce.TAB;function SM(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=u.useRef(!1),l=function(){if(t){var f,v;(f=n.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),r==null||r(!1)}},s=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case yM:l();break;case bM:{var v=!1;a.current||(v=s()),v?f.preventDefault():l();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",c),o&>(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var CM=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=En(t,i==null?void 0:i.ref);return Z.createElement(Z.Fragment,null,r&&Z.createElement("div",{className:"".concat(o,"-arrow")}),Z.cloneElement(i,{ref:Po(i)?a:void 0}))}),_i={adjustX:1,adjustY:1},Mi=[0,0],wM={topLeft:{points:["bl","tl"],overflow:_i,offset:[0,-4],targetOffset:Mi},top:{points:["bc","tc"],overflow:_i,offset:[0,-4],targetOffset:Mi},topRight:{points:["br","tr"],overflow:_i,offset:[0,-4],targetOffset:Mi},bottomLeft:{points:["tl","bl"],overflow:_i,offset:[0,4],targetOffset:Mi},bottom:{points:["tc","bc"],overflow:_i,offset:[0,4],targetOffset:Mi},bottomRight:{points:["tr","br"],overflow:_i,offset:[0,4],targetOffset:Mi}},xM=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function EM(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,v=e.placements,y=v===void 0?wM:v,h=e.getPopupContainer,b=e.showAction,C=e.hideAction,g=e.overlayClassName,m=e.overlayStyle,p=e.visible,S=e.trigger,w=S===void 0?["hover"]:S,x=e.autoFocus,E=e.overlay,$=e.children,O=e.onVisibleChange,P=De(e,xM),k=Z.useState(),A=U(k,2),T=A[0],M=A[1],D="visible"in e?p:T,L=Z.useRef(null),I=Z.useRef(null),R=Z.useRef(null);Z.useImperativeHandle(t,function(){return L.current});var F=function(q){M(q),O==null||O(q)};SM({visible:D,triggerRef:R,onVisibleChange:F,autoFocus:x,overlayRef:I});var N=function(q){var Y=e.onOverlayClick;M(!1),Y&&Y(q)},_=function(){return Z.createElement(CM,{ref:I,overlay:E,prefixCls:a,arrow:o})},z=function(){return typeof E=="function"?_:_()},V=function(){var q=e.minOverlayWidthMatchTrigger,Y=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?q:!Y},H=function(){var q=e.openClassName;return q!==void 0?q:"".concat(a,"-open")},K=Z.cloneElement($,{className:X((n=$.props)===null||n===void 0?void 0:n.className,D&&H()),ref:Po($)?En(R,$.ref):void 0}),G=C;return!G&&w.indexOf("contextMenu")!==-1&&(G=["click"]),Z.createElement(fp,me({builtinPlacements:y},P,{prefixCls:a,ref:L,popupClassName:X(g,j({},"".concat(a,"-show-arrow"),o)),popupStyle:m,action:w,showAction:b,hideAction:G,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:D,stretch:V()?"minWidth":"",popup:z(),onPopupVisibleChange:F,onPopupClick:N,getPopupContainer:h}),K)}const $M=Z.forwardRef(EM);var lC=u.createContext(null);function sC(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function uC(e){var t=u.useContext(lC);return sC(t,e)}var OM=["children","locked"],pr=u.createContext(null);function RM(e,t){var n=B({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Bl(e){var t=e.children,n=e.locked,r=De(e,OM),o=u.useContext(pr),i=bc(function(){return RM(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!_l(a[1],l[1],!0))});return u.createElement(pr.Provider,{value:i},t)}var IM=[],cC=u.createContext(null);function _c(){return u.useContext(cC)}var dC=u.createContext(IM);function Zl(e){var t=u.useContext(dC);return u.useMemo(function(){return e!==void 0?[].concat(ue(t),[e]):t},[t,e])}var fC=u.createContext(null),mp=u.createContext({});function l0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Oc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function PM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ue(e.querySelectorAll("*")).filter(function(r){return l0(r,t)});return l0(e,t)&&n.unshift(e),n}var Fv=ce.LEFT,kv=ce.RIGHT,Av=ce.UP,ou=ce.DOWN,iu=ce.ENTER,vC=ce.ESC,za=ce.HOME,Da=ce.END,s0=[Av,ou,Fv,kv];function _M(e,t,n,r){var o,i,a,l,s="prev",c="next",d="children",f="parent";if(e==="inline"&&r===iu)return{inlineTrigger:!0};var v=(o={},j(o,Av,s),j(o,ou,c),o),y=(i={},j(i,Fv,n?c:s),j(i,kv,n?s:c),j(i,ou,d),j(i,iu,d),i),h=(a={},j(a,Av,s),j(a,ou,c),j(a,iu,d),j(a,vC,f),j(a,Fv,n?d:f),j(a,kv,n?f:d),a),b={inline:v,horizontal:y,vertical:h,inlineSub:v,horizontalSub:h,verticalSub:h},C=(l=b["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(C){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function MM(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function TM(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function pp(e,t){var n=PM(e,!0);return n.filter(function(r){return t.has(r)})}function u0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=pp(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var jv=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(sC(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function NM(e,t,n,r,o,i,a,l,s,c){var d=u.useRef(),f=u.useRef();f.current=t;var v=function(){gt.cancel(d.current)};return u.useEffect(function(){return function(){v()}},[]),function(y){var h=y.which;if([].concat(s0,[iu,vC,za,Da]).includes(h)){var b=i(),C=jv(b,r),g=C,m=g.elements,p=g.key2element,S=g.element2key,w=p.get(t),x=TM(w,m),E=S.get(x),$=_M(e,a(E,!0).length===1,n,h);if(!$&&h!==za&&h!==Da)return;(s0.includes(h)||[za,Da].includes(h))&&y.preventDefault();var O=function(I){if(I){var R=I,F=I.querySelector("a");F!=null&&F.getAttribute("href")&&(R=F);var N=S.get(I);l(N),v(),d.current=gt(function(){f.current===N&&R.focus()})}};if([za,Da].includes(h)||$.sibling||!x){var P;!x||e==="inline"?P=o.current:P=MM(x);var k,A=pp(P,m);h===za?k=A[0]:h===Da?k=A[A.length-1]:k=u0(P,m,x,$.offset),O(k)}else if($.inlineTrigger)s(E);else if($.offset>0)s(E,!0),v(),d.current=gt(function(){C=jv(b,r);var L=x.getAttribute("aria-controls"),I=document.getElementById(L),R=u0(I,C.elements);O(R)},5);else if($.offset<0){var T=a(E,!0),M=T[T.length-2],D=p.get(M);s(M,!1),O(D)}}c==null||c(y)}}function LM(e){Promise.resolve().then(e)}var gp="__RC_UTIL_PATH_SPLIT__",c0=function(t){return t.join(gp)},FM=function(t){return t.split(gp)},zv="rc-menu-more";function kM(){var e=u.useState({}),t=U(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),i=u.useState([]),a=U(i,2),l=a[0],s=a[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({})},v=u.useCallback(function(p,S){var w=c0(S);o.current.set(w,p),r.current.set(p,w),c.current+=1;var x=c.current;LM(function(){x===c.current&&f()})},[]),y=u.useCallback(function(p,S){var w=c0(S);o.current.delete(w),r.current.delete(p)},[]),h=u.useCallback(function(p){s(p)},[]),b=u.useCallback(function(p,S){var w=r.current.get(p)||"",x=FM(w);return S&&l.includes(x[0])&&x.unshift(zv),x},[l]),C=u.useCallback(function(p,S){return p.filter(function(w){return w!==void 0}).some(function(w){var x=b(w,!0);return x.includes(S)})},[b]),g=function(){var S=ue(r.current.keys());return l.length&&S.push(zv),S},m=u.useCallback(function(p){var S="".concat(r.current.get(p)).concat(gp),w=new Set;return ue(o.current.keys()).forEach(function(x){x.startsWith(S)&&w.add(o.current.get(x))}),w},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:v,unregisterPath:y,refreshOverflowKeys:h,isSubPathKey:C,getKeyPath:b,getKeys:g,getSubPathKeys:m}}function Ka(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(m.motionAppear=!1);var p=m.onVisibleChanged;return m.onVisibleChanged=function(S){return!v.current&&!S&&C(!0),p==null?void 0:p(S)},b?null:u.createElement(Bl,{mode:i,locked:!v.current},u.createElement(To,me({visible:g},m,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(S){var w=S.className,x=S.style;return u.createElement(hp,{id:t,className:w,style:x},o)}))}var JM=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eT=["active"],tT=u.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,c=e.children,d=e.itemIcon,f=e.expandIcon,v=e.popupClassName,y=e.popupOffset,h=e.popupStyle,b=e.onClick,C=e.onMouseEnter,g=e.onMouseLeave,m=e.onTitleClick,p=e.onTitleMouseEnter,S=e.onTitleMouseLeave,w=De(e,JM),x=uC(a),E=u.useContext(pr),$=E.prefixCls,O=E.mode,P=E.openKeys,k=E.disabled,A=E.overflowDisabled,T=E.activeKey,M=E.selectedKeys,D=E.itemIcon,L=E.expandIcon,I=E.onItemClick,R=E.onOpenChange,F=E.onActive,N=u.useContext(mp),_=N._internalRenderSubMenuItem,z=u.useContext(fC),V=z.isSubPathKey,H=Zl(),K="".concat($,"-submenu"),G=k||l,W=u.useRef(),q=u.useRef(),Y=d??D,ie=f??L,ae=P.includes(a),le=!A&&ae,fe=V(M,a),Q=mC(a,G,p,S),re=Q.active,pe=De(Q,eT),Re=u.useState(!1),Me=U(Re,2),be=Me[0],ne=Me[1],te=function(Ge){G||ne(Ge)},xe=function(Ge){te(!0),C==null||C({key:a,domEvent:Ge})},ge=function(Ge){te(!1),g==null||g({key:a,domEvent:Ge})},ve=u.useMemo(function(){return re||(O!=="inline"?be||V([T],a):!1)},[O,re,T,be,a,V]),Ie=pC(H.length),Se=function(Ge){G||(m==null||m({key:a,domEvent:Ge}),O==="inline"&&R(a,!ae))},Et=Ka(function(qe){b==null||b(Vu(qe)),I(qe)}),Je=function(Ge){O!=="inline"&&R(a,Ge)},Oe=function(){F(a)},he=x&&"".concat(x,"-popup"),ke=u.createElement("div",me({role:"menuitem",style:Ie,className:"".concat(K,"-title"),tabIndex:G?null:-1,ref:W,title:typeof i=="string"?i:null,"data-menu-id":A&&x?null:x,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":he,"aria-disabled":G,onClick:Se,onFocus:Oe},pe),i,u.createElement(gC,{icon:O!=="horizontal"?ie:void 0,props:B(B({},e),{},{isOpen:le,isSubMenu:!0})},u.createElement("i",{className:"".concat(K,"-arrow")}))),Ae=u.useRef(O);if(O!=="inline"&&H.length>1?Ae.current="vertical":Ae.current=O,!A){var bt=Ae.current;ke=u.createElement(YM,{mode:bt,prefixCls:K,visible:!s&&le&&O!=="inline",popupClassName:v,popupOffset:y,popupStyle:h,popup:u.createElement(Bl,{mode:bt==="horizontal"?"vertical":bt},u.createElement(hp,{id:he,ref:q},c)),disabled:G,onVisibleChange:Je},ke)}var ht=u.createElement(Hr.Item,me({ref:t,role:"none"},w,{component:"li",style:r,className:X(K,"".concat(K,"-").concat(O),o,(n={},j(n,"".concat(K,"-open"),le),j(n,"".concat(K,"-active"),ve),j(n,"".concat(K,"-selected"),fe),j(n,"".concat(K,"-disabled"),G),n)),onMouseEnter:xe,onMouseLeave:ge}),ke,!A&&u.createElement(ZM,{id:he,open:le,keyPath:H},c));return _&&(ht=_(ht,e,{selected:fe,active:ve,open:le,disabled:G})),u.createElement(Bl,{onItemClick:Et,mode:O==="horizontal"?"vertical":O,itemIcon:Y,expandIcon:ie},ht)}),bp=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Zl(n),i=yp(r,o),a=_c();u.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var l;return a?l=i:l=u.createElement(tT,me({ref:t},e),i),u.createElement(dC.Provider,{value:o},l)});function yC(e){var t=e.className,n=e.style,r=u.useContext(pr),o=r.prefixCls,i=_c();return i?null:u.createElement("li",{role:"separator",className:X("".concat(o,"-item-divider"),t),style:n})}var nT=["className","title","eventKey","children"],rT=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=De(e,nT),a=u.useContext(pr),l=a.prefixCls,s="".concat(l,"-item-group");return u.createElement("li",me({ref:t,role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:X(s,n)}),u.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}),bC=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Zl(n),i=yp(r,o),a=_c();return a?i:u.createElement(rT,me({ref:t},Pr(e,["warnKey"])),i)}),oT=["label","children","key","type"];function Dv(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,l){if(a&&Fe(a)==="object"){var s=a,c=s.label,d=s.children,f=s.key,v=s.type,y=De(s,oT),h=f??"tmp-".concat(l);return d||v==="group"?v==="group"?u.createElement(r,me({key:h},y,{title:c}),Dv(d,t)):u.createElement(o,me({key:h},y,{title:c}),Dv(d,t)):v==="divider"?u.createElement(i,me({key:h},y)):u.createElement(n,me({key:h},y),c)}return null}).filter(function(a){return a})}function f0(e,t,n,r){var o=e,i=B({divider:yC,item:Mc,group:bC,submenu:bp},r);return t&&(o=Dv(t,i)),yp(o,n)}var iT=["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"],Vo=[],aT=u.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,d=o.tabIndex,f=d===void 0?0:d,v=o.items,y=o.children,h=o.direction,b=o.id,C=o.mode,g=C===void 0?"vertical":C,m=o.inlineCollapsed,p=o.disabled,S=o.disabledOverflow,w=o.subMenuOpenDelay,x=w===void 0?.1:w,E=o.subMenuCloseDelay,$=E===void 0?.1:E,O=o.forceSubMenuRender,P=o.defaultOpenKeys,k=o.openKeys,A=o.activeKey,T=o.defaultActiveFirst,M=o.selectable,D=M===void 0?!0:M,L=o.multiple,I=L===void 0?!1:L,R=o.defaultSelectedKeys,F=o.selectedKeys,N=o.onSelect,_=o.onDeselect,z=o.inlineIndent,V=z===void 0?24:z,H=o.motion,K=o.defaultMotions,G=o.triggerSubMenuAction,W=G===void 0?"hover":G,q=o.builtinPlacements,Y=o.itemIcon,ie=o.expandIcon,ae=o.overflowedIndicator,le=ae===void 0?"...":ae,fe=o.overflowedIndicatorPopupClassName,Q=o.getPopupContainer,re=o.onClick,pe=o.onOpenChange,Re=o.onKeyDown;o.openAnimation,o.openTransitionName;var Me=o._internalRenderMenuItem,be=o._internalRenderSubMenuItem,ne=o._internalComponents,te=De(o,iT),xe=u.useMemo(function(){return[f0(y,v,Vo,ne),f0(y,v,Vo,{})]},[y,v,ne]),ge=U(xe,2),ve=ge[0],Ie=ge[1],Se=u.useState(!1),Et=U(Se,2),Je=Et[0],Oe=Et[1],he=u.useRef(),ke=jM(b),Ae=h==="rtl",bt=Gn(P,{value:k,postState:function(Xe){return Xe||Vo}}),ht=U(bt,2),qe=ht[0],Ge=ht[1],tt=function(Xe){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function qt(){Ge(Xe),pe==null||pe(Xe)}at?ha.flushSync(qt):qt()},se=u.useState(qe),Pe=U(se,2),Ve=Pe[0],ut=Pe[1],$e=u.useRef(!1),de=u.useMemo(function(){return(g==="inline"||g==="vertical")&&m?["vertical",m]:[g,!1]},[g,m]),Ce=U(de,2),oe=Ce[0],Te=Ce[1],_e=oe==="inline",Ee=u.useState(oe),We=U(Ee,2),et=We[0],Ue=We[1],nt=u.useState(Te),it=U(nt,2),$t=it[0],tn=it[1];u.useEffect(function(){Ue(oe),tn(Te),$e.current&&(_e?Ge(Ve):tt(Vo))},[oe,Te]);var mn=u.useState(0),pn=U(mn,2),At=pn[0],Ke=pn[1],Ne=At>=ve.length-1||et!=="horizontal"||S;u.useEffect(function(){_e&&ut(qe)},[qe]),u.useEffect(function(){return $e.current=!0,function(){$e.current=!1}},[]);var ze=kM(),St=ze.registerPath,ct=ze.unregisterPath,jt=ze.refreshOverflowKeys,An=ze.isSubPathKey,Zn=ze.getKeyPath,jn=ze.getKeys,Pt=ze.getSubPathKeys,Fo=u.useMemo(function(){return{registerPath:St,unregisterPath:ct}},[St,ct]),Zr=u.useMemo(function(){return{isSubPathKey:An}},[An]);u.useEffect(function(){jt(Ne?Vo:ve.slice(At+1).map(function(dt){return dt.key}))},[At,Ne]);var Jr=Gn(A||T&&((n=ve[0])===null||n===void 0?void 0:n.key),{value:A}),zn=U(Jr,2),hr=zn[0],ko=zn[1],_r=Ka(function(dt){ko(dt)}),gi=Ka(function(){ko(void 0)});u.useImperativeHandle(t,function(){return{list:he.current,focus:function(Xe){var at,qt=jn(),Xt=jv(qt,ke),Mr=Xt.elements,zo=Xt.key2element,Do=Xt.element2key,Tr=pp(he.current,Mr),yi=hr??(Tr[0]?Do.get(Tr[0]):(at=ve.find(function(Tt){return!Tt.props.disabled}))===null||at===void 0?void 0:at.key),to=zo.get(yi);if(yi&&to){var bi;to==null||(bi=to.focus)===null||bi===void 0||bi.call(to,Xe)}}}});var xa=Gn(R||[],{value:F,postState:function(Xe){return Array.isArray(Xe)?Xe:Xe==null?Vo:[Xe]}}),$n=U(xa,2),gn=$n[0],Ao=$n[1],hi=function(Xe){if(D){var at=Xe.key,qt=gn.includes(at),Xt;I?qt?Xt=gn.filter(function(zo){return zo!==at}):Xt=[].concat(ue(gn),[at]):Xt=[at],Ao(Xt);var Mr=B(B({},Xe),{},{selectedKeys:Xt});qt?_==null||_(Mr):N==null||N(Mr)}!I&&qe.length&&et!=="inline"&&tt(Vo)},yr=Ka(function(dt){re==null||re(Vu(dt)),hi(dt)}),br=Ka(function(dt,Xe){var at=qe.filter(function(Xt){return Xt!==dt});if(Xe)at.push(dt);else if(et!=="inline"){var qt=Pt(dt);at=at.filter(function(Xt){return!qt.has(Xt)})}_l(qe,at,!0)||tt(at,!0)}),jo=function(Xe,at){var qt=at??!qe.includes(Xe);br(Xe,qt)},eo=NM(et,hr,Ae,ke,he,jn,Zn,ko,jo,Re);u.useEffect(function(){Oe(!0)},[]);var Jn=u.useMemo(function(){return{_internalRenderMenuItem:Me,_internalRenderSubMenuItem:be}},[Me,be]),Ea=et!=="horizontal"||S?ve:ve.map(function(dt,Xe){return u.createElement(Bl,{key:dt.key,overflowDisabled:Xe>At},dt)}),$a=u.createElement(Hr,me({id:b,ref:he,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Mc,className:X(a,"".concat(a,"-root"),"".concat(a,"-").concat(et),c,(r={},j(r,"".concat(a,"-inline-collapsed"),$t),j(r,"".concat(a,"-rtl"),Ae),r),l),dir:h,style:s,role:"menu",tabIndex:f,data:Ea,renderRawItem:function(Xe){return Xe},renderRawRest:function(Xe){var at=Xe.length,qt=at?ve.slice(-at):null;return u.createElement(bp,{eventKey:zv,title:le,disabled:Ne,internalPopupClose:at===0,popupClassName:fe},qt)},maxCount:et!=="horizontal"||S?Hr.INVALIDATE:Hr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Xe){Ke(Xe)},onKeyDown:eo},te));return u.createElement(mp.Provider,{value:Jn},u.createElement(lC.Provider,{value:ke},u.createElement(Bl,{prefixCls:a,rootClassName:l,mode:et,openKeys:qe,rtl:Ae,disabled:p,motion:Je?H:null,defaultMotions:Je?K:null,activeKey:hr,onActive:_r,onInactive:gi,selectedKeys:gn,inlineIndent:V,subMenuOpenDelay:x,subMenuCloseDelay:$,forceSubMenuRender:O,builtinPlacements:q,triggerSubMenuAction:W,getPopupContainer:Q,itemIcon:Y,expandIcon:ie,onItemClick:yr,onOpenChange:br},u.createElement(fC.Provider,{value:Zr},$a),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(cC.Provider,{value:Fo},Ie)))))}),Jl=aT;Jl.Item=Mc;Jl.SubMenu=bp;Jl.ItemGroup=bC;Jl.Divider=yC;var lT={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"},sT=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:lT}))},uT=u.forwardRef(sT);function Sp(e){return en(e,{inputAffixPadding:e.paddingXXS})}const Cp=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:v,colorPrimaryHover:y,colorPrimary:h,controlOutlineWidth:b,controlOutline:C,colorErrorOutline:g,colorWarningOutline:m,colorBgContainer:p}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:v,activeBorderColor:h,hoverBorderColor:y,activeShadow:`0 0 0 ${b}px ${C}`,errorActiveShadow:`0 0 0 ${b}px ${g}`,warningActiveShadow:`0 0 0 ${b}px ${m}`,hoverBg:p,activeBg:p,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},cT=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),wp=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},cT(en(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),SC=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),v0=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},SC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),CC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},SC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},wp(e))}),v0(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),v0(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),m0=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),wC=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},m0(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),m0(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},wp(e))}})}),xC=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},EC=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),p0=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},EC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),$C=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},EC(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},wp(e))}),p0(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),p0(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),g0=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),OC=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},g0(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),g0(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),RC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),IC=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ee(t)} ${ee(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},PC=e=>({padding:`${ee(e.paddingBlockSM)} ${ee(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Tc=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ee(e.paddingBlock)} ${ee(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},RC(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},IC(e)),"&-sm":Object.assign({},PC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),_C=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},IC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},PC(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ee(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ee(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ee(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${ee(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},$O()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${n}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},dT=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rr(e)),Tc(e)),CC(e)),$C(e)),xC(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},fT=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ee(e.inputAffixPadding)}`}}}},vT=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},Tc(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),fT(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},mT=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Rr(e)),_C(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},wC(e)),OC(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},pT=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},gT=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + &-allow-clear > ${t}, + &-affix-wrapper${r}-has-feedback ${t} + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&: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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},hT=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xp=gr("Input",e=>{const t=en(e,Sp(e));return[dT(t),gT(t),vT(t),mT(t),pT(t),hT(t),ip(t)]},Cp,{resetFont:!1});var yT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},bT=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:yT}))},ST=u.forwardRef(bT);const Nc=u.createContext(null);var CT=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,s=a.align,c=s===void 0?"center":s,d=u.useState(),f=U(d,2),v=f[0],y=f[1],h=u.useRef(),b=Z.useCallback(function(g){return typeof l=="function"?l(g):typeof l=="number"?l:g},[l]);function C(){gt.cancel(h.current)}return u.useEffect(function(){var g={};if(n)if(r){g.width=b(n.width);var m=o?"right":"left";c==="start"&&(g[m]=n[m]),c==="center"&&(g[m]=n[m]+n.width/2,g.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(g[m]=n[m]+n.width,g.transform="translateX(-100%)")}else g.height=b(n.height),c==="start"&&(g.top=n.top),c==="center"&&(g.top=n.top+n.height/2,g.transform="translateY(-50%)"),c==="end"&&(g.top=n.top+n.height,g.transform="translateY(-100%)");return C(),h.current=gt(function(){y(g)}),C},[n,r,o,c,b]),{style:v}},h0={width:0,height:0,left:0,top:0};function wT(e,t,n){return u.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||h0,a=i.left+i.width,l=0;lM?(A=P,x.current="x"):(A=k,x.current="y"),t(-A,-A)&&O.preventDefault()}var $=u.useRef(null);$.current={onTouchStart:p,onTouchMove:S,onTouchEnd:w,onWheel:E},u.useEffect(function(){function O(T){$.current.onTouchStart(T)}function P(T){$.current.onTouchMove(T)}function k(T){$.current.onTouchEnd(T)}function A(T){$.current.onWheel(T)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",k,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",A,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",k)}},[])}function MC(e){var t=u.useState(0),n=U(t,2),r=n[0],o=n[1],i=u.useRef(0),a=u.useRef();return a.current=e,ta(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function $T(e){var t=u.useRef([]),n=u.useState({}),r=U(n,2),o=r[1],i=u.useRef(typeof e=="function"?e():e),a=MC(function(){var s=i.current;t.current.forEach(function(c){s=c(s)}),t.current=[],i.current=s,o({})});function l(s){t.current.push(s),a()}return[i.current,l]}var C0={width:0,height:0,left:0,top:0,right:0};function OT(e,t,n,r,o,i,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,d,f,v;return["top","bottom"].includes(s)?(d="width",f=c?"right":"left",v=Math.abs(n)):(d="height",f="top",v=-n),u.useMemo(function(){if(!l.length)return[0,0];for(var y=l.length,h=y,b=0;bv+t){h=b-1;break}}for(var g=0,m=y-1;m>=0;m-=1){var p=e.get(l[m].key)||C0;if(p[f]=h?[0,0]:[g,h]},[e,t,r,o,i,v,s,l.map(function(y){return y.key}).join("_"),c])}function w0(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var RT="TABS_DQ";function TC(e){return String(e).replace(/"/g,RT)}function NC(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var LC=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),x0=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Fe(o)==="object"&&!u.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),IT=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,s=l===void 0?{}:l,c=e.style,d=e.className,f=e.editable,v=e.tabBarGutter,y=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,C=e.getPopupContainer,g=e.popupClassName,m=u.useState(!1),p=U(m,2),S=p[0],w=p[1],x=u.useState(null),E=U(x,2),$=E[0],O=E[1],P=s.icon,k=P===void 0?"More":P,A="".concat(r,"-more-popup"),T="".concat(n,"-dropdown"),M=$!==null?"".concat(A,"-").concat($):null,D=i==null?void 0:i.dropdownAriaLabel;function L(V,H){V.preventDefault(),V.stopPropagation(),f.onEdit("remove",{key:H,event:V})}var I=u.createElement(Jl,{onClick:function(H){var K=H.key,G=H.domEvent;b(K,G),w(!1)},prefixCls:"".concat(T,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[$],"aria-label":D!==void 0?D:"expanded dropdown"},o.map(function(V){var H=V.closable,K=V.disabled,G=V.closeIcon,W=V.key,q=V.label,Y=NC(H,G,f,K);return u.createElement(Mc,{key:W,id:"".concat(A,"-").concat(W),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(W),disabled:K},u.createElement("span",null,q),Y&&u.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(ae){ae.stopPropagation(),L(ae,W)}},G||f.removeIcon||"×"))}));function R(V){for(var H=o.filter(function(Y){return!Y.disabled}),K=H.findIndex(function(Y){return Y.key===$})||0,G=H.length,W=0;WNe?"left":"right"})}),T=U(A,2),M=T[0],D=T[1],L=y0(0,function(Ke,Ne){!k&&b&&b({direction:Ke>Ne?"top":"bottom"})}),I=U(L,2),R=I[0],F=I[1],N=u.useState([0,0]),_=U(N,2),z=_[0],V=_[1],H=u.useState([0,0]),K=U(H,2),G=K[0],W=K[1],q=u.useState([0,0]),Y=U(q,2),ie=Y[0],ae=Y[1],le=u.useState([0,0]),fe=U(le,2),Q=fe[0],re=fe[1],pe=$T(new Map),Re=U(pe,2),Me=Re[0],be=Re[1],ne=wT(p,Me,G[0]),te=Ns(z,k),xe=Ns(G,k),ge=Ns(ie,k),ve=Ns(Q,k),Ie=teOe?Oe:Ke}var ke=u.useRef(null),Ae=u.useState(),bt=U(Ae,2),ht=bt[0],qe=bt[1];function Ge(){qe(Date.now())}function tt(){ke.current&&clearTimeout(ke.current)}ET(E,function(Ke,Ne){function ze(St,ct){St(function(jt){var An=he(jt+ct);return An})}return Ie?(k?ze(D,Ke):ze(F,Ne),tt(),Ge(),!0):!1}),u.useEffect(function(){return tt(),ht&&(ke.current=setTimeout(function(){qe(0)},100)),tt},[ht]);var se=OT(ne,Se,k?M:R,xe,ge,ve,B(B({},e),{},{tabs:p})),Pe=U(se,2),Ve=Pe[0],ut=Pe[1],$e=Kt(function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Ne=ne.get(Ke)||{width:0,height:0,left:0,right:0,top:0};if(k){var ze=M;l?Ne.rightM+Se&&(ze=Ne.right+Ne.width-Se):Ne.left<-M?ze=-Ne.left:Ne.left+Ne.width>-M+Se&&(ze=-(Ne.left+Ne.width-Se)),F(0),D(he(ze))}else{var St=R;Ne.top<-R?St=-Ne.top:Ne.top+Ne.height>-R+Se&&(St=-(Ne.top+Ne.height-Se)),D(0),F(he(St))}}),de={};f==="top"||f==="bottom"?de[l?"marginRight":"marginLeft"]=v:de.marginTop=v;var Ce=p.map(function(Ke,Ne){var ze=Ke.key;return u.createElement(_T,{id:o,prefixCls:m,key:ze,tab:Ke,style:Ne===0?void 0:de,closable:Ke.closable,editable:c,active:ze===a,renderWrapper:y,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(ct){h(ze,ct)},onFocus:function(){$e(ze),Ge(),E.current&&(l||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),oe=function(){return be(function(){var Ne,ze=new Map,St=(Ne=$.current)===null||Ne===void 0?void 0:Ne.getBoundingClientRect();return p.forEach(function(ct){var jt,An=ct.key,Zn=(jt=$.current)===null||jt===void 0?void 0:jt.querySelector('[data-node-key="'.concat(TC(An),'"]'));if(Zn){var jn=MT(Zn,St),Pt=U(jn,4),Fo=Pt[0],Zr=Pt[1],Jr=Pt[2],zn=Pt[3];ze.set(An,{width:Fo,height:Zr,left:Jr,top:zn})}}),ze})};u.useEffect(function(){oe()},[p.map(function(Ke){return Ke.key}).join("_")]);var Te=MC(function(){var Ke=Ti(S),Ne=Ti(w),ze=Ti(x);V([Ke[0]-Ne[0]-ze[0],Ke[1]-Ne[1]-ze[1]]);var St=Ti(P);ae(St);var ct=Ti(O);re(ct);var jt=Ti($);W([jt[0]-St[0],jt[1]-St[1]]),oe()}),_e=p.slice(0,Ve),Ee=p.slice(ut+1),We=[].concat(ue(_e),ue(Ee)),et=ne.get(a),Ue=CT({activeTabOffset:et,horizontal:k,indicator:C,rtl:l}),nt=Ue.style;u.useEffect(function(){$e()},[a,Je,Oe,w0(et),w0(ne),k]),u.useEffect(function(){Te()},[l]);var it=!!We.length,$t="".concat(m,"-nav-wrap"),tn,mn,pn,At;return k?l?(mn=M>0,tn=M!==Oe):(tn=M<0,mn=M!==Je):(pn=R<0,At=R!==Je),u.createElement(Or,{onResize:Te},u.createElement("div",{ref:Gl(t,S),role:"tablist",className:X("".concat(m,"-nav"),n),style:r,onKeyDown:function(){Ge()}},u.createElement(x0,{ref:w,position:"left",extra:s,prefixCls:m}),u.createElement(Or,{onResize:Te},u.createElement("div",{className:X($t,j(j(j(j({},"".concat($t,"-ping-left"),tn),"".concat($t,"-ping-right"),mn),"".concat($t,"-ping-top"),pn),"".concat($t,"-ping-bottom"),At)),ref:E},u.createElement(Or,{onResize:Te},u.createElement("div",{ref:$,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(R,"px)"),transition:ht?"none":void 0}},Ce,u.createElement(LC,{ref:P,prefixCls:m,locale:d,editable:c,style:B(B({},Ce.length===0?void 0:de),{},{visibility:it?"hidden":null})}),u.createElement("div",{className:X("".concat(m,"-ink-bar"),j({},"".concat(m,"-ink-bar-animated"),i.inkBar)),style:nt}))))),u.createElement(PT,me({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:m,tabs:We,className:!it&&Et,tabMoving:!!ht})),u.createElement(x0,{ref:x,position:"right",extra:s,prefixCls:m})))}),FC=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return u.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:X(n,a&&"".concat(n,"-active"),r),ref:t},s)}),TT=["renderTabBar"],NT=["label","key"],LT=function(t){var n=t.renderTabBar,r=De(t,TT),o=u.useContext(Nc),i=o.tabs;if(n){var a=B(B({},r),{},{panes:i.map(function(l){var s=l.label,c=l.key,d=De(l,NT);return u.createElement(FC,me({tab:s,key:c,tabKey:c},d))})});return n(a,E0)}return u.createElement(E0,r)},FT=["key","forceRender","style","className","destroyInactiveTabPane"],kT=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=u.useContext(Nc),s=l.prefixCls,c=l.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return u.createElement("div",{className:X("".concat(s,"-content-holder"))},u.createElement("div",{className:X("".concat(s,"-content"),"".concat(s,"-content-").concat(i),j({},"".concat(s,"-content-animated"),d))},c.map(function(v){var y=v.key,h=v.forceRender,b=v.style,C=v.className,g=v.destroyInactiveTabPane,m=De(v,FT),p=y===r;return u.createElement(To,me({key:y,visible:p,forceRender:h,removeOnLeave:!!(a||g),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,w){var x=S.style,E=S.className;return u.createElement(FC,me({},m,{prefixCls:f,id:n,tabKey:y,animated:d,active:p,style:B(B({},b),x),className:X(C,E),ref:w}))})})))};function AT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=B({inkBar:!0},Fe(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var jT=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],$0=0,zT=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,d=e.editable,f=e.animated,v=e.tabPosition,y=v===void 0?"top":v,h=e.tabBarGutter,b=e.tabBarStyle,C=e.tabBarExtraContent,g=e.locale,m=e.more,p=e.destroyInactiveTabPane,S=e.renderTabBar,w=e.onChange,x=e.onTabClick,E=e.onTabScroll,$=e.getPopupContainer,O=e.popupClassName,P=e.indicator,k=De(e,jT),A=u.useMemo(function(){return(a||[]).filter(function(Q){return Q&&Fe(Q)==="object"&&"key"in Q})},[a]),T=l==="rtl",M=AT(f),D=u.useState(!1),L=U(D,2),I=L[0],R=L[1];u.useEffect(function(){R(dp())},[]);var F=Gn(function(){var Q;return(Q=A[0])===null||Q===void 0?void 0:Q.key},{value:s,defaultValue:c}),N=U(F,2),_=N[0],z=N[1],V=u.useState(function(){return A.findIndex(function(Q){return Q.key===_})}),H=U(V,2),K=H[0],G=H[1];u.useEffect(function(){var Q=A.findIndex(function(pe){return pe.key===_});if(Q===-1){var re;Q=Math.max(0,Math.min(K,A.length-1)),z((re=A[Q])===null||re===void 0?void 0:re.key)}G(Q)},[A.map(function(Q){return Q.key}).join("_"),_,K]);var W=Gn(null,{value:n}),q=U(W,2),Y=q[0],ie=q[1];u.useEffect(function(){n||(ie("rc-tabs-".concat($0)),$0+=1)},[]);function ae(Q,re){x==null||x(Q,re);var pe=Q!==_;z(Q),pe&&(w==null||w(Q))}var le={id:Y,activeKey:_,animated:M,tabPosition:y,rtl:T,mobile:I},fe=B(B({},le),{},{editable:d,locale:g,more:m,tabBarGutter:h,onTabClick:ae,onTabScroll:E,extra:C,style:b,panes:null,getPopupContainer:$,popupClassName:O,indicator:P});return u.createElement(Nc.Provider,{value:{tabs:A,prefixCls:o}},u.createElement("div",me({ref:t,id:n,className:X(o,"".concat(o,"-").concat(y),j(j(j({},"".concat(o,"-mobile"),I),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),T),i)},k),u.createElement(LT,me({},fe,{renderTabBar:S})),u.createElement(kT,me({destroyInactiveTabPane:p},le,{animated:M}))))});const DT={motionAppear:!1,motionEnter:!0,motionLeave:!0};function BT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},DT),{motionName:_S(e,"switch")})),n}var VT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function WT(e,t){if(e)return e;const n=qr(t).map(r=>{if(u.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,s=VT(a,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return HT(n)}const UT=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Qh(e,"slide-up"),Qh(e,"slide-down")]]},KT=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ee(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ee(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ee(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadiusLG)} 0 0 ${ee(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},GT=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Rr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ee(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},EO),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ee(e.paddingXXS)} ${ee(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qT=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ee(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},XT=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ee(e.borderRadius)} ${ee(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ee(e.borderRadius)} ${ee(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ee(e.borderRadius)} ${ee(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ee(e.borderRadius)} 0 0 ${ee(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},QT=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Jm(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},YT=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ee(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ee(e.marginXS)},marginLeft:{_skip_check_:!0,value:ee(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ZT=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Rr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${ee(e.paddingXS)}`,background:"transparent",border:`${ee(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${ee(e.borderRadiusLG)} ${ee(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Jm(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),QT(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},JT=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},eN=gr("Tabs",e=>{const t=en(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ee(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ee(e.horizontalItemGutter)}`});return[XT(t),YT(t),qT(t),GT(t),KT(t),ZT(t),UT(t)]},JT),tN=()=>null;var nN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,l,s,c,d,f;const{type:v,className:y,rootClassName:h,size:b,onEdit:C,hideAdd:g,centered:m,addIcon:p,removeIcon:S,moreIcon:w,more:x,popupClassName:E,children:$,items:O,animated:P,style:k,indicatorSize:A,indicator:T}=e,M=nN(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:D}=M,{direction:L,tabs:I,getPrefixCls:R,getPopupContainer:F}=u.useContext(st),N=R("tabs",D),_=No(N),[z,V,H]=eN(N,_);let K;v==="editable-card"&&(K={onEdit:(le,fe)=>{let{key:Q,event:re}=fe;C==null||C(le==="add"?re:Q,le)},removeIcon:(t=S??(I==null?void 0:I.removeIcon))!==null&&t!==void 0?t:u.createElement(MR,null),addIcon:(p??(I==null?void 0:I.addIcon))||u.createElement(ST,null),showAdd:g!==!0});const G=R(),W=Lo(b),q=WT(O,$),Y=BT(N,P),ie=Object.assign(Object.assign({},I==null?void 0:I.style),k),ae={align:(n=T==null?void 0:T.align)!==null&&n!==void 0?n:(r=I==null?void 0:I.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(o=T==null?void 0:T.size)!==null&&o!==void 0?o:A)!==null&&i!==void 0?i:(a=I==null?void 0:I.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:I==null?void 0:I.indicatorSize};return z(u.createElement(zT,Object.assign({direction:L,getPopupContainer:F},M,{items:q,className:X({[`${N}-${W}`]:W,[`${N}-card`]:["card","editable-card"].includes(v),[`${N}-editable-card`]:v==="editable-card",[`${N}-centered`]:m},I==null?void 0:I.className,y,h,V,H,_),popupClassName:X(E,V,H,_),style:ie,editable:K,more:Object.assign({icon:(f=(d=(c=(s=I==null?void 0:I.more)===null||s===void 0?void 0:s.icon)!==null&&c!==void 0?c:I==null?void 0:I.moreIcon)!==null&&d!==void 0?d:w)!==null&&f!==void 0?f:u.createElement(uT,null),transitionName:`${G}-slide-up`},x),prefixCls:N,animated:Y,indicator:ae})))};kC.TabPane=tN;const AC=u.createContext({}),rN=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},oN=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},iN=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Bv=(e,t)=>iN(e,t),aN=(e,t,n)=>({[`@media (min-width: ${ee(t)})`]:Object.assign({},Bv(e,n))}),lN=()=>({}),sN=()=>({}),uN=gr("Grid",rN,lN),cN=gr("Grid",e=>{const t=en(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[oN(t),Bv(t,""),Bv(t,"-xs"),Object.keys(n).map(r=>aN(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},sN);var dN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=u.useContext(st),{gutter:o,wrap:i}=u.useContext(AC),{prefixCls:a,span:l,order:s,offset:c,push:d,pull:f,className:v,children:y,flex:h,style:b}=e,C=dN(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=n("col",a),[m,p,S]=cN(g),w={};let x={};fN.forEach(O=>{let P={};const k=e[O];typeof k=="number"?P.span=k:typeof k=="object"&&(P=k||{}),delete C[O],x=Object.assign(Object.assign({},x),{[`${g}-${O}-${P.span}`]:P.span!==void 0,[`${g}-${O}-order-${P.order}`]:P.order||P.order===0,[`${g}-${O}-offset-${P.offset}`]:P.offset||P.offset===0,[`${g}-${O}-push-${P.push}`]:P.push||P.push===0,[`${g}-${O}-pull-${P.pull}`]:P.pull||P.pull===0,[`${g}-rtl`]:r==="rtl"}),P.flex&&(x[`${g}-${O}-flex`]=!0,w[`--${g}-${O}-flex`]=O0(P.flex))});const E=X(g,{[`${g}-${l}`]:l!==void 0,[`${g}-order-${s}`]:s,[`${g}-offset-${c}`]:c,[`${g}-push-${d}`]:d,[`${g}-pull-${f}`]:f},v,x,p,S),$={};if(o&&o[0]>0){const O=o[0]/2;$.paddingLeft=O,$.paddingRight=O}return h&&($.flex=O0(h),i===!1&&!$.minWidth&&($.minWidth=0)),m(u.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign(Object.assign({},$),b),w),className:E,ref:t}),y))});var vN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i{o()},[JSON.stringify(e),t]),n}const mN=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,d=vN(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:v}=u.useContext(st),[y,h]=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[b,C]=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),g=R0(o,b),m=R0(r,b),p=u.useRef(s),S=J_();u.useEffect(()=>{const I=S.subscribe(R=>{C(R);const F=p.current||0;(!Array.isArray(F)&&typeof F=="object"||Array.isArray(F)&&(typeof F[0]=="object"||typeof F[1]=="object"))&&h(R)});return()=>S.unsubscribe(I)},[]);const w=()=>{const I=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((F,N)=>{if(typeof F=="object")for(let _=0;_0?P[0]/-2:void 0;T&&(A.marginLeft=T,A.marginRight=T);const[M,D]=P;A.rowGap=D;const L=u.useMemo(()=>({gutter:[M,D],wrap:c}),[M,D,c]);return E(u.createElement(AC.Provider,{value:L},u.createElement("div",Object.assign({},d,{className:k,style:Object.assign(Object.assign({},A),a),ref:t}),l)))});var pN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},gN=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:pN}))},hN=u.forwardRef(gN);function Vv(){return typeof BigInt=="function"}function zC(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ni(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function Ep(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Yo(e){var t=String(e);if(Ep(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&$p(t)?t.length-t.indexOf(".")-1:0}function Lc(e){var t=String(e);if(Ep(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Vv()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ni("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),bN=function(){function e(t){if(Ht(this,e),j(this,"origin",""),j(this,"number",void 0),j(this,"empty",void 0),zC(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Wt(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Lc(this.number):this.origin}}]),e}();function nr(e){return Vv()?new yN(e):new bN(e)}function lu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ni(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(i).concat(a);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=nr(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-d));return lu(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?c:"".concat(c).concat(s)}function SN(e){return!!(e.addonBefore||e.addonAfter)}function CN(e){return!!(e.prefix||e.suffix||e.allowClear)}function I0(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Hu(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=I0(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=I0(t,e,r),n(o);return}n(o)}}function DC(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Op=Z.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,l=e.prefix,s=e.suffix,c=e.addonBefore,d=e.addonAfter,f=e.className,v=e.style,y=e.disabled,h=e.readOnly,b=e.focused,C=e.triggerFocus,g=e.allowClear,m=e.value,p=e.handleReset,S=e.hidden,w=e.classes,x=e.classNames,E=e.dataAttrs,$=e.styles,O=e.components,P=i??o,k=(O==null?void 0:O.affixWrapper)||"span",A=(O==null?void 0:O.groupWrapper)||"span",T=(O==null?void 0:O.wrapper)||"span",M=(O==null?void 0:O.groupAddon)||"span",D=u.useRef(null),L=function(re){var pe;(pe=D.current)!==null&&pe!==void 0&&pe.contains(re.target)&&(C==null||C())},I=CN(e),R=u.cloneElement(P,{value:m,className:X(P.props.className,!I&&(x==null?void 0:x.variant))||null}),F=u.useRef(null);if(Z.useImperativeHandle(t,function(){return{nativeElement:F.current||D.current}}),I){var N,_=null;if(g){var z,V=!y&&!h&&m,H="".concat(a,"-clear-icon"),K=Fe(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";_=Z.createElement("span",{onClick:p,onMouseDown:function(re){return re.preventDefault()},className:X(H,(z={},j(z,"".concat(H,"-hidden"),!V),j(z,"".concat(H,"-has-suffix"),!!s),z)),role:"button",tabIndex:-1},K)}var G="".concat(a,"-affix-wrapper"),W=X(G,(N={},j(N,"".concat(a,"-disabled"),y),j(N,"".concat(G,"-disabled"),y),j(N,"".concat(G,"-focused"),b),j(N,"".concat(G,"-readonly"),h),j(N,"".concat(G,"-input-with-clear-btn"),s&&g&&m),N),w==null?void 0:w.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),q=(s||g)&&Z.createElement("span",{className:X("".concat(a,"-suffix"),x==null?void 0:x.suffix),style:$==null?void 0:$.suffix},_,s);R=Z.createElement(k,me({className:W,style:$==null?void 0:$.affixWrapper,onClick:L},E==null?void 0:E.affixWrapper,{ref:D}),l&&Z.createElement("span",{className:X("".concat(a,"-prefix"),x==null?void 0:x.prefix),style:$==null?void 0:$.prefix},l),R,q)}if(SN(e)){var Y="".concat(a,"-group"),ie="".concat(Y,"-addon"),ae="".concat(Y,"-wrapper"),le=X("".concat(a,"-wrapper"),Y,w==null?void 0:w.wrapper,x==null?void 0:x.wrapper),fe=X(ae,j({},"".concat(ae,"-disabled"),y),w==null?void 0:w.group,x==null?void 0:x.groupWrapper);R=Z.createElement(A,{className:fe,ref:F},Z.createElement(T,{className:le},c&&Z.createElement(M,{className:ie},c),R,d&&Z.createElement(M,{className:ie},d)))}return Z.cloneElement(R,{className:X((n=R.props)===null||n===void 0?void 0:n.className,f)||null,style:B(B({},(r=R.props)===null||r===void 0?void 0:r.style),v),hidden:S})}),wN=["show"];function BC(e,t){return u.useMemo(function(){var n={};t&&(n.show=Fe(t)==="object"&&t.formatter?t.formatter:!!t),n=B(B({},n),e);var r=n,o=r.show,i=De(r,wN);return B(B({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var xN=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],EN=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,v=e.className,y=e.maxLength,h=e.suffix,b=e.showCount,C=e.count,g=e.type,m=g===void 0?"text":g,p=e.classes,S=e.classNames,w=e.styles,x=e.onCompositionStart,E=e.onCompositionEnd,$=De(e,xN),O=u.useState(!1),P=U(O,2),k=P[0],A=P[1],T=u.useRef(!1),M=u.useRef(null),D=u.useRef(null),L=function(te){M.current&&DC(M.current,te)},I=Gn(e.defaultValue,{value:e.value}),R=U(I,2),F=R[0],N=R[1],_=F==null?"":String(F),z=u.useState(null),V=U(z,2),H=V[0],K=V[1],G=BC(C,b),W=G.max||y,q=G.strategy(_),Y=!!W&&q>W;u.useImperativeHandle(t,function(){var ne;return{focus:L,blur:function(){var xe;(xe=M.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,ge,ve){var Ie;(Ie=M.current)===null||Ie===void 0||Ie.setSelectionRange(xe,ge,ve)},select:function(){var xe;(xe=M.current)===null||xe===void 0||xe.select()},input:M.current,nativeElement:((ne=D.current)===null||ne===void 0?void 0:ne.nativeElement)||M.current}}),u.useEffect(function(){A(function(ne){return ne&&d?!1:ne})},[d]);var ie=function(te,xe,ge){var ve=xe;if(!T.current&&G.exceedFormatter&&G.max&&G.strategy(xe)>G.max){if(ve=G.exceedFormatter(xe,{max:G.max}),xe!==ve){var Ie,Se;K([((Ie=M.current)===null||Ie===void 0?void 0:Ie.selectionStart)||0,((Se=M.current)===null||Se===void 0?void 0:Se.selectionEnd)||0])}}else if(ge.source==="compositionEnd")return;N(ve),M.current&&Hu(M.current,te,r,ve)};u.useEffect(function(){if(H){var ne;(ne=M.current)===null||ne===void 0||ne.setSelectionRange.apply(ne,ue(H))}},[H]);var ae=function(te){ie(te,te.target.value,{source:"change"})},le=function(te){T.current=!1,ie(te,te.currentTarget.value,{source:"compositionEnd"}),E==null||E(te)},fe=function(te){a&&te.key==="Enter"&&a(te),l==null||l(te)},Q=function(te){A(!0),o==null||o(te)},re=function(te){A(!1),i==null||i(te)},pe=function(te){N(""),L(),M.current&&Hu(M.current,te,r)},Re=Y&&"".concat(c,"-out-of-range"),Me=function(){var te=Pr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return Z.createElement("input",me({autoComplete:n},te,{onChange:ae,onFocus:Q,onBlur:re,onKeyDown:fe,className:X(c,j({},"".concat(c,"-disabled"),d),S==null?void 0:S.input),style:w==null?void 0:w.input,ref:M,size:f,type:m,onCompositionStart:function(ge){T.current=!0,x==null||x(ge)},onCompositionEnd:le}))},be=function(){var te=Number(W)>0;if(h||G.show){var xe=G.showFormatter?G.showFormatter({value:_,count:q,maxLength:W}):"".concat(q).concat(te?" / ".concat(W):"");return Z.createElement(Z.Fragment,null,G.show&&Z.createElement("span",{className:X("".concat(c,"-show-count-suffix"),j({},"".concat(c,"-show-count-has-suffix"),!!h),S==null?void 0:S.count),style:B({},w==null?void 0:w.count)},xe),h)}return null};return Z.createElement(Op,me({},$,{prefixCls:c,className:X(v,Re),handleReset:pe,value:_,focused:k,triggerFocus:L,suffix:be(),disabled:d,classes:p,classNames:S,styles:w}),Me())});function $N(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var i=r[o];return typeof i=="function"?i.bind(r):i}}):e}function ON(e,t){var n=u.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,l=e.value,s=l.substring(0,i),c=l.substring(a);n.current={start:i,end:a,value:l,beforeTxt:s,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,l=a.beforeTxt,s=a.afterTxt,c=a.start,d=i.length;if(i.endsWith(s))d=i.length-n.current.afterTxt.length;else if(i.startsWith(l))d=l.length;else{var f=l[c-1],v=i.indexOf(f,c-1);v!==-1&&(d=v+1)}e.setSelectionRange(d,d)}catch(y){ln(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(y.message))}}return[r,o]}var RN=function(){var t=u.useState(!1),n=U(t,2),r=n[0],o=n[1];return mt(function(){o(dp())},[]),r},IN=200,PN=600;function _N(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=u.useRef(),s=u.useRef([]),c=u.useRef();c.current=a;var d=function(){clearTimeout(l.current)},f=function(p,S){p.preventDefault(),d(),c.current(S);function w(){c.current(S),l.current=setTimeout(w,IN)}l.current=setTimeout(w,PN)};u.useEffect(function(){return function(){d(),s.current.forEach(function(m){return gt.cancel(m)})}},[]);var v=RN();if(v)return null;var y="".concat(t,"-handler"),h=X(y,"".concat(y,"-up"),j({},"".concat(y,"-up-disabled"),o)),b=X(y,"".concat(y,"-down"),j({},"".concat(y,"-down-disabled"),i)),C=function(){return s.current.push(gt(d))},g={unselectable:"on",role:"button",onMouseUp:C,onMouseLeave:C};return u.createElement("div",{className:"".concat(y,"-wrap")},u.createElement("span",me({},g,{onMouseDown:function(p){f(p,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||u.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),u.createElement("span",me({},g,{onMouseDown:function(p){f(p,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:b}),r||u.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function P0(e){var t=typeof e=="number"?Lc(e):ni(e).fullStr,n=t.includes(".");return n?ni(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const MN=function(){var e=u.useRef(0),t=function(){gt.cancel(e.current)};return u.useEffect(function(){return t},[]),function(n){t(),e.current=gt(function(){n()})}};var TN=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],NN=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],_0=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},M0=function(t){var n=nr(t);return n.isInvalidate()?null:n},LN=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.min,a=e.max,l=e.step,s=l===void 0?1:l,c=e.defaultValue,d=e.value,f=e.disabled,v=e.readOnly,y=e.upHandler,h=e.downHandler,b=e.keyboard,C=e.changeOnWheel,g=C===void 0?!1:C,m=e.controls,p=m===void 0?!0:m;e.classNames;var S=e.stringMode,w=e.parser,x=e.formatter,E=e.precision,$=e.decimalSeparator,O=e.onChange,P=e.onInput,k=e.onPressEnter,A=e.onStep,T=e.changeOnBlur,M=T===void 0?!0:T,D=e.domRef,L=De(e,TN),I="".concat(n,"-input"),R=u.useRef(null),F=u.useState(!1),N=U(F,2),_=N[0],z=N[1],V=u.useRef(!1),H=u.useRef(!1),K=u.useRef(!1),G=u.useState(function(){return nr(d??c)}),W=U(G,2),q=W[0],Y=W[1];function ie($e){d===void 0&&Y($e)}var ae=u.useCallback(function($e,de){if(!de)return E>=0?E:Math.max(Yo($e),Yo(s))},[E,s]),le=u.useCallback(function($e){var de=String($e);if(w)return w(de);var Ce=de;return $&&(Ce=Ce.replace($,".")),Ce.replace(/[^\w.-]+/g,"")},[w,$]),fe=u.useRef(""),Q=u.useCallback(function($e,de){if(x)return x($e,{userTyping:de,input:String(fe.current)});var Ce=typeof $e=="number"?Lc($e):$e;if(!de){var oe=ae(Ce,de);if($p(Ce)&&($||oe>=0)){var Te=$||".";Ce=lu(Ce,Te,oe)}}return Ce},[x,ae,$]),re=u.useState(function(){var $e=c??d;return q.isInvalidate()&&["string","number"].includes(Fe($e))?Number.isNaN($e)?"":$e:Q(q.toString(),!1)}),pe=U(re,2),Re=pe[0],Me=pe[1];fe.current=Re;function be($e,de){Me(Q($e.isInvalidate()?$e.toString(!1):$e.toString(!de),de))}var ne=u.useMemo(function(){return M0(a)},[a,E]),te=u.useMemo(function(){return M0(i)},[i,E]),xe=u.useMemo(function(){return!ne||!q||q.isInvalidate()?!1:ne.lessEquals(q)},[ne,q]),ge=u.useMemo(function(){return!te||!q||q.isInvalidate()?!1:q.lessEquals(te)},[te,q]),ve=ON(R.current,_),Ie=U(ve,2),Se=Ie[0],Et=Ie[1],Je=function(de){return ne&&!de.lessEquals(ne)?ne:te&&!te.lessEquals(de)?te:null},Oe=function(de){return!Je(de)},he=function(de,Ce){var oe=de,Te=Oe(oe)||oe.isEmpty();if(!oe.isEmpty()&&!Ce&&(oe=Je(oe)||oe,Te=!0),!v&&!f&&Te){var _e=oe.toString(),Ee=ae(_e,Ce);return Ee>=0&&(oe=nr(lu(_e,".",Ee)),Oe(oe)||(oe=nr(lu(_e,".",Ee,!0)))),oe.equals(q)||(ie(oe),O==null||O(oe.isEmpty()?null:_0(S,oe)),d===void 0&&be(oe,Ce)),oe}return q},ke=MN(),Ae=function $e(de){if(Se(),fe.current=de,Me(de),!H.current){var Ce=le(de),oe=nr(Ce);oe.isNaN()||he(oe,!0)}P==null||P(de),ke(function(){var Te=de;w||(Te=de.replace(/。/g,".")),Te!==de&&$e(Te)})},bt=function(){H.current=!0},ht=function(){H.current=!1,Ae(R.current.value)},qe=function(de){Ae(de.target.value)},Ge=function(de){var Ce;if(!(de&&xe||!de&&ge)){V.current=!1;var oe=nr(K.current?P0(s):s);de||(oe=oe.negate());var Te=(q||nr(0)).add(oe.toString()),_e=he(Te,!1);A==null||A(_0(S,_e),{offset:K.current?P0(s):s,type:de?"up":"down"}),(Ce=R.current)===null||Ce===void 0||Ce.focus()}},tt=function(de){var Ce=nr(le(Re)),oe;Ce.isNaN()?oe=he(q,de):oe=he(Ce,de),d!==void 0?be(q,!1):oe.isNaN()||be(oe,!1)},se=function(){V.current=!0},Pe=function(de){var Ce=de.key,oe=de.shiftKey;V.current=!0,K.current=oe,Ce==="Enter"&&(H.current||(V.current=!1),tt(!1),k==null||k(de)),b!==!1&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ce)&&(Ge(Ce==="Up"||Ce==="ArrowUp"),de.preventDefault())},Ve=function(){V.current=!1,K.current=!1};u.useEffect(function(){if(g&&_){var $e=function(oe){Ge(oe.deltaY<0),oe.preventDefault()},de=R.current;if(de)return de.addEventListener("wheel",$e,{passive:!1}),function(){return de.removeEventListener("wheel",$e)}}});var ut=function(){M&&tt(!1),z(!1),V.current=!1};return ta(function(){q.isInvalidate()||be(q,!1)},[E,x]),ta(function(){var $e=nr(d);Y($e);var de=nr(le(Re));(!$e.equals(de)||!V.current||x)&&be($e,V.current)},[d]),ta(function(){x&&Et()},[Re]),u.createElement("div",{ref:D,className:X(n,r,j(j(j(j(j({},"".concat(n,"-focused"),_),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),v),"".concat(n,"-not-a-number"),q.isNaN()),"".concat(n,"-out-of-range"),!q.isInvalidate()&&!Oe(q))),style:o,onFocus:function(){z(!0)},onBlur:ut,onKeyDown:Pe,onKeyUp:Ve,onCompositionStart:bt,onCompositionEnd:ht,onBeforeInput:se},p&&u.createElement(_N,{prefixCls:n,upNode:y,downNode:h,upDisabled:xe,downDisabled:ge,onStep:Ge}),u.createElement("div",{className:"".concat(I,"-wrap")},u.createElement("input",me({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:s},L,{ref:En(R,t),className:I,value:Re,onChange:qe,disabled:f,readOnly:v}))))}),FN=u.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,l=e.prefix,s=e.suffix,c=e.addonBefore,d=e.addonAfter,f=e.className,v=e.classNames,y=De(e,NN),h=u.useRef(null),b=u.useRef(null),C=u.useRef(null),g=function(p){C.current&&DC(C.current,p)};return u.useImperativeHandle(t,function(){return $N(C.current,{nativeElement:h.current.nativeElement||b.current})}),u.createElement(Op,{className:f,triggerFocus:g,prefixCls:i,value:a,disabled:n,style:r,prefix:l,suffix:s,addonAfter:d,addonBefore:c,classNames:v,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},u.createElement(LN,me({prefixCls:i,disabled:n,ref:C,domRef:b,className:v==null?void 0:v.input},y)))});const kN=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},Cp(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new bn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},T0=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},AN=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:v,paddingInlineLG:y,colorTextDescription:h,motionDurationMid:b,handleHoverColor:C,paddingInline:g,paddingBlock:m,handleBg:p,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:x,borderRadiusLG:E,controlWidth:$,handleOpacity:O,handleBorderColor:P,filledHandleBg:k,lineHeightLG:A,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rr(e)),Tc(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:o}),CC(e,{[`${t}-handler-wrap`]:{background:p,[`${t}-handler-down`]:{borderBlockStart:`${ee(n)} ${r} ${P}`}}})),$C(e,{[`${t}-handler-wrap`]:{background:k,[`${t}-handler-down`]:{borderBlockStart:`${ee(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:p}}})),xC(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:A,borderRadius:E,[`input${t}-input`]:{height:T(l).sub(T(n).mul(2)).equal(),padding:`${ee(v)} ${ee(y)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:x,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${ee(f)} ${ee(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Rr(e)),_C(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},wC(e)),OC(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Rr(e)),{width:"100%",padding:`${ee(m)} ${ee(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),RC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:O,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${b} linear ${b}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ee(n)} ${r} ${P}`,transition:`all ${b} linear`,"&:active":{background:S},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:C}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},oS()),{color:h,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},T0(e,"lg")),T0(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:w}})}]},jN=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ee(n)} 0`}},Tc(e)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:s,[`input${t}-input`]:{padding:`${ee(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ee(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},zN=gr("InputNumber",e=>{const t=en(e,Sp(e));return[AN(t),jN(t),ip(t)]},kN,{unitless:{handleOpacity:!0}});var DN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=u.useContext(st),o=u.useRef(null);u.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:d,addonAfter:f,prefix:v,bordered:y,readOnly:h,status:b,controls:C,variant:g}=e,m=DN(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),p=n("input-number",c),S=No(p),[w,x,E]=zN(p,S),{compactSize:$,compactItemClassnames:O}=Rc(p,r);let P=u.createElement(hN,{className:`${p}-handler-up-inner`}),k=u.createElement(G_,{className:`${p}-handler-down-inner`});const A=typeof C=="boolean"?C:void 0;typeof C=="object"&&(P=typeof C.upIcon>"u"?P:u.createElement("span",{className:`${p}-handler-up-inner`},C.upIcon),k=typeof C.downIcon>"u"?k:u.createElement("span",{className:`${p}-handler-down-inner`},C.downIcon));const{hasFeedback:T,status:M,isFormItemInput:D,feedbackIcon:L}=u.useContext(Ln),I=Pc(M,b),R=Lo(W=>{var q;return(q=l??$)!==null&&q!==void 0?q:W}),F=u.useContext($o),N=s??F,[_,z]=vp("inputNumber",g,y),V=T&&u.createElement(u.Fragment,null,L),H=X({[`${p}-lg`]:R==="large",[`${p}-sm`]:R==="small",[`${p}-rtl`]:r==="rtl",[`${p}-in-form-item`]:D},x),K=`${p}-group`,G=u.createElement(FN,Object.assign({ref:o,disabled:N,className:X(E,S,i,a,O),upHandler:P,downHandler:k,prefixCls:p,readOnly:h,controls:A,prefix:v,suffix:V,addonBefore:d&&u.createElement(Al,{form:!0,space:!0},d),addonAfter:f&&u.createElement(Al,{form:!0,space:!0},f),classNames:{input:H,variant:X({[`${p}-${_}`]:z},zl(p,I,T)),affixWrapper:X({[`${p}-affix-wrapper-sm`]:R==="small",[`${p}-affix-wrapper-lg`]:R==="large",[`${p}-affix-wrapper-rtl`]:r==="rtl"},x),wrapper:X({[`${K}-rtl`]:r==="rtl"},x),groupWrapper:X({[`${p}-group-wrapper-sm`]:R==="small",[`${p}-group-wrapper-lg`]:R==="large",[`${p}-group-wrapper-rtl`]:r==="rtl",[`${p}-group-wrapper-${_}`]:z},zl(`${p}-group-wrapper`,I,T),x)}},m));return w(G)}),HC=VC,BN=e=>u.createElement(ba,{theme:{components:{InputNumber:{handleVisible:!0}}}},u.createElement(VC,Object.assign({},e)));HC._InternalPanelDoNotUseOrYouWillBeFired=BN;const VN=e=>{const{getPrefixCls:t,direction:n}=u.useContext(st),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=xp(a),c=X(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),d=u.useContext(Ln),f=u.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(u.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(Ln.Provider,{value:f},e.children)))},WC=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Z.createElement(OS,null)}),t};function UC(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function HN(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var WN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:d,allowClear:f,addonAfter:v,addonBefore:y,className:h,style:b,styles:C,rootClassName:g,onChange:m,classNames:p,variant:S}=e,w=WN(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,input:$}=Z.useContext(st),O=x("input",r),P=u.useRef(null),k=No(O),[A,T,M]=xp(O,k),{compactSize:D,compactItemClassnames:L}=Rc(O,E),I=Lo(fe=>{var Q;return(Q=a??D)!==null&&Q!==void 0?Q:fe}),R=Z.useContext($o),F=l??R,{status:N,hasFeedback:_,feedbackIcon:z}=u.useContext(Ln),V=Pc(N,i),H=HN(e)||!!_;u.useRef(H);const K=UC(P,!0),G=fe=>{K(),s==null||s(fe)},W=fe=>{K(),c==null||c(fe)},q=fe=>{K(),m==null||m(fe)},Y=(_||d)&&Z.createElement(Z.Fragment,null,d,_&&z),ie=WC(f??($==null?void 0:$.allowClear)),[ae,le]=vp("input",S,o);return A(Z.createElement(EN,Object.assign({ref:En(t,P),prefixCls:O,autoComplete:$==null?void 0:$.autoComplete},w,{disabled:F,onBlur:G,onFocus:W,style:Object.assign(Object.assign({},$==null?void 0:$.style),b),styles:Object.assign(Object.assign({},$==null?void 0:$.styles),C),suffix:Y,allowClear:ie,className:X(h,g,M,k,L,$==null?void 0:$.className),onChange:q,addonBefore:y&&Z.createElement(Al,{form:!0,space:!0},y),addonAfter:v&&Z.createElement(Al,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},p),$==null?void 0:$.classNames),{input:X({[`${O}-sm`]:I==="small",[`${O}-lg`]:I==="large",[`${O}-rtl`]:E==="rtl"},p==null?void 0:p.input,(n=$==null?void 0:$.classNames)===null||n===void 0?void 0:n.input,T),variant:X({[`${O}-${ae}`]:le},zl(O,V)),affixWrapper:X({[`${O}-affix-wrapper-sm`]:I==="small",[`${O}-affix-wrapper-lg`]:I==="large",[`${O}-affix-wrapper-rtl`]:E==="rtl"},T),wrapper:X({[`${O}-group-rtl`]:E==="rtl"},T),groupWrapper:X({[`${O}-group-wrapper-sm`]:I==="small",[`${O}-group-wrapper-lg`]:I==="large",[`${O}-group-wrapper-rtl`]:E==="rtl",[`${O}-group-wrapper-${ae}`]:le},zl(`${O}-group-wrapper`,V,_),T)})})))}),KN=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},GN=gr(["Input","OTP"],e=>{const t=en(e,Sp(e));return[KN(t)]},Cp);var qN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=qN(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof a=="string"?a:n,c=h=>{r(i,h.target.value)},d=u.useRef(null);u.useImperativeHandle(t,()=>d.current);const f=()=>{gt(()=>{var h;const b=(h=d.current)===null||h===void 0?void 0:h.input;document.activeElement===b&&b&&b.select()})},v=h=>{let{key:b}=h;b==="ArrowLeft"?o(i-1):b==="ArrowRight"&&o(i+1),f()},y=h=>{h.key==="Backspace"&&!n&&o(i-1),f()};return u.createElement(Fc,Object.assign({},l,{ref:d,value:s,onInput:c,onFocus:f,onKeyDown:v,onKeyUp:y,onMouseDown:f,onMouseUp:f,type:a===!0?"password":"text"}))});var QN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,variant:c,disabled:d,status:f,autoFocus:v,mask:y}=e,h=QN(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:b,direction:C}=u.useContext(st),g=b("otp",n),m=DR(h,{aria:!0,data:!0,attr:!0}),p=No(g),[S,w,x]=GN(g,p),E=Lo(_=>o??_),$=u.useContext(Ln),O=Pc($.status,f),P=u.useMemo(()=>Object.assign(Object.assign({},$),{status:O,hasFeedback:!1,feedbackIcon:null}),[$,O]),k=u.useRef(null),A=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var _;(_=A.current[0])===null||_===void 0||_.focus()},blur:()=>{var _;for(let z=0;zs?s(_):_,[M,D]=u.useState(Ls(T(i||"")));u.useEffect(()=>{a!==void 0&&D(Ls(a))},[a]);const L=Kt(_=>{D(_),l&&_.length===r&&_.every(z=>z)&&_.some((z,V)=>M[V]!==z)&&l(_.join(""))}),I=Kt((_,z)=>{let V=ue(M);for(let K=0;K<_;K+=1)V[K]||(V[K]="");z.length<=1?V[_]=z:V=V.slice(0,_).concat(Ls(z)),V=V.slice(0,r);for(let K=V.length-1;K>=0&&!V[K];K-=1)V.pop();const H=T(V.map(K=>K||" ").join(""));return V=Ls(H).map((K,G)=>K===" "&&!V[G]?V[G]:K),V}),R=(_,z)=>{var V;const H=I(_,z),K=Math.min(_+z.length,r-1);K!==_&&((V=A.current[K])===null||V===void 0||V.focus()),L(H)},F=_=>{var z;(z=A.current[_])===null||z===void 0||z.focus()},N={variant:c,disabled:d,status:O,mask:y};return S(u.createElement("div",Object.assign({},m,{ref:k,className:X(g,{[`${g}-sm`]:E==="small",[`${g}-lg`]:E==="large",[`${g}-rtl`]:C==="rtl"},x,w)}),u.createElement(Ln.Provider,{value:P},Array.from({length:r}).map((_,z)=>{const V=`otp-${z}`,H=M[z]||"";return u.createElement(XN,Object.assign({ref:K=>{A.current[z]=K},key:V,index:z,size:E,htmlSize:1,className:`${g}-input`,onChange:R,value:H,onActiveChange:F,autoFocus:z===0&&v},N))}))))});var ZN={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"},JN=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:ZN}))},e4=u.forwardRef(JN),t4={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"},n4=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:t4}))},r4=u.forwardRef(n4),o4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?u.createElement(r4,null):u.createElement(e4,null),a4={click:"onClick",hover:"onMouseOver"},l4=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=i4}=e,a=typeof o=="object"&&o.visible!==void 0,[l,s]=u.useState(()=>a?o.visible:!1),c=u.useRef(null);u.useEffect(()=>{a&&s(o.visible)},[a,o]);const d=UC(c),f=()=>{n||(l&&d(),s($=>{var O;const P=!$;return typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,P)),P}))},v=$=>{const O=a4[r]||"",P=i(l),k={[O]:f,className:`${$}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault()},onMouseUp:A=>{A.preventDefault()}};return u.cloneElement(u.isValidElement(P)?P:u.createElement("span",null,P),k)},{className:y,prefixCls:h,inputPrefixCls:b,size:C}=e,g=o4(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=u.useContext(st),p=m("input",b),S=m("input-password",h),w=o&&v(S),x=X(S,y,{[`${S}-${C}`]:!!C}),E=Object.assign(Object.assign({},Pr(g,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:x,prefixCls:p,suffix:w});return C&&(E.size=C),u.createElement(Fc,Object.assign({ref:En(t,c)},E))});var s4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:d,onSearch:f,onChange:v,onCompositionStart:y,onCompositionEnd:h}=e,b=s4(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:g}=u.useContext(st),m=u.useRef(!1),p=C("input-search",n),S=C("input",r),{compactSize:w}=Rc(p,g),x=Lo(N=>{var _;return(_=i??w)!==null&&_!==void 0?_:N}),E=u.useRef(null),$=N=>{N!=null&&N.target&&N.type==="click"&&f&&f(N.target.value,N,{source:"clear"}),v==null||v(N)},O=N=>{var _;document.activeElement===((_=E.current)===null||_===void 0?void 0:_.input)&&N.preventDefault()},P=N=>{var _,z;f&&f((z=(_=E.current)===null||_===void 0?void 0:_.input)===null||z===void 0?void 0:z.value,N,{source:"input"})},k=N=>{m.current||c||P(N)},A=typeof l=="boolean"?u.createElement(Q_,null):null,T=`${p}-button`;let M;const D=l||{},L=D.type&&D.type.__ANT_BUTTON===!0;L||D.type==="button"?M=ci(D,Object.assign({onMouseDown:O,onClick:N=>{var _,z;(z=(_=D==null?void 0:D.props)===null||_===void 0?void 0:_.onClick)===null||z===void 0||z.call(_,N),P(N)},key:"enterButton"},L?{className:T,size:x}:{})):M=u.createElement(Ic,{className:T,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:O,onClick:P,loading:c,icon:A},l),s&&(M=[M,ci(s,{key:"addonAfter"})]);const I=X(p,{[`${p}-rtl`]:g==="rtl",[`${p}-${x}`]:!!x,[`${p}-with-button`]:!!l},o),R=N=>{m.current=!0,y==null||y(N)},F=N=>{m.current=!1,h==null||h(N)};return u.createElement(Fc,Object.assign({ref:En(E,t),onPressEnter:k},b,{size:x,onCompositionStart:R,onCompositionEnd:F,prefixCls:S,addonAfter:M,suffix:a,onChange:$,className:I,disabled:d}))});var c4=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,d4=["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"],kd={},Vn;function f4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&kd[n])return kd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=d4.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(kd[n]=s),s}function v4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Vn||(Vn=document.createElement("textarea"),Vn.setAttribute("tab-index","-1"),Vn.setAttribute("aria-hidden","true"),document.body.appendChild(Vn)),e.getAttribute("wrap")?Vn.setAttribute("wrap",e.getAttribute("wrap")):Vn.removeAttribute("wrap");var o=f4(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Vn.setAttribute("style","".concat(s,";").concat(c4)),Vn.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,v=Vn.scrollHeight;if(l==="border-box"?v+=a:l==="content-box"&&(v-=i),n!==null||r!==null){Vn.value=" ";var y=Vn.scrollHeight-i;n!==null&&(c=y*n,l==="border-box"&&(c=c+i+a),v=Math.max(c,v)),r!==null&&(d=y*r,l==="border-box"&&(d=d+i+a),f=v>d?"":"hidden",v=Math.min(d,v))}var h={height:v,overflowY:f,resize:"none"};return c&&(h.minHeight=c),d&&(h.maxHeight=d),h}var m4=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ad=0,jd=1,zd=2,p4=u.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var v=De(n,m4),y=Gn(o,{value:i,postState:function(H){return H??""}}),h=U(y,2),b=h[0],C=h[1],g=function(H){C(H.target.value),f==null||f(H)},m=u.useRef();u.useImperativeHandle(t,function(){return{textArea:m.current}});var p=u.useMemo(function(){return a&&Fe(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=U(p,2),w=S[0],x=S[1],E=!!a,$=function(){try{if(document.activeElement===m.current){var H=m.current,K=H.selectionStart,G=H.selectionEnd,W=H.scrollTop;m.current.setSelectionRange(K,G),m.current.scrollTop=W}}catch{}},O=u.useState(zd),P=U(O,2),k=P[0],A=P[1],T=u.useState(),M=U(T,2),D=M[0],L=M[1],I=function(){A(Ad)};mt(function(){E&&I()},[i,w,x,E]),mt(function(){if(k===Ad)A(jd);else if(k===jd){var V=v4(m.current,!1,w,x);A(zd),L(V)}else $()},[k]);var R=u.useRef(),F=function(){gt.cancel(R.current)},N=function(H){k===zd&&(l==null||l(H),a&&(F(),R.current=gt(function(){I()})))};u.useEffect(function(){return F},[]);var _=E?D:null,z=B(B({},c),_);return(k===Ad||k===jd)&&(z.overflowY="hidden",z.overflowX="hidden"),u.createElement(Or,{onResize:N,disabled:!(a||l)},u.createElement("textarea",me({},v,{ref:m,style:z,className:X(r,s,j({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:g})))}),g4=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],h4=Z.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,v=e.suffix,y=e.prefixCls,h=y===void 0?"rc-textarea":y,b=e.showCount,C=e.count,g=e.className,m=e.style,p=e.disabled,S=e.hidden,w=e.classNames,x=e.styles,E=e.onResize,$=e.readOnly,O=De(e,g4),P=Gn(r,{value:o,defaultValue:r}),k=U(P,2),A=k[0],T=k[1],M=A==null?"":String(A),D=Z.useState(!1),L=U(D,2),I=L[0],R=L[1],F=Z.useRef(!1),N=Z.useState(null),_=U(N,2),z=_[0],V=_[1],H=u.useRef(null),K=u.useRef(null),G=function(){var he;return(he=K.current)===null||he===void 0?void 0:he.textArea},W=function(){G().focus()};u.useImperativeHandle(t,function(){var Oe;return{resizableTextArea:K.current,focus:W,blur:function(){G().blur()},nativeElement:((Oe=H.current)===null||Oe===void 0?void 0:Oe.nativeElement)||G()}}),u.useEffect(function(){R(function(Oe){return!p&&Oe})},[p]);var q=Z.useState(null),Y=U(q,2),ie=Y[0],ae=Y[1];Z.useEffect(function(){if(ie){var Oe;(Oe=G()).setSelectionRange.apply(Oe,ue(ie))}},[ie]);var le=BC(C,b),fe=(n=le.max)!==null&&n!==void 0?n:c,Q=Number(fe)>0,re=le.strategy(M),pe=!!fe&&re>fe,Re=function(he,ke){var Ae=ke;!F.current&&le.exceedFormatter&&le.max&&le.strategy(ke)>le.max&&(Ae=le.exceedFormatter(ke,{max:le.max}),ke!==Ae&&ae([G().selectionStart||0,G().selectionEnd||0])),T(Ae),Hu(he.currentTarget,he,l,Ae)},Me=function(he){F.current=!0,d==null||d(he)},be=function(he){F.current=!1,Re(he,he.currentTarget.value),f==null||f(he)},ne=function(he){Re(he,he.target.value)},te=function(he){var ke=O.onPressEnter,Ae=O.onKeyDown;he.key==="Enter"&&ke&&ke(he),Ae==null||Ae(he)},xe=function(he){R(!0),i==null||i(he)},ge=function(he){R(!1),a==null||a(he)},ve=function(he){T(""),W(),Hu(G(),he,l)},Ie=v,Se;le.show&&(le.showFormatter?Se=le.showFormatter({value:M,count:re,maxLength:fe}):Se="".concat(re).concat(Q?" / ".concat(fe):""),Ie=Z.createElement(Z.Fragment,null,Ie,Z.createElement("span",{className:X("".concat(h,"-data-count"),w==null?void 0:w.count),style:x==null?void 0:x.count},Se)));var Et=function(he){var ke;E==null||E(he),(ke=G())!==null&&ke!==void 0&&ke.style.height&&V(!0)},Je=!O.autoSize&&!b&&!s;return Z.createElement(Op,{ref:H,value:M,allowClear:s,handleReset:ve,suffix:Ie,prefixCls:h,classNames:B(B({},w),{},{affixWrapper:X(w==null?void 0:w.affixWrapper,j(j({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),s))}),disabled:p,focused:I,className:X(g,pe&&"".concat(h,"-out-of-range")),style:B(B({},m),z&&!Je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:S,readOnly:$},Z.createElement(p4,me({},O,{maxLength:c,onKeyDown:te,onChange:ne,onFocus:xe,onBlur:ge,onCompositionStart:Me,onCompositionEnd:be,className:X(w==null?void 0:w.textarea),style:B(B({},x==null?void 0:x.textarea),{},{resize:m==null?void 0:m.resize}),disabled:p,prefixCls:h,onResize:Et,ref:K,readOnly:$})))}),y4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:c,classNames:d,rootClassName:f,className:v,style:y,styles:h,variant:b}=e,C=y4(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:g,direction:m,textArea:p}=u.useContext(st),S=Lo(a),w=u.useContext($o),x=l??w,{status:E,hasFeedback:$,feedbackIcon:O}=u.useContext(Ln),P=Pc(E,s),k=u.useRef(null);u.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=k.current)===null||N===void 0?void 0:N.resizableTextArea,focus:_=>{var z,V;UN((V=(z=k.current)===null||z===void 0?void 0:z.resizableTextArea)===null||V===void 0?void 0:V.textArea,_)},blur:()=>{var _;return(_=k.current)===null||_===void 0?void 0:_.blur()}}});const A=g("input",o),T=No(A),[M,D,L]=xp(A,T),[I,R]=vp("textArea",b,i),F=WC(c??(p==null?void 0:p.allowClear));return M(u.createElement(h4,Object.assign({autoComplete:p==null?void 0:p.autoComplete},C,{style:Object.assign(Object.assign({},p==null?void 0:p.style),y),styles:Object.assign(Object.assign({},p==null?void 0:p.styles),h),disabled:x,allowClear:F,className:X(L,T,v,f,p==null?void 0:p.className),classNames:Object.assign(Object.assign(Object.assign({},d),p==null?void 0:p.classNames),{textarea:X({[`${A}-sm`]:S==="small",[`${A}-lg`]:S==="large"},D,d==null?void 0:d.textarea,(n=p==null?void 0:p.classNames)===null||n===void 0?void 0:n.textarea),variant:X({[`${A}-${I}`]:R},zl(A,P)),affixWrapper:X(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:m==="rtl",[`${A}-affix-wrapper-sm`]:S==="small",[`${A}-affix-wrapper-lg`]:S==="large",[`${A}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},D)}),prefixCls:A,suffix:$&&u.createElement("span",{className:`${A}-textarea-suffix`},O),ref:k})))}),wa=Fc;wa.Group=VN;wa.Search=u4;wa.TextArea=KC;wa.Password=l4;wa.OTP=YN;function N0(e){return["small","middle","large"].includes(e)}const GC=["wrap","nowrap","wrap-reverse"],qC=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],XC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],b4=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&GC.includes(n)}},S4=(e,t)=>{const n={};return XC.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},C4=(e,t)=>{const n={};return qC.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function w4(e,t){return X(Object.assign(Object.assign(Object.assign({},b4(e,t)),S4(e,t)),C4(e,t)))}const x4=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},E4=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},$4=e=>{const{componentCls:t}=e,n={};return GC.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},O4=e=>{const{componentCls:t}=e,n={};return XC.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},R4=e=>{const{componentCls:t}=e,n={};return qC.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},I4=()=>({}),P4=gr("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=en(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[x4(o),E4(o),$4(o),O4(o),R4(o)]},I4,{resetStyle:!1});var _4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:r,className:o,style:i,flex:a,gap:l,children:s,vertical:c=!1,component:d="div"}=e,f=_4(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:y,getPrefixCls:h}=Z.useContext(st),b=h("flex",n),[C,g,m]=P4(b),p=c??(v==null?void 0:v.vertical),S=X(o,r,v==null?void 0:v.className,b,g,m,w4(b,e),{[`${b}-rtl`]:y==="rtl",[`${b}-gap-${l}`]:N0(l),[`${b}-vertical`]:p}),w=Object.assign(Object.assign({},v==null?void 0:v.style),i);return a&&(w.flex=a),l&&!N0(l)&&(w.gap=l),C(Z.createElement(d,Object.assign({ref:t,className:S,style:w},Pr(f,["justify","wrap","align"])),s))});function Wu(e){const[t,n]=u.useState(e);return u.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const T4=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},N4=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ee(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ee(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),L0=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},L4=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Rr(e)),N4(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},L0(e,e.controlHeightSM)),"&-large":Object.assign({},L0(e,e.controlHeightLG))})}},F4=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:v}=e;return{[t]:Object.assign(Object.assign({},Rr(e)),{marginBottom:v,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",lineHeight:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:cp,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},F0=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},k4=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},sr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),QC=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:sr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},A4=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + ${r}-col-24${n}-label, + ${r}-col-xl-24${n}-label`]:sr(e)}},[`@media (max-width: ${ee(e.screenXSMax)})`]:[QC(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:sr(e)}}}],[`@media (max-width: ${ee(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:sr(e)}}},[`@media (max-width: ${ee(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:sr(e)}}},[`@media (max-width: ${ee(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:sr(e)}}}}},j4=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${n}-col-24${t}-label, + ${n}-col-xl-24${t}-label`]:sr(e),[`@media (max-width: ${ee(e.screenXSMax)})`]:[QC(e),{[t]:{[`${n}-col-xs-24${t}-label`]:sr(e)}}],[`@media (max-width: ${ee(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:sr(e)}},[`@media (max-width: ${ee(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:sr(e)}},[`@media (max-width: ${ee(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:sr(e)}}}},z4=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}),YC=(e,t)=>en(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Rp=gr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=YC(e,n);return[L4(r),F4(r),T4(r),F0(r,r.componentCls),F0(r,r.formItemCls),k4(r),A4(r),j4(r),XP(r),cp]},z4,{order:-1e3}),k0=[];function Dd(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const ZC=e=>{let{help:t,helpStatus:n,errors:r=k0,warnings:o=k0,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=u.useContext(up),c=`${s}-item-explain`,d=No(s),[f,v,y]=Rp(s,d),h=u.useMemo(()=>Ih(s),[s]),b=Wu(r),C=Wu(o),g=u.useMemo(()=>t!=null?[Dd(t,"help",n)]:[].concat(ue(b.map((p,S)=>Dd(p,"error","error",S))),ue(C.map((p,S)=>Dd(p,"warning","warning",S)))),[t,n,b,C]),m={};return a&&(m.id=`${a}_help`),f(u.createElement(To,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!g.length,onVisibleChanged:l},p=>{const{className:S,style:w}=p;return u.createElement("div",Object.assign({},m,{className:X(c,S,y,d,i,v),style:w,role:"alert"}),u.createElement(iR,Object.assign({keys:g},Ih(s),{motionName:`${s}-show-help-item`,component:!1}),x=>{const{key:E,error:$,errorStatus:O,className:P,style:k}=x;return u.createElement("div",{key:E,className:X(P,{[`${c}-${O}`]:O}),style:k},$)}))}))},D4=["parentNode"],B4="form_item";function ll(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function JC(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:D4.includes(n)?`${B4}_${n}`:n}function ew(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function A0(e){return ll(e).join("_")}function V4(e,t){const n=t.getFieldInstance(e),r=s1(n);if(r)return r;const o=JC(ll(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function tw(e){const[t]=sp(),n=u.useRef({}),r=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=A0(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=V4(o,r);a&&WR(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=A0(o);return n.current[i]}}),[e,t]);return[r]}var H4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=u.useContext($o),{getPrefixCls:r,direction:o,form:i}=u.useContext(st),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:d=n,form:f,colon:v,labelAlign:y,labelWrap:h,labelCol:b,wrapperCol:C,hideRequiredMark:g,layout:m="horizontal",scrollToFirstError:p,requiredMark:S,onFinishFailed:w,name:x,style:E,feedbackIcons:$,variant:O}=e,P=H4(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),k=Lo(c),A=u.useContext(V1),T=u.useMemo(()=>S!==void 0?S:g?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[g,S,i]),M=v??(i==null?void 0:i.colon),D=r("form",a),L=No(D),[I,R,F]=Rp(D,L),N=X(D,`${D}-${m}`,{[`${D}-hide-required-mark`]:T===!1,[`${D}-rtl`]:o==="rtl",[`${D}-${k}`]:k},F,L,R,i==null?void 0:i.className,l,s),[_]=tw(f),{__INTERNAL__:z}=_;z.name=x;const V=u.useMemo(()=>({name:x,labelAlign:y,labelCol:b,labelWrap:h,wrapperCol:C,vertical:m==="vertical",colon:M,requiredMark:T,itemRef:z.itemRef,form:_,feedbackIcons:$}),[x,y,b,C,m,M,T,_,$]),H=u.useRef(null);u.useImperativeHandle(t,()=>{var W;return Object.assign(Object.assign({},_),{nativeElement:(W=H.current)===null||W===void 0?void 0:W.nativeElement})});const K=(W,q)=>{if(W){let Y={block:"nearest"};typeof W=="object"&&(Y=W),_.scrollToField(q,Y)}},G=W=>{if(w==null||w(W),W.errorFields.length){const q=W.errorFields[0].name;if(p!==void 0){K(p,q);return}i&&i.scrollToFirstError!==void 0&&K(i.scrollToFirstError,q)}};return I(u.createElement(QS.Provider,{value:O},u.createElement(Z1,{disabled:d},u.createElement(ui.Provider,{value:k},u.createElement(XS,{validateMessages:A},u.createElement(Qr.Provider,{value:V},u.createElement(Ca,Object.assign({id:x},P,{name:x,onFinishFailed:G,form:_,ref:H,style:Object.assign(Object.assign({},i==null?void 0:i.style),E),className:N}))))))))},U4=u.forwardRef(W4);function K4(e){if(typeof e=="function")return e;const t=qr(e);return t.length<=1?t[0]:t}const nw=()=>{const{status:e,errors:t=[],warnings:n=[]}=u.useContext(Ln);return{status:e,errors:t,warnings:n}};nw.Context=Ln;function G4(e){const[t,n]=u.useState(e),r=u.useRef(null),o=u.useRef([]),i=u.useRef(!1);u.useEffect(()=>(i.current=!1,()=>{i.current=!0,gt.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=gt(()=>{r.current=null,n(s=>{let c=s;return o.current.forEach(d=>{c=d(c)}),c})})),o.current.push(l))}return[t,a]}function q4(){const{itemRef:e}=u.useContext(Qr),t=u.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=En(e(r),i)),t.current.ref}return n}const X4=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Q4=uS(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=YC(e,n);return[X4(r)]}),Y4=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:c,fieldId:d,marginBottom:f,onErrorVisibleChanged:v}=e,y=`${t}-item`,h=u.useContext(Qr),b=r||h.wrapperCol||{},C=X(`${y}-control`,b.className),g=u.useMemo(()=>Object.assign({},h),[h]);delete g.labelCol,delete g.wrapperCol;const m=u.createElement("div",{className:`${y}-control-input`},u.createElement("div",{className:`${y}-control-input-content`},o)),p=u.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||i.length||a.length?u.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},u.createElement(up.Provider,{value:p},u.createElement(ZC,{fieldId:d,errors:i,warnings:a,help:c,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:v})),!!f&&u.createElement("div",{style:{width:0,height:f}})):null,w={};d&&(w.id=`${d}_extra`);const x=s?u.createElement("div",Object.assign({},w,{className:`${y}-extra`}),s):null,E=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:m,errorList:S,extra:x}):u.createElement(u.Fragment,null,m,S,x);return u.createElement(Qr.Provider,{value:g},u.createElement(jC,Object.assign({},b,{className:C}),E),u.createElement(Q4,{prefixCls:t}))};var Z4={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"},J4=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:Z4}))},eL=u.forwardRef(J4),tL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c,vertical:d}=e;var f;const[v]=W1("Form"),{labelAlign:y,labelCol:h,labelWrap:b,colon:C}=u.useContext(Qr);if(!n)return null;const g=o||h||{},m=i||y,p=`${t}-item-label`,S=X(p,m==="left"&&`${p}-left`,g.className,{[`${p}-wrap`]:!!b});let w=n;const x=a===!0||C!==!1&&a!==!1;x&&!d&&typeof n=="string"&&n.trim()!==""&&(w=n.replace(/[:|:]\s*$/,""));const $=nL(c);if($){const{icon:A=u.createElement(eL,null)}=$,T=tL($,["icon"]),M=u.createElement(Yl,Object.assign({},T),u.cloneElement(A,{className:`${t}-item-tooltip`,title:"",onClick:D=>{D.preventDefault()},tabIndex:null}));w=u.createElement(u.Fragment,null,w,M)}const O=s==="optional",P=typeof s=="function";P?w=s(w,{required:!!l}):O&&!l&&(w=u.createElement(u.Fragment,null,w,u.createElement("span",{className:`${t}-item-optional`,title:""},(v==null?void 0:v.optional)||((f=si.Form)===null||f===void 0?void 0:f.optional))));const k=X({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:O||P,[`${t}-item-no-colon`]:!x});return u.createElement(jC,Object.assign({},g,{className:S}),u.createElement("label",{htmlFor:r,className:k,title:typeof n=="string"?n:""},w))},oL={success:OR,warning:LR,error:OS,validating:np};function rw(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const c=`${a}-item`,{feedbackIcons:d}=u.useContext(Qr),f=ew(n,r,l,null,!!o,i),{isFormItemInput:v,status:y,hasFeedback:h,feedbackIcon:b}=u.useContext(Ln),C=u.useMemo(()=>{var g;let m;if(o){const S=o!==!0&&o.icons||d,w=f&&((g=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||g===void 0?void 0:g[f]),x=f&&oL[f];m=w!==!1&&x?u.createElement("span",{className:X(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||u.createElement(x,null)):null}const p={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:m,isFormItemInput:!0};return s&&(p.status=(f??y)||"",p.isFormItemInput=v,p.hasFeedback=!!(o??h),p.feedbackIcon=o!==void 0?p.feedbackIcon:b),p},[f,o,s,v,y]);return u.createElement(Ln.Provider,{value:C},t)}var iL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(k&&E.current){const F=getComputedStyle(E.current);M(parseInt(F.marginBottom,10))}},[k,A]);const D=F=>{F||M(null)},I=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const N=F?$:c.errors,_=F?O:c.warnings;return ew(N,_,c,"",!!d,s)}(),R=X(p,n,r,{[`${p}-with-help`]:P||$.length||O.length,[`${p}-has-feedback`]:I&&d,[`${p}-has-success`]:I==="success",[`${p}-has-warning`]:I==="warning",[`${p}-has-error`]:I==="error",[`${p}-is-validating`]:I==="validating",[`${p}-hidden`]:f,[`${p}-${g}`]:g});return u.createElement("div",{className:R,style:o,ref:E},u.createElement(mN,Object.assign({className:`${p}-row`},Pr(m,["_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"])),u.createElement(rL,Object.assign({htmlFor:y},e,{requiredMark:S,required:h??b,prefixCls:t,vertical:x})),u.createElement(Y4,Object.assign({},e,c,{errors:$,warnings:O,prefixCls:t,status:I,help:i,marginBottom:T,onErrorVisibleChanged:D}),u.createElement(qS.Provider,{value:C},u.createElement(rw,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:d,validateStatus:I},v)))),!!T&&u.createElement("div",{className:`${p}-margin-offset`,style:{marginBottom:-T}}))}const lL="__SPLIT__";function sL(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const uL=u.memo(e=>{let{children:t}=e;return t},(e,t)=>sL(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function j0(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function cL(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:d,messageVariables:f,trigger:v="onChange",validateTrigger:y,hidden:h,help:b,layout:C}=e,{getPrefixCls:g}=u.useContext(st),{name:m}=u.useContext(Qr),p=K4(s),S=typeof p=="function",w=u.useContext(qS),{validateTrigger:x}=u.useContext(di),E=y!==void 0?y:x,$=t!=null,O=g("form",i),P=No(O),[k,A,T]=Rp(O,P);Ym();const M=u.useContext(kl),D=u.useRef(),[L,I]=G4({}),[R,F]=va(()=>j0()),N=W=>{const q=M==null?void 0:M.getKey(W.name);if(F(W.destroy?j0():W,!0),n&&b!==!1&&w){let Y=W.name;if(W.destroy)Y=D.current||Y;else if(q!==void 0){const[ie,ae]=q;Y=[ie].concat(ue(ae)),D.current=Y}w(W,Y)}},_=(W,q)=>{I(Y=>{const ie=Object.assign({},Y),le=[].concat(ue(W.name.slice(0,-1)),ue(q)).join(lL);return W.destroy?delete ie[le]:ie[le]=W,ie})},[z,V]=u.useMemo(()=>{const W=ue(R.errors),q=ue(R.warnings);return Object.values(L).forEach(Y=>{W.push.apply(W,ue(Y.errors||[])),q.push.apply(q,ue(Y.warnings||[]))}),[W,q]},[L,R.errors,R.warnings]),H=q4();function K(W,q,Y){return n&&!h?u.createElement(rw,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:R,errors:z,warnings:V,noStyle:!0},W):u.createElement(aL,Object.assign({key:"row"},e,{className:X(r,T,P,A),prefixCls:O,fieldId:q,isRequired:Y,errors:z,warnings:V,meta:R,onSubItemMetaChange:_,layout:C}),W)}if(!$&&!S&&!o)return k(K(p));let G={};return typeof d=="string"?G.label=d:t&&(G.label=String(t)),f&&(G=Object.assign(Object.assign({},G),f)),k(u.createElement(lp,Object.assign({},e,{messageVariables:G,trigger:v,validateTrigger:E,onMetaChange:N}),(W,q,Y)=>{const ie=ll(t).length&&q?q.name:[],ae=JC(ie,m),le=c!==void 0?c:!!(l!=null&&l.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const pe=re(Y);return(pe==null?void 0:pe.required)&&!(pe!=null&&pe.warningOnly)}return!1})),fe=Object.assign({},W);let Q=null;if(Array.isArray(p)&&$)Q=p;else if(!(S&&(!(a||o)||$))){if(!(o&&!S&&!$))if(u.isValidElement(p)){const re=Object.assign(Object.assign({},p.props),fe);if(re.id||(re.id=ae),b||z.length>0||V.length>0||e.extra){const Me=[];(b||z.length>0)&&Me.push(`${ae}_help`),e.extra&&Me.push(`${ae}_extra`),re["aria-describedby"]=Me.join(" ")}z.length>0&&(re["aria-invalid"]="true"),le&&(re["aria-required"]="true"),Po(p)&&(re.ref=H(ie,p)),new Set([].concat(ue(ll(v)),ue(ll(E)))).forEach(Me=>{re[Me]=function(){for(var be,ne,te,xe,ge,ve=arguments.length,Ie=new Array(ve),Se=0;Se{var{prefixCls:t,children:n}=e,r=dL(e,["prefixCls","children"]);const{getPrefixCls:o}=u.useContext(st),i=o("form",t),a=u.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return u.createElement(WS,Object.assign({},r),(l,s,c)=>u.createElement(up.Provider,{value:a},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),s,{errors:c.errors,warnings:c.warnings})))};function vL(){const{form:e}=u.useContext(Qr);return e}const Ir=U4;Ir.Item=ow;Ir.List=fL;Ir.ErrorList=ZC;Ir.useForm=tw;Ir.useFormInstance=vL;Ir.useWatch=GS;Ir.Provider=XS;Ir.create=()=>{};var mL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=d=>{const{keyCode:f}=d;f===ce.ENTER&&d.preventDefault()},r=d=>{const{keyCode:f}=d,{onClick:v}=e;f===ce.ENTER&&v&&v()},{style:o,noStyle:i,disabled:a,tabIndex:l=0}=e,s=mL(e,["style","noStyle","disabled","tabIndex"]);let c={};return i||(c=Object.assign({},pL)),a&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),u.createElement("div",Object.assign({role:"button",tabIndex:l,ref:t},s,{onKeyDown:n,onKeyUp:r,style:c}))});var gL={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"},hL=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:gL}))},yL=u.forwardRef(hL),bL={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"},SL=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:bL}))},CL=u.forwardRef(SL);const wL=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},xL=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + h${r}&, + div&-h${r}, + div&-h${r} > textarea, + h${r} + `]=wL(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},EL=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},rS(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},$L=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Fu[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),OL=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ee(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},RL=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),IL=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),PL=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},xL(e)),{[` + & + h1${t}, + & + h2${t}, + & + h3${t}, + & + h4${t}, + & + h5${t} + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),$L(e)),EL(e)),{[` + ${t}-expand, + ${t}-collapse, + ${t}-edit, + ${t}-copy + `]:Object.assign(Object.assign({},rS(e)),{marginInlineStart:e.marginXXS})}),OL(e)),RL(e)),IL()),{"&-rtl":{direction:"rtl"}})}},_L=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),iw=gr("Typography",e=>[PL(e)],_L),ML=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:s,onSave:c,onCancel:d,onEnd:f,component:v,enterIcon:y=u.createElement(CL,null)}=e,h=u.useRef(null),b=u.useRef(!1),C=u.useRef(),[g,m]=u.useState(s);u.useEffect(()=>{m(s)},[s]),u.useEffect(()=>{var D;if(!((D=h.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:L}=h.current.resizableTextArea;L.focus();const{length:I}=L.value;L.setSelectionRange(I,I)}},[]);const p=D=>{let{target:L}=D;m(L.value.replace(/[\n\r]/g,""))},S=()=>{b.current=!0},w=()=>{b.current=!1},x=D=>{let{keyCode:L}=D;b.current||(C.current=L)},E=()=>{c(g.trim())},$=D=>{let{keyCode:L,ctrlKey:I,altKey:R,metaKey:F,shiftKey:N}=D;C.current===L&&!b.current&&!I&&!R&&!F&&!N&&(L===ce.ENTER?(E(),f==null||f()):L===ce.ESC&&d())},O=()=>{E()},P=v?`${t}-${v}`:"",[k,A,T]=iw(t),M=X(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl"},r,P,A,T);return k(u.createElement("div",{className:M,style:o},u.createElement(KC,{ref:h,maxLength:a,value:g,onChange:p,onKeyDown:x,onKeyUp:$,onCompositionStart:S,onCompositionEnd:w,onBlur:O,"aria-label":n,rows:1,autoSize:l}),y!==null?ci(y,{className:`${t}-edit-content-confirm`}):null))};var TL=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=z0[t.format]||z0.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");s=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=FL("message"in t?t.message:LL),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return s}var AL=kL;const jL=Uu(AL);var zL=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const DL=e=>{let{copyConfig:t,children:n}=e;const[r,o]=u.useState(!1),[i,a]=u.useState(!1),l=u.useRef(null),s=()=>{l.current&&clearTimeout(l.current)},c={};t.format&&(c.format=t.format),u.useEffect(()=>s,[]);const d=Kt(f=>zL(void 0,void 0,void 0,function*(){var v;f==null||f.preventDefault(),f==null||f.stopPropagation(),a(!0);try{const y=typeof t.text=="function"?yield t.text():t.text;jL(y||String(n)||"",c),a(!1),o(!0),s(),l.current=setTimeout(()=>{o(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,f)}catch(y){throw a(!1),y}}));return{copied:r,copyLoading:i,onClick:d}};function Bd(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const BL=e=>{const t=u.useRef();return u.useEffect(()=>{t.current=e}),t.current},VL=(e,t)=>{const n=u.useRef(!1);u.useEffect(()=>{n.current?e():n.current=!0},t)};var HL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:s,style:c}=e,d=HL(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:v,typography:y}=u.useContext(st),h=s??v;let b=t;a&&(b=En(t,a));const C=f("typography",n),[g,m,p]=iw(C),S=X(C,y==null?void 0:y.className,{[`${C}-rtl`]:h==="rtl"},o,i,m,p),w=Object.assign(Object.assign({},y==null?void 0:y.style),c);return g(u.createElement(r,Object.assign({className:S,style:w,ref:b},d),l))});var WL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},UL=function(t,n){return u.createElement(kt,me({},t,{ref:n,icon:WL}))},KL=u.forwardRef(UL);function D0(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Fs(e,t,n){return e===!0||e===void 0?t:e||n&&t}const GL=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:i,icon:a,loading:l,tabIndex:s,onCopy:c}=e,d=D0(i),f=D0(a),{copied:v,copy:y}=r??{},h=n?Fs(d[1],v):Fs(d[0],y),C=typeof h=="string"?h:n?v:y;return u.createElement(Yl,{key:"copy",title:h},u.createElement(Hv,{className:X(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:c,"aria-label":C,tabIndex:s},n?Fs(f[1],u.createElement(W_,null),!0):Fs(f[0],l?u.createElement(np,null):u.createElement(KL,null),!0)))},ks=u.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=u.useRef(null);return u.useImperativeHandle(t,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),u.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)});function lw(e){const t=typeof e;return t==="string"||t==="number"}function qL(e){let t=0;return e.forEach(n=>{lw(n)?t+=String(n).length:t+=1}),t}function B0(e,t){let n=0;const r=[];for(let o=0;ot){const c=t-n;return r.push(String(i).slice(0,c)),r}r.push(i),n=s}return e}const Vd=0,Hd=1,Wd=2,Ud=3,V0=4,As={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function XL(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:s}=e,c=u.useMemo(()=>qr(r),[r]),d=u.useMemo(()=>qL(c),[r]),f=u.useMemo(()=>o(c,!1),[r]),[v,y]=u.useState(null),h=u.useRef(null),b=u.useRef(null),C=u.useRef(null),g=u.useRef(null),m=u.useRef(null),[p,S]=u.useState(!1),[w,x]=u.useState(Vd),[E,$]=u.useState(0),[O,P]=u.useState(null);mt(()=>{x(t&&n&&d?Hd:Vd)},[n,r,i,t,c]),mt(()=>{var M,D,L,I;if(w===Hd){x(Wd);const R=b.current&&getComputedStyle(b.current).whiteSpace;P(R)}else if(w===Wd){const R=!!(!((M=C.current)===null||M===void 0)&&M.isExceed());x(R?Ud:V0),y(R?[0,d]:null),S(R);const F=((D=C.current)===null||D===void 0?void 0:D.getHeight())||0,N=i===1?0:((L=g.current)===null||L===void 0?void 0:L.getHeight())||0,_=((I=m.current)===null||I===void 0?void 0:I.getHeight())||0,z=N+_,V=Math.max(F,z);$(V+1),s(R)}},[w]);const k=v?Math.ceil((v[0]+v[1])/2):0;mt(()=>{var M;const[D,L]=v||[0,0];if(D!==L){const R=(((M=h.current)===null||M===void 0?void 0:M.getHeight())||0)>E;let F=k;L-D===1&&(F=R?D:L),y(R?[D,F]:[F,L])}},[v,k]);const A=u.useMemo(()=>{if(w!==Ud||!v||v[0]!==v[1]){const M=o(c,!1);return w!==V0&&w!==Vd?u.createElement("span",{style:Object.assign(Object.assign({},As),{WebkitLineClamp:i})},M):M}return o(a?c:B0(c,v[0]),p)},[a,w,v,c].concat(ue(l))),T={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,A,w===Wd&&u.createElement(u.Fragment,null,u.createElement(ks,{style:Object.assign(Object.assign(Object.assign({},T),As),{WebkitLineClamp:i}),ref:C},f),u.createElement(ks,{style:Object.assign(Object.assign(Object.assign({},T),As),{WebkitLineClamp:i-1}),ref:g},f),u.createElement(ks,{style:Object.assign(Object.assign(Object.assign({},T),As),{WebkitLineClamp:1}),ref:m},o([],!0))),w===Ud&&v&&v[0]!==v[1]&&u.createElement(ks,{style:Object.assign(Object.assign({},T),{top:400}),ref:h},o(B0(c,k),!0)),w===Hd&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const QL=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:u.createElement(Yl,Object.assign({open:n?void 0:!1},o),r)};var YL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o;const{prefixCls:i,className:a,style:l,type:s,disabled:c,children:d,ellipsis:f,editable:v,copyable:y,component:h,title:b}=e,C=YL(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:m}=u.useContext(st),[p]=W1("Text"),S=u.useRef(null),w=u.useRef(null),x=g("typography",i),E=Pr(C,["mark","code","delete","underline","strong","keyboard","italic"]),[$,O]=Bd(v),[P,k]=Gn(!1,{value:O.editing}),{triggerType:A=["icon"]}=O,T=se=>{var Pe;se&&((Pe=O.onStart)===null||Pe===void 0||Pe.call(O)),k(se)},M=BL(P);VL(()=>{var se;!P&&M&&((se=w.current)===null||se===void 0||se.focus())},[P]);const D=se=>{se==null||se.preventDefault(),T(!0)},L=se=>{var Pe;(Pe=O.onChange)===null||Pe===void 0||Pe.call(O,se),T(!1)},I=()=>{var se;(se=O.onCancel)===null||se===void 0||se.call(O),T(!1)},[R,F]=Bd(y),{copied:N,copyLoading:_,onClick:z}=DL({copyConfig:F,children:d}),[V,H]=u.useState(!1),[K,G]=u.useState(!1),[W,q]=u.useState(!1),[Y,ie]=u.useState(!1),[ae,le]=u.useState(!0),[fe,Q]=Bd(f,{expandable:!1,symbol:se=>se?p==null?void 0:p.collapse:p==null?void 0:p.expand}),[re,pe]=Gn(Q.defaultExpanded||!1,{value:Q.expanded}),Re=fe&&(!re||Q.expandable==="collapsible"),{rows:Me=1}=Q,be=u.useMemo(()=>Re&&(Q.suffix!==void 0||Q.onEllipsis||Q.expandable||$||R),[Re,Q,$,R]);mt(()=>{fe&&!be&&(H(Xh("webkitLineClamp")),G(Xh("textOverflow")))},[be,fe]);const[ne,te]=u.useState(Re),xe=u.useMemo(()=>be?!1:Me===1?K:V,[be,K,V]);mt(()=>{te(xe&&Re)},[xe,Re]);const ge=Re&&(ne?Y:W),ve=Re&&Me===1&&ne,Ie=Re&&Me>1&&ne,Se=(se,Pe)=>{var Ve;pe(Pe.expanded),(Ve=Q.onExpand)===null||Ve===void 0||Ve.call(Q,se,Pe)},[Et,Je]=u.useState(0),Oe=se=>{let{offsetWidth:Pe}=se;Je(Pe)},he=se=>{var Pe;q(se),W!==se&&((Pe=Q.onEllipsis)===null||Pe===void 0||Pe.call(Q,se))};u.useEffect(()=>{const se=S.current;if(fe&&ne&&se){const Pe=Ie?se.offsetHeight{const se=S.current;if(typeof IntersectionObserver>"u"||!se||!ne||!Re)return;const Pe=new IntersectionObserver(()=>{le(!!se.offsetParent)});return Pe.observe(se),()=>{Pe.disconnect()}},[ne,Re]);let ke={};Q.tooltip===!0?ke={title:(n=O.text)!==null&&n!==void 0?n:d}:u.isValidElement(Q.tooltip)?ke={title:Q.tooltip}:typeof Q.tooltip=="object"?ke=Object.assign({title:(r=O.text)!==null&&r!==void 0?r:d},Q.tooltip):ke={title:Q.tooltip};const Ae=u.useMemo(()=>{const se=Pe=>["string","number"].includes(typeof Pe);if(!(!fe||ne)){if(se(O.text))return O.text;if(se(d))return d;if(se(b))return b;if(se(ke.title))return ke.title}},[fe,ne,b,ke.title,ge]);if(P)return u.createElement(ML,{value:(o=O.text)!==null&&o!==void 0?o:typeof d=="string"?d:"",onSave:L,onCancel:I,onEnd:O.onEnd,prefixCls:x,className:a,style:l,direction:m,component:h,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const bt=()=>{const{expandable:se,symbol:Pe}=Q;return!se||re&&se!=="collapsible"?null:u.createElement(Hv,{key:"expand",className:`${x}-${re?"collapse":"expand"}`,onClick:Ve=>Se(Ve,{expanded:!re}),"aria-label":re?p.collapse:p==null?void 0:p.expand},typeof Pe=="function"?Pe(re):Pe)},ht=()=>{if(!$)return;const{icon:se,tooltip:Pe,tabIndex:Ve}=O,ut=qr(Pe)[0]||(p==null?void 0:p.edit),$e=typeof ut=="string"?ut:"";return A.includes("icon")?u.createElement(Yl,{key:"edit",title:Pe===!1?"":ut},u.createElement(Hv,{ref:w,className:`${x}-edit`,onClick:D,"aria-label":$e,tabIndex:Ve},se||u.createElement(yL,{role:"button"}))):null},qe=()=>R?u.createElement(GL,Object.assign({key:"copy"},F,{prefixCls:x,copied:N,locale:p,onCopy:z,loading:_,iconOnly:d==null})):null,Ge=se=>[se&&bt(),ht(),qe()],tt=se=>[se&&!re&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},JL),Q.suffix,Ge(se)];return u.createElement(Or,{onResize:Oe,disabled:!Re},se=>u.createElement(QL,{tooltipProps:ke,enableEllipsis:Re,isEllipsis:ge},u.createElement(aw,Object.assign({className:X({[`${x}-${s}`]:s,[`${x}-disabled`]:c,[`${x}-ellipsis`]:fe,[`${x}-ellipsis-single-line`]:ve,[`${x}-ellipsis-multiple-line`]:Ie},a),prefixCls:i,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Ie?Me:void 0}),component:h,ref:En(se,S,t),direction:m,onClick:A.includes("text")?D:void 0,"aria-label":Ae==null?void 0:Ae.toString(),title:b},E),u.createElement(XL,{enableMeasure:Re&&!ne,text:d,rows:Me,width:Et,onEllipsis:he,expanded:re,miscDeps:[N,re,_,$,R]},(Pe,Ve)=>ZL(e,u.createElement(u.Fragment,null,Pe.length>0&&Ve&&!re&&Ae?u.createElement("span",{key:"show-content","aria-hidden":!0},Pe):Pe,tt(Ve)))))))});var eF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{ellipsis:n,rel:r}=e,o=eF(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,u.createElement(kc,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),nF=u.forwardRef((e,t)=>u.createElement(kc,Object.assign({ref:t},e,{component:"div"})));var rF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{ellipsis:n}=e,r=rF(e,["ellipsis"]);const o=u.useMemo(()=>n&&typeof n=="object"?Pr(n,["expandable","rows"]):n,[n]);return u.createElement(kc,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},iF=u.forwardRef(oF);var aF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{level:n=1}=e,r=aF(e,["level"]);let o;return lF.includes(n)?o=`h${n}`:o="h1",u.createElement(kc,Object.assign({ref:t},r,{component:o}))}),pi=aw;pi.Text=iF;pi.Link=tF;pi.Title=sF;pi.Paragraph=nF;var Ze=(e=>(e.XS="xs",e.S="s",e.M="m",e.L="l",e.XL="xl",e.XXL="xxl",e))(Ze||{});const sw=[Ze.XS,Ze.S,Ze.M,Ze.L,Ze.XL,Ze.XXL],Wv={[Ze.XS]:0,[Ze.S]:0,[Ze.M]:0,[Ze.L]:0,[Ze.XL]:0,[Ze.XXL]:0},uw={[Ze.XS]:"XS",[Ze.S]:"S",[Ze.M]:"M",[Ze.L]:"L",[Ze.XL]:"XL",[Ze.XXL]:"XXL"},uF="_input_169wh_1",cF={input:uF},dF=({size:e,value:t,onChange:n})=>Ye.jsx(HC,{min:0,max:99,className:cF.input,addonBefore:uw[e],value:t,onChange:n}),fF=({onValuesChange:e,initialValues:t})=>Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(pi.Title,{level:2,children:"Count your T-Shirts"}),Ye.jsxs(Ir,{onValuesChange:e,onReset:()=>e(void 0,t),name:"basic",initialValues:t,children:[Ye.jsx(M4,{gap:12,wrap:!0,children:sw.map(n=>Ye.jsx(Ir.Item,{name:n,children:Ye.jsx(dF,{size:n})},n))}),Ye.jsx(Ic,{htmlType:"reset",children:"Reset"})]})]}),vF=e=>{const t=Object.values(Ze).map(o=>o.toUpperCase()),n=new RegExp(`(?:^|\\s|[^\\w\\d])(${t.join("|")})(?=\\s|[^\\w\\d]|$)`,"g"),r=e.match(n);return r?r.map(o=>o.trim().toLowerCase()):[]},mF=e=>{const t={...Wv};return e.forEach(n=>{t[n]=t[n]+1}),t},{TextArea:pF}=wa,gF=({onValuesChange:e})=>{const[t,n]=u.useState("");return u.useEffect(()=>{const r=vF(t),o=mF(r);e(void 0,o)},[e,t]),Ye.jsx(Ye.Fragment,{children:Ye.jsx(pF,{value:t,onChange:r=>n(r.target.value),placeholder:"Paste your text with T-shirt sizes",rows:10})})},hF=({onValuesChange:e,initialValues:t})=>{const n=[{key:"1",label:"Count manually",children:Ye.jsx(fF,{initialValues:t,onValuesChange:e})},{key:"2",label:"Paste text",children:Ye.jsx(gF,{onValuesChange:e})}],r=()=>{e(void 0,{...t})};return Ye.jsx(kC,{destroyInactiveTabPane:!0,onChange:r,defaultActiveKey:"1",items:n})},yF=e=>sw.filter(t=>e[t]).map(t=>`${uw[t]}: ${e[t]}`).join(", "),bF={[Ze.XS]:1,[Ze.S]:2,[Ze.M]:4,[Ze.L]:6,[Ze.XL]:8,[Ze.XXL]:11},SF={[Ze.XS]:1,[Ze.S]:3,[Ze.M]:5,[Ze.L]:7,[Ze.XL]:10,[Ze.XXL]:16},H0=e=>{const t={max:0,min:0};for(const n of Object.keys(e)){const r=n,o=e[r],i=SF[r]*o,a=bF[r]*o;t.max=t.max+i,t.min=t.min+a}return t},{Title:Kd,Paragraph:CF}=pi,wF=({allSizes:e})=>{const t=yF(e);return t?Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(Kd,{level:2,children:"Result"}),Ye.jsx(Kd,{level:5,children:"Task count"}),Ye.jsx(CF,{children:t}),Ye.jsxs(Kd,{level:5,children:["Max working days: ",H0(e).max,Ye.jsx("br",{}),"Min working days: ",H0(e).min]})]}):null},xF=()=>{const[e,t]=u.useState(Wv),n=u.useCallback((r,o)=>{t(o)},[]);return Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(hF,{initialValues:Wv,onValuesChange:n}),Ye.jsx(wF,{allSizes:e})]})},EF=()=>Ye.jsxs(Ye.Fragment,{children:[Ye.jsx(pi.Title,{children:"T-Shirt Estimation Helper"}),Ye.jsx(xF,{})]});Gd.createRoot(document.getElementById("root")).render(Ye.jsx(Z.StrictMode,{children:Ye.jsx(EF,{})})); diff --git a/docs/vite.svg b/docs/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/docs/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/package.json b/package.json index 86986f8..835cfab 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc -b && vite build", + "build": "tsc -b && vite build --outDir=docs", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, diff --git a/vite.config.ts b/vite.config.ts index 627a319..25c1002 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,13 @@ import react from '@vitejs/plugin-react'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + build: { + rollupOptions: { + output: { + assetFileNames: '[name].[ext]', + entryFileNames: '[name].js', + chunkFileNames: '[name].js', + }, + }, + }, });