var N6=Object.create;var Kp=Object.defineProperty;var UR=Object.getOwnPropertyDescriptor;var I6=Object.getOwnPropertyNames;var $6=Object.getPrototypeOf,D6=Object.prototype.hasOwnProperty;var gx=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Tn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vx=(e,t)=>{for(var r in t)Kp(e,r,{get:t[r],enumerable:!0})},A6=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of I6(t))!D6.call(e,n)&&n!==r&&Kp(e,n,{get:()=>t[n],enumerable:!(o=UR(t,n))||o.enumerable});return e};var E=(e,t,r)=>(r=e!=null?N6($6(e)):{},A6(t||!e||!e.__esModule?Kp(r,"default",{value:e,enumerable:!0}):r,e));var Nr=(e,t,r,o)=>{for(var n=o>1?void 0:o?UR(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(n=(o?a(t,r,n):a(n))||n);return o&&n&&Kp(t,r,n),n};var JO=Tn(bt=>{"use strict";var If=Symbol.for("react.element"),y5=Symbol.for("react.portal"),x5=Symbol.for("react.fragment"),b5=Symbol.for("react.strict_mode"),S5=Symbol.for("react.profiler"),C5=Symbol.for("react.provider"),w5=Symbol.for("react.context"),E5=Symbol.for("react.forward_ref"),R5=Symbol.for("react.suspense"),O5=Symbol.for("react.memo"),_5=Symbol.for("react.lazy"),WO=Symbol.iterator;function P5(e){return e===null||typeof e!="object"?null:(e=WO&&e[WO]||e["@@iterator"],typeof e=="function"?e:null)}var UO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GO=Object.assign,qO={};function Rc(e,t,r){this.props=e,this.context=t,this.refs=qO,this.updater=r||UO}Rc.prototype.isReactComponent={};Rc.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")};Rc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function KO(){}KO.prototype=Rc.prototype;function Xx(e,t,r){this.props=e,this.context=t,this.refs=qO,this.updater=r||UO}var Yx=Xx.prototype=new KO;Yx.constructor=Xx;GO(Yx,Rc.prototype);Yx.isPureReactComponent=!0;var VO=Array.isArray,XO=Object.prototype.hasOwnProperty,Qx={current:null},YO={key:!0,ref:!0,__self:!0,__source:!0};function QO(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)XO.call(t,o)&&!YO.hasOwnProperty(o)&&(n[o]=t[o]);var s=arguments.length-2;if(s===1)n.children=r;else if(1{"use strict";e_.exports=JO()});var u_=Tn(Gt=>{"use strict";function rb(e,t){var r=e.length;e.push(t);e:for(;0>>1,n=e[o];if(0<$m(n,t))e[o]=t,e[r]=n,r=o;else break e}}function si(e){return e.length===0?null:e[0]}function Am(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o$m(s,r))l$m(c,s)?(e[o]=c,e[l]=r,o=l):(e[o]=s,e[a]=r,o=a);else if(l$m(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function $m(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(t_=performance,Gt.unstable_now=function(){return t_.now()}):(Jx=Date,r_=Jx.now(),Gt.unstable_now=function(){return Jx.now()-r_});var t_,Jx,r_,ki=[],Qa=[],D5=1,$n=null,go=3,Mm=!1,cl=!1,Df=!1,i_=typeof setTimeout=="function"?setTimeout:null,a_=typeof clearTimeout=="function"?clearTimeout:null,o_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ob(e){for(var t=si(Qa);t!==null;){if(t.callback===null)Am(Qa);else if(t.startTime<=e)Am(Qa),t.sortIndex=t.expirationTime,rb(ki,t);else break;t=si(Qa)}}function nb(e){if(Df=!1,ob(e),!cl)if(si(ki)!==null)cl=!0,ab(ib);else{var t=si(Qa);t!==null&&sb(nb,t.startTime-e)}}function ib(e,t){cl=!1,Df&&(Df=!1,a_(Af),Af=-1),Mm=!0;var r=go;try{for(ob(t),$n=si(ki);$n!==null&&(!($n.expirationTime>t)||e&&!c_());){var o=$n.callback;if(typeof o=="function"){$n.callback=null,go=$n.priorityLevel;var n=o($n.expirationTime<=t);t=Gt.unstable_now(),typeof n=="function"?$n.callback=n:$n===si(ki)&&Am(ki),ob(t)}else Am(ki);$n=si(ki)}if($n!==null)var i=!0;else{var a=si(Qa);a!==null&&sb(nb,a.startTime-t),i=!1}return i}finally{$n=null,go=r,Mm=!1}}var Lm=!1,Dm=null,Af=-1,s_=5,l_=-1;function c_(){return!(Gt.unstable_now()-l_e||125o?(e.sortIndex=r,rb(Qa,e),si(ki)===null&&e===si(Qa)&&(Df?(a_(Af),Af=-1):Df=!0,sb(nb,r-o))):(e.sortIndex=n,rb(ki,e),cl||Mm||(cl=!0,ab(ib))),e};Gt.unstable_shouldYield=c_;Gt.unstable_wrapCallback=function(e){var t=go;return function(){var r=go;go=t;try{return e.apply(this,arguments)}finally{go=r}}}});var d_=Tn((ZJ,f_)=>{"use strict";f_.exports=u_()});var gN=Tn(mn=>{"use strict";var A5=N(),dn=d_();function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nb=Object.prototype.hasOwnProperty,M5=/^[: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]*$/,p_={},m_={};function L5(e){return Nb.call(m_,e)?!0:Nb.call(p_,e)?!1:M5.test(e)?m_[e]=!0:(p_[e]=!0,!1)}function k5(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function F5(e,t,r,o){if(t===null||typeof t>"u"||k5(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.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 Do(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var so={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){so[e]=new Do(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];so[t]=new Do(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){so[e]=new Do(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){so[e]=new Do(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){so[e]=new Do(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){so[e]=new Do(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){so[e]=new Do(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){so[e]=new Do(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){so[e]=new Do(e,5,!1,e.toLowerCase(),null,!1,!1)});var CS=/[\-:]([a-z])/g;function wS(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(CS,wS);so[t]=new Do(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(CS,wS);so[t]=new Do(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(CS,wS);so[t]=new Do(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){so[e]=new Do(e,1,!1,e.toLowerCase(),null,!1,!1)});so.xlinkHref=new Do("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){so[e]=new Do(e,1,!1,e.toLowerCase(),null,!0,!0)});function ES(e,t,r,o){var n=so.hasOwnProperty(t)?so[t]:null;(n!==null?n.type!==0:o||!(2s||n[a]!==i[s]){var l=` `+n[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{cb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Vf(e):""}function z5(e){switch(e.tag){case 5:return Vf(e.type);case 16:return Vf("Lazy");case 13:return Vf("Suspense");case 19:return Vf("SuspenseList");case 0:case 2:case 15:return e=ub(e.type,!1),e;case 11:return e=ub(e.type.render,!1),e;case 1:return e=ub(e.type,!0),e;default:return""}}function Ab(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 Tc:return"Fragment";case Pc:return"Portal";case Ib:return"Profiler";case RS:return"StrictMode";case $b:return"Suspense";case Db:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case SP:return(e.displayName||"Context")+".Consumer";case bP:return(e._context.displayName||"Context")+".Provider";case OS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _S:return t=e.displayName||null,t!==null?t:Ab(e.type)||"Memo";case Ja:t=e._payload,e=e._init;try{return Ab(e(t))}catch{}}return null}function B5(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 Ab(t);case 8:return t===RS?"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 ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j5(e){var t=wP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fm(e){e._valueTracker||(e._valueTracker=j5(e))}function EP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=wP(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function dh(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 Mb(e,t){var r=t.checked;return pr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function g_(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=ps(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function RP(e,t){t=t.checked,t!=null&&ES(e,"checked",t,!1)}function Lb(e,t){RP(e,t);var r=ps(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?kb(e,t.type,r):t.hasOwnProperty("defaultValue")&&kb(e,t.type,ps(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function v_(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function kb(e,t,r){(t!=="number"||dh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Hf=Array.isArray;function Bc(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n"+t.valueOf().toString()+"",t=zm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function od(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qf={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},W5=["Webkit","ms","Moz","O"];Object.keys(qf).forEach(function(e){W5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qf[t]=qf[e]})});function TP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qf.hasOwnProperty(e)&&qf[e]?(""+t).trim():t+"px"}function NP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=TP(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var V5=pr({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 Bb(e,t){if(t){if(V5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function jb(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 Wb=null;function PS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vb=null,jc=null,Wc=null;function b_(e){if(e=Sd(e)){if(typeof Vb!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Bh(t),Vb(e.stateNode,e.type,t))}}function IP(e){jc?Wc?Wc.push(e):Wc=[e]:jc=e}function $P(){if(jc){var e=jc,t=Wc;if(Wc=jc=null,b_(e),t)for(e=0;e>>=0,e===0?32:31-(e8(e)/t8|0)|0}var Bm=64,jm=4194304;function Uf(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 gh(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~n;s!==0?o=Uf(s):(i&=a,i!==0&&(o=Uf(i)))}else a=r&~n,a!==0?o=Uf(a):i!==0&&(o=Uf(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&n)&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if(o&4&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0r;r++)t.push(e);return t}function xd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-di(t),e[t]=r}function i8(e,t){var r=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 o=e.eventTimes;for(e=e.expirationTimes;0=Xf),T_=" ",N_=!1;function ZP(e,t){switch(e){case"keyup":return D8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nc=!1;function M8(e,t){switch(e){case"compositionend":return JP(t);case"keypress":return t.which!==32?null:(N_=!0,T_);case"textInput":return e=t.data,e===T_&&N_?null:e;default:return null}}function L8(e,t){if(Nc)return e==="compositionend"||!LS&&ZP(e,t)?(e=YP(),oh=DS=os=null,Nc=!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:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=D_(r)}}function oT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nT(){for(var e=window,t=dh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dh(e.document)}return t}function kS(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 U8(e){var t=nT(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&oT(r.ownerDocument.documentElement,r)){if(o!==null&&kS(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=A_(r,i);var a=A_(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ic=null,Xb=null,Qf=null,Yb=!1;function M_(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Yb||Ic==null||Ic!==dh(o)||(o=Ic,"selectionStart"in o&&kS(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Qf&&cd(Qf,o)||(Qf=o,o=xh(Xb,"onSelect"),0Ac||(e.current=rS[Ac],rS[Ac]=null,Ac--)}function qt(e,t){Ac++,rS[Ac]=e.current,e.current=t}var ms={},bo=gs(ms),Vo=gs(!1),vl=ms;function qc(e,t){var r=e.type.contextTypes;if(!r)return ms;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function Ho(e){return e=e.childContextTypes,e!=null}function Sh(){Yt(Vo),Yt(bo)}function H_(e,t,r){if(bo.current!==ms)throw Error(he(168));qt(bo,t),qt(Vo,r)}function pT(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(he(108,B5(e)||"Unknown",n));return pr({},r,o)}function Ch(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ms,vl=bo.current,qt(bo,e),qt(Vo,Vo.current),!0}function U_(e,t,r){var o=e.stateNode;if(!o)throw Error(he(169));r?(e=pT(e,t,vl),o.__reactInternalMemoizedMergedChildContext=e,Yt(Vo),Yt(bo),qt(bo,e)):Yt(Vo),qt(Vo,r)}var pa=null,jh=!1,Sb=!1;function mT(e){pa===null?pa=[e]:pa.push(e)}function tz(e){jh=!0,mT(e)}function vs(){if(!Sb&&pa!==null){Sb=!0;var e=0,t=Dt;try{var r=pa;for(Dt=1;e>=a,n-=a,ma=1<<32-di(t)+n|r<R?(_=C,C=null):_=C.sibling;var O=d(h,C,y[R],S);if(O===null){C===null&&(C=_);break}e&&C&&O.alternate===null&&t(h,C),p=i(O,p,R),w===null?b=O:w.sibling=O,w=O,C=_}if(R===y.length)return r(h,C),ar&&ul(h,R),b;if(C===null){for(;RR?(_=C,C=null):_=C.sibling;var I=d(h,C,O.value,S);if(I===null){C===null&&(C=_);break}e&&C&&I.alternate===null&&t(h,C),p=i(I,p,R),w===null?b=I:w.sibling=I,w=I,C=_}if(O.done)return r(h,C),ar&&ul(h,R),b;if(C===null){for(;!O.done;R++,O=y.next())O=f(h,O.value,S),O!==null&&(p=i(O,p,R),w===null?b=O:w.sibling=O,w=O);return ar&&ul(h,R),b}for(C=o(h,C);!O.done;R++,O=y.next())O=m(C,h,R,O.value,S),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?R:O.key),p=i(O,p,R),w===null?b=O:w.sibling=O,w=O);return e&&C.forEach(function(j){return t(h,j)}),ar&&ul(h,R),b}function x(h,p,y,S){if(typeof y=="object"&&y!==null&&y.type===Tc&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case km:e:{for(var b=y.key,w=p;w!==null;){if(w.key===b){if(b=y.type,b===Tc){if(w.tag===7){r(h,w.sibling),p=n(w,y.props.children),p.return=h,h=p;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ja&&K_(b)===w.type){r(h,w.sibling),p=n(w,y.props),p.ref=zf(h,w,y),p.return=h,h=p;break e}r(h,w);break}else t(h,w);w=w.sibling}y.type===Tc?(p=gl(y.props.children,h.mode,S,y.key),p.return=h,h=p):(S=fh(y.type,y.key,y.props,null,h.mode,S),S.ref=zf(h,p,y),S.return=h,h=S)}return a(h);case Pc:e:{for(w=y.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(h,p.sibling),p=n(p,y.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=Tb(y,h.mode,S),p.return=h,h=p}return a(h);case Ja:return w=y._init,x(h,p,w(y._payload),S)}if(Hf(y))return g(h,p,y,S);if(Mf(y))return v(h,p,y,S);Zm(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(h,p.sibling),p=n(p,y),p.return=h,h=p):(r(h,p),p=Pb(y,h.mode,S),p.return=h,h=p),a(h)):r(h,p)}return x}var Xc=yT(!0),xT=yT(!1),Rh=gs(null),Oh=null,kc=null,jS=null;function WS(){jS=kc=Oh=null}function VS(e){var t=Rh.current;Yt(Rh),e._currentValue=t}function iS(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function Hc(e,t){Oh=e,jS=kc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wo=!0),e.firstContext=null)}function kn(e){var t=e._currentValue;if(jS!==e)if(e={context:e,memoizedValue:t,next:null},kc===null){if(Oh===null)throw Error(he(308));kc=e,Oh.dependencies={lanes:0,firstContext:e}}else kc=kc.next=e;return t}var pl=null;function HS(e){pl===null?pl=[e]:pl.push(e)}function bT(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,HS(t)):(r.next=n.next,n.next=r),t.interleaved=r,xa(e,o)}function xa(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var es=!1;function US(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ST(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 ga(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cs(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Et&2){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,xa(e,r)}return n=o.interleaved,n===null?(t.next=t,HS(o)):(t.next=n.next,n.next=t),o.interleaved=t,xa(e,r)}function ih(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,NS(e,r)}}function X_(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function _h(e,t,r,o){var n=e.updateQueue;es=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=n.baseState;a=0,u=c=l=null,s=i;do{var d=s.lane,m=s.eventTime;if((o&d)===d){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,v=s;switch(d=t,m=r,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(m,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(m,f,d):g,d==null)break e;f=pr({},f,d);break e;case 2:es=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=n.effects,d===null?n.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=f):u=u.next=m,a|=d;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;d=s,s=d.next,d.next=null,n.lastBaseUpdate=d,n.shared.pending=null}}while(!0);if(u===null&&(l=f),n.baseState=l,n.firstBaseUpdate=c,n.lastBaseUpdate=u,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);bl|=a,e.lanes=a,e.memoizedState=f}}function Y_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var o=wb.transition;wb.transition={};try{e(!1),t()}finally{Dt=r,wb.transition=o}}function FT(){return Fn().memoizedState}function iz(e,t,r){var o=fs(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},zT(e))BT(t,r);else if(r=bT(e,t,r,o),r!==null){var n=$o();pi(r,e,o,n),jT(r,t,o)}}function az(e,t,r){var o=fs(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(zT(e))BT(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(n.hasEagerState=!0,n.eagerState=s,mi(s,a)){var l=t.interleaved;l===null?(n.next=n,HS(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=bT(e,t,n,o),r!==null&&(n=$o(),pi(r,e,o,n),jT(r,t,o))}}function zT(e){var t=e.alternate;return e===dr||t!==null&&t===dr}function BT(e,t){Zf=Th=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function jT(e,t,r){if(r&4194240){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,NS(e,r)}}var Nh={readContext:kn,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useInsertionEffect:vo,useLayoutEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useMutableSource:vo,useSyncExternalStore:vo,useId:vo,unstable_isNewReconciler:!1},sz={readContext:kn,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:kn,useEffect:Z_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,sh(4194308,4,DT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return sh(4194308,4,e,t)},useInsertionEffect:function(e,t){return sh(4,2,e,t)},useMemo:function(e,t){var r=zi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=zi();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=iz.bind(null,dr,e),[o.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:Q_,useDebugValue:JS,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=Q_(!1),t=e[0];return e=nz.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=dr,n=zi();if(ar){if(r===void 0)throw Error(he(407));r=r()}else{if(r=t(),Xr===null)throw Error(he(349));xl&30||RT(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,Z_(_T.bind(null,o,i,e),[e]),o.flags|=2048,vd(9,OT.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=zi(),t=Xr.identifierPrefix;if(ar){var r=ha,o=ma;r=(o&~(1<<32-di(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=hd++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[Bi]=t,e[dd]=o,QT(e,t,!1,!1),t.stateNode=e;e:{switch(a=jb(r,o),r){case"dialog":Xt("cancel",e),Xt("close",e),n=o;break;case"iframe":case"object":case"embed":Xt("load",e),n=o;break;case"video":case"audio":for(n=0;nZc&&(t.flags|=128,o=!0,Bf(i,!1),t.lanes=4194304)}else{if(!o)if(e=Ph(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ar)return yo(t),null}else 2*_r()-i.renderingStartTime>Zc&&r!==1073741824&&(t.flags|=128,o=!0,Bf(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_r(),t.sibling=null,r=fr.current,qt(fr,o?r&1|2:r&1),t):(yo(t),null);case 22:case 23:return iC(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?cn&1073741824&&(yo(t),t.subtreeFlags&6&&(t.flags|=8192)):yo(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function hz(e,t){switch(zS(t),t.tag){case 1:return Ho(t.type)&&Sh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yc(),Yt(Vo),Yt(bo),KS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qS(t),null;case 13:if(Yt(fr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));Kc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(fr),null;case 4:return Yc(),null;case 10:return VS(t.type._context),null;case 22:case 23:return iC(),null;case 24:return null;default:return null}}var eh=!1,xo=!1,gz=typeof WeakSet=="function"?WeakSet:Set,De=null;function Fc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){yr(e,t,o)}else r.current=null}function mS(e,t,r){try{r()}catch(o){yr(e,t,o)}}var cP=!1;function vz(e,t){if(Qb=vh,e=nT(),kS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var m;f!==r||n!==0&&f.nodeType!==3||(s=a+n),f!==i||o!==0&&f.nodeType!==3||(l=a+o),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===r&&++c===n&&(s=a),d===i&&++u===o&&(l=a),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zb={focusedElem:e,selectionRange:r},vh=!1,De=t;De!==null;)if(t=De,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,De=e;else for(;De!==null;){t=De;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,x=g.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:ci(t.type,v),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(S){yr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,De=e;break}De=t.return}return g=cP,cP=!1,g}function Jf(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&mS(t,r,i)}n=n.next}while(n!==o)}}function Hh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function hS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function eN(e){var t=e.alternate;t!==null&&(e.alternate=null,eN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bi],delete t[dd],delete t[tS],delete t[J8],delete t[ez])),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 tN(e){return e.tag===5||e.tag===3||e.tag===4}function uP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tN(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 gS(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=bh));else if(o!==4&&(e=e.child,e!==null))for(gS(e,t,r),e=e.sibling;e!==null;)gS(e,t,r),e=e.sibling}function vS(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(vS(e,t,r),e=e.sibling;e!==null;)vS(e,t,r),e=e.sibling}var io=null,ui=!1;function Za(e,t,r){for(r=r.child;r!==null;)rN(e,t,r),r=r.sibling}function rN(e,t,r){if(ji&&typeof ji.onCommitFiberUnmount=="function")try{ji.onCommitFiberUnmount(Lh,r)}catch{}switch(r.tag){case 5:xo||Fc(r,t);case 6:var o=io,n=ui;io=null,Za(e,t,r),io=o,ui=n,io!==null&&(ui?(e=io,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):io.removeChild(r.stateNode));break;case 18:io!==null&&(ui?(e=io,r=r.stateNode,e.nodeType===8?bb(e.parentNode,r):e.nodeType===1&&bb(e,r),sd(e)):bb(io,r.stateNode));break;case 4:o=io,n=ui,io=r.stateNode.containerInfo,ui=!0,Za(e,t,r),io=o,ui=n;break;case 0:case 11:case 14:case 15:if(!xo&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&mS(r,t,a),n=n.next}while(n!==o)}Za(e,t,r);break;case 1:if(!xo&&(Fc(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){yr(r,t,s)}Za(e,t,r);break;case 21:Za(e,t,r);break;case 22:r.mode&1?(xo=(o=xo)||r.memoizedState!==null,Za(e,t,r),xo=o):Za(e,t,r);break;default:Za(e,t,r)}}function fP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new gz),t.forEach(function(o){var n=Oz.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function li(e,t){var r=t.deletions;if(r!==null)for(var o=0;on&&(n=a),o&=~i}if(o=n,o=_r()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*xz(o/1960))-o,10e?16:e,ns===null)var o=!1;else{if(e=ns,ns=null,Dh=0,Et&6)throw Error(he(331));var n=Et;for(Et|=4,De=e.current;De!==null;){var i=De,a=i.child;if(De.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l_r()-oC?hl(e,0):rC|=r),Uo(e,t)}function uN(e,t){t===0&&(e.mode&1?(t=jm,jm<<=1,!(jm&130023424)&&(jm=4194304)):t=1);var r=$o();e=xa(e,t),e!==null&&(xd(e,t,r),Uo(e,r))}function Rz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),uN(e,r)}function Oz(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(he(314))}o!==null&&o.delete(t),uN(e,r)}var fN;fN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vo.current)Wo=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Wo=!1,pz(e,t,r);Wo=!!(e.flags&131072)}else Wo=!1,ar&&t.flags&1048576&&hT(t,Eh,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;lh(e,t),e=t.pendingProps;var n=qc(t,bo.current);Hc(t,r),n=YS(null,t,o,e,n,r);var i=QS();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ho(o)?(i=!0,Ch(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,US(t),n.updater=Vh,t.stateNode=n,n._reactInternals=t,sS(t,o,e,r),t=uS(null,t,o,!0,i,r)):(t.tag=0,ar&&i&&FS(t),Io(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(lh(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=Pz(o),e=ci(o,e),n){case 0:t=cS(null,t,o,e,r);break e;case 1:t=aP(null,t,o,e,r);break e;case 11:t=nP(null,t,o,e,r);break e;case 14:t=iP(null,t,o,ci(o.type,e),r);break e}throw Error(he(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:ci(o,n),cS(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:ci(o,n),aP(e,t,o,n,r);case 3:e:{if(KT(t),e===null)throw Error(he(387));o=t.pendingProps,i=t.memoizedState,n=i.element,ST(e,t),_h(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=Qc(Error(he(423)),t),t=sP(e,t,o,r,n);break e}else if(o!==n){n=Qc(Error(he(424)),t),t=sP(e,t,o,r,n);break e}else for(un=ls(t.stateNode.containerInfo.firstChild),fn=t,ar=!0,fi=null,r=xT(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Kc(),o===n){t=ba(e,t,r);break e}Io(e,t,o,r)}t=t.child}return t;case 5:return CT(t),e===null&&nS(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,Jb(o,n)?a=null:i!==null&&Jb(o,i)&&(t.flags|=32),qT(e,t),Io(e,t,a,r),t.child;case 6:return e===null&&nS(t),null;case 13:return XT(e,t,r);case 4:return GS(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Xc(t,null,o,r):Io(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:ci(o,n),nP(e,t,o,n,r);case 7:return Io(e,t,t.pendingProps,r),t.child;case 8:return Io(e,t,t.pendingProps.children,r),t.child;case 12:return Io(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,qt(Rh,o._currentValue),o._currentValue=a,i!==null)if(mi(i.value,a)){if(i.children===n.children&&!Vo.current){t=ba(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=ga(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),iS(i.return,r,t),s.lanes|=r;break}l=l.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(he(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),iS(a,r,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}Io(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,Hc(t,r),n=kn(n),o=o(n),t.flags|=1,Io(e,t,o,r),t.child;case 14:return o=t.type,n=ci(o,t.pendingProps),n=ci(o.type,n),iP(e,t,o,n,r);case 15:return UT(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:ci(o,n),lh(e,t),t.tag=1,Ho(o)?(e=!0,Ch(t)):e=!1,Hc(t,r),WT(t,o,n),sS(t,o,n,r),uS(null,t,o,!0,e,r);case 19:return YT(e,t,r);case 22:return GT(e,t,r)}throw Error(he(156,t.tag))};function dN(e,t){return zP(e,t)}function _z(e,t,r,o){this.tag=e,this.key=r,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mn(e,t,r,o){return new _z(e,t,r,o)}function sC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pz(e){if(typeof e=="function")return sC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===OS)return 11;if(e===_S)return 14}return 2}function ds(e,t){var r=e.alternate;return r===null?(r=Mn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function fh(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")sC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Tc:return gl(r.children,n,i,t);case RS:a=8,n|=8;break;case Ib:return e=Mn(12,r,t,n|2),e.elementType=Ib,e.lanes=i,e;case $b:return e=Mn(13,r,t,n),e.elementType=$b,e.lanes=i,e;case Db:return e=Mn(19,r,t,n),e.elementType=Db,e.lanes=i,e;case CP:return Gh(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bP:a=10;break e;case SP:a=9;break e;case OS:a=11;break e;case _S:a=14;break e;case Ja:a=16,o=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Mn(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function gl(e,t,r,o){return e=Mn(7,e,o,t),e.lanes=r,e}function Gh(e,t,r,o){return e=Mn(22,e,o,t),e.elementType=CP,e.lanes=r,e.stateNode={isHidden:!1},e}function Pb(e,t,r){return e=Mn(6,e,null,t),e.lanes=r,e}function Tb(e,t,r){return t=Mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tz(e,t,r,o,n){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=db(0),this.expirationTimes=db(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=db(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function lC(e,t,r,o,n,i,a,s,l){return e=new Tz(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},US(i),e}function Nz(e,t,r){var o=3{"use strict";function vN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vN)}catch(e){console.error(e)}}vN(),yN.exports=gN()});var bN=Tn(dC=>{"use strict";var xN=Vi();dC.createRoot=xN.createRoot,dC.hydrateRoot=xN.hydrateRoot;var tee});var wN=Tn(Qh=>{"use strict";var Lz=N(),kz=Symbol.for("react.element"),Fz=Symbol.for("react.fragment"),zz=Object.prototype.hasOwnProperty,Bz=Lz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jz={key:!0,ref:!0,__self:!0,__source:!0};function CN(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)zz.call(t,o)&&!jz.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:kz,type:e,key:i,ref:a,props:n,_owner:Bz.current}}Qh.Fragment=Fz;Qh.jsx=CN;Qh.jsxs=CN});var Nt=Tn((iee,EN)=>{"use strict";EN.exports=wN()});var we=Tn((Iee,ig)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n="",i=0;i{"use strict";var vC=Symbol.for("react.element"),yC=Symbol.for("react.portal"),lg=Symbol.for("react.fragment"),cg=Symbol.for("react.strict_mode"),ug=Symbol.for("react.profiler"),fg=Symbol.for("react.provider"),dg=Symbol.for("react.context"),Yz=Symbol.for("react.server_context"),pg=Symbol.for("react.forward_ref"),mg=Symbol.for("react.suspense"),hg=Symbol.for("react.suspense_list"),gg=Symbol.for("react.memo"),vg=Symbol.for("react.lazy"),Qz=Symbol.for("react.offscreen"),zN;zN=Symbol.for("react.module.reference");function zn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vC:switch(e=e.type,e){case lg:case ug:case cg:case mg:case hg:return e;default:switch(e=e&&e.$$typeof,e){case Yz:case dg:case pg:case vg:case gg:case fg:return e;default:return t}}case yC:return t}}}At.ContextConsumer=dg;At.ContextProvider=fg;At.Element=vC;At.ForwardRef=pg;At.Fragment=lg;At.Lazy=vg;At.Memo=gg;At.Portal=yC;At.Profiler=ug;At.StrictMode=cg;At.Suspense=mg;At.SuspenseList=hg;At.isAsyncMode=function(){return!1};At.isConcurrentMode=function(){return!1};At.isContextConsumer=function(e){return zn(e)===dg};At.isContextProvider=function(e){return zn(e)===fg};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vC};At.isForwardRef=function(e){return zn(e)===pg};At.isFragment=function(e){return zn(e)===lg};At.isLazy=function(e){return zn(e)===vg};At.isMemo=function(e){return zn(e)===gg};At.isPortal=function(e){return zn(e)===yC};At.isProfiler=function(e){return zn(e)===ug};At.isStrictMode=function(e){return zn(e)===cg};At.isSuspense=function(e){return zn(e)===mg};At.isSuspenseList=function(e){return zn(e)===hg};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lg||e===ug||e===cg||e===mg||e===hg||e===Qz||typeof e=="object"&&e!==null&&(e.$$typeof===vg||e.$$typeof===gg||e.$$typeof===fg||e.$$typeof===dg||e.$$typeof===pg||e.$$typeof===zN||e.getModuleId!==void 0)};At.typeOf=zn});var WN=Tn((Qee,jN)=>{"use strict";jN.exports=BN()});var yx={"SDPPP Get Document":"SDPPP Get Document","SDPPP Get Layer By ID":"SDPPP Get Layer","SDPPP Get Linked Layers":"SDPPP Get Linked Layers","SDPPP Get Layers In Group":"SDPPP Get Layers In Group","SDPPP Get Text From Layer":"SDPPP Get Text From Layer","SDPPP Parse Layer Info":"SDPPP Parse Layer Info","SDPPP Get Selection":"SDPPP Get Selection","SDPPP Get Image From Photoshop":"SDPPP Get Image From Photoshop","SDPPP Send Images To Photoshop":"SDPPP Send Images To Photoshop","SDPPP Settings":"SDPPP Settings/Misc"};var xx={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"SDPPP\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"SDPPP\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"SDPPP\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"SDPPP\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"SDPPP\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"SDPPP\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"SDPPP\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"SDPPP\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"SDPPP\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Settings":"SDPPP\u8BBE\u7F6E/\u6742\u9879(Settings/Misc)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",timeout:"\u8D85\u65F6","--multi-user activated, Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","Workflow List of ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A","https://www.youtube.com/@Github-Zombeeyang/videos":"https://space.bilibili.com/44908313",Youtube:"BiliBili","https://discord.gg/9HeGjDvEmn":"https://pd.qq.com/s/5m42umo28",Discord:"QQ\u9891\u9053",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL: {0}":"Comfy\u5730\u5740: {0}","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91"};var GR=typeof gx<"u"?gx:void 0,bx="en";typeof navigator<"u"&&navigator.language?bx=navigator.language=="zh-CN"?"zhcn":"en":GR&&(bx=GR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function ge(e,...t){let r=bx=="zhcn"?xx[e]:e in yx?yx[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(o,n){return typeof t[n]<"u"?t[n]:o})}function rl(e,t){return e==t||xx[e]==t}var Ir=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return rl(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return ge(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return rl(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return ge(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return rl(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return ge(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return rl(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return ge(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return rl(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return ge(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return rl(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return ge(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return ge(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[ge(e.SPECIAL_LAYER_USE_CANVAS),ge(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[ge(e.SPECIAL_LAYER_NEW_LAYER),ge(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return ge(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};var Sx={};vx(Sx,{JsonPatchError:()=>vr,_areEquals:()=>vf,applyOperation:()=>ol,applyPatch:()=>vc,applyReducer:()=>z6,deepClone:()=>k6,getValueByPointer:()=>nl,validate:()=>KR,validator:()=>Jp});var M6=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i])},e(t,r)};return function(t,r){e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),L6=Object.prototype.hasOwnProperty;function Yp(e,t){return L6.call(e,t)}function Qp(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&o<=57){t++;continue}return!1}return!0}function Ai(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function hf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Xp(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&d===void 0&&(c[m]===void 0?d=l.slice(0,u).join("/"):u==f-1&&(d=t.path),d!==void 0&&g(t,0,e,d)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(r&&!Zp(m))throw new vr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Zp(m)&&(m=~~m)}if(u>=f){if(r&&t.op==="add"&&m>c.length)throw new vr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=F6[t.op].call(t,c,m,e);if(a.test===!1)throw new vr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=gc[t.op].call(t,c,m,e);if(a.test===!1)throw new vr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[m],r&&u0)throw new vr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new vr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new vr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Xp(e.value))throw new vr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var n=e.path.split("/").length,i=o.split("/").length;if(n!==i+1&&n!==i)throw new vr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==o)throw new vr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=KR([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new vr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new vr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function KR(e,t,r){try{if(!Array.isArray(e))throw new vr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)vc(gr(t),gr(e),r||!0);else{r=r||Jp;for(var o=0;oem,generate:()=>Cx,observe:()=>G6,unobserve:()=>U6});var wx=new WeakMap,B6=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),j6=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function W6(e){return wx.get(e)}function V6(e,t){return e.observers.get(t)}function H6(e,t){e.observers.delete(t.callback)}function U6(e,t){t.unobserve()}function G6(e,t){var r=[],o,n=W6(e);if(!n)n=new B6(e),wx.set(e,n);else{var i=V6(n,t);o=i&&i.observer}if(o)return o;if(o={},n.value=gr(e),t){o.callback=t,o.next=null;var a=function(){Cx(o)},s=function(){clearTimeout(o.next),o.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return o.patches=r,o.object=e,o.unobserve=function(){Cx(o),clearTimeout(o.next),H6(n,o),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},n.observers.set(t,new j6(t,o)),o}function Cx(e,t){t===void 0&&(t=!1);var r=wx.get(e.object);Ex(r.value,e.object,e.patches,"",t),e.patches.length&&vc(r.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function Ex(e,t,r,o,n){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=Qp(t),a=Qp(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(Yp(t,u)&&!(t[u]===void 0&&f!==void 0&&Array.isArray(t)===!1)){var d=t[u];typeof f=="object"&&f!=null&&typeof d=="object"&&d!=null&&Array.isArray(f)===Array.isArray(d)?Ex(f,d,r,o+"/"+Ai(u),n):f!==d&&(s=!0,n&&r.push({op:"test",path:o+"/"+Ai(u),value:gr(f)}),r.push({op:"replace",path:o+"/"+Ai(u),value:gr(d)}))}else Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:o+"/"+Ai(u),value:gr(f)}),r.push({op:"remove",path:o+"/"+Ai(u)}),l=!0):(n&&r.push({op:"test",path:o,value:e}),r.push({op:"replace",path:o,value:t}),s=!0)}if(!(!l&&i.length==a.length))for(var c=0;co!=t)}dispatch(t,r){let o=new Map;t.forEach(n=>{this.subscribers.forEach(([i,a])=>{n.path.startsWith(i)&&!o.has(i)&&o.set(i,JSON.stringify(i==="/"?r:nl(r,i)))})}),o.forEach((n,i)=>{let a=i==="/"?this._data:nl(this._data,i);n!==JSON.stringify(a)&&this.subscribers.filter(([s,l])=>s===i).forEach(([s,l])=>{let c={};try{c=l(a,JSON.parse(n||{}))}catch(u){console.error(u.stack||u.message||u)}c instanceof Promise&&c.catch(u=>{console.error(u.stack||u.message||u)})})})}};function Fr(e,t,r){return e.constructor[tm]||(e.constructor[tm]=[]),e.constructor[tm].push(t),{value:function(...o){let n=gr(this._data);r.value.apply(this,o);let i=em(n,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,n))}}}var il=class extends Ox{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Nr([Fr],il.prototype,"setSID",1);var Bo=class extends il{constructor(t,r){super(t||{title:"",progress:0,lastError:"",lastErrorNodeID:0,queueSize:0,executingNodeTitle:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",currentForm:[],hasPSDNodes:!1,maxImageWH:60606,comfyUserToken:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t,r){this._data.lastError=t,this._data.lastErrorNodeID=r}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setCurrentForm(t){t=JSON.parse(JSON.stringify(t)),this._data.currentForm=t}setHasPSDNodes(t){this._data.hasPSDNodes=t}setMaxImageWH(t){this._data.maxImageWH=t}setComfyUserToken(t){this._data.comfyUserToken=t}};Nr([Fr],Bo.prototype,"setWebviewFromSid",1),Nr([Fr],Bo.prototype,"setTitle",1),Nr([Fr],Bo.prototype,"setProgress",1),Nr([Fr],Bo.prototype,"setLastError",1),Nr([Fr],Bo.prototype,"setQueueSize",1),Nr([Fr],Bo.prototype,"setExecutingNodeTitle",1),Nr([Fr],Bo.prototype,"setCurrentForm",1),Nr([Fr],Bo.prototype,"setHasPSDNodes",1),Nr([Fr],Bo.prototype,"setMaxImageWH",1),Nr([Fr],Bo.prototype,"setComfyUserToken",1);var Mi=class extends il{constructor(t,r){super(t||{uname:"",comfyUserToken:"",activeDocumentID:0,documents:{},canvasStateID:0,selectionStateID:0,historyStateID:0}),this._version=r||0}setUName(t){this._data.uname="PS_"+t}setDocument(t,r){this._data.activeDocumentID=t,this._data.documents=r}setCanvasStateID(t){this._data.canvasStateID=t}setSelectionStateID(t){this._data.selectionStateID=t}setHistoryStateID(t){this._data.historyStateID=t}setComfyUserToken(t){this._data.comfyUserToken=t}};Nr([Fr],Mi.prototype,"setUName",1),Nr([Fr],Mi.prototype,"setDocument",1),Nr([Fr],Mi.prototype,"setCanvasStateID",1),Nr([Fr],Mi.prototype,"setSelectionStateID",1),Nr([Fr],Mi.prototype,"setHistoryStateID",1),Nr([Fr],Mi.prototype,"setComfyUserToken",1);var rm=class{storeMap=new Map;storeCount(){return this.storeMap.size}getStore(t){return this.storeMap.get(t)}getAllStore(){return Object.fromEntries(this.storeMap.entries())}subscribers=[];subscribersWithoutKey=new WeakMap;subscribe(t,r){this.subscribers.push([t,r]);let o={};this.subscribersWithoutKey.set(r,o),this.storeMap.forEach((n,i)=>{o[i]=r.bind(this,i),n.subscribe(t,o[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([o,n])=>n!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((o,n)=>{o.unsubscribe(r[n])})}addStore(t,r,o){let n=this.createStore(r,o);this.storeMap.set(t,n),this.subscribers.forEach(([i,a])=>{let s=this.subscribersWithoutKey.get(a);s||(s={},this.subscribersWithoutKey.set(a,s)),s[t]=a.bind(this,t),n.subscribe(i,s[t]),i=="/"&&a(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([o,n])=>{let i=this.subscribersWithoutKey.get(n);i&&(r.unsubscribe(i[t]),o=="/"&&n(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),o=t.filter(i=>!r.includes(i)),n=r.filter(i=>!t.includes(i));o.forEach(i=>this.addStore(i,{},0)),n.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(o=>!Object.keys(t).includes(o)).forEach(o=>this.removeStore(o));for(let o in t){let{data:n,version:i}=t[o];this.storeMap.has(o)?this.storeMap.get(o)?.sync(n,i):this.addStore(o,n,i)}}}};var Or=window.comfyAPI.app.app,aY=window.comfyAPI.ui.$el,an=window.comfyAPI.api.api;var _x=class extends rm{createStore(t,r){return new Mi(t,r)}getStoreByName(t){for(let r of this.storeMap.values())if(r.data.uname===t)return r}getAllPhotoshopDocumentData(){let t={};return this.storeMap.forEach(r=>{t[r.data.uname]={sid:r.data.sid,activeDocumentID:r.data.activeDocumentID,documents:r.data.documents}}),t}},sn=new _x,ht=new Bo;if(window.uxpHost){let e=t=>{if(t.data.action!=="webview-connect"||!t.data.payload.webviewFromSid)return console.log(t);t.data.payload.webviewFromSid=t.data.payload.webviewFromSid,ht.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function YR(){document.title!==ht.data.title&&ht.setTitle(document.title),requestAnimationFrame(YR)}requestAnimationFrame(YR);var XR=!1;async function QR(){if(XR)return Promise.resolve();an.user&&ht.setComfyUserToken(an.user);let e=await an.getSetting("sdppp.maxImageWH");e&&ht.setMaxImageWH(e),XR=!0}function q6(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function om(e){return q6(e)}globalThis.sdpppX=globalThis.sdpppX||{};var sa=globalThis.sdpppX;var yf=class{static makeDocumentDataOptions(t){let r=t.data,o=[`${Ir.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(n=>{let i=r.documents[n];o.push(i.identify)}),o}static findDocumentData(t,r){let o=Ir.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:om(r).id;return t.data.documents[o]}static makeLayerOptions(t,r){return r.concat(t.layers.map(n=>n.identify))}};function Px(){let e=sn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(an.user&&an.user!=r.data.comfyUserToken)return;let o=yf.makeDocumentDataOptions(r).map(n=>Tx(n,r.data.uname));t.push(...o)}),t}function ZR(e,t){let r=[""],o=nm(e);if(!o)return[];let n=yf.makeLayerOptions(o.documentData,t);return r.push(...n),r}function JR(){return an.user?Object.values(sn.getAllStore()).filter(e=>an.user==e.data.comfyUserToken).length>0:sn.storeCount()}function Tx(e,t){return`${t}/${e}`}function nm(e){if(!e||!e.split)return null;let t=sn.getAllPhotoshopDocumentData(),[r,o]=e.split("/");if(o||(o=r,r=Object.keys(t)[0]),!t[r])return null;let n=Ir.is_SPECIAL_DOCUMENT_CURRENT(o)?t[r].activeDocumentID:om(o).id;if(t[r]?.documents[n]){let i=t[r].documents[n];return{instance_id:t[r].sid,identify:o,documentData:i}}return null}var K6=function(e){let t=Or.graph.links;return Array.isArray(t)?t.find(o=>o&&o.origin_id==e):t.get(e)};function Nx(e){let t=Or.graph.nodes,r=t.find(i=>e.id==i.id);if(!r)return null;let o=[];if(n(r,o),o.length>2){let i=o[0].widgets[0].value;if(!o.map(a=>a.widgets[0].value).every(a=>a==i))throw new Error(ge("Cannot connect multiple different document widgets with same value"))}return o?.[0]||null;function n(i,a){if(i.type=="SDPPP Get Document")return a.push(i),i;if(i.inputs.length==0)return null;for(let s of i.inputs)if(s.link){let l=K6(s.link);if(!l)continue;let c=t.find(f=>f.id==l.origin_id);if(!c)continue;let u=n(c,a);if(u)return u}return null}}sa.findDocumentNodeRecursive=Nx;var im=class{flushing=Promise.resolve();newFlushPending=!1;constructor(t){this.doFlush=t,this.pause()}doFlush;runFlush(){this.newFlushPending||(this.newFlushPending=!0,this.flushing=this.flushing.then(async()=>{await new Promise(t=>requestAnimationFrame(t)),this.newFlushPending=!1,await this.doFlush()}))}pause(){this.flushing=this.flushing.then(t=>new Promise(r=>{this.resume=r})).then(()=>{this.resume=()=>{}})}resume=()=>{}};function eO(e,t){return function(r){return class extends r{constructor(o){super(o),this.socket.on("store_request",(i,a)=>{a({data:e.data,version:e.version})});let n=new im(async()=>{let{operations:i,fromVersion:a,toVersion:s}=e.flush();await new Promise(l=>{let c=!1;setTimeout(()=>{c||(console.warn("flush timeout"),l())},5e3),this.socket.emit("store_flush",{operations:i,fromVersion:a},u=>{c=!0,l(),u?.error?console.error("flush error",u.error):e.flushDone(s)})})});e.subscribe("/",()=>{n.runFlush()}),this.socket.on("disconnect",()=>{n.pause()}),this.socket.on("connect",()=>{e.setSID(this.socket.id),requestAnimationFrame(()=>{this.socket.emit("sdppp_init",{type:t,data:e.data,version:e.version})})}),this.socket.on("sdppp_inited",i=>{n.resume()})}}}}function tO(e,t){return function(r){return class extends r{constructor(o){super(o),this.socket.on("store_flush",n=>{if(n.type!==t)return;let i=e.getStore(n.sid);if(i)i.patchVersionAcceptable(n.fromVersion)?i.patchData(n.operations):(console.warn("patch version not acceptable from",n.fromVersion,"current version is",i.version),this.socket.emit("store_request",{type:t},a=>{e.sync(a)}));else return this.socket.emit("store_request",{sid:n.sid},a=>{e.addStore(a.sid,a.data,a.version)})}),this.socket.on("store_remove",n=>{e.removeStore(n.sid)}),this.socket.on("sdppp_inited",n=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}var oi=Object.create(null);oi.open="0";oi.close="1";oi.ping="2";oi.pong="3";oi.message="4";oi.upgrade="5";oi.noop="6";var xf=Object.create(null);Object.keys(oi).forEach(e=>{xf[oi[e]]=e});var bf={type:"error",data:"parser error"};var nO=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",iO=typeof ArrayBuffer=="function",aO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Sf=({type:e,data:t},r,o)=>nO&&t instanceof Blob?r?o(t):rO(t,o):iO&&(t instanceof ArrayBuffer||aO(t))?r?o(t):rO(new Blob([t]),o):o(oi[e]+(t||"")),rO=(e,t)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];t("b"+(o||""))},r.readAsDataURL(e)};function oO(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Ix;function sO(e,t){if(nO&&e.data instanceof Blob)return e.data.arrayBuffer().then(oO).then(t);if(iO&&(e.data instanceof ArrayBuffer||aO(e.data)))return t(oO(e.data));Sf(e,!1,r=>{Ix||(Ix=new TextEncoder),t(Ix.encode(r))})}var lO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,r=e.length,o,n=0,i,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(o=0;o>4,u[n++]=(a&15)<<4|s>>2,u[n++]=(s&3)<<6|l&63;return c};var X6=typeof ArrayBuffer=="function",wf=(e,t)=>{if(typeof e!="string")return{type:"message",data:uO(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:Y6(e.substring(1),t)}:xf[r]?e.length>1?{type:xf[r],data:e.substring(1)}:{type:xf[r]}:bf},Y6=(e,t)=>{if(X6){let r=cO(e);return uO(r,t)}else return{base64:!0,data:e}},uO=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};var fO="",dO=(e,t)=>{let r=e.length,o=new Array(r),n=0;e.forEach((i,a)=>{Sf(i,!1,s=>{o[a]=s,++n===r&&t(o.join(fO))})})},pO=(e,t)=>{let r=e.split(fO),o=[];for(let n=0;n{let o=r.length,n;if(o<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,o);else if(o<65536){n=new Uint8Array(3);let i=new DataView(n.buffer);i.setUint8(0,126),i.setUint16(1,o)}else{n=new Uint8Array(9);let i=new DataView(n.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(o))}e.data&&typeof e.data!="string"&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}var $x;function am(e){return e.reduce((t,r)=>t+r.length,0)}function sm(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),o=0;for(let n=0;nMath.pow(2,21)-1){s.enqueue(bf);break}n=u*Math.pow(2,32)+c.getUint32(4),o=3}else{if(am(r)e){s.enqueue(bf);break}}}})}var Dx=4;function Ut(e){if(e)return Q6(e)}function Q6(e){for(var t in Ut.prototype)e[t]=Ut.prototype[t];return e}Ut.prototype.on=Ut.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ut.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Ut.prototype.off=Ut.prototype.removeListener=Ut.prototype.removeAllListeners=Ut.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o,n=0;nPromise.resolve().then(t):(t,r)=>r(t,0),To=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),gO="arraybuffer";function lm(e,...t){return t.reduce((r,o)=>(e.hasOwnProperty(o)&&(r[o]=e[o]),r),{})}var Z6=To.setTimeout,J6=To.clearTimeout;function ca(e,t){t.useNativeTimers?(e.setTimeoutFn=Z6.bind(To),e.clearTimeoutFn=J6.bind(To)):(e.setTimeoutFn=To.setTimeout.bind(To),e.clearTimeoutFn=To.clearTimeout.bind(To))}var e5=1.33;function vO(e){return typeof e=="string"?t5(e):Math.ceil((e.byteLength||e.size)*e5)}function t5(e){let t=0,r=0;for(let o=0,n=e.length;o=57344?r+=3:(o++,r+=4);return r}function cm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yO(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function xO(e){let t={},r=e.split("&");for(let o=0,n=r.length;o{this.readyState="paused",t()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};pO(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,dO(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=cm()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var bO=!1;try{bO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var SO=bO;function r5(){}var Ax=class extends Ef{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}}doWrite(t,r){let o=this.request({method:"POST",data:t});o.on("success",r),o.on("error",(n,i)=>{this.onError("xhr post error",n,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=t}},Ka=class e extends Ut{constructor(t,r,o){super(),this.createRequest=t,ca(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var t;let r=lm(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&o.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var n;o.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=r5,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ka.requestsCount=0;Ka.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",CO);else if(typeof addEventListener=="function"){let e="onpagehide"in To?"pagehide":"unload";addEventListener(e,CO,!1)}}function CO(){for(let e in Ka.requests)Ka.requests.hasOwnProperty(e)&&Ka.requests[e].abort()}var o5=function(){let e=wO({xdomain:!1});return e&&e.responseType!==null}(),Xa=class extends Ax{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=o5&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ka(wO,this.uri(),t)}};function wO(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||SO))return new XMLHttpRequest}catch{}if(!t)try{return new To[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var EO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Lx=class extends ua{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,o=EO?{}:lm(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,o)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r{try{this.doWrite(o,i)}catch{}n&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=cm()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Mx=To.WebSocket||To.MozWebSocket,Ya=class extends Lx{createSocket(t,r,o){return EO?new Mx(t,r,o):r?new Mx(t,r):new Mx(t)}doWrite(t,r){this.ws.send(r)}};var yc=class extends ua{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=hO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=t.readable.pipeThrough(r).getReader(),n=mO();n.readable.pipeTo(t.writable),this._writer=n.writable.getWriter();let i=()=>{o.read().then(({done:s,value:l})=>{s||(this.onPacket(l),i())}).catch(s=>{})};i();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r{n&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var kx={websocket:Ya,webtransport:yc,polling:Xa};var n5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xc(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),o=e.indexOf("]");r!=-1&&o!=-1&&(e=e.substring(0,r)+e.substring(r,o).replace(/:/g,";")+e.substring(o,e.length));let n=n5.exec(e||""),i={},a=14;for(;a--;)i[i5[a]]=n[a]||"";return r!=-1&&o!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=a5(i,i.path),i.queryKey=s5(i,i.query),i}function a5(e,t){let r=/\/{2,9}/g,o=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&o.splice(0,1),t.slice(-1)=="/"&&o.splice(o.length-1,1),o}function s5(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,i){n&&(r[n]=i)}),r}var Fx=typeof addEventListener=="function"&&typeof removeEventListener=="function",fm=[];Fx&&addEventListener("offline",()=>{fm.forEach(e=>e())},!1);var al=class e extends Ut{constructor(t,r){if(super(),this.binaryType=gO,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let o=xc(t);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=xc(r.host).host);ca(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(o=>{let n=o.prototype.name;this.transports.push(n),this._transportsByName[n]=o}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=xO(this.opts.query)),Fx&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},fm.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Dx,r.transport=t,this.id&&(r.sid=this.id);let o=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let o=0;o0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,la(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,o){return this._sendPacket("message",t,r,o),this}send(t,r,o){return this._sendPacket("message",t,r,o),this}_sendPacket(t,r,o,n){if(typeof r=="function"&&(n=r,r=void 0),typeof o=="function"&&(n=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;let i={type:t,data:r,options:o};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},o=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():t()}):this.upgrading?o():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Fx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=fm.indexOf(this._offlineEventListener);o!==-1&&fm.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};al.protocol=Dx;var dm=class extends al{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",f=>{if(!o)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;al.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function i(){o||(o=!0,u(),r.close(),r=null)}let a=f=>{let d=new Error("probe error: "+f);d.transport=r.name,i(),this.emitReserved("upgradeError",d)};function s(){a("transport closed")}function l(){a("socket closed")}function c(f){r&&f.name!==r.name&&i()}let u=()=>{r.removeListener("open",n),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};r.once("open",n),r.once("error",a),r.once("close",s),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{o||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let o=0;okx[n]).filter(n=>!!n)),super(t,o)}};var kQ=bc.protocol;function RO(e,t="",r){let o=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),o=xc(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";let i=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+i+":"+o.port+t,o.href=o.protocol+"://"+i+(r&&r.port===o.port?"":":"+o.port),o}var Hx={};vx(Hx,{Decoder:()=>Wx,Encoder:()=>jx,PacketType:()=>St,protocol:()=>NO});var c5=typeof ArrayBuffer=="function",u5=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,OO=Object.prototype.toString,f5=typeof Blob=="function"||typeof Blob<"u"&&OO.call(Blob)==="[object BlobConstructor]",d5=typeof File=="function"||typeof File<"u"&&OO.call(File)==="[object FileConstructor]";function Of(e){return c5&&(e instanceof ArrayBuffer||u5(e))||f5&&e instanceof Blob||d5&&e instanceof File}function Rf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,o=e.length;r=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(i),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((o,n)=>{let i=(a,s)=>a?n(a):o(s);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let o={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...i)=>o!==this._queue[0]?void 0:(n!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(n)):(this._queue.shift(),r&&r(null,...i)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:St.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(o=>String(o.id)===t)){let o=this.acks[t];delete this.acks[t],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case St.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case St.EVENT:case St.BINARY_EVENT:this.onevent(t);break;case St.ACK:case St.BINARY_ACK:this.onack(t);break;case St.DISCONNECT:this.ondisconnect();break;case St.CONNECT_ERROR:this.destroy();let o=new Error(t.data.message);o.data=t.data.data,this.emitReserved("connect_error",o);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let o of r)o.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,o=!1;return function(...n){o||(o=!0,r.packet({type:St.ACK,id:t,data:n}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:St.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let o=0;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}sl.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+r:e-r}return Math.min(e,this.max)|0};sl.prototype.reset=function(){this.attempts=0};sl.prototype.setMin=function(e){this.ms=e};sl.prototype.setMax=function(e){this.max=e};sl.prototype.setJitter=function(e){this.jitter=e};var Cc=class extends Ut{constructor(t,r){var o;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ca(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((o=r.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new sl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let n=r.parser||Hx;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new bc(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=ln(r,"open",function(){o.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=ln(r,"error",i);if(this._timeout!==!1){let s=this._timeout,l=this.setTimeoutFn(()=>{n(),i(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(n),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(ln(t,"ping",this.onping.bind(this)),ln(t,"data",this.ondata.bind(this)),ln(t,"error",this.onerror.bind(this)),ln(t,"close",this.onclose.bind(this)),ln(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){la(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let o=this.nsps[t];return o?this._autoConnect&&!o.active&&o.connect():(o=new Sc(this,t,r),this.nsps[t]=o),o}_destroy(t){let r=Object.keys(this.nsps);for(let o of r)if(this.nsps[o].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let o=0;ot()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let o=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var _f={};function Pf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=RO(e,t.path||"/socket.io"),o=r.source,n=r.id,i=r.path,a=_f[n]&&i in _f[n].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new Cc(o,t):(_f[n]||(_f[n]=new Cc(o,t)),l=_f[n]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Pf,{Manager:Cc,Socket:Sc,io:Pf,connect:Pf});var IO=`502 `;var pm=IO.trim();var Ux=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(o=>o).join("/"),"sd-ppp/"].filter(o=>o).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=Pf(t,{transports:["websocket"],path:r,query:{api_level:pm},rejectUnauthorized:!1,autoConnect:!1}),this.socket.on("connect",()=>{this.socket.io.engine.binaryType="blob"})}get id(){return this.socket.id}connect(){this.socket.connect()}close(){this.socket.close()}};function $O(...e){return e.reduce((t,r)=>r(t),Ux)}var ni=class e{static nodeMap=new WeakMap;static registerNodeType(t,r,o){o.prehandleNodeType&&o.prehandleNodeType(t.nodeData||r);let n=t.prototype.onAdded,i=t.prototype.onRemoved;t.prototype.onAdded=async function(...s){n&&await n.call(this,...s);let l=new o(this);e.nodeMap.set(this,l),await l.update()},t.prototype.onRemoved=async function(...s){i&&await i.call(this,...s);let l=e.nodeMap.get(this);e.nodeMap.delete(this),l?.onDestroy()},t.prototype.onDrawForeground=async function(s){let l=e.nodeMap.get(this);l?.onDrawForeground(s),await l?.update()},t.prototype.onConfigure=async function(...s){let l=e.nodeMap.get(this);l?.onConfigure(s[0]),await l?.update()};let a=t.prototype.onConnectionsChange;t.prototype.onConnectionsChange=async function(s,l,c,u){let f=e.nodeMap.get(this);return s==1&&(f?.inputConnectionChange(l,c&&u),await f?.update()),s==2&&f?.outputConnectionChange(l,c),a?.apply(this,arguments)}}node;constructor(t){this.node=t}inputConnectionChange(t,r){}outputConnectionChange(t,r){}onDrawForeground(t){}onDestroy(){}onConfigure(t){this.node.setProperty("sdppp-version",pm)}};function DO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,o)=>{r.action=="extractPSD"&&Or.graph.nodes.forEach(n=>{n.type=="SDPPP Get Document"&&ni.nodeMap.get(n)?.extractPSD(r.params.from_sid,"")}),o({})})}async importPSDDataURLFromPhotoshop(t,r){let o=await new Promise((i,a)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:ht.data.sid,document_identify:r}},s=>{i(s.data)})});var n=new FileReader;return n.readAsDataURL(o),new Promise(i=>{n.onloadend=function(){var a=n.result;i(a)}})}async exportPSDDataURLToPhotoshop(t,r,o){let n=await fetch(o).then(i=>i.arrayBuffer());await new Promise((i,a)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:ht.data.ssid,document_identify:r,data:n}},s=>{i(s)})})}async getImage(t,r){return new Promise((o,n)=>{this.socket.emit("B_photoshop",{action:"getImage",sid:t,params:r},i=>{i&&i.error?n(new Error(i.error)):o(i)})})}async sendImage(t,r){return new Promise((o,n)=>{this.socket.emit("B_photoshop",{action:"sendImages",sid:t,params:r},i=>{i&&i.error?n(new Error(i.error)):o(i)})})}}}var AO={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var hm=[];sa.widgetable=sa.widgetable||{};sa.widgetable.add=function(e,t){typeof t=="function"?hm.push([e,{formatter:t,setter:null}]):hm.push([e,t])};function gm(e,t,r){let o=hm.find(([a])=>MO(a,e.type)),n=!1;if(o){let a=o[1].setter;a&&(n=!!a(e,t,r))}n||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(Or.workflowManager||Or.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function Nn(e){return e?.nodes.map(t=>{if(t.mode!=0)return;let r=mm(t);if(!r||r.startsWith(".")||!t.widgets||t.widgets.length==0)return;let o=hm.find(([i])=>MO(i,t.type));if(o)try{let i=o[1].formatter(t);if(i)return i.id=t.id,i.uiWeightSum=i.widgets.reduce((a,s)=>a+(s.uiWeight||12),0),i}catch(i){return{id:t.id,title:r,uiWeightSum:12,widgets:[{outputType:"error",value:ge("convert widget {0} failed:",o[0])+(i.message||i||"")+(i?.stack||"")}]}}if(!r.startsWith("#"))return null;let n=t.widgets;return{id:t.id,title:r,uiWeightSum:n.reduce((i,a)=>i+(a.uiWeight||12),0),widgets:n.map(i=>({value:i.value,name:i.label||i.name,outputType:i.type||"string",options:i.options}))}}).filter(Boolean).sort((t,r)=>{let o=mm(t),n=mm(r);return o=o.startsWith("#")?o.slice(1).trim():o.trim(),n=n.startsWith("#")?n.slice(1).trim():n.trim(),o.localeCompare(n)})}function MO(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function mm(e,t=""){let r=t||e.title;return e.setProperty&&(r.startsWith("#")||r.startsWith("."))?e.setProperty("sdppp_widgetable_title",r):r=e.properties?.sdppp_widgetable_title||r,r}sa.getNodeTitle=mm;var g5=new Map,ll=g5;function kO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=Or.workflowManager||Or.extensionManager.workflow,this.socket.on("F_workflow",async(r,o)=>{if(r.action=="open"||r.action=="save"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout")try{let n=await this[r.action](r.params);o(n||{})}catch(n){o({error:n.stack||n.message||n})}else o({error:"Invalid action"})})}async logout(){this.socket.disconnect(),document.querySelector(".pi-sign-out").parentElement.click()}async run(t){let r=t.size,o=t.from_sid;for(let i=0;i0){let d=Object.keys(f)[0];return{nodeID:parseInt(d),error:f[d].errors.map(JSON.stringify).join(` `)}}return null};var n=c;let a=await Or.graphToPrompt(),s=null,l="";try{let f=await an.queuePrompt(0,a);f.node_errors&&(console.log("node_errors",f.node_errors),s=c(f.node_errors)),l=f.prompt_id}catch(f){f.response?s=c(f.response.node_errors):s={nodeID:0,error:f.stack}}if(s){ht.setLastError(s.error,s.nodeID);break}ll.set(l,o);for(let f of a.workflow.nodes){let d=Or.graph.getNodeById(f.id);if(d.widgets)for(let m of d.widgets)m.afterQueued&&m.afterQueued()}this.workflowManager.activeWorkflow.changeTracker.checkState()}}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:o,value:n})=>{let i=Or.graph.nodes.find(a=>a.id==r);!i||n==i.widgets[o].value||gm(i,o,n)})}async open(t){let{workflow_path:r}=t;r.startsWith("sdppp://")?this.openSDPPPWorkflow(t):this.openComfyWorkflow(t)}async openSDPPPWorkflow(t){let r=t.from_sid,o=t.workflow_path.replace("sdppp://",""),n=await fetch("/sd-ppp-static/sdppp-workflows/"+o).then(a=>a.json());await Or.loadGraphData(n);let i=Nn(Or.graph);ht.setCurrentForm(i),await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:r,params:{nodeIndexes:i.reduce((a,s)=>(s.widgets.forEach((l,c)=>{a.push({nodeTitle:s.title,widgetIndex:c})}),a),[])}},a=>{this.setWidgetValue(a)})}async openComfyWorkflow(t){let{workflow_path:r,from_sid:o,reset:n}=t,i=this.workflowManager.workflows.find(s=>s.fullFilename===r||s.path===r||s.path==="workflows/"+r);if((i.isOpen||this.workflowManager.isOpen?.(i))&&!n)return;this.workflowManager.openWorkflows.length===1?await Or.loadGraphData(AO):await LO(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(s=>requestAnimationFrame(s)),await LO(this.workflowManager,i),await new Promise(s=>setTimeout(s,300));let a=Nn(Or.graph);ht.setCurrentForm(a),await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:o,params:{nodeIndexes:a.reduce((s,l)=>(l.widgets.forEach((c,u)=>{s.push({nodeTitle:l.title,widgetIndex:u})}),s),[])}},s=>{this.setWidgetValue(s)})}async save(t){let{workflow_path:r,from_sid:o}=t,n=this.workflowManager.workflows.find(i=>i.fullFilename===r||i.path===r||i.path==="workflows/"+r);if(!n)throw new Error("Workflow not found");this.workflowManager.activeWorkflow?.id!=n.id&&this.open({workflow_path:r,from_sid:o,reset:!1}),n.changeTracker.checkState(),await this.workflowManager.saveWorkflow(n)}setNodeTitle(t){let{node_id:r,title:o}=t,n=Or.graph.nodes.find(i=>i.id==r);if(!n)throw new Error("Node not found");n.title=o,n.setProperty("sdppp_widgetable_title",o)}}}async function LO(e,t){Or.workflowManager==e?await t.load():(await e.openWorkflow(t),await Or.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var In=class e extends $O(eO(ht,"comfy"),tO(sn,"photoshop"),DO,kO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};var vm=class{widget;node;originLabel="";indexInNode=0;constructor(t,r){this.widget=r,this.node=t,this.indexInNode=t.widgets.indexOf(r);let o=this;r.callback=function(...n){o.widget!=this&&(o.widget=o.node.widgets[o.indexInNode]=this),o._callbacks.forEach(i=>i(...n))},this.originLabel=r.label}_callbacks=[];onChange(t){this._callbacks.push(t)}removeOnChange(t){this._callbacks.splice(this._callbacks.indexOf(t),1)}},ym=class extends vm{lockMode(t,r){if(t){if(this.widget.type=="button")return;this.widget.type="button",this.widget.value="",this.widget.label=r}else{if(this.widget.type=="combo")return;this.widget.type="combo",this.widget.value="",this.widget.label=this.originLabel}}},Li=class e extends ym{static create(t,r){let o=Px(),n=t.size.slice(0),i=t.addWidget("combo",r,o[0]||"",()=>{},{forceInput:!0,values:Px});return i.serializeValue=async()=>{let a=nm(i.value);return a?JSON.stringify({instance_id:a.instance_id,identify:a.identify}):""},t.size=[n[0],Math.max(n[1],t.size[1])],new e(t,i)}static link(t,r){if(r.type=="combo")return new e(t,r);let o=e.create(t,r.name),n=t.widgets.indexOf(r);return t.widgets[n]=t.widgets.pop(),o}constructor(t,r){super(t,r),this.onChange(o=>{if(!isNaN(+o))r.value=Object.keys(r.options.values)[+o];else if(typeof o=="string"){let n=o.split("/");Ir.is_SPECIAL_DOCUMENT_CURRENT(n[1])&&(r.value=n[0]+"/"+Ir.getSpecialDocumentCurrent())}})}update(){zO(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Ir.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=sn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=Tx(r.data.documents[r.data.activeDocumentID].identify,t)}}},ii=class extends ym{documentWidgetByLinked=null;extraOptions;constructor(t,r,o){super(t,r),this.extraOptions=o.extraOptions,this.update=this.update.bind(this),this.onChange(n=>{this.node.setProperty("layerWidgetDetail"+this.indexInNode,this.currentOptionsDetail[Object.values(this.currentOptions).indexOf(this.widget.value)]),typeof n=="string"&&(n=Ir.fixI18n(n))})}static create(t,r,o){let n=t.size.slice(0),i=t.addWidget("combo",r,o.extraOptions[0]||"",()=>{},{forceInput:!0,values:o.extraOptions});return t.size=[n[0],Math.max(n[1],t.size[1])],new Gx(t,i,{documentWidgetInNode:o.documentWidgetInNode,extraOptions:o.extraOptions})}linkDocumentWidget(t){this.documentWidgetByLinked&&t?.removeOnChange(this.update),this.documentWidgetByLinked=t,this.documentWidgetByLinked&&this.documentWidgetByLinked.onChange(this.update)}update(){let t=this.documentWidgetByLinked;this.updateOptions(t)}currentOptions=[];currentOptionsDetail=[];updateOptions(t){if(this.currentOptions=this.extraOptions.slice(0),this.currentOptionsDetail=new Array(this.currentOptions.length).fill({id:0,name:"",identify:"",level:0,fullPath:""}),t&&t.widget.value){let r=nm(t.widget.value);if(!r)return;r.documentData.layers.map(o=>{this.currentOptions.push(o.identify),this.currentOptionsDetail.push(o)})}if(this.widget.options.values=this.currentOptions,Object.values(this.currentOptions).indexOf(this.widget.value)==-1){let r=this.node.properties["layerWidgetDetail"+this.indexInNode];if(r){let o=this.currentOptionsDetail.findIndex(n=>n.fullPath==r.fullPath);if(o!=-1){this.widget.value=this.currentOptions[o];return}}}}},v5={extraOptions:[],documentWidgetInNode:null},Gx=class extends ii{documentWidgetInNode;constructor(t,r,o=v5){super(t,r,o),this.documentWidgetInNode=o.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=ZR(t.widget.value,this.extraOptions),zO(this.widget,this.widget.options.values))}},FO=0,wc=class extends vm{constructor(t,r){if(!r){let o=t.size.slice(0);r=t.addWidget("button","sdppp","",()=>{}),t.size=[o[0],Math.max(o[1],t.size[1])],r.serializeValue=async()=>{let n={ps_maxGetImageWH:ht.data.maxImageWH},i=Nx(t);if(i?.widgets[0]){let a=await i.widgets[0].serializeValue();try{n.document=JSON.parse(a)}catch{return""}}return JSON.stringify(n)}}super(t,r),this.onChange(()=>{sn.storeCount()==0&&Date.now()-FO>3e3&&(FO=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`

${ge("How to use .ccx file")}

${ge("1. If you have installed Adobe Creative Cloud")}

${ge("Just double click the .ccx file, it will install the plugin automatically")}

${ge("2. If you don't have Adobe Creative Cloud")}

${ge("Rename .ccx to .zip and extract it into ")}[${ge("Photoshop directory")}]/Plug-ins ${ge("or")} [${ge("Photoshop directory")}]/Plug-ins/Generator

`)},300))})}update(){this.widget.label=sn.storeCount()>0&&In.instance.id?ge("current ComfyUI pageid: {0}",In.instance.id.slice(0,4)):ge("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function zO(e,t,r=!1){t instanceof Function&&(t=t()),e.value||(e.value=t[0]),t.indexOf(e.value)==-1&&r&&(e.value=t[0])}var fa=class extends ni{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new wc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||JR()||(t.save(),t.fillStyle="rgba(255, 0, 0, 0.2)",t.fillRect(0,0,this.node.size[0],this.node.size[1]),t.fillStyle="white",t.textAlign="center",t.fillText(ge("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var xm=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},Tf=class extends xm{get documentWidget(){return BO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},Nf=class extends xm{get documentWidget(){return BO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function BO(e,t){if(!e.graph.links[t.link])return null;let r=e.graph.links[t.link].origin_id,o=e.graph.getNodeById(r);for(;o.type=="Reroute";)r=e.graph.links[o.inputs[0].link].origin_id,o=e.graph.getNodeById(r);return ni.nodeMap.get(o)}var ai=class extends fa{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof Tf||r instanceof Nf));return t?t.documentWidget:this.widgets.find(r=>r instanceof Li)}inputs=[];widgets=[];constructor(t){super(t);let r=null;for(let o=0;o{if(!t.label)try{t.label=ge(t.name)}catch{t.label=t.name}}),this.widgets?.forEach(t=>{t.update()}),this.inputs?.forEach(t=>{t.update()}),super.update()}inputConnectionChange(t,r){super.inputConnectionChange(t,r),this.inputs.forEach(o=>{if(o.index==t){o.connected=r;let n=this.documentWidget;this.downloadWidget&&this.downloadWidget.linkDocumentWidget(n),this.widgets.forEach(i=>{(i instanceof ii||i instanceof wc)&&i.linkDocumentWidget(n)})}})}};var bm=class extends ai{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ge(t.name)),this.node.outputs.forEach(t=>t.label=ge(t.name))}},Ec=class extends ai{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ge(t.name)),this.node.outputs.forEach(t=>t.label=ge(t.name))}},Sm=class extends ai{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ge(t.name)),this.node.outputs.forEach(t=>t.label=ge(t.name))}},Cm=class extends ai{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ge(t.name)),this.node.outputs.forEach(t=>t.label=ge(t.name))}},wm=class extends ai{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ge(t.name)),this.node.outputs.forEach(t=>t.label=ge(t.name))}},Em=class extends fa{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;async update(){this.documentWidget?.lockMode(this.layerConnected,ge("document linked")),this.layerWidget?.lockMode(this.layerConnected,ge("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=ge(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=ge(this.node.widgets[1].name)),this.node.inputs[0].label=ge(this.node.inputs[0].name),this.node.outputs[0].label=ge(this.node.outputs[0].name)}constructor(t){let r=Li.create(t,"document"),o=ii.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:[]});super(t),this.documentWidget=r,this.layerWidget=o}layerConnected=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerConnected=r)}},Rm=class extends ai{get documentWidget(){return this.widgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&In.instance.exportPSDDataURLToPhotoshop(t,r,this.node.properties.psd).then(async()=>{await new Promise(o=>setTimeout(o,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}constructor(t){super(t),this.psdWidget=t.addWidget("button","","",()=>{if(!this.documentWidget.widget.value)return;let r=sn.getAllPhotoshopDocumentData(),[o,n]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[o].sid,n):In.instance.importPSDDataURLFromPhotoshop(r[o].sid,n).then(i=>{this.node.setProperty("psd",i)})},{})}async update(){super.update(),this.node.outputs.forEach(t=>t.label=ge(t.name)),this.node.properties.psd?(ht.setHasPSDNodes(!0),this.psdWidget.label=ge("extract saved .psd to Photoshop")):(ht.setHasPSDNodes(!1),this.psdWidget.label=ge("save .psd to this workflow"))}};var Om=class extends fa{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Li.create(t,"document"),o=ii.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Ir.getSpecialLayerForGet()});super(t),this.documentWidget=r,this.layerWidget=o,this.node.widgets[0]=r.widget,this.node.widgets[1]=o.widget}onConfigure(t){if(t.properties["sdppp-version"]){if(+t.properties["sdppp-version"]<=410){if(this.node.widgets[0].value===!0||this.node.widgets[0].value==="true"){let r=comfyAPI.app.app.addNodeOnGraph(Pm["SDPPP Get Selection"],{pos:this.node.pos});new Ec(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(Pm.JoinImageWithAlpha,{pos:[this.node.pos[0]+r.size[0]+10,this.node.pos[1]-20]}):r.size=this.node.size,comfyAPI.app.app.graph.remove(this.node)}this.node.widgets[0].value=t.widgets_values[1],this.node.widgets[1].value=t.widgets_values[2]}}super.onConfigure(t)}async update(){this.documentWidget.lockMode(this.layerLinked,ge("document linked")),this.layerWidget.lockMode(this.layerLinked,ge("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=ge(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=ge(this.node.widgets[1].name)),this.node.inputs[0].label=ge(this.node.inputs[0].name),this.node.inputs[1].label=ge(this.node.inputs[1].name),this.node.outputs[0].label=ge(this.node.outputs[0].name),this.node.outputs[1].label=ge(this.node.outputs[1].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},_m=class extends fa{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Li.create(t,"document"),o=ii.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Ir.getSpecialLayerForSend()});super(t),this.documentWidget=r,this.layerWidget=o}async update(){this.documentWidget?.lockMode(this.layerLinked,ge("document linked")),this.layerWidget?.lockMode(this.layerLinked,ge("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=ge(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=ge(this.node.widgets[1].name)),this.node.inputs[0].label=ge(this.node.inputs[0].name),this.node.inputs[1].label=ge(this.node.inputs[1].name),this.node.inputs[2].label=ge(this.node.inputs[2].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==1&&(this.layerLinked=r)}};var qx={"Get Image From Photoshop Layer":Om,"Send Images To Photoshop":_m,"SDPPP Get Text From Layer":Em,"SDPPP Parse Layer Info":Sm,"SDPPP Get Linked Layers":wm,"SDPPP Get Layers In Group":Cm,"SDPPP Get Layer By ID":bm,"SDPPP Get Document":Rm,"SDPPP Get Selection":Ec},Pm={};function jO(e,t){let r=e.comfyClass||t.name;if(Pm[r]=t,r in qx)e.title=ge(t.display_name),t.display_name=ge(t.display_name),ni.registerNodeType(e,t,qx[r]);else if(r.startsWith("workflow")&&comfyAPI.groupNode.GroupNodeHandler.getGroupData(e)){let o=comfyAPI.groupNode.GroupNodeHandler.getGroupData(e),n=!1;o.nodeData.nodes.forEach((i,a)=>{i.type in qx&&(n=!0)}),n&&ni.registerNodeType(e,t,ai)}else return}var zR=E(bN(),1),BR=E(N(),1);var SN=`#sdppp-popup-root { width: 100%; height: 100%; position: absolute; top: 0; left: 0; padding: 16px; background: var(--bg-color); align-items: stretch; justify-content: stretch; } .sdppp-menu-container { box-sizing: content-box; overflow-y: hidden; display: flex; flex-direction: column; align-items: stretch; min-width: 0; flex: 1; } .sdppp-menu-header { display: flex; flex-direction: row; gap: 10px; color: var(--fg-color); padding-bottom: 5px; border-bottom: 2px solid rgba(127, 127, 127, .4); align-items: center; justify-content: space-between; } .sdppp-menu-header button { text-align: center; background: var(--comfy-input-bg); border: none; box-shadow: none; } .sdppp-menu-header button:hover { background-color: var(--border-color); } .sdppp-menu-header button.active { background-color: var(--primary-bg); } .sdppp-menu-header button.active:hover { background-color: var(--primary-hover-bg); } .sdppp-menu-content { gap: 10px; flex: 1; min-height: 0; width: 100%; min-width: 0; overflow-x: hidden; } .sdppp-close-button { height: 30px; width: 30px; top: 10px; right: 10px; position: absolute; overflow: hidden; } .settings-container { padding: 10px; color: white; } .settings-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 15px; } .settings-section label { text-align: left; padding-right: 10px; } .settings-section input[type="number"] { width: 100%; padding: 5px; border-radius: 4px; border: 1px solid #666; background: var(--comfy-input-bg); color: var(--fg-color); } .settings-section .download-button { width: auto; padding: 5px 10px; border-radius: 4px; border: 1px solid #666; background: var(--comfy-input-bg); color: var(--fg-color); cursor: pointer; margin-right: 5px; } .settings-section .download-button:last-child { margin-right: 0; } .settings-section div:has(.download-button) { display: flex; justify-content: flex-start; gap: 5px; } .settings-section p { grid-column: 1 / -1; margin: 0; } .settings-container h2 { margin-top: 0; margin-bottom: 20px; } .settings-control { display: flex; gap: 5px; align-items: center; } .settings-control input[type="number"] { width: 100%; min-width: 80px; } .settings-label { display: flex; align-items: center; } .sdppp-menu-workflow-edit-wrap { font-size: 12px; width: 100%; height: 100%; } .sdppp-menu-workflow-edit-wrap p { margin: 0; padding: 0; color: var(--descrip-text) } .workflow-edit-content { display: flex; flex-direction: column; gap: 10px; } .workflow-edit-field { display: flex; flex-direction: column; width: 100%; } @media (min-width: 639px) { .workflow-edit-content { flex-wrap: wrap; height: 100%; overflow-y: hidden; overflow-x: scroll; } .workflow-edit-field { max-width: 320px; } } .workflow-edit-field-title { color: var(--fg-color); font-size: 14px; border-left: 4px solid rgba(127, 127, 127, .4); padding: 2px 2px 2px 5px; margin: 3px 0; display: inline-flex; } .workflow-edit-field { color: var(--fg-color); display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; } .sdppp-side-icon { width: 64px; height: 64px; mask-image: url("./sd-ppp-static/sdppp-icon.svg"); mask-size: 36px; mask-position: center; mask-repeat: no-repeat; background-color: currentColor; } .sdppp-side-container { display: flex; width: 100%; height: 100%; flex-direction: column; position: relative; padding-top: 32px; } .sdppp-side-container .sdppp-side-header { position: absolute; top: 0; width: 100%; display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: flex-end; } .sdppp-side-container .sdppp-side-header button { width: 32px; height: 32px; } `;var Wp=E(N(),1);var RN=E(N(),1);var So=E(Nt(),1),Wz=()=>{let[e,t]=(0,RN.useState)(ht.data.maxImageWH),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()};return(0,So.jsxs)("div",{className:"settings-container",children:[(0,So.jsx)("h2",{children:ge("SDPPP Settings/Misc")}),(0,So.jsx)("div",{className:"settings-section",children:(0,So.jsx)("p",{children:ge("Comfy URL: {0}",location.origin)})}),(0,So.jsxs)("div",{className:"settings-section settings-row",children:[(0,So.jsx)("div",{className:"settings-label",children:(0,So.jsx)("label",{htmlFor:"maxImageSize",children:ge("Maximum Image Size (px):")})}),(0,So.jsx)("div",{className:"settings-control",children:(0,So.jsx)("input",{type:"number",id:"maxImageSize",value:e,onChange:o=>{let n=o.currentTarget.value?parseInt(o.currentTarget.value):0;isNaN(n)||(ht.setMaxImageWH(n),t(n),an.storeSetting("sdppp.maxImageWH",n))},min:"256"})})]}),(0,So.jsxs)("div",{className:"settings-section settings-row",children:[(0,So.jsx)("div",{className:"settings-label",children:(0,So.jsx)("label",{children:ge("Photoshop plugin")})}),(0,So.jsx)("div",{className:"settings-control",children:(0,So.jsx)("button",{onClick:r,className:"download-button",children:ge("Download")})})]})]})},ON=Wz;var _6=E(N(),1);var ng=E(N(),1);var PN=E(N(),1);var _N=E(N(),1);function tu(e){return{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var Hi=class extends PN.default.Component{computeUIWeightCSS(t){return tu(t)}};var Jh=E(Nt(),1),eg=class extends Hi{state={filter:""};handleSelectUpdate=(t,r)=>{this.props.onSelectUpdate(t,r),this.setState({filter:""})};render(){let{options:t,value:r}=this.props;return(0,Jh.jsx)("sp-picker",{class:"sdppp-dropdown-widget",size:"s",style:{...this.computeUIWeightCSS(this.props.uiWeight)},children:(0,Jh.jsx)("sp-menu",{slot:"options",children:t.map((o,n)=>this.state.filter&&!o.includes(this.state.filter)?"":(0,Jh.jsx)("sp-menu-item",{...Zh(o)===Zh(r)?{selected:!0}:{},onClick:()=>this.handleSelectUpdate(o,n),children:Zh(o)},Zh(o)))})})}};function Zh(e){return typeof e=="string"?e:e.content}var TN=E(Nt(),1),tg=class extends Hi{onInput=t=>{let r=+t.target.value;this.setState({value:+r.toFixed(3)}),this.props.onValueChange(r)};render(){let t=+(this.props.value||0).toFixed(3);return(0,TN.jsx)("sp-textfield",{style:{...this.computeUIWeightCSS(this.props.uiWeight)},onInput:this.onInput,value:t})}};var NN=E(N(),1);var wd=E(Nt(),1);var rg=class extends Hi{hiddenDivRef=NN.default.createRef();heightChecker=setInterval(()=>{if(this.hiddenDivRef.current){let t=this.hiddenDivRef.current.offsetHeight;t!==this.state.hiddenDivHeight&&this.setState({hiddenDivHeight:t,textfieldRerender:this.state.editing?2:1})}},16);debounceTimeout=null;state={hiddenDivHeight:0,editing:!1,textfieldRerender:0};componentWillUnmount(){clearInterval(this.heightChecker),this.debounceTimeout&&clearTimeout(this.debounceTimeout)}onInput=t=>{let r=t.target.value;this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.props.onValueChange(r)},300)};onFocus=()=>{this.setState({editing:!0})};onBlur=()=>{let t={textfieldRerender:this.state.textfieldRerender,editing:!1};this.state.textfieldRerender==2&&(t.textfieldRerender=1),this.setState(t)};shouldComponentUpdate(t,r){return r.textfieldRerender==1&&r.textfieldRerender!=this.state.textfieldRerender&&Promise.resolve().then(async()=>{await new Promise(requestAnimationFrame),this.setState({textfieldRerender:0})}),!0}render(){return(0,wd.jsxs)("div",{className:"widget-container",style:{...this.computeUIWeightCSS(this.props.uiWeight),position:"relative",height:Math.max(55,this.state.hiddenDivHeight)},children:[this.state.textfieldRerender==1?"":(0,wd.jsx)("sp-textarea",{style:{position:"absolute",height:"100%",width:"100%",top:0,left:0},value:this.props.value,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),(0,wd.jsx)("p",{ref:this.hiddenDivRef,style:{fontSize:14,visibility:"hidden",whiteSpace:"pre-line"},children:this.props.value})]})}};var IN=E(Nt(),1),og=class extends Hi{onInput=t=>{let r=!!t.target.value;this.setState({value:r}),this.props.onValueChange(r)};render(){let t=this.props.value?{checked:!0}:{};return(0,IN.jsx)("sp-checkbox",{label:this.props.name||"",style:{...this.computeUIWeightCSS(this.props.uiWeight)},onInput:r=>{this.props.onValueChange(r.target.checked)},...t,children:this.props.name||""})}};var lo=E(Nt(),1);function mC({formDatas:e,onWidgetRender:t,onWidgetChange:r,onTitleRender:o}){let n=(0,ng.useMemo)(()=>e.map(i=>{let a=(s,l,c)=>{if(!s.keepRender)return s;if(l.outputType==="error")return s.result.push((0,lo.jsx)("span",{className:"list-error-label",children:l.value})),s;if(!t?.(s,i,l,c))if(l.outputType==="number"){let u=l.options?.min??0,f=l.options?.max??100,d=l.options?.step??1;s.result.push((0,lo.jsx)(tg,{uiWeight:l.uiWeight||12,inputMin:u,inputMax:f,inputStep:d,value:parseFloat(l.value),onValueChange:m=>{r(i.id,c,m,i)}},c))}else l.outputType==="combo"?s.result.push((0,lo.jsx)(eg,{uiWeight:l.uiWeight||12,options:l.options?.values||[],onSelectUpdate:u=>{r(i.id,c,u,i)},value:l.value},c)):l.outputType==="toggle"?s.result.push((0,lo.jsx)(og,{uiWeight:l.uiWeight||12,name:l.name,value:l.value,onValueChange:u=>{r(i.id,c,u,i)}},c)):s.result.push((0,lo.jsx)(rg,{uiWeight:l.uiWeight||12,value:typeof l.value=="string"?l.value:JSON.stringify(l.value),onValueChange:u=>{r(i.id,c,u,i)}},c));return s};return(0,lo.jsxs)("div",{className:"workflow-edit-field",children:[(0,lo.jsx)("div",{className:"workflow-edit-field-title",title:i.title,style:{...tu(i.uiWeightSum<=8&&i.widgets.length==1?4:12)},children:o?o(i.title,i):(0,lo.jsx)("span",{children:i.title})}),i.widgets.reduce(a,{keepRender:!0,result:[]}).result.map((s,l)=>(0,lo.jsx)(pC,{children:s},l))]},i.id)}),[e,t,r,o]);return(0,lo.jsxs)(lo.Fragment,{children:[e?.length?"":(0,lo.jsx)("span",{className:"list-error-label",children:ge("no suitable node to control in this workflow")}),(0,lo.jsx)("div",{className:"workflow-edit-content",children:n})]})}var pC=class extends ng.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,lo.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=[];return $N.default.Children.forEach(e,function(o){o==null&&!t.keepEmpty||(Array.isArray(o)?r=r.concat(hi(o)):Ed(o)&&o.props?r=r.concat(hi(o.props.children,t)):r.push(o))}),r}var hC={},Gz=[],qz=function(t){Gz.push(t)};function El(e,t){if(0)var r}function Kz(e,t){if(0)var r}function DN(){hC={}}function AN(e,t,r){!t&&!hC[r]&&(e(!1,r),hC[r]=!0)}function ag(e,t){AN(El,e,t)}function MN(e,t){AN(Kz,e,t)}ag.preMessage=qz;ag.resetWarned=DN;ag.noteOnce=MN;var Kt=ag;function LN(e,t){if(ie(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(ie(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sg(e){var t=LN(e,"string");return ie(t)=="symbol"?t:t+""}function T(e,t,r){return(t=sg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function P(e){for(var t=1;t=19)return!0;var n=(0,Rd.isMemo)(t)?t.type.type:t.type;return!(typeof n=="function"&&!((r=n.prototype)!==null&&r!==void 0&&r.render)&&n.$$typeof!==Rd.ForwardRef||typeof t=="function"&&!((o=t.prototype)!==null&&o!==void 0&&o.render)&&t.$$typeof!==Rd.ForwardRef)};function HN(e){return(0,yg.isValidElement)(e)&&!Ed(e)}var ys=function(t){if(t&&HN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var Pr=E(N());var vi=E(N()),xg=vi.createContext(null);function UN(e){var t=e.children,r=e.onBatchResize,o=vi.useRef(0),n=vi.useRef([]),i=vi.useContext(xg),a=vi.useCallback(function(s,l,c){o.current+=1;var u=o.current;n.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===o.current&&(r?.(n.current),n.current=[])}),i?.(s,l,c)},[r,i]);return vi.createElement(xg.Provider,{value:a},t)}var qN=function(){if(typeof Map<"u")return Map;function e(t,r){var o=-1;return t.some(function(n,i){return n[0]===r?(o=i,!0):!1}),o}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(r){var o=e(this.__entries__,r),n=this.__entries__[o];return n&&n[1]},t.prototype.set=function(r,o){var n=e(this.__entries__,r);~n?this.__entries__[n][1]=o:this.__entries__.push([r,o])},t.prototype.delete=function(r){var o=this.__entries__,n=e(o,r);~n&&o.splice(n,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,o){o===void 0&&(o=null);for(var n=0,i=this.__entries__;n0},e.prototype.connect_=function(){!xC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nB?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!xC||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,o=r===void 0?"":r,n=oB.some(function(i){return!!~o.indexOf(i)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),KN=function(e,t){for(var r=0,o=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof ru(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new pB(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 ru(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.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(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(o){return new mB(o.target,o.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),YN=typeof WeakMap<"u"?new WeakMap:new qN,QN=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 r=iB.getInstance(),o=new hB(t,r,this);YN.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){QN.prototype[e]=function(){var t;return(t=YN.get(this))[e].apply(t,arguments)}});var gB=function(){return typeof bg.ResizeObserver<"u"?bg.ResizeObserver:QN}(),ZN=gB;var xs=new Map;function vB(e){e.forEach(function(t){var r,o=t.target;(r=xs.get(o))===null||r===void 0||r.forEach(function(n){return n(o)})})}var JN=new ZN(vB);function eI(e,t){xs.has(e)||(xs.set(e,new Set),JN.observe(e)),xs.get(e).add(t)}function tI(e,t){xs.has(e)&&(xs.get(e).delete(t),xs.get(e).size||(JN.unobserve(e),xs.delete(e)))}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rI(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,o=Array(t);r1&&arguments[1]!==void 0?arguments[1]:1;uI+=1;var o=uI;function n(i){if(i===0)pI(o),t();else{var a=fI(function(){n(i-1)});bC.set(o,a)}}return n(r),o};mI.cancel=function(e){var t=bC.get(e);return pI(e),dI(t)};var ft=mI;var Zt=E(N());function Rg(e){if(Array.isArray(e))return e}function hI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=i.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(u){c=!0,n=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw n}}return s}}function Og(){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 B(e,t){return Rg(e)||hI(e,t)||ou(e,t)||Og()}function CB(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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)}var Ss=CB;function Vt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nu(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var gI="data-rc-order",vI="data-rc-priority",wB="rc-util-key",SC=new Map;function yI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):wB}function _g(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function EB(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function CC(e){return Array.from((SC.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function xI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Vt())return null;var r=t.csp,o=t.prepend,n=t.priority,i=n===void 0?0:n,a=EB(o),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(gI,a),s&&i&&l.setAttribute(vI,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=_g(t),u=c.firstChild;if(o){if(s){var f=(t.styles||CC(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(gI)))return!1;var m=Number(d.getAttribute(vI)||0);return i>=m});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function bI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=_g(t);return(t.styles||CC(r)).find(function(o){return o.getAttribute(yI(t))===e})}function Gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=bI(e,t);if(r){var o=_g(t);o.removeChild(r)}}function RB(e,t){var r=SC.get(e);if(!r||!nu(document,r)){var o=xI("",t),n=o.parentNode;SC.set(e,n),e.removeChild(o)}}function co(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=_g(r),n=CC(o),i=P(P({},r),{},{styles:n});RB(o,i);var a=bI(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.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 u=xI(e,i);return u.setAttribute(yI(i),t),u}var DI=E(N());function SI(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Ne(e,t){if(e==null)return{};var r,o,n=SI(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,o=new Set;function n(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=o.has(i);if(Kt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;o.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(o=a)!==null&&o!==void 0&&o.value&&i&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(r){var o;return(o=this.internalGet(r,!0))===null||o===void 0?void 0:o[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,o){var n=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=B(c,2),d=f[1];return n.internalGet(u)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),EI+=1}return nt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(o,n){return n(r,o)},void 0)}}]),e}();var wC=new Td;function ws(e){var t=Array.isArray(e)?e:[e];return wC.has(t)||wC.set(t,new iu(t)),wC.get(t)}var AB=new WeakMap,EC={};function OI(e,t){for(var r=AB,o=0;o3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=P(P({},n),{},(o={},T(o,qi,t),T(o,Co,r),o)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var su=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").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()},MB=function(t,r,o){return Object.keys(t).length?".".concat(r).concat(o!=null&&o.scope?".".concat(o.scope):"","{").concat(Object.entries(t).map(function(n){var i=B(n,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Ng=function(t,r,o){var n={},i={};return Object.entries(t).forEach(function(a){var s,l,c=B(a,2),u=c[0],f=c[1];if(o!=null&&(s=o.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(o!=null&&(l=o.ignore)!==null&&l!==void 0&&l[u])){var d,m=su(u,o?.prefix);n[m]=typeof f=="number"&&!(o!=null&&(d=o.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(m,")")}}),[i,MB(n,r,{scope:o?.scope})]};var Ig=E(N());var lu=E(N());var _I=Vt()?lu.useLayoutEffect:lu.useEffect,PI=function(t,r){var o=lu.useRef(!0);_I(function(){return t(o.current)},r),_I(function(){return o.current=!1,function(){o.current=!0}},[])},Pl=function(t,r){PI(function(o){if(!o)return t()},r)},xt=PI;var OC=E(N()),LB=P({},OC),TI=LB.useInsertionEffect,kB=function(t,r,o){OC.useMemo(t,o),xt(function(){return r(!0)},o)},FB=TI?function(e,t,r){return TI(function(){return e(),t()},r)}:kB,NI=FB;var _C=E(N()),zB=P({},_C),BB=zB.useInsertionEffect,jB=function(t){var r=[],o=!1;function n(i){o||r.push(i)}return _C.useEffect(function(){return o=!1,function(){o=!0,r.length&&r.forEach(function(i){return i()})}},t),n},WB=function(){return function(t){t()}},VB=typeof BB<"u"?jB:WB,II=VB;function HB(){return!1}var $I=HB;function Tl(e,t,r,o,n){var i=Ig.useContext(xi),a=i.cache,s=[e].concat(le(t)),l=Pg(s),c=II([l]),u=$I(),f=function(v){a.opUpdate(l,function(x){var h=x||[void 0,void 0],p=B(h,2),y=p[0],S=y===void 0?0:y,b=p[1],w=b,C=w||r(),R=[S,C];return v?v(R):R})};Ig.useMemo(function(){f()},[l]);var d=a.opGet(l),m=d[1];return NI(function(){n?.(m)},function(g){return f(function(v){var x=B(v,2),h=x[0],p=x[1];return g&&h===0&&n?.(m),[h+1,p]}),function(){a.opUpdate(l,function(v){var x=v||[],h=B(x,2),p=h[0],y=p===void 0?0:p,S=h[1],b=y-1;return b===0?(c(function(){(g||!a.opGet(l))&&o?.(S,!1)}),null):[y-1,S]})}},[l]),m}var UB={},GB="css",Nl=new Map;function qB(e){Nl.set(e,(Nl.get(e)||0)+1)}function KB(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(qi,'="').concat(e,'"]'));r.forEach(function(o){if(o[yi]===t){var n;(n=o.parentNode)===null||n===void 0||n.removeChild(o)}})}}var XB=0;function YB(e,t){Nl.set(e,(Nl.get(e)||0)-1);var r=Array.from(Nl.keys()),o=r.filter(function(n){var i=Nl.get(n)||0;return i<=0});r.length-o.length>XB&&o.forEach(function(n){KB(n,t),Nl.delete(n)})}var AI=function(t,r,o,n){var i=o.getDerivativeToken(t),a=P(P({},i),r);return n&&(a=n(a)),a},PC="token";function $g(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=(0,DI.useContext)(xi),n=o.cache.instanceId,i=o.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?UB:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,m=OI(function(){return Object.assign.apply(Object,[{}].concat(le(t)))},t),g=au(m),v=au(c),x=d?au(d):"",h=Tl(PC,[s,e.id,g,v,x],function(){var p,y=f?f(m,c,e):AI(m,c,e,u),S=P({},y),b="";if(d){var w=Ng(y,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),C=B(w,2);y=C[0],b=C[1]}var R=RC(y,s);y._tokenKey=R,S._tokenKey=RC(S,s);var _=(p=d?.key)!==null&&p!==void 0?p:R;y._themeKey=_,qB(_);var O="".concat(GB,"-").concat(Ss(R));return y._hashId=O,[y,O,S,b,d?.key||""]},function(p){YB(p[0]._themeKey,n)},function(p){var y=B(p,4),S=y[0],b=y[3];if(d&&b){var w=co(b,Ss("css-variables-".concat(S._themeKey)),{mark:Co,prepend:"queue",attachTo:i,priority:-999});w[yi]=n,w.setAttribute(qi,S._themeKey)}});return h}var MI=function(t,r,o){var n=B(t,5),i=n[2],a=n[3],s=n[4],l=o||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=Es(a,s,u,d,c);return[f,u,m]};var s2=E(N());var _s=E(N());var QB={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},TC=QB;var Dg="comm",Ag="rule",Mg="decl";var LI="@import";var kI="@namespace",FI="@keyframes";var zI="@layer";var NC=Math.abs,Id=String.fromCharCode;function Lg(e){return e.trim()}function $d(e,t,r){return e.replace(t,r)}function BI(e,t,r){return e.indexOf(t,r)}function Rs(e,t){return e.charCodeAt(t)|0}function Os(e,t,r){return e.slice(t,r)}function gn(e){return e.length}function jI(e){return e.length}function cu(e,t){return t.push(e),e}var kg=1,uu=1,WI=0,Bn=0,Dr=0,du="";function Fg(e,t,r,o,n,i,a,s){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:kg,column:uu,length:a,return:"",siblings:s}}function VI(){return Dr}function HI(){return Dr=Bn>0?Rs(du,--Bn):0,uu--,Dr===10&&(uu=1,kg--),Dr}function jn(){return Dr=Bn2||fu(Dr)>3?"":" "}function KI(e,t){for(;--t&&jn()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return zg(e,Dd()+(t<6&&Ca()==32&&jn()==32))}function IC(e){for(;jn();)switch(Dr){case e:return Bn;case 34:case 39:e!==34&&e!==39&&IC(Dr);break;case 40:e===41&&IC(e);break;case 92:jn();break}return Bn}function XI(e,t){for(;jn()&&e+Dr!==57;)if(e+Dr===84&&Ca()===47)break;return"/*"+zg(t,Bn-1)+"*"+Id(e===47?e:jn())}function YI(e){for(;!fu(Ca());)jn();return zg(e,Bn)}function JI(e){return GI(jg("",null,null,null,[""],e=UI(e),0,[0],e))}function jg(e,t,r,o,n,i,a,s,l){for(var c=0,u=0,f=a,d=0,m=0,g=0,v=1,x=1,h=1,p=0,y="",S=n,b=i,w=o,C=y;x;)switch(g=p,p=jn()){case 40:if(g!=108&&Rs(C,f-1)==58){BI(C+=$d(Bg(p),"&","&\f"),"&\f",NC(c?s[c-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:C+=Bg(p);break;case 9:case 10:case 13:case 32:C+=qI(g);break;case 92:C+=KI(Dd()-1,7);continue;case 47:switch(Ca()){case 42:case 47:cu(ZB(XI(jn(),Dd()),t,r,l),l),(fu(g||1)==5||fu(Ca()||1)==5)&&gn(C)&&Os(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=gn(C)*h;case 125*v:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+u:h==-1&&(C=$d(C,/\f/g,"")),m>0&&(gn(C)-f||v===0&&g===47)&&cu(m>32?ZI(C+";",o,r,f-1,l):ZI($d(C," ","")+";",o,r,f-2,l),l);break;case 59:C+=";";default:if(cu(w=QI(C,t,r,c,u,n,s,y,S=[],b=[],f,i),i),p===123)if(u===0)jg(C,t,w,w,S,i,f,s,b);else{switch(d){case 99:if(Rs(C,3)===110)break;case 108:if(Rs(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?jg(e,w,w,o&&cu(QI(e,w,w,0,0,n,s,y,n,S=[],f,b),b),n,b,f,s,o?S:b):jg(C,w,w,w,[""],b,0,s,b)}}c=u=m=0,v=h=1,y=C="",f=a;break;case 58:f=1+gn(C),m=g;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&HI()==125)continue}switch(C+=Id(p),p*v){case 38:h=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(gn(C)-1)*h,h=1;break;case 64:Ca()===45&&(C+=Bg(jn())),d=Ca(),u=f=gn(y=C+=YI(Dd())),p++;break;case 45:g===45&&gn(C)==2&&(v=0)}}return i}function QI(e,t,r,o,n,i,a,s,l,c,u,f){for(var d=n-1,m=n===0?i:[""],g=jI(m),v=0,x=0,h=0;v0?m[p]+" "+y:$d(y,/&\f/g,m[p])))&&(l[h++]=S);return Fg(e,t,r,n===0?Ag:s,l,c,u,f)}function ZB(e,t,r,o){return Fg(e,t,r,Dg,Id(VI()),Os(e,2,-2),0,o)}function ZI(e,t,r,o,n){return Fg(e,t,r,Mg,Os(e,0,o),Os(e,o+1,-1),o,n)}function Wg(e,t){for(var r="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},n=o.root,i=o.injectHash,a=o.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,f=r.transformers,d=f===void 0?[]:f,m=r.linters,g=m===void 0?[]:m,v="",x={};function h(S){var b=S.getName(s);if(!x[b]){var w=e(S.style,r,{root:!1,parentSelectors:a}),C=B(w,1),R=C[0];x[b]="@keyframes ".concat(S.getName(s)).concat(R)}}function p(S){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(w){Array.isArray(w)?p(w,b):w&&b.push(w)}),b}var y=p(Array.isArray(t)?t:[t]);return y.forEach(function(S){var b=typeof S=="string"&&!n?{}:S;if(typeof b=="string")v+="".concat(b,` `);else if(b._keyframe)h(b);else{var w=d.reduce(function(C,R){var _;return(R==null||(_=R.visit)===null||_===void 0?void 0:_.call(R,C))||C},b);Object.keys(w).forEach(function(C){var R=w[C];if(ie(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!ij(R)){var _=!1,O=C.trim(),I=!1;(n||i)&&s?O.startsWith("@")?_=!0:O==="&"?O=n2("",s,u):O=n2(C,s,u):n&&!s&&(O==="&"||O==="")&&(O="",I=!0);var j=e(R,r,{root:I,injectHash:_,parentSelectors:[].concat(le(a),[O])}),L=B(j,2),W=L[0],z=L[1];x=P(P({},x),z),v+="".concat(O).concat(W)}else{let H=function(k,F){var U=k.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),V=F;!TC[k]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),k==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(h(F),V=F.getName(s)),v+="".concat(U,":").concat(V,";")};var M=H,$,D=($=R?.value)!==null&&$!==void 0?$:R;ie(R)==="object"&&R!==null&&R!==void 0&&R[i2]&&Array.isArray(D)?D.forEach(function(k){H(C,k)}):H(C,D)}})}}),n?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(x["@layer ".concat(l.name)]=l.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(l.name,";")}).join(` `))):v="{".concat(v,"}"),[v,x]};function AC(e,t){return Ss("".concat(e.join("%")).concat(t))}function sj(){return null}var MC="style";function Ps(e,t){var r=e.token,o=e.path,n=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=_s.useContext(xi),f=u.autoClear,d=u.mock,m=u.defaultCache,g=u.hashPriority,v=u.container,x=u.ssrInline,h=u.transformers,p=u.linters,y=u.cache,S=u.layer,b=r._tokenKey,w=[b];S&&w.push("layer"),w.push.apply(w,le(o));var C=Nd,R=Tl(MC,w,function(){var L=w.join("|");if(r2(L)){var W=o2(L),z=B(W,2),$=z[0],D=z[1];if($)return[$,b,D,{},s,c]}var M=t(),H=aj(M,{hashId:n,hashPriority:g,layer:S?i:void 0,path:o.join("-"),transformers:h,linters:p}),k=B(H,2),F=k[0],U=k[1],V=Vg(F),A=AC(w,V);return[V,b,A,U,s,c]},function(L,W){var z=B(L,3),$=z[2];(W||f)&&Nd&&Gi($,{mark:Co})},function(L){var W=B(L,4),z=W[0],$=W[1],D=W[2],M=W[3];if(C&&z!==DC){var H={mark:Co,prepend:S?!1:"queue",attachTo:v,priority:c},k=typeof a=="function"?a():a;k&&(H.csp={nonce:k});var F=[],U=[];Object.keys(M).forEach(function(A){A.startsWith("@layer")?F.push(A):U.push(A)}),F.forEach(function(A){co(Vg(M[A]),"_layer-".concat(A),P(P({},H),{},{prepend:!0}))});var V=co(z,D,H);V[yi]=y.instanceId,V.setAttribute(qi,b),U.forEach(function(A){co(Vg(M[A]),"_effect-".concat(A),H)})}}),_=B(R,3),O=_[0],I=_[1],j=_[2];return function(L){var W;if(!x||C||!m)W=_s.createElement(sj,null);else{var z;W=_s.createElement("style",Z({},(z={},T(z,qi,I),T(z,Co,j),z),{dangerouslySetInnerHTML:{__html:O}}))}return _s.createElement(_s.Fragment,null,W,L)}}var a2=function(t,r,o){var n=B(t,6),i=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],f=o||{},d=f.plain;if(c)return null;var m=i,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=Es(i,a,s,g,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var x=Vg(l[v]),h=Es(x,a,"_effect-".concat(v),g,d);v.startsWith("@layer")?m=h+m:m+=h}}),[u,s,m]};var LC="cssVar",lj=function(t,r){var o=t.key,n=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=(0,s2.useContext)(xi),f=u.cache.instanceId,d=u.container,m=s._tokenKey,g=[].concat(le(t.path),[o,c,m]),v=Tl(LC,g,function(){var x=r(),h=Ng(x,o,{prefix:n,unitless:i,ignore:a,scope:c}),p=B(h,2),y=p[0],S=p[1],b=AC(g,S);return[y,S,b,o]},function(x){var h=B(x,3),p=h[2];Nd&&Gi(p,{mark:Co})},function(x){var h=B(x,3),p=h[1],y=h[2];if(p){var S=co(p,y,{mark:Co,prepend:"queue",attachTo:d,priority:-999});S[yi]=f,S.setAttribute(qi,o)}});return v},l2=function(t,r,o){var n=B(t,4),i=n[1],a=n[2],s=n[3],l=o||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Es(i,s,a,f,c);return[u,a,d]},kC=lj;var Md,Die=(Md={},T(Md,MC,a2),T(Md,PC,MI),T(Md,LC,l2),Md);var cj=function(){function e(t,r){ot(this,e),T(this,"name",void 0),T(this,"style",void 0),T(this,"_keyframe",!0),this.name=t,this.style=r}return nt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}(),dt=cj;function pu(e){return e.notSplit=!0,e}var Bie={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:pu(["borderTop","borderBottom"]),borderBlockStart:pu(["borderTop"]),borderBlockEnd:pu(["borderBottom"]),borderInline:pu(["borderLeft","borderRight"]),borderInlineStart:pu(["borderLeft"]),borderInlineEnd:pu(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};var c2=E(N()),uj=(0,c2.createContext)({}),mu=uj;function Hg(e){return Rg(e)||Eg(e)||ou(e)||Og()}function uo(e,t){for(var r=e,o=0;o3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&r===void 0&&!uo(e,t.slice(0,-1))?e:f2(e,t,r,o)}function fj(e){return ie(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function u2(e){return Array.isArray(e)?[]:{}}var dj=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wa(){for(var e=arguments.length,t=new Array(e),r=0;r{let e=()=>{};return e.deprecated=pj,e};var p2=E(N()),m2=(0,p2.createContext)(void 0);var gu=E(N());var mj={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"},h2=mj;var g2={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var hj=P(P({},g2),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),v2=hj;var gj={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Gg=gj;var vj={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"]},v2),timePickerLocale:Object.assign({},Gg)},qg=vj;var y2=qg;var vn="${label} is not a valid ${type}",yj={locale:"en",Pagination:h2,DatePicker:qg,TimePicker:Gg,Calendar:y2,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:vn,method:vn,array:vn,object:vn,number:vn,date:vn,boolean:vn,integer:vn,float:vn,regexp:vn,email:vn,url:vn,hex:vn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},bi=yj;var zC=Object.assign({},bi.Modal),Kg=[],x2=()=>Kg.reduce((e,t)=>Object.assign(Object.assign({},e),t),bi.Modal);function b2(e){if(e){let t=Object.assign({},e);return Kg.push(t),zC=x2(),()=>{Kg=Kg.filter(r=>r!==t),zC=x2()}}zC=Object.assign({},bi.Modal)}var S2=E(N()),xj=(0,S2.createContext)(void 0),hu=xj;var Ld=E(N());var bj=(e,t)=>{let r=Ld.useContext(hu),o=Ld.useMemo(()=>{var i;let a=t||bi[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),n=Ld.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?bi.locale:i},[r]);return[o,n]},Si=bj;var C2="internalMark",Sj=e=>{let{locale:t={},children:r,_ANT_MARK__:o}=e;gu.useEffect(()=>b2(t?.Modal),[t]);let n=gu.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return gu.createElement(hu.Provider,{value:n},r)},w2=Sj;var X2=E(N());var BC={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"},Cj=Object.assign(Object.assign({},BC),{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}),Ea=Cj;var Yr=Math.round;function jC(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)o[n]=t(o[n]||0,r[n]||"",n);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}var E2=(e,t,r)=>r===0?e:e/100;function kd(e,t){let r=t||255;return e>r?r:e<0?0:e}var st=class e{constructor(t){T(this,"isValid",!0),T(this,"r",0),T(this,"g",0),T(this,"b",0),T(this,"a",1),T(this,"_h",void 0),T(this,"_s",void 0),T(this,"_l",void 0),T(this,"_v",void 0),T(this,"_max",void 0),T(this,"_min",void 0),T(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let i=function(a){return n.startsWith(a)};var o=i;let n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=kd(t.r),this.g=kd(t.g),this.b=kd(t.b),this.a=typeof t.a=="number"?kd(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),o=t(this.g),n=t(this.b);return .2126*r+.7152*o+.0722*n}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Yr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),o=this.getSaturation(),n=this.getLightness()-t/100;return n<0&&(n=0),this._c({h:r,s:o,l:n,a:this.a})}lighten(t=10){let r=this.getHue(),o=this.getSaturation(),n=this.getLightness()+t/100;return n>1&&(n=1),this._c({h:r,s:o,l:n,a:this.a})}mix(t,r=50){let o=this._c(t),n=r/100,i=s=>(o[s]-this[s])*n+this[s],a={r:Yr(i("r")),g:Yr(i("g")),b:Yr(i("b")),a:Yr(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),o=this.a+r.a*(1-this.a),n=i=>Yr((this[i]*this.a+r[i]*r.a*(1-this.a))/o);return this._c({r:n("r"),g:n("g"),b:n("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;let n=(this.b||0).toString(16);if(t+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=Yr(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=Yr(this.getSaturation()*100),o=Yr(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${o}%,${this.a})`:`hsl(${t},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,o){let n=this.clone();return n[t]=kd(r,o),n}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function o(n,i){return parseInt(r[n]+r[i||n],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:t,s:r,l:o,a:n}){if(this._h=t%360,this._s=r,this._l=o,this.a=typeof n=="number"?n:1,r<=0){let d=Yr(o*255);this.r=d,this.g=d,this.b=d}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*o-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=o-c/2;this.r=Yr((i+f)*255),this.g=Yr((a+f)*255),this.b=Yr((s+f)*255)}fromHsv({h:t,s:r,v:o,a:n}){this._h=t%360,this._s=r,this._v=o,this.a=typeof n=="number"?n:1;let i=Yr(o*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=Yr(o*(1-r)*255),u=Yr(o*(1-r*l)*255),f=Yr(o*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=jC(t,E2);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=jC(t,E2);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=jC(t,(o,n)=>n.includes("%")?Yr(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Xg=2,R2=.16,wj=.05,Ej=.05,Rj=.15,T2=5,N2=4,Oj=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function O2(e,t,r){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-Xg*t:Math.round(e.h)+Xg*t:o=r?Math.round(e.h)+Xg*t:Math.round(e.h)-Xg*t,o<0?o+=360:o>=360&&(o-=360),o}function _2(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-R2*t:t===N2?o=e.s+R2:o=e.s+wj*t,o>1&&(o=1),r&&t===T2&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function P2(e,t,r){var o;return r?o=e.v+Ej*t:o=e.v-Rj*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Ci(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new st(e),n=o.toHsv(),i=T2;i>0;i-=1){var a=new st({h:O2(n,i,!0),s:_2(n,i,!0),v:P2(n,i,!0)});r.push(a)}r.push(o);for(var s=1;s<=N2;s+=1){var l=new st({h:O2(n,s),s:_2(n,s),v:P2(n,s)});r.push(l)}return t.theme==="dark"?Oj.map(function(c){var u=c.index,f=c.amount;return new st(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ra={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"},WC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];WC.primary=WC[5];var VC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];VC.primary=VC[5];var HC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];HC.primary=HC[5];var UC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];UC.primary=UC[5];var GC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];GC.primary=GC[5];var qC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];qC.primary=qC[5];var KC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];KC.primary=KC[5];var XC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];XC.primary=XC[5];var Ts=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ts.primary=Ts[5];var YC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];YC.primary=YC[5];var QC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];QC.primary=QC[5];var ZC=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ZC.primary=ZC[5];var JC=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];JC.primary=JC[5];var Yg={red:WC,volcano:VC,orange:HC,gold:UC,yellow:GC,lime:qC,green:KC,cyan:XC,blue:Ts,geekblue:YC,purple:QC,magenta:ZC,grey:JC},I2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];I2.primary=I2[5];var $2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];$2.primary=$2[5];var D2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];D2.primary=D2[5];var A2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];A2.primary=A2[5];var M2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];M2.primary=M2[5];var L2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];L2.primary=L2[5];var k2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];k2.primary=k2[5];var F2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];F2.primary=F2[5];var z2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];z2.primary=z2[5];var B2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];B2.primary=B2[5];var j2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];j2.primary=j2[5];var W2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];W2.primary=W2[5];var V2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];V2.primary=V2[5];function ew(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:o}=t,{colorSuccess:n,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=r(l),d=r(n),m=r(i),g=r(a),v=r(s),x=o(c,u),h=e.colorLink||e.colorInfo,p=r(h),y=new st(g[1]).mix(new st(g[3]),50).toHexString();return Object.assign(Object.assign({},x),{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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:p[4],colorLink:p[6],colorLinkActive:p[7],colorBgMask:new st("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var _j=e=>{let t=e,r=e,o=e,n=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:n}},H2=_j;function tw(e){let{motionUnit:t,motionBase:r,borderRadius:o,lineWidth:n}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:n+1},H2(o))}var Pj=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},U2=Pj;function vu(e){return(e+8)/e}function rw(e){let t=Array.from({length:10}).map((r,o)=>{let n=o-1,i=e*Math.pow(Math.E,n/5),a=o>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:vu(r)}))}var Tj=e=>{let t=rw(e),r=t.map(u=>u.size),o=t.map(u=>u.lineHeight),n=r[1],i=r[0],a=r[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},G2=Tj;function ow(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var yn=(e,t)=>new st(e).setA(t).toRgbString(),yu=(e,t)=>new st(e).darken(t).toHexString();var q2=e=>{let t=Ci(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]}},K2=(e,t)=>{let r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorText:yn(o,.88),colorTextSecondary:yn(o,.65),colorTextTertiary:yn(o,.45),colorTextQuaternary:yn(o,.25),colorFill:yn(o,.15),colorFillSecondary:yn(o,.06),colorFillTertiary:yn(o,.04),colorFillQuaternary:yn(o,.02),colorBgSolid:yn(o,1),colorBgSolidHover:yn(o,.75),colorBgSolidActive:yn(o,.95),colorBgLayout:yu(r,4),colorBgContainer:yu(r,0),colorBgElevated:yu(r,0),colorBgSpotlight:yn(o,.85),colorBgBlur:"transparent",colorBorder:yu(r,15),colorBorderSecondary:yu(r,6)}};function nw(e){Ra.pink=Ra.magenta,Yg.pink=Yg.magenta;let t=Object.keys(BC).map(r=>{let o=e[r]===Ra[r]?Yg[r]:Ci(e[r]);return Array.from({length:10},()=>1).reduce((n,i,a)=>(n[`${r}-${a+1}`]=o[a],n[`${r}${a+1}`]=o[a],n),{})}).reduce((r,o)=>(r=Object.assign(Object.assign({},r),o),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),ew(e,{generateColorPalettes:q2,generateNeutralColorPalettes:K2})),G2(e.fontSize)),ow(e)),U2(e)),tw(e))}var Nj=ws(nw),Fd=Nj;var zd={token:Ea,override:{override:Ea},hashed:!0},Bd=X2.default.createContext(zd);var Qg=E(N()),Ns="ant",jd="anticon",iw=["outlined","borderless","filled","underlined"],Ij=(e,t)=>t||(e?`${Ns}-${e}`:Ns),et=Qg.createContext({getPrefixCls:Ij,iconPrefixCls:jd}),{Consumer:$j}=et,Y2={};function qo(e){let t=Qg.useContext(et),{getPrefixCls:r,direction:o,getPopupContainer:n}=t,i=t[e];return Object.assign(Object.assign({classNames:Y2,styles:Y2},i),{getPrefixCls:r,direction:o,getPopupContainer:n})}var Dj=`-ant-${Date.now()}-${Math.random()}`;function Aj(e,t){let r={},o=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},n=(a,s)=>{let l=new st(a),c=Ci(l.toRgbString());r[`${s}-color`]=o(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){n(t.primaryColor,"primary");let a=new st(t.primaryColor),s=Ci(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=o(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=o(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=o(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=o(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=o(a,c=>c.setA(c.a*.12));let l=new st(s[0]);r["primary-color-active-deprecated-f-30"]=o(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=o(l,c=>c.darken(2))}return t.successColor&&n(t.successColor,"success"),t.warningColor&&n(t.warningColor,"warning"),t.errorColor&&n(t.errorColor,"error"),t.infoColor&&n(t.infoColor,"info"),` :root { ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(` `)} } `.trim()}function Q2(e,t){let r=Aj(e,t);Vt()&&co(r,`${Dj}-dynamic-theme`)}var xu=E(N()),aw=xu.createContext(!1),Z2=e=>{let{children:t,disabled:r}=e,o=xu.useContext(aw);return xu.createElement(aw.Provider,{value:r??o},t)},Qr=aw;var lw=E(N());var bu=E(N()),sw=bu.createContext(void 0),J2=e=>{let{children:t,size:r}=e,o=bu.useContext(sw);return bu.createElement(sw.Provider,{value:r||o},t)},$l=sw;function Mj(){let e=(0,lw.useContext)(Qr),t=(0,lw.useContext)($l);return{componentDisabled:e,componentSize:t}}var e$=Mj;var ov=E(N());var Lj=nt(function e(){ot(this,e)}),Zg=Lj;var t$="CALC_UNIT",kj=new RegExp(t$,"g");function cw(e){return typeof e=="number"?"".concat(e).concat(t$):e}var r$=function(e){xr(r,e);var t=br(r);function r(o,n){var i;ot(this,r),i=t.call(this),T(Ve(i),"result",""),T(Ve(i),"unitlessCssVar",void 0),T(Ve(i),"lowPriority",void 0);var a=ie(o);return i.unitlessCssVar=n,o instanceof r?i.result="(".concat(o.result,")"):a==="number"?i.result=cw(o):a==="string"&&(i.result=o),i}return nt(r,[{key:"add",value:function(n){return n instanceof r?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(cw(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof r?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(cw(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var i=this,a=n||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(kj,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Zg);var Fj=function(e){xr(r,e);var t=br(r);function r(o){var n;return ot(this,r),n=t.call(this),T(Ve(n),"result",0),o instanceof r?n.result=o.result:typeof o=="number"&&(n.result=o),n}return nt(r,[{key:"add",value:function(n){return n instanceof r?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof r?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof r?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof r?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),r}(Zg),o$=Fj;var zj=function(t,r){var o=t==="css"?r$:o$;return function(n){return new o(n,r)}},Jg=zj;var Bj=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},uw=Bj;var ev=E(N());function It(e){var t=ev.useRef();t.current=e;var r=ev.useCallback(function(){for(var o,n=arguments.length,i=new Array(n),a=0;a1e4){var o=Date.now();this.lastAccessBeat.forEach(function(n,i){o-n>Gj&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),a$=new qj;function Kj(e,t){return s$.default.useMemo(function(){var r=a$.get(t);if(r)return r;var o=e();return a$.set(t,o),o},t)}var l$=Kj;var Xj=function(){return{}},c$=Xj;function Yj(e){var t=e.useCSP,r=t===void 0?c$:t,o=e.useToken,n=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,m,g,v){var x=Array.isArray(d)?d[0]:d;function h(R){return"".concat(String(x)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var p=v?.unitless||{},y=typeof s=="function"?s(d):{},S=P(P({},y),{},T({},h("zIndexPopup"),!0));Object.keys(p).forEach(function(R){S[h(R)]=p[R]});var b=P(P({},v),{},{unitless:S,prefixToken:h}),w=u(d,m,g,b),C=c(x,g,b);return function(R){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=w(R,_),I=B(O,2),j=I[1],L=C(_),W=B(L,2),z=W[0],$=W[1];return[z,j,$]}}function c(d,m,g){var v=g.unitless,x=g.injectStyle,h=x===void 0?!0:x,p=g.prefixToken,y=g.ignore,S=function(C){var R=C.rootCls,_=C.cssVar,O=_===void 0?{}:_,I=o(),j=I.realToken;return kC({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:y,token:j,scope:R},function(){var L=mw(d,j,m),W=dw(d,j,L,{deprecatedTokens:g?.deprecatedTokens});return Object.keys(L).forEach(function(z){W[p(z)]=W[z],delete W[z]}),W}),null},b=function(C){var R=o(),_=R.cssVar;return[function(O){return h&&_?ov.default.createElement(ov.default.Fragment,null,ov.default.createElement(S,{rootCls:C,cssVar:_,component:d}),O):O},_?.key]};return b}function u(d,m,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(d)?d:[d,d],h=B(x,1),p=h[0],y=x.join("-"),S=e.layer||{name:"antd"};return function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,C=o(),R=C.theme,_=C.realToken,O=C.hashId,I=C.token,j=C.cssVar,L=n(),W=L.rootPrefixCls,z=L.iconPrefixCls,$=r(),D=j?"css":"js",M=l$(function(){var A=new Set;return j&&Object.keys(v.unitless||{}).forEach(function(G){A.add(su(G,j.prefix)),A.add(su(G,uw(p,j.prefix)))}),Jg(D,A)},[D,p,j?.prefix]),H=i$(D),k=H.max,F=H.min,U={theme:R,token:I,hashId:O,nonce:function(){return $.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};typeof i=="function"&&Ps(P(P({},U),{},{clientOnly:!1,path:["Shared",W]}),function(){return i(I,{prefix:{rootPrefixCls:W,iconPrefixCls:z},csp:$})});var V=Ps(P(P({},U),{},{path:[y,b,z]}),function(){if(v.injectStyle===!1)return[];var A=rv(I),G=A.token,q=A.flush,ne=mw(p,_,g),ee=".".concat(b),Q=dw(p,_,ne,{deprecatedTokens:v.deprecatedTokens});j&&ne&&ie(ne)==="object"&&Object.keys(ne).forEach(function(X){ne[X]="var(".concat(su(X,uw(p,j.prefix)),")")});var ce=Qe(G,{componentCls:ee,prefixCls:b,iconCls:".".concat(z),antCls:".".concat(W),calc:M,max:k,min:F},j?ne:Q),re=m(ce,{hashId:O,prefixCls:b,rootPrefixCls:W,iconPrefixCls:z});q(p,Q);var K=typeof a=="function"?a(ce,b,w,v.resetFont):null;return[v.resetStyle===!1?null:K,re]});return[V,O]}}function f(d,m,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=u(d,m,g,P({resetStyle:!1,order:-998},v)),h=function(y){var S=y.prefixCls,b=y.rootCls,w=b===void 0?S:b;return x(S,w),null};return h}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var hw=Yj;var xn=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var p$=E(N());var u$="5.24.7";var f$=u$;function gw(e){return e>=0&&e<=255}function Qj(e,t){let{r,g:o,b:n,a:i}=new st(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new st(t).toRgb();for(let c=.01;c<=1;c+=.01){let u=Math.round((r-a*(1-c))/c),f=Math.round((o-s*(1-c))/c),d=Math.round((n-l*(1-c))/c);if(gw(u)&&gw(f)&&gw(d))return new st({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new st({r,g:o,b:n,a:1}).toRgbString()}var Dl=Qj;var Zj=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{delete o[d]});let n=Object.assign(Object.assign({},r),o),i=480,a=576,s=768,l=992,c=1200,u=1600;if(n.motion===!1){let d="0s";n.motionDurationFast=d,n.motionDurationMid=d,n.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},n),{colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Dl(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Dl(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Dl(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Dl(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.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:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new st("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new st("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new st("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)"}),o)}var d$=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let o=r.getDerivativeToken(e),{override:n}=t,i=d$(t,["override"]),a=Object.assign(Object.assign({},o),{override:n});return a=nv(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s,{theme:u}=c,f=d$(c,["theme"]),d=f;u&&(d=m$(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=d}),a};function sr(){let{token:e,hashed:t,theme:r,override:o,cssVar:n}=p$.default.useContext(Bd),i=`${f$}-${t||""}`,a=r||Fd,[s,l,c]=$g(a,[Ea,e],{salt:i,override:o,getComputedToken:m$,formatToken:nv,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:vw,ignore:Jj,preserve:eW}});return[a,c,t?l:"",s,n]}var xw=E(N());var wi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Qt=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}},_a=()=>({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"}}),Cu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),h$=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"}}}),g$=(e,t,r,o)=>{let n=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return o!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[n]:a})}},yw=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),iv=(e,t)=>({"&:focus-visible":Object.assign({},yw(e,t))}),av=e=>({[`.${e}`]:Object.assign(Object.assign({},_a()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:Rt,genComponentStyleHook:bw,genSubStyleComponent:Sw}=hw({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,xw.useContext)(et);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,o,n]=sr();return{theme:e,realToken:t,hashId:r,token:o,cssVar:n}},useCSP:()=>{let{csp:e}=(0,xw.useContext)(et);return e??{}},getResetStyles:(e,t)=>{var r;let o=h$(e);return[o,{"&":o},av((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:jd)]},getCommonStyle:g$,getCompUnitless:()=>vw});function sv(e,t){return xn.reduce((r,o)=>{let n=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},r),t(o,{lightColor:n,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var tW=(e,t)=>{let[r,o]=sr();return Ps({theme:r,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[av(e)])},lv=tW;var rW=E(N()),oW=Object.assign({},rW),{useId:v$}=oW,nW=()=>"",iW=typeof v$>"u"?nW:v$,y$=iW;function Cw(e,t,r){var o,n;let i=Ug("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},zd),{hashed:(o=t?.hashed)!==null&&o!==void 0?o:zd.hashed,cssVar:t?.cssVar}):t,l=y$();return Ui(()=>{var c,u;if(!e)return t;let f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(g=>{f[g]=Object.assign(Object.assign({},f[g]),e.components[g])});let d=`css-var-${l.replace(/:/g,"")}`,m=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:f,cssVar:m})},[a,s],(c,u)=>c.some((f,d)=>{let m=u[d];return!Cs(f,m,!0)}))}var _v=E(N());var A$=E(we());var Xo=E(N()),Iw=E(N());var cv=E(N()),aW=["children"],ww=cv.createContext({});function uv(e){var t=e.children,r=Ne(e,aW);return cv.createElement(ww.Provider,{value:r},t)}var x$=E(N()),sW=function(e){xr(r,e);var t=br(r);function r(){return ot(this,r),t.apply(this,arguments)}return nt(r,[{key:"render",value:function(){return this.props.children}}]),r}(x$.Component),b$=sW;var fv=E(N());function Ew(e){var t=fv.useReducer(function(s){return s+1},0),r=B(t,2),o=r[1],n=fv.useRef(e),i=It(function(){return n.current}),a=It(function(s){n.current=typeof s=="function"?s(n.current):s,o()});return[i,a]}var bv=E(N()),Ta=E(N());var Ki="none",Wd="appear",Vd="enter",Hd="leave",Rw="none",Ko="prepare",Pa="start",Is="active",dv="end",pv="prepared";var _$=E(N()),P$=E(N());function S$(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function lW(e,t){var r={animationend:S$("Animation","AnimationEnd"),transitionend:S$("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var cW=lW(Vt(),typeof window<"u"?window:{}),w$={};Vt()&&(C$=document.createElement("div"),w$=C$.style);var C$,mv={};function E$(e){if(mv[e])return mv[e];var t=cW[e];if(t)for(var r=Object.keys(t),o=r.length,n=0;n1&&arguments[1]!==void 0?arguments[1]:2;t();var i=ft(function(){n<=1?o({isCanceled:function(){return i!==e.current}}):r(o,n-1)});e.current=i}return yv.useEffect(function(){return function(){t()}},[]),[r,t]};var fW=[Ko,Pa,Is,dv],dW=[Ko,pv],Tw=!1,$$=!0;function xv(e){return e===Is||e===dv}var D$=function(e,t,r){var o=Oa(Rw),n=B(o,2),i=n[0],a=n[1],s=N$(),l=B(s,2),c=l[0],u=l[1];function f(){a(Ko,!0)}var d=t?dW:fW;return vv(function(){if(i!==Rw&&i!==dv){var m=d.indexOf(i),g=d[m+1],v=r(i);v===Tw?a(g,!0):g&&c(function(x){function h(){x.isCanceled()||a(g,!0)}v===!0?h():Promise.resolve(v).then(h)})}},[e,i]),I$.useEffect(function(){return function(){u()}},[]),[f,i]};function Nw(e,t,r,o){var n=o.motionEnter,i=n===void 0?!0:n,a=o.motionAppear,s=a===void 0?!0:a,l=o.motionLeave,c=l===void 0?!0:l,u=o.motionDeadline,f=o.motionLeaveImmediately,d=o.onAppearPrepare,m=o.onEnterPrepare,g=o.onLeavePrepare,v=o.onAppearStart,x=o.onEnterStart,h=o.onLeaveStart,p=o.onAppearActive,y=o.onEnterActive,S=o.onLeaveActive,b=o.onAppearEnd,w=o.onEnterEnd,C=o.onLeaveEnd,R=o.onVisibleChanged,_=Oa(),O=B(_,2),I=O[0],j=O[1],L=Ew(Ki),W=B(L,2),z=W[0],$=W[1],D=Oa(null),M=B(D,2),H=M[0],k=M[1],F=z(),U=(0,Ta.useRef)(!1),V=(0,Ta.useRef)(null);function A(){return r()}var G=(0,Ta.useRef)(!1);function q(){$(Ki),k(null,!0)}var ne=It(function(xe){var Pe=z();if(Pe!==Ki){var fe=A();if(!(xe&&!xe.deadline&&xe.target!==fe)){var pe=G.current,Ae;Pe===Wd&&pe?Ae=b?.(fe,xe):Pe===Vd&&pe?Ae=w?.(fe,xe):Pe===Hd&&pe&&(Ae=C?.(fe,xe)),pe&&Ae!==!1&&q()}}}),ee=T$(ne),Q=B(ee,1),ce=Q[0],re=function(Pe){switch(Pe){case Wd:return T(T(T({},Ko,d),Pa,v),Is,p);case Vd:return T(T(T({},Ko,m),Pa,x),Is,y);case Hd:return T(T(T({},Ko,g),Pa,h),Is,S);default:return{}}},K=bv.useMemo(function(){return re(F)},[F]),X=D$(F,!e,function(xe){if(xe===Ko){var Pe=K[Ko];return Pe?Pe(A()):Tw}if(J in K){var fe;k(((fe=K[J])===null||fe===void 0?void 0:fe.call(K,A(),null))||null)}return J===Is&&F!==Ki&&(ce(A()),u>0&&(clearTimeout(V.current),V.current=setTimeout(function(){ne({deadline:!0})},u))),J===pv&&q(),$$}),oe=B(X,2),Y=oe[0],J=oe[1],se=xv(J);G.current=se;var ue=(0,Ta.useRef)(null);vv(function(){if(!(U.current&&ue.current===t)){j(t);var xe=U.current;U.current=!0;var Pe;!xe&&t&&s&&(Pe=Wd),xe&&t&&i&&(Pe=Vd),(xe&&!t&&c||!xe&&f&&!t&&c)&&(Pe=Hd);var fe=re(Pe);Pe&&(e||fe[Ko])?($(Pe),Y()):$(Ki),ue.current=t}},[t]),(0,Ta.useEffect)(function(){(F===Wd&&!s||F===Vd&&!i||F===Hd&&!c)&&$(Ki)},[s,i,c]),(0,Ta.useEffect)(function(){return function(){U.current=!1,clearTimeout(V.current)}},[]);var de=bv.useRef(!1);(0,Ta.useEffect)(function(){I&&(de.current=!0),I!==void 0&&F===Ki&&((de.current||I)&&R?.(I),de.current=!0)},[I,F]);var ye=H;return K[Ko]&&J===Pa&&(ye=P({transition:"none"},ye)),[F,J,ye,I??t]}function pW(e){var t=e;ie(e)==="object"&&(t=e.transitionSupport);function r(n,i){return!!(n.motionName&&t&&i!==!1)}var o=Xo.forwardRef(function(n,i){var a=n.visible,s=a===void 0?!0:a,l=n.removeOnLeave,c=l===void 0?!0:l,u=n.forceRender,f=n.children,d=n.motionName,m=n.leavedClassName,g=n.eventProps,v=Xo.useContext(ww),x=v.motion,h=r(n,x),p=(0,Iw.useRef)(),y=(0,Iw.useRef)();function S(){try{return p.current instanceof HTMLElement?p.current:Ol(y.current)}catch{return null}}var b=Nw(h,s,S,n),w=B(b,4),C=w[0],R=w[1],_=w[2],O=w[3],I=Xo.useRef(O);O&&(I.current=!0);var j=Xo.useCallback(function(M){p.current=M,Od(i,M)},[i]),L,W=P(P({},g),{},{visible:s});if(!f)L=null;else if(C===Ki)O?L=f(P({},W),j):!c&&I.current&&m?L=f(P(P({},W),{},{className:m}),j):u||!c&&!m?L=f(P(P({},W),{},{style:{display:"none"}}),j):L=null;else{var z;R===Ko?z="prepare":xv(R)?z="active":R===Pa&&(z="start");var $=Pw(d,"".concat(C,"-").concat(z));L=f(P(P({},W),{},{className:(0,A$.default)(Pw(d,C),T(T({},$,$&&z),d,typeof d=="string")),style:_}),j)}if(Xo.isValidElement(L)&&gi(L)){var D=ys(L);D||(L=Xo.cloneElement(L,{ref:j}))}return Xo.createElement(b$,{ref:y},L)});return o.displayName="CSSMotion",o}var Sv=pW(hv);var Al=E(N());var Cv="add",wv="keep",Ev="remove",Ov="removed";function mW(e){var t;return e&&ie(e)==="object"&&"key"in e?t=e:t={key:e},P(P({},t),{},{key:String(t.key)})}function Rv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(mW)}function M$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],o=0,n=t.length,i=Rv(e),a=Rv(t);i.forEach(function(c){for(var u=!1,f=o;f1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==Ev}),r.forEach(function(u){u.key===c&&(u.status=wv)})}),r}var hW=["component","children","onVisibleChanged","onAllRemoved"],gW=["status"],vW=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function yW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sv,r=function(o){xr(i,o);var n=br(i);function i(){var a;ot(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var bW=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);nt.endsWith("Color"))}var _W=e=>{let{prefixCls:t,iconPrefixCls:r,theme:o,holderRender:n}=e;t!==void 0&&(k$=t),r!==void 0&&(CW=r),"holderRender"in e&&(EW=n),o&&(OW(o)?Q2(RW(),o):wW=o)};var PW=e=>{let{children:t,csp:r,autoInsertSpaceInButton:o,alert:n,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:x,parentContext:h,iconPrefixCls:p,theme:y,componentDisabled:S,segmented:b,statistic:w,spin:C,calendar:R,carousel:_,cascader:O,collapse:I,typography:j,checkbox:L,descriptions:W,divider:z,drawer:$,skeleton:D,steps:M,image:H,layout:k,list:F,mentions:U,modal:V,progress:A,result:G,slider:q,breadcrumb:ne,menu:ee,pagination:Q,input:ce,textArea:re,empty:K,badge:X,radio:oe,rate:Y,switch:J,transfer:se,avatar:ue,message:de,tag:ye,table:xe,card:Pe,tabs:fe,timeline:pe,timePicker:Ae,upload:je,notification:Xe,tree:Le,colorPicker:Ie,datePicker:Ee,rangePicker:Ke,flex:Je,wave:We,dropdown:ae,warning:me,tour:ze,tooltip:be,popover:He,popconfirm:Ue,floatButtonGroup:wt,variant:_t,inputNumber:Ht,treeSelect:Me}=e,Re=Zt.useCallback((Be,rt)=>{let{prefixCls:Wt}=e;if(rt)return rt;let Tt=Wt||h.getPrefixCls("");return Be?`${Tt}-${Be}`:Tt},[h.getPrefixCls,e.prefixCls]),Ze=p||h.iconPrefixCls||jd,Oe=r||h.csp;lv(Ze,Oe);let Te=Cw(y,h.theme,{prefixCls:Re("")}),_e={csp:Oe,autoInsertSpaceInButton:o,alert:n,anchor:i,locale:s||x,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:g??m,popupOverflow:v,getPrefixCls:Re,iconPrefixCls:Ze,theme:Te,segmented:b,statistic:w,spin:C,calendar:R,carousel:_,cascader:O,collapse:I,typography:j,checkbox:L,descriptions:W,divider:z,drawer:$,skeleton:D,steps:M,image:H,input:ce,textArea:re,layout:k,list:F,mentions:U,modal:V,progress:A,result:G,slider:q,breadcrumb:ne,menu:ee,pagination:Q,empty:K,badge:X,radio:oe,rate:Y,switch:J,transfer:se,avatar:ue,message:de,tag:ye,table:xe,card:Pe,tabs:fe,timeline:pe,timePicker:Ae,upload:je,notification:Xe,tree:Le,colorPicker:Ie,datePicker:Ee,rangePicker:Ke,flex:Je,wave:We,dropdown:ae,warning:me,tour:ze,tooltip:be,popover:He,popconfirm:Ue,floatButtonGroup:wt,variant:_t,inputNumber:Ht,treeSelect:Me},Ce=Object.assign({},h);Object.keys(_e).forEach(Be=>{_e[Be]!==void 0&&(Ce[Be]=_e[Be])}),SW.forEach(Be=>{let rt=e[Be];rt&&(Ce[Be]=rt)}),typeof o<"u"&&(Ce.button=Object.assign({autoInsertSpace:o},Ce.button));let gt=Ui(()=>Ce,Ce,(Be,rt)=>{let Wt=Object.keys(Be),Tt=Object.keys(rt);return Wt.length!==Tt.length||Wt.some(cr=>Be[cr]!==rt[cr])}),{layer:jt}=Zt.useContext(xi),$e=Zt.useMemo(()=>({prefixCls:Ze,csp:Oe,layer:jt?"antd":void 0}),[Ze,Oe,jt]),Se=Zt.createElement(Zt.Fragment,null,Zt.createElement(L$,{dropdownMatchSelectWidth:m}),t),Ge=Zt.useMemo(()=>{var Be,rt,Wt,Tt;return wa(((Be=bi.Form)===null||Be===void 0?void 0:Be.defaultValidateMessages)||{},((Wt=(rt=gt.locale)===null||rt===void 0?void 0:rt.Form)===null||Wt===void 0?void 0:Wt.defaultValidateMessages)||{},((Tt=gt.form)===null||Tt===void 0?void 0:Tt.validateMessages)||{},a?.validateMessages||{})},[gt,a?.validateMessages]);Object.keys(Ge).length>0&&(Se=Zt.createElement(m2.Provider,{value:Ge},Se)),s&&(Se=Zt.createElement(w2,{locale:s,_ANT_MARK__:C2},Se)),(Ze||Oe)&&(Se=Zt.createElement(mu.Provider,{value:$e},Se)),l&&(Se=Zt.createElement(J2,{size:l},Se)),Se=Zt.createElement(Dw,null,Se);let qe=Zt.useMemo(()=>{let Be=Te||{},{algorithm:rt,token:Wt,components:Tt,cssVar:cr}=Be,Ft=bW(Be,["algorithm","token","components","cssVar"]),hr=rt&&(!Array.isArray(rt)||rt.length>0)?ws(rt):Fd,Cr={};Object.entries(Tt||{}).forEach(tn=>{let[wr,kr]=tn,ve=Object.assign({},kr);"algorithm"in ve&&(ve.algorithm===!0?ve.theme=hr:(Array.isArray(ve.algorithm)||typeof ve.algorithm=="function")&&(ve.theme=ws(ve.algorithm)),delete ve.algorithm),Cr[wr]=ve});let Ur=Object.assign(Object.assign({},Ea),Wt);return Object.assign(Object.assign({},Ft),{theme:hr,token:Ur,components:Cr,override:Object.assign({override:Ur},Cr),cssVar:cr})},[Te]);return y&&(Se=Zt.createElement(Bd.Provider,{value:qe},Se)),gt.warning&&(Se=Zt.createElement(d2.Provider,{value:gt.warning},Se)),S!==void 0&&(Se=Zt.createElement(Z2,{disabled:S},Se)),Zt.createElement(et.Provider,{value:gt},Se)},wu=e=>{let t=Zt.useContext(et),r=Zt.useContext(hu);return Zt.createElement(PW,Object.assign({parentContext:t,legacyLocale:r},e))};wu.ConfigContext=et;wu.SizeContext=$l;wu.config=_W;wu.useConfig=e$;Object.defineProperty(wu,"SizeContext",{get:()=>$l});var Na=wu;var $v=E(N());var TW={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"},F$=TW;var kl=E(N()),U$=E(we());var V$=E(N());function z$(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function NW(e){return z$(e)instanceof ShadowRoot}function Ml(e){return NW(e)?z$(e):null}var Ll=E(N());function IW(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function j$(e,t){Kt(e,"[@ant-design/icons] ".concat(t))}function Aw(e){return ie(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ie(e.icon)==="object"||typeof e.icon=="function")}function B$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var o=e[r];switch(r){case"class":t.className=o,delete t.class;break;default:delete t[r],t[IW(r)]=o}return t},{})}function Pv(e,t,r){return r?Ll.default.createElement(e.tag,P(P({key:t},B$(e.attrs)),r),(e.children||[]).map(function(o,n){return Pv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))})):Ll.default.createElement(e.tag,P({key:t},B$(e.attrs)),(e.children||[]).map(function(o,n){return Pv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function Mw(e){return Ci(e)[0]}function Tv(e){return e?Array.isArray(e)?e:[e]:[]}var $W=` .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); } } `,W$=function(t){var r=(0,Ll.useContext)(mu),o=r.csp,n=r.prefixCls,i=r.layer,a=$W;n&&(a=a.replace(/anticon/g,n)),i&&(a="@layer ".concat(i,` { `).concat(a,` }`)),(0,Ll.useEffect)(function(){var s=t.current,l=Ml(s);co(a,"@ant-design-icons",{prepend:!i,csp:o,attachTo:l})},[])};var DW=["icon","className","onClick","style","primaryColor","secondaryColor"],Ud={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function AW(e){var t=e.primaryColor,r=e.secondaryColor;Ud.primaryColor=t,Ud.secondaryColor=r||Mw(t),Ud.calculated=!!r}function MW(){return P({},Ud)}var Nv=function(t){var r=t.icon,o=t.className,n=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ne(t,DW),c=V$.useRef(),u=Ud;if(a&&(u={primaryColor:a,secondaryColor:s||Mw(a)}),W$(c),j$(Aw(r),"icon should be icon definiton, but got ".concat(r)),!Aw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=P(P({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Pv(f.icon,"svg-".concat(f.name),P(P({className:o,onClick:n,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Nv.displayName="IconReact";Nv.getTwoToneColors=MW;Nv.setTwoToneColors=AW;var Gd=Nv;function Lw(e){var t=Tv(e),r=B(t,2),o=r[0],n=r[1];return Gd.setTwoToneColors({primaryColor:o,secondaryColor:n})}function H$(){var e=Gd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var LW=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Lw(Ts.primary);var Iv=kl.forwardRef(function(e,t){var r=e.className,o=e.icon,n=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ne(e,LW),u=kl.useContext(mu),f=u.prefixCls,d=f===void 0?"anticon":f,m=u.rootClassName,g=(0,U$.default)(m,d,T(T({},"".concat(d,"-").concat(o.name),!!o.name),"".concat(d,"-spin"),!!n||o.name==="loading"),r),v=a;v===void 0&&s&&(v=-1);var x=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,h=Tv(l),p=B(h,2),y=p[0],S=p[1];return kl.createElement("span",Z({role:"img","aria-label":o.name},c,{ref:t,tabIndex:v,onClick:s,className:g}),kl.createElement(Gd,{icon:o,primaryColor:y,secondaryColor:S,style:x}))});Iv.displayName="AntdIcon";Iv.getTwoToneColor=H$;Iv.setTwoToneColor=Lw;var ct=Iv;var kW=function(t,r){return $v.createElement(ct,Z({},t,{ref:r,icon:F$}))},FW=$v.forwardRef(kW),G$=FW;var Dv=E(N());var zW={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"},q$=zW;var BW=function(t,r){return Dv.createElement(ct,Z({},t,{ref:r,icon:q$}))},jW=Dv.forwardRef(BW),Eu=jW;var Mv=E(N());var WW={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"},Av=WW;var VW=function(t,r){return Mv.createElement(ct,Z({},t,{ref:r,icon:Av}))},HW=Mv.forwardRef(VW),Ru=HW;var UW=`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`,GW=`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`,qW="".concat(UW," ").concat(GW).split(/[\s\n]+/),KW="aria-",XW="data-";function K$(e,t){return e.indexOf(t)===0}function wo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=P({},t);var o={};return Object.keys(e).forEach(function(n){(r.aria&&(n==="role"||K$(n,KW))||r.data&&K$(n,XW)||r.attr&&qW.includes(n))&&(o[n]=e[n])}),o}var qd=E(N());function Lv(e){return e&&qd.default.isValidElement(e)&&e.type===qd.default.Fragment}var YW=(e,t,r)=>qd.default.isValidElement(e)?qd.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Wn(e,t){return YW(e,e,t)}var QW=e=>{let[,,,,t]=sr();return t?`${e}-css-var`:""},Eo=QW;var it={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 r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=it.F1&&r<=it.F12)return!1;switch(r){case it.ALT:case it.CAPS_LOCK:case it.CONTEXT_MENU:case it.CTRL:case it.DOWN:case it.END:case it.ESC:case it.HOME:case it.INSERT:case it.LEFT:case it.MAC_FF_META:case it.META:case it.NUMLOCK:case it.NUM_CENTER:case it.PAGE_DOWN:case it.PAGE_UP:case it.PAUSE:case it.PRINT_SCREEN:case it.RIGHT:case it.SHIFT:case it.UP:case it.WIN_KEY:case it.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=it.ZERO&&t<=it.NINE||t>=it.NUM_ZERO&&t<=it.NUM_MULTIPLY||t>=it.A&&t<=it.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case it.SPACE:case it.QUESTION_MARK:case it.NUM_PLUS:case it.NUM_MINUS:case it.NUM_PERIOD:case it.NUM_DIVISION:case it.SEMICOLON:case it.DASH:case it.EQUALS:case it.COMMA:case it.PERIOD:case it.SLASH:case it.APOSTROPHE:case it.SINGLE_QUOTE:case it.OPEN_SQUARE_BRACKET:case it.BACKSLASH:case it.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ye=it;var kv=E(N());var ZW={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"},X$=ZW;var JW=function(t,r){return kv.createElement(ct,Z({},t,{ref:r,icon:X$}))},eV=kv.forwardRef(JW),Fl=eV;var Q$=E(N());var Y$=E(N()),tV=Y$.default.createContext(void 0),Fv=tV;var Ia=100,rV=10,oV=Ia*rV,lpe=oV+Ia,Z$={Modal:Ia,Drawer:Ia,Popover:Ia,Popconfirm:Ia,Tooltip:Ia,Tour:Ia,FloatButton:Ia},nV={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function iV(e){return e in Z$}var $s=(e,t)=>{let[,r]=sr(),o=Q$.default.useContext(Fv),n=iV(e),i;if(t!==void 0)i=[t,t];else{let a=o??0;n?a+=(o?0:r.zIndexPopupBase)+Z$[e]:a+=nV[e],i=[o===void 0?t:a,a]}return i};var pV=E(N()),ype=E(Vi());function Pt(){"use strict";Pt=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function($,D,M){$[D]=M.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c($,D,M){return Object.defineProperty($,D,{value:M,enumerable:!0,configurable:!0,writable:!0}),$[D]}try{c({},"")}catch{c=function(M,H,k){return M[H]=k}}function u($,D,M,H){var k=D&&D.prototype instanceof h?D:h,F=Object.create(k.prototype),U=new W(H||[]);return n(F,"_invoke",{value:O($,M,U)}),F}function f($,D,M){try{return{type:"normal",arg:$.call(D,M)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var d="suspendedStart",m="suspendedYield",g="executing",v="completed",x={};function h(){}function p(){}function y(){}var S={};c(S,a,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(z([])));w&&w!==r&&o.call(w,a)&&(S=w);var C=y.prototype=h.prototype=Object.create(S);function R($){["next","throw","return"].forEach(function(D){c($,D,function(M){return this._invoke(D,M)})})}function _($,D){function M(k,F,U,V){var A=f($[k],$,F);if(A.type!=="throw"){var G=A.arg,q=G.value;return q&&ie(q)=="object"&&o.call(q,"__await")?D.resolve(q.__await).then(function(ne){M("next",ne,U,V)},function(ne){M("throw",ne,U,V)}):D.resolve(q).then(function(ne){G.value=ne,U(G)},function(ne){return M("throw",ne,U,V)})}V(A.arg)}var H;n(this,"_invoke",{value:function(F,U){function V(){return new D(function(A,G){M(F,U,A,G)})}return H=H?H.then(V,V):V()}})}function O($,D,M){var H=d;return function(k,F){if(H===g)throw Error("Generator is already running");if(H===v){if(k==="throw")throw F;return{value:e,done:!0}}for(M.method=k,M.arg=F;;){var U=M.delegate;if(U){var V=I(U,M);if(V){if(V===x)continue;return V}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(H===d)throw H=v,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);H=g;var A=f($,D,M);if(A.type==="normal"){if(H=M.done?v:m,A.arg===x)continue;return{value:A.arg,done:M.done}}A.type==="throw"&&(H=v,M.method="throw",M.arg=A.arg)}}}function I($,D){var M=D.method,H=$.iterator[M];if(H===e)return D.delegate=null,M==="throw"&&$.iterator.return&&(D.method="return",D.arg=e,I($,D),D.method==="throw")||M!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+M+"' method")),x;var k=f(H,$.iterator,D.arg);if(k.type==="throw")return D.method="throw",D.arg=k.arg,D.delegate=null,x;var F=k.arg;return F?F.done?(D[$.resultName]=F.value,D.next=$.nextLoc,D.method!=="return"&&(D.method="next",D.arg=e),D.delegate=null,x):F:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,x)}function j($){var D={tryLoc:$[0]};1 in $&&(D.catchLoc=$[1]),2 in $&&(D.finallyLoc=$[2],D.afterLoc=$[3]),this.tryEntries.push(D)}function L($){var D=$.completion||{};D.type="normal",delete D.arg,$.completion=D}function W($){this.tryEntries=[{tryLoc:"root"}],$.forEach(j,this),this.reset(!0)}function z($){if($||$===""){var D=$[a];if(D)return D.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var M=-1,H=function k(){for(;++M<$.length;)if(o.call($,M))return k.value=$[M],k.done=!1,k;return k.value=e,k.done=!0,k};return H.next=H}}throw new TypeError(ie($)+" is not iterable")}return p.prototype=y,n(C,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:p,configurable:!0}),p.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function($){var D=typeof $=="function"&&$.constructor;return!!D&&(D===p||(D.displayName||D.name)==="GeneratorFunction")},t.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,y):($.__proto__=y,c($,l,"GeneratorFunction")),$.prototype=Object.create(C),$},t.awrap=function($){return{__await:$}},R(_.prototype),c(_.prototype,s,function(){return this}),t.AsyncIterator=_,t.async=function($,D,M,H,k){k===void 0&&(k=Promise);var F=new _(u($,D,M,H),k);return t.isGeneratorFunction(D)?F:F.next().then(function(U){return U.done?U.value:F.next()})},R(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function($){var D=Object($),M=[];for(var H in D)M.push(H);return M.reverse(),function k(){for(;M.length;){var F=M.pop();if(F in D)return k.value=F,k.done=!1,k}return k.done=!0,k}},t.values=z,W.prototype={constructor:W,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!D)for(var M in this)M.charAt(0)==="t"&&o.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=e)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var M=this;function H(G,q){return U.type="throw",U.arg=D,M.next=G,q&&(M.method="next",M.arg=e),!!q}for(var k=this.tryEntries.length-1;k>=0;--k){var F=this.tryEntries[k],U=F.completion;if(F.tryLoc==="root")return H("end");if(F.tryLoc<=this.prev){var V=o.call(F,"catchLoc"),A=o.call(F,"finallyLoc");if(V&&A){if(this.prev=0;--H){var k=this.tryEntries[H];if(k.tryLoc<=this.prev&&o.call(k,"finallyLoc")&&this.prev=0;--M){var H=this.tryEntries[M];if(H.finallyLoc===D)return this.complete(H.completion,H.afterLoc),L(H),x}},catch:function(D){for(var M=this.tryEntries.length-1;M>=0;--M){var H=this.tryEntries[M];if(H.tryLoc===D){var k=H.completion;if(k.type==="throw"){var F=k.arg;L(H)}return F}}throw Error("illegal catch attempt")},delegateYield:function(D,M,H){return this.delegate={iterator:z(D),resultName:M,nextLoc:H},this.method==="next"&&(this.arg=e),x}},t}function J$(e,t,r,o,n,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(o,n)}function Jr(e){return function(){var t=this,r=arguments;return new Promise(function(o,n){var i=e.apply(t,r);function a(l){J$(i,o,n,a,s,"next",l)}function s(l){J$(i,o,n,a,s,"throw",l)}a(void 0)})}}var aV=E(Vi()),Kd=P({},aV),sV=Kd.version,kw=Kd.render,lV=Kd.unmountComponentAtNode,Bv;try{eD=Number((sV||"").split(".")[0]),eD>=18&&(Bv=Kd.createRoot)}catch{}var eD;function tD(e){var t=Kd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ie(t)==="object"&&(t.usingClientEntryPoint=e)}var zv="__rc_react_root__";function cV(e,t){tD(!0);var r=t[zv]||Bv(t);tD(!1),r.render(e),t[zv]=r}function uV(e,t){kw?.(e,t)}function rD(e,t){if(Bv){cV(e,t);return}uV(e,t)}function fV(e){return Fw.apply(this,arguments)}function Fw(){return Fw=Jr(Pt().mark(function e(t){return Pt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.resolve().then(function(){var n;(n=t[zv])===null||n===void 0||n.unmount(),delete t[zv]}));case 1:case"end":return o.stop()}},e)})),Fw.apply(this,arguments)}function dV(e){lV(e)}function oD(e){return zw.apply(this,arguments)}function zw(){return zw=Jr(Pt().mark(function e(t){return Pt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(Bv===void 0){o.next=2;break}return o.abrupt("return",fV(t));case 2:dV(t);case 3:case"end":return o.stop()}},e)})),zw.apply(this,arguments)}var mV=(e,t)=>(rD(e,t),()=>oD(t)),hV=mV;function nD(){return hV}var Bw=()=>({height:0,opacity:0}),iD=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},gV=e=>({height:e?e.offsetHeight:0}),jw=(e,t)=>t?.deadline===!0||t.propertyName==="height",vV=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ns}-motion-collapse`,onAppearStart:Bw,onEnterStart:Bw,onAppearActive:iD,onEnterActive:iD,onLeaveStart:gV,onLeaveActive:Bw,onAppearEnd:jw,onEnterEnd:jw,onLeaveEnd:jw,motionDeadline:500}};var Xi=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var aD=vV;var Mt=E(N()),ly=E(we());function Ar(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(o){delete r[o]}),r}var zl=E(N()),dD=E(we());var jv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,o=t.height;if(r||o)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),i=n.width,a=n.height;if(i||a)return!0}}return!1};var yV=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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(",")}}}}},sD=bw("Wave",e=>[yV(e)]);var Wv=E(N());var Ou=`${Ns}-wave-target`;var eo=E(N()),cD=E(we());function Ww(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function lD(e){let{borderTopColor:t,borderColor:r,backgroundColor:o}=getComputedStyle(e);return Ww(t)?t:Ww(r)?r:Ww(o)?o:null}function Vw(e){return Number.isNaN(e)?0:e}var xV=e=>{let{className:t,target:r,component:o,registerUnmount:n}=e,i=eo.useRef(null),a=eo.useRef(null);eo.useEffect(()=>{a.current=n()},[]);let[s,l]=eo.useState(null),[c,u]=eo.useState([]),[f,d]=eo.useState(0),[m,g]=eo.useState(0),[v,x]=eo.useState(0),[h,p]=eo.useState(0),[y,S]=eo.useState(!1),b={left:f,top:m,width:v,height:h,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(b["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(lD(r));let _=R.position==="static",{borderLeftWidth:O,borderTopWidth:I}=R;d(_?r.offsetLeft:Vw(-parseFloat(O))),g(_?r.offsetTop:Vw(-parseFloat(I))),x(r.offsetWidth),p(r.offsetHeight);let{borderTopLeftRadius:j,borderTopRightRadius:L,borderBottomLeftRadius:W,borderBottomRightRadius:z}=R;u([j,L,z,W].map($=>Vw(parseFloat($))))}if(eo.useEffect(()=>{if(r){let R=ft(()=>{w(),S(!0)}),_;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(w),_.observe(r)),()=>{ft.cancel(R),_?.disconnect()}}},[]),!y)return null;let C=(o==="Checkbox"||o==="Radio")&&r?.classList.contains(Ou);return eo.createElement(Zr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,_)=>{var O,I;if(_.deadline||_.propertyName==="opacity"){let j=(O=i.current)===null||O===void 0?void 0:O.parentElement;(I=a.current)===null||I===void 0||I.call(a).then(()=>{j?.remove()})}return!1}},(R,_)=>{let{className:O}=R;return eo.createElement("div",{ref:jr(i,_),className:(0,cD.default)(t,O,{"wave-quick":C}),style:b})})},bV=(e,t)=>{var r;let{component:o}=t;if(o==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;let n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild);let i=nD(),a=null;function s(){return a}a=i(eo.createElement(xV,Object.assign({},t,{target:e,registerUnmount:s})),n)},uD=bV;var SV=(e,t,r)=>{let{wave:o}=Wv.useContext(et),[,n,i]=sr(),a=It(c=>{let u=e.current;if(o?.disabled||!u)return;let f=u.querySelector(`.${Ou}`)||u,{showEffect:d}=o||{};(d||uD)(f,{className:t,token:n,component:r,event:c,hashId:i})}),s=Wv.useRef(null);return c=>{ft.cancel(s.current),s.current=ft(()=>{a(c)})}},fD=SV;var CV=e=>{let{children:t,disabled:r,component:o}=e,{getPrefixCls:n}=(0,zl.useContext)(et),i=(0,zl.useRef)(null),a=n("wave"),[,s]=sD(a),l=fD(i,(0,dD.default)(a,s),o);if(zl.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=d=>{!jv(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!zl.default.isValidElement(t))return t??null;let c=gi(t)?jr(ys(t),i):i;return Wn(t,{ref:c})},Vv=CV;var Hw=E(N());var wV=e=>{let t=Hw.default.useContext($l);return Hw.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Yo=wV;var Ds=E(N()),pD=E(we());var mD=Ds.createContext(null),Vn=(e,t)=>{let r=Ds.useContext(mD),o=Ds.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=r,s=n==="vertical"?"-vertical-":"-";return(0,pD.default)(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:o}},hD=e=>{let{children:t}=e;return Ds.createElement(mD.Provider,{value:null},t)};var $a=E(N()),gD=E(we());var EV=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{getPrefixCls:t,direction:r}=$a.useContext(et),{prefixCls:o,size:n,className:i}=e,a=EV(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,l]=sr(),c=$a.useMemo(()=>{switch(n){case"large":return"lg";case"small":return"sm";default:return""}},[n]),u=(0,gD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return $a.createElement(Uw.Provider,{value:n},$a.createElement("div",Object.assign({},a,{className:u})))},vD=RV;var _u=E(N());var yD=/^[\u4E00-\u9FA5]{2}$/,Hv=yD.test.bind(yD);function xD(e){return typeof e=="string"}function Uv(e){return e==="text"||e==="link"}function OV(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&xD(e.type)&&Hv(e.props.children)?Wn(e,{children:e.props.children.split("").join(r)}):xD(e)?Hv(e)?_u.default.createElement("span",null,e.split("").join(r)):_u.default.createElement("span",null,e):Lv(e)?_u.default.createElement("span",null,e):e}function bD(e,t){let r=!1,o=[];return _u.default.Children.forEach(e,n=>{let i=typeof n,a=i==="string"||i==="number";if(r&&a){let s=o.length-1,l=o[s];o[s]=`${l}${n}`}else o.push(n);r=a}),_u.default.Children.map(o,n=>OV(n,t))}var sme=["default","primary","danger"].concat(le(xn));var As=E(N());var Kw=E(we());var Gv=E(N()),SD=E(we()),_V=(0,Gv.forwardRef)((e,t)=>{let{className:r,style:o,children:n,prefixCls:i}=e,a=(0,SD.default)(`${i}-icon`,r);return Gv.default.createElement("span",{ref:t,className:a,style:o},n)}),Xd=_V;var CD=(0,As.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:n,iconClassName:i}=e,a=(0,Kw.default)(`${r}-loading-icon`,o);return As.default.createElement(Xd,{prefixCls:r,className:a,style:n,ref:t},As.default.createElement(Fl,{className:i}))}),Gw=()=>({width:0,opacity:0,transform:"scale(0)"}),qw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),PV=e=>{let{prefixCls:t,loading:r,existIcon:o,className:n,style:i,mount:a}=e,s=!!r;return o?As.default.createElement(CD,{prefixCls:t,className:n,style:i}):As.default.createElement(Zr,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Gw,onAppearActive:qw,onEnterStart:Gw,onEnterActive:qw,onLeaveStart:qw,onLeaveActive:Gw},(l,c)=>{let{className:u,style:f}=l,d=Object.assign(Object.assign({},i),f);return As.default.createElement(CD,{prefixCls:t,className:(0,Kw.default)(n,u),style:d,ref:c})})},wD=PV;var ED=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),TV=e=>{let{componentCls:t,fontSize:r,lineWidth:o,groupBorderColor:n,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(o).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:r}},ED(`${t}-primary`,n),ED(`${t}-danger`,i)]}},RD=TV;var Zw=E(N());var NV=["b"],IV=["v"],Xw=function(t){return Math.round(Number(t||0))},$V=function(t){if(t instanceof st)return t;if(t&&ie(t)==="object"&&"h"in t&&"b"in t){var r=t,o=r.b,n=Ne(r,NV);return P(P({},n),{},{v:o})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Hn=function(e){xr(r,e);var t=br(r);function r(o){return ot(this,r),t.call(this,$V(o))}return nt(r,[{key:"toHsbString",value:function(){var n=this.toHsb(),i=Xw(n.s*100),a=Xw(n.b*100),s=Xw(n.h),l=n.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var n=this.toHsv(),i=n.v,a=Ne(n,IV);return P(P({},a),{},{b:i,a:this.a})}}]),r}(st);var Yw=function(t){return t instanceof Hn?t:new Hn(t)},DV=Yw("#1677ff");var KV=E(we());var AV=E(we()),MV=E(N());var _D=E(N());var Qw=E(N());var LV=E(we()),kV=E(N());var FV=E(N());var OD=E(N());var UV=E(N());var qV=E(N());var TD=E(N());var GV=E(we());var PD=E(N());var XV=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",YV=(e,t)=>e?XV(e,t):"",ID=function(){function e(t){ot(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(n=>{let{color:i,percent:a}=n;return{color:new e(i),percent:a}}),this.metaColor=new Hn(this.colors[0].color.metaColor)):this.metaColor=new Hn(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return nt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return YV(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((o,n)=>{let i=r.colors[n];return o.percent===i.percent&&o.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();var nA=E(N());var aH=E(we());var qv=E(N());var QV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},$D=QV;var ZV=function(t,r){return qv.createElement(ct,Z({},t,{ref:r,icon:$D}))},JV=qv.forwardRef(ZV),DD=JV;var eH=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`}}}),Jw=eH;var tH=e=>({animationDuration:e,animationFillMode:"both"}),rH=e=>({animationDuration:e,animationFillMode:"both"}),Ms=function(e,t,r,o){let i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},tH(o)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},rH(o)),{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:r,animationPlayState:"running",pointerEvents:"none"}}};var AD=new dt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),MD=new dt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Bl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,{antCls:r}=e,o=`${r}-fade`,n=t?"&":"";return[Ms(o,AD,MD,e.motionDurationMid,t),{[` ${n}${o}-enter, ${n}${o}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${n}${o}-leave`]:{animationTimingFunction:"linear"}}]};var LD=new dt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kD=new dt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),FD=new dt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zD=new dt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),BD=new dt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jD=new dt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),WD=new dt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),VD=new dt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),oH={"move-up":{inKeyframes:WD,outKeyframes:VD},"move-down":{inKeyframes:LD,outKeyframes:kD},"move-left":{inKeyframes:FD,outKeyframes:zD},"move-right":{inKeyframes:BD,outKeyframes:jD}},Kv=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=oH[t];return[Ms(o,n,i,e.motionDurationMid),{[` ${o}-enter, ${o}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Xv=new dt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Yv=new dt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Qv=new dt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Zv=new dt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),HD=new dt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),UD=new dt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),GD=new dt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qD=new dt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),nH={"slide-up":{inKeyframes:Xv,outKeyframes:Yv},"slide-down":{inKeyframes:Qv,outKeyframes:Zv},"slide-left":{inKeyframes:HD,outKeyframes:UD},"slide-right":{inKeyframes:GD,outKeyframes:qD}},Jv=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=nH[t];return[Ms(o,n,i,e.motionDurationMid),{[` ${o}-enter, ${o}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var KD=new dt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),XD=new dt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),e1=new dt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),t1=new dt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),YD=new dt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),QD=new dt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ZD=new dt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),JD=new dt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),eA=new dt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),tA=new dt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),rA=new dt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),oA=new dt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),iH={zoom:{inKeyframes:KD,outKeyframes:XD},"zoom-big":{inKeyframes:e1,outKeyframes:t1},"zoom-big-fast":{inKeyframes:e1,outKeyframes:t1},"zoom-left":{inKeyframes:ZD,outKeyframes:JD},"zoom-right":{inKeyframes:eA,outKeyframes:tA},"zoom-up":{inKeyframes:YD,outKeyframes:QD},"zoom-down":{inKeyframes:rA,outKeyframes:oA}},jl=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=iH[t];return[Ms(o,n,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${o}-enter, ${o}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var iA=(e,t)=>{let{r,g:o,b:n,a:i}=e.toRgb(),a=new Hn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+o*.587+n*.114>192};var ey=e=>{let{paddingInline:t,onlyIconSize:r}=e;return Qe(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},ty=e=>{var t,r,o,n,i,a;let s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(o=e.contentFontSizeLG)!==null&&o!==void 0?o:e.fontSizeLG,u=(n=e.contentLineHeight)!==null&&n!==void 0?n:vu(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:vu(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:vu(c),m=iA(new ID(e.colorBgSolid),"#fff")?"#000":"#fff",g=xn.reduce((v,x)=>Object.assign(Object.assign({},v),{[`${x}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Dl(e[`${x}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},g),{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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)})};var sH=e=>{let{componentCls:t,iconCls:r,fontWeight:o,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:_a(),"> a":{color:"currentColor"},"&:not(:disabled)":iv(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:n,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},aA=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),lH=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),cH=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),uH=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ry=(e,t,r,o,n,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},aA(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),fH=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},uH(e))}),dH=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),oy=(e,t,r,o)=>{let i=o&&["link","text"].includes(o)?dH:fH;return Object.assign(Object.assign({},i(e)),aA(e.componentCls,t,r))},ny=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},oy(e,o,n))}),iy=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},oy(e,o,n))}),ay=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),sy=(e,t,r,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},oy(e,r,o))}),Yi=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},oy(e,o,n,r))}),pH=e=>{let{componentCls:t}=e;return xn.reduce((r,o)=>{let n=e[`${o}6`],i=e[`${o}1`],a=e[`${o}5`],s=e[`${o}2`],l=e[`${o}3`],c=e[`${o}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${o}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n,boxShadow:e[`${o}ShadowColor`]},ny(e,e.colorTextLightSolid,n,{background:a},{background:c})),iy(e,n,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),ay(e)),sy(e,i,{background:s},{background:l})),Yi(e,n,"link",{color:a},{color:c})),Yi(e,n,"text",{color:a,background:i},{color:c,background:l}))})},{})},mH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ny(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ay(e)),sy(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),ry(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Yi(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),hH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},iy(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ay(e)),sy(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Yi(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Yi(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),ry(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),gH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ny(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),iy(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ay(e)),sy(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Yi(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Yi(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ry(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vH=e=>Object.assign(Object.assign({},Yi(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),ry(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),yH=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:mH(e),[`${t}-color-primary`]:hH(e),[`${t}-color-dangerous`]:gH(e),[`${t}-color-link`]:vH(e)},pH(e))},xH=e=>Object.assign(Object.assign(Object.assign(Object.assign({},iy(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Yi(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ny(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Yi(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),r1=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",{componentCls:r,controlHeight:o,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:n,height:o,padding:`${te(l)} ${te(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:o,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:lH(e)},{[`${r}${r}-round${t}`]:cH(e)}]},bH=e=>{let t=Qe(e,{fontSize:e.contentFontSize});return r1(t,e.componentCls)},SH=e=>{let t=Qe(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return r1(t,`${e.componentCls}-sm`)},CH=e=>{let t=Qe(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return r1(t,`${e.componentCls}-lg`)},wH=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},sA=Rt("Button",e=>{let t=ey(e);return[sH(t),bH(t),SH(t),CH(t),wH(t),yH(t),xH(t),RD(t)]},ty,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function EH(e,t,r){let{focusElCls:o,focus:n,borderElCls:i}=r,a=i?"> *":"",s=["hover",n?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function RH(e,t,r){let{borderElCls:o}=r,n=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ls(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0},{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},EH(e,o,t)),RH(r,o,t))}}function OH(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 _H(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 lA(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},OH(e,t)),_H(e.componentCls,t))}}var PH=e=>{let{componentCls:t,colorPrimaryHover:r,lineWidth:o,calc:n}=e,i=n(o).mul(-1).equal(),a=s=>{let l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":o,height:s?o:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},cA=Sw(["Button","compact"],e=>{let t=ey(e);return[Ls(t),lA(t),PH(t)]},ty);var TH=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{var r,o;let{loading:n=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:f,styles:d,disabled:m,className:g,rootClassName:v,children:x,icon:h,iconPosition:p="start",ghost:y=!1,block:S=!1,htmlType:b="button",classNames:w,style:C={},autoInsertSpace:R,autoFocus:_}=e,O=TH(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",[j,L]=(0,Mt.useMemo)(()=>{if(a&&s)return[a,s];let me=IH[I]||[];return c?["danger",me[1]]:me},[l,a,s,c]),z=j==="danger"?"dangerous":j,{getPrefixCls:$,direction:D,autoInsertSpace:M,className:H,style:k,classNames:F,styles:U}=qo("button"),V=(r=R??M)!==null&&r!==void 0?r:!0,A=$("btn",i),[G,q,ne]=sA(A),ee=(0,Mt.useContext)(Qr),Q=m??ee,ce=(0,Mt.useContext)(Uw),re=(0,Mt.useMemo)(()=>NH(n),[n]),[K,X]=(0,Mt.useState)(re.loading),[oe,Y]=(0,Mt.useState)(!1),J=(0,Mt.useRef)(null),se=hn(t,J),ue=Mt.Children.count(x)===1&&!h&&!Uv(L),de=(0,Mt.useRef)(!0);Mt.default.useEffect(()=>(de.current=!1,()=>{de.current=!0}),[]),(0,Mt.useEffect)(()=>{let me=null;re.delay>0?me=setTimeout(()=>{me=null,X(!0)},re.delay):X(re.loading);function ze(){me&&(clearTimeout(me),me=null)}return ze},[re]),(0,Mt.useEffect)(()=>{if(!J.current||!V)return;let me=J.current.textContent||"";ue&&Hv(me)?oe||Y(!0):oe&&Y(!1)}),(0,Mt.useEffect)(()=>{_&&J.current&&J.current.focus()},[]);let ye=Mt.default.useCallback(me=>{var ze;if(K||Q){me.preventDefault();return}(ze=e.onClick)===null||ze===void 0||ze.call(e,("href"in e,me))},[e.onClick,K,Q]),{compactSize:xe,compactItemClassnames:Pe}=Vn(A,D),fe={large:"lg",small:"sm",middle:void 0},pe=Yo(me=>{var ze,be;return(be=(ze=f??xe)!==null&&ze!==void 0?ze:ce)!==null&&be!==void 0?be:me}),Ae=pe&&(o=fe[pe])!==null&&o!==void 0?o:"",je=K?"loading":h,Xe=Ar(O,["navigate"]),Le=(0,ly.default)(A,q,ne,{[`${A}-${u}`]:u!=="default"&&u,[`${A}-${I}`]:I,[`${A}-dangerous`]:c,[`${A}-color-${z}`]:z,[`${A}-variant-${L}`]:L,[`${A}-${Ae}`]:Ae,[`${A}-icon-only`]:!x&&x!==0&&!!je,[`${A}-background-ghost`]:y&&!Uv(L),[`${A}-loading`]:K,[`${A}-two-chinese-chars`]:oe&&V&&!K,[`${A}-block`]:S,[`${A}-rtl`]:D==="rtl",[`${A}-icon-end`]:p==="end"},Pe,g,v,H),Ie=Object.assign(Object.assign({},k),C),Ee=(0,ly.default)(w?.icon,F.icon),Ke=Object.assign(Object.assign({},d?.icon||{}),U.icon||{}),Je=h&&!K?Mt.default.createElement(Xd,{prefixCls:A,className:Ee,style:Ke},h):n&&typeof n=="object"&&n.icon?Mt.default.createElement(Xd,{prefixCls:A,className:Ee,style:Ke},n.icon):Mt.default.createElement(wD,{existIcon:!!h,prefixCls:A,loading:K,mount:de.current}),We=x||x===0?bD(x,ue&&V):null;if(Xe.href!==void 0)return G(Mt.default.createElement("a",Object.assign({},Xe,{className:(0,ly.default)(Le,{[`${A}-disabled`]:Q}),href:Q?void 0:Xe.href,style:Ie,onClick:ye,ref:se,tabIndex:Q?-1:0}),Je,We));let ae=Mt.default.createElement("button",Object.assign({},O,{type:b,className:Le,style:Ie,onClick:ye,disabled:Q,ref:se}),Je,We,Pe&&Mt.default.createElement(cA,{prefixCls:A}));return Uv(L)||(ae=Mt.default.createElement(Vv,{component:"Button",disabled:K},ae)),G(ae)}),o1=$H;o1.Group=vD;o1.__ANT_BUTTON=!0;var uA=o1;var Yd=uA;var Un=E(N()),xA=E(Vi());var fA=E(N()),DH=fA.createContext(null),cy=DH;var Wl=E(N());var dA=[];function n1(e,t){var r=Wl.useState(function(){if(!Vt())return null;var g=document.createElement("div");return g}),o=B(r,1),n=o[0],i=Wl.useRef(!1),a=Wl.useContext(cy),s=Wl.useState(dA),l=B(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(g){u(function(v){var x=[g].concat(le(v));return x})});function d(){n.parentElement||document.body.appendChild(n),i.current=!0}function m(){var g;(g=n.parentElement)===null||g===void 0||g.removeChild(n),i.current=!1}return xt(function(){return e?a?a(d):d():m(),m},[e]),xt(function(){c.length&&(c.forEach(function(g){return g()}),u(dA))},[c]),[n,f]}var gA=E(N());function AH(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var o=r.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";var n,i;if(e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";co(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` }`),t)}catch(g){console.error(g),n=l,i=c}}document.body.appendChild(r);var d=e&&n&&!isNaN(n)?n:r.offsetWidth-r.clientWidth,m=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Gi(t),{width:d,height:m}}function pA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:AH(e)}function mA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var MH="rc-util-locker-".concat(Date.now()),hA=0;function i1(e){var t=!!e,r=gA.useState(function(){return hA+=1,"".concat(MH,"_").concat(hA)}),o=B(r,1),n=o[0];xt(function(){if(t){var i=pA(document.body).width,a=mA();co(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),n)}else Gi(n);return function(){Gi(n)}},[t,n])}var vA=!1;function a1(e){return typeof e=="boolean"&&(vA=e),vA}var yA=function(t){return t===!1?!1:!Vt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},LH=Un.forwardRef(function(e,t){var r=e.open,o=e.autoLock,n=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=Un.useState(r),u=B(c,2),f=u[0],d=u[1],m=f||r;Un.useEffect(function(){(s||r)&&d(r)},[r,s]);var g=Un.useState(function(){return yA(n)}),v=B(g,2),x=v[0],h=v[1];Un.useEffect(function(){var j=yA(n);h(j??null)});var p=n1(m&&!x,i),y=B(p,2),S=y[0],b=y[1],w=x??S;i1(o&&r&&Vt()&&(w===S||w===document.body));var C=null;if(l&&gi(l)&&t){var R=l;C=R.ref}var _=hn(C,t);if(!m||!Vt()||x===void 0)return null;var O=w===!1||a1(),I=l;return t&&(I=Un.cloneElement(l,{ref:_})),Un.createElement(cy.Provider,{value:b},O?I:(0,xA.createPortal)(I,w))}),bA=LH;var Vl=bA;var Qi=E(N());var SA=E(N()),uy=SA.createContext({});var u1=E(we());var Qd=E(N());function kH(){var e=P({},Qd);return e.useId}var CA=0;var wA=kH(),Pu=wA?function(t){var r=wA();return t||r}:function(t){var r=Qd.useState("ssr-id"),o=B(r,2),n=o[0],i=o[1];return Qd.useEffect(function(){var a=CA;CA+=1,i("rc_unique_".concat(a))},[]),t||n};var Ul=E(N()),Da=E(N());function s1(e,t,r){var o=t;return!o&&r&&(o="".concat(e,"-").concat(r)),o}function EA(e,t){var r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var n=e.document;r=n.documentElement[o],typeof r!="number"&&(r=n.body[o])}return r}function RA(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},o=e.ownerDocument,n=o.defaultView||o.parentWindow;return r.left+=EA(n),r.top+=EA(n,!0),r}var Hl=E(N()),PA=E(N()),TA=E(we());var Tu=E(we());var Mr=E(N());var OA=E(N()),_A=OA.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var FH={width:0,height:0,overflow:"hidden",outline:"none"},zH={outline:"none"},BH=Mr.default.forwardRef(function(e,t){var r=e.prefixCls,o=e.className,n=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,d=e.bodyStyle,m=e.bodyProps,g=e.modalRender,v=e.onMouseDown,x=e.onMouseUp,h=e.holderRef,p=e.visible,y=e.forceRender,S=e.width,b=e.height,w=e.classNames,C=e.styles,R=Mr.default.useContext(uy),_=R.panel,O=hn(h,_),I=(0,Mr.useRef)(),j=(0,Mr.useRef)();Mr.default.useImperativeHandle(t,function(){return{focus:function(){var U;(U=I.current)===null||U===void 0||U.focus({preventScroll:!0})},changeActive:function(U){var V=document,A=V.activeElement;U&&A===j.current?I.current.focus({preventScroll:!0}):!U&&A===I.current&&j.current.focus({preventScroll:!0})}}});var L={};S!==void 0&&(L.width=S),b!==void 0&&(L.height=b);var W=s?Mr.default.createElement("div",{className:(0,Tu.default)("".concat(r,"-footer"),w?.footer),style:P({},C?.footer)},s):null,z=i?Mr.default.createElement("div",{className:(0,Tu.default)("".concat(r,"-header"),w?.header),style:P({},C?.header)},Mr.default.createElement("div",{className:"".concat(r,"-title"),id:a},i)):null,$=(0,Mr.useMemo)(function(){return ie(l)==="object"&&l!==null?l:l?{closeIcon:c??Mr.default.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),D=wo($,!0),M=ie(l)==="object"&&l.disabled,H=l?Mr.default.createElement("button",Z({type:"button",onClick:u,"aria-label":"Close"},D,{className:"".concat(r,"-close"),disabled:M}),$.closeIcon):null,k=Mr.default.createElement("div",{className:(0,Tu.default)("".concat(r,"-content"),w?.content),style:C?.content},H,z,Mr.default.createElement("div",Z({className:(0,Tu.default)("".concat(r,"-body"),w?.body),style:P(P({},d),C?.body)},m),f),W);return Mr.default.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:P(P({},n),L),className:(0,Tu.default)(r,o),onMouseDown:v,onMouseUp:x},Mr.default.createElement("div",{ref:I,tabIndex:0,style:zH},Mr.default.createElement(_A,{shouldUpdate:p||y},g?g(k):k)),Mr.default.createElement("div",{tabIndex:0,ref:j,style:FH}))}),l1=BH;var NA=Hl.forwardRef(function(e,t){var r=e.prefixCls,o=e.title,n=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,d=e.mousePosition,m=(0,PA.useRef)(),g=Hl.useState(),v=B(g,2),x=v[0],h=v[1],p={};x&&(p.transformOrigin=x);function y(){var S=RA(m.current);h(d&&(d.x||d.y)?"".concat(d.x-S.left,"px ").concat(d.y-S.top,"px"):"")}return Hl.createElement(Zr,{visible:a,onVisibleChanged:f,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:c,removeOnLeave:l,ref:m},function(S,b){var w=S.className,C=S.style;return Hl.createElement(l1,Z({},e,{ref:t,title:o,ariaId:u,prefixCls:r,holderRef:b,style:P(P(P({},C),n),p),className:(0,TA.default)(i,w)}))})});NA.displayName="Content";var IA=NA;var c1=E(N()),$A=E(we());var jH=function(t){var r=t.prefixCls,o=t.style,n=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return c1.createElement(Zr,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return c1.createElement("div",Z({ref:c,style:P(P({},f),o),className:(0,$A.default)("".concat(r,"-mask"),u,s)},i))})},DA=jH;var WH=function(t){var r=t.prefixCls,o=r===void 0?"rc-dialog":r,n=t.zIndex,i=t.visible,a=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,d=t.wrapClassName,m=t.wrapProps,g=t.onClose,v=t.afterOpenChange,x=t.afterClose,h=t.transitionName,p=t.animation,y=t.closable,S=y===void 0?!0:y,b=t.mask,w=b===void 0?!0:b,C=t.maskTransitionName,R=t.maskAnimation,_=t.maskClosable,O=_===void 0?!0:_,I=t.maskStyle,j=t.maskProps,L=t.rootClassName,W=t.classNames,z=t.styles,$=(0,Da.useRef)(),D=(0,Da.useRef)(),M=(0,Da.useRef)(),H=Ul.useState(a),k=B(H,2),F=k[0],U=k[1],V=Pu();function A(){nu(D.current,document.activeElement)||($.current=document.activeElement)}function G(){if(!nu(D.current,document.activeElement)){var Y;(Y=M.current)===null||Y===void 0||Y.focus()}}function q(Y){if(Y)G();else{if(U(!1),w&&$.current&&u){try{$.current.focus({preventScroll:!0})}catch{}$.current=null}F&&x?.()}v?.(Y)}function ne(Y){g?.(Y)}var ee=(0,Da.useRef)(!1),Q=(0,Da.useRef)(),ce=function(){clearTimeout(Q.current),ee.current=!0},re=function(){Q.current=setTimeout(function(){ee.current=!1})},K=null;O&&(K=function(J){ee.current?ee.current=!1:D.current===J.target&&ne(J)});function X(Y){if(l&&Y.keyCode===Ye.ESC){Y.stopPropagation(),ne(Y);return}a&&Y.keyCode===Ye.TAB&&M.current.changeActive(!Y.shiftKey)}(0,Da.useEffect)(function(){a&&(U(!0),A())},[a]),(0,Da.useEffect)(function(){return function(){clearTimeout(Q.current)}},[]);var oe=P(P(P({zIndex:n},f),z?.wrapper),{},{display:F?null:"none"});return Ul.createElement("div",Z({className:(0,u1.default)("".concat(o,"-root"),L)},wo(t,{data:!0})),Ul.createElement(DA,{prefixCls:o,visible:w&&a,motionName:s1(o,C,R),style:P(P({zIndex:n},I),z?.mask),maskProps:j,className:W?.mask}),Ul.createElement("div",Z({tabIndex:-1,onKeyDown:X,className:(0,u1.default)("".concat(o,"-wrap"),d,W?.wrapper),ref:D,onClick:K,style:oe},m),Ul.createElement(IA,Z({},t,{onMouseDown:ce,onMouseUp:re,ref:M,closable:S,ariaId:V,prefixCls:o,visible:a&&F,onClose:ne,onVisibleChanged:q,motionName:s1(o,h,p)}))))},AA=WH;var MA=function(t){var r=t.visible,o=t.getContainer,n=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=Qi.useState(r),u=B(c,2),f=u[0],d=u[1],m=Qi.useMemo(function(){return{panel:l}},[l]);return Qi.useEffect(function(){r&&d(!0)},[r]),!n&&a&&!f?null:Qi.createElement(uy.Provider,{value:m},Qi.createElement(Vl,{open:r||n||f,autoDestroy:!1,getContainer:o,autoLock:r||f},Qi.createElement(AA,Z({},t,{destroyOnClose:a,afterClose:function(){s?.(),d(!1)}}))))};MA.displayName="Dialog";var LA=MA;var kA=LA;var R1=E(N());var Aa=E(N());var _M=E(N());var Mo=E(N());var FA=E(N()),Ei="RC_FORM_INTERNAL_HOOKS",Bt=function(){Kt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},VH=FA.createContext({getFieldValue:Bt,getFieldsValue:Bt,getFieldError:Bt,getFieldWarning:Bt,getFieldsError:Bt,isFieldsTouched:Bt,isFieldTouched:Bt,isFieldValidating:Bt,isFieldsValidating:Bt,resetFields:Bt,setFields:Bt,setFieldValue:Bt,setFieldsValue:Bt,validateFields:Bt,submit:Bt,getInternalHooks:function(){return Bt(),{dispatch:Bt,initEntityValue:Bt,registerField:Bt,useSubscribe:Bt,setInitialValues:Bt,destroyForm:Bt,setCallbacks:Bt,registerWatch:Bt,getFields:Bt,setValidateMessages:Bt,setPreserve:Bt,getInitialValue:Bt}}}),Ri=VH;var zA=E(N()),HH=zA.createContext(null),ks=HH;function Zd(e){return e==null?[]:Array.isArray(e)?e:[e]}function BA(e){return e&&!!e._init}function fy(){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 dy=fy();function jA(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function WA(e,t,r){if(_d())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var n=new(e.bind.apply(e,o));return r&&bs(n,r.prototype),n}function py(e){var t=typeof Map=="function"?new Map:void 0;return py=function(o){if(o===null||!jA(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(o))return t.get(o);t.set(o,n)}function n(){return WA(o,arguments,_l(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),bs(n,o)},py(e)}var UH=/%[sdj%]/g,UA=function(){};typeof process<"u"&&process.env;function my(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var o=r.field;t[o]=t[o]||[],t[o].push(r)}),t}function Lr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=i)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function GH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ot(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||GH(t)&&typeof e=="string"&&!e)}function qH(e,t,r){var o=[],n=0,i=e.length;function a(s){o.push.apply(o,le(s||[])),n++,n===i&&r(o)}e.forEach(function(s){t(s,a)})}function VA(e,t,r){var o=0,n=e.length;function i(a){if(a&&a.length){r(a);return}var s=o;o=o+1,st.max?n.push(Lr(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&n.push(Lr(i.messages[f].range,t.fullField,t.min,t.max))},XA=JH;var e9=function(t,r,o,n,i,a){t.required&&(!o.hasOwnProperty(t.field)||Ot(r,a||t.type))&&n.push(Lr(i.messages.required,t.fullField))},hy=e9;var gy,YA=function(){if(gy)return gy;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",o="[a-fA-F\\d]{1,4}",n=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(r,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(r,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(r,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(r,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(r,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(r,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(r,"|(?::").concat(o,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(n.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(b){return b&&b.exact?l:new RegExp("".concat(t(b)).concat(r).concat(t(b)),"g")},u.v6=function(b){return b&&b.exact?c:new RegExp("".concat(t(b)).concat(a).concat(t(b)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,g=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",x="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(m,"|").concat(g,"|").concat(v).concat(x).concat(h,")").concat(p).concat(y);return gy=new RegExp("(?:^".concat(S,"$)"),"i"),gy};var QA={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},Jd={integer:function(t){return Jd.number(t)&&parseInt(t,10)===t},float:function(t){return Jd.number(t)&&!Jd.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 ie(t)==="object"&&!Jd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(QA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(YA())},hex:function(t){return typeof t=="string"&&!!t.match(QA.hex)}},t9=function(t,r,o,n,i){if(t.required&&r===void 0){hy(t,r,o,n,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Jd[s](r)||n.push(Lr(i.messages.types[s],t.fullField,t.type)):s&&ie(r)!==t.type&&n.push(Lr(i.messages.types[s],t.fullField,t.type))},ZA=t9;var r9=function(t,r,o,n,i){(/^\s+$/.test(r)||r==="")&&n.push(Lr(i.messages.whitespace,t.fullField))},JA=r9;var tt={required:hy,whitespace:JA,type:ZA,range:XA,enum:qA,pattern:KA};var o9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i)}o(a)},eM=o9;var n9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return o();tt.required(t,r,n,a,i,"array"),r!=null&&(tt.type(t,r,n,a,i),tt.range(t,r,n,a,i))}o(a)},tM=n9;var i9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&tt.type(t,r,n,a,i)}o(a)},rM=i9;var a9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r,"date")&&!t.required)return o();if(tt.required(t,r,n,a,i),!Ot(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),tt.type(t,l,n,a,i),l&&tt.range(t,l.getTime(),n,a,i)}}o(a)},oM=a9;var s9="enum",l9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&tt[s9](t,r,n,a,i)}o(a)},nM=l9;var c9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&(tt.type(t,r,n,a,i),tt.range(t,r,n,a,i))}o(a)},iM=c9;var u9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&(tt.type(t,r,n,a,i),tt.range(t,r,n,a,i))}o(a)},aM=u9;var f9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&tt.type(t,r,n,a,i)}o(a)},sM=f9;var d9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&(tt.type(t,r,n,a,i),tt.range(t,r,n,a,i))}o(a)},lM=d9;var p9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&tt.type(t,r,n,a,i)}o(a)},cM=p9;var m9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r,"string")&&!t.required)return o();tt.required(t,r,n,a,i),Ot(r,"string")||tt.pattern(t,r,n,a,i)}o(a)},uM=m9;var h9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r)&&!t.required)return o();tt.required(t,r,n,a,i),Ot(r)||tt.type(t,r,n,a,i)}o(a)},fM=h9;var g9=function(t,r,o,n,i){var a=[],s=Array.isArray(r)?"array":ie(r);tt.required(t,r,n,a,i,s),o(a)},dM=g9;var v9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Ot(r,"string")&&!t.required)return o();tt.required(t,r,n,a,i,"string"),Ot(r,"string")||(tt.type(t,r,n,a,i),tt.range(t,r,n,a,i),tt.pattern(t,r,n,a,i),t.whitespace===!0&&tt.whitespace(t,r,n,a,i))}o(a)},pM=v9;var y9=function(t,r,o,n,i){var a=t.type,s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(Ot(r,a)&&!t.required)return o();tt.required(t,r,n,s,i,a),Ot(r,a)||tt.type(t,r,n,s,i)}o(s)},vy=y9;var Iu={string:pM,method:sM,number:lM,boolean:rM,regexp:fM,integer:aM,float:iM,array:tM,object:cM,enum:nM,pattern:uM,date:oM,url:vy,hex:vy,email:vy,required:dM,any:eM};var ep=function(){function e(t){ot(this,e),T(this,"rules",null),T(this,"_messages",dy),this.define(t)}return nt(e,[{key:"define",value:function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ie(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(n){var i=r[n];o.rules[n]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=d1(fy(),r)),this._messages}},{key:"validate",value:function(r){var o=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=n,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(g){var v=[],x={};function h(y){if(Array.isArray(y)){var S;v=(S=v).concat.apply(S,le(y))}else v.push(y)}for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(C)?C:[C];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&x.message!==void 0&&(R=[].concat(x.message));var _=R.map(f1(x,a));if(s.first&&_.length)return m[x.field]=1,v(_);if(!h)v(_);else{if(x.required&&!g.value)return x.message!==void 0?_=[].concat(x.message).map(f1(x,a)):s.error&&(_=[s.error(x,Lr(s.messages.required,x.field))]),v(_);var O={};x.defaultField&&Object.keys(g.value).map(function(L){O[L]=x.defaultField}),O=P(P({},O),g.rule.fields);var I={};Object.keys(O).forEach(function(L){var W=O[L],z=Array.isArray(W)?W:[W];I[L]=z.map(p.bind(null,L))});var j=new e(I);j.messages(s.messages),g.rule.options&&(g.rule.options.messages=s.messages,g.rule.options.error=s.error),j.validate(g.value,g.rule.options||s,function(L){var W=[];_&&_.length&&W.push.apply(W,le(_)),L&&L.length&&W.push.apply(W,le(L)),v(W.length?W:null)})}}var S;if(x.asyncValidator)S=x.asyncValidator(x,g.value,y,g.source,s);else if(x.validator){try{S=x.validator(x,g.value,y,g.source,s)}catch(C){var b,w;(b=(w=console).error)===null||b===void 0||b.call(w,C),s.suppressValidatorError||setTimeout(function(){throw C},0),y(C.message)}S===!0?y():S===!1?y(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||"".concat(x.fullField||x.field," fails")):S instanceof Array?y(S):S instanceof Error&&y(S.message)}S&&S.then&&S.then(function(){return y()},function(C){return y(C)})},function(g){c(g)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Iu.hasOwnProperty(r.type))throw new Error(Lr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),n=o.indexOf("message");return n!==-1&&o.splice(n,1),o.length===1&&o[0]==="required"?Iu.required:Iu[this.getType(r)]||void 0}}]),e}();T(ep,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Iu[t]=r});T(ep,"warning",UA);T(ep,"messages",dy);T(ep,"validators",Iu);var mM=ep;var xy=E(N());var bn="'${name}' is not a valid ${type}",yy={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:bn,method:bn,array:bn,object:bn,number:bn,date:bn,boolean:bn,integer:bn,float:bn,regexp:bn,email:bn,url:bn,hex:bn},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}"}};var hM=mM;function x9(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var o=r.slice(2,-1);return t[o]})}var gM="CODE_LOGIC_ERROR";function p1(e,t,r,o,n){return m1.apply(this,arguments)}function m1(){return m1=Jr(Pt().mark(function e(t,r,o,n,i){var a,s,l,c,u,f,d,m,g;return Pt().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return a=P({},o),delete a.ruleIndex,hM.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(h){return console.error(h),Promise.reject(gM)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new hM(T({},t,[a])),u=wa(yy,n.validateMessages),c.messages(u),f=[],x.prev=10,x.next=13,Promise.resolve(c.validate(T({},t,r),P({},n)));case 13:x.next=18;break;case 15:x.prev=15,x.t0=x.catch(10),x.t0.errors&&(f=x.t0.errors.map(function(h,p){var y=h.message,S=y===gM?u.default:y;return xy.isValidElement(S)?xy.cloneElement(S,{key:"error_".concat(p)}):S}));case 18:if(!(!f.length&&l)){x.next=23;break}return x.next=21,Promise.all(r.map(function(h,p){return p1("".concat(t,".").concat(p),h,l,n,i)}));case 21:return d=x.sent,x.abrupt("return",d.reduce(function(h,p){return[].concat(le(h),le(p))},[]));case 23:return m=P(P({},o),{},{name:t,enum:(o.enum||[]).join(", ")},i),g=f.map(function(h){return typeof h=="string"?x9(h,m):h}),x.abrupt("return",g);case 26:case"end":return x.stop()}},e,null,[[10,15]])})),m1.apply(this,arguments)}function vM(e,t,r,o,n,i){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,m=P(P({},u),{},{ruleIndex:f});return d&&(m.validator=function(g,v,x){var h=!1,p=function(){for(var b=arguments.length,w=new Array(b),C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(o){return y1(t,o,r)})}function y1(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(o,n){return e[n]===o})}function yM(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ie(e)!=="object"||ie(t)!=="object")return!1;var r=Object.keys(e),o=Object.keys(t),n=new Set([].concat(r,o));return le(n).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function xM(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ie(t.target)==="object"&&e in t.target?t.target[e]:t}function x1(e,t,r){var o=e.length;if(t<0||t>=o||r<0||r>=o)return e;var n=e[t],i=t-r;return i>0?[].concat(le(e.slice(0,r)),[n],le(e.slice(r,t)),le(e.slice(t+1,o))):i<0?[].concat(le(e.slice(0,t)),le(e.slice(t+1,r+1)),[n],le(e.slice(r+1,o))):e}var C9=["name"],Gn=[];function b1(e,t,r,o,n,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):o!==n}var S1=function(e){xr(r,e);var t=br(r);function r(o){var n;if(ot(this,r),n=t.call(this,o),T(Ve(n),"state",{resetCount:0}),T(Ve(n),"cancelRegisterFunc",null),T(Ve(n),"mounted",!1),T(Ve(n),"touched",!1),T(Ve(n),"dirty",!1),T(Ve(n),"validatePromise",void 0),T(Ve(n),"prevValidating",void 0),T(Ve(n),"errors",Gn),T(Ve(n),"warnings",Gn),T(Ve(n),"cancelRegister",function(){var l=n.props,c=l.preserve,u=l.isListField,f=l.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(u,c,Jt(f)),n.cancelRegisterFunc=null}),T(Ve(n),"getNamePath",function(){var l=n.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(le(d),le(c)):[]}),T(Ve(n),"getRules",function(){var l=n.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),T(Ve(n),"refresh",function(){n.mounted&&n.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),T(Ve(n),"metaCache",null),T(Ve(n),"triggerMetaEvent",function(l){var c=n.props.onMetaChange;if(c){var u=P(P({},n.getMeta()),{},{destroy:l});Cs(n.metaCache,u)||c(u),n.metaCache=u}else n.metaCache=null}),T(Ve(n),"onStoreChange",function(l,c,u){var f=n.props,d=f.shouldUpdate,m=f.dependencies,g=m===void 0?[]:m,v=f.onReset,x=u.store,h=n.getNamePath(),p=n.getValue(l),y=n.getValue(x),S=c&&Fs(c,h);switch(u.type==="valueUpdate"&&u.source==="external"&&!Cs(p,y)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=Gn,n.warnings=Gn,n.triggerMetaEvent()),u.type){case"reset":if(!c||S){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=Gn,n.warnings=Gn,n.triggerMetaEvent(),v?.(),n.refresh();return}break;case"remove":{if(d&&b1(d,l,x,p,y,u)){n.reRender();return}break}case"setField":{var b=u.data;if(S){"touched"in b&&(n.touched=b.touched),"validating"in b&&!("originRCField"in b)&&(n.validatePromise=b.validating?Promise.resolve([]):null),"errors"in b&&(n.errors=b.errors||Gn),"warnings"in b&&(n.warnings=b.warnings||Gn),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in b&&Fs(c,h,!0)){n.reRender();return}if(d&&!h.length&&b1(d,l,x,p,y,u)){n.reRender();return}break}case"dependenciesUpdate":{var w=g.map(Jt);if(w.some(function(C){return Fs(u.relatedFields,C)})){n.reRender();return}break}default:if(S||(!g.length||h.length||d)&&b1(d,l,x,p,y,u)){n.reRender();return}break}d===!0&&n.reRender()}),T(Ve(n),"validateRules",function(l){var c=n.getNamePath(),u=n.getValue(),f=l||{},d=f.triggerName,m=f.validateOnly,g=m===void 0?!1:m,v=Promise.resolve().then(Jr(Pt().mark(function x(){var h,p,y,S,b,w,C;return Pt().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(n.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(h=n.props,p=h.validateFirst,y=p===void 0?!1:p,S=h.messageVariables,b=h.validateDebounce,w=n.getRules(),d&&(w=w.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var j=Zd(I);return j.includes(d)})),!(b&&d)){_.next=10;break}return _.next=8,new Promise(function(O){setTimeout(O,b)});case 8:if(n.validatePromise===v){_.next=10;break}return _.abrupt("return",[]);case 10:return C=vM(c,u,w,l,y,S),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gn;if(n.validatePromise===v){var I;n.validatePromise=null;var j=[],L=[];(I=O.forEach)===null||I===void 0||I.call(O,function(W){var z=W.rule.warningOnly,$=W.errors,D=$===void 0?Gn:$;z?L.push.apply(L,le(D)):j.push.apply(j,le(D))}),n.errors=j,n.warnings=L,n.triggerMetaEvent(),n.reRender()}}),_.abrupt("return",C);case 13:case"end":return _.stop()}},x)})));return g||(n.validatePromise=v,n.dirty=!0,n.errors=Gn,n.warnings=Gn,n.triggerMetaEvent(),n.reRender()),v}),T(Ve(n),"isFieldValidating",function(){return!!n.validatePromise}),T(Ve(n),"isFieldTouched",function(){return n.touched}),T(Ve(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var l=n.props.fieldContext,c=l.getInternalHooks(Ei),u=c.getInitialValue;return u(n.getNamePath())!==void 0}),T(Ve(n),"getErrors",function(){return n.errors}),T(Ve(n),"getWarnings",function(){return n.warnings}),T(Ve(n),"isListField",function(){return n.props.isListField}),T(Ve(n),"isList",function(){return n.props.isList}),T(Ve(n),"isPreserve",function(){return n.props.preserve}),T(Ve(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var l={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return l}),T(Ve(n),"getOnlyChild",function(l){if(typeof l=="function"){var c=n.getMeta();return P(P({},n.getOnlyChild(l(n.getControlled(),c,n.props.fieldContext))),{},{isFunction:!0})}var u=hi(l);return u.length!==1||!Mo.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),T(Ve(n),"getValue",function(l){var c=n.props.fieldContext.getFieldsValue,u=n.getNamePath();return uo(l||c(!0),u)}),T(Ve(n),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=n.props,u=c.name,f=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,g=c.normalize,v=c.valuePropName,x=c.getValueProps,h=c.fieldContext,p=d!==void 0?d:h.validateTrigger,y=n.getNamePath(),S=h.getInternalHooks,b=h.getFieldsValue,w=S(Ei),C=w.dispatch,R=n.getValue(),_=x||function(W){return T({},v,W)},O=l[f],I=u!==void 0?_(R):{},j=P(P({},l),I);j[f]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var W,z=arguments.length,$=new Array(z),D=0;D=0&&O<=I.length?(u.keys=[].concat(le(u.keys.slice(0,O)),[u.id],le(u.keys.slice(O))),y([].concat(le(I.slice(0,O)),[_],le(I.slice(O))))):(u.keys=[].concat(le(u.keys),[u.id]),y([].concat(le(I),[_]))),u.id+=1},remove:function(_){var O=b(),I=new Set(Array.isArray(_)?_:[_]);I.size<=0||(u.keys=u.keys.filter(function(j,L){return!I.has(L)}),y(O.filter(function(j,L){return!I.has(L)})))},move:function(_,O){if(_!==O){var I=b();_<0||_>=I.length||O<0||O>=I.length||(u.keys=x1(u.keys,_,O),y(x1(I,_,O)))}}},C=p||[];return Array.isArray(C)||(C=[]),o(C.map(function(R,_){var O=u.keys[_];return O===void 0&&(u.keys[_]=u.id,O=u.keys[_],u.id+=1),{name:_,key:O,isListField:!0}}),w,x)})))}var bM=E9;var Sy=E(N());function SM(e){var t=!1,r=e.length,o=[];return e.length?new Promise(function(n,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,o[s]=l,!(r>0)&&(t&&i(o),n(o))})})}):Promise.resolve([])}var CM="__@field_split__";function C1(e){return e.map(function(t){return"".concat(ie(t),":").concat(t)}).join(CM)}var R9=function(){function e(){ot(this,e),T(this,"kvs",new Map)}return nt(e,[{key:"set",value:function(r,o){this.kvs.set(C1(r),o)}},{key:"get",value:function(r){return this.kvs.get(C1(r))}},{key:"update",value:function(r,o){var n=this.get(r),i=o(n);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(C1(r))}},{key:"map",value:function(r){return le(this.kvs.entries()).map(function(o){var n=B(o,2),i=n[0],a=n[1],s=i.split(CM);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=B(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(o){var n=o.key,i=o.value;return r[n.join(".")]=i,null}),r}}]),e}(),Gl=R9;var O9=["name"],_9=nt(function e(t){var r=this;ot(this,e),T(this,"formHooked",!1),T(this,"forceRootUpdate",void 0),T(this,"subscribable",!0),T(this,"store",{}),T(this,"fieldEntities",[]),T(this,"initialValues",{}),T(this,"callbacks",{}),T(this,"validateMessages",null),T(this,"preserve",null),T(this,"lastValidatePromise",null),T(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),T(this,"getInternalHooks",function(o){return o===Ei?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Kt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),T(this,"useSubscribe",function(o){r.subscribable=o}),T(this,"prevWithoutPreserves",null),T(this,"setInitialValues",function(o,n){if(r.initialValues=o||{},n){var i,a=wa(o,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Ao(a,l,uo(o,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),T(this,"destroyForm",function(o){if(o)r.updateStore({});else{var n=new Gl;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=n}}),T(this,"getInitialValue",function(o){var n=uo(r.initialValues,o);return o.length?wa(n):n}),T(this,"setCallbacks",function(o){r.callbacks=o}),T(this,"setValidateMessages",function(o){r.validateMessages=o}),T(this,"setPreserve",function(o){r.preserve=o}),T(this,"watchList",[]),T(this,"registerWatch",function(o){return r.watchList.push(o),function(){r.watchList=r.watchList.filter(function(n){return n!==o})}}),T(this,"notifyWatch",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var n=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(n,i,o)})}}),T(this,"timeoutId",null),T(this,"warningUnhooked",function(){}),T(this,"updateStore",function(o){r.store=o}),T(this,"getFieldEntities",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return o?r.fieldEntities.filter(function(n){return n.getNamePath().length}):r.fieldEntities}),T(this,"getFieldsMap",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new Gl;return r.getFieldEntities(o).forEach(function(i){var a=i.getNamePath();n.set(a,i)}),n}),T(this,"getFieldEntitiesForNamePathList",function(o){if(!o)return r.getFieldEntities(!0);var n=r.getFieldsMap(!0);return o.map(function(i){var a=Jt(i);return n.get(a)||{INVALIDATE_NAME_PATH:Jt(i)}})}),T(this,"getFieldsValue",function(o,n){r.warningUnhooked();var i,a,s;if(o===!0||Array.isArray(o)?(i=o,a=n):o&&ie(o)==="object"&&(s=o.strict,a=o.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,d,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var g,v;if((g=(v=u).isList)!==null&&g!==void 0&&g.call(v))return}else if(!i&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(m);else{var x="getMeta"in u?u.getMeta():null;a(x)&&c.push(m)}}),v1(r.store,c.map(Jt))}),T(this,"getFieldValue",function(o){r.warningUnhooked();var n=Jt(o);return uo(r.store,n)}),T(this,"getFieldsError",function(o){r.warningUnhooked();var n=r.getFieldEntitiesForNamePathList(o);return n.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Jt(o[a]),errors:[],warnings:[]}})}),T(this,"getFieldError",function(o){r.warningUnhooked();var n=Jt(o),i=r.getFieldsError([n])[0];return i.errors}),T(this,"getFieldWarning",function(o){r.warningUnhooked();var n=Jt(o),i=r.getFieldsError([n])[0];return i.warnings}),T(this,"isFieldsTouched",function(){r.warningUnhooked();for(var o=arguments.length,n=new Array(o),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},n=new Gl,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=n.get(u)||new Set;f.add({entity:l,value:c}),n.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),m=r.getInitialValue(d);if(m!==void 0)Kt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var g=n.get(d);if(g&&g.size>1)Kt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=r.getFieldValue(d),x=u.isListField();!x&&(!o.skipExist||v===void 0)&&r.updateStore(Ao(r.store,d,le(g)[0].value))}}}})},s;o.entities?s=o.entities:o.namePathList?(s=[],o.namePathList.forEach(function(l){var c=n.get(l);if(c){var u;(u=s).push.apply(u,le(le(c).map(function(f){return f.entity})))}})):s=i,a(s)}),T(this,"resetFields",function(o){r.warningUnhooked();var n=r.store;if(!o){r.updateStore(wa(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(n,null,{type:"reset"}),r.notifyWatch();return}var i=o.map(Jt);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Ao(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(n,i,{type:"reset"}),r.notifyWatch(i)}),T(this,"setFields",function(o){r.warningUnhooked();var n=r.store,i=[];o.forEach(function(a){var s=a.name,l=Ne(a,O9),c=Jt(s);i.push(c),"value"in l&&r.updateStore(Ao(r.store,c,l.value)),r.notifyObservers(n,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),T(this,"getFields",function(){var o=r.getFieldEntities(!0),n=o.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=P(P({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return n}),T(this,"initEntityValue",function(o){var n=o.props.initialValue;if(n!==void 0){var i=o.getNamePath(),a=uo(r.store,i);a===void 0&&r.updateStore(Ao(r.store,i,n))}}),T(this,"isMergedPreserve",function(o){var n=o!==void 0?o:r.preserve;return n??!0}),T(this,"registerField",function(o){r.fieldEntities.push(o);var n=o.getNamePath();if(r.notifyWatch([n]),o.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[o],skipExist:!0}),r.notifyObservers(i,[o.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==o}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(n);if(n.length&&r.getFieldValue(n)!==c&&r.fieldEntities.every(function(f){return!y1(f.getNamePath(),n)})){var u=r.store;r.updateStore(Ao(u,n,c,!0)),r.notifyObservers(u,[n],{type:"remove"}),r.triggerDependenciesUpdate(u,n)}}r.notifyWatch([n])}}),T(this,"dispatch",function(o){switch(o.type){case"updateValue":{var n=o.namePath,i=o.value;r.updateValue(n,i);break}case"validateField":{var a=o.namePath,s=o.triggerName;r.validateFields([a],{triggerName:s});break}default:}}),T(this,"notifyObservers",function(o,n,i){if(r.subscribable){var a=P(P({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(o,n,a)})}else r.forceRootUpdate()}),T(this,"triggerDependenciesUpdate",function(o,n){var i=r.getDependencyChildrenFields(n);return i.length&&r.validateFields(i),r.notifyObservers(o,i,{type:"dependenciesUpdate",relatedFields:[n].concat(le(i))}),i}),T(this,"updateValue",function(o,n){var i=Jt(o),a=r.store;r.updateStore(Ao(r.store,i,n)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=v1(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(le(s)))}),T(this,"setFieldsValue",function(o){r.warningUnhooked();var n=r.store;if(o){var i=wa(r.store,o);r.updateStore(i)}r.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),T(this,"setFieldValue",function(o,n){r.setFields([{name:o,value:n,errors:[],warnings:[]}])}),T(this,"getDependencyChildrenFields",function(o){var n=new Set,i=[],a=new Gl;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=Jt(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!n.has(f)){n.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(o),i}),T(this,"triggerOnFieldsChange",function(o,n){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(n){var s=new Gl;n.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Fs(o,u)});l.length&&i(l,a)}}),T(this,"validateFields",function(o,n){r.warningUnhooked();var i,a;Array.isArray(o)||typeof o=="string"||typeof n=="string"?(i=o,a=n):a=o;var s=!!i,l=s?i.map(Jt):[],c=[],u=String(Date.now()),f=new Set,d=a||{},m=d.recursive,g=d.dirty;r.getFieldEntities(!0).forEach(function(p){if(s||l.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(g&&!p.isFieldDirty())){var y=p.getNamePath();if(f.add(y.join(u)),!s||Fs(l,y,m)){var S=p.validateRules(P({validateMessages:P(P({},yy),r.validateMessages)},a));c.push(S.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(b){var w,C=[],R=[];return(w=b.forEach)===null||w===void 0||w.call(b,function(_){var O=_.rule.warningOnly,I=_.errors;O?R.push.apply(R,le(I)):C.push.apply(C,le(I))}),C.length?Promise.reject({name:y,errors:C,warnings:R}):{name:y,errors:C,warnings:R}}))}}});var v=SM(c);r.lastValidatePromise=v,v.catch(function(p){return p}).then(function(p){var y=p.map(function(S){var b=S.name;return b});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,p)});var x=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var y=p.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:y,outOfDate:r.lastValidatePromise!==v})});x.catch(function(p){return p});var h=l.filter(function(p){return f.has(p.join(u))});return r.triggerOnFieldsChange(h),x}),T(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(o){var n=r.callbacks.onFinish;if(n)try{n(o)}catch(i){console.error(i)}}).catch(function(o){var n=r.callbacks.onFinishFailed;n&&n(o)})}),this.forceRootUpdate=t});function P9(e){var t=Sy.useRef(),r=Sy.useState({}),o=B(r,2),n=o[1];if(!t.current)if(e)t.current=e;else{var i=function(){n({})},a=new _9(i);t.current=a.getForm()}return[t.current]}var Cy=P9;var to=E(N());var zs=E(N()),w1=zs.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),E1=function(t){var r=t.validateMessages,o=t.onFormChange,n=t.onFormFinish,i=t.children,a=zs.useContext(w1),s=zs.useRef({});return zs.createElement(w1.Provider,{value:P(P({},a),{},{validateMessages:P(P({},a.validateMessages),r),triggerFormChange:function(c,u){o&&o(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){n&&n(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=P(P({},s.current),{},T({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=P({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var wM=w1;var T9=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],N9=function(t,r){var o=t.name,n=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,m=d===void 0?"onChange":d,g=t.onValuesChange,v=t.onFieldsChange,x=t.onFinish,h=t.onFinishFailed,p=t.clearOnDestroy,y=Ne(t,T9),S=to.useRef(null),b=to.useContext(wM),w=Cy(a),C=B(w,1),R=C[0],_=R.getInternalHooks(Ei),O=_.useSubscribe,I=_.setInitialValues,j=_.setCallbacks,L=_.setValidateMessages,W=_.setPreserve,z=_.destroyForm;to.useImperativeHandle(r,function(){return P(P({},R),{},{nativeElement:S.current})}),to.useEffect(function(){return b.registerForm(o,R),function(){b.unregisterForm(o)}},[b,R,o]),L(P(P({},b.validateMessages),f)),j({onValuesChange:g,onFieldsChange:function(A){if(b.triggerFormChange(o,A),v){for(var G=arguments.length,q=new Array(G>1?G-1:0),ne=1;ne{let{children:t,status:r,override:o}=e,n=Aa.useContext(ro),i=Aa.useMemo(()=>{let a=Object.assign({},n);return o&&delete a.isFormItemInput,r&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[r,o,n]);return Aa.createElement(ro.Provider,{value:i},t)},TM=Aa.createContext(void 0);var A9=e=>{let{space:t,form:r,children:o}=e;if(o==null)return null;let n=o;return r&&(n=R1.default.createElement(PM,{override:!0,status:!0},n)),t&&(n=R1.default.createElement(hD,null,n)),n},Bs=A9;var M9=e=>{let{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"}}}},L9=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},k9=(e,t)=>{let{prefixCls:r,componentCls:o,gridColumns:n}=e,i={};for(let a=n;a>=0;a--)a===0?(i[`${o}${t}-${a}`]={display:"none"},i[`${o}-push-${a}`]={insetInlineStart:"auto"},i[`${o}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${a}`]={marginInlineStart:0},i[`${o}${t}-order-${a}`]={order:0}):(i[`${o}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`}],i[`${o}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},i[`${o}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},i[`${o}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},i[`${o}${t}-order-${a}`]={order:a});return i[`${o}${t}-flex`]={flex:`var(--${r}${t}-flex)`},i},O1=(e,t)=>k9(e,t),F9=(e,t,r)=>({[`@media (min-width: ${te(t)})`]:Object.assign({},O1(e,r))}),z9=()=>({}),B9=()=>({}),RSe=Rt("Grid",M9,z9),_1=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),OSe=Rt("Grid",e=>{let t=Qe(e,{gridColumns:24}),r=_1(t);return delete r.xs,[L9(t),O1(t,""),O1(t,"-xs"),Object.keys(r).map(o=>F9(t,r[o],`-${o}`)).reduce((o,n)=>Object.assign(Object.assign({},o),n),{})]},B9);function NM(e){return{position:e,inset:0}}var P1=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},NM("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},NM("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Bl(e)}]},j9=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${te(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Qt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:te(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},iv(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${te(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},W9=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},V9=e=>{let{componentCls:t}=e,r=_1(e);delete r.xs;let o=Object.keys(r).map(n=>({[`@media (min-width: ${te(r[n])})`]:{width:`var(--${t.replace(".","")}-${n}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(le(o))}}},H9=e=>{let t=e.padding,r=e.fontSizeHeading5,o=e.lineHeightHeading5;return Qe(e,{modalHeaderHeight:e.calc(e.calc(o).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},U9=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${te(e.padding)} ${te(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${te(e.paddingXS)} ${te(e.padding)}`:0,footerBorderTop:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${te(e.padding*2)} ${te(e.padding*2)} ${te(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),ASe=Rt("Modal",e=>{let t=H9(e);return[j9(t),W9(t),P1(t),jl(t,"zoom"),V9(t)]},U9,{unitless:{titleLineHeight:!0}});var Qo=E(N());function G9(e){return t=>Qo.createElement(Na,{theme:{token:{motion:!1,zIndexPopupBase:0}}},Qo.createElement(e,Object.assign({},t)))}var q9=(e,t,r,o,n)=>G9(a=>{let{prefixCls:s,style:l}=a,c=Qo.useRef(null),[u,f]=Qo.useState(0),[d,m]=Qo.useState(0),[g,v]=zt(!1,{value:a.open}),{getPrefixCls:x}=Qo.useContext(et),h=x(o||"select",s);Qo.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let S=new ResizeObserver(w=>{let C=w[0].target;f(C.offsetHeight+8),m(C.offsetWidth)}),b=setInterval(()=>{var w;let C=n?`.${n(h)}`:`.${h}-dropdown`,R=(w=c.current)===null||w===void 0?void 0:w.querySelector(C);R&&(clearInterval(b),S.observe(R))},10);return()=>{clearInterval(b),S.disconnect()}}},[]);let p=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});return r&&(p=r(p)),t&&Object.assign(p,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),Qo.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},Qo.createElement(e,Object.assign({},p)))}),IM=q9;var Qn=E(N()),bE=E(we());var tr=E(N());var K1=E(we());var $u=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?.substr(0,4))};var mt=E(N());var T1=E(N()),$M=E(we()),K9=function(t){var r=t.className,o=t.customizeIcon,n=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof o=="function"?o(n):o;return T1.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),a?.(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:T1.createElement("span",{className:(0,$M.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},js=K9;var wy=E(N()),DM=function(t,r,o,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=wy.default.useMemo(function(){if(ie(n)==="object")return n.clearIcon;if(i)return i},[n,i]),u=wy.default.useMemo(function(){return!!(!a&&n&&(o.length||s)&&!(l==="combobox"&&s===""))},[n,a,o.length,s,l]);return{allowClear:u,clearIcon:wy.default.createElement(js,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var Ey=E(N()),N1=Ey.createContext(null);function Ry(){return Ey.useContext(N1)}var Du=E(N());function I1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Du.useState(!1),r=B(t,2),o=r[0],n=r[1],i=Du.useRef(null),a=function(){window.clearTimeout(i.current)};Du.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){n(c),u&&u()},e)};return[o,s,a]}var rp=E(N());function op(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=rp.useRef(null),r=rp.useRef(null);rp.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function o(n){(n||t.current===null)&&(t.current=n),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},o]}var Oy=E(N());function $1(e,t,r,o){var n=Oy.useRef(null);n.current={open:t,triggerOpen:r,customizedTrigger:o},Oy.useEffect(function(){function i(a){var s;if(!((s=n.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),n.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&n.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var Ma=E(N()),Iy=E(N());function AM(e){return e&&![Ye.ESC,Ye.SHIFT,Ye.BACKSPACE,Ye.TAB,Ye.WIN_KEY,Ye.ALT,Ye.META,Ye.WIN_KEY_RIGHT,Ye.CTRL,Ye.SEMICOLON,Ye.EQUALS,Ye.CAPS_LOCK,Ye.CONTEXT_MENU,Ye.F1,Ye.F2,Ye.F3,Ye.F4,Ye.F5,Ye.F6,Ye.F7,Ye.F8,Ye.F9,Ye.F10,Ye.F11,Ye.F12].includes(e)}var Cn=E(N()),M1=E(N()),eL=E(we());var qn=E(N()),Zi=E(N()),VM=E(we());var ql=E(N()),MM=E(we());var X9=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Au=void 0;function Y9(e,t){var r=e.prefixCls,o=e.invalidate,n=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,m=e.display,g=e.order,v=e.component,x=v===void 0?"div":v,h=Ne(e,X9),p=a&&!m;function y(R){l(c,R)}ql.useEffect(function(){return function(){y(null)}},[]);var S=i&&n!==Au?i(n,{index:g}):d,b;o||(b={opacity:p?0:1,height:p?0:Au,overflowY:p?"hidden":Au,order:a?g:Au,pointerEvents:p?"none":Au,position:p?"absolute":Au});var w={};p&&(w["aria-hidden"]=!0);var C=ql.createElement(x,Z({className:(0,MM.default)(!o&&r,u),style:P(P({},b),f)},w,h,{ref:t}),S);return a&&(C=ql.createElement(Go,{onResize:function(_){var O=_.offsetWidth;y(O)},disabled:s},C)),C}var LM=ql.forwardRef(Y9);LM.displayName="Item";var Mu=LM;var _y=E(N()),kM=E(Vi());function D1(e){if(typeof MessageChannel>"u")ft(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function FM(){var e=_y.useRef(null),t=function(o){e.current||(e.current=[],D1(function(){(0,kM.unstable_batchedUpdates)(function(){e.current.forEach(function(n){n()}),e.current=null})})),e.current.push(o)};return t}function Kl(e,t){var r=_y.useState(t),o=B(r,2),n=o[0],i=o[1],a=It(function(s){e(function(){i(s)})});return[n,a]}var Ws=E(N()),BM=E(we());var zM=E(N()),Xl=zM.default.createContext(null);var Q9=["component"],Z9=["className"],J9=["className"],e7=function(t,r){var o=Ws.useContext(Xl);if(!o){var n=t.component,i=n===void 0?"div":n,a=Ne(t,Q9);return Ws.createElement(i,Z({},a,{ref:r}))}var s=o.className,l=Ne(o,Z9),c=t.className,u=Ne(t,J9);return Ws.createElement(Xl.Provider,{value:null},Ws.createElement(Mu,Z({ref:r,className:(0,BM.default)(s,c)},l,u)))},jM=Ws.forwardRef(e7);jM.displayName="RawItem";var WM=jM;var t7=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],HM="responsive",UM="invalidate";function r7(e){return"+ ".concat(e.length," ...")}function o7(e,t){var r=e.prefixCls,o=r===void 0?"rc-overflow":r,n=e.data,i=n===void 0?[]:n,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,m=e.className,g=e.maxCount,v=e.renderRest,x=e.renderRawRest,h=e.suffix,p=e.component,y=p===void 0?"div":p,S=e.itemComponent,b=e.onVisibleChange,w=Ne(e,t7),C=f==="full",R=FM(),_=Kl(R,null),O=B(_,2),I=O[0],j=O[1],L=I||0,W=Kl(R,new Map),z=B(W,2),$=z[0],D=z[1],M=Kl(R,0),H=B(M,2),k=H[0],F=H[1],U=Kl(R,0),V=B(U,2),A=V[0],G=V[1],q=Kl(R,0),ne=B(q,2),ee=ne[0],Q=ne[1],ce=(0,Zi.useState)(null),re=B(ce,2),K=re[0],X=re[1],oe=(0,Zi.useState)(null),Y=B(oe,2),J=Y[0],se=Y[1],ue=qn.useMemo(function(){return J===null&&C?Number.MAX_SAFE_INTEGER:J||0},[J,I]),de=(0,Zi.useState)(!1),ye=B(de,2),xe=ye[0],Pe=ye[1],fe="".concat(o,"-item"),pe=Math.max(k,A),Ae=g===HM,je=i.length&&Ae,Xe=g===UM,Le=je||typeof g=="number"&&i.length>g,Ie=(0,Zi.useMemo)(function(){var Te=i;return je?I===null&&C?Te=i:Te=i.slice(0,Math.min(i.length,L/u)):typeof g=="number"&&(Te=i.slice(0,g)),Te},[i,u,I,g,je]),Ee=(0,Zi.useMemo)(function(){return je?i.slice(ue+1):i.slice(Ie.length)},[i,Ie,je,ue]),Ke=(0,Zi.useCallback)(function(Te,_e){var Ce;return typeof l=="function"?l(Te):(Ce=l&&Te?.[l])!==null&&Ce!==void 0?Ce:_e},[l]),Je=(0,Zi.useCallback)(a||function(Te){return Te},[a]);function We(Te,_e,Ce){J===Te&&(_e===void 0||_e===K)||(se(Te),Ce||(Pe(TeL){We(gt-1,Te-jt-ee+A);break}}h&&He(0)+ee>L&&X(null)}},[L,$,A,ee,Ke,Ie]);var Ue=xe&&!!Ee.length,wt={};K!==null&&je&&(wt={position:"absolute",left:K,top:0});var _t={prefixCls:fe,responsive:je,component:S,invalidate:Xe},Ht=s?function(Te,_e){var Ce=Ke(Te,_e);return qn.createElement(Xl.Provider,{key:Ce,value:P(P({},_t),{},{order:_e,item:Te,itemKey:Ce,registerSize:me,display:_e<=ue})},s(Te,_e))}:function(Te,_e){var Ce=Ke(Te,_e);return qn.createElement(Mu,Z({},_t,{order:_e,key:Ce,item:Te,renderItem:Je,itemKey:Ce,registerSize:me,display:_e<=ue}))},Me={order:Ue?ue:Number.MAX_SAFE_INTEGER,className:"".concat(fe,"-rest"),registerSize:ze,display:Ue},Re=v||r7,Ze=x?qn.createElement(Xl.Provider,{value:P(P({},_t),Me)},x(Ee)):qn.createElement(Mu,Z({},_t,Me),typeof Re=="function"?Re(Ee):Re),Oe=qn.createElement(y,Z({className:(0,VM.default)(!Xe&&o,m),style:d,ref:t},w),Ie.map(Ht),Le?Ze:null,h&&qn.createElement(Mu,Z({},_t,{responsive:Ae,responsiveDisabled:!je,order:ue,className:"".concat(fe,"-suffix"),registerSize:be,display:!0,style:wt}),h));return Ae?qn.createElement(Go,{onResize:ae,disabled:!je},Oe):Oe}var np=qn.forwardRef(o7);np.displayName="Overflow";np.Item=WM;np.RESPONSIVE=HM;np.INVALIDATE=UM;var GM=np;var qM=GM;var Lu=E(N()),KM=E(we());var n7=function(t,r){var o,n=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,d=t.activeDescendantId,m=t.value,g=t.maxLength,v=t.onKeyDown,x=t.onMouseDown,h=t.onChange,p=t.onPaste,y=t.onCompositionStart,S=t.onCompositionEnd,b=t.onBlur,w=t.open,C=t.attrs,R=a||Lu.createElement("input",null),_=R,O=_.ref,I=_.props,j=I.onKeyDown,L=I.onChange,W=I.onMouseDown,z=I.onCompositionStart,$=I.onCompositionEnd,D=I.onBlur,M=I.style;return El(!("maxLength"in R.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),R=Lu.cloneElement(R,P(P(P({type:"search"},I),{},{id:i,ref:jr(r,O),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:(0,KM.default)("".concat(n,"-selection-search-input"),(o=R)===null||o===void 0||(o=o.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?d:void 0},C),{},{value:f?m:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:P(P({},M),{},{opacity:f?null:0}),onKeyDown:function(k){v(k),j&&j(k)},onMouseDown:function(k){x(k),W&&W(k)},onChange:function(k){h(k),L&&L(k)},onCompositionStart:function(k){y(k),z&&z(k)},onCompositionEnd:function(k){S(k),$&&$(k)},onPaste:p,onBlur:function(k){b(k),D&&D(k)}})),R},i7=Lu.forwardRef(n7),Py=i7;var Ny=E(N());function ip(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var a7=typeof window<"u"&&window.document&&window.document.documentElement,YM=a7;function QM(e){return e!=null}function ZM(e){return!e&&e!==0}function XM(e){return["string","number"].includes(ie(e))}function Ty(e){var t=void 0;return e&&(XM(e.title)?t=e.title.toString():XM(e.label)&&(t=e.label.toString())),t}function A1(e,t){YM?Ny.useLayoutEffect(e,t):Ny.useEffect(e,t)}function s7(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var JM=function(t){t.preventDefault(),t.stopPropagation()},l7=function(t){var r=t.id,o=t.prefixCls,n=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,d=t.showSearch,m=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,x=t.tabIndex,h=t.removeIcon,p=t.maxTagCount,y=t.maxTagTextLength,S=t.maxTagPlaceholder,b=S===void 0?function(oe){return"+ ".concat(oe.length," ...")}:S,w=t.tagRender,C=t.onToggleOpen,R=t.onRemove,_=t.onInputChange,O=t.onInputPaste,I=t.onInputKeyDown,j=t.onInputMouseDown,L=t.onInputCompositionStart,W=t.onInputCompositionEnd,z=t.onInputBlur,$=Cn.useRef(null),D=(0,M1.useState)(0),M=B(D,2),H=M[0],k=M[1],F=(0,M1.useState)(!1),U=B(F,2),V=U[0],A=U[1],G="".concat(o,"-selection"),q=i||f==="multiple"&&s===!1||f==="tags"?a:"",ne=f==="tags"||f==="multiple"&&s===!1||d&&(i||V);A1(function(){k($.current.scrollWidth)},[q]);var ee=function(Y,J,se,ue,de){return Cn.createElement("span",{title:Ty(Y),className:(0,eL.default)("".concat(G,"-item"),T({},"".concat(G,"-item-disabled"),se))},Cn.createElement("span",{className:"".concat(G,"-item-content")},J),ue&&Cn.createElement(js,{className:"".concat(G,"-item-remove"),onMouseDown:JM,onClick:de,customizeIcon:h},"\xD7"))},Q=function(Y,J,se,ue,de,ye){var xe=function(fe){JM(fe),C(!i)};return Cn.createElement("span",{onMouseDown:xe},w({label:J,value:Y,disabled:se,closable:ue,onClose:de,isMaxTag:!!ye}))},ce=function(Y){var J=Y.disabled,se=Y.label,ue=Y.value,de=!u&&!J,ye=se;if(typeof y=="number"&&(typeof se=="string"||typeof se=="number")){var xe=String(ye);xe.length>y&&(ye="".concat(xe.slice(0,y),"..."))}var Pe=function(pe){pe&&pe.stopPropagation(),R(Y)};return typeof w=="function"?Q(ue,ye,J,de,Pe):ee(Y,ye,J,de,Pe)},re=function(Y){if(!n.length)return null;var J=typeof b=="function"?b(Y):b;return typeof w=="function"?Q(void 0,J,!1,!1,void 0,!0):ee({title:J},J,!1)},K=Cn.createElement("div",{className:"".concat(G,"-search"),style:{width:H},onFocus:function(){A(!0)},onBlur:function(){A(!1)}},Cn.createElement(Py,{ref:l,open:i,prefixCls:o,id:r,inputElement:null,disabled:u,autoFocus:m,autoComplete:g,editable:ne,activeDescendantId:v,value:q,onKeyDown:I,onMouseDown:j,onChange:_,onPaste:O,onCompositionStart:L,onCompositionEnd:W,onBlur:z,tabIndex:x,attrs:wo(t,!0)}),Cn.createElement("span",{ref:$,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q,"\xA0")),X=Cn.createElement(qM,{prefixCls:"".concat(G,"-overflow"),data:n,renderItem:ce,renderRest:re,suffix:K,itemKey:s7,maxCount:p});return Cn.createElement("span",{className:"".concat(G,"-wrap")},X,!n.length&&!q&&Cn.createElement("span",{className:"".concat(G,"-placeholder")},c))},tL=l7;var Kn=E(N());var c7=function(t){var r=t.inputElement,o=t.prefixCls,n=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,d=t.values,m=t.placeholder,g=t.tabIndex,v=t.showSearch,x=t.searchValue,h=t.activeValue,p=t.maxLength,y=t.onInputKeyDown,S=t.onInputMouseDown,b=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,R=t.onInputCompositionEnd,_=t.onInputBlur,O=t.title,I=Kn.useState(!1),j=B(I,2),L=j[0],W=j[1],z=u==="combobox",$=z||v,D=d[0],M=x||"";z&&h&&!L&&(M=h),Kn.useEffect(function(){z&&W(!1)},[z,h]);var H=u!=="combobox"&&!f&&!v?!1:!!M,k=O===void 0?Ty(D):O,F=Kn.useMemo(function(){return D?null:Kn.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:H?{visibility:"hidden"}:void 0},m)},[D,H,m,o]);return Kn.createElement("span",{className:"".concat(o,"-selection-wrap")},Kn.createElement("span",{className:"".concat(o,"-selection-search")},Kn.createElement(Py,{ref:i,prefixCls:o,id:n,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:$,activeDescendantId:c,value:M,onKeyDown:y,onMouseDown:S,onChange:function(V){W(!0),b(V)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:_,tabIndex:g,attrs:wo(t,!0),maxLength:z?p:void 0})),!z&&D?Kn.createElement("span",{className:"".concat(o,"-selection-item"),title:k,style:H?{visibility:"hidden"}:void 0},D.label):null,F)},rL=c7;var u7=function(t,r){var o=(0,Iy.useRef)(null),n=(0,Iy.useRef)(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,d=t.autoClearSearchValue,m=t.onSearch,g=t.onSearchSubmit,v=t.onToggleOpen,x=t.onInputKeyDown,h=t.onInputBlur,p=t.domRef;Ma.useImperativeHandle(r,function(){return{focus:function(k){o.current.focus(k)},blur:function(){o.current.blur()}}});var y=op(0),S=B(y,2),b=S[0],w=S[1],C=function(k){var F=k.which,U=o.current instanceof HTMLTextAreaElement;!U&&a&&(F===Ye.UP||F===Ye.DOWN)&&k.preventDefault(),x&&x(k),F===Ye.ENTER&&s==="tags"&&!n.current&&!a&&g?.(k.target.value),!(U&&!a&&~[Ye.UP,Ye.DOWN,Ye.LEFT,Ye.RIGHT].indexOf(F))&&AM(F)&&v(!0)},R=function(){w(!0)},_=(0,Iy.useRef)(null),O=function(k){m(k,!0,n.current)!==!1&&v(!0)},I=function(){n.current=!0},j=function(k){n.current=!1,s!=="combobox"&&O(k.target.value)},L=function(k){var F=k.target.value;if(c&&_.current&&/[\r\n]/.test(_.current)){var U=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");F=F.replace(U,_.current)}_.current=null,O(F)},W=function(k){var F=k.clipboardData,U=F?.getData("text");_.current=U||""},z=function(k){var F=k.target;if(F!==o.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){o.current.focus()}):o.current.focus()}},$=function(k){var F=b();k.target!==o.current&&!F&&!(s==="combobox"&&u)&&k.preventDefault(),(s!=="combobox"&&(!l||!F)||!a)&&(a&&d!==!1&&m("",!0,!1),v())},D={inputRef:o,onInputKeyDown:C,onInputMouseDown:R,onInputChange:L,onInputPaste:W,onInputCompositionStart:I,onInputCompositionEnd:j,onInputBlur:h},M=s==="multiple"||s==="tags"?Ma.createElement(tL,Z({},t,D)):Ma.createElement(rL,Z({},t,D));return Ma.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:z,onMouseDown:$},f&&Ma.createElement("div",{className:"".concat(i,"-prefix")},f),M)},f7=Ma.forwardRef(u7),oL=f7;var Dy=E(we());var pt=E(N());var lL=E(we());var Xn=E(N());var nL=E(we()),$y=E(N());function L1(e){var t=e.prefixCls,r=e.align,o=e.arrow,n=e.arrowPos,i=o||{},a=i.className,s=i.content,l=n.x,c=l===void 0?0:l,u=n.y,f=u===void 0?0:u,d=$y.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],v=r.points[1],x=g[0],h=g[1],p=v[0],y=v[1];x===p||!["t","b"].includes(x)?m.top=f:x==="t"?m.top=0:m.bottom=0,h===y||!["l","r"].includes(h)?m.left=c:h==="l"?m.left=0:m.right=0}return $y.createElement("div",{ref:d,className:(0,nL.default)("".concat(t,"-arrow"),a),style:m},s)}var iL=E(we());var k1=E(N());function F1(e){var t=e.prefixCls,r=e.open,o=e.zIndex,n=e.mask,i=e.motion;return n?k1.createElement(Zr,Z({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return k1.createElement("div",{style:{zIndex:o},className:(0,iL.default)("".concat(t,"-mask"),s)})}):null}var aL=E(N()),d7=aL.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),sL=d7;var p7=Xn.forwardRef(function(e,t){var r=e.popup,o=e.className,n=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,m=e.arrow,g=e.arrowPos,v=e.align,x=e.motion,h=e.maskMotion,p=e.forceRender,y=e.getPopupContainer,S=e.autoDestroy,b=e.portal,w=e.zIndex,C=e.onMouseEnter,R=e.onMouseLeave,_=e.onPointerEnter,O=e.onPointerDownCapture,I=e.ready,j=e.offsetX,L=e.offsetY,W=e.offsetR,z=e.offsetB,$=e.onAlign,D=e.onPrepare,M=e.stretch,H=e.targetWidth,k=e.targetHeight,F=typeof r=="function"?r():r,U=l||c,V=y?.length>0,A=Xn.useState(!y||!V),G=B(A,2),q=G[0],ne=G[1];if(xt(function(){!q&&V&&a&&ne(!0)},[q,V,a]),!q)return null;var ee="auto",Q={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(I||!l){var ce,re=v.points,K=v.dynamicInset||((ce=v._experimental)===null||ce===void 0?void 0:ce.dynamicInset),X=K&&re[0][1]==="r",oe=K&&re[0][0]==="b";X?(Q.right=W,Q.left=ee):(Q.left=j,Q.right=ee),oe?(Q.bottom=z,Q.top=ee):(Q.top=L,Q.bottom=ee)}var Y={};return M&&(M.includes("height")&&k?Y.height=k:M.includes("minHeight")&&k&&(Y.minHeight=k),M.includes("width")&&H?Y.width=H:M.includes("minWidth")&&H&&(Y.minWidth=H)),l||(Y.pointerEvents="none"),Xn.createElement(b,{open:p||U,getContainer:y&&function(){return y(a)},autoDestroy:S},Xn.createElement(F1,{prefixCls:n,open:l,zIndex:w,mask:d,motion:h}),Xn.createElement(Go,{onResize:$,disabled:!l},function(J){return Xn.createElement(Zr,Z({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(n,"-hidden")},x,{onAppearPrepare:D,onEnterPrepare:D,visible:l,onVisibleChanged:function(ue){var de;x==null||(de=x.onVisibleChanged)===null||de===void 0||de.call(x,ue),s(ue)}}),function(se,ue){var de=se.className,ye=se.style,xe=(0,lL.default)(n,de,o);return Xn.createElement("div",{ref:jr(J,t,ue),className:xe,style:P(P(P(P({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},Q),Y),ye),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:R,onPointerEnter:_,onClick:f,onPointerDownCapture:O},m&&Xn.createElement(L1,{prefixCls:n,arrow:m,arrowPos:g,align:v}),Xn.createElement(sL,{cache:!l&&!u},F))})}))}),cL=p7;var ku=E(N()),m7=ku.forwardRef(function(e,t){var r=e.children,o=e.getTriggerDOMNode,n=gi(r),i=ku.useCallback(function(s){Od(t,o?o(s):s)},[o]),a=hn(i,ys(r));return n?ku.cloneElement(r,{ref:a}):r}),uL=m7;var fL=E(N()),h7=fL.createContext(null),z1=h7;var pL=E(N());function dL(e){return e?Array.isArray(e)?e:[e]:[]}function B1(e,t,r,o){return pL.useMemo(function(){var n=dL(r??t),i=dL(o??t),a=new Set(n),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,o])}var Yl=E(N());function g7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function mL(e,t,r,o){for(var n=r.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ap(e){return Fu(parseFloat(e),0)}function W1(e,t){var r=P({},e);return(t||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var n=Vs(o).getComputedStyle(o),i=n.overflow,a=n.overflowClipMargin,s=n.borderTopWidth,l=n.borderBottomWidth,c=n.borderLeftWidth,u=n.borderRightWidth,f=o.getBoundingClientRect(),d=o.offsetHeight,m=o.clientHeight,g=o.offsetWidth,v=o.clientWidth,x=ap(s),h=ap(l),p=ap(c),y=ap(u),S=Fu(Math.round(f.width/g*1e3)/1e3),b=Fu(Math.round(f.height/d*1e3)/1e3),w=(g-v-p-y)*S,C=(d-m-x-h)*b,R=x*b,_=h*b,O=p*S,I=y*S,j=0,L=0;if(i==="clip"){var W=ap(a);j=W*S,L=W*b}var z=f.x+O-j,$=f.y+R-L,D=z+f.width+2*j-O-I-w,M=$+f.height+2*L-R-_-C;r.left=Math.max(r.left,z),r.top=Math.max(r.top,$),r.right=Math.min(r.right,D),r.bottom=Math.min(r.bottom,M)}}),r}function hL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),o=r.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(r)}function gL(e,t){var r=t||[],o=B(r,2),n=o[0],i=o[1];return[hL(e.width,n),hL(e.height,i)]}function vL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function zu(e,t){var r=t[0],o=t[1],n,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,o==="l"?n=e.x:o==="r"?n=e.x+e.width:n=e.x+e.width/2,{x:n,y:i}}function Hs(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(o,n){return n===t?r[o]||"c":o}).join("")}function V1(e,t,r,o,n,i,a){var s=Yl.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:n[o]||{}}),l=B(s,2),c=l[0],u=l[1],f=Yl.useRef(0),d=Yl.useMemo(function(){return t?sp(t):[]},[t]),m=Yl.useRef({}),g=function(){m.current={}};e||g();var v=It(function(){if(t&&r&&e){let Po=function(mc,qa){var hc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,Hp=A.x+mc,Up=A.y+qa,mx=Hp+X,Fe=Up+K,at=Math.max(Hp,hc.left),nr=Math.max(Up,hc.top),Rr=Math.min(mx,hc.right),ir=Math.min(Fe,hc.bottom);return Math.max(0,(Rr-at)*(ir-nr))},pc=function(){hr=A.y+Ce,Cr=hr+K,Ur=A.x+_e,tn=Ur+X};var WR=Po,VR=pc,p,y,S,b,w=t,C=w.ownerDocument,R=Vs(w),_=R.getComputedStyle(w),O=_.width,I=_.height,j=_.position,L=w.style.left,W=w.style.top,z=w.style.right,$=w.style.bottom,D=w.style.overflow,M=P(P({},n[o]),i),H=C.createElement("div");(p=w.parentElement)===null||p===void 0||p.appendChild(H),H.style.left="".concat(w.offsetLeft,"px"),H.style.top="".concat(w.offsetTop,"px"),H.style.position=j,H.style.height="".concat(w.offsetHeight,"px"),H.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var k;if(Array.isArray(r))k={x:r[0],y:r[1],width:0,height:0};else{var F,U,V=r.getBoundingClientRect();V.x=(F=V.x)!==null&&F!==void 0?F:V.left,V.y=(U=V.y)!==null&&U!==void 0?U:V.top,k={x:V.x,y:V.y,width:V.width,height:V.height}}var A=w.getBoundingClientRect();A.x=(y=A.x)!==null&&y!==void 0?y:A.left,A.y=(S=A.y)!==null&&S!==void 0?S:A.top;var G=C.documentElement,q=G.clientWidth,ne=G.clientHeight,ee=G.scrollWidth,Q=G.scrollHeight,ce=G.scrollTop,re=G.scrollLeft,K=A.height,X=A.width,oe=k.height,Y=k.width,J={left:0,top:0,right:q,bottom:ne},se={left:-re,top:-ce,right:ee-re,bottom:Q-ce},ue=M.htmlRegion,de="visible",ye="visibleFirst";ue!=="scroll"&&ue!==ye&&(ue=de);var xe=ue===ye,Pe=W1(se,d),fe=W1(J,d),pe=ue===de?fe:Pe,Ae=xe?fe:pe;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var je=w.getBoundingClientRect();w.style.left=L,w.style.top=W,w.style.right=z,w.style.bottom=$,w.style.overflow=D,(b=w.parentElement)===null||b===void 0||b.removeChild(H);var Xe=Fu(Math.round(X/parseFloat(O)*1e3)/1e3),Le=Fu(Math.round(K/parseFloat(I)*1e3)/1e3);if(Xe===0||Le===0||Rl(r)&&!jv(r))return;var Ie=M.offset,Ee=M.targetOffset,Ke=gL(A,Ie),Je=B(Ke,2),We=Je[0],ae=Je[1],me=gL(k,Ee),ze=B(me,2),be=ze[0],He=ze[1];k.x-=be,k.y-=He;var Ue=M.points||[],wt=B(Ue,2),_t=wt[0],Ht=wt[1],Me=vL(Ht),Re=vL(_t),Ze=zu(k,Me),Oe=zu(A,Re),Te=P({},M),_e=Ze.x-Oe.x+We,Ce=Ze.y-Oe.y+ae,gt=Po(_e,Ce),jt=Po(_e,Ce,fe),$e=zu(k,["t","l"]),Se=zu(A,["t","l"]),Ge=zu(k,["b","r"]),qe=zu(A,["b","r"]),Be=M.overflow||{},rt=Be.adjustX,Wt=Be.adjustY,Tt=Be.shiftX,cr=Be.shiftY,Ft=function(qa){return typeof qa=="boolean"?qa:qa>=0},hr,Cr,Ur,tn;pc();var wr=Ft(Wt),kr=Re[0]===Me[0];if(wr&&Re[0]==="t"&&(Cr>Ae.bottom||m.current.bt)){var ve=Ce;kr?ve-=K-oe:ve=$e.y-qe.y-ae;var ke=Po(_e,ve),ut=Po(_e,ve,fe);ke>gt||ke===gt&&(!xe||ut>=jt)?(m.current.bt=!0,Ce=ve,ae=-ae,Te.points=[Hs(Re,0),Hs(Me,0)]):m.current.bt=!1}if(wr&&Re[0]==="b"&&(hrgt||or===gt&&(!xe||Ni>=jt)?(m.current.tb=!0,Ce=vt,ae=-ae,Te.points=[Hs(Re,0),Hs(Me,0)]):m.current.tb=!1}var Fo=Ft(rt),Va=Re[1]===Me[1];if(Fo&&Re[1]==="l"&&(tn>Ae.right||m.current.rl)){var ti=_e;Va?ti-=X-Y:ti=$e.x-qe.x-We;var Ii=Po(ti,Ce),Rn=Po(ti,Ce,fe);Ii>gt||Ii===gt&&(!xe||Rn>=jt)?(m.current.rl=!0,_e=ti,We=-We,Te.points=[Hs(Re,1),Hs(Me,1)]):m.current.rl=!1}if(Fo&&Re[1]==="r"&&(Urgt||tl===gt&&(!xe||fc>=jt)?(m.current.lr=!0,_e=On,We=-We,Te.points=[Hs(Re,1),Hs(Me,1)]):m.current.lr=!1}pc();var rn=Tt===!0?0:Tt;typeof rn=="number"&&(Urfe.right&&(_e-=tn-fe.right-We,k.x>fe.right-rn&&(_e+=k.x-fe.right+rn)));var on=cr===!0?0:cr;typeof on=="number"&&(hrfe.bottom&&(Ce-=Cr-fe.bottom-ae,k.y>fe.bottom-on&&(Ce+=k.y-fe.bottom+on)));var Ha=A.x+_e,Ua=Ha+X,_n=A.y+Ce,dc=_n+K,Ga=k.x,yt=Ga+Y,lt=k.y,Gr=lt+oe,qr=Math.max(Ha,Ga),ur=Math.min(Ua,yt),Er=(qr+ur)/2,nn=Er-Ha,zo=Math.max(_n,lt),Pn=Math.min(dc,Gr),$i=(zo+Pn)/2,ri=$i-_n;a?.(t,Te);var Di=je.right-A.x-(_e+A.width),_o=je.bottom-A.y-(Ce+A.height);Xe===1&&(_e=Math.round(_e),Di=Math.round(Di)),Le===1&&(Ce=Math.round(Ce),_o=Math.round(_o));var px={ready:!0,offsetX:_e/Xe,offsetY:Ce/Le,offsetR:Di/Xe,offsetB:_o/Le,arrowX:nn/Xe,arrowY:ri/Le,scaleX:Xe,scaleY:Le,align:Te};u(px)}}),x=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&v()})},h=function(){u(function(y){return P(P({},y),{},{ready:!1})})};return xt(h,[o]),xt(function(){e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,x]}function H1(e,t,r,o,n){xt(function(){if(e&&t&&r){let d=function(){o(),n()};var f=d,i=t,a=r,s=sp(i),l=sp(a),c=Vs(a),u=new Set([c].concat(le(s),le(l)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),o(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}var lp=E(N());function U1(e,t,r,o,n,i,a,s){var l=lp.useRef(e);l.current=e;var c=lp.useRef(!1);lp.useEffect(function(){if(t&&o&&(!n||i)){var f=function(){c.current=!1},d=function(S){var b;l.current&&!a(((b=S.composedPath)===null||b===void 0||(b=b.call(S))===null||b===void 0?void 0:b[0])||S.target)&&!c.current&&s(!1)},m=Vs(o);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",d,!0),m.addEventListener("contextmenu",d,!0);var g=Ml(r);if(g&&(g.addEventListener("mousedown",d,!0),g.addEventListener("contextmenu",d,!0)),0)var v,x,h,p;return function(){m.removeEventListener("pointerdown",f,!0),m.removeEventListener("mousedown",d,!0),m.removeEventListener("contextmenu",d,!0),g&&(g.removeEventListener("mousedown",d,!0),g.removeEventListener("contextmenu",d,!0))}}},[t,r,o,n,i]);function u(){c.current=!0}return u}var v7=["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 y7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vl,t=pt.forwardRef(function(r,o){var n=r.prefixCls,i=n===void 0?"rc-trigger-popup":n,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,d=r.defaultPopupVisible,m=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,v=r.mouseEnterDelay,x=r.mouseLeaveDelay,h=x===void 0?.1:x,p=r.focusDelay,y=r.blurDelay,S=r.mask,b=r.maskClosable,w=b===void 0?!0:b,C=r.getPopupContainer,R=r.forceRender,_=r.autoDestroy,O=r.destroyPopupOnHide,I=r.popup,j=r.popupClassName,L=r.popupStyle,W=r.popupPlacement,z=r.builtinPlacements,$=z===void 0?{}:z,D=r.popupAlign,M=r.zIndex,H=r.stretch,k=r.getPopupClassNameFromAlign,F=r.fresh,U=r.alignPoint,V=r.onPopupClick,A=r.onPopupAlign,G=r.arrow,q=r.popupMotion,ne=r.maskMotion,ee=r.popupTransitionName,Q=r.popupAnimation,ce=r.maskTransitionName,re=r.maskAnimation,K=r.className,X=r.getTriggerDOMNode,oe=Ne(r,v7),Y=_||O||!1,J=pt.useState(!1),se=B(J,2),ue=se[0],de=se[1];xt(function(){de($u())},[]);var ye=pt.useRef({}),xe=pt.useContext(z1),Pe=pt.useMemo(function(){return{registerSubPopup:function(at,nr){ye.current[at]=nr,xe?.registerSubPopup(at,nr)}}},[xe]),fe=Pu(),pe=pt.useState(null),Ae=B(pe,2),je=Ae[0],Xe=Ae[1],Le=pt.useRef(null),Ie=It(function(Fe){Le.current=Fe,Rl(Fe)&&je!==Fe&&Xe(Fe),xe?.registerSubPopup(fe,Fe)}),Ee=pt.useState(null),Ke=B(Ee,2),Je=Ke[0],We=Ke[1],ae=pt.useRef(null),me=It(function(Fe){Rl(Fe)&&Je!==Fe&&(We(Fe),ae.current=Fe)}),ze=pt.Children.only(a),be=ze?.props||{},He={},Ue=It(function(Fe){var at,nr,Rr=Je;return Rr?.contains(Fe)||((at=Ml(Rr))===null||at===void 0?void 0:at.host)===Fe||Fe===Rr||je?.contains(Fe)||((nr=Ml(je))===null||nr===void 0?void 0:nr.host)===Fe||Fe===je||Object.values(ye.current).some(function(ir){return ir?.contains(Fe)||Fe===ir})}),wt=j1(i,q,Q,ee),_t=j1(i,ne,re,ce),Ht=pt.useState(d||!1),Me=B(Ht,2),Re=Me[0],Ze=Me[1],Oe=f??Re,Te=It(function(Fe){f===void 0&&Ze(Fe)});xt(function(){Ze(f||!1)},[f]);var _e=pt.useRef(Oe);_e.current=Oe;var Ce=pt.useRef([]);Ce.current=[];var gt=It(function(Fe){var at;Te(Fe),((at=Ce.current[Ce.current.length-1])!==null&&at!==void 0?at:Oe)!==Fe&&(Ce.current.push(Fe),m?.(Fe))}),jt=pt.useRef(),$e=function(){clearTimeout(jt.current)},Se=function(at){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;$e(),nr===0?gt(at):jt.current=setTimeout(function(){gt(at)},nr*1e3)};pt.useEffect(function(){return $e},[]);var Ge=pt.useState(!1),qe=B(Ge,2),Be=qe[0],rt=qe[1];xt(function(Fe){(!Fe||Oe)&&rt(!0)},[Oe]);var Wt=pt.useState(null),Tt=B(Wt,2),cr=Tt[0],Ft=Tt[1],hr=pt.useState(null),Cr=B(hr,2),Ur=Cr[0],tn=Cr[1],wr=function(at){tn([at.clientX,at.clientY])},kr=V1(Oe,je,U&&Ur!==null?Ur:Je,W,$,D,A),ve=B(kr,11),ke=ve[0],ut=ve[1],vt=ve[2],or=ve[3],Ni=ve[4],Fo=ve[5],Va=ve[6],ti=ve[7],Ii=ve[8],Rn=ve[9],On=ve[10],tl=B1(ue,l,c,u),fc=B(tl,2),rn=fc[0],on=fc[1],Ha=rn.has("click"),Ua=on.has("click")||on.has("contextMenu"),_n=It(function(){Be||On()}),dc=function(){_e.current&&U&&Ua&&Se(!1)};H1(Oe,Je,je,_n,dc),xt(function(){_n()},[Ur,W]),xt(function(){Oe&&!($!=null&&$[W])&&_n()},[JSON.stringify(D)]);var Ga=pt.useMemo(function(){var Fe=mL($,i,Rn,U);return(0,Dy.default)(Fe,k?.(Rn))},[Rn,k,$,i,U]);pt.useImperativeHandle(o,function(){return{nativeElement:ae.current,popupElement:Le.current,forceAlign:_n}});var yt=pt.useState(0),lt=B(yt,2),Gr=lt[0],qr=lt[1],ur=pt.useState(0),Er=B(ur,2),nn=Er[0],zo=Er[1],Pn=function(){if(H&&Je){var at=Je.getBoundingClientRect();qr(at.width),zo(at.height)}},$i=function(){Pn(),_n()},ri=function(at){rt(!1),On(),g?.(at)},Di=function(){return new Promise(function(at){Pn(),Ft(function(){return at})})};xt(function(){cr&&(On(),cr(),Ft(null))},[cr]);function _o(Fe,at,nr,Rr){He[Fe]=function(ir){var Gp;Rr?.(ir),Se(at,nr);for(var hx=arguments.length,HR=new Array(hx>1?hx-1:0),qp=1;qp1?nr-1:0),ir=1;ir1?nr-1:0),ir=1;ir1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,o=t.childrenAsData,n=[],i=G1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,d){Array.isArray(f)&&f.forEach(function(m){if(d||!(l in m)){var g=m[s];n.push({key:bL(m,n.length),groupOption:d,data:m,label:m[a],value:g})}else{var v=m[c];v===void 0&&o&&(v=m.label),n.push({key:bL(m,n.length),group:!0,data:m,label:v}),u(m[l],!0)}})}return u(e,!1),n}function up(e){var t=P({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Kt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var CL=function(t,r,o){if(!r||!r.length)return null;var n=!1,i=function s(l,c){var u=Hg(c),f=u[0],d=u.slice(1);if(!f)return[l];var m=l.split(f);return n=n||m.length>1,m.reduce(function(g,v){return[].concat(le(g),le(s(v,d)))},[]).filter(Boolean)},a=i(t,r);return n?typeof o<"u"?a.slice(0,o):a:null};var wL=E(N()),w7=wL.createContext(null),Bu=w7;var EL=E(N());function q1(e){var t=e.visible,r=e.values;if(!t)return null;var o=50;return EL.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,o).map(function(n){var i=n.label,a=n.value;return["number","string"].includes(ie(i))?i:a}).join(", ")),r.length>o?", ...":null)}var E7=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],R7=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],fp=function(t){return t==="tags"||t==="multiple"},O7=mt.forwardRef(function(e,t){var r,o=e.id,n=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,d=e.emptyOptions,m=e.notFoundContent,g=m===void 0?"Not Found":m,v=e.onClear,x=e.mode,h=e.disabled,p=e.loading,y=e.getInputElement,S=e.getRawInputElement,b=e.open,w=e.defaultOpen,C=e.onDropdownVisibleChange,R=e.activeValue,_=e.onActiveValueChange,O=e.activeDescendantId,I=e.searchValue,j=e.autoClearSearchValue,L=e.onSearch,W=e.onSearchSplit,z=e.tokenSeparators,$=e.allowClear,D=e.prefix,M=e.suffixIcon,H=e.clearIcon,k=e.OptionList,F=e.animation,U=e.transitionName,V=e.dropdownStyle,A=e.dropdownClassName,G=e.dropdownMatchSelectWidth,q=e.dropdownRender,ne=e.dropdownAlign,ee=e.placement,Q=e.builtinPlacements,ce=e.getPopupContainer,re=e.showAction,K=re===void 0?[]:re,X=e.onFocus,oe=e.onBlur,Y=e.onKeyUp,J=e.onKeyDown,se=e.onMouseDown,ue=Ne(e,E7),de=fp(x),ye=(a!==void 0?a:de)||x==="combobox",xe=P({},ue);R7.forEach(function(yt){delete xe[yt]}),c?.forEach(function(yt){delete xe[yt]});var Pe=mt.useState(!1),fe=B(Pe,2),pe=fe[0],Ae=fe[1];mt.useEffect(function(){Ae($u())},[]);var je=mt.useRef(null),Xe=mt.useRef(null),Le=mt.useRef(null),Ie=mt.useRef(null),Ee=mt.useRef(null),Ke=mt.useRef(!1),Je=I1(),We=B(Je,3),ae=We[0],me=We[1],ze=We[2];mt.useImperativeHandle(t,function(){var yt,lt;return{focus:(yt=Ie.current)===null||yt===void 0?void 0:yt.focus,blur:(lt=Ie.current)===null||lt===void 0?void 0:lt.blur,scrollTo:function(qr){var ur;return(ur=Ee.current)===null||ur===void 0?void 0:ur.scrollTo(qr)},nativeElement:je.current||Xe.current}});var be=mt.useMemo(function(){var yt;if(x!=="combobox")return I;var lt=(yt=u[0])===null||yt===void 0?void 0:yt.value;return typeof lt=="string"||typeof lt=="number"?String(lt):""},[I,x,u]),He=x==="combobox"&&typeof y=="function"&&y()||null,Ue=typeof S=="function"&&S(),wt=hn(Xe,Ue==null||(r=Ue.props)===null||r===void 0?void 0:r.ref),_t=mt.useState(!1),Ht=B(_t,2),Me=Ht[0],Re=Ht[1];xt(function(){Re(!0)},[]);var Ze=zt(!1,{defaultValue:w,value:b}),Oe=B(Ze,2),Te=Oe[0],_e=Oe[1],Ce=Me?Te:!1,gt=!g&&d;(h||gt&&Ce&&x==="combobox")&&(Ce=!1);var jt=gt?!1:Ce,$e=mt.useCallback(function(yt){var lt=yt!==void 0?yt:!Ce;h||(_e(lt),Ce!==lt&&C?.(lt))},[h,Ce,_e,C]),Se=mt.useMemo(function(){return(z||[]).some(function(yt){return[` `,`\r `].includes(yt)})},[z]),Ge=mt.useContext(Bu)||{},qe=Ge.maxCount,Be=Ge.rawValues,rt=function(lt,Gr,qr){if(!(de&&cp(qe)&&Be?.size>=qe)){var ur=!0,Er=lt;_?.(null);var nn=CL(lt,z,cp(qe)?qe-Be.size:void 0),zo=qr?null:nn;return x!=="combobox"&&zo&&(Er="",W?.(zo),$e(!1),ur=!1),L&&be!==Er&&L(Er,{source:Gr?"typing":"effect"}),ur}},Wt=function(lt){!lt||!lt.trim()||L(lt,{source:"submit"})};mt.useEffect(function(){!Ce&&!de&&x!=="combobox"&&rt("",!1,!1)},[Ce]),mt.useEffect(function(){Te&&h&&_e(!1),h&&!Ke.current&&me(!1)},[h]);var Tt=op(),cr=B(Tt,2),Ft=cr[0],hr=cr[1],Cr=mt.useRef(!1),Ur=function(lt){var Gr=Ft(),qr=lt.key,ur=qr==="Enter";if(ur&&(x!=="combobox"&<.preventDefault(),Ce||$e(!0)),hr(!!be),qr==="Backspace"&&!Gr&&de&&!be&&u.length){for(var Er=le(u),nn=null,zo=Er.length-1;zo>=0;zo-=1){var Pn=Er[zo];if(!Pn.disabled){Er.splice(zo,1),nn=Pn;break}}nn&&f(Er,{type:"remove",values:[nn]})}for(var $i=arguments.length,ri=new Array($i>1?$i-1:0),Di=1;Di<$i;Di++)ri[Di-1]=arguments[Di];if(Ce&&(!ur||!Cr.current)){var _o;ur&&(Cr.current=!0),(_o=Ee.current)===null||_o===void 0||_o.onKeyDown.apply(_o,[lt].concat(ri))}J?.apply(void 0,[lt].concat(ri))},tn=function(lt){for(var Gr=arguments.length,qr=new Array(Gr>1?Gr-1:0),ur=1;ur1?nn-1:0),Pn=1;Pn"u"?"undefined":ie(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Z1=_7;var Ly=E(N()),ky=function(e,t,r,o){var n=(0,Ly.useRef)(!1),i=(0,Ly.useRef)(null);function a(){clearTimeout(i.current),n.current=!0,i.current=setTimeout(function(){n.current=!1},50)}var s=(0,Ly.useRef)({top:e,bottom:t,left:r,right:o});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=o,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),n.current=!1):(!f||n.current)&&a(),!n.current&&f}};function J1(e,t,r,o,n,i,a){var s=(0,Ql.useRef)(0),l=(0,Ql.useRef)(null),c=(0,Ql.useRef)(null),u=(0,Ql.useRef)(!1),f=ky(t,r,o,n);function d(p,y){if(ft.cancel(l.current),!f(!1,y)){var S=p;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=y,c.current=y,Z1||S.preventDefault(),l.current=ft(function(){var b=u.current?10:1;a(s.current*b,!1),s.current=0})}}function m(p,y){a(y,!0),Z1||p.preventDefault()}var g=(0,Ql.useRef)(null),v=(0,Ql.useRef)(null);function x(p){if(e){ft.cancel(v.current),v.current=ft(function(){g.current=null},2);var y=p.deltaX,S=p.deltaY,b=p.shiftKey,w=y,C=S;(g.current==="sx"||!g.current&&b&&S&&!y)&&(w=S,C=0,g.current="sx");var R=Math.abs(w),_=Math.abs(C);g.current===null&&(g.current=i&&R>_?"x":"y"),g.current==="y"?d(p,C):m(p,w)}}function h(p){e&&(u.current=p.detail===c.current)}return[x,h]}var DL=E(N());function AL(e,t,r,o){var n=DL.useMemo(function(){return[new Map,[]]},[e,r.id,o]),i=B(n,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,d=a.get(u),m=a.get(f);if(d===void 0||m===void 0)for(var g=e.length,v=s.length;v0&&arguments[0]!==void 0?arguments[0]:!1;u();var g=function(){var h=!1;s.current.forEach(function(p,y){if(p&&p.offsetParent){var S=p.offsetHeight,b=getComputedStyle(p),w=b.marginTop,C=b.marginBottom,R=LL(w),_=LL(C),O=S+R+_;l.current.get(y)!==O&&(l.current.set(y,O),h=!0)}}),h&&a(function(p){return p+1})};if(m)g();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&g()})}}function d(m,g){var v=e(m),x=s.current.get(v);g?(s.current.set(v,g),f()):s.current.delete(v),!x!=!g&&(g?t?.(m):r?.(m))}return(0,Wu.useEffect)(function(){return u},[]),[d,f,l.current,i]}var Vu=E(N()),FL=14/15;function tE(e,t,r){var o=(0,Vu.useRef)(!1),n=(0,Vu.useRef)(0),i=(0,Vu.useRef)(0),a=(0,Vu.useRef)(null),s=(0,Vu.useRef)(null),l,c=function(m){if(o.current){var g=Math.ceil(m.touches[0].pageX),v=Math.ceil(m.touches[0].pageY),x=n.current-g,h=i.current-v,p=Math.abs(x)>Math.abs(h);p?n.current=g:i.current=v;var y=r(p,p?x:h,!1,m);y&&m.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){p?x*=FL:h*=FL;var S=Math.floor(p?x:h);(!r(p,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},u=function(){o.current=!1,l()},f=function(m){l(),m.touches.length===1&&!o.current&&(o.current=!0,n.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},xt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var BL=E(N());function zL(e){return Math.floor(Math.pow(e,.5))}function Fy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function rE(e,t,r){BL.useEffect(function(){var o=t.current;if(e&&o){var n=!1,i,a,s=function(){ft.cancel(i)},l=function d(){s(),i=ft(function(){r(a),d()})},c=function(m){if(!(m.target.draggable||m.button!==0)){var g=m;g._virtualHandled||(g._virtualHandled=!0,n=!0)}},u=function(){n=!1,s()},f=function(m){if(n){var g=Fy(m,!1),v=o.getBoundingClientRect(),x=v.top,h=v.bottom;if(g<=x){var p=x-g;a=-zL(p),l()}else if(g>=h){var y=g-h;a=zL(y),l()}else s()}};return o.addEventListener("mousedown",c),o.ownerDocument.addEventListener("mouseup",u),o.ownerDocument.addEventListener("mousemove",f),function(){o.removeEventListener("mousedown",c),o.ownerDocument.removeEventListener("mouseup",u),o.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var zy=E(N());var T7=10;function oE(e,t,r,o,n,i,a,s){var l=zy.useRef(),c=zy.useState(null),u=B(c,2),f=u[0],d=u[1];return xt(function(){if(f&&f.times=0;W-=1){var z=n(t[W]),$=r.get(z);if($===void 0){p=!0;break}if(L-=$,L<=0)break}switch(b){case"top":S=C-x;break;case"bottom":S=R-h+x;break;default:{var D=e.current.scrollTop,M=D+h;CM&&(y="bottom")}}S!==null&&a(S),S!==f.lastTop&&(p=!0)}p&&d(P(P({},f),{},{times:f.times+1,targetAlign:y,lastTop:S}))}},[f,e.current]),function(m){if(m==null){s();return}if(ft.cancel(l.current),typeof m=="number")a(m);else if(m&&ie(m)==="object"){var g,v=m.align;"index"in m?g=m.index:g=t.findIndex(function(p){return n(p)===m.key});var x=m.offset,h=x===void 0?0:x;d({times:0,index:g,offset:h,originAlign:v})}}}var nE=E(we());var er=E(N());var N7=er.forwardRef(function(e,t){var r=e.prefixCls,o=e.rtl,n=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,d=e.style,m=e.thumbStyle,g=e.showScrollBar,v=er.useState(!1),x=B(v,2),h=x[0],p=x[1],y=er.useState(null),S=B(y,2),b=S[0],w=S[1],C=er.useState(null),R=B(C,2),_=R[0],O=R[1],I=!o,j=er.useRef(),L=er.useRef(),W=er.useState(g),z=B(W,2),$=z[0],D=z[1],M=er.useRef(),H=function(){g===!0||g===!1||(clearTimeout(M.current),D(!0),M.current=setTimeout(function(){D(!1)},3e3))},k=i-f||0,F=f-u||0,U=er.useMemo(function(){if(n===0||k===0)return 0;var re=n/k;return re*F},[n,k,F]),V=function(K){K.stopPropagation(),K.preventDefault()},A=er.useRef({top:U,dragging:h,pageY:b,startTop:_});A.current={top:U,dragging:h,pageY:b,startTop:_};var G=function(K){p(!0),w(Fy(K,c)),O(A.current.top),a(),K.stopPropagation(),K.preventDefault()};er.useEffect(function(){var re=function(Y){Y.preventDefault()},K=j.current,X=L.current;return K.addEventListener("touchstart",re,{passive:!1}),X.addEventListener("touchstart",G,{passive:!1}),function(){K.removeEventListener("touchstart",re),X.removeEventListener("touchstart",G)}},[]);var q=er.useRef();q.current=k;var ne=er.useRef();ne.current=F,er.useEffect(function(){if(h){var re,K=function(Y){var J=A.current,se=J.dragging,ue=J.pageY,de=J.startTop;ft.cancel(re);var ye=j.current.getBoundingClientRect(),xe=f/(c?ye.width:ye.height);if(se){var Pe=(Fy(Y,c)-ue)*xe,fe=de;!I&&c?fe-=Pe:fe+=Pe;var pe=q.current,Ae=ne.current,je=Ae?fe/Ae:0,Xe=Math.ceil(je*pe);Xe=Math.max(Xe,0),Xe=Math.min(Xe,pe),re=ft(function(){l(Xe,c)})}},X=function(){p(!1),s()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),function(){window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),ft.cancel(re)}}},[h]),er.useEffect(function(){return H(),function(){clearTimeout(M.current)}},[n]),er.useImperativeHandle(t,function(){return{delayHidden:H}});var ee="".concat(r,"-scrollbar"),Q={position:"absolute",visibility:$?null:"hidden"},ce={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(Q.height=8,Q.left=0,Q.right=0,Q.bottom=0,ce.height="100%",ce.width=u,I?ce.left=U:ce.right=U):(Q.width=8,Q.top=0,Q.bottom=0,I?Q.right=0:Q.left=0,ce.width="100%",ce.height=u,ce.top=U),er.createElement("div",{ref:j,className:(0,nE.default)(ee,T(T(T({},"".concat(ee,"-horizontal"),c),"".concat(ee,"-vertical"),!c),"".concat(ee,"-visible"),$)),style:P(P({},Q),d),onMouseDown:V,onMouseMove:H},er.createElement("div",{ref:L,className:(0,nE.default)("".concat(ee,"-thumb"),T({},"".concat(ee,"-thumb-moving"),h)),style:P(P({},ce),m),onMouseDown:G}))}),iE=N7;var I7=20;function aE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,I7),Math.floor(r)}var $7=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],D7=[],A7={overflowY:"auto",overflowAnchor:"none"};function M7(e,t){var r=e.prefixCls,o=r===void 0?"rc-virtual-list":r,n=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,d=e.itemKey,m=e.virtual,g=e.direction,v=e.scrollWidth,x=e.component,h=x===void 0?"div":x,p=e.onScroll,y=e.onVirtualScroll,S=e.onVisibleChange,b=e.innerProps,w=e.extraRender,C=e.styles,R=e.showScrollBar,_=R===void 0?"optional":R,O=Ne(e,$7),I=Sr.useCallback(function(ve){return typeof d=="function"?d(ve):ve?.[d]},[d]),j=eE(I,null,null),L=B(j,4),W=L[0],z=L[1],$=L[2],D=L[3],M=!!(m!==!1&&i&&a),H=Sr.useMemo(function(){return Object.values($.maps).reduce(function(ve,ke){return ve+ke},0)},[$.id,$.maps]),k=M&&u&&(Math.max(a*u.length,H)>i||!!v),F=g==="rtl",U=(0,jL.default)(o,T({},"".concat(o,"-rtl"),F),n),V=u||D7,A=(0,Zo.useRef)(),G=(0,Zo.useRef)(),q=(0,Zo.useRef)(),ne=(0,Zo.useState)(0),ee=B(ne,2),Q=ee[0],ce=ee[1],re=(0,Zo.useState)(0),K=B(re,2),X=K[0],oe=K[1],Y=(0,Zo.useState)(!1),J=B(Y,2),se=J[0],ue=J[1],de=function(){ue(!0)},ye=function(){ue(!1)},xe={getKey:I};function Pe(ve){ce(function(ke){var ut;typeof ve=="function"?ut=ve(ke):ut=ve;var vt=Re(ut);return A.current.scrollTop=vt,vt})}var fe=(0,Zo.useRef)({start:0,end:V.length}),pe=(0,Zo.useRef)(),Ae=Q1(V,I),je=B(Ae,1),Xe=je[0];pe.current=Xe;var Le=Sr.useMemo(function(){if(!M)return{scrollHeight:void 0,start:0,end:V.length-1,offset:void 0};if(!k){var ve;return{scrollHeight:((ve=G.current)===null||ve===void 0?void 0:ve.offsetHeight)||0,start:0,end:V.length-1,offset:void 0}}for(var ke=0,ut,vt,or,Ni=V.length,Fo=0;Fo=Q&&ut===void 0&&(ut=Fo,vt=ke),Rn>Q+i&&or===void 0&&(or=Fo),ke=Rn}return ut===void 0&&(ut=0,vt=0,or=Math.ceil(i/a)),or===void 0&&(or=V.length-1),or=Math.min(or+1,V.length-1),{scrollHeight:ke,start:ut,end:or,offset:vt}},[k,M,Q,V,D,i]),Ie=Le.scrollHeight,Ee=Le.start,Ke=Le.end,Je=Le.offset;fe.current.start=Ee,fe.current.end=Ke,Sr.useLayoutEffect(function(){var ve=$.getRecord();if(ve.size===1){var ke=Array.from(ve)[0],ut=V[Ee];if(ut){var vt=I(ut);if(vt===ke){var or=$.get(ke),Ni=or-a;Pe(function(Fo){return Fo+Ni})}}}$.resetRecord()},[Ie]);var We=Sr.useState({width:0,height:i}),ae=B(We,2),me=ae[0],ze=ae[1],be=function(ke){ze({width:ke.offsetWidth,height:ke.offsetHeight})},He=(0,Zo.useRef)(),Ue=(0,Zo.useRef)(),wt=Sr.useMemo(function(){return aE(me.width,v)},[me.width,v]),_t=Sr.useMemo(function(){return aE(me.height,Ie)},[me.height,Ie]),Ht=Ie-i,Me=(0,Zo.useRef)(Ht);Me.current=Ht;function Re(ve){var ke=ve;return Number.isNaN(Me.current)||(ke=Math.min(ke,Me.current)),ke=Math.max(ke,0),ke}var Ze=Q<=0,Oe=Q>=Ht,Te=X<=0,_e=X>=v,Ce=ky(Ze,Oe,Te,_e),gt=function(){return{x:F?-X:X,y:Q}},jt=(0,Zo.useRef)(gt()),$e=It(function(ve){if(y){var ke=P(P({},gt()),ve);(jt.current.x!==ke.x||jt.current.y!==ke.y)&&(y(ke),jt.current=ke)}});function Se(ve,ke){var ut=ve;ke?((0,sE.flushSync)(function(){oe(ut)}),$e()):Pe(ut)}function Ge(ve){var ke=ve.currentTarget.scrollTop;ke!==Q&&Pe(ke),p?.(ve),$e()}var qe=function(ke){var ut=ke,vt=v?v-me.width:0;return ut=Math.max(ut,0),ut=Math.min(ut,vt),ut},Be=It(function(ve,ke){ke?((0,sE.flushSync)(function(){oe(function(ut){var vt=ut+(F?-ve:ve);return qe(vt)})}),$e()):Pe(function(ut){var vt=ut+ve;return vt})}),rt=J1(M,Ze,Oe,Te,_e,!!v,Be),Wt=B(rt,2),Tt=Wt[0],cr=Wt[1];tE(M,A,function(ve,ke,ut,vt){var or=vt;return Ce(ve,ke,ut)?!1:!or||!or._virtualHandled?(or&&(or._virtualHandled=!0),Tt({preventDefault:function(){},deltaX:ve?ke:0,deltaY:ve?0:ke}),!0):!1}),rE(k,A,function(ve){Pe(function(ke){return ke+ve})}),xt(function(){function ve(ut){var vt=Ze&&ut.detail<0,or=Oe&&ut.detail>0;M&&!vt&&!or&&ut.preventDefault()}var ke=A.current;return ke.addEventListener("wheel",Tt,{passive:!1}),ke.addEventListener("DOMMouseScroll",cr,{passive:!0}),ke.addEventListener("MozMousePixelScroll",ve,{passive:!1}),function(){ke.removeEventListener("wheel",Tt),ke.removeEventListener("DOMMouseScroll",cr),ke.removeEventListener("MozMousePixelScroll",ve)}},[M,Ze,Oe]),xt(function(){if(v){var ve=qe(X);oe(ve),$e({x:ve})}},[me.width,v]);var Ft=function(){var ke,ut;(ke=He.current)===null||ke===void 0||ke.delayHidden(),(ut=Ue.current)===null||ut===void 0||ut.delayHidden()},hr=oE(A,V,$,a,I,function(){return z(!0)},Pe,Ft);Sr.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:gt,scrollTo:function(ke){function ut(vt){return vt&&ie(vt)==="object"&&("left"in vt||"top"in vt)}ut(ke)?(ke.left!==void 0&&oe(qe(ke.left)),hr(ke.top)):hr(ke)}}}),xt(function(){if(S){var ve=V.slice(Ee,Ke+1);S(ve,V)}},[Ee,Ke,V]);var Cr=AL(V,I,$,a),Ur=w?.({start:Ee,end:Ke,virtual:k,offsetX:X,offsetY:Je,rtl:F,getSize:Cr}),tn=Y1(V,Ee,Ke,v,X,W,f,xe),wr=null;i&&(wr=P(T({},l?"height":"maxHeight",i),A7),M&&(wr.overflowY="hidden",v&&(wr.overflowX="hidden"),se&&(wr.pointerEvents="none")));var kr={};return F&&(kr.dir="rtl"),Sr.createElement("div",Z({ref:q,style:P(P({},c),{},{position:"relative"}),className:U},kr,O),Sr.createElement(Go,{onResize:be},Sr.createElement(h,{className:"".concat(o,"-holder"),style:wr,ref:A,onScroll:Ge,onMouseEnter:Ft},Sr.createElement(TL,{prefixCls:o,height:Ie,offsetX:X,offsetY:Je,scrollWidth:v,onInnerResize:z,ref:G,innerProps:b,rtl:F,extra:Ur},tn))),k&&Ie>i&&Sr.createElement(iE,{ref:He,prefixCls:o,scrollOffset:Q,scrollRange:Ie,rtl:F,onScroll:Se,onStartMove:de,onStopMove:ye,spinSize:_t,containerSize:me.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:_}),k&&v>me.width&&Sr.createElement(iE,{ref:Ue,prefixCls:o,scrollOffset:X,scrollRange:v,rtl:F,onScroll:Se,onStartMove:de,onStopMove:ye,spinSize:wt,containerSize:me.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:_}))}var WL=Sr.forwardRef(M7);WL.displayName="List";var VL=WL;var HL=VL;var Lt=E(N()),cE=E(N());function UL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var L7=["disabled","title","children","style","className"];function GL(e){return typeof e=="string"||typeof e=="number"}var k7=function(t,r){var o=Ry(),n=o.prefixCls,i=o.id,a=o.open,s=o.multiple,l=o.mode,c=o.searchValue,u=o.toggleOpen,f=o.notFoundContent,d=o.onPopupScroll,m=Lt.useContext(Bu),g=m.maxCount,v=m.flattenOptions,x=m.onActiveValue,h=m.defaultActiveFirstOption,p=m.onSelect,y=m.menuItemSelectedIcon,S=m.rawValues,b=m.fieldNames,w=m.virtual,C=m.direction,R=m.listHeight,_=m.listItemHeight,O=m.optionRender,I="".concat(n,"-item"),j=Ui(function(){return v},[a,v],function(re,K){return K[0]&&re[1]!==K[1]}),L=Lt.useRef(null),W=Lt.useMemo(function(){return s&&cp(g)&&S?.size>=g},[s,g,S?.size]),z=function(K){K.preventDefault()},$=function(K){var X;(X=L.current)===null||X===void 0||X.scrollTo(typeof K=="number"?{index:K}:K)},D=Lt.useCallback(function(re){return l==="combobox"?!1:S.has(re)},[l,le(S).toString(),S.size]),M=function(K){for(var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=j.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;U(K);var oe={source:X?"keyboard":"mouse"},Y=j[K];if(!Y){x(null,-1,oe);return}x(Y.value,K,oe)};(0,cE.useEffect)(function(){V(h!==!1?M(0):-1)},[j.length,c]);var A=Lt.useCallback(function(re){return l==="combobox"?String(re).toLowerCase()===c.toLowerCase():S.has(re)},[l,c,le(S).toString(),S.size]);(0,cE.useEffect)(function(){var re=setTimeout(function(){if(!s&&a&&S.size===1){var X=Array.from(S)[0],oe=j.findIndex(function(Y){var J=Y.data;return J.value===X});oe!==-1&&(V(oe),$(oe))}});if(a){var K;(K=L.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(re)}},[a,c]);var G=function(K){K!==void 0&&p(K,{selected:!S.has(K)}),s||u(!1)};if(Lt.useImperativeHandle(r,function(){return{onKeyDown:function(K){var X=K.which,oe=K.ctrlKey;switch(X){case Ye.N:case Ye.P:case Ye.UP:case Ye.DOWN:{var Y=0;if(X===Ye.UP?Y=-1:X===Ye.DOWN?Y=1:UL()&&oe&&(X===Ye.N?Y=1:X===Ye.P&&(Y=-1)),Y!==0){var J=M(F+Y,Y);$(J),V(J,!0)}break}case Ye.TAB:case Ye.ENTER:{var se,ue=j[F];ue&&!(ue!=null&&(se=ue.data)!==null&&se!==void 0&&se.disabled)&&!W?G(ue.value):G(void 0),a&&K.preventDefault();break}case Ye.ESC:u(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){$(K)}}}),j.length===0)return Lt.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:z},f);var q=Object.keys(b).map(function(re){return b[re]}),ne=function(K){return K.label};function ee(re,K){var X=re.group;return{role:X?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var Q=function(K){var X=j[K];if(!X)return null;var oe=X.data||{},Y=oe.value,J=X.group,se=wo(oe,!0),ue=ne(X);return X?Lt.createElement("div",Z({"aria-label":typeof ue=="string"&&!J?ue:null},se,{key:K},ee(X,K),{"aria-selected":A(Y)}),Y):null},ce={role:"listbox",id:"".concat(i,"_list")};return Lt.createElement(Lt.Fragment,null,w&&Lt.createElement("div",Z({},ce,{style:{height:0,width:0,overflow:"hidden"}}),Q(F-1),Q(F),Q(F+1)),Lt.createElement(HL,{itemKey:"key",ref:L,data:j,height:R,itemHeight:_,fullHeight:!1,onMouseDown:z,onScroll:d,virtual:w,direction:C,innerProps:w?null:ce},function(re,K){var X=re.group,oe=re.groupOption,Y=re.data,J=re.label,se=re.value,ue=Y.key;if(X){var de,ye=(de=Y.title)!==null&&de!==void 0?de:GL(J)?J.toString():void 0;return Lt.createElement("div",{className:(0,lE.default)(I,"".concat(I,"-group"),Y.className),title:ye},J!==void 0?J:ue)}var xe=Y.disabled,Pe=Y.title,fe=Y.children,pe=Y.style,Ae=Y.className,je=Ne(Y,L7),Xe=Ar(je,q),Le=D(se),Ie=xe||!Le&&W,Ee="".concat(I,"-option"),Ke=(0,lE.default)(I,Ee,Ae,T(T(T(T({},"".concat(Ee,"-grouped"),oe),"".concat(Ee,"-active"),F===K&&!Ie),"".concat(Ee,"-disabled"),Ie),"".concat(Ee,"-selected"),Le)),Je=ne(re),We=!y||typeof y=="function"||Le,ae=typeof Je=="number"?Je:Je||se,me=GL(ae)?ae.toString():void 0;return Pe!==void 0&&(me=Pe),Lt.createElement("div",Z({},wo(Xe),w?{}:ee(re,K),{"aria-selected":A(se),className:Ke,title:me,onMouseMove:function(){F===K||Ie||V(K)},onClick:function(){Ie||G(se)},style:pe}),Lt.createElement("div",{className:"".concat(Ee,"-content")},typeof O=="function"?O(re,{index:K}):ae),Lt.isValidElement(y)||Le,We&&Lt.createElement(js,{className:"".concat(I,"-option-state"),customizeIcon:y,customizeIconProps:{value:se,disabled:Ie,isSelected:Le}},Le?"\u2713":null))}))},F7=Lt.forwardRef(k7),qL=F7;var Hu=E(N()),KL=function(e,t){var r=Hu.useRef({values:new Map,options:new Map}),o=Hu.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var d;return P(P({},f),{},{label:(d=a.get(f.value))===null||d===void 0?void 0:d.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),n=Hu.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[o,n]};var XL=E(N());function uE(e,t){return ip(e).join("").toUpperCase().includes(t)}var YL=function(e,t,r,o,n){return XL.useMemo(function(){if(!r||o===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof o=="function",u=r.toUpperCase(),f=c?o:function(m,g){return n?uE(g[n],u):g[i]?uE(g[a!=="children"?a:"label"],u):uE(g[s],u)},d=c?function(m){return up(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var g=f(r,d(m));if(g)l.push(m);else{var v=m[i].filter(function(x){return f(r,d(x))});v.length&&l.push(P(P({},m),{},T({},i,v)))}return}f(r,d(m))&&l.push(m)}),l},[e,o,n,r,t])};var By=E(N());var QL=0,z7=Vt();function B7(){var e;return z7?(e=QL,QL+=1):e="TEST_OR_SSR",e}function fE(e){var t=By.useState(),r=B(t,2),o=r[0],n=r[1];return By.useEffect(function(){n("rc_select_".concat(B7()))},[]),e||o}var JL=E(N());var ZL=E(N());var j7=["children","value"],W7=["children"];function V7(e){var t=e,r=t.key,o=t.props,n=o.children,i=o.value,a=Ne(o,j7);return P({key:r,value:i!==void 0?i:r,children:n},a)}function jy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return hi(e).map(function(r,o){if(!ZL.isValidElement(r)||!r.type)return null;var n=r,i=n.type.isSelectOptGroup,a=n.key,s=n.props,l=s.children,c=Ne(s,W7);return t||!i?V7(r):P(P({key:"__RC_SELECT_GRP__".concat(a===null?o:a,"__"),label:a},c),{},{options:jy(l)})}).filter(function(r){return r})}var H7=function(t,r,o,n,i){return JL.useMemo(function(){var a=t,s=!t;s&&(a=jy(r));var l=new Map,c=new Map,u=function(m,g,v){v&&typeof v=="string"&&m.set(g[v],g)},f=function d(m){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v0?$e(qe.options):qe.options}):qe})},We=tr.useMemo(function(){return p?Je(Ke):Ke},[Ke,p,ce]),ae=tr.useMemo(function(){return SL(We,{fieldNames:ne,childrenAsData:G})},[We,ne,G]),me=function(Se){var Ge=J(Se);if(ye(Ge),k&&(Ge.length!==pe.length||Ge.some(function(rt,Wt){var Tt;return((Tt=pe[Wt])===null||Tt===void 0?void 0:Tt.value)!==rt?.value}))){var qe=H?Ge:Ge.map(function(rt){return rt.value}),Be=Ge.map(function(rt){return up(Ae(rt.value))});k(A?qe:qe[0],A?Be:Be[0])}},ze=tr.useState(null),be=B(ze,2),He=be[0],Ue=be[1],wt=tr.useState(0),_t=B(wt,2),Ht=_t[0],Me=_t[1],Re=R!==void 0?R:o!=="combobox",Ze=tr.useCallback(function($e,Se){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qe=Ge.source,Be=qe===void 0?"keyboard":qe;Me(Se),a&&o==="combobox"&&$e!==null&&Be==="keyboard"&&Ue(String($e))},[a,o]),Oe=function(Se,Ge,qe){var Be=function(){var wr,kr=Ae(Se);return[H?{label:kr?.[ne.label],value:Se,key:(wr=kr?.key)!==null&&wr!==void 0?wr:Se}:Se,up(kr)]};if(Ge&&m){var rt=Be(),Wt=B(rt,2),Tt=Wt[0],cr=Wt[1];m(Tt,cr)}else if(!Ge&&g&&qe!=="clear"){var Ft=Be(),hr=B(Ft,2),Cr=hr[0],Ur=hr[1];g(Cr,Ur)}},Te=Vy(function($e,Se){var Ge,qe=A?Se.selected:!0;qe?Ge=A?[].concat(le(pe),[$e]):[$e]:Ge=pe.filter(function(Be){return Be.value!==$e}),me(Ge),Oe($e,qe),o==="combobox"?Ue(""):(!fp||d)&&(re(""),Ue(""))}),_e=function(Se,Ge){me(Se);var qe=Ge.type,Be=Ge.values;(qe==="remove"||qe==="clear")&&Be.forEach(function(rt){Oe(rt.value,!1,qe)})},Ce=function(Se,Ge){if(re(Se),Ue(null),Ge.source==="submit"){var qe=(Se||"").trim();if(qe){var Be=Array.from(new Set([].concat(le(Xe),[qe])));me(Be),Oe(qe,!0),re("")}return}Ge.source!=="blur"&&(o==="combobox"&&me(Se),u?.(Se))},gt=function(Se){var Ge=Se;o!=="tags"&&(Ge=Se.map(function(Be){var rt=oe.get(Be);return rt?.value}).filter(function(Be){return Be!==void 0}));var qe=Array.from(new Set([].concat(le(Xe),le(Ge))));me(qe),qe.forEach(function(Be){Oe(Be,!0)})},jt=tr.useMemo(function(){var $e=O!==!1&&x!==!1;return P(P({},K),{},{flattenOptions:ae,onActiveValue:Ze,defaultActiveFirstOption:Re,onSelect:Te,menuItemSelectedIcon:_,rawValues:Xe,fieldNames:ne,virtual:$e,direction:I,listHeight:L,listItemHeight:z,childrenAsData:G,maxCount:F,optionRender:w})},[F,K,ae,Ze,Re,Te,_,Xe,ne,O,x,I,L,z,G,w]);return tr.createElement(Bu.Provider,{value:jt},tr.createElement(X1,Z({},U,{id:V,prefixCls:i,ref:t,omitDomProps:q7,mode:o,displayValues:je,onDisplayValuesChange:_e,direction:I,searchValue:ce,onSearch:Ce,autoClearSearchValue:d,onSearchSplit:gt,dropdownMatchSelectWidth:x,OptionList:qL,emptyOptions:!ae.length,activeValue:He,activeDescendantId:"".concat(V,"_list_").concat(Ht)})))}),dE=X7;dE.Option=pp;dE.OptGroup=dp;var tk=dE;var rk=tk;var ok=E(we());function Ji(e,t,r){return(0,ok.default)({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}var ea=(e,t)=>t||e;var Gu=E(N());var Gs=E(N()),hp=E(we());var Jo=E(N());var Y7=()=>{let[,e]=sr(),[t]=Si("Empty"),o=new st(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Jo.createElement("svg",{style:o,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Jo.createElement("title",null,t?.description||"Empty"),Jo.createElement("g",{fill:"none",fillRule:"evenodd"},Jo.createElement("g",{transform:"translate(24 31.67)"},Jo.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Jo.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),Jo.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Jo.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),Jo.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),Jo.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),Jo.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Jo.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Jo.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},nk=Y7;var Us=E(N()),ik=E(N());var Q7=()=>{let[,e]=sr(),[t]=Si("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,ik.useMemo)(()=>({borderColor:new st(r).onBackground(i).toHexString(),shadowColor:new st(o).onBackground(i).toHexString(),contentColor:new st(n).onBackground(i).toHexString()}),[r,o,n,i]);return Us.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Us.createElement("title",null,t?.description||"Empty"),Us.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Us.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),Us.createElement("g",{fillRule:"nonzero",stroke:a},Us.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),Us.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},ak=Q7;var Z7=e=>{let{componentCls:t,margin:r,marginXS:o,marginXL:n,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:n,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},sk=Rt("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:o}=e,n=Qe(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:o(r).mul(.875).equal()});return[Z7(n)]});var J7=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{className:t,rootClassName:r,prefixCls:o,image:n=lk,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=J7(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:d,direction:m,className:g,style:v,classNames:x,styles:h}=qo("empty"),p=d("empty",o),[y,S,b]=sk(p),[w]=Si("Empty"),C=typeof i<"u"?i:w?.description,R=typeof C=="string"?C:"empty",_=null;return typeof n=="string"?_=Gs.createElement("img",{alt:R,src:n}):_=n,y(Gs.createElement("div",Object.assign({className:(0,hp.default)(S,b,p,g,{[`${p}-normal`]:n===ck,[`${p}-rtl`]:m==="rtl"},t,r,x.root,c?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},h.root),v),u?.root),l)},f),Gs.createElement("div",{className:(0,hp.default)(`${p}-image`,x.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),h.image),u?.image)},_),C&&Gs.createElement("div",{className:(0,hp.default)(`${p}-description`,x.description,c?.description),style:Object.assign(Object.assign({},h.description),u?.description)},C),a&&Gs.createElement("div",{className:(0,hp.default)(`${p}-footer`,x.footer,c?.footer),style:Object.assign(Object.assign({},h.footer),u?.footer)},a)))};pE.PRESENTED_IMAGE_DEFAULT=lk;pE.PRESENTED_IMAGE_SIMPLE=ck;var Uu=pE;var eU=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,Gu.useContext)(et),o=r("empty");switch(t){case"Table":case"List":return Gu.default.createElement(Uu,{image:Uu.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Gu.default.createElement(Uu,{image:Uu.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return Gu.default.createElement(Uu,null)}},uk=eU;var mE=E(N());var tU=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var o,n;let{variant:i,[e]:a}=mE.useContext(et),s=mE.useContext(TM),l=a?.variant,c;typeof t<"u"?c=t:r===!1?c="borderless":c=(n=(o=s??l)!==null&&o!==void 0?o:i)!==null&&n!==void 0?n:"outlined";let u=iw.includes(c);return[c,u]},qs=tU;var rU=e=>{let r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function oU(e,t){return e||rU(t)}var fk=oU;var dk=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:o,optionPadding:n}=e;return{position:"relative",display:"block",minHeight:t,padding:n,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:o,boxSizing:"border-box"}},nU=e=>{let{antCls:t,componentCls:r}=e,o=`${r}-item`,n=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,l=`${o}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},Qt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${n}${s}bottomLeft, ${i}${s}bottomLeft `]:{animationName:Xv},[` ${n}${s}topLeft, ${i}${s}topLeft, ${n}${s}topRight, ${i}${s}topRight `]:{animationName:Qv},[`${a}${s}bottomLeft`]:{animationName:Yv},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:Zv},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},dk(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},wi),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},dk(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Jv(e,"slide-up"),Jv(e,"slide-down"),Kv(e,"move-up"),Kv(e,"move-down")]},pk=nU;var iU=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:n}=e,i=e.max(e.calc(r).sub(o).equal(),0),a=e.max(e.calc(i).sub(n).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:te(t),itemLineHeight:te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},aU=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:o}=e;return e.calc(r).sub(t).div(2).sub(o).equal()},sU=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:o,motionDurationSlow:n,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:o,cursor:"default",transition:`font-size ${n}, line-height ${n}, height ${n}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},_a()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},lU=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,n=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=aU(e),s=t?`${r}-${t}`:"",l=iU(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},sU(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${te(o)} 0`,lineHeight:te(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:te(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:te(i),marginBlock:o}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${n}-item + ${n}-item, ${r}-prefix + ${r}-selection-wrap `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${n}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:o},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:te(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function hE(e,t){let{componentCls:r}=e,o=t?`${r}-${t}`:"",n={[`${r}-multiple${o}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[` &${r}-show-arrow ${r}-selector, &${r}-allow-clear ${r}-selector `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[lU(e,t),n]}var cU=e=>{let{componentCls:t}=e,r=Qe(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=Qe(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[hE(e),hE(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},hE(o,"lg")]},mk=cU;function gE(e,t){let{componentCls:r,inputPaddingHorizontalBase:o,borderRadius:n}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${r}-${t}`:"";return{[`${r}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},Qt(e,!0)),{display:"flex",borderRadius:n,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:te(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${r}-selection-item, ${r}-selection-placeholder `]:{display:"block",padding:0,lineHeight:te(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${r}-show-arrow ${r}-selection-item, &${r}-show-arrow ${r}-selection-search, &${r}-show-arrow ${r}-selection-placeholder `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${te(o)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:te(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${te(o)}`,"&:after":{display:"none"}}}}}}}function vE(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[gE(e),gE(Qe(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${te(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},gE(Qe(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var hk=e=>{let{fontSize:t,lineHeight:r,lineWidth:o,controlHeight:n,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:m,colorBgContainer:g,colorFillSecondary:v,colorBgContainerDisabled:x,colorTextDisabled:h,colorPrimaryHover:p,colorPrimary:y,controlOutline:S}=e,b=s*2,w=o*2,C=Math.min(n-b,n-w),R=Math.min(i-b,i-w),_=Math.min(a-b,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:m,optionPadding:`${(n-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:n,selectorBg:g,clearBg:g,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:R,multipleItemHeightLG:_,multipleSelectorBgDisabled:x,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:y,activeOutlineColor:S,selectAffixPadding:s}};var xk=(e,t)=>{let{componentCls:r,antCls:o,controlOutlineWidth:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${te(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${te(n)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},gk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},xk(e,t))}),uU=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},xk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),gk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),gk(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bk=(e,t)=>{let{componentCls:r,antCls:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${te(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},vk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bk(e,t))}),fU=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},bk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),vk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),vk(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),dU=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Sk=(e,t)=>{let{componentCls:r,antCls:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${te(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},yk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Sk(e,t))}),pU=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Sk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),yk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),yk(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mU=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},uU(e)),fU(e)),dU(e)),pU(e))}),Ck=mU;var hU=e=>{let{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},gU=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},vU=e=>{let{antCls:t,componentCls:r,inputPaddingHorizontalBase:o,iconCls:n}=e;return{[r]:Object.assign(Object.assign({},Qt(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},hU(e)),gU(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},wi),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},wi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},_a()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},yU=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},vU(e),vE(e),mk(e),pk(e),{[`${t}-rtl`]:{direction:"rtl"}},Ls(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},wk=Rt("Select",(e,t)=>{let{rootPrefixCls:r}=t,o=Qe(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[yU(o),Ck(o)]},hk,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ta=E(N());var Hy=E(N());var xU={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"},Ek=xU;var bU=function(t,r){return Hy.createElement(ct,Z({},t,{ref:r,icon:Ek}))},SU=Hy.forwardRef(bU),Uy=SU;var Gy=E(N());var CU={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"},Rk=CU;var wU=function(t,r){return Gy.createElement(ct,Z({},t,{ref:r,icon:Rk}))},EU=Gy.forwardRef(wU),qy=EU;var Ky=E(N());var RU={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"},Ok=RU;var OU=function(t,r){return Ky.createElement(ct,Z({},t,{ref:r,icon:Ok}))},_U=Ky.forwardRef(OU),Xy=_U;function yE(e){let{suffixIcon:t,clearIcon:r,menuItemSelectedIcon:o,removeIcon:n,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:d}=e,m=r??ta.createElement(Eu,null),g=p=>t===null&&!s&&!f?null:ta.createElement(ta.Fragment,null,c!==!1&&p,s&&u),v=null;if(t!==void 0)v=g(t);else if(i)v=g(ta.createElement(Fl,{spin:!0}));else{let p=`${l}-suffix`;v=y=>{let{open:S,showSearch:b}=y;return g(S&&b?ta.createElement(Xy,{className:p}):ta.createElement(qy,{className:p}))}}let x=null;o!==void 0?x=o:a?x=ta.createElement(Uy,null):x=null;let h=null;return n!==void 0?h=n:h=ta.createElement(Ru,null),{clearIcon:m,suffixIcon:v,itemIcon:x,removeIcon:h}}function xE(e,t){return t!==void 0?t:e!==null}var PU=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{var r;let{prefixCls:o,bordered:n,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:d,size:m,disabled:g,notFoundContent:v,status:x,builtinPlacements:h,dropdownMatchSelectWidth:p,popupMatchSelectWidth:y,direction:S,style:b,allowClear:w,variant:C,dropdownStyle:R,transitionName:_,tagRender:O,maxCount:I,prefix:j}=e,L=PU(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:W,getPrefixCls:z,renderEmpty:$,direction:D,virtual:M,popupMatchSelectWidth:H,popupOverflow:k}=Qn.useContext(et),F=qo("select"),[,U]=sr(),V=d??U?.controlHeight,A=z("select",o),G=z(),q=S??D,{compactSize:ne,compactItemClassnames:ee}=Vn(A,q),[Q,ce]=qs("select",C,n),re=Eo(A),[K,X,oe]=wk(A,re),Y=Qn.useMemo(()=>{let{mode:He}=e;if(He!=="combobox")return He===_k?"combobox":He},[e.mode]),J=Y==="multiple"||Y==="tags",se=xE(e.suffixIcon,e.showArrow),ue=(r=y??p)!==null&&r!==void 0?r:H,{status:de,hasFeedback:ye,isFormItemInput:xe,feedbackIcon:Pe}=Qn.useContext(ro),fe=ea(de,x),pe;v!==void 0?pe=v:Y==="combobox"?pe=null:pe=$?.("Select")||Qn.createElement(uk,{componentName:"Select"});let{suffixIcon:Ae,itemIcon:je,removeIcon:Xe,clearIcon:Le}=yE(Object.assign(Object.assign({},L),{multiple:J,hasFeedback:ye,feedbackIcon:Pe,showSuffixIcon:se,prefixCls:A,componentName:"Select"})),Ie=w===!0?{clearIcon:Le}:w,Ee=Ar(L,["suffixIcon","itemIcon"]),Ke=(0,bE.default)(l||c,{[`${A}-dropdown-${q}`]:q==="rtl"},a,oe,re,X),Je=Yo(He=>{var Ue;return(Ue=m??ne)!==null&&Ue!==void 0?Ue:He}),We=Qn.useContext(Qr),ae=g??We,me=(0,bE.default)({[`${A}-lg`]:Je==="large",[`${A}-sm`]:Je==="small",[`${A}-rtl`]:q==="rtl",[`${A}-${Q}`]:ce,[`${A}-in-form-item`]:xe},Ji(A,fe,ye),ee,F.className,i,a,oe,re,X),ze=Qn.useMemo(()=>f!==void 0?f:q==="rtl"?"bottomRight":"bottomLeft",[f,q]),[be]=$s("SelectLike",R?.zIndex);return K(Qn.createElement(rk,Object.assign({ref:t,virtual:M,showSearch:F.showSearch},Ee,{style:Object.assign(Object.assign({},F.style),b),dropdownMatchSelectWidth:ue,transitionName:Xi(G,"slide-up",_),builtinPlacements:fk(h,k),listHeight:u,listItemHeight:V,mode:Y,prefixCls:A,placement:ze,direction:q,prefix:j,suffixIcon:Ae,menuItemSelectedIcon:je,removeIcon:Xe,allowClear:Ie,notFoundContent:pe,className:me,getPopupContainer:s||W,dropdownClassName:Ke,disabled:ae,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:be}),maxCount:J?I:void 0,tagRender:J?O:void 0})))},qu=Qn.forwardRef(TU),NU=IM(qu,"dropdownAlign");qu.SECRET_COMBOBOX_MODE_DO_NOT_USE=_k;qu.Option=pp;qu.OptGroup=dp;qu._InternalPanelDoNotUseOrYouWillBeFired=NU;var gp=qu;var Pk=E(N());function SE(){let[,e]=Pk.useReducer(t=>t+1,0);return e}var fo=E(N()),e0=E(we());var CE=E(we()),wE=E(N());function Ku(e){var t=e.children,r=e.prefixCls,o=e.id,n=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return wE.createElement("div",{className:(0,CE.default)("".concat(r,"-content"),a),style:s},wE.createElement("div",{className:(0,CE.default)("".concat(r,"-inner"),i),id:o,role:"tooltip",style:n},typeof t=="function"?t():t))}var Nk=E(we()),Zl=E(N()),Qu=E(N());var Xu={shiftX:64,adjustY:1},Yu={adjustX:1,shiftY:!0},Zn=[0,0],Tk={left:{points:["cr","cl"],overflow:Yu,offset:[-4,0],targetOffset:Zn},right:{points:["cl","cr"],overflow:Yu,offset:[4,0],targetOffset:Zn},top:{points:["bc","tc"],overflow:Xu,offset:[0,-4],targetOffset:Zn},bottom:{points:["tc","bc"],overflow:Xu,offset:[0,4],targetOffset:Zn},topLeft:{points:["bl","tl"],overflow:Xu,offset:[0,-4],targetOffset:Zn},leftTop:{points:["tr","tl"],overflow:Yu,offset:[-4,0],targetOffset:Zn},topRight:{points:["br","tr"],overflow:Xu,offset:[0,-4],targetOffset:Zn},rightTop:{points:["tl","tr"],overflow:Yu,offset:[4,0],targetOffset:Zn},bottomRight:{points:["tr","br"],overflow:Xu,offset:[0,4],targetOffset:Zn},rightBottom:{points:["bl","br"],overflow:Yu,offset:[4,0],targetOffset:Zn},bottomLeft:{points:["tl","bl"],overflow:Xu,offset:[0,4],targetOffset:Zn},leftBottom:{points:["br","bl"],overflow:Yu,offset:[-4,0],targetOffset:Zn}};var IU=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],$U=function(t,r){var o=t.overlayClassName,n=t.trigger,i=n===void 0?["hover"]:n,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,m=t.children,g=t.onVisibleChange,v=t.afterVisibleChange,x=t.transitionName,h=t.animation,p=t.motion,y=t.placement,S=y===void 0?"right":y,b=t.align,w=b===void 0?{}:b,C=t.destroyTooltipOnHide,R=C===void 0?!1:C,_=t.defaultVisible,O=t.getTooltipContainer,I=t.overlayInnerStyle,j=t.arrowContent,L=t.overlay,W=t.id,z=t.showArrow,$=z===void 0?!0:z,D=t.classNames,M=t.styles,H=Ne(t,IU),k=Pu(W),F=(0,Qu.useRef)(null);(0,Qu.useImperativeHandle)(r,function(){return F.current});var U=P({},H);"visible"in t&&(U.popupVisible=t.visible);var V=function(){return Zl.createElement(Ku,{key:"content",prefixCls:d,id:k,bodyClassName:D?.body,overlayInnerStyle:P(P({},I),M?.body)},L)},A=function(){var q=Zl.Children.only(m),ne=q?.props||{},ee=P(P({},ne),{},{"aria-describedby":L?k:null});return Zl.cloneElement(m,ee)};return Zl.createElement(Ay,Z({popupClassName:(0,Nk.default)(o,D?.root),prefixCls:d,popup:V,action:i,builtinPlacements:Tk,popupPlacement:S,ref:F,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:x,popupAnimation:h,popupMotion:p,defaultPopupVisible:_,autoDestroy:R,mouseLeaveDelay:c,popupStyle:P(P({},u),M?.root),mouseEnterDelay:s,arrow:$},U),A())},Ik=(0,Qu.forwardRef)($U);var $k=Ik;function Dk(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:o}=e,n=t/2,i=0,a=n,s=o*1/Math.sqrt(2),l=n-o*(1-1/Math.sqrt(2)),c=n-r*(1/Math.sqrt(2)),u=o*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*n-c,d=u,m=2*n-s,g=l,v=2*n-i,x=a,h=n*Math.sqrt(2)+o*(Math.sqrt(2)-2),p=o*(Math.sqrt(2)-1),y=`polygon(${p}px 100%, 50% ${p}px, ${2*n-p}px 100%, ${p}px 100%)`,S=`path('M ${i} ${a} A ${o} ${o} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${d} L ${m} ${g} A ${o} ${o} 0 0 0 ${v} ${x} Z')`;return{arrowShadowWidth:h,arrowPath:S,arrowPolygon:y}}var Ak=(e,t,r)=>{let{sizePopupArrow:o,arrowPolygon:n,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[n,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var EE=8;function Qy(e){let{contentRadius:t,limitVerticalRadius:r}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:r?EE:o}}function Yy(e,t){return e?t:{}}function RE(e,t,r){let{componentCls:o,boxShadowPopoverArrow:n,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Ak(e,t,n)),{"&:before":{background:t}})]},Yy(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${te(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Yy(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${te(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Yy(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),Yy(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}function DU(e,t,r,o){if(o===!1)return{adjustX:!1,adjustY:!1};let n=o&&typeof o=="object"?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}let a=Object.assign(Object.assign({},i),n);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}var Mk={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"]}},AU={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"]}},MU=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function OE(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:o,offset:n,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Mk).forEach(c=>{let u=o&&AU[c]||Mk[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,MU.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-n;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+n;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-n;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+n;break}let d=Qy({contentRadius:i,limitVerticalRadius:!0});if(o)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-s;break}f.overflow=DU(c,d,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var Zu=E(N()),Fk=E(we());var LU=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:o,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:m}=e,g=t(a).add(m).add(d).equal(),v=t(a).mul(2).add(m).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:o,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:v,minHeight:l,padding:`${te(e.calc(u).div(2).equal())} ${te(f)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,EE)}},[`${r}-content`]:{position:"relative"}}),sv(e,(x,h)=>{let{darkColor:p}=h;return{[`&${r}-${x}`]:{[`${r}-inner`]:{backgroundColor:p},[`${r}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},RE(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},kU=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Qy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Dk(Qe(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Zy=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Rt("Tooltip",o=>{let{borderRadius:n,colorTextLightSolid:i,colorBgSpotlight:a}=o,s=Qe(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:a});return[LU(s),jl(o,"zoom-big-fast")]},kU,{resetStyle:!1,injectStyle:t})(e)};var kk=E(we());var FU=xn.map(e=>`${e}-inverse`);function Lk(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(le(FU),le(xn)).includes(e):xn.includes(e)}function Jy(e,t){let r=Lk(t),o=(0,kk.default)({[`${e}-${t}`]:t&&r}),n={},i={};return t&&!r&&(n.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:n,arrowStyle:i}}var zU=e=>{let{prefixCls:t,className:r,placement:o="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Zu.useContext(et),l=s("tooltip",t),[c,u,f]=Zy(l),d=Jy(l,i),m=d.arrowStyle,g=Object.assign(Object.assign({},a),d.overlayStyle),v=(0,Fk.default)(u,f,l,`${l}-pure`,`${l}-placement-${o}`,r,d.className);return c(Zu.createElement("div",{className:v,style:m},Zu.createElement("div",{className:`${l}-arrow`}),Zu.createElement(Ku,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:g}),n)))},zk=zU;var BU=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{var r,o;let{prefixCls:n,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:d,arrow:m=!0,title:g,overlay:v,builtinPlacements:x,arrowPointAtCenter:h=!1,autoAdjustOverflow:p=!0,motion:y,getPopupContainer:S,placement:b="top",mouseEnterDelay:w=.1,mouseLeaveDelay:C=.1,overlayStyle:R,rootClassName:_,overlayClassName:O,styles:I,classNames:j}=e,L=BU(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),W=!!m,[,z]=sr(),{getPopupContainer:$,getPrefixCls:D,direction:M,className:H,style:k,classNames:F,styles:U}=qo("tooltip"),V=Ug("Tooltip"),A=fo.useRef(null),G=()=>{var Ee;(Ee=A.current)===null||Ee===void 0||Ee.forceAlign()};fo.useImperativeHandle(t,()=>{var Ee,Ke;return{forceAlign:G,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),G()},nativeElement:(Ee=A.current)===null||Ee===void 0?void 0:Ee.nativeElement,popupElement:(Ke=A.current)===null||Ke===void 0?void 0:Ke.popupElement}});let[q,ne]=zt(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),ee=!g&&!v&&g!==0,Q=Ee=>{var Ke,Je;ne(ee?!1:Ee),ee||((Ke=e.onOpenChange)===null||Ke===void 0||Ke.call(e,Ee),(Je=e.onVisibleChange)===null||Je===void 0||Je.call(e,Ee))},ce=fo.useMemo(()=>{var Ee,Ke;let Je=h;return typeof m=="object"&&(Je=(Ke=(Ee=m.pointAtCenter)!==null&&Ee!==void 0?Ee:m.arrowPointAtCenter)!==null&&Ke!==void 0?Ke:h),x||OE({arrowPointAtCenter:Je,autoAdjustOverflow:p,arrowWidth:W?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})},[h,m,x,z]),re=fo.useMemo(()=>g===0?g:v||g||"",[v,g]),K=fo.createElement(Bs,{space:!0},typeof re=="function"?re():re),X=D("tooltip",n),oe=D(),Y=e["data-popover-inject"],J=q;!("open"in e)&&!("visible"in e)&&ee&&(J=!1);let se=fo.isValidElement(c)&&!Lv(c)?c:fo.createElement("span",null,c),ue=se.props,de=!ue.className||typeof ue.className=="string"?(0,e0.default)(ue.className,i||`${X}-open`):ue.className,[ye,xe,Pe]=Zy(X,!Y),fe=Jy(X,s),pe=fe.arrowStyle,Ae=(0,e0.default)(O,{[`${X}-rtl`]:M==="rtl"},fe.className,_,xe,Pe,H,F.root,j?.root),je=(0,e0.default)(F.body,j?.body),[Xe,Le]=$s("Tooltip",L.zIndex),Ie=fo.createElement($k,Object.assign({},L,{zIndex:Xe,showArrow:W,placement:b,mouseEnterDelay:w,mouseLeaveDelay:C,prefixCls:X,classNames:{root:Ae,body:je},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pe),U.root),k),R),I?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},U.body),l),I?.body),fe.overlayStyle)},getTooltipContainer:S||a||$,ref:A,builtinPlacements:ce,overlay:K,visible:J,onVisibleChange:Q,afterVisibleChange:u??f,arrowContent:fo.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:Xi(oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!d}),J?Wn(se,{className:de}):se);return ye(fo.createElement(Fv.Provider,{value:Le},Ie))}),Bk=jU;Bk._InternalPanelDoNotUseOrYouWillBeFired=zk;var Jl=Bk;var t0=E(N());var WU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},jk=WU;var VU=function(t,r){return t0.createElement(ct,Z({},t,{ref:r,icon:jk}))},HU=t0.forwardRef(VU),Wk=HU;var Vk=E(we());var r0=E(N()),ec=E(N()),UU=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],GU=(0,ec.forwardRef)(function(e,t){var r=e.prefixCls,o=r===void 0?"rc-checkbox":r,n=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,d=e.title,m=e.onChange,g=Ne(e,UU),v=(0,ec.useRef)(null),x=(0,ec.useRef)(null),h=zt(c,{value:a}),p=B(h,2),y=p[0],S=p[1];(0,ec.useImperativeHandle)(t,function(){return{focus:function(R){var _;(_=v.current)===null||_===void 0||_.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:x.current}});var b=(0,Vk.default)(o,n,T(T({},"".concat(o,"-checked"),y),"".concat(o,"-disabled"),s)),w=function(R){s||("checked"in e||S(R.target.checked),m?.({target:P(P({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return r0.createElement("span",{className:b,title:d,style:i,ref:x},r0.createElement("input",Z({},g,{className:"".concat(o,"-input"),ref:v,onChange:w,disabled:s,checked:!!y,type:f})),r0.createElement("span",{className:"".concat(o,"-inner")}))}),Hk=GU;var Uk=E(N());function _E(e){let t=Uk.default.useRef(null),r=()=>{ft.cancel(t.current),t.current=null};return[()=>{r(),t.current=ft(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}function La(e){return Qe(e,{inputAffixPadding:e.paddingXXS})}var ka=e=>{let{controlHeight:t,fontSize:r,lineHeight:o,lineWidth:n,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:m,colorPrimary:g,controlOutlineWidth:v,controlOutline:x,colorErrorOutline:h,colorWarningOutline:p,colorBgContainer:y,inputFontSize:S,inputFontSizeLG:b,inputFontSizeSM:w}=e,C=S||r,R=w||C,_=b||s,O=Math.round((t-C*o)/2*10)/10-n,I=Math.round((i-R*o)/2*10)/10-n,j=Math.ceil((a-_*l)/2*10)/10-n;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(j,0),paddingInline:c-n,paddingInlineSM:u-n,paddingInlineLG:f-n,addonBg:d,activeBorderColor:g,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${x}`,errorActiveShadow:`0 0 0 ${v}px ${h}`,warningActiveShadow:`0 0 0 ${v}px ${p}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:_,inputFontSizeSM:R}};var qU=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),PE=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({},qU(Qe(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Qk=(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}}),Gk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qk(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),o0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qk(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},PE(e))}),Gk(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Gk(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),qk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),n0=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},qk(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),qk(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},PE(e))}})}),i0=(e,t)=>{let{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Zk=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Kk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Zk(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),a0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},PE(e))}),Kk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Kk(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Xk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),s0=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:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Xk(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Xk(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Jk=(e,t)=>({background:e.colorBgContainer,borderWidth:`${te(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Yk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Jk(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),l0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Jk(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Yk(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Yk(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var TE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var eF=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:n}=e;return{padding:`${te(t)} ${te(n)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:o}},tF=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},TE(e.colorTextPlaceholder)),{"&-lg":Object.assign({},eF(e)),"&-sm":Object.assign({},tF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),NE=e=>{let{componentCls:t,antCls:r}=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({},eF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},tF(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${te(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},Cu()),{[`${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, & > ${r}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, & > ${r}-select-auto-complete ${t}, & > ${r}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${r}-select:first-child > ${r}-select-selector, & > ${r}-select-auto-complete:first-child ${t}, & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child > ${r}-select-selector, & > ${r}-cascader-picker:last-child ${t}, & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},KU=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:o,calc:n}=e,a=n(r).sub(n(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),vp(e)),o0(e)),a0(e)),i0(e)),l0(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},XU=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${te(e.inputAffixPadding)}`}}}},YU=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:o,motionDurationSlow:n,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},vp(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:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),XU(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},QU=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Qt(e)),NE(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}}},n0(e)),s0(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},ZU=e=>{let{componentCls:t,antCls:r}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${o}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-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}}}}},JU=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},c0=Rt(["Input","Shared"],e=>{let t=Qe(e,La(e));return[KU(t),YU(t)]},ka,{resetFont:!1}),u0=Rt(["Input","Component"],e=>{let t=Qe(e,La(e));return[QU(t),ZU(t),JU(t),Ls(t)]},ka,{resetFont:!1});var eG=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Qt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},Qt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Qt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},yw(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${te(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${r}:not(${r}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${r}-checked:not(${r}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function tG(e,t){let r=Qe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[eG(r)]}var f0=Rt("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[tG(r,e)]});var Wr=E(N()),IE=E(we());var rF=E(N()),rG=rF.default.createContext(null),d0=rG;var oG=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{var r;let{prefixCls:o,className:n,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:d}=e,m=oG(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:x}=Wr.useContext(et),h=Wr.useContext(d0),{isFormItemInput:p}=Wr.useContext(ro),y=Wr.useContext(Qr),S=(r=h?.disabled||d)!==null&&r!==void 0?r:y,b=Wr.useRef(m.value),w=Wr.useRef(null),C=jr(t,w);Wr.useEffect(()=>{h?.registerValue(m.value)},[]),Wr.useEffect(()=>{if(!f)return m.value!==b.current&&(h?.cancelValue(b.current),h?.registerValue(m.value),b.current=m.value),()=>h?.cancelValue(m.value)},[m.value]),Wr.useEffect(()=>{var M;!((M=w.current)===null||M===void 0)&&M.input&&(w.current.input.indeterminate=s)},[s]);let R=g("checkbox",o),_=Eo(R),[O,I,j]=f0(R,_),L=Object.assign({},m);h&&!f&&(L.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),h.toggleOption&&h.toggleOption({label:a,value:m.value})},L.name=h.name,L.checked=h.value.includes(m.value));let W=(0,IE.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:L.checked,[`${R}-wrapper-disabled`]:S,[`${R}-wrapper-in-form-item`]:p},x?.className,n,i,j,_,I),z=(0,IE.default)({[`${R}-indeterminate`]:s},Ou,I),[$,D]=_E(L.onClick);return O(Wr.createElement(Vv,{component:"Checkbox",disabled:S},Wr.createElement("label",{className:W,style:Object.assign(Object.assign({},x?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:$},Wr.createElement(Hk,Object.assign({},L,{onClick:D,prefixCls:R,className:z,disabled:S,ref:C})),a!==void 0&&Wr.createElement("span",{className:`${R}-label`},a))))},iG=Wr.forwardRef(nG),p0=iG;var Lo=E(N()),oF=E(we());var aG=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{defaultValue:r,children:o,options:n=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=aG(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=Lo.useContext(et),[m,g]=Lo.useState(u.value||r||[]),[v,x]=Lo.useState([]);Lo.useEffect(()=>{"value"in u&&g(u.value||[])},[u.value]);let h=Lo.useMemo(()=>n.map(z=>typeof z=="string"||typeof z=="number"?{label:z,value:z}:z),[n]),p=z=>{x($=>$.filter(D=>D!==z))},y=z=>{x($=>[].concat(le($),[z]))},S=z=>{let $=m.indexOf(z.value),D=le(m);$===-1?D.push(z.value):D.splice($,1),"value"in u||g(D),c?.(D.filter(M=>v.includes(M)).sort((M,H)=>{let k=h.findIndex(U=>U.value===M),F=h.findIndex(U=>U.value===H);return k-F}))},b=f("checkbox",i),w=`${b}-group`,C=Eo(b),[R,_,O]=f0(b,C),I=Ar(u,["value","disabled"]),j=n.length?h.map(z=>Lo.createElement(p0,{prefixCls:b,key:z.value.toString(),disabled:"disabled"in z?z.disabled:u.disabled,value:z.value,checked:m.includes(z.value),onChange:z.onChange,className:`${w}-item`,style:z.style,title:z.title,id:z.id,required:z.required},z.label)):o,L={toggleOption:S,value:m,disabled:u.disabled,name:u.name,registerValue:y,cancelValue:p},W=(0,oF.default)(w,{[`${w}-rtl`]:d==="rtl"},a,s,O,C,_);return R(Lo.createElement("div",Object.assign({className:W,style:l},I,{ref:t}),Lo.createElement(d0.Provider,{value:L},j)))});var nF=sG;var $E=p0;$E.Group=nF;$E.__ANT_CHECKBOX=!0;var DE=$E;var mr=E(N());var m0=E(N());var lG={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"},iF=lG;var cG=function(t,r){return m0.createElement(ct,Z({},t,{ref:r,icon:iF}))},uG=m0.forwardRef(cG),aF=uG;var oc=E(we());function yp(){return typeof BigInt=="function"}function h0(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function _i(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var o=t||"0",n=o.split("."),i=n[0]||"0",a=n[1]||"0";i==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:o,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(o)}}function g0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ra(e){var t=String(e);if(g0(e)){var r=Number(t.slice(t.indexOf("e-")+2)),o=t.match(/\.(\d+)/);return o!=null&&o[1]&&(r+=o[1].length),r}return t.includes(".")&&Ju(t)?t.length-t.indexOf(".")-1:0}function Fa(e){var t=String(e);if(g0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(yp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":_i("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();var lF=function(){function e(t){if(ot(this,e),T(this,"origin",""),T(this,"number",void 0),T(this,"empty",void 0),h0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return nt(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var o=Number(r);if(Number.isNaN(o))return this;var n=this.number+o;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(nNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Fa(this.number):this.origin}}]),e}();function v0(e){return yp()?new sF(e):new lF(e)}function xp(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var n=_i(e),i=n.negativeStr,a=n.integerStr,s=n.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!o){var f=v0(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return xp(f.toString(),t,r,o)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var Pi=v0;var SF=E(we());var za=E(we()),po=E(N());function uF(e){return!!(e.addonBefore||e.addonAfter)}function fF(e){return!!(e.prefix||e.suffix||e.allowClear)}function cF(e,t,r){var o=t.cloneNode(!0),n=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},n}function ef(e,t,r,o){if(r){var n=t;if(t.type==="click"){n=cF(t,e,""),r(n);return}if(e.type!=="file"&&o!==void 0){n=cF(t,e,o),r(n);return}r(n)}}function tc(e,t){if(e){e.focus(t);var r=t||{},o=r.cursor;if(o){var n=e.value.length;switch(o){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}var fG=po.default.forwardRef(function(e,t){var r,o,n,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,d=e.className,m=e.style,g=e.disabled,v=e.readOnly,x=e.focused,h=e.triggerFocus,p=e.allowClear,y=e.value,S=e.handleReset,b=e.hidden,w=e.classes,C=e.classNames,R=e.dataAttrs,_=e.styles,O=e.components,I=e.onClear,j=a??i,L=O?.affixWrapper||"span",W=O?.groupWrapper||"span",z=O?.wrapper||"span",$=O?.groupAddon||"span",D=(0,po.useRef)(null),M=function(Y){var J;(J=D.current)!==null&&J!==void 0&&J.contains(Y.target)&&h?.()},H=fF(e),k=(0,po.cloneElement)(j,{value:y,className:(0,za.default)((r=j.props)===null||r===void 0?void 0:r.className,!H&&C?.variant)||null}),F=(0,po.useRef)(null);if(po.default.useImperativeHandle(t,function(){return{nativeElement:F.current||D.current}}),H){var U=null;if(p){var V=!g&&!v&&y,A="".concat(s,"-clear-icon"),G=ie(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"\u2716";U=po.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(Y){S?.(Y),I?.()},onMouseDown:function(Y){return Y.preventDefault()},className:(0,za.default)(A,T(T({},"".concat(A,"-hidden"),!V),"".concat(A,"-has-suffix"),!!c))},G)}var q="".concat(s,"-affix-wrapper"),ne=(0,za.default)(q,T(T(T(T(T({},"".concat(s,"-disabled"),g),"".concat(q,"-disabled"),g),"".concat(q,"-focused"),x),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),c&&p&&y),w?.affixWrapper,C?.affixWrapper,C?.variant),ee=(c||p)&&po.default.createElement("span",{className:(0,za.default)("".concat(s,"-suffix"),C?.suffix),style:_?.suffix},U,c);k=po.default.createElement(L,Z({className:ne,style:_?.affixWrapper,onClick:M},R?.affixWrapper,{ref:D}),l&&po.default.createElement("span",{className:(0,za.default)("".concat(s,"-prefix"),C?.prefix),style:_?.prefix},l),k,ee)}if(uF(e)){var Q="".concat(s,"-group"),ce="".concat(Q,"-addon"),re="".concat(Q,"-wrapper"),K=(0,za.default)("".concat(s,"-wrapper"),Q,w?.wrapper,C?.wrapper),X=(0,za.default)(re,T({},"".concat(re,"-disabled"),g),w?.group,C?.groupWrapper);k=po.default.createElement(W,{className:X,ref:F},po.default.createElement(z,{className:K},u&&po.default.createElement($,{className:ce},u),k,f&&po.default.createElement($,{className:ce},f)))}return po.default.cloneElement(k,{className:(0,za.default)((o=k.props)===null||o===void 0?void 0:o.className,d)||null,style:P(P({},(n=k.props)===null||n===void 0?void 0:n.style),m),hidden:b})}),rc=fG;var y0=E(we());var Tr=E(N());var dF=E(N()),dG=["show"];function bp(e,t){return dF.useMemo(function(){var r={};t&&(r.show=ie(t)==="object"&&t.formatter?t.formatter:!!t),r=P(P({},r),e);var o=r,n=o.show,i=Ne(o,dG);return P(P({},i),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var pG=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mG=(0,Tr.forwardRef)(function(e,t){var r=e.autoComplete,o=e.onChange,n=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,m=e.className,g=e.maxLength,v=e.suffix,x=e.showCount,h=e.count,p=e.type,y=p===void 0?"text":p,S=e.classes,b=e.classNames,w=e.styles,C=e.onCompositionStart,R=e.onCompositionEnd,_=Ne(e,pG),O=(0,Tr.useState)(!1),I=B(O,2),j=I[0],L=I[1],W=(0,Tr.useRef)(!1),z=(0,Tr.useRef)(!1),$=(0,Tr.useRef)(null),D=(0,Tr.useRef)(null),M=function(pe){$.current&&tc($.current,pe)},H=zt(e.defaultValue,{value:e.value}),k=B(H,2),F=k[0],U=k[1],V=F==null?"":String(F),A=(0,Tr.useState)(null),G=B(A,2),q=G[0],ne=G[1],ee=bp(h,x),Q=ee.max||g,ce=ee.strategy(V),re=!!Q&&ce>Q;(0,Tr.useImperativeHandle)(t,function(){var fe;return{focus:M,blur:function(){var Ae;(Ae=$.current)===null||Ae===void 0||Ae.blur()},setSelectionRange:function(Ae,je,Xe){var Le;(Le=$.current)===null||Le===void 0||Le.setSelectionRange(Ae,je,Xe)},select:function(){var Ae;(Ae=$.current)===null||Ae===void 0||Ae.select()},input:$.current,nativeElement:((fe=D.current)===null||fe===void 0?void 0:fe.nativeElement)||$.current}}),(0,Tr.useEffect)(function(){z.current&&(z.current=!1),L(function(fe){return fe&&f?!1:fe})},[f]);var K=function(pe,Ae,je){var Xe=Ae;if(!W.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Ae)>ee.max){if(Xe=ee.exceedFormatter(Ae,{max:ee.max}),Ae!==Xe){var Le,Ie;ne([((Le=$.current)===null||Le===void 0?void 0:Le.selectionStart)||0,((Ie=$.current)===null||Ie===void 0?void 0:Ie.selectionEnd)||0])}}else if(je.source==="compositionEnd")return;U(Xe),$.current&&ef($.current,pe,o,Xe)};(0,Tr.useEffect)(function(){if(q){var fe;(fe=$.current)===null||fe===void 0||fe.setSelectionRange.apply(fe,le(q))}},[q]);var X=function(pe){K(pe,pe.target.value,{source:"change"})},oe=function(pe){W.current=!1,K(pe,pe.currentTarget.value,{source:"compositionEnd"}),R?.(pe)},Y=function(pe){a&&pe.key==="Enter"&&!z.current&&(z.current=!0,a(pe)),s?.(pe)},J=function(pe){pe.key==="Enter"&&(z.current=!1),l?.(pe)},se=function(pe){L(!0),n?.(pe)},ue=function(pe){z.current&&(z.current=!1),L(!1),i?.(pe)},de=function(pe){U(""),M(),$.current&&ef($.current,pe,o)},ye=re&&"".concat(u,"-out-of-range"),xe=function(){var pe=Ar(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Tr.default.createElement("input",Z({autoComplete:r},pe,{onChange:X,onFocus:se,onBlur:ue,onKeyDown:Y,onKeyUp:J,className:(0,y0.default)(u,T({},"".concat(u,"-disabled"),f),b?.input),style:w?.input,ref:$,size:d,type:y,onCompositionStart:function(je){W.current=!0,C?.(je)},onCompositionEnd:oe}))},Pe=function(){var pe=Number(Q)>0;if(v||ee.show){var Ae=ee.showFormatter?ee.showFormatter({value:V,count:ce,maxLength:Q}):"".concat(ce).concat(pe?" / ".concat(Q):"");return Tr.default.createElement(Tr.default.Fragment,null,ee.show&&Tr.default.createElement("span",{className:(0,y0.default)("".concat(u,"-show-count-suffix"),T({},"".concat(u,"-show-count-has-suffix"),!!v),b?.count),style:P({},w?.count)},Ae),v)}return null};return Tr.default.createElement(rc,Z({},_,{prefixCls:u,className:(0,y0.default)(m,ye),handleReset:de,value:V,focused:j,triggerFocus:M,suffix:Pe(),disabled:f,classes:S,classNames:b,styles:w,ref:D}),xe())}),pF=mG;var mF=pF;function AE(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(o,n){if(t[n])return t[n];var i=o[n];return typeof i=="function"?i.bind(o):i}}):e}var Ct=E(N());var hF=E(N());function ME(e,t){var r=(0,hF.useRef)(null);function o(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);r.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function n(){if(e&&r.current&&t)try{var i=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-r.current.afterTxt.length;else{var f=s[c-1],d=i.indexOf(f,c-1);d!==-1&&(u=d+1)}e.setSelectionRange(u,u)}catch(m){Kt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[o,n]}var Jn=E(N()),LE=E(we());var gF=E(N());var hG=function(){var t=(0,gF.useState)(!1),r=B(t,2),o=r[0],n=r[1];return xt(function(){n($u())},[]),o},vF=hG;var gG=200,vG=600;function kE(e){var t=e.prefixCls,r=e.upNode,o=e.downNode,n=e.upDisabled,i=e.downDisabled,a=e.onStep,s=Jn.useRef(),l=Jn.useRef([]),c=Jn.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(y,S){y.preventDefault(),u(),c.current(S);function b(){c.current(S),s.current=setTimeout(b,gG)}s.current=setTimeout(b,vG)};Jn.useEffect(function(){return function(){u(),l.current.forEach(function(p){return ft.cancel(p)})}},[]);var d=vF();if(d)return null;var m="".concat(t,"-handler"),g=(0,LE.default)(m,"".concat(m,"-up"),T({},"".concat(m,"-up-disabled"),n)),v=(0,LE.default)(m,"".concat(m,"-down"),T({},"".concat(m,"-down-disabled"),i)),x=function(){return l.current.push(ft(u))},h={unselectable:"on",role:"button",onMouseUp:x,onMouseLeave:x};return Jn.createElement("div",{className:"".concat(m,"-wrap")},Jn.createElement("span",Z({},h,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":n,className:g}),r||Jn.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),Jn.createElement("span",Z({},h,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),o||Jn.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function FE(e){var t=typeof e=="number"?Fa(e):_i(e).fullStr,r=t.includes(".");return r?_i(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var x0=E(N());var yF=function(){var e=(0,x0.useRef)(0),t=function(){ft.cancel(e.current)};return(0,x0.useEffect)(function(){return t},[]),function(r){t(),e.current=ft(function(){r()})}};var yG=["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"],xG=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],xF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},bF=function(t){var r=Pi(t);return r.isInvalidate()?null:r},bG=Ct.forwardRef(function(e,t){var r=e.prefixCls,o=e.className,n=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,d=e.readOnly,m=e.upHandler,g=e.downHandler,v=e.keyboard,x=e.changeOnWheel,h=x===void 0?!1:x,p=e.controls,y=p===void 0?!0:p,S=e.classNames,b=e.stringMode,w=e.parser,C=e.formatter,R=e.precision,_=e.decimalSeparator,O=e.onChange,I=e.onInput,j=e.onPressEnter,L=e.onStep,W=e.changeOnBlur,z=W===void 0?!0:W,$=e.domRef,D=Ne(e,yG),M="".concat(r,"-input"),H=Ct.useRef(null),k=Ct.useState(!1),F=B(k,2),U=F[0],V=F[1],A=Ct.useRef(!1),G=Ct.useRef(!1),q=Ct.useRef(!1),ne=Ct.useState(function(){return Pi(u??c)}),ee=B(ne,2),Q=ee[0],ce=ee[1];function re(Me){u===void 0&&ce(Me)}var K=Ct.useCallback(function(Me,Re){if(!Re)return R>=0?R:Math.max(ra(Me),ra(l))},[R,l]),X=Ct.useCallback(function(Me){var Re=String(Me);if(w)return w(Re);var Ze=Re;return _&&(Ze=Ze.replace(_,".")),Ze.replace(/[^\w.-]+/g,"")},[w,_]),oe=Ct.useRef(""),Y=Ct.useCallback(function(Me,Re){if(C)return C(Me,{userTyping:Re,input:String(oe.current)});var Ze=typeof Me=="number"?Fa(Me):Me;if(!Re){var Oe=K(Ze,Re);if(Ju(Ze)&&(_||Oe>=0)){var Te=_||".";Ze=xp(Ze,Te,Oe)}}return Ze},[C,K,_]),J=Ct.useState(function(){var Me=c??u;return Q.isInvalidate()&&["string","number"].includes(ie(Me))?Number.isNaN(Me)?"":Me:Y(Q.toString(),!1)}),se=B(J,2),ue=se[0],de=se[1];oe.current=ue;function ye(Me,Re){de(Y(Me.isInvalidate()?Me.toString(!1):Me.toString(!Re),Re))}var xe=Ct.useMemo(function(){return bF(a)},[a,R]),Pe=Ct.useMemo(function(){return bF(i)},[i,R]),fe=Ct.useMemo(function(){return!xe||!Q||Q.isInvalidate()?!1:xe.lessEquals(Q)},[xe,Q]),pe=Ct.useMemo(function(){return!Pe||!Q||Q.isInvalidate()?!1:Q.lessEquals(Pe)},[Pe,Q]),Ae=ME(H.current,U),je=B(Ae,2),Xe=je[0],Le=je[1],Ie=function(Re){return xe&&!Re.lessEquals(xe)?xe:Pe&&!Pe.lessEquals(Re)?Pe:null},Ee=function(Re){return!Ie(Re)},Ke=function(Re,Ze){var Oe=Re,Te=Ee(Oe)||Oe.isEmpty();if(!Oe.isEmpty()&&!Ze&&(Oe=Ie(Oe)||Oe,Te=!0),!d&&!f&&Te){var _e=Oe.toString(),Ce=K(_e,Ze);return Ce>=0&&(Oe=Pi(xp(_e,".",Ce)),Ee(Oe)||(Oe=Pi(xp(_e,".",Ce,!0)))),Oe.equals(Q)||(re(Oe),O?.(Oe.isEmpty()?null:xF(b,Oe)),u===void 0&&ye(Oe,Ze)),Oe}return Q},Je=yF(),We=function Me(Re){if(Xe(),oe.current=Re,de(Re),!G.current){var Ze=X(Re),Oe=Pi(Ze);Oe.isNaN()||Ke(Oe,!0)}I?.(Re),Je(function(){var Te=Re;w||(Te=Re.replace(/。/g,".")),Te!==Re&&Me(Te)})},ae=function(){G.current=!0},me=function(){G.current=!1,We(H.current.value)},ze=function(Re){We(Re.target.value)},be=function(Re){var Ze;if(!(Re&&fe||!Re&&pe)){A.current=!1;var Oe=Pi(q.current?FE(l):l);Re||(Oe=Oe.negate());var Te=(Q||Pi(0)).add(Oe.toString()),_e=Ke(Te,!1);L?.(xF(b,_e),{offset:q.current?FE(l):l,type:Re?"up":"down"}),(Ze=H.current)===null||Ze===void 0||Ze.focus()}},He=function(Re){var Ze=Pi(X(ue)),Oe;Ze.isNaN()?Oe=Ke(Q,Re):Oe=Ke(Ze,Re),u!==void 0?ye(Q,!1):Oe.isNaN()||ye(Oe,!1)},Ue=function(){A.current=!0},wt=function(Re){var Ze=Re.key,Oe=Re.shiftKey;A.current=!0,q.current=Oe,Ze==="Enter"&&(G.current||(A.current=!1),He(!1),j?.(Re)),v!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ze)&&(be(Ze==="Up"||Ze==="ArrowUp"),Re.preventDefault())},_t=function(){A.current=!1,q.current=!1};Ct.useEffect(function(){if(h&&U){var Me=function(Oe){be(Oe.deltaY<0),Oe.preventDefault()},Re=H.current;if(Re)return Re.addEventListener("wheel",Me,{passive:!1}),function(){return Re.removeEventListener("wheel",Me)}}});var Ht=function(){z&&He(!1),V(!1),A.current=!1};return Pl(function(){Q.isInvalidate()||ye(Q,!1)},[R,C]),Pl(function(){var Me=Pi(u);ce(Me);var Re=Pi(X(ue));(!Me.equals(Re)||!A.current||C)&&ye(Me,A.current)},[u]),Pl(function(){C&&Le()},[ue]),Ct.createElement("div",{ref:$,className:(0,SF.default)(r,o,T(T(T(T(T({},"".concat(r,"-focused"),U),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),d),"".concat(r,"-not-a-number"),Q.isNaN()),"".concat(r,"-out-of-range"),!Q.isInvalidate()&&!Ee(Q))),style:n,onFocus:function(){V(!0)},onBlur:Ht,onKeyDown:wt,onKeyUp:_t,onCompositionStart:ae,onCompositionEnd:me,onBeforeInput:Ue},y&&Ct.createElement(kE,{prefixCls:r,upNode:m,downNode:g,upDisabled:fe,downDisabled:pe,onStep:be}),Ct.createElement("div",{className:"".concat(M,"-wrap")},Ct.createElement("input",Z({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:l},D,{ref:jr(H,t),className:M,value:ue,onChange:ze,disabled:f,readOnly:d}))))}),SG=Ct.forwardRef(function(e,t){var r=e.disabled,o=e.style,n=e.prefixCls,i=n===void 0?"rc-input-number":n,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.classNames,m=Ne(e,xG),g=Ct.useRef(null),v=Ct.useRef(null),x=Ct.useRef(null),h=function(y){x.current&&tc(x.current,y)};return Ct.useImperativeHandle(t,function(){return AE(x.current,{focus:h,nativeElement:g.current.nativeElement||v.current})}),Ct.createElement(rc,{className:f,triggerFocus:h,prefixCls:i,value:a,disabled:r,style:o,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:g},Ct.createElement(bG,Z({prefixCls:i,disabled:r,ref:x,domRef:v,className:d?.input},m)))}),CF=SG;var wF=CF;var EF=e=>{var t;let r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",o=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},ka(e)),{controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new st(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?o:0})};var RF=(e,t)=>{let{componentCls:r,borderRadiusSM:o,borderRadiusLG:n}=e,i=t==="lg"?n:o;return{[`&-${t}`]:{[`${r}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${r}-handler-up`]:{borderStartEndRadius:i},[`${r}-handler-down`]:{borderEndEndRadius:i}}}},CG=e=>{let{componentCls:t,lineWidth:r,lineType:o,borderRadius:n,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:m,colorTextDescription:g,motionDurationMid:v,handleHoverColor:x,handleOpacity:h,paddingInline:p,paddingBlock:y,handleBg:S,handleActiveBg:b,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:_,handleBorderColor:O,filledHandleBg:I,lineHeightLG:j,calc:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),vp(e)),{display:"inline-block",width:_,margin:0,padding:0,borderRadius:n}),o0(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}}})),a0(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),l0(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}}})),i0(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:j,borderRadius:R,[`input${t}-input`]:{height:L(s).sub(L(r).mul(2)).equal(),padding:`${te(d)} ${te(m)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:L(l).sub(L(r).mul(2)).equal(),padding:`${te(f)} ${te(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Qt(e)),NE(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:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},n0(e)),s0(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({},Qt(e)),{width:"100%",padding:`${te(y)} ${te(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:n,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),TE(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderStartStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${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:g,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${te(r)} ${o} ${O}`,transition:`all ${v} linear`,"&:active":{background:b},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:x}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},_a()),{color:g,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:n},[`${t}-handler-down`]:{borderEndEndRadius:n}},RF(e,"lg")),RF(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}})}]},wG=e=>{let{componentCls:t,paddingBlock:r,paddingInline:o,inputAffixPadding:n,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${te(r)} 0`}},vp(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:o,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${te(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${te(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:o,marginInlineStart:n,transition:`margin ${d}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(o).equal()}})}},OF=Rt("InputNumber",e=>{let t=Qe(e,La(e));return[CG(t),wG(t),Ls(t)]},EF,{unitless:{handleOpacity:!0}});var EG=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{getPrefixCls:r,direction:o}=mr.useContext(et),n=mr.useRef(null);mr.useImperativeHandle(t,()=>n.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:m,bordered:g,readOnly:v,status:x,controls:h,variant:p}=e,y=EG(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=r("input-number",c),b=Eo(S),[w,C,R]=OF(S,b),{compactSize:_,compactItemClassnames:O}=Vn(S,o),I=mr.createElement(aF,{className:`${S}-handler-up-inner`}),j=mr.createElement(qy,{className:`${S}-handler-down-inner`}),L=typeof h=="boolean"?h:void 0;typeof h=="object"&&(I=typeof h.upIcon>"u"?I:mr.createElement("span",{className:`${S}-handler-up-inner`},h.upIcon),j=typeof h.downIcon>"u"?j:mr.createElement("span",{className:`${S}-handler-down-inner`},h.downIcon));let{hasFeedback:W,status:z,isFormItemInput:$,feedbackIcon:D}=mr.useContext(ro),M=ea(z,x),H=Yo(ee=>{var Q;return(Q=s??_)!==null&&Q!==void 0?Q:ee}),k=mr.useContext(Qr),F=l??k,[U,V]=qs("inputNumber",p,g),A=W&&mr.createElement(mr.Fragment,null,D),G=(0,oc.default)({[`${S}-lg`]:H==="large",[`${S}-sm`]:H==="small",[`${S}-rtl`]:o==="rtl",[`${S}-in-form-item`]:$},C),q=`${S}-group`,ne=mr.createElement(wF,Object.assign({ref:n,disabled:F,className:(0,oc.default)(R,b,i,a,O),upHandler:I,downHandler:j,prefixCls:S,readOnly:v,controls:L,prefix:d,suffix:A||m,addonBefore:u&&mr.createElement(Bs,{form:!0,space:!0},u),addonAfter:f&&mr.createElement(Bs,{form:!0,space:!0},f),classNames:{input:G,variant:(0,oc.default)({[`${S}-${U}`]:V},Ji(S,M,W)),affixWrapper:(0,oc.default)({[`${S}-affix-wrapper-sm`]:H==="small",[`${S}-affix-wrapper-lg`]:H==="large",[`${S}-affix-wrapper-rtl`]:o==="rtl",[`${S}-affix-wrapper-without-controls`]:h===!1||F},C),wrapper:(0,oc.default)({[`${q}-rtl`]:o==="rtl"},C),groupWrapper:(0,oc.default)({[`${S}-group-wrapper-sm`]:H==="small",[`${S}-group-wrapper-lg`]:H==="large",[`${S}-group-wrapper-rtl`]:o==="rtl",[`${S}-group-wrapper-${U}`]:V},Ji(`${S}-group-wrapper`,M,W),C)}},y));return w(ne)}),PF=_F,RG=e=>mr.createElement(Na,{theme:{components:{InputNumber:{handleVisible:!0}}}},mr.createElement(_F,Object.assign({},e)));PF._InternalPanelDoNotUseOrYouWillBeFired=RG;var zE=PF;var en=E(N()),nc=E(we());var TF=E(N());var OG=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:TF.default.createElement(Eu,null)}),t},b0=OG;var S0=E(N());function Sp(e,t){let r=(0,S0.useRef)([]),o=()=>{r.current.push(setTimeout(()=>{var n,i,a,s;!((n=e.current)===null||n===void 0)&&n.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"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return(0,S0.useEffect)(()=>(t&&o(),()=>r.current.forEach(n=>{n&&clearTimeout(n)})),[]),o}function NF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var _G=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{prefixCls:r,bordered:o=!0,status:n,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:d,className:m,style:g,styles:v,rootClassName:x,onChange:h,classNames:p,variant:y}=e,S=_G(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:b,direction:w,allowClear:C,autoComplete:R,className:_,style:O,classNames:I,styles:j}=qo("input"),L=b("input",r),W=(0,en.useRef)(null),z=Eo(L),[$,D,M]=c0(L,x),[H]=u0(L,z),{compactSize:k,compactItemClassnames:F}=Vn(L,w),U=Yo(de=>{var ye;return(ye=i??k)!==null&&ye!==void 0?ye:de}),V=en.default.useContext(Qr),A=a??V,{status:G,hasFeedback:q,feedbackIcon:ne}=(0,en.useContext)(ro),ee=ea(G,n),Q=NF(e)||!!q,ce=(0,en.useRef)(Q),re=Sp(W,!0),K=de=>{re(),s?.(de)},X=de=>{re(),l?.(de)},oe=de=>{re(),h?.(de)},Y=(q||c)&&en.default.createElement(en.default.Fragment,null,c,q&&ne),J=b0(u??C),[se,ue]=qs("input",y,o);return $(H(en.default.createElement(mF,Object.assign({ref:jr(t,W),prefixCls:L,autoComplete:R},S,{disabled:A,onBlur:K,onFocus:X,style:Object.assign(Object.assign({},O),g),styles:Object.assign(Object.assign({},j),v),suffix:Y,allowClear:J,className:(0,nc.default)(m,x,M,z,F,_),onChange:oe,addonBefore:d&&en.default.createElement(Bs,{form:!0,space:!0},d),addonAfter:f&&en.default.createElement(Bs,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},p),I),{input:(0,nc.default)({[`${L}-sm`]:U==="small",[`${L}-lg`]:U==="large",[`${L}-rtl`]:w==="rtl"},p?.input,I.input,D),variant:(0,nc.default)({[`${L}-${se}`]:ue},Ji(L,ee)),affixWrapper:(0,nc.default)({[`${L}-affix-wrapper-sm`]:U==="small",[`${L}-affix-wrapper-lg`]:U==="large",[`${L}-affix-wrapper-rtl`]:w==="rtl"},D),wrapper:(0,nc.default)({[`${L}-group-rtl`]:w==="rtl"},D),groupWrapper:(0,nc.default)({[`${L}-group-wrapper-sm`]:U==="small",[`${L}-group-wrapper-lg`]:U==="large",[`${L}-group-wrapper-rtl`]:w==="rtl",[`${L}-group-wrapper-${se}`]:ue},Ji(`${L}-group-wrapper`,ee,q),D)})}))))}),Ks=PG;function BE(e){return["small","middle","large"].includes(e)}var C0=E(N()),AF=E(we());var IF=E(we()),jE=["wrap","nowrap","wrap-reverse"],WE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],VE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],TG=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&jE.includes(r)}},NG=(e,t)=>{let r={};return VE.forEach(o=>{r[`${e}-align-${o}`]=t.align===o}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},IG=(e,t)=>{let r={};return WE.forEach(o=>{r[`${e}-justify-${o}`]=t.justify===o}),r};function $G(e,t){return(0,IF.default)(Object.assign(Object.assign(Object.assign({},TG(e,t)),NG(e,t)),IG(e,t)))}var $F=$G;var DG=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},AG=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},MG=e=>{let{componentCls:t}=e,r={};return jE.forEach(o=>{r[`${t}-wrap-${o}`]={flexWrap:o}}),r},LG=e=>{let{componentCls:t}=e,r={};return VE.forEach(o=>{r[`${t}-align-${o}`]={alignItems:o}}),r},kG=e=>{let{componentCls:t}=e,r={};return WE.forEach(o=>{r[`${t}-justify-${o}`]={justifyContent:o}}),r},FG=()=>({}),DF=Rt("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:o}=e,n=Qe(e,{flexGapSM:t,flexGap:r,flexGapLG:o});return[DG(n),AG(n),MG(n),LG(n),kG(n)]},FG,{resetStyle:!1});var zG=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{prefixCls:r,rootClassName:o,className:n,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=zG(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:m,getPrefixCls:g}=C0.default.useContext(et),v=g("flex",r),[x,h,p]=DF(v),y=c??d?.vertical,S=(0,AF.default)(n,o,d?.className,v,h,p,$F(v,e),{[`${v}-rtl`]:m==="rtl",[`${v}-gap-${s}`]:BE(s),[`${v}-vertical`]:y}),b=Object.assign(Object.assign({},d?.style),i);return a&&(b.flex=a),s&&!BE(s)&&(b.gap=s),x(C0.default.createElement(u,Object.assign({ref:t,className:S,style:b},Ar(f,["justify","wrap","align"])),l))}),w0=BG;var af=E(N());var E0=E(N());var jG={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"},MF=jG;var WG=function(t,r){return E0.createElement(ct,Z({},t,{ref:r,icon:MF}))},VG=E0.forwardRef(WG),tf=VG;var k0=E(we());var T0=E(we());function R0(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function LF(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var ja=E(N()),sc=E(N());var VF=E(we());var HE=E(Vi());function oa(e,t,r,o){var n=HE.default.unstable_batchedUpdates?function(a){HE.default.unstable_batchedUpdates(r,a)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,n,o),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,n,o)}}}var mo=E(N());var Cp=E(we());var oo=E(N()),FF=E(N());var kF=E(N()),na=kF.createContext(null);var HG=function(t){var r=t.visible,o=t.maskTransitionName,n=t.getContainer,i=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,d=t.transform,m=t.count,g=t.scale,v=t.minScale,x=t.maxScale,h=t.closeIcon,p=t.onActive,y=t.onClose,S=t.onZoomIn,b=t.onZoomOut,w=t.onRotateRight,C=t.onRotateLeft,R=t.onFlipX,_=t.onFlipY,O=t.onReset,I=t.toolbarRender,j=t.zIndex,L=t.image,W=(0,FF.useContext)(na),z=s.rotateLeft,$=s.rotateRight,D=s.zoomIn,M=s.zoomOut,H=s.close,k=s.left,F=s.right,U=s.flipX,V=s.flipY,A="".concat(i,"-operations-operation");oo.useEffect(function(){var J=function(ue){ue.keyCode===Ye.ESC&&y()};return r&&window.addEventListener("keydown",J),function(){window.removeEventListener("keydown",J)}},[r]);var G=function(se,ue){se.preventDefault(),se.stopPropagation(),p(ue)},q=oo.useCallback(function(J){var se=J.type,ue=J.disabled,de=J.onClick,ye=J.icon;return oo.createElement("div",{key:se,className:(0,Cp.default)(A,"".concat(i,"-operations-operation-").concat(se),T({},"".concat(i,"-operations-operation-disabled"),!!ue)),onClick:de},ye)},[A,i]),ne=c?q({icon:k,onClick:function(se){return G(se,-1)},type:"prev",disabled:f===0}):void 0,ee=c?q({icon:F,onClick:function(se){return G(se,1)},type:"next",disabled:f===m-1}):void 0,Q=q({icon:V,onClick:_,type:"flipY"}),ce=q({icon:U,onClick:R,type:"flipX"}),re=q({icon:z,onClick:C,type:"rotateLeft"}),K=q({icon:$,onClick:w,type:"rotateRight"}),X=q({icon:M,onClick:b,type:"zoomOut",disabled:g<=v}),oe=q({icon:D,onClick:S,type:"zoomIn",disabled:g===x}),Y=oo.createElement("div",{className:"".concat(i,"-operations")},Q,ce,re,K,X,oe);return oo.createElement(Zr,{visible:r,motionName:o},function(J){var se=J.className,ue=J.style;return oo.createElement(Vl,{open:!0,getContainer:n??document.body},oo.createElement("div",{className:(0,Cp.default)("".concat(i,"-operations-wrapper"),se,a),style:P(P({},ue),{},{zIndex:j})},h===null?null:oo.createElement("button",{className:"".concat(i,"-close"),onClick:y},h||H),c&&oo.createElement(oo.Fragment,null,oo.createElement("div",{className:(0,Cp.default)("".concat(i,"-switch-left"),T({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:function(ye){return G(ye,-1)}},k),oo.createElement("div",{className:(0,Cp.default)("".concat(i,"-switch-right"),T({},"".concat(i,"-switch-right-disabled"),f===m-1)),onClick:function(ye){return G(ye,1)}},F)),oo.createElement("div",{className:"".concat(i,"-footer")},u&&oo.createElement("div",{className:"".concat(i,"-progress")},l?l(f+1,m):"".concat(f+1," / ").concat(m)),I?I(Y,P(P({icons:{prevIcon:ne,nextIcon:ee,flipYIcon:Q,flipXIcon:ce,rotateLeftIcon:re,rotateRightIcon:K,zoomOutIcon:X,zoomInIcon:oe},actions:{onActive:p,onFlipY:_,onFlipX:R,onRotateLeft:C,onRotateRight:w,onZoomOut:b,onZoomIn:S,onReset:O,onClose:y},transform:d},W?{current:f,total:m}:{}),{},{image:L})):Y)))})},zF=HG;var wp=E(N()),O0={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function UE(e,t,r,o){var n=(0,wp.useRef)(null),i=(0,wp.useRef)([]),a=(0,wp.useState)(O0),s=B(a,2),l=s[0],c=s[1],u=function(g){c(O0),Cs(O0,l)||o?.({transform:O0,action:g})},f=function(g,v){n.current===null&&(i.current=[],n.current=ft(function(){c(function(x){var h=x;return i.current.forEach(function(p){h=P(P({},h),p)}),n.current=null,o?.({transform:h,action:v}),h})})),i.current.push(P(P({},l),g))},d=function(g,v,x,h,p){var y=e.current,S=y.width,b=y.height,w=y.offsetWidth,C=y.offsetHeight,R=y.offsetLeft,_=y.offsetTop,O=g,I=l.scale*g;I>r?(I=r,O=r/l.scale):Io){if(t>0)return T({},e,i);if(t<0&&no)return T({},e,t<0?i:-i);return{}}function Ep(e,t,r,o){var n=R0(),i=n.width,a=n.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=P(P({},BF("x",r,e,i)),BF("y",o,t,a))),s}var Xs=1,jF=1;function GE(e,t,r,o,n,i,a){var s=n.rotate,l=n.scale,c=n.x,u=n.y,f=(0,rf.useState)(!1),d=B(f,2),m=d[0],g=d[1],v=(0,rf.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),x=function(b){!t||b.button!==0||(b.preventDefault(),b.stopPropagation(),v.current={diffX:b.pageX-c,diffY:b.pageY-u,transformX:c,transformY:u},g(!0))},h=function(b){r&&m&&i({x:b.pageX-v.current.diffX,y:b.pageY-v.current.diffY},"move")},p=function(){if(r&&m){g(!1);var b=v.current,w=b.transformX,C=b.transformY,R=c!==w&&u!==C;if(!R)return;var _=e.current.offsetWidth*l,O=e.current.offsetHeight*l,I=e.current.getBoundingClientRect(),j=I.left,L=I.top,W=s%180!==0,z=Ep(W?O:_,W?_:O,j,L);z&&i(P({},z),"dragRebound")}},y=function(b){if(!(!r||b.deltaY==0)){var w=Math.abs(b.deltaY/100),C=Math.min(w,jF),R=Xs+C*o;b.deltaY>0&&(R=Xs/R),a(R,"wheel",b.clientX,b.clientY)}};return(0,rf.useEffect)(function(){var S,b,w,C;if(t){w=oa(window,"mouseup",p,!1),C=oa(window,"mousemove",h,!1);try{window.top!==window.self&&(S=oa(window.top,"mouseup",p,!1),b=oa(window.top,"mousemove",h,!1))}catch(R){El(!1,"[rc-image] ".concat(R))}}return function(){var R,_,O,I;(R=w)===null||R===void 0||R.remove(),(_=C)===null||_===void 0||_.remove(),(O=S)===null||O===void 0||O.remove(),(I=b)===null||I===void 0||I.remove()}},[r,m,c,u,s,t]),{isMoving:m,onMouseDown:x,onMouseMove:h,onMouseUp:p,onWheel:y}}var ic=E(N());function WF(e){return new Promise(function(t){if(!e){t(!1);return}var r=document.createElement("img");r.onerror=function(){return t(!1)},r.onload=function(){return t(!0)},r.src=e})}function Rp(e){var t=e.src,r=e.isCustomPlaceholder,o=e.fallback,n=(0,ic.useState)(r?"loading":"normal"),i=B(n,2),a=i[0],s=i[1],l=(0,ic.useRef)(!1),c=a==="error";(0,ic.useEffect)(function(){var m=!0;return WF(t).then(function(g){!g&&m&&s("error")}),function(){m=!1}},[t]),(0,ic.useEffect)(function(){r&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(g){l.current=!1,a==="loading"&&g!==null&&g!==void 0&&g.complete&&(g.naturalWidth||g.naturalHeight)&&(l.current=!0,u())},d=c&&o?{src:o}:{onLoad:u,src:t};return[f,d,a]}var of=E(N());function _0(e,t){var r=e.x-t.x,o=e.y-t.y;return Math.hypot(r,o)}function UG(e,t,r,o){var n=_0(e,r),i=_0(t,o);if(n===0&&i===0)return[e.x,e.y];var a=n/(n+i),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function qE(e,t,r,o,n,i,a){var s=n.rotate,l=n.scale,c=n.x,u=n.y,f=(0,of.useState)(!1),d=B(f,2),m=d[0],g=d[1],v=(0,of.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),x=function(b){v.current=P(P({},v.current),b)},h=function(b){if(t){b.stopPropagation(),g(!0);var w=b.touches,C=w===void 0?[]:w;C.length>1?x({point1:{x:C[0].clientX,y:C[0].clientY},point2:{x:C[1].clientX,y:C[1].clientY},eventType:"touchZoom"}):x({point1:{x:C[0].clientX-c,y:C[0].clientY-u},eventType:"move"})}},p=function(b){var w=b.touches,C=w===void 0?[]:w,R=v.current,_=R.point1,O=R.point2,I=R.eventType;if(C.length>1&&I==="touchZoom"){var j={x:C[0].clientX,y:C[0].clientY},L={x:C[1].clientX,y:C[1].clientY},W=UG(_,O,j,L),z=B(W,2),$=z[0],D=z[1],M=_0(j,L)/_0(_,O);a(M,"touchZoom",$,D,!0),x({point1:j,point2:L,eventType:"touchZoom"})}else I==="move"&&(i({x:C[0].clientX-_.x,y:C[0].clientY-_.y},"move"),x({eventType:"move"}))},y=function(){if(r){if(m&&g(!1),x({eventType:"none"}),o>l)return i({x:0,y:0,scale:o},"touchZoom");var b=e.current.offsetWidth*l,w=e.current.offsetHeight*l,C=e.current.getBoundingClientRect(),R=C.left,_=C.top,O=s%180!==0,I=Ep(O?w:b,O?b:w,R,_);I&&i(P({},I),"dragRebound")}};return(0,of.useEffect)(function(){var S;return r&&t&&(S=oa(window,"touchmove",function(b){return b.preventDefault()},{passive:!1})),function(){var b;(b=S)===null||b===void 0||b.remove()}},[r,t]),{isTouching:m,onTouchStart:h,onTouchMove:p,onTouchEnd:y}}var GG=["fallback","src","imgRef"],qG=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],KG=function(t){var r=t.fallback,o=t.src,n=t.imgRef,i=Ne(t,GG),a=Rp({src:o,fallback:r}),s=B(a,2),l=s[0],c=s[1];return mo.default.createElement("img",Z({ref:function(f){n.current=f,l(f)}},i,c))},XG=function(t){var r=t.prefixCls,o=t.src,n=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,d=f===void 0?{}:f,m=t.rootClassName,g=t.closeIcon,v=t.getContainer,x=t.current,h=x===void 0?0:x,p=t.count,y=p===void 0?1:p,S=t.countRender,b=t.scaleStep,w=b===void 0?.5:b,C=t.minScale,R=C===void 0?1:C,_=t.maxScale,O=_===void 0?50:_,I=t.transitionName,j=I===void 0?"zoom":I,L=t.maskTransitionName,W=L===void 0?"fade":L,z=t.imageRender,$=t.imgCommonProps,D=t.toolbarRender,M=t.onTransform,H=t.onChange,k=Ne(t,qG),F=(0,mo.useRef)(),U=(0,mo.useContext)(na),V=U&&y>1,A=U&&y>=1,G=(0,mo.useState)(!0),q=B(G,2),ne=q[0],ee=q[1],Q=UE(F,R,O,M),ce=Q.transform,re=Q.resetTransform,K=Q.updateTransform,X=Q.dispatchZoomChange,oe=GE(F,l,u,w,ce,K,X),Y=oe.isMoving,J=oe.onMouseDown,se=oe.onWheel,ue=qE(F,l,u,R,ce,K,X),de=ue.isTouching,ye=ue.onTouchStart,xe=ue.onTouchMove,Pe=ue.onTouchEnd,fe=ce.rotate,pe=ce.scale,Ae=(0,VF.default)(T({},"".concat(r,"-moving"),Y));(0,mo.useEffect)(function(){ne||ee(!0)},[ne]);var je=function(){re("close")},Xe=function(){X(Xs+w,"zoomIn")},Le=function(){X(Xs/(Xs+w),"zoomOut")},Ie=function(){K({rotate:fe+90},"rotateRight")},Ee=function(){K({rotate:fe-90},"rotateLeft")},Ke=function(){K({flipX:!ce.flipX},"flipX")},Je=function(){K({flipY:!ce.flipY},"flipY")},We=function(){re("reset")},ae=function(wt){var _t=h+wt;!Number.isInteger(_t)||_t<0||_t>y-1||(ee(!1),re(wt<0?"prev":"next"),H?.(_t,h))},me=function(wt){!u||!V||(wt.keyCode===Ye.LEFT?ae(-1):wt.keyCode===Ye.RIGHT&&ae(1))},ze=function(wt){u&&(pe!==1?K({x:0,y:0,scale:1},"doubleClick"):X(Xs+w,"doubleClick",wt.clientX,wt.clientY))};(0,mo.useEffect)(function(){var Ue=oa(window,"keydown",me,!1);return function(){Ue.remove()}},[u,V,h]);var be=mo.default.createElement(KG,Z({},$,{width:t.width,height:t.height,imgRef:F,className:"".concat(r,"-img"),alt:n,style:{transform:"translate3d(".concat(ce.x,"px, ").concat(ce.y,"px, 0) scale3d(").concat(ce.flipX?"-":"").concat(pe,", ").concat(ce.flipY?"-":"").concat(pe,", 1) rotate(").concat(fe,"deg)"),transitionDuration:(!ne||de)&&"0s"},fallback:a,src:o,onWheel:se,onMouseDown:J,onDoubleClick:ze,onTouchStart:ye,onTouchMove:xe,onTouchEnd:Pe,onTouchCancel:Pe})),He=P({url:o,alt:n},i);return mo.default.createElement(mo.default.Fragment,null,mo.default.createElement(kA,Z({transitionName:j,maskTransitionName:W,closable:!1,keyboard:!0,prefixCls:r,onClose:c,visible:u,classNames:{wrapper:Ae},rootClassName:m,getContainer:v},k,{afterClose:je}),mo.default.createElement("div",{className:"".concat(r,"-img-wrapper")},z?z(be,P({transform:ce,image:He},U?{current:h}:{})):be)),mo.default.createElement(zF,{visible:u,transform:ce,maskTransitionName:W,closeIcon:g,getContainer:v,prefixCls:r,rootClassName:m,icons:d,countRender:S,showSwitch:V,showProgress:A,current:h,count:y,scale:pe,minScale:R,maxScale:O,toolbarRender:D,onActive:ae,onZoomIn:Xe,onZoomOut:Le,onRotateRight:Ie,onRotateLeft:Ee,onFlipX:Ke,onFlipY:Je,onClose:c,onReset:We,zIndex:k.zIndex!==void 0?k.zIndex+1:void 0,image:He}))},P0=XG;var Ba=E(N()),XE=E(N());var nf=E(N());var Op=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function KE(e){var t=nf.useState({}),r=B(t,2),o=r[0],n=r[1],i=nf.useCallback(function(s,l){return n(function(c){return P(P({},c),{},T({},s,l))}),function(){n(function(c){var u=P({},c);return delete u[s],u})}},[]),a=nf.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(le(Op)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(o).reduce(function(s,l){var c=o[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,o]);return[a,i,!!e]}var YG=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],QG=["src"],ZG=function(t){var r,o=t.previewPrefixCls,n=o===void 0?"rc-image-preview":o,i=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,u=t.fallback,f=ie(c)==="object"?c:{},d=f.visible,m=f.onVisibleChange,g=f.getContainer,v=f.current,x=f.movable,h=f.minScale,p=f.maxScale,y=f.countRender,S=f.closeIcon,b=f.onChange,w=f.onTransform,C=f.toolbarRender,R=f.imageRender,_=Ne(f,YG),O=KE(l),I=B(O,3),j=I[0],L=I[1],W=I[2],z=zt(0,{value:v}),$=B(z,2),D=$[0],M=$[1],H=(0,XE.useState)(!1),k=B(H,2),F=k[0],U=k[1],V=((r=j[D])===null||r===void 0?void 0:r.data)||{},A=V.src,G=Ne(V,QG),q=zt(!!d,{value:d,onChange:function(de,ye){m?.(de,ye,D)}}),ne=B(q,2),ee=ne[0],Q=ne[1],ce=(0,XE.useState)(null),re=B(ce,2),K=re[0],X=re[1],oe=Ba.useCallback(function(ue,de,ye,xe){var Pe=W?j.findIndex(function(fe){return fe.data.src===de}):j.findIndex(function(fe){return fe.id===ue});M(Pe<0?0:Pe),Q(!0),X({x:ye,y:xe}),U(!0)},[j,W]);Ba.useEffect(function(){ee?F||M(0):U(!1)},[ee]);var Y=function(de,ye){M(de),b?.(de,ye)},J=function(){Q(!1),X(null)},se=Ba.useMemo(function(){return{register:L,onPreview:oe}},[L,oe]);return Ba.createElement(na.Provider,{value:se},i,Ba.createElement(P0,Z({"aria-hidden":!ee,movable:x,visible:ee,prefixCls:n,closeIcon:S,onClose:J,mousePosition:K,imgCommonProps:G,src:A,fallback:u,icons:s,minScale:h,maxScale:p,getContainer:g,current:D,count:j.length,countRender:y,onTransform:w,toolbarRender:C,imageRender:R,onChange:Y},_)))},HF=ZG;var ac=E(N());var UF=0;function YE(e,t){var r=ac.useState(function(){return UF+=1,String(UF)}),o=B(r,1),n=o[0],i=ac.useContext(na),a={data:t,canPreview:e};return ac.useEffect(function(){if(i)return i.register(n,a)},[]),ac.useEffect(function(){i&&i.register(n,a)},[e,t]),n}var JG=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],eq=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],GF=function(t){var r=t.src,o=t.alt,n=t.onPreviewClose,i=t.prefixCls,a=i===void 0?"rc-image":i,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,d=t.height,m=t.style,g=t.preview,v=g===void 0?!0:g,x=t.className,h=t.onClick,p=t.onError,y=t.wrapperClassName,S=t.wrapperStyle,b=t.rootClassName,w=Ne(t,JG),C=c&&c!==!0,R=ie(v)==="object"?v:{},_=R.src,O=R.visible,I=O===void 0?void 0:O,j=R.onVisibleChange,L=j===void 0?n:j,W=R.getContainer,z=W===void 0?void 0:W,$=R.mask,D=R.maskClassName,M=R.movable,H=R.icons,k=R.scaleStep,F=R.minScale,U=R.maxScale,V=R.imageRender,A=R.toolbarRender,G=Ne(R,eq),q=_??r,ne=zt(!!I,{value:I,onChange:L}),ee=B(ne,2),Q=ee[0],ce=ee[1],re=Rp({src:r,isCustomPlaceholder:C,fallback:u}),K=B(re,3),X=K[0],oe=K[1],Y=K[2],J=(0,sc.useState)(null),se=B(J,2),ue=se[0],de=se[1],ye=(0,sc.useContext)(na),xe=!!v,Pe=function(){ce(!1),de(null)},fe=(0,T0.default)(a,y,b,T({},"".concat(a,"-error"),Y==="error")),pe=(0,sc.useMemo)(function(){var Le={};return Op.forEach(function(Ie){t[Ie]!==void 0&&(Le[Ie]=t[Ie])}),Le},Op.map(function(Le){return t[Le]})),Ae=(0,sc.useMemo)(function(){return P(P({},pe),{},{src:q})},[q,pe]),je=YE(xe,Ae),Xe=function(Ie){var Ee=LF(Ie.target),Ke=Ee.left,Je=Ee.top;ye?ye.onPreview(je,q,Ke,Je):(de({x:Ke,y:Je}),ce(!0)),h?.(Ie)};return ja.createElement(ja.Fragment,null,ja.createElement("div",Z({},w,{className:fe,onClick:xe?Xe:h,style:P({width:f,height:d},S)}),ja.createElement("img",Z({},pe,{className:(0,T0.default)("".concat(a,"-img"),T({},"".concat(a,"-img-placeholder"),c===!0),x),style:P({height:d},m),ref:X},oe,{width:f,height:d,onError:p})),Y==="loading"&&ja.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),$&&xe&&ja.createElement("div",{className:(0,T0.default)("".concat(a,"-mask"),D),style:{display:m?.display==="none"?"none":void 0}},$)),!ye&&xe&&ja.createElement(P0,Z({"aria-hidden":!Q,visible:Q,prefixCls:l,onClose:Pe,mousePosition:ue,src:q,alt:o,imageInfo:{width:f,height:d},fallback:u,getContainer:z,icons:H,movable:M,scaleStep:k,minScale:F,maxScale:U,rootClassName:b,imageRender:V,imgCommonProps:pe,toolbarRender:A},G)))};GF.PreviewGroup=HF;var qF=GF;var N0=qF;var ko=E(N());var I0=E(N());var tq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},KF=tq;var rq=function(t,r){return I0.createElement(ct,Z({},t,{ref:r,icon:KF}))},oq=I0.forwardRef(rq),XF=oq;var $0=E(N());var nq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},YF=nq;var iq=function(t,r){return $0.createElement(ct,Z({},t,{ref:r,icon:YF}))},aq=$0.forwardRef(iq),QF=aq;var D0=E(N());var sq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},ZF=sq;var lq=function(t,r){return D0.createElement(ct,Z({},t,{ref:r,icon:ZF}))},cq=D0.forwardRef(lq),QE=cq;var A0=E(N());var uq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},JF=uq;var fq=function(t,r){return A0.createElement(ct,Z({},t,{ref:r,icon:JF}))},dq=A0.forwardRef(fq),e3=dq;var M0=E(N());var pq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},t3=pq;var mq=function(t,r){return M0.createElement(ct,Z({},t,{ref:r,icon:t3}))},hq=M0.forwardRef(mq),r3=hq;var o3=E(we());var ZE=e=>({position:e||"absolute",inset:0}),gq=e=>{let{iconCls:t,motionDurationSlow:r,paddingXXS:o,marginXXS:n,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new st("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},wi),{padding:`0 ${te(o)}`,[t]:{marginInlineEnd:n,svg:{verticalAlign:"baseline"}}})}},vq=e=>{let{previewCls:t,modalMaskBg:r,paddingSM:o,marginXL:n,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,d=new st(r).setA(.1),m=d.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:n,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:n,right:{_skip_check_:!0,value:n},display:"flex",color:f,backgroundColor:d.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:m.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${te(a)}`,backgroundColor:d.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},yq=e=>{let{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:o,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,s=new st(t).setA(.1),l=s.clone().setA(.2);return{[`${n}-switch-left, ${n}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${r}`]:{cursor:"not-allowed"}}},[`> ${r}`]:{fontSize:e.previewOperationSize}},[`${n}-switch-left`]:{insetInlineStart:e.marginSM},[`${n}-switch-right`]:{insetInlineEnd:e.marginSM}}},xq=e=>{let{motionEaseOut:t,previewCls:r,motionDurationSlow:o,componentCls:n}=e;return[{[`${n}-preview-root`]:{[r]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${r}-body`]:Object.assign(Object.assign({},ZE()),{overflow:"hidden"}),[`${r}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ZE()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${r}-moving`]:{[`${r}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${n}-preview-root`]:{[`${r}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${n}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[vq(e),yq(e)]}]},bq=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},gq(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},ZE())}}},Sq=e=>{let{previewCls:t}=e;return{[`${t}-root`]:jl(e,"zoom"),"&":Bl(e,!0)}},Cq=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new st(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new st(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new st(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),L0=Rt("Image",e=>{let t=`${e.componentCls}-preview`,r=Qe(e,{previewCls:t,modalMaskBg:new st("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[bq(r),xq(r),P1(Qe(r,{componentCls:t})),Sq(r)]},Cq);var wq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{var{previewPrefixCls:t,preview:r}=e,o=wq(e,["previewPrefixCls","preview"]);let{getPrefixCls:n}=ko.useContext(et),i=n("image",t),a=`${i}-preview`,s=n(),l=Eo(i),[c,u,f]=L0(i,l),[d]=$s("ImagePreview",typeof r=="object"?r.zIndex:void 0),m=ko.useMemo(()=>{var g;if(r===!1)return r;let v=typeof r=="object"?r:{},x=(0,o3.default)(u,f,l,(g=v.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},v),{transitionName:Xi(s,"zoom",v.transitionName),maskTransitionName:Xi(s,"fade",v.maskTransitionName),rootClassName:x,zIndex:d})},[r]);return c(ko.createElement(N0.PreviewGroup,Object.assign({preview:m,previewPrefixCls:a,icons:JE},o)))},n3=Eq;var i3=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{prefixCls:t,preview:r,className:o,rootClassName:n,style:i}=e,a=i3(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,getPopupContainer:l,className:c,style:u,preview:f}=qo("image"),[d]=Si("Image"),m=s("image",t),g=s(),v=Eo(m),[x,h,p]=L0(m,v),y=(0,k0.default)(n,h,p,v),S=(0,k0.default)(o,h,c),[b]=$s("ImagePreview",typeof r=="object"?r.zIndex:void 0),w=af.useMemo(()=>{if(r===!1)return r;let R=typeof r=="object"?r:{},{getContainer:_,closeIcon:O,rootClassName:I}=R,j=i3(R,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:af.createElement("div",{className:`${m}-mask-info`},af.createElement(tf,null),d?.preview),icons:JE},j),{rootClassName:(0,k0.default)(y,I),getContainer:_??l,transitionName:Xi(g,"zoom",R.transitionName),maskTransitionName:Xi(g,"fade",R.maskTransitionName),zIndex:b,closeIcon:O??f?.closeIcon})},[r,d,f?.closeIcon]),C=Object.assign(Object.assign({},u),i);return x(af.createElement(N0,Object.assign({prefixCls:m,preview:w,rootClassName:y,className:S,style:C},a)))};a3.PreviewGroup=n3;var eR=a3;var tR=E(N()),_p=E(N()),s3=E(we());var Rq=e=>{let{getPrefixCls:t,direction:r}=(0,_p.useContext)(et),{prefixCls:o,className:n}=e,i=t("input-group",o),a=t("input"),[s,l,c]=u0(a),u=(0,s3.default)(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,n),f=(0,_p.useContext)(ro),d=(0,_p.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(tR.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},tR.createElement(ro.Provider,{value:d},e.children)))},l3=Rq;var rr=E(N()),f3=E(we());var Oq=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,"&-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}}}},c3=Rt(["Input","OTP"],e=>{let t=Qe(e,La(e));return[Oq(t)]},ka);var Ys=E(N());var _q=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{value:r,onChange:o,onActiveChange:n,index:i,mask:a}=e,s=_q(e,["value","onChange","onActiveChange","index","mask"]),l=r&&typeof a=="string"?a:r,c=g=>{o(i,g.target.value)},u=Ys.useRef(null);Ys.useImperativeHandle(t,()=>u.current);let f=()=>{ft(()=>{var g;let v=(g=u.current)===null||g===void 0?void 0:g.input;document.activeElement===v&&v&&v.select()})};return Ys.createElement(Ks,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:g=>{let{key:v,ctrlKey:x,metaKey:h}=g;v==="ArrowLeft"?n(i-1):v==="ArrowRight"?n(i+1):v==="z"&&(x||h)&&g.preventDefault(),f()},onKeyUp:g=>{g.key==="Backspace"&&!r&&n(i-1),f()},onMouseDown:f,onMouseUp:f}))}),u3=Pq;var Tq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{index:t,prefixCls:r,separator:o}=e,n=typeof o=="function"?o(t):o;return n?rr.createElement("span",{className:`${r}-separator`},n):null},Iq=rr.forwardRef((e,t)=>{let{prefixCls:r,length:o=6,size:n,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:d,autoFocus:m,mask:g,type:v,onInput:x,inputMode:h}=e,p=Tq(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:S}=rr.useContext(et),b=y("otp",r),w=wo(p,{aria:!0,data:!0,attr:!0}),[C,R,_]=c3(b),O=Yo(A=>n??A),I=rr.useContext(ro),j=ea(I.status,d),L=rr.useMemo(()=>Object.assign(Object.assign({},I),{status:j,hasFeedback:!1,feedbackIcon:null}),[I,j]),W=rr.useRef(null),z=rr.useRef({});rr.useImperativeHandle(t,()=>({focus:()=>{var A;(A=z.current[0])===null||A===void 0||A.focus()},blur:()=>{var A;for(let G=0;Gl?l(A):A,[D,M]=rr.useState(()=>F0($(i||"")));rr.useEffect(()=>{a!==void 0&&M(F0(a))},[a]);let H=It(A=>{M(A),x&&x(A),s&&A.length===o&&A.every(G=>G)&&A.some((G,q)=>D[q]!==G)&&s(A.join(""))}),k=It((A,G)=>{let q=le(D);for(let ee=0;ee=0&&!q[ee];ee-=1)q.pop();let ne=$(q.map(ee=>ee||" ").join(""));return q=F0(ne).map((ee,Q)=>ee===" "&&!q[Q]?q[Q]:ee),q}),F=(A,G)=>{var q;let ne=k(A,G),ee=Math.min(A+G.length,o-1);ee!==A&&ne[A]!==void 0&&((q=z.current[ee])===null||q===void 0||q.focus()),H(ne)},U=A=>{var G;(G=z.current[A])===null||G===void 0||G.focus()},V={variant:u,disabled:f,status:j,mask:g,type:v,inputMode:h};return C(rr.createElement("div",Object.assign({},w,{ref:W,className:(0,f3.default)(b,{[`${b}-sm`]:O==="small",[`${b}-lg`]:O==="large",[`${b}-rtl`]:S==="rtl"},_,R)}),rr.createElement(ro.Provider,{value:L},Array.from({length:o}).map((A,G)=>{let q=`otp-${G}`,ne=D[G]||"";return rr.createElement(rr.Fragment,{key:q},rr.createElement(u3,Object.assign({ref:ee=>{z.current[G]=ee},index:G,size:O,htmlSize:1,className:`${b}-input`,onChange:F,value:ne,onActiveChange:U,autoFocus:G===0&&m},V)),Ge?Ro.createElement(tf,null):Ro.createElement(m3,null),kq={click:"onClick",hover:"onMouseOver"},Fq=Ro.forwardRef((e,t)=>{let{disabled:r,action:o="click",visibilityToggle:n=!0,iconRender:i=Lq}=e,a=Ro.useContext(Qr),s=r??a,l=typeof n=="object"&&n.visible!==void 0,[c,u]=(0,B0.useState)(()=>l?n.visible:!1),f=(0,B0.useRef)(null);Ro.useEffect(()=>{l&&u(n.visible)},[l,n]);let d=Sp(f),m=()=>{var O;if(s)return;c&&d();let I=!c;u(I),typeof n=="object"&&((O=n.onVisibleChange)===null||O===void 0||O.call(n,I))},g=O=>{let I=kq[o]||"",j=i(c),L={[I]:m,className:`${O}-icon`,key:"passwordIcon",onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()}};return Ro.cloneElement(Ro.isValidElement(j)?j:Ro.createElement("span",null,j),L)},{className:v,prefixCls:x,inputPrefixCls:h,size:p}=e,y=Mq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=Ro.useContext(et),b=S("input",h),w=S("input-password",x),C=n&&g(w),R=(0,h3.default)(w,v,{[`${w}-${p}`]:!!p}),_=Object.assign(Object.assign({},Ar(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:b,suffix:C});return p&&(_.size=p),Ro.createElement(Ks,Object.assign({ref:jr(t,f)},_))}),g3=Fq;var Ti=E(N());var v3=E(we());var zq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let{prefixCls:r,inputPrefixCls:o,className:n,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:m,onCompositionEnd:g}=e,v=zq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:h}=Ti.useContext(et),p=Ti.useRef(!1),y=x("input-search",r),S=x("input",o),{compactSize:b}=Vn(y,h),w=Yo(F=>{var U;return(U=i??b)!==null&&U!==void 0?U:F}),C=Ti.useRef(null),R=F=>{F?.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),d?.(F)},_=F=>{var U;document.activeElement===((U=C.current)===null||U===void 0?void 0:U.input)&&F.preventDefault()},O=F=>{var U,V;f&&f((V=(U=C.current)===null||U===void 0?void 0:U.input)===null||V===void 0?void 0:V.value,F,{source:"input"})},I=F=>{p.current||c||O(F)},j=typeof s=="boolean"?Ti.createElement(Xy,null):null,L=`${y}-button`,W,z=s||{},$=z.type&&z.type.__ANT_BUTTON===!0;$||z.type==="button"?W=Wn(z,Object.assign({onMouseDown:_,onClick:F=>{var U,V;(V=(U=z?.props)===null||U===void 0?void 0:U.onClick)===null||V===void 0||V.call(U,F),O(F)},key:"enterButton"},$?{className:L,size:w}:{})):W=Ti.createElement(Yd,{className:L,type:s?"primary":void 0,size:w,disabled:u,key:"enterButton",onMouseDown:_,onClick:O,loading:c,icon:j},s),l&&(W=[W,Wn(l,{key:"addonAfter"})]);let D=(0,v3.default)(y,{[`${y}-rtl`]:h==="rtl",[`${y}-${w}`]:!!w,[`${y}-with-button`]:!!s},n),M=Object.assign(Object.assign({},v),{className:D,prefixCls:S,type:"search"}),H=F=>{p.current=!0,m?.(F)},k=F=>{p.current=!1,g?.(F)};return Ti.createElement(Ks,Object.assign({ref:jr(C,t),onPressEnter:I},M,{size:w,onCompositionStart:H,onCompositionEnd:k,addonAfter:W,suffix:a,onChange:R,disabled:u}))}),y3=Bq;var En=E(N()),w3=E(N()),Tp=E(we());var Pp=E(we());var Vr=E(N());var x3=E(we());var ho=E(N());var jq=` 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; `,Wq=["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"],rR={},wn;function Vq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&rR[r])return rR[r];var o=window.getComputedStyle(e),n=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s=Wq.map(function(c){return"".concat(c,":").concat(o.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:n};return t&&r&&(rR[r]=l),l}function oR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;wn||(wn=document.createElement("textarea"),wn.setAttribute("tab-index","-1"),wn.setAttribute("aria-hidden","true"),wn.setAttribute("name","hiddenTextarea"),document.body.appendChild(wn)),e.getAttribute("wrap")?wn.setAttribute("wrap",e.getAttribute("wrap")):wn.removeAttribute("wrap");var n=Vq(e,t),i=n.paddingSize,a=n.borderSize,s=n.boxSizing,l=n.sizingStyle;wn.setAttribute("style","".concat(l,";").concat(jq)),wn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=wn.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),r!==null||o!==null){wn.value=" ";var m=wn.scrollHeight-i;r!==null&&(c=m*r,s==="border-box"&&(c=c+i+a),d=Math.max(c,d)),o!==null&&(u=m*o,s==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var g={height:d,overflowY:f,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var Hq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],nR=0,iR=1,aR=2,Uq=ho.forwardRef(function(e,t){var r=e,o=r.prefixCls,n=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange,d=r.onInternalAutoSize,m=Ne(r,Hq),g=zt(n,{value:i,postState:function(G){return G??""}}),v=B(g,2),x=v[0],h=v[1],p=function(G){h(G.target.value),f?.(G)},y=ho.useRef();ho.useImperativeHandle(t,function(){return{textArea:y.current}});var S=ho.useMemo(function(){return a&&ie(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),b=B(S,2),w=b[0],C=b[1],R=!!a,_=function(){try{if(document.activeElement===y.current){var G=y.current,q=G.selectionStart,ne=G.selectionEnd,ee=G.scrollTop;y.current.setSelectionRange(q,ne),y.current.scrollTop=ee}}catch{}},O=ho.useState(aR),I=B(O,2),j=I[0],L=I[1],W=ho.useState(),z=B(W,2),$=z[0],D=z[1],M=function(){L(nR)};xt(function(){R&&M()},[i,w,C,R]),xt(function(){if(j===nR)L(iR);else if(j===iR){var A=oR(y.current,!1,w,C);L(aR),D(A)}else _()},[j]);var H=ho.useRef(),k=function(){ft.cancel(H.current)},F=function(G){j===aR&&(s?.(G),a&&(k(),H.current=ft(function(){M()})))};ho.useEffect(function(){return k},[]);var U=R?$:null,V=P(P({},c),U);return(j===nR||j===iR)&&(V.overflowY="hidden",V.overflowX="hidden"),ho.createElement(Go,{onResize:F,disabled:!(a||s)},ho.createElement("textarea",Z({},m,{ref:y,style:V,className:(0,x3.default)(o,l,T({},"".concat(o,"-disabled"),u)),disabled:u,value:x,onChange:p})))}),sR=Uq;var Gq=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],qq=Vr.default.forwardRef(function(e,t){var r,o=e.defaultValue,n=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,m=e.prefixCls,g=m===void 0?"rc-textarea":m,v=e.showCount,x=e.count,h=e.className,p=e.style,y=e.disabled,S=e.hidden,b=e.classNames,w=e.styles,C=e.onResize,R=e.onClear,_=e.onPressEnter,O=e.readOnly,I=e.autoSize,j=e.onKeyDown,L=Ne(e,Gq),W=zt(o,{value:n,defaultValue:o}),z=B(W,2),$=z[0],D=z[1],M=$==null?"":String($),H=Vr.default.useState(!1),k=B(H,2),F=k[0],U=k[1],V=Vr.default.useRef(!1),A=Vr.default.useState(null),G=B(A,2),q=G[0],ne=G[1],ee=(0,Vr.useRef)(null),Q=(0,Vr.useRef)(null),ce=function(){var ae;return(ae=Q.current)===null||ae===void 0?void 0:ae.textArea},re=function(){ce().focus()};(0,Vr.useImperativeHandle)(t,function(){var We;return{resizableTextArea:Q.current,focus:re,blur:function(){ce().blur()},nativeElement:((We=ee.current)===null||We===void 0?void 0:We.nativeElement)||ce()}}),(0,Vr.useEffect)(function(){U(function(We){return!y&&We})},[y]);var K=Vr.default.useState(null),X=B(K,2),oe=X[0],Y=X[1];Vr.default.useEffect(function(){if(oe){var We;(We=ce()).setSelectionRange.apply(We,le(oe))}},[oe]);var J=bp(x,v),se=(r=J.max)!==null&&r!==void 0?r:c,ue=Number(se)>0,de=J.strategy(M),ye=!!se&&de>se,xe=function(ae,me){var ze=me;!V.current&&J.exceedFormatter&&J.max&&J.strategy(me)>J.max&&(ze=J.exceedFormatter(me,{max:J.max}),me!==ze&&Y([ce().selectionStart||0,ce().selectionEnd||0])),D(ze),ef(ae.currentTarget,ae,s,ze)},Pe=function(ae){V.current=!0,u?.(ae)},fe=function(ae){V.current=!1,xe(ae,ae.currentTarget.value),f?.(ae)},pe=function(ae){xe(ae,ae.target.value)},Ae=function(ae){ae.key==="Enter"&&_&&_(ae),j?.(ae)},je=function(ae){U(!0),i?.(ae)},Xe=function(ae){U(!1),a?.(ae)},Le=function(ae){D(""),re(),ef(ce(),ae,s)},Ie=d,Ee;J.show&&(J.showFormatter?Ee=J.showFormatter({value:M,count:de,maxLength:se}):Ee="".concat(de).concat(ue?" / ".concat(se):""),Ie=Vr.default.createElement(Vr.default.Fragment,null,Ie,Vr.default.createElement("span",{className:(0,Pp.default)("".concat(g,"-data-count"),b?.count),style:w?.count},Ee)));var Ke=function(ae){var me;C?.(ae),(me=ce())!==null&&me!==void 0&&me.style.height&&ne(!0)},Je=!I&&!v&&!l;return Vr.default.createElement(rc,{ref:ee,value:M,allowClear:l,handleReset:Le,suffix:Ie,prefixCls:g,classNames:P(P({},b),{},{affixWrapper:(0,Pp.default)(b?.affixWrapper,T(T({},"".concat(g,"-show-count"),v),"".concat(g,"-textarea-allow-clear"),l))}),disabled:y,focused:F,className:(0,Pp.default)(h,ye&&"".concat(g,"-out-of-range")),style:P(P({},p),q&&!Je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ee=="string"?Ee:void 0}},hidden:S,readOnly:O,onClear:R},Vr.default.createElement(sR,Z({},L,{autoSize:I,maxLength:c,onKeyDown:Ae,onChange:pe,onFocus:je,onBlur:Xe,onCompositionStart:Pe,onCompositionEnd:fe,className:(0,Pp.default)(b?.textarea),style:P(P({},w?.textarea),{},{resize:p?.resize}),disabled:y,prefixCls:g,onResize:Ke,ref:Q,readOnly:O})))}),b3=qq;var S3=b3;var Kq=e=>{let{componentCls:t,paddingLG:r}=e,o=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[o]:{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${o}-has-feedback ${t} `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-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}}}}}},C3=Rt(["Input","TextArea"],e=>{let t=Qe(e,La(e));return[Kq(t)]},ka,{resetFont:!1});var Xq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{var r;let{prefixCls:o,bordered:n=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:d,styles:m,variant:g,showCount:v,onMouseDown:x,onResize:h}=e,p=Xq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:y,direction:S,allowClear:b,autoComplete:w,className:C,style:R,classNames:_,styles:O}=qo("textArea"),I=En.useContext(Qr),j=a??I,{status:L,hasFeedback:W,feedbackIcon:z}=En.useContext(ro),$=ea(L,s),D=En.useRef(null);En.useImperativeHandle(t,()=>{var J;return{resizableTextArea:(J=D.current)===null||J===void 0?void 0:J.resizableTextArea,focus:se=>{var ue,de;tc((de=(ue=D.current)===null||ue===void 0?void 0:ue.resizableTextArea)===null||de===void 0?void 0:de.textArea,se)},blur:()=>{var se;return(se=D.current)===null||se===void 0?void 0:se.blur()}}});let M=y("input",o),H=Eo(M),[k,F,U]=c0(M,u),[V]=C3(M,H),{compactSize:A,compactItemClassnames:G}=Vn(M,S),q=Yo(J=>{var se;return(se=i??A)!==null&&se!==void 0?se:J}),[ne,ee]=qs("textArea",g,n),Q=b0(l??b),[ce,re]=En.useState(!1),[K,X]=En.useState(!1),oe=J=>{re(!0),x?.(J);let se=()=>{re(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},Y=J=>{var se,ue;if(h?.(J),ce&&typeof getComputedStyle=="function"){let de=(ue=(se=D.current)===null||se===void 0?void 0:se.nativeElement)===null||ue===void 0?void 0:ue.querySelector("textarea");de&&getComputedStyle(de).resize==="both"&&X(!0)}};return k(V(En.createElement(S3,Object.assign({autoComplete:w},p,{style:Object.assign(Object.assign({},R),d),styles:Object.assign(Object.assign({},O),m),disabled:j,allowClear:Q,className:(0,Tp.default)(U,H,f,u,G,C,K&&`${M}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),_),{textarea:(0,Tp.default)({[`${M}-sm`]:q==="small",[`${M}-lg`]:q==="large"},F,c?.textarea,_.textarea,ce&&`${M}-mouse-active`),variant:(0,Tp.default)({[`${M}-${ne}`]:ee},Ji(M,$)),affixWrapper:(0,Tp.default)(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:S==="rtl",[`${M}-affix-wrapper-sm`]:q==="small",[`${M}-affix-wrapper-lg`]:q==="large",[`${M}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},F)}),prefixCls:M,suffix:W&&En.createElement("span",{className:`${M}-textarea-suffix`},z),showCount:v,ref:D,onResize:Y,onMouseDown:oe}))))}),E3=Yq;var sf=Ks;sf.Group=l3;sf.Search=y3;sf.TextArea=E3;sf.Password=g3;sf.OTP=d3;var Np=sf;var Hr=E(N());var pR=E(we());var uf=E(N()),A3=E(we());var Qq=E(N()),Zq=E(we());var Ip=E(N()),lR={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},cR=function(){var t=(0,Ip.useRef)([]),r=(0,Ip.useRef)(null);return(0,Ip.useEffect)(function(){var o=Date.now(),n=!1;t.current.forEach(function(i){if(i){n=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&o-r.current<100&&(a.transitionDuration="0s, 0s")}}),n&&(r.current=Date.now())}),t.current};var $p=E(N()),I3=E(we());var j0=E(N());var R3=0,Jq=Vt();function eK(){var e;return Jq?(e=R3,R3+=1):e="TEST_OR_SSR",e}var O3=function(e){var t=j0.useState(),r=B(t,2),o=r[0],n=r[1];return j0.useEffect(function(){n("rc_progress_".concat(eK()))},[]),e||o};var ei=E(N()),_3=function(t){var r=t.bg,o=t.children;return ei.createElement("div",{style:{width:"100%",height:"100%",background:r}},o)};function P3(e,t){return Object.keys(e).map(function(r){var o=parseFloat(r),n="".concat(Math.floor(o*t),"%");return"".concat(e[r]," ").concat(n)})}var tK=ei.forwardRef(function(e,t){var r=e.prefixCls,o=e.color,n=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,d=o&&ie(o)==="object",m=d?"#FFF":void 0,g=u/2,v=ei.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:g,cy:g,stroke:m,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!d)return v;var x="".concat(n,"-conic"),h=f?"".concat(180+f/2,"deg"):"0deg",p=P3(o,(360-f)/360),y=P3(o,1),S="conic-gradient(from ".concat(h,", ").concat(p.join(", "),")"),b="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(y.join(", "),")");return ei.createElement(ei.Fragment,null,ei.createElement("mask",{id:x},v),ei.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(x,")")},ei.createElement(_3,{bg:b},ei.createElement(_3,{bg:S}))))}),T3=tK;var lf=100,W0=function(t,r,o,n,i,a,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=o/100*360*((360-a)/360),m=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],g=(100-n)/100*r;c==="round"&&n!==100&&(g+=u/2,g>=r&&(g=r-.01));var v=lf/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:g+f,transform:"rotate(".concat(i+d+m,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};var rK=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function N3(e){var t=e??[];return Array.isArray(t)?t:[t]}var oK=function(t){var r=P(P({},lR),t),o=r.id,n=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,f=r.trailColor,d=r.strokeLinecap,m=r.style,g=r.className,v=r.strokeColor,x=r.percent,h=Ne(r,rK),p=lf/2,y=O3(o),S="".concat(y,"-gradient"),b=p-a/2,w=Math.PI*2*b,C=c>0?90+c/2:-90,R=w*((360-c)/360),_=ie(i)==="object"?i:{count:i,gap:2},O=_.count,I=_.gap,j=N3(x),L=N3(v),W=L.find(function(F){return F&&ie(F)==="object"}),z=W&&ie(W)==="object",$=z?"butt":d,D=W0(w,R,0,100,C,c,u,f,$,a),M=cR(),H=function(){var U=0;return j.map(function(V,A){var G=L[A]||L[L.length-1],q=W0(w,R,U,V,C,c,u,G,$,a);return U+=V,$p.createElement(T3,{key:A,color:G,ptg:V,radius:b,prefixCls:n,gradientId:S,style:q,strokeLinecap:$,strokeWidth:a,gapDegree:c,ref:function(ee){M[A]=ee},size:lf})}).reverse()},k=function(){var U=Math.round(O*(j[0]/100)),V=100/O,A=0;return new Array(O).fill(null).map(function(G,q){var ne=q<=U-1?L[0]:f,ee=ne&&ie(ne)==="object"?"url(#".concat(S,")"):void 0,Q=W0(w,R,A,V,C,c,u,ne,"butt",a,I);return A+=(R-Q.strokeDashoffset+I)*100/R,$p.createElement("circle",{key:q,className:"".concat(n,"-circle-path"),r:b,cx:p,cy:p,stroke:ee,strokeWidth:a,opacity:1,style:Q,ref:function(re){M[q]=re}})})};return $p.createElement("svg",Z({className:(0,I3.default)("".concat(n,"-circle"),g),viewBox:"0 0 ".concat(lf," ").concat(lf),style:m,id:o,role:"presentation"},h),!O&&$p.createElement("circle",{className:"".concat(n,"-circle-trail"),r:b,cx:p,cy:p,stroke:f,strokeLinecap:$,strokeWidth:s||a,style:D}),O?k():H())},uR=oK;function ia(e){return!e||e<0?0:e>100?100:e}function cf(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}var $3=e=>{let{percent:t,success:r,successPercent:o}=e,n=ia(cf({success:r,successPercent:o}));return[n,ia(ia(t)-n)]},D3=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||Ra.green,r||null]},Qs=(e,t,r)=>{var o,n,i,a;let s=-1,l=-1;if(t==="step"){let c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){let c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(n=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&n!==void 0?n:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]};var nK=3,iK=e=>nK/e*100,aK=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:n,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[d,m]=Qs(u,"circle"),{strokeWidth:g}=e;g===void 0&&(g=Math.max(iK(d),6));let v={width:d,height:m,fontSize:d*.15+6},x=uf.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),h=$3(e),p=n||s==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=D3({success:c,strokeColor:e.strokeColor}),b=(0,A3.default)(`${t}-inner`,{[`${t}-circle-gradient`]:y}),w=uf.createElement(uR,{steps:f,percent:f?h[1]:h,strokeWidth:g,trailWidth:g,strokeColor:f?S[1]:S,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:x,gapPosition:p}),C=d<=20,R=uf.createElement("div",{className:b,style:v},w,!C&&l);return C?uf.createElement(Jl,{title:l},R):R},M3=aK;var ff=E(N());var F3=E(we());var Dp="--progress-line-stroke-color",fR="--progress-percent",L3=e=>{let t=e?"100%":"-100%";return new dt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},sK=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Dp})`]},height:"100%",width:`calc(1 / var(${fR}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${te(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:L3(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:L3(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},lK=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},cK=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},uK=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},fK=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),k3=Rt("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=Qe(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[sK(r),lK(r),cK(r),uK(r)]},fK);var dK=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let t=[];return Object.keys(e).forEach(r=>{let o=parseFloat(r.replace(/%/g,""));Number.isNaN(o)||t.push({key:o,value:e[r]})}),t=t.sort((r,o)=>r.key-o.key),t.map(r=>{let{key:o,value:n}=r;return`${n} ${o}%`}).join(", ")},mK=(e,t)=>{let{from:r=Ra.blue,to:o=Ra.blue,direction:n=t==="rtl"?"to left":"to right"}=e,i=dK(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=pK(i),l=`linear-gradient(${n}, ${s})`;return{background:l,[Dp]:l}}let a=`linear-gradient(${n}, ${r}, ${o})`;return{background:a,[Dp]:a}},hK=e=>{let{prefixCls:t,direction:r,percent:o,size:n,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:d,type:m}=u,g=a&&typeof a!="string"?mK(a,r):{[Dp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,x=n??[-1,i||(n==="small"?6:8)],[h,p]=Qs(x,"line",{strokeWidth:i}),y={backgroundColor:c||void 0,borderRadius:v},S=Object.assign(Object.assign({width:`${ia(o)}%`,height:p,borderRadius:v},g),{[fR]:ia(o)/100}),b=cf(e),w={width:`${ia(b)}%`,height:p,borderRadius:v,backgroundColor:f?.strokeColor},C={width:h<0?"100%":h},R=ff.createElement("div",{className:`${t}-inner`,style:y},ff.createElement("div",{className:(0,F3.default)(`${t}-bg`,`${t}-bg-${m}`),style:S},m==="inner"&&l),b!==void 0&&ff.createElement("div",{className:`${t}-success-bg`,style:w})),_=m==="outer"&&d==="start",O=m==="outer"&&d==="end";return m==="outer"&&d==="center"?ff.createElement("div",{className:`${t}-layout-bottom`},R,l):ff.createElement("div",{className:`${t}-outer`,style:C},_&&l,R,O&&l)},z3=hK;var dR=E(N()),B3=E(we());var gK=e=>{let{size:t,steps:r,rounding:o=Math.round,percent:n=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=o(r*(n/100)),d=t??[t==="small"?2:14,i],[m,g]=Qs(d,"step",{steps:r,strokeWidth:i}),v=m/r,x=Array.from({length:r});for(let h=0;h{let{prefixCls:r,className:o,rootClassName:n,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:d,style:m,percentPosition:g={}}=e,v=vK(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:x="end",type:h="outer"}=g,p=Array.isArray(a)?a[0]:a,y=typeof a=="string"||Array.isArray(a)?a:void 0,S=Hr.useMemo(()=>{if(p){let H=typeof p=="string"?p:Object.values(p)[0];return new st(H).isLight()}return!1},[a]),b=Hr.useMemo(()=>{var H,k;let F=cf(e);return parseInt(F!==void 0?(H=F??0)===null||H===void 0?void 0:H.toString():(k=s??0)===null||k===void 0?void 0:k.toString(),10)},[s,e.success,e.successPercent]),w=Hr.useMemo(()=>!yK.includes(f)&&b>=100?"success":f||"normal",[f,b]),{getPrefixCls:C,direction:R,progress:_}=Hr.useContext(et),O=C("progress",r),[I,j,L]=k3(O),W=u==="line",z=W&&!i,$=Hr.useMemo(()=>{if(!c)return null;let H=cf(e),k,F=d||(V=>`${V}%`),U=W&&S&&h==="inner";return h==="inner"||d||w!=="exception"&&w!=="success"?k=F(ia(s),ia(H)):w==="exception"?k=W?Hr.createElement(Eu,null):Hr.createElement(Ru,null):w==="success"&&(k=W?Hr.createElement(G$,null):Hr.createElement(Uy,null)),Hr.createElement("span",{className:(0,pR.default)(`${O}-text`,{[`${O}-text-bright`]:U,[`${O}-text-${x}`]:z,[`${O}-text-${h}`]:z}),title:typeof k=="string"?k:void 0},k)},[c,s,b,w,u,O,d]),D;u==="line"?D=i?Hr.createElement(j3,Object.assign({},e,{strokeColor:y,prefixCls:O,steps:typeof i=="object"?i.count:i}),$):Hr.createElement(z3,Object.assign({},e,{strokeColor:p,prefixCls:O,direction:R,percentPosition:{align:x,type:h}}),$):(u==="circle"||u==="dashboard")&&(D=Hr.createElement(M3,Object.assign({},e,{strokeColor:p,prefixCls:O,progressStatus:w}),$));let M=(0,pR.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&Qs(l,"circle")[0]<=20,[`${O}-line`]:z,[`${O}-line-align-${x}`]:z,[`${O}-line-position-${h}`]:z,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:R==="rtl"},_?.className,o,n,j,L);return I(Hr.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_?.style),m),className:M,role:"progressbar","aria-valuenow":b,"aria-valuemin":0,"aria-valuemax":100},Ar(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))}),W3=xK;var V3=W3;var V0=E(N());var bK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},H3=bK;var SK=function(t,r){return V0.createElement(ct,Z({},t,{ref:r,icon:H3}))},CK=V0.forwardRef(SK),U3=CK;var H0=E(N());var wK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},G3=wK;var EK=function(t,r){return H0.createElement(ct,Z({},t,{ref:r,icon:G3}))},RK=H0.forwardRef(EK),q3=RK;var U0=E(N());var OK={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},K3=OK;var _K=function(t,r){return U0.createElement(ct,Z({},t,{ref:r,icon:K3}))},PK=U0.forwardRef(_K),X3=PK;var G0=E(N());var TK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Y3=TK;var NK=function(t,r){return G0.createElement(ct,Z({},t,{ref:r,icon:Y3}))},IK=G0.forwardRef(NK),Q3=IK;var q0=E(N());var $K={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},Z3=$K;var DK=function(t,r){return q0.createElement(ct,Z({},t,{ref:r,icon:Z3}))},AK=q0.forwardRef(DK),J3=AK;var MK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},e4=MK;var J0=E(N());var lr=E(N()),yR=E(Vi()),Q0=E(we());var X0=E(N());var o4=E(we());var Mp=E(N());var K0=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),o=e.name||"",n=e.type||"",i=n.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=o.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):n===s?!0:/^\w+$/.test(s)?(Kt(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function LK(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),o=new Error(r);return o.status=t.status,o.method=e.method,o.url=e.action,o}function t4(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function mR(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(n){var i=e.data[n];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(n,"[]"),a)});return}r.append(n,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(LK(e,t),t4(t)):e.onSuccess(t4(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(n){o[n]!==null&&t.setRequestHeader(n,o[n])}),t.send(r),{abort:function(){t.abort()}}}var kK=function(){var e=Jr(Pt().mark(function t(r,o){var n,i,a,s,l,c,u,f;return Pt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=Jr(Pt().mark(function v(x){return Pt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",new Promise(function(y){x.file(function(S){o(S)?(x.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=x.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),y(S)):y(null)})}));case 1:case"end":return p.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Jr(Pt().mark(function v(x){var h,p,y,S,b;return Pt().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:h=x.createReader(),p=[];case 2:return C.next=5,new Promise(function(R){h.readEntries(R,function(){return R([])})});case 5:if(y=C.sent,S=y.length,S){C.next=9;break}return C.abrupt("break",12);case 9:for(b=0;b{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${te(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${te(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, p${t}-text, p${t}-hint `]:{color:e.colorTextDisabled}}}}}},s4=WK;var VK=e=>{let{componentCls:t,iconCls:r,fontSize:o,lineHeight:n,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Cu()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},wi),{padding:`0 ${te(e.paddingXS)}`,lineHeight:n,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},l4=VK;var HK=e=>{let{componentCls:t}=e,r=new dt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=new dt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:r},[`${n}-leave`]:{animationName:o}}},{[`${t}-wrapper`]:Bl(e)},r,o]},c4=HK;var u4=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:o,uploadProgressOffset:n,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[` ${a}${a}-picture, ${a}${a}-picture-card, ${a}${a}-picture-circle `]:{[s]:{position:"relative",height:i(o).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},wi),{width:o,height:o,lineHeight:te(i(o).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:n,width:`calc(100% - ${te(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(o).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${Ts[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ts.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},f4=e=>{let{componentCls:t,iconCls:r,fontSizeLG:o,colorTextLightSolid:n,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper `]:Object.assign(Object.assign({},Cu()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${te(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${te(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${te(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${r}-eye, ${r}-download, ${r}-delete `]:{zIndex:10,width:o,margin:`0 ${te(e.marginXXS)}`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:n,"&:hover":{color:n},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${te(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${te(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var UK=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},d4=UK;var GK=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qt(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},qK=e=>({actionsColor:e.colorTextDescription}),p4=Rt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:o,controlHeightLG:n,calc:i}=e,a=Qe(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(o).equal(),uploadPicCardSize:i(n).mul(2.55).equal()});return[GK(a),s4(a),u4(a),f4(a),l4(a),c4(a),d4(a),Jw(a)]},qK);var kt=E(N());var vR=E(we());function Lp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function kp(e,t){let r=le(t),o=r.findIndex(n=>{let{uid:i}=n;return i===e.uid});return o===-1?r.push(e):r[o]=e,r}function Y0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(o=>o[r]===e[r])[0]}function m4(e,t){let r=e.uid!==void 0?"uid":"name",o=t.filter(n=>n[r]!==e[r]);return o.length===t.length?null:o}var KK=function(){let t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},h4=e=>e.indexOf("image/")===0,g4=e=>{if(e.type&&!e.thumbUrl)return h4(e.type);let t=e.thumbUrl||e.url||"",r=KK(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Zs=200;function v4(e){return new Promise(t=>{if(!e.type||!h4(e.type)){t("");return}let r=document.createElement("canvas");r.width=Zs,r.height=Zs,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Zs}px; height: ${Zs}px; z-index: 9999; display: none;`,document.body.appendChild(r);let o=r.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:i,height:a}=n,s=Zs,l=Zs,c=0,u=0;i>a?(l=a*(Zs/i),u=-(l-s)/2):(s=i*(Zs/a),c=-(s-l)/2),o.drawImage(n,c,u,s,l);let f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(n.src),t(f)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(n.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}var $t=E(N());var Js=E(we());var XK=$t.forwardRef((e,t)=>{let{prefixCls:r,className:o,style:n,locale:i,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:d,isImgUrl:m,showPreviewIcon:g,showRemoveIcon:v,showDownloadIcon:x,previewIcon:h,removeIcon:p,downloadIcon:y,extra:S,onPreview:b,onDownload:w,onClose:C}=e;var R,_;let{status:O}=s,[I,j]=$t.useState(O);$t.useEffect(()=>{O!=="removed"&&j(O)},[O]);let[L,W]=$t.useState(!1);$t.useEffect(()=>{let X=setTimeout(()=>{W(!0)},300);return()=>{clearTimeout(X)}},[]);let z=u(s),$=$t.createElement("div",{className:`${r}-icon`},z);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(I==="uploading"||!s.thumbUrl&&!s.url){let X=(0,Js.default)(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:I!=="uploading"});$=$t.createElement("div",{className:X},z)}else{let X=m?.(s)?$t.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):z,oe=(0,Js.default)(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:m&&!m(s)});$=$t.createElement("a",{className:oe,onClick:Y=>b(s,Y),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},X)}let D=(0,Js.default)(`${r}-list-item`,`${r}-list-item-${I}`),M=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,H=(typeof v=="function"?v(s):v)?f((typeof p=="function"?p(s):p)||$t.createElement(U3,null),()=>C(s),r,i.removeFile,!0):null,k=(typeof x=="function"?x(s):x)&&I==="done"?f((typeof y=="function"?y(s):y)||$t.createElement(q3,null),()=>w(s),r,i.downloadFile):null,F=a!=="picture-card"&&a!=="picture-circle"&&$t.createElement("span",{key:"download-delete",className:(0,Js.default)(`${r}-list-item-actions`,{picture:a==="picture"})},k,H),U=typeof S=="function"?S(s):S,V=U&&$t.createElement("span",{className:`${r}-list-item-extra`},U),A=(0,Js.default)(`${r}-list-item-name`),G=s.url?$t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:A,title:s.name},M,{href:s.url,onClick:X=>b(s,X)}),s.name,V):$t.createElement("span",{key:"view",className:A,onClick:X=>b(s,X),title:s.name},s.name,V),q=(typeof g=="function"?g(s):g)&&(s.url||s.thumbUrl)?$t.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:X=>b(s,X),title:i.previewFile},typeof h=="function"?h(s):h||$t.createElement(tf,null)):null,ne=(a==="picture-card"||a==="picture-circle")&&I!=="uploading"&&$t.createElement("span",{className:`${r}-list-item-actions`},q,I==="done"&&k,H),{getPrefixCls:ee}=$t.useContext(et),Q=ee(),ce=$t.createElement("div",{className:D},$,G,F,ne,L&&$t.createElement(Zr,{motionName:`${Q}-fade`,visible:I==="uploading",motionDeadline:2e3},X=>{let{className:oe}=X,Y="percent"in s?$t.createElement(V3,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return $t.createElement("div",{className:(0,Js.default)(`${r}-list-item-progress`,oe)},Y)})),re=s.response&&typeof s.response=="string"?s.response:((R=s.error)===null||R===void 0?void 0:R.statusText)||((_=s.error)===null||_===void 0?void 0:_.message)||i.uploadError,K=I==="error"?$t.createElement(Jl,{title:re,getPopupContainer:X=>X.parentNode},ce):ce;return $t.createElement("div",{className:(0,Js.default)(`${r}-list-item-container`,o),style:n,ref:t},d?d(K,s,l,{download:w.bind(null,s),preview:b.bind(null,s),remove:C.bind(null,s)}):K)}),y4=XK;var YK=(e,t)=>{let{listType:r="text",previewFile:o=v4,onPreview:n,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=g4,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:m=!0,showDownloadIcon:g=!1,removeIcon:v,previewIcon:x,downloadIcon:h,extra:p,progress:y={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:b=!0,itemRender:w,disabled:C}=e,R=SE(),[_,O]=kt.useState(!1),I=["picture-card","picture-circle"].includes(r);kt.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(V=>{!(V.originFileObj instanceof File||V.originFileObj instanceof Blob)||V.thumbUrl!==void 0||(V.thumbUrl="",o?.(V.originFileObj).then(A=>{V.thumbUrl=A||"",R()}))})},[r,f,o]),kt.useEffect(()=>{O(!0)},[]);let j=(V,A)=>{if(n)return A?.preventDefault(),n(V)},L=V=>{typeof i=="function"?i(V):V.url&&window.open(V.url)},W=V=>{a?.(V)},z=V=>{if(l)return l(V,r);let A=V.status==="uploading";if(r.startsWith("picture")){let G=r==="picture"?kt.createElement(Fl,null):s.uploading,q=c?.(V)?kt.createElement(J3,null):kt.createElement(X3,null);return A?G:q}return A?kt.createElement(Fl,null):kt.createElement(Q3,null)},$=(V,A,G,q,ne)=>{let ee={type:"text",size:"small",title:q,onClick:Q=>{var ce,re;A(),kt.isValidElement(V)&&((re=(ce=V.props).onClick)===null||re===void 0||re.call(ce,Q))},className:`${G}-list-item-action`};return ne&&(ee.disabled=C),kt.isValidElement(V)?kt.createElement(Yd,Object.assign({},ee,{icon:Wn(V,Object.assign(Object.assign({},V.props),{onClick:()=>{}}))})):kt.createElement(Yd,Object.assign({},ee),kt.createElement("span",null,V))};kt.useImperativeHandle(t,()=>({handlePreview:j,handleDownload:L}));let{getPrefixCls:D}=kt.useContext(et),M=D("upload",u),H=D(),k=(0,vR.default)(`${M}-list`,`${M}-list-${r}`),F=kt.useMemo(()=>Ar(aD(H),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[H]),U=Object.assign(Object.assign({},I?{}:F),{motionDeadline:2e3,motionName:`${M}-${I?"animate-inline":"animate"}`,keys:le(f.map(V=>({key:V.uid,file:V}))),motionAppear:_});return kt.createElement("div",{className:k},kt.createElement($w,Object.assign({},U,{component:!1}),V=>{let{key:A,file:G,className:q,style:ne}=V;return kt.createElement(y4,{key:A,locale:s,prefixCls:M,className:q,style:ne,file:G,items:f,progress:y,listType:r,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:m,showDownloadIcon:g,removeIcon:v,previewIcon:x,downloadIcon:h,extra:p,iconRender:z,actionIconRender:$,itemRender:w,onPreview:j,onDownload:L,onClose:W})}),S&&kt.createElement(Zr,Object.assign({},U,{visible:b,forceRender:!0}),V=>{let{className:A,style:G}=V;return Wn(S,q=>({className:(0,vR.default)(q.className,A),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:A?"none":void 0}),q.style)}))}))},QK=kt.forwardRef(YK),x4=QK;var ZK=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(o.next(u))}catch(f){a(f)}}function l(u){try{c(o.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):n(u.value).then(s,l)}c((o=o.apply(e,t||[])).next())})},df=`__LIST_IGNORE_${Date.now()}__`,JK=(e,t)=>{let{fileList:r,defaultFileList:o,onRemove:n,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:d,locale:m,iconRender:g,isImageUrl:v,progress:x,prefixCls:h,className:p,type:y="select",children:S,style:b,itemRender:w,maxCount:C,data:R={},multiple:_=!1,hasControlInside:O=!0,action:I="",accept:j="",supportServerRender:L=!0,rootClassName:W}=e,z=lr.useContext(Qr),$=d??z,[D,M]=zt(o||[],{value:r,postState:ae=>ae??[]}),[H,k]=lr.useState("drop"),F=lr.useRef(null),U=lr.useRef(null);lr.useMemo(()=>{let ae=Date.now();(r||[]).forEach((me,ze)=>{!me.uid&&!Object.isFrozen(me)&&(me.uid=`__AUTO__${ae}_${ze}__`)})},[r]);let V=(ae,me,ze)=>{let be=le(me),He=!1;C===1?be=be.slice(-1):C&&(He=be.length>C,be=be.slice(0,C)),(0,yR.flushSync)(()=>{M(be)});let Ue={file:ae,fileList:be};ze&&(Ue.event=ze),(!He||ae.status==="removed"||be.some(wt=>wt.uid===ae.uid))&&(0,yR.flushSync)(()=>{c?.(Ue)})},A=(ae,me)=>ZK(void 0,void 0,void 0,function*(){let{beforeUpload:ze,transformFile:be}=e,He=ae;if(ze){let Ue=yield ze(ae,me);if(Ue===!1)return!1;if(delete ae[df],Ue===df)return Object.defineProperty(ae,df,{value:!0,configurable:!0}),!1;typeof Ue=="object"&&Ue&&(He=Ue)}return be&&(He=yield be(He)),He}),G=ae=>{let me=ae.filter(He=>!He.file[df]);if(!me.length)return;let ze=me.map(He=>Lp(He.file)),be=le(D);ze.forEach(He=>{be=kp(He,be)}),ze.forEach((He,Ue)=>{let wt=He;if(me[Ue].parsedFile)He.status="uploading";else{let{originFileObj:_t}=He,Ht;try{Ht=new File([_t],_t.name,{type:_t.type})}catch{Ht=new Blob([_t],{type:_t.type}),Ht.name=_t.name,Ht.lastModifiedDate=new Date,Ht.lastModified=new Date().getTime()}Ht.uid=He.uid,wt=Ht}V(wt,be)})},q=(ae,me,ze)=>{try{typeof ae=="string"&&(ae=JSON.parse(ae))}catch{}if(!Y0(me,D))return;let be=Lp(me);be.status="done",be.percent=100,be.response=ae,be.xhr=ze;let He=kp(be,D);V(be,He)},ne=(ae,me)=>{if(!Y0(me,D))return;let ze=Lp(me);ze.status="uploading",ze.percent=ae.percent;let be=kp(ze,D);V(ze,be,ae)},ee=(ae,me,ze)=>{if(!Y0(ze,D))return;let be=Lp(ze);be.error=ae,be.response=me,be.status="error";let He=kp(be,D);V(be,He)},Q=ae=>{let me;Promise.resolve(typeof n=="function"?n(ae):n).then(ze=>{var be;if(ze===!1)return;let He=m4(ae,D);He&&(me=Object.assign(Object.assign({},ae),{status:"removed"}),D?.forEach(Ue=>{let wt=me.uid!==void 0?"uid":"name";Ue[wt]===me[wt]&&!Object.isFrozen(Ue)&&(Ue.status="removed")}),(be=F.current)===null||be===void 0||be.abort(me),V(me,He))})},ce=ae=>{k(ae.type),ae.type==="drop"&&u?.(ae)};lr.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:q,onProgress:ne,onError:ee,fileList:D,upload:F.current,nativeElement:U.current}));let{getPrefixCls:re,direction:K,upload:X}=lr.useContext(et),oe=re("upload",h),Y=Object.assign(Object.assign({onBatchStart:G,onError:ee,onProgress:ne,onSuccess:q},e),{data:R,multiple:_,action:I,accept:j,supportServerRender:L,prefixCls:oe,disabled:$,beforeUpload:A,onChange:void 0,hasControlInside:O});delete Y.className,delete Y.style,(!S||$)&&delete Y.id;let J=`${oe}-wrapper`,[se,ue,de]=p4(oe,J),[ye]=Si("Upload",bi.Upload),{showRemoveIcon:xe,showPreviewIcon:Pe,showDownloadIcon:fe,removeIcon:pe,previewIcon:Ae,downloadIcon:je,extra:Xe}=typeof i=="boolean"?{}:i,Le=typeof xe>"u"?!$:xe,Ie=(ae,me)=>i?lr.createElement(x4,{prefixCls:oe,listType:a,items:D,previewFile:f,onPreview:s,onDownload:l,onRemove:Q,showRemoveIcon:Le,showPreviewIcon:Pe,showDownloadIcon:fe,removeIcon:pe,previewIcon:Ae,downloadIcon:je,iconRender:g,extra:Xe,locale:Object.assign(Object.assign({},ye),m),isImageUrl:v,progress:x,appendAction:ae,appendActionVisible:me,itemRender:w,disabled:$}):ae,Ee=(0,Q0.default)(J,p,W,ue,de,X?.className,{[`${oe}-rtl`]:K==="rtl",[`${oe}-picture-card-wrapper`]:a==="picture-card",[`${oe}-picture-circle-wrapper`]:a==="picture-circle"}),Ke=Object.assign(Object.assign({},X?.style),b);if(y==="drag"){let ae=(0,Q0.default)(ue,oe,`${oe}-drag`,{[`${oe}-drag-uploading`]:D.some(me=>me.status==="uploading"),[`${oe}-drag-hover`]:H==="dragover",[`${oe}-disabled`]:$,[`${oe}-rtl`]:K==="rtl"});return se(lr.createElement("span",{className:Ee,ref:U},lr.createElement("div",{className:ae,style:Ke,onDrop:ce,onDragOver:ce,onDragLeave:ce},lr.createElement(gR,Object.assign({},Y,{ref:F,className:`${oe}-btn`}),lr.createElement("div",{className:`${oe}-drag-container`},S))),Ie()))}let Je=(0,Q0.default)(oe,`${oe}-select`,{[`${oe}-disabled`]:$,[`${oe}-hidden`]:!S}),We=lr.createElement("div",{className:Je},lr.createElement(gR,Object.assign({},Y,{ref:F})));return se(a==="picture-card"||a==="picture-circle"?lr.createElement("span",{className:Ee,ref:U},Ie(We,!!S)):lr.createElement("span",{className:Ee,ref:U},We,Ie()))},eX=lr.forwardRef(JK),Z0=eX;var tX=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{var{style:r,height:o,hasControlInside:n=!1}=e,i=tX(e,["style","height","hasControlInside"]);return J0.createElement(Z0,Object.assign({ref:t,hasControlInside:n},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))}),b4=rX;var xR=Z0;xR.Dragger=b4;xR.LIST_IGNORE=df;var bR=xR;var S4=E(N(),1);function el(e){return(0,S4.useMemo)(()=>tu(e),[e])}var w4=E(Nt(),1),C4=({inputMin:e,inputMax:t,inputStep:r,value:o=0,uiWeight:n=1,onValueChange:i})=>{let a=el(n||12),s=c=>{if(c!==null){let u=+c.toFixed(3);i(u)}},l=+o.toFixed(3);return(0,w4.jsx)(zE,{style:{width:"100%",...a},min:e,max:t,step:r,value:l,onChange:s,controls:!1})};var R4=E(Nt(),1),E4=({onSelectUpdate:e,options:t,value:r,uiWeight:o})=>{let n=a=>{let s=t.indexOf(a);e(a,s)},i=el(o||12);return(0,R4.jsx)(gp,{value:r,options:t.map(a=>({value:a,label:a})),style:{...i},onSelect:n,placeholder:ge("select..."),showSearch:!0,filterOption:(a,s)=>(s?.label??"").toLowerCase().includes(a.toLowerCase())})};var _4=E(Nt(),1),O4=({value:e,name:t,onValueChange:r,uiWeight:o})=>{let n=a=>{r(a.target.checked)},i=el(o||12);return(0,_4.jsx)(DE,{checked:!!e,onChange:n,style:{...i},children:t||""})};var SR=E(Nt(),1),{TextArea:oX}=Np,P4=({value:e="",onValueChange:t,uiWeight:r})=>{let o=el(r||12);return(0,SR.jsx)("div",{className:"widget-container",style:o,children:(0,SR.jsx)(oX,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var Fp=E(N(),1);var ex=E(Nt(),1);function T4({title:e,onTitleChange:t}){let[r,o]=(0,Fp.useState)(!1),[n,i]=(0,Fp.useState)(e);(0,Fp.useEffect)(()=>{i(e)},[e]);let a=()=>{o(!0)};return r?(0,ex.jsx)(Np,{autoFocus:!0,value:n,onChange:u=>{i(u.target.value)},onBlur:()=>{o(!1),n!==e&&t&&t(n)},onKeyDown:u=>{u.key==="Enter"?(o(!1),n!==e&&t&&t(n)):u.key==="Escape"&&(o(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,ex.jsx)(Jl,{title:ge("click to edit"),children:(0,ex.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:n})})}var N4=E(N()),nX=(0,N4.createContext)({}),tx=nX;var uc=E(N()),E6=E(we());var I4={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};var no=Math.round;function CR(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)o[n]=t(o[n]||0,r[n]||"",n);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}var $4=(e,t,r)=>r===0?e:e/100;function zp(e,t){let r=t||255;return e>r?r:e<0?0:e}var lc=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let i=function(a){return n.startsWith(a)};var o=i;let n=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(i("rgb"))this.fromRgbString(n);else if(i("hsl"))this.fromHslString(n);else if(i("hsv")||i("hsb"))this.fromHsvString(n);else{let a=I4[n.toLowerCase()];a&&this.fromHexString(parseInt(a,36).toString(16).padStart(6,"0"))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=zp(t.r),this.g=zp(t.g),this.b=zp(t.b),this.a=typeof t.a=="number"?zp(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),o=t(this.g),n=t(this.b);return .2126*r+.7152*o+.0722*n}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=no(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),o=this.getSaturation(),n=this.getLightness()-t/100;return n<0&&(n=0),this._c({h:r,s:o,l:n,a:this.a})}lighten(t=10){let r=this.getHue(),o=this.getSaturation(),n=this.getLightness()+t/100;return n>1&&(n=1),this._c({h:r,s:o,l:n,a:this.a})}mix(t,r=50){let o=this._c(t),n=r/100,i=s=>(o[s]-this[s])*n+this[s],a={r:no(i("r")),g:no(i("g")),b:no(i("b")),a:no(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),o=this.a+r.a*(1-this.a),n=i=>no((this[i]*this.a+r[i]*r.a*(1-this.a))/o);return this._c({r:n("r"),g:n("g"),b:n("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;let n=(this.b||0).toString(16);if(t+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=no(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=no(this.getSaturation()*100),o=no(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${o}%,${this.a})`:`hsl(${t},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,o){let n=this.clone();return n[t]=zp(r,o),n}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function o(n,i){return parseInt(r[n]+r[i||n],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:t,s:r,l:o,a:n}){if(this._h=t%360,this._s=r,this._l=o,this.a=typeof n=="number"?n:1,r<=0){let d=no(o*255);this.r=d,this.g=d,this.b=d}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*o-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=o-c/2;this.r=no((i+f)*255),this.g=no((a+f)*255),this.b=no((s+f)*255)}fromHsv({h:t,s:r,v:o,a:n}){this._h=t%360,this._s=r,this._v=o,this.a=typeof n=="number"?n:1;let i=no(o*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=no(o*(1-r)*255),u=no(o*(1-r*l)*255),f=no(o*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=CR(t,$4);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=CR(t,$4);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=CR(t,(o,n)=>n.includes("%")?no(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var rx=2,D4=.16,iX=.05,aX=.05,sX=.15,k4=5,F4=4,lX=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function A4(e,t,r){let o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-rx*t:Math.round(e.h)+rx*t:o=r?Math.round(e.h)+rx*t:Math.round(e.h)-rx*t,o<0?o+=360:o>=360&&(o-=360),o}function M4(e,t,r){if(e.h===0&&e.s===0)return e.s;let o;return r?o=e.s-D4*t:t===F4?o=e.s+D4:o=e.s+iX*t,o>1&&(o=1),r&&t===k4&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function L4(e,t,r){let o;return r?o=e.v+aX*t:o=e.v-sX*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function ox(e,t={}){let r=[],o=new lc(e),n=o.toHsv();for(let i=k4;i>0;i-=1){let a=new lc({h:A4(n,i,!0),s:M4(n,i,!0),v:L4(n,i,!0)});r.push(a)}r.push(o);for(let i=1;i<=F4;i+=1){let a=new lc({h:A4(n,i),s:M4(n,i),v:L4(n,i)});r.push(a)}return t.theme==="dark"?lX.map(({index:i,amount:a})=>new lc(t.backgroundColor||"#141414").mix(r[i],a).toHexString()):r.map(i=>i.toHexString())}var z4=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];z4.primary=z4[5];var B4=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];B4.primary=B4[5];var j4=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];j4.primary=j4[5];var W4=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];W4.primary=W4[5];var V4=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];V4.primary=V4[5];var H4=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];H4.primary=H4[5];var U4=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];U4.primary=U4[5];var G4=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];G4.primary=G4[5];var nx=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];nx.primary=nx[5];var q4=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];q4.primary=q4[5];var K4=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];K4.primary=K4[5];var X4=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];X4.primary=X4[5];var Y4=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Y4.primary=Y4[5];var Q4=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Q4.primary=Q4[5];var Z4=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Z4.primary=Z4[5];var J4=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];J4.primary=J4[5];var e6=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];e6.primary=e6[5];var t6=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];t6.primary=t6[5];var r6=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];r6.primary=r6[5];var o6=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];o6.primary=o6[5];var n6=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];n6.primary=n6[5];var i6=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];i6.primary=i6[5];var a6=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];a6.primary=a6[5];var s6=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];s6.primary=s6[5];var l6=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];l6.primary=l6[5];var c6=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];c6.primary=c6[5];var C6=E(N());function wR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ER(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}var u6="data-rc-order",f6="data-rc-priority",cX="rc-util-key",RR=new Map;function d6({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:cX}function OR(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function uX(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function _R(e){return Array.from((RR.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function p6(e,t={}){if(!wR())return null;let{csp:r,prepend:o,priority:n=0}=t,i=uX(o),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(u6,i),a&&n&&s.setAttribute(f6,`${n}`),r?.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;let l=OR(t),{firstChild:c}=l;if(o){if(a){let u=(t.styles||_R(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(u6)))return!1;let d=Number(f.getAttribute(f6)||0);return n>=d});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function fX(e,t={}){let{styles:r}=t;return r||=_R(OR(t)),r.find(o=>o.getAttribute(d6(t))===e)}function dX(e,t){let r=RR.get(e);if(!r||!ER(document,r)){let o=p6("",t),{parentNode:n}=o;RR.set(e,n),e.removeChild(o)}}function m6(e,t,r={}){let o=OR(r),n=_R(o),i={...r,styles:n};dX(o,i);let a=fX(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;let s=p6(e,i);return s.setAttribute(d6(i),t),s}function h6(e){return e?.getRootNode?.()}function pX(e){return h6(e)instanceof ShadowRoot}function g6(e){return pX(e)?h6(e):null}var PR={},mX=[],hX=e=>{mX.push(e)};function gX(e,t){}function vX(e,t){}function yX(){PR={}}function v6(e,t,r){!t&&!PR[r]&&(e(!1,r),PR[r]=!0)}function ix(e,t){v6(gX,e,t)}function xX(e,t){v6(vX,e,t)}ix.preMessage=hX;ix.resetWarned=yX;ix.noteOnce=xX;var y6=ix;var cc=E(N());function bX(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}function b6(e,t){y6(e,`[@ant-design/icons] ${t}`)}function TR(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function x6(e={}){return Object.keys(e).reduce((t,r)=>{let o=e[r];switch(r){case"class":t.className=o,delete t.class;break;default:delete t[r],t[bX(r)]=o}return t},{})}function ax(e,t,r){return r?cc.default.createElement(e.tag,{key:t,...x6(e.attrs),...r},(e.children||[]).map((o,n)=>ax(o,`${t}-${e.tag}-${n}`))):cc.default.createElement(e.tag,{key:t,...x6(e.attrs)},(e.children||[]).map((o,n)=>ax(o,`${t}-${e.tag}-${n}`)))}function NR(e){return ox(e)[0]}function sx(e){return e?Array.isArray(e)?e:[e]:[]}var SX=` .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); } } `,S6=e=>{let{csp:t,prefixCls:r,layer:o}=(0,cc.useContext)(tx),n=SX;r&&(n=n.replace(/anticon/g,r)),o&&(n=`@layer ${o} { ${n} }`),(0,cc.useEffect)(()=>{let i=e.current,a=g6(i);m6(n,"@ant-design-icons",{prepend:!o,csp:t,attachTo:a})},[])};var Bp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function CX({primaryColor:e,secondaryColor:t}){Bp.primaryColor=e,Bp.secondaryColor=t||NR(e),Bp.calculated=!!t}function wX(){return{...Bp}}var lx=e=>{let{icon:t,className:r,onClick:o,style:n,primaryColor:i,secondaryColor:a,...s}=e,l=C6.useRef(),c=Bp;if(i&&(c={primaryColor:i,secondaryColor:a||NR(i)}),S6(l),b6(TR(t),`icon should be icon definiton, but got ${t}`),!TR(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),ax(u.icon,`svg-${u.name}`,{className:r,onClick:o,style:n,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};lx.displayName="IconReact";lx.getTwoToneColors=wX;lx.setTwoToneColors=CX;var jp=lx;function IR(e){let[t,r]=sx(e);return jp.setTwoToneColors({primaryColor:t,secondaryColor:r})}function w6(){let e=jp.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function $R(){return $R=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:r,icon:o,spin:n,rotate:i,tabIndex:a,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:f}=uc.useContext(tx),d=(0,E6.default)(f,u,{[`${u}-${o.name}`]:!!o.name,[`${u}-spin`]:!!n||o.name==="loading"},r),m=a;m===void 0&&s&&(m=-1);let g=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[v,x]=sx(l);return uc.createElement("span",$R({role:"img","aria-label":o.name},c,{ref:t,tabIndex:m,onClick:s,className:d}),uc.createElement(jp,{icon:o,primaryColor:v,secondaryColor:x,style:g}))});cx.displayName="AntdIcon";cx.getTwoToneColor=w6;cx.setTwoToneColor=IR;var ux=cx;var fx=E(N());function DR(){return DR=Object.assign?Object.assign.bind():function(e){for(var t=1;tfx.createElement(ux,DR({},e,{ref:t,icon:Av})),RX=fx.forwardRef(EX),AR=RX;var dx=E(N());function MR(){return MR=Object.assign?Object.assign.bind():function(e){for(var t=1;tdx.createElement(ux,MR({},e,{ref:t,icon:e4})),_X=dx.forwardRef(OX),LR=_X;var Wa=E(Nt(),1),R6=({value:e,onValueChange:t,options:r})=>{let o=n=>{if(n.file.status==="done"){let i=n.file.response.name;t?.(i)}};return(0,Wa.jsxs)(w0,{gap:5,align:"stretch",vertical:!0,children:[(0,Wa.jsxs)(w0,{gap:5,children:[(0,Wa.jsx)(gp,{style:{flex:1},value:e,onChange:n=>{t?.(n)},options:r.map(n=>({label:n.split("/").pop(),value:n}))}),(0,Wa.jsx)(bR,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:n=>({image:n}),children:(0,Wa.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Wa.jsx)(LR,{})," ",ge("upload")]})})]}),e&&(0,Wa.jsx)(eR,{src:`./api/view?filename=${e}&type=input&subfolder=&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain"}})]})};var aa=E(Nt(),1),O6=window.comfyAPI.api.api,pf=class extends _6.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},formDatas:[]};eventListeners=[];constructor(t){super(t);let r=(a,s)=>{O6.addEventListener(a,s),this.eventListeners.push({event:a,handler:s})};r("progress",({detail:a})=>{if(!a||isNaN(a.value/a.max))return;let s=Math.round(a.value/a.max*100);this.setState({comfyStatus:{...this.state.comfyStatus,progress:s}})}),r("status",a=>{a.detail?.exec_info&&this.setState({comfyStatus:{...this.state.comfyStatus,queueSize:a.detail.exec_info.queue_remaining}})}),r("execution_error",({detail:a})=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:a.exception_message,executingNodeTitle:""}})}),r("execution_start",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:"",progress:0,executingNodeTitle:""}})}),r("executing",a=>{let s=a.detail,l=app.graph.nodes.find(c=>c.id==s);l&&this.setState({comfyStatus:{...this.state.comfyStatus,executingNodeTitle:l.title}})}),r("execution_success",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("execution_interrupted",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("graphChanged",()=>{this.setState({formDatas:Nn(app.graph)})});let o="",n=()=>{requestAnimationFrame(n);let s=(app.workflowManager||app.extensionManager.workflow).activeWorkflow?.path;s!=o&&(o=s,app.graph&&this.setState({formDatas:Nn(app.graph)}))};requestAnimationFrame(n);let i=Nn(app.graph);this.state.formDatas=i}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{O6.removeEventListener(t,r)})}render(){let t={formDatas:this.state.formDatas,onWidgetChange:async(o,n,i,a)=>{let s=app.graph.nodes.find(l=>l.id==o);s&&gm(s,n,i)},onWidgetRender:(o,n,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return o.result.push((0,aa.jsx)(C4,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,value:parseFloat(i.value),onValueChange:u=>{t.onWidgetChange(n.id,a,u,n)}},a)),!0}else{if(i.outputType==="combo")return o.result.push((0,aa.jsx)(E4,{uiWeight:i.uiWeight||12,options:i.options?.values||[],onSelectUpdate:s=>{t.onWidgetChange(n.id,a,s,n)},value:i.value},a)),!0;if(i.outputType==="toggle")return o.result.push((0,aa.jsx)(O4,{uiWeight:i.uiWeight||12,name:i.name,value:i.value,onValueChange:s=>{t.onWidgetChange(n.id,a,s,n)}},a)),!0;if(i.outputType==="string"||i.outputType==="customtext")return o.result.push((0,aa.jsx)(P4,{uiWeight:i.uiWeight||12,value:i.value,onValueChange:s=>{t.onWidgetChange(n.id,a,s,n)}},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return o.result.push((0,aa.jsx)("p",{children:ge("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return o.result.push((0,aa.jsx)(R6,{uiWeight:i.uiWeight||12,value:i.value,options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(n.id,a,s,n)}},a)),!0}return!0},onTitleRender:(o,n)=>(0,aa.jsx)(T4,{title:o,onTitleChange:i=>{In.instance.setNodeTitle({node_id:n.id,title:i})}})},r=12;return(0,aa.jsx)(Na,{theme:{components:{Input:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"},Select:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)",colorBgElevated:"var(--p-form-field-background)",colorTextDescription:"var(--p-form-field-color)",controlItemBgActive:"var(--p-form-field-background)",controlItemBgHover:"var(--p-form-field-border-color)"},Checkbox:{fontSize:r,colorText:"var(--p-form-field-color)"},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)"},InputNumber:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"}}},children:(0,aa.jsx)(mC,{...t})})}};var Oo=E(Nt(),1),P6=document.createElement("style");P6.innerHTML=SN;document.head.appendChild(P6);function kR({onClose:e}){let[t,r]=(0,Wp.useState)("1"),[o,n]=(0,Wp.useState)(0);return(0,Wp.useEffect)(()=>{let i=document.getElementById("graph-canvas"),a=0,s,l=()=>{if(a++,a%3===0&&i){let c=document.querySelector(".side-bar-panel");c&&c.style.display!=="none"?n(c.clientWidth):n(0)}s=requestAnimationFrame(l)};return s=requestAnimationFrame(l),()=>{cancelAnimationFrame(s)}},[]),(0,Oo.jsx)(Na,{theme:{token:{colorText:"var(--fg-color)",colorBgContainer:"var(--comfy-input-bg)",colorBgElevated:"var(--comfy-input-bg)",colorFillSecondary:"var(--comfy-input-bg)",controlItemBgHover:"var(--comfy-input-bg)",colorBgTextHover:"var(--comfy-input-bg)",colorBorder:"var(--p-inputtext-border-color)"}},children:(0,Oo.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,Oo.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Oo.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,Oo.jsx)("button",{onClick:()=>r("1"),className:t==="1"?"active":"",children:ge("Simplify Workflow")}),(0,Oo.jsx)("button",{onClick:()=>r("2"),className:t==="2"?"active":"",children:ge("Photoshop")})]}),(0,Oo.jsx)("span",{children:"Powered by SDPPP"}),(0,Oo.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,Oo.jsx)(AR,{})})]}),(0,Oo.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Oo.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:t==="1"?"block":"none"},children:(0,Oo.jsx)(pf,{})}),(0,Oo.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:t==="2"?"block":"none"},children:(0,Oo.jsx)(ON,{})})]})]})})}var mf=E(Nt(),1);function FR({onMaximize:e}){return(0,mf.jsxs)("div",{className:"sdppp-side-container",children:[(0,mf.jsx)("div",{className:"sdppp-side-header",children:(0,mf.jsx)("button",{className:"pi pi-window-maximize",onClick:e})}),(0,mf.jsx)(pf,{})]})}var T6=null,PX=null;async function jR(e){if(!T6){let t=document.createElement("div");t.id="sdppp-popup-root",t.style.display="none",document.getElementById("graph-canvas-container")?.prepend(t),e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:r=>{PX||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,zR.createRoot)(r).render((0,BR.createElement)(FR,{onMaximize:()=>{T6||(0,zR.createRoot)(t).render((0,BR.createElement)(kR,{onClose:()=>{t.style.display="none"}})),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}))),t.style.display="none"}})}}async function TX(e,t,r){t.addEventListener("progress",({detail:c})=>{if(!c||isNaN(c.value/c.max))return;let u=Math.round(c.value/c.max*100);ht.setProgress(u)}),t.addEventListener("status",c=>{c.detail?.exec_info&&ht.setQueueSize(c.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:c})=>{ht.setLastError(c.exception_message,c.node_id),ht.setExecutingNodeTitle("")});let o=[];t.addEventListener("execution_start",({detail:c})=>{if(ht.setLastError("",0),ht.setProgress(0),ht.setExecutingNodeTitle(""),o.length){let u=o.shift();u&&n.set(c.prompt_id,u)}}),t.addEventListener("executing",c=>{let u=c.detail,f=graph.nodes.find(d=>d.id==u);f&&ht.setExecutingNodeTitle(f.title)}),t.addEventListener("execution_success",c=>{ht.setProgress(0),ht.setExecutingNodeTitle(""),ll.get(c.detail.prompt_id)&&ll.delete(c.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{ht.setProgress(0),ht.setExecutingNodeTitle("")}),t.addEventListener("graphChanged",()=>{ht.setCurrentForm(Nn(e.graph))});let n=new Map;t.addEventListener("executed",c=>{if(c.detail.output&&Array.isArray(c.detail.output.images)&&c.detail.output.images.length>0){let u=null;if(ll.get(c.detail.prompt_id)?u=ll.get(c.detail.prompt_id):u=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!u)return;e.graph.nodes.find(f=>f.type=="Send Images To Photoshop")||s?.sendImage(u,{document_identify:Ir.getSpecialDocumentForPreview(),layer_identifies:c.detail.output.images.map(()=>Ir.getSpecialLayerForSend()[0]),boundaries:c.detail.output.images.map(()=>""),image_urls:c.detail.output.images.map(f=>location.origin+"/api/view?type="+f.type+"&filename="+f.filename)})}});let i="";function a(){requestAnimationFrame(a);let u=(e.workflowManager||e.extensionManager.workflow).activeWorkflow?.path;if(u===i)return;i=u;let f=Nn(e.graph);ht.setCurrentForm(f);let d=JSON.stringify(f);setTimeout(()=>{let m=Nn(e.graph);JSON.stringify(m)!==d&&ht.setCurrentForm(m)},800)}requestAnimationFrame(a),jR(e);var s=new In;s.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){ht.setCurrentForm(Nn(e.graph))},async beforeRegisterNodeDef(c,u,f){try{jO(c,u)}catch(d){Vp.push(d.stack||d.message||d)}}})}var Vp=[];(async function(){if(!(typeof gradioApp<"u")){try{let e=window.comfyAPI?.app?.app,t=window.comfyAPI?.ui?.$el,r=window.comfyAPI?.api?.api;if(!e||!r||!t)throw new Error("comfyAPI is not initialized, maybe comfyUI is too old");await QR(),await TX(e,r,t),import("./sdppp-custom.js").then(o=>{o.default(sa)})}catch(e){Vp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Vp.length&&(console.error(Vp[0]),alert(`sd-ppp init failed: `+Vp.join(` `)))}})(); /*! Bundled license information: react/cjs/react.production.min.js: (** * @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. *) scheduler/cjs/scheduler.production.min.js: (** * @license React * scheduler.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. *) react-dom/cjs/react-dom.production.min.js: (** * @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. *) react/cjs/react-jsx-runtime.production.min.js: (** * @license React * react-jsx-runtime.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. *) classnames/index.js: (*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames *) react-is/cjs/react-is.production.min.js: (** * @license React * react-is.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. *) fast-json-patch/module/helpers.mjs: (*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed *) fast-json-patch/module/duplex.mjs: (*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2021 Joachim Wester * MIT license *) @babel/runtime/helpers/esm/regeneratorRuntime.js: (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *) */