625 lines
799 KiB
JavaScript
625 lines
799 KiB
JavaScript
var L5=Object.create;var Qp=Object.defineProperty;var QR=Object.getOwnPropertyDescriptor;var k5=Object.getOwnPropertyNames;var F5=Object.getPrototypeOf,z5=Object.prototype.hasOwnProperty;var Sx=(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 Nn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Cx=(e,t)=>{for(var r in t)Qp(e,r,{get:t[r],enumerable:!0})},B5=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of k5(t))!z5.call(e,n)&&n!==r&&Qp(e,n,{get:()=>t[n],enumerable:!(o=QR(t,n))||o.enumerable});return e};var E=(e,t,r)=>(r=e!=null?L5(F5(e)):{},B5(t||!e||!e.__esModule?Qp(r,"default",{value:e,enumerable:!0}):r,e));var Nr=(e,t,r,o)=>{for(var n=o>1?void 0:o?QR(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&&Qp(t,r,n),n};var iO=Nn(bt=>{"use strict";var $f=Symbol.for("react.element"),E6=Symbol.for("react.portal"),R6=Symbol.for("react.fragment"),_6=Symbol.for("react.strict_mode"),O6=Symbol.for("react.profiler"),P6=Symbol.for("react.provider"),T6=Symbol.for("react.context"),N6=Symbol.for("react.forward_ref"),I6=Symbol.for("react.suspense"),$6=Symbol.for("react.memo"),D6=Symbol.for("react.lazy"),K_=Symbol.iterator;function M6(e){return e===null||typeof e!="object"?null:(e=K_&&e[K_]||e["@@iterator"],typeof e=="function"?e:null)}var Q_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z_=Object.assign,J_={};function _c(e,t,r){this.props=e,this.context=t,this.refs=J_,this.updater=r||Q_}_c.prototype.isReactComponent={};_c.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")};_c.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eO(){}eO.prototype=_c.prototype;function eb(e,t,r){this.props=e,this.context=t,this.refs=J_,this.updater=r||Q_}var tb=eb.prototype=new eO;tb.constructor=eb;Z_(tb,_c.prototype);tb.isPureReactComponent=!0;var X_=Array.isArray,tO=Object.prototype.hasOwnProperty,rb={current:null},rO={key:!0,ref:!0,__self:!0,__source:!0};function oO(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)tO.call(t,o)&&!rO.hasOwnProperty(o)&&(n[o]=t[o]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)n[o]===void 0&&(n[o]=s[o]);return{$$typeof:$f,type:e,key:i,ref:a,props:n,_owner:rb.current}}function A6(e,t){return{$$typeof:$f,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ob(e){return typeof e=="object"&&e!==null&&e.$$typeof===$f}function L6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Y_=/\/+/g;function Jx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?L6(""+e.key):t.toString(36)}function Dm(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case $f:case E6:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+Jx(a,0):o,X_(n)?(r="",e!=null&&(r=e.replace(Y_,"$&/")+"/"),Dm(n,t,r,"",function(c){return c})):n!=null&&(ob(n)&&(n=A6(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(Y_,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",X_(e))for(var s=0;s<e.length;s++){i=e[s];var l=o+Jx(i,s);a+=Dm(i,t,r,l,n)}else if(l=M6(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=o+Jx(i,s++),a+=Dm(i,t,r,l,n);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function $m(e,t,r){if(e==null)return e;var o=[],n=0;return Dm(e,o,"","",function(i){return t.call(r,i,n++)}),o}function k6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $o={current:null},Mm={transition:null},F6={ReactCurrentDispatcher:$o,ReactCurrentBatchConfig:Mm,ReactCurrentOwner:rb};function nO(){throw Error("act(...) is not supported in production builds of React.")}bt.Children={map:$m,forEach:function(e,t,r){$m(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return $m(e,function(){t++}),t},toArray:function(e){return $m(e,function(t){return t})||[]},only:function(e){if(!ob(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};bt.Component=_c;bt.Fragment=R6;bt.Profiler=O6;bt.PureComponent=eb;bt.StrictMode=_6;bt.Suspense=I6;bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F6;bt.act=nO;bt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=Z_({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=rb.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)tO.call(t,l)&&!rO.hasOwnProperty(l)&&(o[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:$f,type:e.type,key:n,ref:i,props:o,_owner:a}};bt.createContext=function(e){return e={$$typeof:T6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:P6,_context:e},e.Consumer=e};bt.createElement=oO;bt.createFactory=function(e){var t=oO.bind(null,e);return t.type=e,t};bt.createRef=function(){return{current:null}};bt.forwardRef=function(e){return{$$typeof:N6,render:e}};bt.isValidElement=ob;bt.lazy=function(e){return{$$typeof:D6,_payload:{_status:-1,_result:e},_init:k6}};bt.memo=function(e,t){return{$$typeof:$6,type:e,compare:t===void 0?null:t}};bt.startTransition=function(e){var t=Mm.transition;Mm.transition={};try{e()}finally{Mm.transition=t}};bt.unstable_act=nO;bt.useCallback=function(e,t){return $o.current.useCallback(e,t)};bt.useContext=function(e){return $o.current.useContext(e)};bt.useDebugValue=function(){};bt.useDeferredValue=function(e){return $o.current.useDeferredValue(e)};bt.useEffect=function(e,t){return $o.current.useEffect(e,t)};bt.useId=function(){return $o.current.useId()};bt.useImperativeHandle=function(e,t,r){return $o.current.useImperativeHandle(e,t,r)};bt.useInsertionEffect=function(e,t){return $o.current.useInsertionEffect(e,t)};bt.useLayoutEffect=function(e,t){return $o.current.useLayoutEffect(e,t)};bt.useMemo=function(e,t){return $o.current.useMemo(e,t)};bt.useReducer=function(e,t,r){return $o.current.useReducer(e,t,r)};bt.useRef=function(e){return $o.current.useRef(e)};bt.useState=function(e){return $o.current.useState(e)};bt.useSyncExternalStore=function(e,t,r){return $o.current.useSyncExternalStore(e,t,r)};bt.useTransition=function(){return $o.current.useTransition()};bt.version="18.3.1"});var N=Nn((ree,aO)=>{"use strict";aO.exports=iO()});var gO=Nn(Gt=>{"use strict";function sb(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<Am(n,t))e[o]=t,e[r]=n,r=o;else break e}}function ci(e){return e.length===0?null:e[0]}function km(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<i;){var a=2*(o+1)-1,s=e[a],l=a+1,c=e[l];if(0>Am(s,r))l<n&&0>Am(c,s)?(e[o]=c,e[l]=r,o=l):(e[o]=s,e[a]=r,o=a);else if(l<n&&0>Am(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function Am(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(sO=performance,Gt.unstable_now=function(){return sO.now()}):(nb=Date,lO=nb.now(),Gt.unstable_now=function(){return nb.now()-lO});var sO,nb,lO,zi=[],Ja=[],z6=1,Dn=null,yo=3,Fm=!1,ul=!1,Mf=!1,fO=typeof setTimeout=="function"?setTimeout:null,dO=typeof clearTimeout=="function"?clearTimeout:null,cO=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function lb(e){for(var t=ci(Ja);t!==null;){if(t.callback===null)km(Ja);else if(t.startTime<=e)km(Ja),t.sortIndex=t.expirationTime,sb(zi,t);else break;t=ci(Ja)}}function cb(e){if(Mf=!1,lb(e),!ul)if(ci(zi)!==null)ul=!0,fb(ub);else{var t=ci(Ja);t!==null&&db(cb,t.startTime-e)}}function ub(e,t){ul=!1,Mf&&(Mf=!1,dO(Af),Af=-1),Fm=!0;var r=yo;try{for(lb(t),Dn=ci(zi);Dn!==null&&(!(Dn.expirationTime>t)||e&&!hO());){var o=Dn.callback;if(typeof o=="function"){Dn.callback=null,yo=Dn.priorityLevel;var n=o(Dn.expirationTime<=t);t=Gt.unstable_now(),typeof n=="function"?Dn.callback=n:Dn===ci(zi)&&km(zi),lb(t)}else km(zi);Dn=ci(zi)}if(Dn!==null)var i=!0;else{var a=ci(Ja);a!==null&&db(cb,a.startTime-t),i=!1}return i}finally{Dn=null,yo=r,Fm=!1}}var zm=!1,Lm=null,Af=-1,pO=5,mO=-1;function hO(){return!(Gt.unstable_now()-mO<pO)}function ib(){if(Lm!==null){var e=Gt.unstable_now();mO=e;var t=!0;try{t=Lm(!0,e)}finally{t?Df():(zm=!1,Lm=null)}}else zm=!1}var Df;typeof cO=="function"?Df=function(){cO(ib)}:typeof MessageChannel<"u"?(ab=new MessageChannel,uO=ab.port2,ab.port1.onmessage=ib,Df=function(){uO.postMessage(null)}):Df=function(){fO(ib,0)};var ab,uO;function fb(e){Lm=e,zm||(zm=!0,Df())}function db(e,t){Af=fO(function(){e(Gt.unstable_now())},t)}Gt.unstable_IdlePriority=5;Gt.unstable_ImmediatePriority=1;Gt.unstable_LowPriority=4;Gt.unstable_NormalPriority=3;Gt.unstable_Profiling=null;Gt.unstable_UserBlockingPriority=2;Gt.unstable_cancelCallback=function(e){e.callback=null};Gt.unstable_continueExecution=function(){ul||Fm||(ul=!0,fb(ub))};Gt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pO=0<e?Math.floor(1e3/e):5};Gt.unstable_getCurrentPriorityLevel=function(){return yo};Gt.unstable_getFirstCallbackNode=function(){return ci(zi)};Gt.unstable_next=function(e){switch(yo){case 1:case 2:case 3:var t=3;break;default:t=yo}var r=yo;yo=t;try{return e()}finally{yo=r}};Gt.unstable_pauseExecution=function(){};Gt.unstable_requestPaint=function(){};Gt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=yo;yo=e;try{return t()}finally{yo=r}};Gt.unstable_scheduleCallback=function(e,t,r){var o=Gt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:z6++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,sb(Ja,e),ci(zi)===null&&e===ci(Ja)&&(Mf?(dO(Af),Af=-1):Mf=!0,db(cb,r-o))):(e.sortIndex=n,sb(zi,e),ul||Fm||(ul=!0,fb(ub))),e};Gt.unstable_shouldYield=hO;Gt.unstable_wrapCallback=function(e){var t=yo;return function(){var r=yo;yo=t;try{return e.apply(this,arguments)}finally{yo=r}}}});var yO=Nn((nee,vO)=>{"use strict";vO.exports=gO()});var CN=Nn(hn=>{"use strict";var B6=N(),pn=yO();function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var RP=new Set,od={};function wl(e,t){qc(e,t),qc(e+"Capture",t)}function qc(e,t){for(od[e]=t,e=0;e<t.length;e++)RP.add(t[e])}var xa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ab=Object.prototype.hasOwnProperty,j6=/^[: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]*$/,xO={},bO={};function W6(e){return Ab.call(bO,e)?!0:Ab.call(xO,e)?!1:j6.test(e)?bO[e]=!0:(xO[e]=!0,!1)}function V6(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 H6(e,t,r,o){if(t===null||typeof t>"u"||V6(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 Ao(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 co={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){co[e]=new Ao(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];co[t]=new Ao(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){co[e]=new Ao(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){co[e]=new Ao(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){co[e]=new Ao(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){co[e]=new Ao(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){co[e]=new Ao(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){co[e]=new Ao(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){co[e]=new Ao(e,5,!1,e.toLowerCase(),null,!1,!1)});var OS=/[\-:]([a-z])/g;function PS(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(OS,PS);co[t]=new Ao(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(OS,PS);co[t]=new Ao(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(OS,PS);co[t]=new Ao(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){co[e]=new Ao(e,1,!1,e.toLowerCase(),null,!1,!1)});co.xlinkHref=new Ao("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){co[e]=new Ao(e,1,!1,e.toLowerCase(),null,!0,!0)});function TS(e,t,r,o){var n=co.hasOwnProperty(t)?co[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(H6(t,r,n,o)&&(r=null),o||n===null?W6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var wa=B6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bm=Symbol.for("react.element"),Tc=Symbol.for("react.portal"),Nc=Symbol.for("react.fragment"),NS=Symbol.for("react.strict_mode"),Lb=Symbol.for("react.profiler"),_P=Symbol.for("react.provider"),OP=Symbol.for("react.context"),IS=Symbol.for("react.forward_ref"),kb=Symbol.for("react.suspense"),Fb=Symbol.for("react.suspense_list"),$S=Symbol.for("react.memo"),ts=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var PP=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var SO=Symbol.iterator;function Lf(e){return e===null||typeof e!="object"?null:(e=SO&&e[SO]||e["@@iterator"],typeof e=="function"?e:null)}var pr=Object.assign,pb;function Hf(e){if(pb===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);pb=t&&t[1]||""}return`
|
|
`+pb+e}var mb=!1;function hb(e,t){if(!e||mb)return"";mb=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var o=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){o=c}e.call(t.prototype)}else{try{throw Error()}catch(c){o=c}e()}}catch(c){if(c&&o&&typeof c.stack=="string"){for(var n=c.stack.split(`
|
|
`),i=o.stack.split(`
|
|
`),a=n.length-1,s=i.length-1;1<=a&&0<=s&&n[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(n[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||n[a]!==i[s]){var l=`
|
|
`+n[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{mb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Hf(e):""}function U6(e){switch(e.tag){case 5:return Hf(e.type);case 16:return Hf("Lazy");case 13:return Hf("Suspense");case 19:return Hf("SuspenseList");case 0:case 2:case 15:return e=hb(e.type,!1),e;case 11:return e=hb(e.type.render,!1),e;case 1:return e=hb(e.type,!0),e;default:return""}}function zb(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 Nc:return"Fragment";case Tc:return"Portal";case Lb:return"Profiler";case NS:return"StrictMode";case kb:return"Suspense";case Fb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case OP:return(e.displayName||"Context")+".Consumer";case _P:return(e._context.displayName||"Context")+".Provider";case IS: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:zb(e.type)||"Memo";case ts:t=e._payload,e=e._init;try{return zb(e(t))}catch{}}return null}function G6(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 zb(t);case 8:return t===NS?"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 hs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function TP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q6(e){var t=TP(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 jm(e){e._valueTracker||(e._valueTracker=q6(e))}function NP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=TP(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function hh(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 Bb(e,t){var r=t.checked;return pr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function CO(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=hs(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 IP(e,t){t=t.checked,t!=null&&TS(e,"checked",t,!1)}function jb(e,t){IP(e,t);var r=hs(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")?Wb(e,t.type,r):t.hasOwnProperty("defaultValue")&&Wb(e,t.type,hs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wO(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 Wb(e,t,r){(t!=="number"||hh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Uf=Array.isArray;function jc(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+hs(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Vb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(he(91));return pr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function EO(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(he(92));if(Uf(r)){if(1<r.length)throw Error(he(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:hs(r)}}function $P(e,t){var r=hs(t.value),o=hs(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function RO(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function DP(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Hb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?DP(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wm,MP=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wm=Wm||document.createElement("div"),Wm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Kf={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},K6=["Webkit","ms","Moz","O"];Object.keys(Kf).forEach(function(e){K6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kf[t]=Kf[e]})});function AP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Kf.hasOwnProperty(e)&&Kf[e]?(""+t).trim():t+"px"}function LP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=AP(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var X6=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 Ub(e,t){if(t){if(X6[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 Gb(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 qb=null;function DS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kb=null,Wc=null,Vc=null;function _O(e){if(e=Cd(e)){if(typeof Kb!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Vh(t),Kb(e.stateNode,e.type,t))}}function kP(e){Wc?Vc?Vc.push(e):Vc=[e]:Wc=e}function FP(){if(Wc){var e=Wc,t=Vc;if(Vc=Wc=null,_O(e),t)for(e=0;e<t.length;e++)_O(t[e])}}function zP(e,t){return e(t)}function BP(){}var gb=!1;function jP(e,t,r){if(gb)return e(t,r);gb=!0;try{return zP(e,t,r)}finally{gb=!1,(Wc!==null||Vc!==null)&&(BP(),FP())}}function id(e,t){var r=e.stateNode;if(r===null)return null;var o=Vh(r);if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(he(231,t,typeof r));return r}var Xb=!1;if(xa)try{Oc={},Object.defineProperty(Oc,"passive",{get:function(){Xb=!0}}),window.addEventListener("test",Oc,Oc),window.removeEventListener("test",Oc,Oc)}catch{Xb=!1}var Oc;function Y6(e,t,r,o,n,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Xf=!1,gh=null,vh=!1,Yb=null,Q6={onError:function(e){Xf=!0,gh=e}};function Z6(e,t,r,o,n,i,a,s,l){Xf=!1,gh=null,Y6.apply(Q6,arguments)}function J6(e,t,r,o,n,i,a,s,l){if(Z6.apply(this,arguments),Xf){if(Xf){var c=gh;Xf=!1,gh=null}else throw Error(he(198));vh||(vh=!0,Yb=c)}}function El(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function WP(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function OO(e){if(El(e)!==e)throw Error(he(188))}function e8(e){var t=e.alternate;if(!t){if(t=El(e),t===null)throw Error(he(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return OO(n),e;if(i===o)return OO(n),t;i=i.sibling}throw Error(he(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,s=n.child;s;){if(s===r){a=!0,r=n,o=i;break}if(s===o){a=!0,o=n,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,o=n;break}if(s===o){a=!0,o=i,r=n;break}s=s.sibling}if(!a)throw Error(he(189))}}if(r.alternate!==o)throw Error(he(190))}if(r.tag!==3)throw Error(he(188));return r.stateNode.current===r?e:t}function VP(e){return e=e8(e),e!==null?HP(e):null}function HP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=HP(e);if(t!==null)return t;e=e.sibling}return null}var UP=pn.unstable_scheduleCallback,PO=pn.unstable_cancelCallback,t8=pn.unstable_shouldYield,r8=pn.unstable_requestPaint,Or=pn.unstable_now,o8=pn.unstable_getCurrentPriorityLevel,MS=pn.unstable_ImmediatePriority,GP=pn.unstable_UserBlockingPriority,yh=pn.unstable_NormalPriority,n8=pn.unstable_LowPriority,qP=pn.unstable_IdlePriority,zh=null,Vi=null;function i8(e){if(Vi&&typeof Vi.onCommitFiberRoot=="function")try{Vi.onCommitFiberRoot(zh,e,void 0,(e.current.flags&128)===128)}catch{}}var mi=Math.clz32?Math.clz32:l8,a8=Math.log,s8=Math.LN2;function l8(e){return e>>>=0,e===0?32:31-(a8(e)/s8|0)|0}var Vm=64,Hm=4194304;function Gf(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 xh(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=Gf(s):(i&=a,i!==0&&(o=Gf(i)))}else a=r&~n,a!==0?o=Gf(a):i!==0&&(o=Gf(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;0<t;)r=31-mi(t),n=1<<r,o|=e[r],t&=~n;return o}function c8(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function u8(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-mi(i),s=1<<a,l=n[a];l===-1?(!(s&r)||s&o)&&(n[a]=c8(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function Qb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function KP(){var e=Vm;return Vm<<=1,!(Vm&4194240)&&(Vm=64),e}function vb(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mi(t),e[t]=r}function f8(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<r;){var n=31-mi(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function AS(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-mi(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var Dt=0;function XP(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var YP,LS,QP,ZP,JP,Zb=!1,Um=[],ss=null,ls=null,cs=null,ad=new Map,sd=new Map,os=[],d8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function TO(e,t){switch(e){case"focusin":case"focusout":ss=null;break;case"dragenter":case"dragleave":ls=null;break;case"mouseover":case"mouseout":cs=null;break;case"pointerover":case"pointerout":ad.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sd.delete(t.pointerId)}}function kf(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Cd(t),t!==null&&LS(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function p8(e,t,r,o,n){switch(t){case"focusin":return ss=kf(ss,e,t,r,o,n),!0;case"dragenter":return ls=kf(ls,e,t,r,o,n),!0;case"mouseover":return cs=kf(cs,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return ad.set(i,kf(ad.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,sd.set(i,kf(sd.get(i)||null,e,t,r,o,n)),!0}return!1}function eT(e){var t=pl(e.target);if(t!==null){var r=El(t);if(r!==null){if(t=r.tag,t===13){if(t=WP(r),t!==null){e.blockedOn=t,JP(e.priority,function(){QP(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Jb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);qb=o,r.target.dispatchEvent(o),qb=null}else return t=Cd(r),t!==null&&LS(t),e.blockedOn=r,!1;t.shift()}return!0}function NO(e,t,r){ih(e)&&r.delete(t)}function m8(){Zb=!1,ss!==null&&ih(ss)&&(ss=null),ls!==null&&ih(ls)&&(ls=null),cs!==null&&ih(cs)&&(cs=null),ad.forEach(NO),sd.forEach(NO)}function Ff(e,t){e.blockedOn===t&&(e.blockedOn=null,Zb||(Zb=!0,pn.unstable_scheduleCallback(pn.unstable_NormalPriority,m8)))}function ld(e){function t(n){return Ff(n,e)}if(0<Um.length){Ff(Um[0],e);for(var r=1;r<Um.length;r++){var o=Um[r];o.blockedOn===e&&(o.blockedOn=null)}}for(ss!==null&&Ff(ss,e),ls!==null&&Ff(ls,e),cs!==null&&Ff(cs,e),ad.forEach(t),sd.forEach(t),r=0;r<os.length;r++)o=os[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<os.length&&(r=os[0],r.blockedOn===null);)eT(r),r.blockedOn===null&&os.shift()}var Hc=wa.ReactCurrentBatchConfig,bh=!0;function h8(e,t,r,o){var n=Dt,i=Hc.transition;Hc.transition=null;try{Dt=1,kS(e,t,r,o)}finally{Dt=n,Hc.transition=i}}function g8(e,t,r,o){var n=Dt,i=Hc.transition;Hc.transition=null;try{Dt=4,kS(e,t,r,o)}finally{Dt=n,Hc.transition=i}}function kS(e,t,r,o){if(bh){var n=Jb(e,t,r,o);if(n===null)Eb(e,t,o,Sh,r),TO(e,o);else if(p8(n,e,t,r,o))o.stopPropagation();else if(TO(e,o),t&4&&-1<d8.indexOf(e)){for(;n!==null;){var i=Cd(n);if(i!==null&&YP(i),i=Jb(e,t,r,o),i===null&&Eb(e,t,o,Sh,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else Eb(e,t,o,null,r)}}var Sh=null;function Jb(e,t,r,o){if(Sh=null,e=DS(o),e=pl(e),e!==null)if(t=El(e),t===null)e=null;else if(r=t.tag,r===13){if(e=WP(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sh=e,null}function tT(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(o8()){case MS:return 1;case GP:return 4;case yh:case n8:return 16;case qP:return 536870912;default:return 16}default:return 16}}var is=null,FS=null,ah=null;function rT(){if(ah)return ah;var e,t=FS,r=t.length,o,n="value"in is?is.value:is.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return ah=n.slice(e,1<o?1-o:void 0)}function sh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gm(){return!0}function IO(){return!1}function mn(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Gm:IO,this.isPropagationStopped=IO,this}return pr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Gm)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Gm)},persist:function(){},isPersistent:Gm}),t}var eu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zS=mn(eu),Sd=pr({},eu,{view:0,detail:0}),v8=mn(Sd),yb,xb,zf,Bh=pr({},Sd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:BS,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zf&&(zf&&e.type==="mousemove"?(yb=e.screenX-zf.screenX,xb=e.screenY-zf.screenY):xb=yb=0,zf=e),yb)},movementY:function(e){return"movementY"in e?e.movementY:xb}}),$O=mn(Bh),y8=pr({},Bh,{dataTransfer:0}),x8=mn(y8),b8=pr({},Sd,{relatedTarget:0}),bb=mn(b8),S8=pr({},eu,{animationName:0,elapsedTime:0,pseudoElement:0}),C8=mn(S8),w8=pr({},eu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),E8=mn(w8),R8=pr({},eu,{data:0}),DO=mn(R8),_8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},P8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=P8[e])?!!t[e]:!1}function BS(){return T8}var N8=pr({},Sd,{key:function(e){if(e.key){var t=_8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:BS,charCode:function(e){return e.type==="keypress"?sh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I8=mn(N8),$8=pr({},Bh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),MO=mn($8),D8=pr({},Sd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:BS}),M8=mn(D8),A8=pr({},eu,{propertyName:0,elapsedTime:0,pseudoElement:0}),L8=mn(A8),k8=pr({},Bh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),F8=mn(k8),z8=[9,13,27,32],jS=xa&&"CompositionEvent"in window,Yf=null;xa&&"documentMode"in document&&(Yf=document.documentMode);var B8=xa&&"TextEvent"in window&&!Yf,oT=xa&&(!jS||Yf&&8<Yf&&11>=Yf),AO=" ",LO=!1;function nT(e,t){switch(e){case"keyup":return z8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ic=!1;function j8(e,t){switch(e){case"compositionend":return iT(t);case"keypress":return t.which!==32?null:(LO=!0,AO);case"textInput":return e=t.data,e===AO&&LO?null:e;default:return null}}function W8(e,t){if(Ic)return e==="compositionend"||!jS&&nT(e,t)?(e=rT(),ah=FS=is=null,Ic=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return oT&&t.locale!=="ko"?null:t.data;default:return null}}var V8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V8[e.type]:t==="textarea"}function aT(e,t,r,o){kP(o),t=Ch(t,"onChange"),0<t.length&&(r=new zS("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Qf=null,cd=null;function H8(e){vT(e,0)}function jh(e){var t=Mc(e);if(NP(t))return e}function U8(e,t){if(e==="change")return t}var sT=!1;xa&&(xa?(Km="oninput"in document,Km||(Sb=document.createElement("div"),Sb.setAttribute("oninput","return;"),Km=typeof Sb.oninput=="function"),qm=Km):qm=!1,sT=qm&&(!document.documentMode||9<document.documentMode));var qm,Km,Sb;function FO(){Qf&&(Qf.detachEvent("onpropertychange",lT),cd=Qf=null)}function lT(e){if(e.propertyName==="value"&&jh(cd)){var t=[];aT(t,cd,e,DS(e)),jP(H8,t)}}function G8(e,t,r){e==="focusin"?(FO(),Qf=t,cd=r,Qf.attachEvent("onpropertychange",lT)):e==="focusout"&&FO()}function q8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jh(cd)}function K8(e,t){if(e==="click")return jh(t)}function X8(e,t){if(e==="input"||e==="change")return jh(t)}function Y8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gi=typeof Object.is=="function"?Object.is:Y8;function ud(e,t){if(gi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!Ab.call(t,n)||!gi(e[n],t[n]))return!1}return!0}function zO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function BO(e,t){var r=zO(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=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=zO(r)}}function cT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uT(){for(var e=window,t=hh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=hh(e.document)}return t}function WS(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 Q8(e){var t=uT(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&cT(r.ownerDocument.documentElement,r)){if(o!==null&&WS(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=BO(r,i);var a=BO(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<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Z8=xa&&"documentMode"in document&&11>=document.documentMode,$c=null,eS=null,Zf=null,tS=!1;function jO(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tS||$c==null||$c!==hh(o)||(o=$c,"selectionStart"in o&&WS(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}),Zf&&ud(Zf,o)||(Zf=o,o=Ch(eS,"onSelect"),0<o.length&&(t=new zS("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=$c)))}function Xm(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Dc={animationend:Xm("Animation","AnimationEnd"),animationiteration:Xm("Animation","AnimationIteration"),animationstart:Xm("Animation","AnimationStart"),transitionend:Xm("Transition","TransitionEnd")},Cb={},fT={};xa&&(fT=document.createElement("div").style,"AnimationEvent"in window||(delete Dc.animationend.animation,delete Dc.animationiteration.animation,delete Dc.animationstart.animation),"TransitionEvent"in window||delete Dc.transitionend.transition);function Wh(e){if(Cb[e])return Cb[e];if(!Dc[e])return e;var t=Dc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in fT)return Cb[e]=t[r];return e}var dT=Wh("animationend"),pT=Wh("animationiteration"),mT=Wh("animationstart"),hT=Wh("transitionend"),gT=new Map,WO="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vs(e,t){gT.set(e,t),wl(t,[e])}for(Ym=0;Ym<WO.length;Ym++)Qm=WO[Ym],VO=Qm.toLowerCase(),HO=Qm[0].toUpperCase()+Qm.slice(1),vs(VO,"on"+HO);var Qm,VO,HO,Ym;vs(dT,"onAnimationEnd");vs(pT,"onAnimationIteration");vs(mT,"onAnimationStart");vs("dblclick","onDoubleClick");vs("focusin","onFocus");vs("focusout","onBlur");vs(hT,"onTransitionEnd");qc("onMouseEnter",["mouseout","mouseover"]);qc("onMouseLeave",["mouseout","mouseover"]);qc("onPointerEnter",["pointerout","pointerover"]);qc("onPointerLeave",["pointerout","pointerover"]);wl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wl("onBeforeInput",["compositionend","keypress","textInput","paste"]);wl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),J8=new Set("cancel close invalid load scroll toggle".split(" ").concat(qf));function UO(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,J6(o,t,void 0,e),e.currentTarget=null}function vT(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var s=o[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&n.isPropagationStopped())break e;UO(n,s,c),i=l}else for(a=0;a<o.length;a++){if(s=o[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&n.isPropagationStopped())break e;UO(n,s,c),i=l}}}if(vh)throw e=Yb,vh=!1,Yb=null,e}function Xt(e,t){var r=t[aS];r===void 0&&(r=t[aS]=new Set);var o=e+"__bubble";r.has(o)||(yT(t,e,2,!1),r.add(o))}function wb(e,t,r){var o=0;t&&(o|=4),yT(r,e,o,t)}var Zm="_reactListening"+Math.random().toString(36).slice(2);function fd(e){if(!e[Zm]){e[Zm]=!0,RP.forEach(function(r){r!=="selectionchange"&&(J8.has(r)||wb(r,!1,e),wb(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zm]||(t[Zm]=!0,wb("selectionchange",!1,t))}}function yT(e,t,r,o){switch(tT(t)){case 1:var n=h8;break;case 4:n=g8;break;default:n=kS}r=n.bind(null,t,r,e),n=void 0,!Xb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function Eb(e,t,r,o,n){var i=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var s=o.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;a=a.return}for(;s!==null;){if(a=pl(s),a===null)return;if(l=a.tag,l===5||l===6){o=i=a;continue e}s=s.parentNode}}o=o.return}jP(function(){var c=i,u=DS(r),f=[];e:{var d=gT.get(e);if(d!==void 0){var m=zS,g=e;switch(e){case"keypress":if(sh(r)===0)break e;case"keydown":case"keyup":m=I8;break;case"focusin":g="focus",m=bb;break;case"focusout":g="blur",m=bb;break;case"beforeblur":case"afterblur":m=bb;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=$O;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=x8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=M8;break;case dT:case pT:case mT:m=C8;break;case hT:m=L8;break;case"scroll":m=v8;break;case"wheel":m=F8;break;case"copy":case"cut":case"paste":m=E8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=MO}var v=(t&4)!==0,x=!v&&e==="scroll",h=v?d!==null?d+"Capture":null:d;v=[];for(var p=c,y;p!==null;){y=p;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,h!==null&&(S=id(p,h),S!=null&&v.push(dd(p,S,y)))),x)break;p=p.return}0<v.length&&(d=new m(d,g,null,r,u),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&r!==qb&&(g=r.relatedTarget||r.fromElement)&&(pl(g)||g[ba]))break e;if((m||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,m?(g=r.relatedTarget||r.toElement,m=c,g=g?pl(g):null,g!==null&&(x=El(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=c),m!==g)){if(v=$O,S="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=MO,S="onPointerLeave",h="onPointerEnter",p="pointer"),x=m==null?d:Mc(m),y=g==null?d:Mc(g),d=new v(S,p+"leave",m,r,u),d.target=x,d.relatedTarget=y,S=null,pl(u)===c&&(v=new v(h,p+"enter",g,r,u),v.target=y,v.relatedTarget=x,S=v),x=S,m&&g)t:{for(v=m,h=g,p=0,y=v;y;y=Pc(y))p++;for(y=0,S=h;S;S=Pc(S))y++;for(;0<p-y;)v=Pc(v),p--;for(;0<y-p;)h=Pc(h),y--;for(;p--;){if(v===h||h!==null&&v===h.alternate)break t;v=Pc(v),h=Pc(h)}v=null}else v=null;m!==null&&GO(f,d,m,v,!1),g!==null&&x!==null&&GO(f,x,g,v,!0)}}e:{if(d=c?Mc(c):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var b=U8;else if(kO(d))if(sT)b=X8;else{b=q8;var w=G8}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=K8);if(b&&(b=b(e,c))){aT(f,b,r,u);break e}w&&w(e,d,c),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&Wb(d,"number",d.value)}switch(w=c?Mc(c):window,e){case"focusin":(kO(w)||w.contentEditable==="true")&&($c=w,eS=c,Zf=null);break;case"focusout":Zf=eS=$c=null;break;case"mousedown":tS=!0;break;case"contextmenu":case"mouseup":case"dragend":tS=!1,jO(f,r,u);break;case"selectionchange":if(Z8)break;case"keydown":case"keyup":jO(f,r,u)}var C;if(jS)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Ic?nT(e,r)&&(R="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(R="onCompositionStart");R&&(oT&&r.locale!=="ko"&&(Ic||R!=="onCompositionStart"?R==="onCompositionEnd"&&Ic&&(C=rT()):(is=u,FS="value"in is?is.value:is.textContent,Ic=!0)),w=Ch(c,R),0<w.length&&(R=new DO(R,e,null,r,u),f.push({event:R,listeners:w}),C?R.data=C:(C=iT(r),C!==null&&(R.data=C)))),(C=B8?j8(e,r):W8(e,r))&&(c=Ch(c,"onBeforeInput"),0<c.length&&(u=new DO("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:c}),u.data=C))}vT(f,t)})}function dd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ch(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=id(e,r),i!=null&&o.unshift(dd(e,i,n)),i=id(e,t),i!=null&&o.push(dd(e,i,n))),e=e.return}return o}function Pc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function GO(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===o)break;s.tag===5&&c!==null&&(s=c,n?(l=id(r,i),l!=null&&a.unshift(dd(r,l,s))):n||(l=id(r,i),l!=null&&a.push(dd(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var ez=/\r\n?/g,tz=/\u0000|\uFFFD/g;function qO(e){return(typeof e=="string"?e:""+e).replace(ez,`
|
|
`).replace(tz,"")}function Jm(e,t,r){if(t=qO(t),qO(e)!==t&&r)throw Error(he(425))}function wh(){}var rS=null,oS=null;function nS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var iS=typeof setTimeout=="function"?setTimeout:void 0,rz=typeof clearTimeout=="function"?clearTimeout:void 0,KO=typeof Promise=="function"?Promise:void 0,oz=typeof queueMicrotask=="function"?queueMicrotask:typeof KO<"u"?function(e){return KO.resolve(null).then(e).catch(nz)}:iS;function nz(e){setTimeout(function(){throw e})}function Rb(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),ld(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);ld(t)}function us(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function XO(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var tu=Math.random().toString(36).slice(2),Wi="__reactFiber$"+tu,pd="__reactProps$"+tu,ba="__reactContainer$"+tu,aS="__reactEvents$"+tu,iz="__reactListeners$"+tu,az="__reactHandles$"+tu;function pl(e){var t=e[Wi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ba]||r[Wi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=XO(e);e!==null;){if(r=e[Wi])return r;e=XO(e)}return t}e=r,r=e.parentNode}return null}function Cd(e){return e=e[Wi]||e[ba],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(he(33))}function Vh(e){return e[pd]||null}var sS=[],Ac=-1;function ys(e){return{current:e}}function Yt(e){0>Ac||(e.current=sS[Ac],sS[Ac]=null,Ac--)}function qt(e,t){Ac++,sS[Ac]=e.current,e.current=t}var gs={},Co=ys(gs),Ho=ys(!1),yl=gs;function Kc(e,t){var r=e.type.contextTypes;if(!r)return gs;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 Uo(e){return e=e.childContextTypes,e!=null}function Eh(){Yt(Ho),Yt(Co)}function YO(e,t,r){if(Co.current!==gs)throw Error(he(168));qt(Co,t),qt(Ho,r)}function xT(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,G6(e)||"Unknown",n));return pr({},r,o)}function Rh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gs,yl=Co.current,qt(Co,e),qt(Ho,Ho.current),!0}function QO(e,t,r){var o=e.stateNode;if(!o)throw Error(he(169));r?(e=xT(e,t,yl),o.__reactInternalMemoizedMergedChildContext=e,Yt(Ho),Yt(Co),qt(Co,e)):Yt(Ho),qt(Ho,r)}var ha=null,Hh=!1,_b=!1;function bT(e){ha===null?ha=[e]:ha.push(e)}function sz(e){Hh=!0,bT(e)}function xs(){if(!_b&&ha!==null){_b=!0;var e=0,t=Dt;try{var r=ha;for(Dt=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}ha=null,Hh=!1}catch(n){throw ha!==null&&(ha=ha.slice(e+1)),UP(MS,xs),n}finally{Dt=t,_b=!1}}return null}var Lc=[],kc=0,_h=null,Oh=0,Mn=[],An=0,xl=null,ga=1,va="";function fl(e,t){Lc[kc++]=Oh,Lc[kc++]=_h,_h=e,Oh=t}function ST(e,t,r){Mn[An++]=ga,Mn[An++]=va,Mn[An++]=xl,xl=e;var o=ga;e=va;var n=32-mi(o)-1;o&=~(1<<n),r+=1;var i=32-mi(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,ga=1<<32-mi(t)+n|r<<n|o,va=i+e}else ga=1<<i|r<<n|o,va=e}function VS(e){e.return!==null&&(fl(e,1),ST(e,1,0))}function HS(e){for(;e===_h;)_h=Lc[--kc],Lc[kc]=null,Oh=Lc[--kc],Lc[kc]=null;for(;e===xl;)xl=Mn[--An],Mn[An]=null,va=Mn[--An],Mn[An]=null,ga=Mn[--An],Mn[An]=null}var dn=null,fn=null,ar=!1,pi=null;function CT(e,t){var r=Ln(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function ZO(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,dn=e,fn=us(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,dn=e,fn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=xl!==null?{id:ga,overflow:va}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ln(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,dn=e,fn=null,!0):!1;default:return!1}}function lS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cS(e){if(ar){var t=fn;if(t){var r=t;if(!ZO(e,t)){if(lS(e))throw Error(he(418));t=us(r.nextSibling);var o=dn;t&&ZO(e,t)?CT(o,r):(e.flags=e.flags&-4097|2,ar=!1,dn=e)}}else{if(lS(e))throw Error(he(418));e.flags=e.flags&-4097|2,ar=!1,dn=e}}}function JO(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;dn=e}function eh(e){if(e!==dn)return!1;if(!ar)return JO(e),ar=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nS(e.type,e.memoizedProps)),t&&(t=fn)){if(lS(e))throw wT(),Error(he(418));for(;t;)CT(e,t),t=us(t.nextSibling)}if(JO(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(he(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){fn=us(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}fn=null}}else fn=dn?us(e.stateNode.nextSibling):null;return!0}function wT(){for(var e=fn;e;)e=us(e.nextSibling)}function Xc(){fn=dn=null,ar=!1}function US(e){pi===null?pi=[e]:pi.push(e)}var lz=wa.ReactCurrentBatchConfig;function Bf(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(he(309));var o=r.stateNode}if(!o)throw Error(he(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=n.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(he(284));if(!r._owner)throw Error(he(290,e))}return e}function th(e,t){throw e=Object.prototype.toString.call(t),Error(he(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function eP(e){var t=e._init;return t(e._payload)}function ET(e){function t(h,p){if(e){var y=h.deletions;y===null?(h.deletions=[p],h.flags|=16):y.push(p)}}function r(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function o(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function n(h,p){return h=ms(h,p),h.index=0,h.sibling=null,h}function i(h,p,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<p?(h.flags|=2,p):y):(h.flags|=2,p)):(h.flags|=1048576,p)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,p,y,S){return p===null||p.tag!==6?(p=Db(y,h.mode,S),p.return=h,p):(p=n(p,y),p.return=h,p)}function l(h,p,y,S){var b=y.type;return b===Nc?u(h,p,y.props.children,S,y.key):p!==null&&(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===ts&&eP(b)===p.type)?(S=n(p,y.props),S.ref=Bf(h,p,y),S.return=h,S):(S=mh(y.type,y.key,y.props,null,h.mode,S),S.ref=Bf(h,p,y),S.return=h,S)}function c(h,p,y,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Mb(y,h.mode,S),p.return=h,p):(p=n(p,y.children||[]),p.return=h,p)}function u(h,p,y,S,b){return p===null||p.tag!==7?(p=vl(y,h.mode,S,b),p.return=h,p):(p=n(p,y),p.return=h,p)}function f(h,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Db(""+p,h.mode,y),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Bm:return y=mh(p.type,p.key,p.props,null,h.mode,y),y.ref=Bf(h,null,p),y.return=h,y;case Tc:return p=Mb(p,h.mode,y),p.return=h,p;case ts:var S=p._init;return f(h,S(p._payload),y)}if(Uf(p)||Lf(p))return p=vl(p,h.mode,y,null),p.return=h,p;th(h,p)}return null}function d(h,p,y,S){var b=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return b!==null?null:s(h,p,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Bm:return y.key===b?l(h,p,y,S):null;case Tc:return y.key===b?c(h,p,y,S):null;case ts:return b=y._init,d(h,p,b(y._payload),S)}if(Uf(y)||Lf(y))return b!==null?null:u(h,p,y,S,null);th(h,y)}return null}function m(h,p,y,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return h=h.get(y)||null,s(p,h,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Bm:return h=h.get(S.key===null?y:S.key)||null,l(p,h,S,b);case Tc:return h=h.get(S.key===null?y:S.key)||null,c(p,h,S,b);case ts:var w=S._init;return m(h,p,y,w(S._payload),b)}if(Uf(S)||Lf(S))return h=h.get(y)||null,u(p,h,S,b,null);th(p,S)}return null}function g(h,p,y,S){for(var b=null,w=null,C=p,R=p=0,P=null;C!==null&&R<y.length;R++){C.index>R?(P=C,C=null):P=C.sibling;var O=d(h,C,y[R],S);if(O===null){C===null&&(C=P);break}e&&C&&O.alternate===null&&t(h,C),p=i(O,p,R),w===null?b=O:w.sibling=O,w=O,C=P}if(R===y.length)return r(h,C),ar&&fl(h,R),b;if(C===null){for(;R<y.length;R++)C=f(h,y[R],S),C!==null&&(p=i(C,p,R),w===null?b=C:w.sibling=C,w=C);return ar&&fl(h,R),b}for(C=o(h,C);R<y.length;R++)P=m(C,h,R,y[R],S),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?R:P.key),p=i(P,p,R),w===null?b=P:w.sibling=P,w=P);return e&&C.forEach(function(I){return t(h,I)}),ar&&fl(h,R),b}function v(h,p,y,S){var b=Lf(y);if(typeof b!="function")throw Error(he(150));if(y=b.call(y),y==null)throw Error(he(151));for(var w=b=null,C=p,R=p=0,P=null,O=y.next();C!==null&&!O.done;R++,O=y.next()){C.index>R?(P=C,C=null):P=C.sibling;var I=d(h,C,O.value,S);if(I===null){C===null&&(C=P);break}e&&C&&I.alternate===null&&t(h,C),p=i(I,p,R),w===null?b=I:w.sibling=I,w=I,C=P}if(O.done)return r(h,C),ar&&fl(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&&fl(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&&fl(h,R),b}function x(h,p,y,S){if(typeof y=="object"&&y!==null&&y.type===Nc&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Bm:e:{for(var b=y.key,w=p;w!==null;){if(w.key===b){if(b=y.type,b===Nc){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===ts&&eP(b)===w.type){r(h,w.sibling),p=n(w,y.props),p.ref=Bf(h,w,y),p.return=h,h=p;break e}r(h,w);break}else t(h,w);w=w.sibling}y.type===Nc?(p=vl(y.props.children,h.mode,S,y.key),p.return=h,h=p):(S=mh(y.type,y.key,y.props,null,h.mode,S),S.ref=Bf(h,p,y),S.return=h,h=S)}return a(h);case Tc: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=Mb(y,h.mode,S),p.return=h,h=p}return a(h);case ts:return w=y._init,x(h,p,w(y._payload),S)}if(Uf(y))return g(h,p,y,S);if(Lf(y))return v(h,p,y,S);th(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=Db(y,h.mode,S),p.return=h,h=p),a(h)):r(h,p)}return x}var Yc=ET(!0),RT=ET(!1),Ph=ys(null),Th=null,Fc=null,GS=null;function qS(){GS=Fc=Th=null}function KS(e){var t=Ph.current;Yt(Ph),e._currentValue=t}function uS(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 Uc(e,t){Th=e,GS=Fc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Vo=!0),e.firstContext=null)}function Fn(e){var t=e._currentValue;if(GS!==e)if(e={context:e,memoizedValue:t,next:null},Fc===null){if(Th===null)throw Error(he(308));Fc=e,Th.dependencies={lanes:0,firstContext:e}}else Fc=Fc.next=e;return t}var ml=null;function XS(e){ml===null?ml=[e]:ml.push(e)}function _T(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,XS(t)):(r.next=n.next,n.next=r),t.interleaved=r,Sa(e,o)}function Sa(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 rs=!1;function YS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function OT(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 ya(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fs(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,Sa(e,r)}return n=o.interleaved,n===null?(t.next=t,XS(o)):(t.next=n.next,n.next=t),o.interleaved=t,Sa(e,r)}function lh(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,AS(e,r)}}function tP(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 Nh(e,t,r,o){var n=e.updateQueue;rs=!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:rs=!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);Sl|=a,e.lanes=a,e.memoizedState=f}}function rP(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(he(191,n));n.call(o)}}}var wd={},Hi=ys(wd),md=ys(wd),hd=ys(wd);function hl(e){if(e===wd)throw Error(he(174));return e}function QS(e,t){switch(qt(hd,t),qt(md,e),qt(Hi,wd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hb(t,e)}Yt(Hi),qt(Hi,t)}function Qc(){Yt(Hi),Yt(md),Yt(hd)}function PT(e){hl(hd.current);var t=hl(Hi.current),r=Hb(t,e.type);t!==r&&(qt(md,e),qt(Hi,r))}function ZS(e){md.current===e&&(Yt(Hi),Yt(md))}var fr=ys(0);function Ih(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ob=[];function JS(){for(var e=0;e<Ob.length;e++)Ob[e]._workInProgressVersionPrimary=null;Ob.length=0}var ch=wa.ReactCurrentDispatcher,Pb=wa.ReactCurrentBatchConfig,bl=0,dr=null,Br=null,Xr=null,$h=!1,Jf=!1,gd=0,cz=0;function xo(){throw Error(he(321))}function eC(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!gi(e[r],t[r]))return!1;return!0}function tC(e,t,r,o,n,i){if(bl=i,dr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ch.current=e===null||e.memoizedState===null?pz:mz,e=r(o,n),Jf){i=0;do{if(Jf=!1,gd=0,25<=i)throw Error(he(301));i+=1,Xr=Br=null,t.updateQueue=null,ch.current=hz,e=r(o,n)}while(Jf)}if(ch.current=Dh,t=Br!==null&&Br.next!==null,bl=0,Xr=Br=dr=null,$h=!1,t)throw Error(he(300));return e}function rC(){var e=gd!==0;return gd=0,e}function ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xr===null?dr.memoizedState=Xr=e:Xr=Xr.next=e,Xr}function zn(){if(Br===null){var e=dr.alternate;e=e!==null?e.memoizedState:null}else e=Br.next;var t=Xr===null?dr.memoizedState:Xr.next;if(t!==null)Xr=t,Br=e;else{if(e===null)throw Error(he(310));Br=e,e={memoizedState:Br.memoizedState,baseState:Br.baseState,baseQueue:Br.baseQueue,queue:Br.queue,next:null},Xr===null?dr.memoizedState=Xr=e:Xr=Xr.next=e}return Xr}function vd(e,t){return typeof t=="function"?t(e):t}function Tb(e){var t=zn(),r=t.queue;if(r===null)throw Error(he(311));r.lastRenderedReducer=e;var o=Br,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var s=a=null,l=null,c=i;do{var u=c.lane;if((bl&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=f,a=o):l=l.next=f,dr.lanes|=u,Sl|=u}c=c.next}while(c!==null&&c!==i);l===null?a=o:l.next=s,gi(o,t.memoizedState)||(Vo=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=l,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,dr.lanes|=i,Sl|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Nb(e){var t=zn(),r=t.queue;if(r===null)throw Error(he(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);gi(i,t.memoizedState)||(Vo=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function TT(){}function NT(e,t){var r=dr,o=zn(),n=t(),i=!gi(o.memoizedState,n);if(i&&(o.memoizedState=n,Vo=!0),o=o.queue,oC(DT.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||Xr!==null&&Xr.memoizedState.tag&1){if(r.flags|=2048,yd(9,$T.bind(null,r,o,n,t),void 0,null),Yr===null)throw Error(he(349));bl&30||IT(r,t,n)}return n}function IT(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=dr.updateQueue,t===null?(t={lastEffect:null,stores:null},dr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function $T(e,t,r,o){t.value=r,t.getSnapshot=o,MT(t)&&AT(e)}function DT(e,t,r){return r(function(){MT(t)&&AT(e)})}function MT(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!gi(e,r)}catch{return!0}}function AT(e){var t=Sa(e,1);t!==null&&hi(t,e,1,-1)}function oP(e){var t=ji();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vd,lastRenderedState:e},t.queue=e,e=e.dispatch=dz.bind(null,dr,e),[t.memoizedState,e]}function yd(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=dr.updateQueue,t===null?(t={lastEffect:null,stores:null},dr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function LT(){return zn().memoizedState}function uh(e,t,r,o){var n=ji();dr.flags|=e,n.memoizedState=yd(1|t,r,void 0,o===void 0?null:o)}function Uh(e,t,r,o){var n=zn();o=o===void 0?null:o;var i=void 0;if(Br!==null){var a=Br.memoizedState;if(i=a.destroy,o!==null&&eC(o,a.deps)){n.memoizedState=yd(t,r,i,o);return}}dr.flags|=e,n.memoizedState=yd(1|t,r,i,o)}function nP(e,t){return uh(8390656,8,e,t)}function oC(e,t){return Uh(2048,8,e,t)}function kT(e,t){return Uh(4,2,e,t)}function FT(e,t){return Uh(4,4,e,t)}function zT(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function BT(e,t,r){return r=r!=null?r.concat([e]):null,Uh(4,4,zT.bind(null,t,e),r)}function nC(){}function jT(e,t){var r=zn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&eC(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function WT(e,t){var r=zn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&eC(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function VT(e,t,r){return bl&21?(gi(r,t)||(r=KP(),dr.lanes|=r,Sl|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vo=!0),e.memoizedState=r)}function uz(e,t){var r=Dt;Dt=r!==0&&4>r?r:4,e(!0);var o=Pb.transition;Pb.transition={};try{e(!1),t()}finally{Dt=r,Pb.transition=o}}function HT(){return zn().memoizedState}function fz(e,t,r){var o=ps(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},UT(e))GT(t,r);else if(r=_T(e,t,r,o),r!==null){var n=Mo();hi(r,e,o,n),qT(r,t,o)}}function dz(e,t,r){var o=ps(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(UT(e))GT(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,gi(s,a)){var l=t.interleaved;l===null?(n.next=n,XS(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=_T(e,t,n,o),r!==null&&(n=Mo(),hi(r,e,o,n),qT(r,t,o))}}function UT(e){var t=e.alternate;return e===dr||t!==null&&t===dr}function GT(e,t){Jf=$h=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function qT(e,t,r){if(r&4194240){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,AS(e,r)}}var Dh={readContext:Fn,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useInsertionEffect:xo,useLayoutEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useMutableSource:xo,useSyncExternalStore:xo,useId:xo,unstable_isNewReconciler:!1},pz={readContext:Fn,useCallback:function(e,t){return ji().memoizedState=[e,t===void 0?null:t],e},useContext:Fn,useEffect:nP,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,uh(4194308,4,zT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return uh(4194308,4,e,t)},useInsertionEffect:function(e,t){return uh(4,2,e,t)},useMemo:function(e,t){var r=ji();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=ji();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=fz.bind(null,dr,e),[o.memoizedState,e]},useRef:function(e){var t=ji();return e={current:e},t.memoizedState=e},useState:oP,useDebugValue:nC,useDeferredValue:function(e){return ji().memoizedState=e},useTransition:function(){var e=oP(!1),t=e[0];return e=uz.bind(null,e[1]),ji().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=dr,n=ji();if(ar){if(r===void 0)throw Error(he(407));r=r()}else{if(r=t(),Yr===null)throw Error(he(349));bl&30||IT(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,nP(DT.bind(null,o,i,e),[e]),o.flags|=2048,yd(9,$T.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=ji(),t=Yr.identifierPrefix;if(ar){var r=va,o=ga;r=(o&~(1<<32-mi(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=gd++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=cz++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mz={readContext:Fn,useCallback:jT,useContext:Fn,useEffect:oC,useImperativeHandle:BT,useInsertionEffect:kT,useLayoutEffect:FT,useMemo:WT,useReducer:Tb,useRef:LT,useState:function(){return Tb(vd)},useDebugValue:nC,useDeferredValue:function(e){var t=zn();return VT(t,Br.memoizedState,e)},useTransition:function(){var e=Tb(vd)[0],t=zn().memoizedState;return[e,t]},useMutableSource:TT,useSyncExternalStore:NT,useId:HT,unstable_isNewReconciler:!1},hz={readContext:Fn,useCallback:jT,useContext:Fn,useEffect:oC,useImperativeHandle:BT,useInsertionEffect:kT,useLayoutEffect:FT,useMemo:WT,useReducer:Nb,useRef:LT,useState:function(){return Nb(vd)},useDebugValue:nC,useDeferredValue:function(e){var t=zn();return Br===null?t.memoizedState=e:VT(t,Br.memoizedState,e)},useTransition:function(){var e=Nb(vd)[0],t=zn().memoizedState;return[e,t]},useMutableSource:TT,useSyncExternalStore:NT,useId:HT,unstable_isNewReconciler:!1};function fi(e,t){if(e&&e.defaultProps){t=pr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function fS(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:pr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Gh={isMounted:function(e){return(e=e._reactInternals)?El(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Mo(),n=ps(e),i=ya(o,n);i.payload=t,r!=null&&(i.callback=r),t=fs(e,i,n),t!==null&&(hi(t,e,n,o),lh(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Mo(),n=ps(e),i=ya(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=fs(e,i,n),t!==null&&(hi(t,e,n,o),lh(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Mo(),o=ps(e),n=ya(r,o);n.tag=2,t!=null&&(n.callback=t),t=fs(e,n,o),t!==null&&(hi(t,e,o,r),lh(t,e,o))}};function iP(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!ud(r,o)||!ud(n,i):!0}function KT(e,t,r){var o=!1,n=gs,i=t.contextType;return typeof i=="object"&&i!==null?i=Fn(i):(n=Uo(t)?yl:Co.current,o=t.contextTypes,i=(o=o!=null)?Kc(e,n):gs),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Gh,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function aP(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Gh.enqueueReplaceState(t,t.state,null)}function dS(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},YS(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Fn(i):(i=Uo(t)?yl:Co.current,n.context=Kc(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(fS(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Gh.enqueueReplaceState(n,n.state,null),Nh(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Zc(e,t){try{var r="",o=t;do r+=U6(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
Error generating stack: `+i.message+`
|
|
`+i.stack}return{value:e,source:t,stack:n,digest:null}}function Ib(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function pS(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var gz=typeof WeakMap=="function"?WeakMap:Map;function XT(e,t,r){r=ya(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){Ah||(Ah=!0,wS=o),pS(e,t)},r}function YT(e,t,r){r=ya(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){pS(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){pS(e,t),typeof o!="function"&&(ds===null?ds=new Set([this]):ds.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function sP(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new gz;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=Nz.bind(null,e,t,r),t.then(e,e))}function lP(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function cP(e,t,r,o,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ya(-1,1),t.tag=2,fs(r,t,1))),r.lanes|=1),e)}var vz=wa.ReactCurrentOwner,Vo=!1;function Do(e,t,r,o){t.child=e===null?RT(t,null,r,o):Yc(t,e.child,r,o)}function uP(e,t,r,o,n){r=r.render;var i=t.ref;return Uc(t,n),o=tC(e,t,r,o,i,n),r=rC(),e!==null&&!Vo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Ca(e,t,n)):(ar&&r&&VS(t),t.flags|=1,Do(e,t,o,n),t.child)}function fP(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!dC(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,QT(e,t,i,o,n)):(e=mh(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&n)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:ud,r(a,o)&&e.ref===t.ref)return Ca(e,t,n)}return t.flags|=1,e=ms(i,o),e.ref=t.ref,e.return=t,t.child=e}function QT(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(ud(i,o)&&e.ref===t.ref)if(Vo=!1,t.pendingProps=o=i,(e.lanes&n)!==0)e.flags&131072&&(Vo=!0);else return t.lanes=e.lanes,Ca(e,t,n)}return mS(e,t,r,o,n)}function ZT(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qt(Bc,un),un|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,qt(Bc,un),un|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,qt(Bc,un),un|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,qt(Bc,un),un|=o;return Do(e,t,n,r),t.child}function JT(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function mS(e,t,r,o,n){var i=Uo(r)?yl:Co.current;return i=Kc(t,i),Uc(t,n),r=tC(e,t,r,o,i,n),o=rC(),e!==null&&!Vo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Ca(e,t,n)):(ar&&o&&VS(t),t.flags|=1,Do(e,t,r,n),t.child)}function dP(e,t,r,o,n){if(Uo(r)){var i=!0;Rh(t)}else i=!1;if(Uc(t,n),t.stateNode===null)fh(e,t),KT(t,r,o),dS(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Fn(c):(c=Uo(r)?yl:Co.current,c=Kc(t,c));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==o||l!==c)&&aP(t,a,o,c),rs=!1;var d=t.memoizedState;a.state=d,Nh(t,o,a,n),l=t.memoizedState,s!==o||d!==l||Ho.current||rs?(typeof u=="function"&&(fS(t,r,u,o),l=t.memoizedState),(s=rs||iP(t,r,s,o,d,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),a.props=o,a.state=l,a.context=c,o=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,OT(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:fi(t.type,s),a.props=c,f=t.pendingProps,d=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Fn(l):(l=Uo(r)?yl:Co.current,l=Kc(t,l));var m=r.getDerivedStateFromProps;(u=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&aP(t,a,o,l),rs=!1,d=t.memoizedState,a.state=d,Nh(t,o,a,n);var g=t.memoizedState;s!==f||d!==g||Ho.current||rs?(typeof m=="function"&&(fS(t,r,m,o),g=t.memoizedState),(c=rs||iP(t,r,c,o,d,g,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,g,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=g),a.props=o,a.state=g,a.context=l,o=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return hS(e,t,r,o,i,n)}function hS(e,t,r,o,n,i){JT(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&QO(t,r,!1),Ca(e,t,i);o=t.stateNode,vz.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Yc(t,e.child,null,i),t.child=Yc(t,null,s,i)):Do(e,t,s,i),t.memoizedState=o.state,n&&QO(t,r,!0),t.child}function eN(e){var t=e.stateNode;t.pendingContext?YO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&YO(e,t.context,!1),QS(e,t.containerInfo)}function pP(e,t,r,o,n){return Xc(),US(n),t.flags|=256,Do(e,t,r,o),t.child}var gS={dehydrated:null,treeContext:null,retryLane:0};function vS(e){return{baseLanes:e,cachePool:null,transitions:null}}function tN(e,t,r){var o=t.pendingProps,n=fr.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),qt(fr,n&1),e===null)return cS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},!(o&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Xh(a,o,0,null),e=vl(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=vS(r),t.memoizedState=gS,e):iC(t,a));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return yz(e,t,a,o,s,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,s=n.sibling;var l={mode:"hidden",children:o.children};return!(a&1)&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=ms(n,l),o.subtreeFlags=n.subtreeFlags&14680064),s!==null?i=ms(s,i):(i=vl(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?vS(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=gS,o}return i=e.child,e=i.sibling,o=ms(i,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function iC(e,t){return t=Xh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rh(e,t,r,o){return o!==null&&US(o),Yc(t,e.child,null,r),e=iC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yz(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=Ib(Error(he(422))),rh(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=Xh({mode:"visible",children:o.children},n,0,null),i=vl(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,t.mode&1&&Yc(t,e.child,null,a),t.child.memoizedState=vS(a),t.memoizedState=gS,i);if(!(t.mode&1))return rh(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var s=o.dgst;return o=s,i=Error(he(419)),o=Ib(i,o,void 0),rh(e,t,a,o)}if(s=(a&e.childLanes)!==0,Vo||s){if(o=Yr,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(o.suspendedLanes|a)?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,Sa(e,n),hi(o,e,n,-1))}return fC(),o=Ib(Error(he(421))),rh(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=Iz.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,fn=us(n.nextSibling),dn=t,ar=!0,pi=null,e!==null&&(Mn[An++]=ga,Mn[An++]=va,Mn[An++]=xl,ga=e.id,va=e.overflow,xl=t),t=iC(t,o.children),t.flags|=4096,t)}function mP(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),uS(e.return,t,r)}function $b(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function rN(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(Do(e,t,o.children,r),o=fr.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mP(e,r,t);else if(e.tag===19)mP(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(qt(fr,o),!(t.mode&1))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&Ih(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),$b(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ih(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}$b(t,!0,r,null,i);break;case"together":$b(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ca(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Sl|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(he(153));if(t.child!==null){for(e=t.child,r=ms(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ms(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function xz(e,t,r){switch(t.tag){case 3:eN(t),Xc();break;case 5:PT(t);break;case 1:Uo(t.type)&&Rh(t);break;case 4:QS(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;qt(Ph,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(qt(fr,fr.current&1),t.flags|=128,null):r&t.child.childLanes?tN(e,t,r):(qt(fr,fr.current&1),e=Ca(e,t,r),e!==null?e.sibling:null);qt(fr,fr.current&1);break;case 19:if(o=(r&t.childLanes)!==0,e.flags&128){if(o)return rN(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),qt(fr,fr.current),o)break;return null;case 22:case 23:return t.lanes=0,ZT(e,t,r)}return Ca(e,t,r)}var oN,yS,nN,iN;oN=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};yS=function(){};nN=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,hl(Hi.current);var i=null;switch(r){case"input":n=Bb(e,n),o=Bb(e,o),i=[];break;case"select":n=pr({},n,{value:void 0}),o=pr({},o,{value:void 0}),i=[];break;case"textarea":n=Vb(e,n),o=Vb(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=wh)}Ub(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var s=n[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(od.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(s=n?.[c],o.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(od.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Xt("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};iN=function(e,t,r,o){r!==o&&(t.flags|=4)};function jf(e,t){if(!ar)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function bo(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function bz(e,t,r){var o=t.pendingProps;switch(HS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bo(t),null;case 1:return Uo(t.type)&&Eh(),bo(t),null;case 3:return o=t.stateNode,Qc(),Yt(Ho),Yt(Co),JS(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(eh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pi!==null&&(_S(pi),pi=null))),yS(e,t),bo(t),null;case 5:ZS(t);var n=hl(hd.current);if(r=t.type,e!==null&&t.stateNode!=null)nN(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(he(166));return bo(t),null}if(e=hl(Hi.current),eh(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[Wi]=t,o[pd]=i,e=(t.mode&1)!==0,r){case"dialog":Xt("cancel",o),Xt("close",o);break;case"iframe":case"object":case"embed":Xt("load",o);break;case"video":case"audio":for(n=0;n<qf.length;n++)Xt(qf[n],o);break;case"source":Xt("error",o);break;case"img":case"image":case"link":Xt("error",o),Xt("load",o);break;case"details":Xt("toggle",o);break;case"input":CO(o,i),Xt("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Xt("invalid",o);break;case"textarea":EO(o,i),Xt("invalid",o)}Ub(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?o.textContent!==s&&(i.suppressHydrationWarning!==!0&&Jm(o.textContent,s,e),n=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Jm(o.textContent,s,e),n=["children",""+s]):od.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Xt("scroll",o)}switch(r){case"input":jm(o),wO(o,i,!0);break;case"textarea":jm(o),RO(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=wh)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=DP(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/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[Wi]=t,e[pd]=o,oN(e,t,!1,!1),t.stateNode=e;e:{switch(a=Gb(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;n<qf.length;n++)Xt(qf[n],e);n=o;break;case"source":Xt("error",e),n=o;break;case"img":case"image":case"link":Xt("error",e),Xt("load",e),n=o;break;case"details":Xt("toggle",e),n=o;break;case"input":CO(e,o),n=Bb(e,o),Xt("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=pr({},o,{value:void 0}),Xt("invalid",e);break;case"textarea":EO(e,o),n=Vb(e,o),Xt("invalid",e);break;default:n=o}Ub(r,n),s=n;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?LP(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&MP(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&nd(e,l):typeof l=="number"&&nd(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(od.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Xt("scroll",e):l!=null&&TS(e,i,l,a))}switch(r){case"input":jm(e),wO(e,o,!1);break;case"textarea":jm(e),RO(e);break;case"option":o.value!=null&&e.setAttribute("value",""+hs(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?jc(e,!!o.multiple,i,!1):o.defaultValue!=null&&jc(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=wh)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return bo(t),null;case 6:if(e&&t.stateNode!=null)iN(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(he(166));if(r=hl(hd.current),hl(Hi.current),eh(t)){if(o=t.stateNode,r=t.memoizedProps,o[Wi]=t,(i=o.nodeValue!==r)&&(e=dn,e!==null))switch(e.tag){case 3:Jm(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Jm(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Wi]=t,t.stateNode=o}return bo(t),null;case 13:if(Yt(fr),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ar&&fn!==null&&t.mode&1&&!(t.flags&128))wT(),Xc(),t.flags|=98560,i=!1;else if(i=eh(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(he(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(he(317));i[Wi]=t}else Xc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bo(t),i=!1}else pi!==null&&(_S(pi),pi=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||fr.current&1?jr===0&&(jr=3):fC())),t.updateQueue!==null&&(t.flags|=4),bo(t),null);case 4:return Qc(),yS(e,t),e===null&&fd(t.stateNode.containerInfo),bo(t),null;case 10:return KS(t.type._context),bo(t),null;case 17:return Uo(t.type)&&Eh(),bo(t),null;case 19:if(Yt(fr),i=t.memoizedState,i===null)return bo(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)jf(i,!1);else{if(jr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ih(e),a!==null){for(t.flags|=128,jf(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return qt(fr,fr.current&1|2),t.child}e=e.sibling}i.tail!==null&&Or()>Jc&&(t.flags|=128,o=!0,jf(i,!1),t.lanes=4194304)}else{if(!o)if(e=Ih(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),jf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ar)return bo(t),null}else 2*Or()-i.renderingStartTime>Jc&&r!==1073741824&&(t.flags|=128,o=!0,jf(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=Or(),t.sibling=null,r=fr.current,qt(fr,o?r&1|2:r&1),t):(bo(t),null);case 22:case 23:return uC(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?un&1073741824&&(bo(t),t.subtreeFlags&6&&(t.flags|=8192)):bo(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function Sz(e,t){switch(HS(t),t.tag){case 1:return Uo(t.type)&&Eh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qc(),Yt(Ho),Yt(Co),JS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ZS(t),null;case 13:if(Yt(fr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));Xc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(fr),null;case 4:return Qc(),null;case 10:return KS(t.type._context),null;case 22:case 23:return uC(),null;case 24:return null;default:return null}}var oh=!1,So=!1,Cz=typeof WeakSet=="function"?WeakSet:Set,De=null;function zc(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 xS(e,t,r){try{r()}catch(o){yr(e,t,o)}}var hP=!1;function wz(e,t){if(rS=bh,e=uT(),WS(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(oS={focusedElem:e,selectionRange:r},bh=!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:fi(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=hP,hP=!1,g}function ed(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&&xS(t,r,i)}n=n.next}while(n!==o)}}function qh(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 bS(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 aN(e){var t=e.alternate;t!==null&&(e.alternate=null,aN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wi],delete t[pd],delete t[aS],delete t[iz],delete t[az])),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 sN(e){return e.tag===5||e.tag===3||e.tag===4}function gP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sN(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 SS(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=wh));else if(o!==4&&(e=e.child,e!==null))for(SS(e,t,r),e=e.sibling;e!==null;)SS(e,t,r),e=e.sibling}function CS(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(CS(e,t,r),e=e.sibling;e!==null;)CS(e,t,r),e=e.sibling}var so=null,di=!1;function es(e,t,r){for(r=r.child;r!==null;)lN(e,t,r),r=r.sibling}function lN(e,t,r){if(Vi&&typeof Vi.onCommitFiberUnmount=="function")try{Vi.onCommitFiberUnmount(zh,r)}catch{}switch(r.tag){case 5:So||zc(r,t);case 6:var o=so,n=di;so=null,es(e,t,r),so=o,di=n,so!==null&&(di?(e=so,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):so.removeChild(r.stateNode));break;case 18:so!==null&&(di?(e=so,r=r.stateNode,e.nodeType===8?Rb(e.parentNode,r):e.nodeType===1&&Rb(e,r),ld(e)):Rb(so,r.stateNode));break;case 4:o=so,n=di,so=r.stateNode.containerInfo,di=!0,es(e,t,r),so=o,di=n;break;case 0:case 11:case 14:case 15:if(!So&&(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)&&xS(r,t,a),n=n.next}while(n!==o)}es(e,t,r);break;case 1:if(!So&&(zc(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)}es(e,t,r);break;case 21:es(e,t,r);break;case 22:r.mode&1?(So=(o=So)||r.memoizedState!==null,es(e,t,r),So=o):es(e,t,r);break;default:es(e,t,r)}}function vP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Cz),t.forEach(function(o){var n=$z.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function ui(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:so=s.stateNode,di=!1;break e;case 3:so=s.stateNode.containerInfo,di=!0;break e;case 4:so=s.stateNode.containerInfo,di=!0;break e}s=s.return}if(so===null)throw Error(he(160));lN(i,a,n),so=null,di=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(c){yr(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)cN(t,e),t=t.sibling}function cN(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ui(t,e),Bi(e),o&4){try{ed(3,e,e.return),qh(3,e)}catch(v){yr(e,e.return,v)}try{ed(5,e,e.return)}catch(v){yr(e,e.return,v)}}break;case 1:ui(t,e),Bi(e),o&512&&r!==null&&zc(r,r.return);break;case 5:if(ui(t,e),Bi(e),o&512&&r!==null&&zc(r,r.return),e.flags&32){var n=e.stateNode;try{nd(n,"")}catch(v){yr(e,e.return,v)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&IP(n,i),Gb(s,a);var c=Gb(s,i);for(a=0;a<l.length;a+=2){var u=l[a],f=l[a+1];u==="style"?LP(n,f):u==="dangerouslySetInnerHTML"?MP(n,f):u==="children"?nd(n,f):TS(n,u,f,c)}switch(s){case"input":jb(n,i);break;case"textarea":$P(n,i);break;case"select":var d=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?jc(n,!!i.multiple,m,!1):d!==!!i.multiple&&(i.defaultValue!=null?jc(n,!!i.multiple,i.defaultValue,!0):jc(n,!!i.multiple,i.multiple?[]:"",!1))}n[pd]=i}catch(v){yr(e,e.return,v)}}break;case 6:if(ui(t,e),Bi(e),o&4){if(e.stateNode===null)throw Error(he(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(v){yr(e,e.return,v)}}break;case 3:if(ui(t,e),Bi(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{ld(t.containerInfo)}catch(v){yr(e,e.return,v)}break;case 4:ui(t,e),Bi(e);break;case 13:ui(t,e),Bi(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(lC=Or())),o&4&&vP(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(So=(c=So)||u,ui(t,e),So=c):ui(t,e),Bi(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(De=e,u=e.child;u!==null;){for(f=De=u;De!==null;){switch(d=De,m=d.child,d.tag){case 0:case 11:case 14:case 15:ed(4,d,d.return);break;case 1:zc(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){o=d,r=d.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){yr(o,r,v)}}break;case 5:zc(d,d.return);break;case 22:if(d.memoizedState!==null){xP(f);continue}}m!==null?(m.return=d,De=m):xP(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{n=f.stateNode,c?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=AP("display",a))}catch(v){yr(e,e.return,v)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){yr(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ui(t,e),Bi(e),o&4&&vP(e);break;case 21:break;default:ui(t,e),Bi(e)}}function Bi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(sN(r)){var o=r;break e}r=r.return}throw Error(he(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(nd(n,""),o.flags&=-33);var i=gP(e);CS(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,s=gP(e);SS(e,s,a);break;default:throw Error(he(161))}}catch(l){yr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ez(e,t,r){De=e,uN(e,t,r)}function uN(e,t,r){for(var o=(e.mode&1)!==0;De!==null;){var n=De,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||oh;if(!a){var s=n.alternate,l=s!==null&&s.memoizedState!==null||So;s=oh;var c=So;if(oh=a,(So=l)&&!c)for(De=n;De!==null;)a=De,l=a.child,a.tag===22&&a.memoizedState!==null?bP(n):l!==null?(l.return=a,De=l):bP(n);for(;i!==null;)De=i,uN(i,t,r),i=i.sibling;De=n,oh=s,So=c}yP(e,t,r)}else n.subtreeFlags&8772&&i!==null?(i.return=n,De=i):yP(e,t,r)}}function yP(e){for(;De!==null;){var t=De;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:So||qh(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!So)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:fi(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&rP(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}rP(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&ld(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(he(163))}So||t.flags&512&&bS(t)}catch(d){yr(t,t.return,d)}}if(t===e){De=null;break}if(r=t.sibling,r!==null){r.return=t.return,De=r;break}De=t.return}}function xP(e){for(;De!==null;){var t=De;if(t===e){De=null;break}var r=t.sibling;if(r!==null){r.return=t.return,De=r;break}De=t.return}}function bP(e){for(;De!==null;){var t=De;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{qh(4,t)}catch(l){yr(t,r,l)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(l){yr(t,n,l)}}var i=t.return;try{bS(t)}catch(l){yr(t,i,l)}break;case 5:var a=t.return;try{bS(t)}catch(l){yr(t,a,l)}}}catch(l){yr(t,t.return,l)}if(t===e){De=null;break}var s=t.sibling;if(s!==null){s.return=t.return,De=s;break}De=t.return}}var Rz=Math.ceil,Mh=wa.ReactCurrentDispatcher,aC=wa.ReactCurrentOwner,kn=wa.ReactCurrentBatchConfig,Et=0,Yr=null,$r=null,lo=0,un=0,Bc=ys(0),jr=0,xd=null,Sl=0,Kh=0,sC=0,td=null,Wo=null,lC=0,Jc=1/0,ma=null,Ah=!1,wS=null,ds=null,nh=!1,as=null,Lh=0,rd=0,ES=null,dh=-1,ph=0;function Mo(){return Et&6?Or():dh!==-1?dh:dh=Or()}function ps(e){return e.mode&1?Et&2&&lo!==0?lo&-lo:lz.transition!==null?(ph===0&&(ph=KP()),ph):(e=Dt,e!==0||(e=window.event,e=e===void 0?16:tT(e.type)),e):1}function hi(e,t,r,o){if(50<rd)throw rd=0,ES=null,Error(he(185));bd(e,r,o),(!(Et&2)||e!==Yr)&&(e===Yr&&(!(Et&2)&&(Kh|=r),jr===4&&ns(e,lo)),Go(e,o),r===1&&Et===0&&!(t.mode&1)&&(Jc=Or()+500,Hh&&xs()))}function Go(e,t){var r=e.callbackNode;u8(e,t);var o=xh(e,e===Yr?lo:0);if(o===0)r!==null&&PO(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&PO(r),t===1)e.tag===0?sz(SP.bind(null,e)):bT(SP.bind(null,e)),oz(function(){!(Et&6)&&xs()}),r=null;else{switch(XP(o)){case 1:r=MS;break;case 4:r=GP;break;case 16:r=yh;break;case 536870912:r=qP;break;default:r=yh}r=yN(r,fN.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function fN(e,t){if(dh=-1,ph=0,Et&6)throw Error(he(327));var r=e.callbackNode;if(Gc()&&e.callbackNode!==r)return null;var o=xh(e,e===Yr?lo:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=kh(e,o);else{t=o;var n=Et;Et|=2;var i=pN();(Yr!==e||lo!==t)&&(ma=null,Jc=Or()+500,gl(e,t));do try{Pz();break}catch(s){dN(e,s)}while(!0);qS(),Mh.current=i,Et=n,$r!==null?t=0:(Yr=null,lo=0,t=jr)}if(t!==0){if(t===2&&(n=Qb(e),n!==0&&(o=n,t=RS(e,n))),t===1)throw r=xd,gl(e,0),ns(e,o),Go(e,Or()),r;if(t===6)ns(e,o);else{if(n=e.current.alternate,!(o&30)&&!_z(n)&&(t=kh(e,o),t===2&&(i=Qb(e),i!==0&&(o=i,t=RS(e,i))),t===1))throw r=xd,gl(e,0),ns(e,o),Go(e,Or()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(he(345));case 2:dl(e,Wo,ma);break;case 3:if(ns(e,o),(o&130023424)===o&&(t=lC+500-Or(),10<t)){if(xh(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){Mo(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=iS(dl.bind(null,e,Wo,ma),t);break}dl(e,Wo,ma);break;case 4:if(ns(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-mi(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=Or()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Rz(o/1960))-o,10<o){e.timeoutHandle=iS(dl.bind(null,e,Wo,ma),o);break}dl(e,Wo,ma);break;case 5:dl(e,Wo,ma);break;default:throw Error(he(329))}}}return Go(e,Or()),e.callbackNode===r?fN.bind(null,e):null}function RS(e,t){var r=td;return e.current.memoizedState.isDehydrated&&(gl(e,t).flags|=256),e=kh(e,t),e!==2&&(t=Wo,Wo=r,t!==null&&_S(t)),e}function _S(e){Wo===null?Wo=e:Wo.push.apply(Wo,e)}function _z(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!gi(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ns(e,t){for(t&=~sC,t&=~Kh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-mi(t),o=1<<r;e[r]=-1,t&=~o}}function SP(e){if(Et&6)throw Error(he(327));Gc();var t=xh(e,0);if(!(t&1))return Go(e,Or()),null;var r=kh(e,t);if(e.tag!==0&&r===2){var o=Qb(e);o!==0&&(t=o,r=RS(e,o))}if(r===1)throw r=xd,gl(e,0),ns(e,t),Go(e,Or()),r;if(r===6)throw Error(he(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,dl(e,Wo,ma),Go(e,Or()),null}function cC(e,t){var r=Et;Et|=1;try{return e(t)}finally{Et=r,Et===0&&(Jc=Or()+500,Hh&&xs())}}function Cl(e){as!==null&&as.tag===0&&!(Et&6)&&Gc();var t=Et;Et|=1;var r=kn.transition,o=Dt;try{if(kn.transition=null,Dt=1,e)return e()}finally{Dt=o,kn.transition=r,Et=t,!(Et&6)&&xs()}}function uC(){un=Bc.current,Yt(Bc)}function gl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,rz(r)),$r!==null)for(r=$r.return;r!==null;){var o=r;switch(HS(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Eh();break;case 3:Qc(),Yt(Ho),Yt(Co),JS();break;case 5:ZS(o);break;case 4:Qc();break;case 13:Yt(fr);break;case 19:Yt(fr);break;case 10:KS(o.type._context);break;case 22:case 23:uC()}r=r.return}if(Yr=e,$r=e=ms(e.current,null),lo=un=t,jr=0,xd=null,sC=Kh=Sl=0,Wo=td=null,ml!==null){for(t=0;t<ml.length;t++)if(r=ml[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}ml=null}return e}function dN(e,t){do{var r=$r;try{if(qS(),ch.current=Dh,$h){for(var o=dr.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}$h=!1}if(bl=0,Xr=Br=dr=null,Jf=!1,gd=0,aC.current=null,r===null||r.return===null){jr=1,xd=t,$r=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=lo,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var m=lP(a);if(m!==null){m.flags&=-257,cP(m,a,s,i,t),m.mode&1&&sP(i,c,t),t=m,l=c;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){sP(i,c,t),fC();break e}l=Error(he(426))}}else if(ar&&s.mode&1){var x=lP(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),cP(x,a,s,i,t),US(Zc(l,s));break e}}i=l=Zc(l,s),jr!==4&&(jr=2),td===null?td=[i]:td.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=XT(i,l,t);tP(i,h);break e;case 1:s=l;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ds===null||!ds.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=YT(i,s,t);tP(i,S);break e}}i=i.return}while(i!==null)}hN(r)}catch(b){t=b,$r===r&&r!==null&&($r=r=r.return);continue}break}while(!0)}function pN(){var e=Mh.current;return Mh.current=Dh,e===null?Dh:e}function fC(){(jr===0||jr===3||jr===2)&&(jr=4),Yr===null||!(Sl&268435455)&&!(Kh&268435455)||ns(Yr,lo)}function kh(e,t){var r=Et;Et|=2;var o=pN();(Yr!==e||lo!==t)&&(ma=null,gl(e,t));do try{Oz();break}catch(n){dN(e,n)}while(!0);if(qS(),Et=r,Mh.current=o,$r!==null)throw Error(he(261));return Yr=null,lo=0,jr}function Oz(){for(;$r!==null;)mN($r)}function Pz(){for(;$r!==null&&!t8();)mN($r)}function mN(e){var t=vN(e.alternate,e,un);e.memoizedProps=e.pendingProps,t===null?hN(e):$r=t,aC.current=null}function hN(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Sz(r,t),r!==null){r.flags&=32767,$r=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{jr=6,$r=null;return}}else if(r=bz(r,t,un),r!==null){$r=r;return}if(t=t.sibling,t!==null){$r=t;return}$r=t=e}while(t!==null);jr===0&&(jr=5)}function dl(e,t,r){var o=Dt,n=kn.transition;try{kn.transition=null,Dt=1,Tz(e,t,r,o)}finally{kn.transition=n,Dt=o}return null}function Tz(e,t,r,o){do Gc();while(as!==null);if(Et&6)throw Error(he(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(he(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(f8(e,i),e===Yr&&($r=Yr=null,lo=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||nh||(nh=!0,yN(yh,function(){return Gc(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=kn.transition,kn.transition=null;var a=Dt;Dt=1;var s=Et;Et|=4,aC.current=null,wz(e,r),cN(r,e),Q8(oS),bh=!!rS,oS=rS=null,e.current=r,Ez(r,e,n),r8(),Et=s,Dt=a,kn.transition=i}else e.current=r;if(nh&&(nh=!1,as=e,Lh=n),i=e.pendingLanes,i===0&&(ds=null),i8(r.stateNode,o),Go(e,Or()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(Ah)throw Ah=!1,e=wS,wS=null,e;return Lh&1&&e.tag!==0&&Gc(),i=e.pendingLanes,i&1?e===ES?rd++:(rd=0,ES=e):rd=0,xs(),null}function Gc(){if(as!==null){var e=XP(Lh),t=kn.transition,r=Dt;try{if(kn.transition=null,Dt=16>e?16:e,as===null)var o=!1;else{if(e=as,as=null,Lh=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<s.length;l++){var c=s[l];for(De=c;De!==null;){var u=De;switch(u.tag){case 0:case 11:case 15:ed(8,u,i)}var f=u.child;if(f!==null)f.return=u,De=f;else for(;De!==null;){u=De;var d=u.sibling,m=u.return;if(aN(u),u===c){De=null;break}if(d!==null){d.return=m,De=d;break}De=m}}}var g=i.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}De=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,De=a;else e:for(;De!==null;){if(i=De,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ed(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,De=h;break e}De=i.return}}var p=e.current;for(De=p;De!==null;){a=De;var y=a.child;if(a.subtreeFlags&2064&&y!==null)y.return=a,De=y;else e:for(a=p;De!==null;){if(s=De,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:qh(9,s)}}catch(b){yr(s,s.return,b)}if(s===a){De=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,De=S;break e}De=s.return}}if(Et=n,xs(),Vi&&typeof Vi.onPostCommitFiberRoot=="function")try{Vi.onPostCommitFiberRoot(zh,e)}catch{}o=!0}return o}finally{Dt=r,kn.transition=t}}return!1}function CP(e,t,r){t=Zc(r,t),t=XT(e,t,1),e=fs(e,t,1),t=Mo(),e!==null&&(bd(e,1,t),Go(e,t))}function yr(e,t,r){if(e.tag===3)CP(e,e,r);else for(;t!==null;){if(t.tag===3){CP(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ds===null||!ds.has(o))){e=Zc(r,e),e=YT(t,e,1),t=fs(t,e,1),e=Mo(),t!==null&&(bd(t,1,e),Go(t,e));break}}t=t.return}}function Nz(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=Mo(),e.pingedLanes|=e.suspendedLanes&r,Yr===e&&(lo&r)===r&&(jr===4||jr===3&&(lo&130023424)===lo&&500>Or()-lC?gl(e,0):sC|=r),Go(e,t)}function gN(e,t){t===0&&(e.mode&1?(t=Hm,Hm<<=1,!(Hm&130023424)&&(Hm=4194304)):t=1);var r=Mo();e=Sa(e,t),e!==null&&(bd(e,t,r),Go(e,r))}function Iz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),gN(e,r)}function $z(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),gN(e,r)}var vN;vN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ho.current)Vo=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Vo=!1,xz(e,t,r);Vo=!!(e.flags&131072)}else Vo=!1,ar&&t.flags&1048576&&ST(t,Oh,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;fh(e,t),e=t.pendingProps;var n=Kc(t,Co.current);Uc(t,r),n=tC(null,t,o,e,n,r);var i=rC();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,Uo(o)?(i=!0,Rh(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,YS(t),n.updater=Gh,t.stateNode=n,n._reactInternals=t,dS(t,o,e,r),t=hS(null,t,o,!0,i,r)):(t.tag=0,ar&&i&&VS(t),Do(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(fh(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=Mz(o),e=fi(o,e),n){case 0:t=mS(null,t,o,e,r);break e;case 1:t=dP(null,t,o,e,r);break e;case 11:t=uP(null,t,o,e,r);break e;case 14:t=fP(null,t,o,fi(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:fi(o,n),mS(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:fi(o,n),dP(e,t,o,n,r);case 3:e:{if(eN(t),e===null)throw Error(he(387));o=t.pendingProps,i=t.memoizedState,n=i.element,OT(e,t),Nh(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=Zc(Error(he(423)),t),t=pP(e,t,o,r,n);break e}else if(o!==n){n=Zc(Error(he(424)),t),t=pP(e,t,o,r,n);break e}else for(fn=us(t.stateNode.containerInfo.firstChild),dn=t,ar=!0,pi=null,r=RT(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Xc(),o===n){t=Ca(e,t,r);break e}Do(e,t,o,r)}t=t.child}return t;case 5:return PT(t),e===null&&cS(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,nS(o,n)?a=null:i!==null&&nS(o,i)&&(t.flags|=32),JT(e,t),Do(e,t,a,r),t.child;case 6:return e===null&&cS(t),null;case 13:return tN(e,t,r);case 4:return QS(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Yc(t,null,o,r):Do(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:fi(o,n),uP(e,t,o,n,r);case 7:return Do(e,t,t.pendingProps,r),t.child;case 8:return Do(e,t,t.pendingProps.children,r),t.child;case 12:return Do(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(Ph,o._currentValue),o._currentValue=a,i!==null)if(gi(i.value,a)){if(i.children===n.children&&!Ho.current){t=Ca(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=ya(-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),uS(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),uS(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}Do(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,Uc(t,r),n=Fn(n),o=o(n),t.flags|=1,Do(e,t,o,r),t.child;case 14:return o=t.type,n=fi(o,t.pendingProps),n=fi(o.type,n),fP(e,t,o,n,r);case 15:return QT(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:fi(o,n),fh(e,t),t.tag=1,Uo(o)?(e=!0,Rh(t)):e=!1,Uc(t,r),KT(t,o,n),dS(t,o,n,r),hS(null,t,o,!0,e,r);case 19:return rN(e,t,r);case 22:return ZT(e,t,r)}throw Error(he(156,t.tag))};function yN(e,t){return UP(e,t)}function Dz(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 Ln(e,t,r,o){return new Dz(e,t,r,o)}function dC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mz(e){if(typeof e=="function")return dC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===IS)return 11;if(e===$S)return 14}return 2}function ms(e,t){var r=e.alternate;return r===null?(r=Ln(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 mh(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")dC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Nc:return vl(r.children,n,i,t);case NS:a=8,n|=8;break;case Lb:return e=Ln(12,r,t,n|2),e.elementType=Lb,e.lanes=i,e;case kb:return e=Ln(13,r,t,n),e.elementType=kb,e.lanes=i,e;case Fb:return e=Ln(19,r,t,n),e.elementType=Fb,e.lanes=i,e;case PP:return Xh(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _P:a=10;break e;case OP:a=9;break e;case IS:a=11;break e;case $S:a=14;break e;case ts:a=16,o=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Ln(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function vl(e,t,r,o){return e=Ln(7,e,o,t),e.lanes=r,e}function Xh(e,t,r,o){return e=Ln(22,e,o,t),e.elementType=PP,e.lanes=r,e.stateNode={isHidden:!1},e}function Db(e,t,r){return e=Ln(6,e,null,t),e.lanes=r,e}function Mb(e,t,r){return t=Ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Az(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=vb(0),this.expirationTimes=vb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vb(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function pC(e,t,r,o,n,i,a,s,l){return e=new Az(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ln(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},YS(i),e}function Lz(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tc,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function xN(e){if(!e)return gs;e=e._reactInternals;e:{if(El(e)!==e||e.tag!==1)throw Error(he(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Uo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(he(171))}if(e.tag===1){var r=e.type;if(Uo(r))return xT(e,r,t)}return t}function bN(e,t,r,o,n,i,a,s,l){return e=pC(r,o,!0,e,n,i,a,s,l),e.context=xN(null),r=e.current,o=Mo(),n=ps(r),i=ya(o,n),i.callback=t??null,fs(r,i,n),e.current.lanes=n,bd(e,n,o),Go(e,o),e}function Yh(e,t,r,o){var n=t.current,i=Mo(),a=ps(n);return r=xN(r),t.context===null?t.context=r:t.pendingContext=r,t=ya(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=fs(n,t,a),e!==null&&(hi(e,n,a,i),lh(e,n,a)),a}function Fh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function wP(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function mC(e,t){wP(e,t),(e=e.alternate)&&wP(e,t)}function kz(){return null}var SN=typeof reportError=="function"?reportError:function(e){console.error(e)};function hC(e){this._internalRoot=e}Qh.prototype.render=hC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(he(409));Yh(e,t,null,null)};Qh.prototype.unmount=hC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cl(function(){Yh(null,e,null,null)}),t[ba]=null}};function Qh(e){this._internalRoot=e}Qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=ZP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<os.length&&t!==0&&t<os[r].priority;r++);os.splice(r,0,e),r===0&&eT(e)}};function gC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function EP(){}function Fz(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=Fh(a);i.call(c)}}var a=bN(t,o,e,0,null,!1,!1,"",EP);return e._reactRootContainer=a,e[ba]=a.current,fd(e.nodeType===8?e.parentNode:e),Cl(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var s=o;o=function(){var c=Fh(l);s.call(c)}}var l=pC(e,0,!1,null,null,!1,!1,"",EP);return e._reactRootContainer=l,e[ba]=l.current,fd(e.nodeType===8?e.parentNode:e),Cl(function(){Yh(t,l,r,o)}),l}function Jh(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var s=n;n=function(){var l=Fh(a);s.call(l)}}Yh(t,a,e,n)}else a=Fz(r,t,e,n,o);return Fh(a)}YP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Gf(t.pendingLanes);r!==0&&(AS(t,r|1),Go(t,Or()),!(Et&6)&&(Jc=Or()+500,xs()))}break;case 13:Cl(function(){var o=Sa(e,1);if(o!==null){var n=Mo();hi(o,e,1,n)}}),mC(e,1)}};LS=function(e){if(e.tag===13){var t=Sa(e,134217728);if(t!==null){var r=Mo();hi(t,e,134217728,r)}mC(e,134217728)}};QP=function(e){if(e.tag===13){var t=ps(e),r=Sa(e,t);if(r!==null){var o=Mo();hi(r,e,t,o)}mC(e,t)}};ZP=function(){return Dt};JP=function(e,t){var r=Dt;try{return Dt=e,t()}finally{Dt=r}};Kb=function(e,t,r){switch(t){case"input":if(jb(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=Vh(o);if(!n)throw Error(he(90));NP(o),jb(o,n)}}}break;case"textarea":$P(e,r);break;case"select":t=r.value,t!=null&&jc(e,!!r.multiple,t,!1)}};zP=cC;BP=Cl;var zz={usingClientEntryPoint:!1,Events:[Cd,Mc,Vh,kP,FP,cC]},Wf={findFiberByHostInstance:pl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bz={bundleType:Wf.bundleType,version:Wf.version,rendererPackageName:Wf.rendererPackageName,rendererConfig:Wf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=VP(e),e===null?null:e.stateNode},findFiberByHostInstance:Wf.findFiberByHostInstance||kz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Vf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Vf.isDisabled&&Vf.supportsFiber))try{zh=Vf.inject(Bz),Vi=Vf}catch{}var Vf;hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zz;hn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gC(t))throw Error(he(200));return Lz(e,t,null,r)};hn.createRoot=function(e,t){if(!gC(e))throw Error(he(299));var r=!1,o="",n=SN;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=pC(e,1,!1,null,null,r,!1,o,n),e[ba]=t.current,fd(e.nodeType===8?e.parentNode:e),new hC(t)};hn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(he(188)):(e=Object.keys(e).join(","),Error(he(268,e)));return e=VP(t),e=e===null?null:e.stateNode,e};hn.flushSync=function(e){return Cl(e)};hn.hydrate=function(e,t,r){if(!Zh(t))throw Error(he(200));return Jh(null,e,t,!0,r)};hn.hydrateRoot=function(e,t,r){if(!gC(e))throw Error(he(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=SN;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=bN(t,null,e,1,r??null,n,!1,i,a),e[ba]=t.current,fd(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new Qh(t)};hn.render=function(e,t,r){if(!Zh(t))throw Error(he(200));return Jh(null,e,t,!1,r)};hn.unmountComponentAtNode=function(e){if(!Zh(e))throw Error(he(40));return e._reactRootContainer?(Cl(function(){Jh(null,null,e,!1,function(){e._reactRootContainer=null,e[ba]=null})}),!0):!1};hn.unstable_batchedUpdates=cC;hn.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Zh(r))throw Error(he(200));if(e==null||e._reactInternals===void 0)throw Error(he(38));return Jh(e,t,r,!1,o)};hn.version="18.3.1-next-f1338f8080-20240426"});var Ui=Nn((aee,EN)=>{"use strict";function wN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wN)}catch(e){console.error(e)}}wN(),EN.exports=CN()});var _N=Nn(vC=>{"use strict";var RN=Ui();vC.createRoot=RN.createRoot,vC.hydrateRoot=RN.hydrateRoot;var see});var TN=Nn(eg=>{"use strict";var Wz=N(),Vz=Symbol.for("react.element"),Hz=Symbol.for("react.fragment"),Uz=Object.prototype.hasOwnProperty,Gz=Wz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qz={key:!0,ref:!0,__self:!0,__source:!0};function PN(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)Uz.call(t,o)&&!qz.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:Vz,type:e,key:i,ref:a,props:n,_owner:Gz.current}}eg.Fragment=Hz;eg.jsx=PN;eg.jsxs=PN});var Nt=Nn((fee,NN)=>{"use strict";NN.exports=TN()});var Ce=Nn((kee,lg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n="",i=0;i<arguments.length;i++){var a=arguments[i];a&&(n=o(n,r(a)))}return n}function r(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var a in n)e.call(n,a)&&n[a]&&(i=o(i,a));return i}function o(n,i){return i?n?n+" "+i:n+i:n}typeof lg<"u"&&lg.exports?(t.default=t,lg.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var GN=Nn(Mt=>{"use strict";var CC=Symbol.for("react.element"),wC=Symbol.for("react.portal"),fg=Symbol.for("react.fragment"),dg=Symbol.for("react.strict_mode"),pg=Symbol.for("react.profiler"),mg=Symbol.for("react.provider"),hg=Symbol.for("react.context"),rB=Symbol.for("react.server_context"),gg=Symbol.for("react.forward_ref"),vg=Symbol.for("react.suspense"),yg=Symbol.for("react.suspense_list"),xg=Symbol.for("react.memo"),bg=Symbol.for("react.lazy"),oB=Symbol.for("react.offscreen"),UN;UN=Symbol.for("react.module.reference");function Bn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case CC:switch(e=e.type,e){case fg:case pg:case dg:case vg:case yg:return e;default:switch(e=e&&e.$$typeof,e){case rB:case hg:case gg:case bg:case xg:case mg:return e;default:return t}}case wC:return t}}}Mt.ContextConsumer=hg;Mt.ContextProvider=mg;Mt.Element=CC;Mt.ForwardRef=gg;Mt.Fragment=fg;Mt.Lazy=bg;Mt.Memo=xg;Mt.Portal=wC;Mt.Profiler=pg;Mt.StrictMode=dg;Mt.Suspense=vg;Mt.SuspenseList=yg;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return Bn(e)===hg};Mt.isContextProvider=function(e){return Bn(e)===mg};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===CC};Mt.isForwardRef=function(e){return Bn(e)===gg};Mt.isFragment=function(e){return Bn(e)===fg};Mt.isLazy=function(e){return Bn(e)===bg};Mt.isMemo=function(e){return Bn(e)===xg};Mt.isPortal=function(e){return Bn(e)===wC};Mt.isProfiler=function(e){return Bn(e)===pg};Mt.isStrictMode=function(e){return Bn(e)===dg};Mt.isSuspense=function(e){return Bn(e)===vg};Mt.isSuspenseList=function(e){return Bn(e)===yg};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fg||e===pg||e===dg||e===vg||e===yg||e===oB||typeof e=="object"&&e!==null&&(e.$$typeof===bg||e.$$typeof===xg||e.$$typeof===mg||e.$$typeof===hg||e.$$typeof===gg||e.$$typeof===UN||e.getModuleId!==void 0)};Mt.typeOf=Bn});var KN=Nn((ote,qN)=>{"use strict";qN.exports=GN()});var wx={"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 Ex={"### 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 ZR=typeof Sx<"u"?Sx:void 0,Rx="en";typeof navigator<"u"&&navigator.language?Rx=navigator.language=="zh-CN"?"zhcn":"en":ZR&&(Rx=ZR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function ge(e,...t){let r=Rx=="zhcn"?Ex[e]:e in wx?wx[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 ol(e,t){return e==t||Ex[e]==t}var Ir=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return ol(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 ol(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 ol(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 ol(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 ol(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 ol(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 _x={};Cx(_x,{JsonPatchError:()=>vr,_areEquals:()=>yf,applyOperation:()=>nl,applyPatch:()=>yc,applyReducer:()=>U5,deepClone:()=>V5,getValueByPointer:()=>il,validate:()=>e_,validator:()=>rm});var j5=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)}}(),W5=Object.prototype.hasOwnProperty;function Jp(e,t){return W5.call(e,t)}function em(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var o=[];for(var n in e)Jp(e,n)&&o.push(n);return o}function gr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function tm(e){for(var t=0,r=e.length,o;t<r;){if(o=e.charCodeAt(t),o>=48&&o<=57){t++;continue}return!1}return!0}function Li(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function gf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Zp(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Zp(e[t]))return!0}else if(typeof e=="object"){for(var o=em(e),n=o.length,i=0;i<n;i++)if(Zp(e[o[i]]))return!0}}return!1}function JR(e,t){var r=[e];for(var o in t){var n=typeof t[o]=="object"?JSON.stringify(t[o],null,2):t[o];typeof n<"u"&&r.push(o+": "+n)}return r.join(`
|
|
`)}var vf=function(e){j5(t,e);function t(r,o,n,i,a){var s=this.constructor,l=e.call(this,JR(r,{name:o,index:n,operation:i,tree:a}))||this;return l.name=o,l.index=n,l.operation=i,l.tree=a,Object.setPrototypeOf(l,s.prototype),l.message=JR(r,{name:o,index:n,operation:i,tree:a}),l}return t}(Error);var vr=vf,V5=gr,vc={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var o=e[t];return delete e[t],{newDocument:r,removed:o}},replace:function(e,t,r){var o=e[t];return e[t]=this.value,{newDocument:r,removed:o}},move:function(e,t,r){var o=il(r,this.path);o&&(o=gr(o));var n=nl(r,{op:"remove",path:this.from}).removed;return nl(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:o}},copy:function(e,t,r){var o=il(r,this.from);return nl(r,{op:"add",path:this.path,value:gr(o)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:yf(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},H5={add:function(e,t,r){return tm(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){var o=e.splice(t,1);return{newDocument:r,removed:o[0]}},replace:function(e,t,r){var o=e[t];return e[t]=this.value,{newDocument:r,removed:o}},move:vc.move,copy:vc.copy,test:vc.test,_get:vc._get};function il(e,t){if(t=="")return e;var r={op:"_get",path:t};return nl(e,r),r.value}function nl(e,t,r,o,n,i){if(r===void 0&&(r=!1),o===void 0&&(o=!0),n===void 0&&(n=!0),i===void 0&&(i=0),r&&(typeof r=="function"?r(t,0,e,t.path):rm(t,0)),t.path===""){var a={newDocument:e};if(t.op==="add")return a.newDocument=t.value,a;if(t.op==="replace")return a.newDocument=t.value,a.removed=e,a;if(t.op==="move"||t.op==="copy")return a.newDocument=il(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=yf(e,t.value),a.test===!1)throw new vr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}else{if(t.op==="remove")return a.removed=e,a.newDocument=null,a;if(t.op==="_get")return t.value=e,a;if(r)throw new vr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}}else{o||(e=gr(e));var s=t.path||"",l=s.split("/"),c=e,u=1,f=l.length,d=void 0,m=void 0,g=void 0;for(typeof r=="function"?g=r:g=rm;;){if(m=l[u],m&&m.indexOf("~")!=-1&&(m=gf(m)),n&&(m=="__proto__"||m=="prototype"&&u>0&&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&&!tm(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);tm(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=H5[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=vc[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&&u<f&&(!c||typeof c!="object"))throw new vr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}}function yc(e,t,r,o,n){if(o===void 0&&(o=!0),n===void 0&&(n=!0),r&&!Array.isArray(t))throw new vr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(e=gr(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=nl(e,t[a],r,!0,n,a),e=i[a].newDocument;return i.newDocument=e,i}function U5(e,t,r){var o=nl(e,t);if(o.test===!1)throw new vr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return o.newDocument}function rm(e,t,r,o){if(typeof e!="object"||e===null||Array.isArray(e))throw new vr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(vc[e.op]){if(typeof e.path!="string")throw new vr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)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")&&Zp(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=e_([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 e_(e,t,r){try{if(!Array.isArray(e))throw new vr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)yc(gr(t),gr(e),r||!0);else{r=r||rm;for(var o=0;o<e.length;o++)r(e[o],o,t,void 0)}}catch(n){if(n instanceof vr)return n;throw n}}function yf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Array.isArray(e),o=Array.isArray(t),n,i,a;if(r&&o){if(i=e.length,i!=t.length)return!1;for(n=i;n--!==0;)if(!yf(e[n],t[n]))return!1;return!0}if(r!=o)return!1;var s=Object.keys(e);if(i=s.length,i!==Object.keys(t).length)return!1;for(n=i;n--!==0;)if(!t.hasOwnProperty(s[n]))return!1;for(n=i;n--!==0;)if(a=s[n],!yf(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var Nx={};Cx(Nx,{compare:()=>om,generate:()=>Ox,observe:()=>Z5,unobserve:()=>Q5});var Px=new WeakMap,G5=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),q5=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function K5(e){return Px.get(e)}function X5(e,t){return e.observers.get(t)}function Y5(e,t){e.observers.delete(t.callback)}function Q5(e,t){t.unobserve()}function Z5(e,t){var r=[],o,n=K5(e);if(!n)n=new G5(e),Px.set(e,n);else{var i=X5(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(){Ox(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(){Ox(o),clearTimeout(o.next),Y5(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 q5(t,o)),o}function Ox(e,t){t===void 0&&(t=!1);var r=Px.get(e.object);Tx(r.value,e.object,e.patches,"",t),e.patches.length&&yc(r.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function Tx(e,t,r,o,n){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=em(t),a=em(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(Jp(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)?Tx(f,d,r,o+"/"+Li(u),n):f!==d&&(s=!0,n&&r.push({op:"test",path:o+"/"+Li(u),value:gr(f)}),r.push({op:"replace",path:o+"/"+Li(u),value:gr(d)}))}else Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:o+"/"+Li(u),value:gr(f)}),r.push({op:"remove",path:o+"/"+Li(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;c<i.length;c++){var u=i[c];!Jp(e,u)&&t[u]!==void 0&&r.push({op:"add",path:o+"/"+Li(u),value:gr(t[u])})}}}function om(e,t,r){r===void 0&&(r=!1);var o=[];return Tx(e,t,o,"",r),o}var YX=Object.assign({},_x,Nx,{JsonPatchError:vf,deepClone:gr,escapePathComponent:Li,unescapePathComponent:gf});var nm=Symbol("STORE_MUTATIONS"),Ix=class{_data;_mutationRecords=[];storedMinVersion=0;_version=0;get version(){return this._version}flush(){return{operations:this._mutationRecords.slice(0),fromVersion:this.storedMinVersion,toVersion:this.version}}flushDone(t){this._mutationRecords=this._mutationRecords.slice(t-this.storedMinVersion),this.storedMinVersion=t}patchVersionAcceptable(t){return this._version!=-1&&t<=this._version}patchData(t){let r=gr(this._data);yc(this._data,t),this._version+=t.length,this.storedMinVersion=this._version,this.dispatch(t,r)}get data(){return gr(this._data)}static[nm]=[];constructor(t){this._data=gr(t)}sync(t,r){let o=this._data,n=om(o,t);Object.assign(this._data,t),this.storedMinVersion=this._version=r,this.dispatch(n,o)}subscribers=[];subscribe(t,r){this.subscribers.push([t,r])}unsubscribe(t){this.subscribers=this.subscribers.filter(([r,o])=>o!=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:il(r,i)))})}),o.forEach((n,i)=>{let a=i==="/"?this._data:il(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 zr(e,t,r){return e.constructor[nm]||(e.constructor[nm]=[]),e.constructor[nm].push(t),{value:function(...o){let n=gr(this._data);r.value.apply(this,o);let i=om(n,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,n))}}}var al=class extends Ix{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Nr([zr],al.prototype,"setSID",1);var jo=class extends al{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([zr],jo.prototype,"setWebviewFromSid",1),Nr([zr],jo.prototype,"setTitle",1),Nr([zr],jo.prototype,"setProgress",1),Nr([zr],jo.prototype,"setLastError",1),Nr([zr],jo.prototype,"setQueueSize",1),Nr([zr],jo.prototype,"setExecutingNodeTitle",1),Nr([zr],jo.prototype,"setCurrentForm",1),Nr([zr],jo.prototype,"setHasPSDNodes",1),Nr([zr],jo.prototype,"setMaxImageWH",1),Nr([zr],jo.prototype,"setComfyUserToken",1);var ki=class extends al{constructor(t,r){super(t||{uname:"",comfyUserToken:"",activeDocumentID:0,documents:{},canvasStateID:0,selectionStateID:"",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([zr],ki.prototype,"setUName",1),Nr([zr],ki.prototype,"setDocument",1),Nr([zr],ki.prototype,"setCanvasStateID",1),Nr([zr],ki.prototype,"setSelectionStateID",1),Nr([zr],ki.prototype,"setHistoryStateID",1),Nr([zr],ki.prototype,"setComfyUserToken",1);var im=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 _r=window.comfyAPI.app.app,dY=window.comfyAPI.ui.$el,sn=window.comfyAPI.api.api;var $x=class extends im{createStore(t,r){return new ki(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}},ln=new $x,ht=new jo;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 r_(){document.title!==ht.data.title&&ht.setTitle(document.title),requestAnimationFrame(r_)}requestAnimationFrame(r_);var t_=!1;async function o_(){if(t_)return Promise.resolve();sn.user&&ht.setComfyUserToken(sn.user);let e=await sn.getSetting("sdppp.maxImageWH");e&&ht.setMaxImageWH(e),t_=!0}function J5(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function am(e){return J5(e)}globalThis.sdpppX=globalThis.sdpppX||{};var ca=globalThis.sdpppX;var xf=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:am(r).id;return t.data.documents[o]}static makeLayerOptions(t,r){return r.concat(t.layers.map(n=>n.identify))}};function Dx(){let e=ln.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(sn.user&&sn.user!=r.data.comfyUserToken)return;let o=xf.makeDocumentDataOptions(r).map(n=>Mx(n,r.data.uname));t.push(...o)}),t}function n_(e,t){let r=[""],o=sm(e);if(!o)return[];let n=xf.makeLayerOptions(o.documentData,t);return r.push(...n),r}function i_(){return sn.user?Object.values(ln.getAllStore()).filter(e=>sn.user==e.data.comfyUserToken).length>0:ln.storeCount()}function Mx(e,t){return`${t}/${e}`}function sm(e){if(!e||!e.split)return null;let t=ln.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:am(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 e6=function(e){let t=_r.graph.links;return Array.isArray(t)?t.find(o=>o&&o.origin_id==e):t.get(e)};function Ax(e){let t=_r.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=e6(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}}ca.findDocumentNodeRecursive=Ax;var lm=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 a_(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 lm(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 s_(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 ii=Object.create(null);ii.open="0";ii.close="1";ii.ping="2";ii.pong="3";ii.message="4";ii.upgrade="5";ii.noop="6";var bf=Object.create(null);Object.keys(ii).forEach(e=>{bf[ii[e]]=e});var Sf={type:"error",data:"parser error"};var u_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",f_=typeof ArrayBuffer=="function",d_=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Cf=({type:e,data:t},r,o)=>u_&&t instanceof Blob?r?o(t):l_(t,o):f_&&(t instanceof ArrayBuffer||d_(t))?r?o(t):l_(new Blob([t]),o):o(ii[e]+(t||"")),l_=(e,t)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];t("b"+(o||""))},r.readAsDataURL(e)};function c_(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Lx;function p_(e,t){if(u_&&e.data instanceof Blob)return e.data.arrayBuffer().then(c_).then(t);if(f_&&(e.data instanceof ArrayBuffer||d_(e.data)))return t(c_(e.data));Cf(e,!1,r=>{Lx||(Lx=new TextEncoder),t(Lx.encode(r))})}var m_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<m_.length;e++)wf[m_.charCodeAt(e)]=e;var h_=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<r;o+=4)i=wf[e.charCodeAt(o)],a=wf[e.charCodeAt(o+1)],s=wf[e.charCodeAt(o+2)],l=wf[e.charCodeAt(o+3)],u[n++]=i<<2|a>>4,u[n++]=(a&15)<<4|s>>2,u[n++]=(s&3)<<6|l&63;return c};var t6=typeof ArrayBuffer=="function",Ef=(e,t)=>{if(typeof e!="string")return{type:"message",data:g_(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:r6(e.substring(1),t)}:bf[r]?e.length>1?{type:bf[r],data:e.substring(1)}:{type:bf[r]}:Sf},r6=(e,t)=>{if(t6){let r=h_(e);return g_(r,t)}else return{base64:!0,data:e}},g_=(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 v_="",y_=(e,t)=>{let r=e.length,o=new Array(r),n=0;e.forEach((i,a)=>{Cf(i,!1,s=>{o[a]=s,++n===r&&t(o.join(v_))})})},x_=(e,t)=>{let r=e.split(v_),o=[];for(let n=0;n<r.length;n++){let i=Ef(r[n],t);if(o.push(i),i.type==="error")break}return o};function b_(){return new TransformStream({transform(e,t){p_(e,r=>{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 kx;function cm(e){return e.reduce((t,r)=>t+r.length,0)}function um(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),o=0;for(let n=0;n<t;n++)r[n]=e[0][o++],o===e[0].length&&(e.shift(),o=0);return e.length&&o<e[0].length&&(e[0]=e[0].slice(o)),r}function S_(e,t){kx||(kx=new TextDecoder);let r=[],o=0,n=-1,i=!1;return new TransformStream({transform(a,s){for(r.push(a);;){if(o===0){if(cm(r)<1)break;let l=um(r,1);i=(l[0]&128)===128,n=l[0]&127,n<126?o=3:n===126?o=1:o=2}else if(o===1){if(cm(r)<2)break;let l=um(r,2);n=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),o=3}else if(o===2){if(cm(r)<8)break;let l=um(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){s.enqueue(Sf);break}n=u*Math.pow(2,32)+c.getUint32(4),o=3}else{if(cm(r)<n)break;let l=um(r,n);s.enqueue(Ef(i?l:kx.decode(l),t)),o=0}if(n===0||n>e){s.enqueue(Sf);break}}}})}var Fx=4;function Ut(e){if(e)return o6(e)}function o6(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;n<r.length;n++)if(o=r[n],o===t||o.fn===t){r.splice(n,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Ut.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,n=r.length;o<n;++o)r[o].apply(this,t)}return this};Ut.prototype.emitReserved=Ut.prototype.emit;Ut.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ut.prototype.hasListeners=function(e){return!!this.listeners(e).length};var ua=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Io=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),C_="arraybuffer";function fm(e,...t){return t.reduce((r,o)=>(e.hasOwnProperty(o)&&(r[o]=e[o]),r),{})}var n6=Io.setTimeout,i6=Io.clearTimeout;function fa(e,t){t.useNativeTimers?(e.setTimeoutFn=n6.bind(Io),e.clearTimeoutFn=i6.bind(Io)):(e.setTimeoutFn=Io.setTimeout.bind(Io),e.clearTimeoutFn=Io.clearTimeout.bind(Io))}var a6=1.33;function w_(e){return typeof e=="string"?s6(e):Math.ceil((e.byteLength||e.size)*a6)}function s6(e){let t=0,r=0;for(let o=0,n=e.length;o<n;o++)t=e.charCodeAt(o),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(o++,r+=4);return r}function dm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function E_(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function R_(e){let t={},r=e.split("&");for(let o=0,n=r.length;o<n;o++){let i=r[o].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var pm=class extends Error{constructor(t,r,o){super(t),this.description=r,this.context=o,this.type="TransportError"}},da=class extends Ut{constructor(t){super(),this.writable=!1,fa(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,o){return super.emitReserved("error",new pm(t,r,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Ef(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=E_(t);return r.length?"?"+r:""}};var Rf=class extends da{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{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)};x_(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,y_(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]=dm()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var __=!1;try{__=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var O_=__;function l6(){}var zx=class extends Rf{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}},Ya=class e extends Ut{constructor(t,r,o){super(),this.createRequest=t,fa(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=fm(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=l6,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()}};Ya.requestsCount=0;Ya.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",P_);else if(typeof addEventListener=="function"){let e="onpagehide"in Io?"pagehide":"unload";addEventListener(e,P_,!1)}}function P_(){for(let e in Ya.requests)Ya.requests.hasOwnProperty(e)&&Ya.requests[e].abort()}var c6=function(){let e=T_({xdomain:!1});return e&&e.responseType!==null}(),Qa=class extends zx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=c6&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ya(T_,this.uri(),t)}};function T_(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||O_))return new XMLHttpRequest}catch{}if(!t)try{return new Io[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var N_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",jx=class extends da{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,o=N_?{}:fm(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<t.length;r++){let o=t[r],n=r===t.length-1;Cf(o,this.supportsBinary,i=>{try{this.doWrite(o,i)}catch{}n&&ua(()=>{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]=dm()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Bx=Io.WebSocket||Io.MozWebSocket,Za=class extends jx{createSocket(t,r,o){return N_?new Bx(t,r,o):r?new Bx(t,r):new Bx(t)}doWrite(t,r){this.ws.send(r)}};var xc=class extends da{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=S_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=t.readable.pipeThrough(r).getReader(),n=b_();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<t.length;r++){let o=t[r],n=r===t.length-1;this._writer.write(o).then(()=>{n&&ua(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Wx={websocket:Za,webtransport:xc,polling:Qa};var u6=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,f6=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function bc(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=u6.exec(e||""),i={},a=14;for(;a--;)i[f6[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=d6(i,i.path),i.queryKey=p6(i,i.query),i}function d6(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 p6(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,i){n&&(r[n]=i)}),r}var Vx=typeof addEventListener=="function"&&typeof removeEventListener=="function",mm=[];Vx&&addEventListener("offline",()=>{mm.forEach(e=>e())},!1);var sl=class e extends Ut{constructor(t,r){if(super(),this.binaryType=C_,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=bc(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=bc(r.host).host);fa(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=R_(this.opts.query)),Vx&&(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"})},mm.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Fx,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;o<this.writeBuffer.length;o++){let n=this.writeBuffer[o].data;if(n&&(r+=w_(n)),o>0&&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,ua(()=>{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(),Vx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=mm.indexOf(this._offlineEventListener);o!==-1&&mm.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};sl.protocol=Fx;var hm=class extends sl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),o=!1;sl.priorWebsocketSuccess=!1;let n=()=>{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;sl.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;o<t.length;o++)~this.transports.indexOf(t[o])&&r.push(t[o]);return r}},Sc=class extends hm{constructor(t,r={}){let o=typeof t=="object"?t:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(n=>Wx[n]).filter(n=>!!n)),super(t,o)}};var VQ=Sc.protocol;function I_(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=bc(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 Xx={};Cx(Xx,{Decoder:()=>qx,Encoder:()=>Gx,PacketType:()=>St,protocol:()=>L_});var h6=typeof ArrayBuffer=="function",g6=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,$_=Object.prototype.toString,v6=typeof Blob=="function"||typeof Blob<"u"&&$_.call(Blob)==="[object BlobConstructor]",y6=typeof File=="function"||typeof File<"u"&&$_.call(File)==="[object FileConstructor]";function Of(e){return h6&&(e instanceof ArrayBuffer||g6(e))||v6&&e instanceof Blob||y6&&e instanceof File}function _f(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,o=e.length;r<o;r++)if(_f(e[r]))return!0;return!1}if(Of(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return _f(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&_f(e[r]))return!0;return!1}function D_(e){let t=[],r=e.data,o=e;return o.data=Hx(r,t),o.attachments=t.length,{packet:o,buffers:t}}function Hx(e,t){if(!e)return e;if(Of(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let o=0;o<e.length;o++)r[o]=Hx(e[o],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Hx(e[o],t));return r}return e}function M_(e,t){return e.data=Ux(e.data,t),delete e.attachments,e}function Ux(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Ux(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ux(e[r],t));return e}var x6=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],L_=5,St;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(St||(St={}));var Gx=class{constructor(t){this.replacer=t}encode(t){return(t.type===St.EVENT||t.type===St.ACK)&&_f(t)?this.encodeAsBinary({type:t.type===St.EVENT?St.BINARY_EVENT:St.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===St.BINARY_EVENT||t.type===St.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){let r=D_(t),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}};function A_(e){return Object.prototype.toString.call(e)==="[object Object]"}var qx=class e extends Ut{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let o=r.type===St.BINARY_EVENT;o||r.type===St.BINARY_ACK?(r.type=o?St.EVENT:St.ACK,this.reconstructor=new Kx(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Of(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,o={type:Number(t.charAt(0))};if(St[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===St.BINARY_EVENT||o.type===St.BINARY_ACK){let i=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let a=t.substring(i,r);if(a!=Number(a)||t.charAt(r)!=="-")throw new Error("Illegal attachments");o.attachments=Number(a)}if(t.charAt(r+1)==="/"){let i=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););o.nsp=t.substring(i,r)}else o.nsp="/";let n=t.charAt(r+1);if(n!==""&&Number(n)==n){let i=r+1;for(;++r;){let a=t.charAt(r);if(a==null||Number(a)!=a){--r;break}if(r===t.length)break}o.id=Number(t.substring(i,r+1))}if(t.charAt(++r)){let i=this.tryParse(t.substr(r));if(e.isPayloadValid(o.type,i))o.data=i;else throw new Error("invalid payload")}return o}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case St.CONNECT:return A_(r);case St.DISCONNECT:return r===void 0;case St.CONNECT_ERROR:return typeof r=="string"||A_(r);case St.EVENT:case St.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&x6.indexOf(r[0])===-1);case St.ACK:case St.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Kx=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=M_(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function cn(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var b6=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Cc=class extends Ut{constructor(t,r,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[cn(t,"open",this.onopen.bind(this)),cn(t,"packet",this.onpacket.bind(this)),cn(t,"error",this.onerror.bind(this)),cn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var o,n,i;if(b6.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let a={type:St.EVENT,data:r};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,f=r.pop();this._registerAckCallback(u,f),a.id=u}let s=(n=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||n===void 0?void 0:n.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,r){var o;let n=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(n===void 0){this.acks[t]=r;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);r.call(this,new Error("operation has timed out"))},n),a=(...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;o<r.length;o++)if(t===r[o])return r.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let o=0;o<r.length;o++)if(t===r[o])return r.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let o of r)o.apply(this,t.data)}}};function ll(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ll.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};ll.prototype.reset=function(){this.attempts=0};ll.prototype.setMin=function(e){this.ms=e};ll.prototype.setMax=function(e){this.max=e};ll.prototype.setJitter=function(e){this.jitter=e};var wc=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,fa(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 ll({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||Xx;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 Sc(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=cn(r,"open",function(){o.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=cn(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(cn(t,"ping",this.onping.bind(this)),cn(t,"data",this.ondata.bind(this)),cn(t,"error",this.onerror.bind(this)),cn(t,"close",this.onclose.bind(this)),cn(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){ua(()=>{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 Cc(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;o<r.length;o++)this.engine.write(r[o],t.options)}cleanup(){this.subs.forEach(t=>t()),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 Pf={};function Tf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=I_(e,t.path||"/socket.io"),o=r.source,n=r.id,i=r.path,a=Pf[n]&&i in Pf[n].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new wc(o,t):(Pf[n]||(Pf[n]=new wc(o,t)),l=Pf[n]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Tf,{Manager:wc,Socket:Cc,io:Tf,connect:Tf});var k_=`502
|
|
`;var gm=k_.trim();var Yx=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=Tf(t,{transports:["websocket"],path:r,query:{api_level:gm},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 F_(...e){return e.reduce((t,r)=>r(t),Yx)}var ai=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",gm)}};function z_(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,o)=>{r.action=="extractPSD"&&_r.graph.nodes.forEach(n=>{n.type=="SDPPP Get Document"&&ai.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 B_={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var ym=[];ca.widgetable=ca.widgetable||{};ca.widgetable.add=function(e,t){typeof t=="function"?ym.push([e,{formatter:t,setter:null}]):ym.push([e,t])};function xm(e,t,r){let o=ym.find(([a])=>j_(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)),(_r.workflowManager||_r.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function In(e){return e?.nodes.map(t=>{if(t.mode!=0)return;let r=vm(t);if(!r||r.startsWith(".")||!t.widgets||t.widgets.length==0)return;let o=ym.find(([i])=>j_(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=vm(t),n=vm(r);return o=o.startsWith("#")?o.slice(1).trim():o.trim(),n=n.startsWith("#")?n.slice(1).trim():n.trim(),o.localeCompare(n)})}function j_(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function vm(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}ca.getNodeTitle=vm;var C6=new Map,cl=C6;function V_(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=_r.workflowManager||_r.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;i<r;i++){let c=function(f){if(Object.keys(f).length>0){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 _r.graphToPrompt(),s=null,l="";try{let f=await sn.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}cl.set(l,o);for(let f of a.workflow.nodes){let d=_r.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=_r.graph.nodes.find(a=>a.id==r);!i||n==i.widgets[o].value||xm(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 _r.loadGraphData(n);let i=In(_r.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 _r.loadGraphData(B_):await W_(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 W_(this.workflowManager,i),await new Promise(s=>setTimeout(s,300));let a=In(_r.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=_r.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 W_(e,t){_r.workflowManager==e?await t.load():(await e.openWorkflow(t),await _r.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var $n=class e extends F_(a_(ht,"comfy"),s_(ln,"photoshop"),z_,V_){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};var bm=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)}},Sm=class extends bm{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}}},Fi=class e extends Sm{static create(t,r){let o=Dx(),n=t.size.slice(0),i=t.addWidget("combo",r,o[0]||"",()=>{},{forceInput:!0,values:Dx});return i.serializeValue=async()=>{let a=sm(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(){U_(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Ir.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=ln.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=Mx(r.data.documents[r.data.activeDocumentID].identify,t)}}},si=class extends Sm{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 Qx(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=sm(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}}}}},w6={extraOptions:[],documentWidgetInNode:null},Qx=class extends si{documentWidgetInNode;constructor(t,r,o=w6){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=n_(t.widget.value,this.extraOptions),U_(this.widget,this.widget.options.values))}},H_=0,Ec=class extends bm{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=Ax(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(()=>{ln.storeCount()==0&&Date.now()-H_>3e3&&(H_=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`<h2
|
|
style="color: var(--fg-color);">${ge("How to use .ccx file")}</h2><h4
|
|
style="color: var(--fg-color);">${ge("1. If you have installed Adobe Creative Cloud")}</h4><p
|
|
style="color: var(--fg-color);">${ge("Just double click the .ccx file, it will install the plugin automatically")}</p><h4
|
|
style="color: var(--fg-color);">${ge("2. If you don't have Adobe Creative Cloud")}</h4><p
|
|
style="color: var(--fg-color);">${ge("Rename .ccx to .zip and extract it into ")}<i>[${ge("Photoshop directory")}]/Plug-ins</i> ${ge("or")} <i>[${ge("Photoshop directory")}]/Plug-ins/Generator</i></p><img
|
|
width=400 src="/sd-ppp-static/ccx-help.png"/>
|
|
`)},300))})}update(){this.widget.label=ln.storeCount()>0&&$n.instance.id?ge("current ComfyUI pageid: {0}",$n.instance.id.slice(0,4)):ge("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function U_(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 pa=class extends ai{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new Ec(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||i_()||(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 Cm=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},Nf=class extends Cm{get documentWidget(){return G_(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},If=class extends Cm{get documentWidget(){return G_(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function G_(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 ai.nodeMap.get(o)}var li=class extends pa{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof Nf||r instanceof If));return t?t.documentWidget:this.widgets.find(r=>r instanceof Fi)}inputs=[];widgets=[];constructor(t){super(t);let r=null;for(let o=0;o<this.node.widgets?.length;o++){let n=this.node.widgets[o].name;if(!n||n=="sdppp")continue;let i=this.node.constructor.nodeData.input.required[n]||this.node.constructor.nodeData.input.optional[n];if(i){if(i[1].sdppp_type=="DOCUMENT_nameid"){let a=Fi.link(t,this.node.widgets[o]);r=r||a,this.widgets.push(a)}i[1].sdppp_type=="LAYER_select"&&(this.node.widgets[o].type="combo",this.widgets.push(new si(t,this.node.widgets[o],{extraOptions:Ir.getSpecialLayerForGet()})))}}for(let o=0;o<this.node.inputs?.length;o++){let n=this.node.inputs[o].name,i=this.node.constructor.nodeData.input.required[n]||this.node.constructor.nodeData.input.optional[n];i[1].sdppp_type=="DOCUMENT"&&this.inputs.push(new Nf(t,o)),i[1].sdppp_type=="LAYER"&&this.inputs.push(new If(t,o))}}async update(){this.node.widgets?.forEach(t=>{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 si||i instanceof Ec)&&i.linkDocumentWidget(n)})}})}};var wm=class extends li{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))}},Rc=class extends li{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 li{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ge(t.name)),this.node.outputs.forEach(t=>t.label=ge(t.name))}},Rm=class extends li{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))}},_m=class extends li{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))}},Om=class extends pa{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=Fi.create(t,"document"),o=si.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)}},Pm=class extends li{get documentWidget(){return this.widgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&$n.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=ln.getAllPhotoshopDocumentData(),[o,n]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[o].sid,n):$n.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 Tm=class extends pa{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Fi.create(t,"document"),o=si.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(Im["SDPPP Get Selection"],{pos:this.node.pos});new Rc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(Im.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)}},Nm=class extends pa{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Fi.create(t,"document"),o=si.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 Zx={"Get Image From Photoshop Layer":Tm,"Send Images To Photoshop":Nm,"SDPPP Get Text From Layer":Om,"SDPPP Parse Layer Info":Em,"SDPPP Get Linked Layers":_m,"SDPPP Get Layers In Group":Rm,"SDPPP Get Layer By ID":wm,"SDPPP Get Document":Pm,"SDPPP Get Selection":Rc},Im={};function q_(e,t){let r=e.comfyClass||t.name;if(Im[r]=t,r in Zx)e.title=ge(t.display_name),t.display_name=ge(t.display_name),ai.registerNodeType(e,t,Zx[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 Zx&&(n=!0)}),n&&ai.registerNodeType(e,t,li)}else return}var UR=E(_N(),1),GR=E(N(),1);var ON=`#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 Up=E(N(),1);var IN=E(N(),1);var wo=E(Nt(),1),Kz=()=>{let[e,t]=(0,IN.useState)(ht.data.maxImageWH),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()};return(0,wo.jsxs)("div",{className:"settings-container",children:[(0,wo.jsx)("h2",{children:ge("SDPPP Settings/Misc")}),(0,wo.jsx)("div",{className:"settings-section",children:(0,wo.jsx)("p",{children:ge("Comfy URL: {0}",location.origin)})}),(0,wo.jsxs)("div",{className:"settings-section settings-row",children:[(0,wo.jsx)("div",{className:"settings-label",children:(0,wo.jsx)("label",{htmlFor:"maxImageSize",children:ge("Maximum Image Size (px):")})}),(0,wo.jsx)("div",{className:"settings-control",children:(0,wo.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),sn.storeSetting("sdppp.maxImageWH",n))},min:"256"})})]}),(0,wo.jsxs)("div",{className:"settings-section settings-row",children:[(0,wo.jsx)("div",{className:"settings-label",children:(0,wo.jsx)("label",{children:ge("Photoshop plugin")})}),(0,wo.jsx)("div",{className:"settings-control",children:(0,wo.jsx)("button",{onClick:r,className:"download-button",children:ge("Download")})})]})]})},$N=Kz;var D5=E(N(),1);var sg=E(N(),1);var MN=E(N(),1);var DN=E(N(),1);function ru(e){return{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var Gi=class extends MN.default.Component{computeUIWeightCSS(t){return ru(t)}};var rg=E(Nt(),1),og=class extends Gi{state={filter:""};handleSelectUpdate=(t,r)=>{this.props.onSelectUpdate(t,r),this.setState({filter:""})};render(){let{options:t,value:r}=this.props;return(0,rg.jsx)("sp-picker",{class:"sdppp-dropdown-widget",size:"s",style:{...this.computeUIWeightCSS(this.props.uiWeight)},children:(0,rg.jsx)("sp-menu",{slot:"options",children:t.map((o,n)=>this.state.filter&&!o.includes(this.state.filter)?"":(0,rg.jsx)("sp-menu-item",{...tg(o)===tg(r)?{selected:!0}:{},onClick:()=>this.handleSelectUpdate(o,n),children:tg(o)},tg(o)))})})}};function tg(e){return typeof e=="string"?e:e.content}var AN=E(Nt(),1),ng=class extends Gi{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,AN.jsx)("sp-textfield",{style:{...this.computeUIWeightCSS(this.props.uiWeight)},onInput:this.onInput,value:t})}};var LN=E(N(),1);var Ed=E(Nt(),1);var ig=class extends Gi{hiddenDivRef=LN.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,Ed.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,Ed.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,Ed.jsx)("p",{ref:this.hiddenDivRef,style:{fontSize:14,visibility:"hidden",whiteSpace:"pre-line"},children:this.props.value})]})}};var kN=E(Nt(),1),ag=class extends Gi{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,kN.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 uo=E(Nt(),1);function xC({formDatas:e,onWidgetRender:t,onWidgetChange:r,onTitleRender:o}){let n=(0,sg.useMemo)(()=>e.map(i=>{let a=(s,l,c)=>{if(!s.keepRender)return s;if(l.outputType==="error")return s.result.push((0,uo.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,uo.jsx)(ng,{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,uo.jsx)(og,{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,uo.jsx)(ag,{uiWeight:l.uiWeight||12,name:l.name,value:l.value,onValueChange:u=>{r(i.id,c,u,i)}},c)):s.result.push((0,uo.jsx)(ig,{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,uo.jsxs)("div",{className:"workflow-edit-field",children:[(0,uo.jsx)("div",{className:"workflow-edit-field-title",title:i.title,style:{...ru(i.uiWeightSum<=8&&i.widgets.length==1?4:12)},children:o?o(i.title,i):(0,uo.jsx)("span",{children:i.title})}),i.widgets.reduce(a,{keepRender:!0,result:[]}).result.map((s,l)=>(0,uo.jsx)(yC,{children:s},l))]},i.id)}),[e,t,r,o]);return(0,uo.jsxs)(uo.Fragment,{children:[e?.length?"":(0,uo.jsx)("span",{className:"list-error-label",children:ge("no suitable node to control in this workflow")}),(0,uo.jsx)("div",{className:"workflow-edit-content",children:n})]})}var yC=class extends sg.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,uo.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;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Z.apply(null,arguments)}var _g=E(N());function ie(e){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(e)}var Xz=Symbol.for("react.element"),Yz=Symbol.for("react.transitional.element"),Qz=Symbol.for("react.fragment");function Rd(e){return e&&ie(e)==="object"&&(e.$$typeof===Xz||e.$$typeof===Yz)&&e.type===Qz}var FN=E(N());function vi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return FN.default.Children.forEach(e,function(o){o==null&&!t.keepEmpty||(Array.isArray(o)?r=r.concat(vi(o)):Rd(o)&&o.props?r=r.concat(vi(o.props.children,t)):r.push(o))}),r}var bC={},Zz=[],Jz=function(t){Zz.push(t)};function Rl(e,t){if(0)var r}function eB(e,t){if(0)var r}function zN(){bC={}}function BN(e,t,r){!t&&!bC[r]&&(e(!1,r),bC[r]=!0)}function cg(e,t){BN(Rl,e,t)}function jN(e,t){BN(eB,e,t)}cg.preMessage=Jz;cg.resetWarned=zN;cg.noteOnce=jN;var Kt=cg;function WN(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 ug(e){var t=WN(e,"string");return ie(t)=="symbol"?t:t+""}function _(e,t,r){return(t=ug(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VN(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 T(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VN(Object(r),!0).forEach(function(o){_(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VN(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}var HN=E(N()),SC=E(Ui());function _l(e){return e instanceof HTMLElement||e instanceof SVGElement}function tB(e){return e&&ie(e)==="object"&&_l(e.nativeElement)?e.nativeElement:_l(e)?e:null}function Ol(e){var t=tB(e);if(t)return t;if(e instanceof HN.default.Component){var r;return(r=SC.default.findDOMNode)===null||r===void 0?void 0:r.call(SC.default,e)}return null}var Sg=E(N()),_d=E(KN());var XN=E(N());function qi(e,t,r){var o=XN.useRef({});return(!("value"in o.current)||r(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}var nB=Number(Sg.version.split(".")[0]),Od=function(t,r){typeof t=="function"?t(r):ie(t)==="object"&&t&&"current"in t&&(t.current=r)},Wr=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var n=r.filter(Boolean);return n.length<=1?n[0]:function(i){r.forEach(function(a){Od(a,i)})}},gn=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return qi(function(){return Wr.apply(void 0,r)},r,function(n,i){return n.length!==i.length||n.every(function(a,s){return a!==i[s]})})},yi=function(t){var r,o;if(!t)return!1;if(YN(t)&&nB>=19)return!0;var n=(0,_d.isMemo)(t)?t.type.type:t.type;return!(typeof n=="function"&&!((r=n.prototype)!==null&&r!==void 0&&r.render)&&n.$$typeof!==_d.ForwardRef||typeof t=="function"&&!((o=t.prototype)!==null&&o!==void 0&&o.render)&&t.$$typeof!==_d.ForwardRef)};function YN(e){return(0,Sg.isValidElement)(e)&&!Rd(e)}var bs=function(t){if(t&&YN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var Pr=E(N());var xi=E(N()),Cg=xi.createContext(null);function QN(e){var t=e.children,r=e.onBatchResize,o=xi.useRef(0),n=xi.useRef([]),i=xi.useContext(Cg),a=xi.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 xi.createElement(Cg.Provider,{value:a},t)}var JN=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__;n<i.length;n++){var a=i[n];r.call(o,a[1],a[0])}},t}()}(),EC=typeof window<"u"&&typeof document<"u"&&window.document===document,wg=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),iB=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(wg):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),aB=2;function sB(e,t){var r=!1,o=!1,n=0;function i(){r&&(r=!1,e()),o&&s()}function a(){iB(i)}function s(){var l=Date.now();if(r){if(l-n<aB)return;o=!0}else r=!0,o=!1,setTimeout(a,t);n=l}return s}var lB=20,cB=["top","right","bottom","left","width","height","size","weight"],uB=typeof MutationObserver<"u",fB=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=sB(this.refresh.bind(this),lB)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,o=r.indexOf(t);~o&&r.splice(o,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!EC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),uB?(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(){!EC||!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=cB.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}(),eI=function(e,t){for(var r=0,o=Object.keys(t);r<o.length;r++){var n=o[r];Object.defineProperty(e,n,{value:t[n],enumerable:!1,writable:!1,configurable:!0})}return e},ou=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||wg},tI=Rg(0,0,0,0);function Eg(e){return parseFloat(e)||0}function ZN(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(o,n){var i=e["border-"+n+"-width"];return o+Eg(i)},0)}function dB(e){for(var t=["top","right","bottom","left"],r={},o=0,n=t;o<n.length;o++){var i=n[o],a=e["padding-"+i];r[i]=Eg(a)}return r}function pB(e){var t=e.getBBox();return Rg(0,0,t.width,t.height)}function mB(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return tI;var o=ou(e).getComputedStyle(e),n=dB(o),i=n.left+n.right,a=n.top+n.bottom,s=Eg(o.width),l=Eg(o.height);if(o.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=ZN(o,"left","right")+i),Math.round(l+a)!==r&&(l-=ZN(o,"top","bottom")+a)),!gB(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return Rg(n.left,n.top,s,l)}var hB=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ou(e).SVGGraphicsElement}:function(e){return e instanceof ou(e).SVGElement&&typeof e.getBBox=="function"}}();function gB(e){return e===ou(e).document.documentElement}function vB(e){return EC?hB(e)?pB(e):mB(e):tI}function yB(e){var t=e.x,r=e.y,o=e.width,n=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return eI(a,{x:t,y:r,width:o,height:n,top:r,right:t+o,bottom:n+r,left:t}),a}function Rg(e,t,r,o){return{x:e,y:t,width:r,height:o}}var xB=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Rg(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=vB(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),bB=function(){function e(t,r){var o=yB(r);eI(this,{target:t,contentRect:o})}return e}(),SB=function(){function e(t,r,o){if(this.activeObservations_=[],this.observations_=new JN,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=o}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ou(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new xB(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 ou(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 bB(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}(),rI=typeof WeakMap<"u"?new WeakMap:new JN,oI=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=fB.getInstance(),o=new SB(t,r,this);rI.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){oI.prototype[e]=function(){var t;return(t=rI.get(this))[e].apply(t,arguments)}});var CB=function(){return typeof wg.ResizeObserver<"u"?wg.ResizeObserver:oI}(),nI=CB;var Ss=new Map;function wB(e){e.forEach(function(t){var r,o=t.target;(r=Ss.get(o))===null||r===void 0||r.forEach(function(n){return n(o)})})}var iI=new nI(wB);function aI(e,t){Ss.has(e)||(Ss.set(e,new Set),iI.observe(e)),Ss.get(e).add(t)}function sI(e,t){Ss.has(e)&&(Ss.get(e).delete(t),Ss.get(e).size||(iI.unobserve(e),Ss.delete(e)))}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lI(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ug(o.key),o)}}function nt(e,t,r){return t&&lI(e.prototype,t),r&&lI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cs(e,t){return Cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Cs(e,t)}function xr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cs(e,t)}function Pl(e){return Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pl(e)}function Pd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pd=function(){return!!e})()}function Ve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cI(e,t){if(t&&(ie(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ve(e)}function br(e){var t=Pd();return function(){var r,o=Pl(e);if(t){var n=Pl(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return cI(this,r)}}var uI=E(N()),fI=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}(uI.Component);function EB(e,t){var r=e.children,o=e.disabled,n=Pr.useRef(null),i=Pr.useRef(null),a=Pr.useContext(Cg),s=typeof r=="function",l=s?r(n):r,c=Pr.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&Pr.isValidElement(l)&&yi(l),f=u?bs(l):null,d=gn(f,n),m=function(){var h;return Ol(n.current)||(n.current&&ie(n.current)==="object"?Ol((h=n.current)===null||h===void 0?void 0:h.nativeElement):null)||Ol(i.current)};Pr.useImperativeHandle(t,function(){return m()});var g=Pr.useRef(e);g.current=e;var v=Pr.useCallback(function(x){var h=g.current,p=h.onResize,y=h.data,S=x.getBoundingClientRect(),b=S.width,w=S.height,C=x.offsetWidth,R=x.offsetHeight,P=Math.floor(b),O=Math.floor(w);if(c.current.width!==P||c.current.height!==O||c.current.offsetWidth!==C||c.current.offsetHeight!==R){var I={width:P,height:O,offsetWidth:C,offsetHeight:R};c.current=I;var j=C===Math.round(b)?b:C,L=R===Math.round(w)?w:R,W=T(T({},I),{},{offsetWidth:j,offsetHeight:L});a?.(W,x,y),p&&Promise.resolve().then(function(){p(W,x)})}},[]);return Pr.useEffect(function(){var x=m();return x&&!o&&aI(x,v),function(){return sI(x,v)}},[n.current,o]),Pr.createElement(fI,{ref:i},u?Pr.cloneElement(l,{ref:d}):l)}var RB=Pr.forwardRef(EB),dI=RB;var _B="rc-observer-key";function OB(e,t){var r=e.children,o=typeof r=="function"?[r]:vi(r);return o.map(function(n,i){var a=n?.key||"".concat(_B,"-").concat(i);return _g.createElement(dI,Z({},e,{key:a,ref:i===0?t:void 0}),n)})}var pI=_g.forwardRef(OB);pI.Collection=QN;var qo=pI;function Td(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function mI(e){if(Array.isArray(e))return Td(e)}function Og(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nu(e,t){if(e){if(typeof e=="string")return Td(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Td(e,t):void 0}}function hI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(e){return mI(e)||Og(e)||nu(e)||hI()}var vI=function(t){return+setTimeout(t,16)},yI=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(vI=function(t){return window.requestAnimationFrame(t)},yI=function(t){return window.cancelAnimationFrame(t)});var gI=0,RC=new Map;function xI(e){RC.delete(e)}var bI=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;gI+=1;var o=gI;function n(i){if(i===0)xI(o),t();else{var a=vI(function(){n(i-1)});RC.set(o,a)}}return n(r),o};bI.cancel=function(e){var t=RC.get(e);return xI(e),yI(t)};var ft=bI;var Zt=E(N());function Pg(e){if(Array.isArray(e))return e}function SI(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 Tg(){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 Pg(e)||SI(e,t)||nu(e,t)||Tg()}function PB(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 ws=PB;function Vt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function iu(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 CI="data-rc-order",wI="data-rc-priority",TB="rc-util-key",_C=new Map;function EI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):TB}function Ng(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function NB(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function OC(e){return Array.from((_C.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function RI(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=NB(o),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(CI,a),s&&i&&l.setAttribute(wI,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=Ng(t),u=c.firstChild;if(o){if(s){var f=(t.styles||OC(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(CI)))return!1;var m=Number(d.getAttribute(wI)||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 _I(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ng(t);return(t.styles||OC(r)).find(function(o){return o.getAttribute(EI(t))===e})}function Ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=_I(e,t);if(r){var o=Ng(t);o.removeChild(r)}}function IB(e,t){var r=_C.get(e);if(!r||!iu(document,r)){var o=RI("",t),n=o.parentNode;_C.set(e,n),e.removeChild(o)}}function fo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Ng(r),n=OC(o),i=T(T({},r),{},{styles:n});IB(o,i);var a=_I(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=RI(e,i);return u.setAttribute(EI(i),t),u}var zI=E(N());function OI(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=OI(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $B(e,t){var r=arguments.length>2&&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;u<i.length;u++)if(!n(i[u],a[u],c))return!1;return!0}if(i&&a&&ie(i)==="object"&&ie(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(d){return n(i[d],a[d],c)})}return!1}return n(e,t)}var Es=$B;var $g=E(N());var DB="%";function Ig(e){return e.join(DB)}var MB=function(){function e(t){ot(this,e),_(this,"instanceId",void 0),_(this,"cache",new Map),this.instanceId=t}return nt(e,[{key:"get",value:function(r){return this.opGet(Ig(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,o){return this.opUpdate(Ig(r),o)}},{key:"opUpdate",value:function(r,o){var n=this.cache.get(r),i=o(n);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),PI=MB;var Xi="data-token-hash",Eo="data-css-hash";var bi="__cssinjs_instance__";function TI(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Eo,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(n){n[bi]=n[bi]||e,n[bi]===e&&document.head.insertBefore(n,r)});var o={};Array.from(document.querySelectorAll("style[".concat(Eo,"]"))).forEach(function(n){var i=n.getAttribute(Eo);if(o[i]){if(n[bi]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else o[i]=!0})}return new PI(e)}var AB=$g.createContext({hashPriority:"low",cache:TI(),defaultCache:!0});var Si=AB;var kB="CALC_UNIT",Zre=new RegExp(kB,"g");function FB(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Nd=function(){function e(){ot(this,e),_(this,"cache",void 0),_(this,"keys",void 0),_(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return nt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var o,n,i=arguments.length>1&&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]<d?[u,n.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=B(i,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[o,n.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,o){var n=r.get(o[0]);if(o.length===1){var i;return n.map?r.set(o[0],{map:n.map}):r.delete(o[0]),(i=n.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(n.map,o.slice(1));return(!n.map||n.map.size===0)&&!n.value&&r.delete(o[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(o){return!FB(o,r)}),this.deleteByPath(this.cache,r)}}]),e}();_(Nd,"MAX_CACHE_SIZE",20);_(Nd,"MAX_CACHE_OFFSET",5);var NI=0,au=function(){function e(t){ot(this,e),_(this,"derivatives",void 0),_(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=NI,t.length===0&&Rl(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),NI+=1}return nt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(o,n){return n(r,o)},void 0)}}]),e}();var PC=new Nd;function Rs(e){var t=Array.isArray(e)?e:[e];return PC.has(t)||PC.set(t,new au(t)),PC.get(t)}var BB=new WeakMap,TC={};function $I(e,t){for(var r=BB,o=0;o<t.length;o+=1){var n=t[o];r.has(n)||r.set(n,new WeakMap),r=r.get(n)}return r.has(TC)||r.set(TC,e()),r.get(TC)}var II=new WeakMap;function su(e){var t=II.get(e)||"";return t||(Object.keys(e).forEach(function(r){var o=e[r];t+=r,o instanceof au?t+=o.id:o&&ie(o)==="object"?t+=su(o):t+=o}),t=ws(t),II.set(e,t)),t}function NC(e,t){return ws("".concat(t,"_").concat(su(e)))}var zoe="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Id=Vt();function te(e){return typeof e=="number"?"".concat(e,"px"):e}function _s(e,t,r){var o,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=T(T({},n),{},(o={},_(o,Xi,t),_(o,Eo,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"<style ".concat(s,">").concat(e,"</style>")}var lu=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()},jB=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(""),"}"):""},Dg=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=lu(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,jB(n,r,{scope:o?.scope})]};var Mg=E(N());var cu=E(N());var DI=Vt()?cu.useLayoutEffect:cu.useEffect,MI=function(t,r){var o=cu.useRef(!0);DI(function(){return t(o.current)},r),DI(function(){return o.current=!1,function(){o.current=!0}},[])},Tl=function(t,r){MI(function(o){if(!o)return t()},r)},xt=MI;var IC=E(N()),WB=T({},IC),AI=WB.useInsertionEffect,VB=function(t,r,o){IC.useMemo(t,o),xt(function(){return r(!0)},o)},HB=AI?function(e,t,r){return AI(function(){return e(),t()},r)}:VB,LI=HB;var $C=E(N()),UB=T({},$C),GB=UB.useInsertionEffect,qB=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},KB=function(){return function(t){t()}},XB=typeof GB<"u"?qB:KB,kI=XB;function YB(){return!1}var FI=YB;function Nl(e,t,r,o,n){var i=Mg.useContext(Si),a=i.cache,s=[e].concat(le(t)),l=Ig(s),c=kI([l]),u=FI(),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})};Mg.useMemo(function(){f()},[l]);var d=a.opGet(l),m=d[1];return LI(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 QB={},ZB="css",Il=new Map;function JB(e){Il.set(e,(Il.get(e)||0)+1)}function ej(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Xi,'="').concat(e,'"]'));r.forEach(function(o){if(o[bi]===t){var n;(n=o.parentNode)===null||n===void 0||n.removeChild(o)}})}}var tj=0;function rj(e,t){Il.set(e,(Il.get(e)||0)-1);var r=Array.from(Il.keys()),o=r.filter(function(n){var i=Il.get(n)||0;return i<=0});r.length-o.length>tj&&o.forEach(function(n){ej(n,t),Il.delete(n)})}var BI=function(t,r,o,n){var i=o.getDerivativeToken(t),a=T(T({},i),r);return n&&(a=n(a)),a},DC="token";function Ag(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=(0,zI.useContext)(Si),n=o.cache.instanceId,i=o.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?QB:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,m=$I(function(){return Object.assign.apply(Object,[{}].concat(le(t)))},t),g=su(m),v=su(c),x=d?su(d):"",h=Nl(DC,[s,e.id,g,v,x],function(){var p,y=f?f(m,c,e):BI(m,c,e,u),S=T({},y),b="";if(d){var w=Dg(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=NC(y,s);y._tokenKey=R,S._tokenKey=NC(S,s);var P=(p=d?.key)!==null&&p!==void 0?p:R;y._themeKey=P,JB(P);var O="".concat(ZB,"-").concat(ws(R));return y._hashId=O,[y,O,S,b,d?.key||""]},function(p){rj(p[0]._themeKey,n)},function(p){var y=B(p,4),S=y[0],b=y[3];if(d&&b){var w=fo(b,ws("css-variables-".concat(S._themeKey)),{mark:Eo,prepend:"queue",attachTo:i,priority:-999});w[bi]=n,w.setAttribute(Xi,S._themeKey)}});return h}var jI=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=_s(a,s,u,d,c);return[f,u,m]};var p2=E(N());var Ts=E(N());var oj={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},MC=oj;var Lg="comm",kg="rule",Fg="decl";var WI="@import";var VI="@namespace",HI="@keyframes";var UI="@layer";var AC=Math.abs,$d=String.fromCharCode;function zg(e){return e.trim()}function Dd(e,t,r){return e.replace(t,r)}function GI(e,t,r){return e.indexOf(t,r)}function Os(e,t){return e.charCodeAt(t)|0}function Ps(e,t,r){return e.slice(t,r)}function vn(e){return e.length}function qI(e){return e.length}function uu(e,t){return t.push(e),e}var Bg=1,fu=1,KI=0,jn=0,Dr=0,pu="";function jg(e,t,r,o,n,i,a,s){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:Bg,column:fu,length:a,return:"",siblings:s}}function XI(){return Dr}function YI(){return Dr=jn>0?Os(pu,--jn):0,fu--,Dr===10&&(fu=1,Bg--),Dr}function Wn(){return Dr=jn<KI?Os(pu,jn++):0,fu++,Dr===10&&(fu=1,Bg++),Dr}function Ea(){return Os(pu,jn)}function Md(){return jn}function Wg(e,t){return Ps(pu,e,t)}function du(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function QI(e){return Bg=fu=1,KI=vn(pu=e),jn=0,[]}function ZI(e){return pu="",e}function Vg(e){return zg(Wg(jn-1,LC(e===91?e+2:e===40?e+1:e)))}function JI(e){for(;(Dr=Ea())&&Dr<33;)Wn();return du(e)>2||du(Dr)>3?"":" "}function e2(e,t){for(;--t&&Wn()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return Wg(e,Md()+(t<6&&Ea()==32&&Wn()==32))}function LC(e){for(;Wn();)switch(Dr){case e:return jn;case 34:case 39:e!==34&&e!==39&&LC(Dr);break;case 40:e===41&&LC(e);break;case 92:Wn();break}return jn}function t2(e,t){for(;Wn()&&e+Dr!==57;)if(e+Dr===84&&Ea()===47)break;return"/*"+Wg(t,jn-1)+"*"+$d(e===47?e:Wn())}function r2(e){for(;!du(Ea());)Wn();return Wg(e,jn)}function i2(e){return ZI(Hg("",null,null,null,[""],e=QI(e),0,[0],e))}function Hg(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=Wn()){case 40:if(g!=108&&Os(C,f-1)==58){GI(C+=Dd(Vg(p),"&","&\f"),"&\f",AC(c?s[c-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:C+=Vg(p);break;case 9:case 10:case 13:case 32:C+=JI(g);break;case 92:C+=e2(Md()-1,7);continue;case 47:switch(Ea()){case 42:case 47:uu(nj(t2(Wn(),Md()),t,r,l),l),(du(g||1)==5||du(Ea()||1)==5)&&vn(C)&&Ps(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=vn(C)*h;case 125*v:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+u:h==-1&&(C=Dd(C,/\f/g,"")),m>0&&(vn(C)-f||v===0&&g===47)&&uu(m>32?n2(C+";",o,r,f-1,l):n2(Dd(C," ","")+";",o,r,f-2,l),l);break;case 59:C+=";";default:if(uu(w=o2(C,t,r,c,u,n,s,y,S=[],b=[],f,i),i),p===123)if(u===0)Hg(C,t,w,w,S,i,f,s,b);else{switch(d){case 99:if(Os(C,3)===110)break;case 108:if(Os(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Hg(e,w,w,o&&uu(o2(e,w,w,0,0,n,s,y,n,S=[],f,b),b),n,b,f,s,o?S:b):Hg(C,w,w,w,[""],b,0,s,b)}}c=u=m=0,v=h=1,y=C="",f=a;break;case 58:f=1+vn(C),m=g;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&YI()==125)continue}switch(C+=$d(p),p*v){case 38:h=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(vn(C)-1)*h,h=1;break;case 64:Ea()===45&&(C+=Vg(Wn())),d=Ea(),u=f=vn(y=C+=r2(Md())),p++;break;case 45:g===45&&vn(C)==2&&(v=0)}}return i}function o2(e,t,r,o,n,i,a,s,l,c,u,f){for(var d=n-1,m=n===0?i:[""],g=qI(m),v=0,x=0,h=0;v<o;++v)for(var p=0,y=Ps(e,d+1,d=AC(x=a[v])),S=e;p<g;++p)(S=zg(x>0?m[p]+" "+y:Dd(y,/&\f/g,m[p])))&&(l[h++]=S);return jg(e,t,r,n===0?kg:s,l,c,u,f)}function nj(e,t,r,o){return jg(e,t,r,Lg,$d(XI()),Ps(e,2,-2),0,o)}function n2(e,t,r,o,n){return jg(e,t,r,Fg,Ps(e,0,o),Ps(e,o+1,-1),o,n)}function Ug(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function a2(e,t,r,o){switch(e.type){case UI:if(e.children.length)break;case WI:case VI:case Fg:return e.return=e.return||e.value;case Lg:return"";case HI:return e.return=e.value+"{"+Ug(e.children,o)+"}";case kg:if(!vn(e.value=e.props.join(",")))return""}return vn(r=Ug(e.children,o))?e.return=e.value+"{"+r+"}":""}var kC="data-ant-cssinjs-cache-path",FC="_FILE_STYLE__";var $l,s2=!0;function cj(){if(!$l&&($l={},Vt())){var e=document.createElement("div");e.className=kC,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(n){var i=n.split(":"),a=B(i,2),s=a[0],l=a[1];$l[s]=l});var r=document.querySelector("style[".concat(kC,"]"));if(r){var o;s2=!1,(o=r.parentNode)===null||o===void 0||o.removeChild(r)}document.body.removeChild(e)}}function l2(e){return cj(),!!$l[e]}function c2(e){var t=$l[e],r=null;if(t&&Vt())if(s2)r=FC;else{var o=document.querySelector("style[".concat(Eo,'="').concat($l[e],'"]'));o?r=o.innerHTML:delete $l[e]}return[r,t]}var uj="_skip_check_",f2="_multi_value_";function Gg(e){var t=Ug(i2(e),a2);return t.replace(/\{%%%\:[^;];}/g,";")}function fj(e){return ie(e)==="object"&&e&&(uj in e||f2 in e)}function u2(e,t,r){if(!t)return e;var o=".".concat(t),n=r==="low"?":where(".concat(o,")"):o,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(n).concat(c.slice(u.length)),[c].concat(le(l.slice(1))).join(" ")});return i.join(",")}var dj=function e(t){var r=arguments.length>1&&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 P;return(R==null||(P=R.visit)===null||P===void 0?void 0:P.call(R,C))||C},b);Object.keys(w).forEach(function(C){var R=w[C];if(ie(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!fj(R)){var P=!1,O=C.trim(),I=!1;(n||i)&&s?O.startsWith("@")?P=!0:O==="&"?O=u2("",s,u):O=u2(C,s,u):n&&!s&&(O==="&"||O==="")&&(O="",I=!0);var j=e(R,r,{root:I,injectHash:P,parentSelectors:[].concat(le(a),[O])}),L=B(j,2),W=L[0],z=L[1];x=T(T({},x),z),v+="".concat(O).concat(W)}else{let H=function(k,F){var U=k.replace(/[A-Z]/g,function(M){return"-".concat(M.toLowerCase())}),V=F;!MC[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 A=H,$,D=($=R?.value)!==null&&$!==void 0?$:R;ie(R)==="object"&&R!==null&&R!==void 0&&R[f2]&&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 zC(e,t){return ws("".concat(e.join("%")).concat(t))}function pj(){return null}var BC="style";function Ns(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=Ts.useContext(Si),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=Id,R=Nl(BC,w,function(){var L=w.join("|");if(l2(L)){var W=c2(L),z=B(W,2),$=z[0],D=z[1];if($)return[$,b,D,{},s,c]}var A=t(),H=dj(A,{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=Gg(F),M=zC(w,V);return[V,b,M,U,s,c]},function(L,W){var z=B(L,3),$=z[2];(W||f)&&Id&&Ki($,{mark:Eo})},function(L){var W=B(L,4),z=W[0],$=W[1],D=W[2],A=W[3];if(C&&z!==FC){var H={mark:Eo,prepend:S?!1:"queue",attachTo:v,priority:c},k=typeof a=="function"?a():a;k&&(H.csp={nonce:k});var F=[],U=[];Object.keys(A).forEach(function(M){M.startsWith("@layer")?F.push(M):U.push(M)}),F.forEach(function(M){fo(Gg(A[M]),"_layer-".concat(M),T(T({},H),{},{prepend:!0}))});var V=fo(z,D,H);V[bi]=y.instanceId,V.setAttribute(Xi,b),U.forEach(function(M){fo(Gg(A[M]),"_effect-".concat(M),H)})}}),P=B(R,3),O=P[0],I=P[1],j=P[2];return function(L){var W;if(!x||C||!m)W=Ts.createElement(pj,null);else{var z;W=Ts.createElement("style",Z({},(z={},_(z,Xi,I),_(z,Eo,j),z),{dangerouslySetInnerHTML:{__html:O}}))}return Ts.createElement(Ts.Fragment,null,W,L)}}var d2=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=_s(i,a,s,g,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var x=Gg(l[v]),h=_s(x,a,"_effect-".concat(v),g,d);v.startsWith("@layer")?m=h+m:m+=h}}),[u,s,m]};var jC="cssVar",mj=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,p2.useContext)(Si),f=u.cache.instanceId,d=u.container,m=s._tokenKey,g=[].concat(le(t.path),[o,c,m]),v=Nl(jC,g,function(){var x=r(),h=Dg(x,o,{prefix:n,unitless:i,ignore:a,scope:c}),p=B(h,2),y=p[0],S=p[1],b=zC(g,S);return[y,S,b,o]},function(x){var h=B(x,3),p=h[2];Id&&Ki(p,{mark:Eo})},function(x){var h=B(x,3),p=h[1],y=h[2];if(p){var S=fo(p,y,{mark:Eo,prepend:"queue",attachTo:d,priority:-999});S[bi]=f,S.setAttribute(Xi,o)}});return v},m2=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=_s(i,s,a,f,c);return[u,a,d]},WC=mj;var Ld,zie=(Ld={},_(Ld,BC,d2),_(Ld,DC,jI),_(Ld,jC,m2),Ld);var hj=function(){function e(t,r){ot(this,e),_(this,"name",void 0),_(this,"style",void 0),_(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=hj;function mu(e){return e.notSplit=!0,e}var Gie={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:mu(["borderTop","borderBottom"]),borderBlockStart:mu(["borderTop"]),borderBlockEnd:mu(["borderBottom"]),borderInline:mu(["borderLeft","borderRight"]),borderInlineStart:mu(["borderLeft"]),borderInlineEnd:mu(["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 h2=E(N()),gj=(0,h2.createContext)({}),hu=gj;function qg(e){return Pg(e)||Og(e)||nu(e)||Tg()}function po(e,t){for(var r=e,o=0;o<t.length;o+=1){if(r==null)return;r=r[t[o]]}return r}function v2(e,t,r,o){if(!t.length)return r;var n=qg(t),i=n[0],a=n.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=le(e):s=T({},e),o&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=v2(s[i],a,r,o),s}function Lo(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&r===void 0&&!po(e,t.slice(0,-1))?e:v2(e,t,r,o)}function vj(e){return ie(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function g2(e){return Array.isArray(e)?[]:{}}var yj=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ra(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=g2(t[0]);return t.forEach(function(n){function i(a,s){var l=new Set(s),c=po(n,a),u=Array.isArray(c);if(u||vj(c)){if(!l.has(c)){l.add(c);var f=po(o,a);u?o=Lo(o,a,[]):(!f||ie(f)!=="object")&&(o=Lo(o,a,g2(c))),yj(c).forEach(function(d){i([].concat(le(a),[d]),l)})}}else o=Lo(o,a,c)}i([])}),o}var VC=E(N());function xj(){}var y2=VC.createContext({}),Kg=()=>{let e=()=>{};return e.deprecated=xj,e};var x2=E(N()),b2=(0,x2.createContext)(void 0);var vu=E(N());var bj={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"},S2=bj;var C2={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var Sj=T(T({},C2),{},{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"}),w2=Sj;var Cj={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Xg=Cj;var wj={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"]},w2),timePickerLocale:Object.assign({},Xg)},Yg=wj;var E2=Yg;var yn="${label} is not a valid ${type}",Ej={locale:"en",Pagination:S2,DatePicker:Yg,TimePicker:Xg,Calendar:E2,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:yn,method:yn,array:yn,object:yn,number:yn,date:yn,boolean:yn,integer:yn,float:yn,regexp:yn,email:yn,url:yn,hex:yn},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"}},Ci=Ej;var HC=Object.assign({},Ci.Modal),Qg=[],R2=()=>Qg.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ci.Modal);function _2(e){if(e){let t=Object.assign({},e);return Qg.push(t),HC=R2(),()=>{Qg=Qg.filter(r=>r!==t),HC=R2()}}HC=Object.assign({},Ci.Modal)}var O2=E(N()),Rj=(0,O2.createContext)(void 0),gu=Rj;var kd=E(N());var _j=(e,t)=>{let r=kd.useContext(gu),o=kd.useMemo(()=>{var i;let a=t||Ci[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=kd.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?Ci.locale:i},[r]);return[o,n]},wi=_j;var P2="internalMark",Oj=e=>{let{locale:t={},children:r,_ANT_MARK__:o}=e;vu.useEffect(()=>_2(t?.Modal),[t]);let n=vu.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return vu.createElement(gu.Provider,{value:n},r)},T2=Oj;var t$=E(N());var UC={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"},Pj=Object.assign(Object.assign({},UC),{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}),_a=Pj;var Qr=Math.round;function GC(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 N2=(e,t,r)=>r===0?e:e/100;function Fd(e,t){let r=t||255;return e>r?r:e<0?0:e}var lt=class e{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(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=Fd(t.r),this.g=Fd(t.g),this.b=Fd(t.b),this.a=typeof t.a=="number"?Fd(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=Qr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"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:Qr(i("r")),g:Qr(i("g")),b:Qr(i("b")),a:Qr(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=>Qr((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=Qr(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=Qr(this.getSaturation()*100),o=Qr(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]=Fd(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=Qr(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=Qr((i+f)*255),this.g=Qr((a+f)*255),this.b=Qr((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=Qr(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=Qr(o*(1-r)*255),u=Qr(o*(1-r*l)*255),f=Qr(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=GC(t,N2);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=GC(t,N2);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=GC(t,(o,n)=>n.includes("%")?Qr(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Zg=2,I2=.16,Tj=.05,Nj=.05,Ij=.15,A2=5,L2=4,$j=[{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 $2(e,t,r){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-Zg*t:Math.round(e.h)+Zg*t:o=r?Math.round(e.h)+Zg*t:Math.round(e.h)-Zg*t,o<0?o+=360:o>=360&&(o-=360),o}function D2(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-I2*t:t===L2?o=e.s+I2:o=e.s+Tj*t,o>1&&(o=1),r&&t===A2&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function M2(e,t,r){var o;return r?o=e.v+Nj*t:o=e.v-Ij*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Ei(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new lt(e),n=o.toHsv(),i=A2;i>0;i-=1){var a=new lt({h:$2(n,i,!0),s:D2(n,i,!0),v:M2(n,i,!0)});r.push(a)}r.push(o);for(var s=1;s<=L2;s+=1){var l=new lt({h:$2(n,s),s:D2(n,s),v:M2(n,s)});r.push(l)}return t.theme==="dark"?$j.map(function(c){var u=c.index,f=c.amount;return new lt(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Oa={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"},qC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];qC.primary=qC[5];var KC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];KC.primary=KC[5];var XC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];XC.primary=XC[5];var YC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];YC.primary=YC[5];var QC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];QC.primary=QC[5];var ZC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ZC.primary=ZC[5];var JC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];JC.primary=JC[5];var ew=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ew.primary=ew[5];var Is=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Is.primary=Is[5];var tw=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];tw.primary=tw[5];var rw=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];rw.primary=rw[5];var ow=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ow.primary=ow[5];var nw=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];nw.primary=nw[5];var Jg={red:qC,volcano:KC,orange:XC,gold:YC,yellow:QC,lime:ZC,green:JC,cyan:ew,blue:Is,geekblue:tw,purple:rw,magenta:ow,grey:nw},k2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];k2.primary=k2[5];var F2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];F2.primary=F2[5];var z2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];z2.primary=z2[5];var B2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];B2.primary=B2[5];var j2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];j2.primary=j2[5];var W2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];W2.primary=W2[5];var V2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];V2.primary=V2[5];var H2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];H2.primary=H2[5];var U2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];U2.primary=U2[5];var G2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];G2.primary=G2[5];var q2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];q2.primary=q2[5];var K2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];K2.primary=K2[5];var X2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];X2.primary=X2[5];function iw(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 lt(g[1]).mix(new lt(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 lt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var Dj=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}},Y2=Dj;function aw(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},Y2(o))}var Mj=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Q2=Mj;function yu(e){return(e+8)/e}function sw(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:yu(r)}))}var Aj=e=>{let t=sw(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]}},Z2=Aj;function lw(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 xn=(e,t)=>new lt(e).setA(t).toRgbString(),xu=(e,t)=>new lt(e).darken(t).toHexString();var J2=e=>{let t=Ei(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]}},e$=(e,t)=>{let r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorText:xn(o,.88),colorTextSecondary:xn(o,.65),colorTextTertiary:xn(o,.45),colorTextQuaternary:xn(o,.25),colorFill:xn(o,.15),colorFillSecondary:xn(o,.06),colorFillTertiary:xn(o,.04),colorFillQuaternary:xn(o,.02),colorBgSolid:xn(o,1),colorBgSolidHover:xn(o,.75),colorBgSolidActive:xn(o,.95),colorBgLayout:xu(r,4),colorBgContainer:xu(r,0),colorBgElevated:xu(r,0),colorBgSpotlight:xn(o,.85),colorBgBlur:"transparent",colorBorder:xu(r,15),colorBorderSecondary:xu(r,6)}};function cw(e){Oa.pink=Oa.magenta,Jg.pink=Jg.magenta;let t=Object.keys(UC).map(r=>{let o=e[r]===Oa[r]?Jg[r]:Ei(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),iw(e,{generateColorPalettes:J2,generateNeutralColorPalettes:e$})),Z2(e.fontSize)),lw(e)),Q2(e)),aw(e))}var Lj=Rs(cw),zd=Lj;var Bd={token:_a,override:{override:_a},hashed:!0},jd=t$.default.createContext(Bd);var ev=E(N()),$s="ant",Wd="anticon",uw=["outlined","borderless","filled","underlined"],kj=(e,t)=>t||(e?`${$s}-${e}`:$s),Qe=ev.createContext({getPrefixCls:kj,iconPrefixCls:Wd}),{Consumer:Fj}=Qe,r$={};function Ko(e){let t=ev.useContext(Qe),{getPrefixCls:r,direction:o,getPopupContainer:n}=t,i=t[e];return Object.assign(Object.assign({classNames:r$,styles:r$},i),{getPrefixCls:r,direction:o,getPopupContainer:n})}var zj=`-ant-${Date.now()}-${Math.random()}`;function Bj(e,t){let r={},o=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},n=(a,s)=>{let l=new lt(a),c=Ei(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 lt(t.primaryColor),s=Ei(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 lt(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 o$(e,t){let r=Bj(e,t);Vt()&&fo(r,`${zj}-dynamic-theme`)}var bu=E(N()),fw=bu.createContext(!1),n$=e=>{let{children:t,disabled:r}=e,o=bu.useContext(fw);return bu.createElement(fw.Provider,{value:r??o},t)},Zr=fw;var pw=E(N());var Su=E(N()),dw=Su.createContext(void 0),i$=e=>{let{children:t,size:r}=e,o=Su.useContext(dw);return Su.createElement(dw.Provider,{value:r||o},t)},Dl=dw;function jj(){let e=(0,pw.useContext)(Zr),t=(0,pw.useContext)(Dl);return{componentDisabled:e,componentSize:t}}var a$=jj;var av=E(N());var Wj=nt(function e(){ot(this,e)}),tv=Wj;var s$="CALC_UNIT",Vj=new RegExp(s$,"g");function mw(e){return typeof e=="number"?"".concat(e).concat(s$):e}var l$=function(e){xr(r,e);var t=br(r);function r(o,n){var i;ot(this,r),i=t.call(this),_(Ve(i),"result",""),_(Ve(i),"unitlessCssVar",void 0),_(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=mw(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(mw(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(mw(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(Vj,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(tv);var Hj=function(e){xr(r,e);var t=br(r);function r(o){var n;return ot(this,r),n=t.call(this),_(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}(tv),c$=Hj;var Uj=function(t,r){var o=t==="css"?l$:c$;return function(n){return new o(n,r)}},rv=Uj;var Gj=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("-"))},hw=Gj;var ov=E(N());function It(e){var t=ov.useRef();t.current=e;var r=ov.useCallback(function(){for(var o,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(o=t.current)===null||o===void 0?void 0:o.call.apply(o,[t].concat(i))},[]);return r}var Cu=E(N());function Pa(e){var t=Cu.useRef(!1),r=Cu.useState(e),o=B(r,2),n=o[0],i=o[1];Cu.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[n,a]}function gw(e){return e!==void 0}function zt(e,t){var r=t||{},o=r.defaultValue,n=r.value,i=r.onChange,a=r.postState,s=Pa(function(){return gw(n)?n:gw(o)?typeof o=="function"?o():o:typeof e=="function"?e():e}),l=B(s,2),c=l[0],u=l[1],f=n!==void 0?n:c,d=a?a(f):f,m=It(i),g=Pa([f]),v=B(g,2),x=v[0],h=v[1];Tl(function(){var y=x[0];c!==y&&m(c,y)},[x]),Tl(function(){gw(n)||u(n)},[n]);var p=It(function(y,S){u(y,S),h([f],S)});return[d,p]}function qj(e,t,r,o){var n=T({},t[e]);if(o!=null&&o.deprecatedTokens){var i=o.deprecatedTokens;i.forEach(function(s){var l=B(s,2),c=l[0],u=l[1];if(n!=null&&n[c]||n!=null&&n[u]){var f;(f=n[u])!==null&&f!==void 0||(n[u]=n?.[c])}})}var a=T(T({},r),n);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var vw=qj;var u$=typeof CSSINJS_STATISTIC<"u",yw=!0;function Ze(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!u$)return Object.assign.apply(Object,[{}].concat(t));yw=!1;var o={};return t.forEach(function(n){if(ie(n)==="object"){var i=Object.keys(n);i.forEach(function(a){Object.defineProperty(o,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),yw=!0,o}var nv={};function Kj(){}var Xj=function(t){var r,o=t,n=Kj;return u$&&typeof Proxy<"u"&&(r=new Set,o=new Proxy(t,{get:function(a,s){if(yw){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),n=function(a,s){var l;nv[a]={global:Array.from(r),component:T(T({},(l=nv[a])===null||l===void 0?void 0:l.component),s)}}),{token:o,keys:r,flush:n}},iv=Xj;function Yj(e,t,r){if(typeof r=="function"){var o;return r(Ze(t,(o=t[e])!==null&&o!==void 0?o:{}))}return r??{}}var xw=Yj;function Qj(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return"max(".concat(o.map(function(i){return te(i)}).join(","),")")},min:function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return"min(".concat(o.map(function(i){return te(i)}).join(","),")")}}}var f$=Qj;var p$=E(N()),Zj=1e3*60*10,Jj=function(){function e(){ot(this,e),_(this,"map",new Map),_(this,"objectIDMap",new WeakMap),_(this,"nextID",0),_(this,"lastAccessBeat",new Map),_(this,"accessBeat",0)}return nt(e,[{key:"set",value:function(r,o){this.clear();var n=this.getCompositeKey(r);this.map.set(n,o),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(r){var o=this.getCompositeKey(r),n=this.map.get(o);return this.lastAccessBeat.set(o,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(r){var o=this,n=r.map(function(i){return i&&ie(i)==="object"?"obj_".concat(o.getObjectID(i)):"".concat(ie(i),"_").concat(i)});return n.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var o=this.nextID;return this.objectIDMap.set(r,o),this.nextID+=1,o}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var o=Date.now();this.lastAccessBeat.forEach(function(n,i){o-n>Zj&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),d$=new Jj;function eW(e,t){return p$.default.useMemo(function(){var r=d$.get(t);if(r)return r;var o=e();return d$.set(t,o),o},t)}var m$=eW;var tW=function(){return{}},h$=tW;function rW(e){var t=e.useCSP,r=t===void 0?h$: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=T(T({},y),{},_({},h("zIndexPopup"),!0));Object.keys(p).forEach(function(R){S[h(R)]=p[R]});var b=T(T({},v),{},{unitless:S,prefixToken:h}),w=u(d,m,g,b),C=c(x,g,b);return function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=w(R,P),I=B(O,2),j=I[1],L=C(P),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,P=C.cssVar,O=P===void 0?{}:P,I=o(),j=I.realToken;return WC({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:y,token:j,scope:R},function(){var L=xw(d,j,m),W=vw(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(),P=R.cssVar;return[function(O){return h&&P?av.default.createElement(av.default.Fragment,null,av.default.createElement(S,{rootCls:C,cssVar:P,component:d}),O):O},P?.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,P=C.realToken,O=C.hashId,I=C.token,j=C.cssVar,L=n(),W=L.rootPrefixCls,z=L.iconPrefixCls,$=r(),D=j?"css":"js",A=m$(function(){var M=new Set;return j&&Object.keys(v.unitless||{}).forEach(function(G){M.add(lu(G,j.prefix)),M.add(lu(G,hw(p,j.prefix)))}),rv(D,M)},[D,p,j?.prefix]),H=f$(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"&&Ns(T(T({},U),{},{clientOnly:!1,path:["Shared",W]}),function(){return i(I,{prefix:{rootPrefixCls:W,iconPrefixCls:z},csp:$})});var V=Ns(T(T({},U),{},{path:[y,b,z]}),function(){if(v.injectStyle===!1)return[];var M=iv(I),G=M.token,q=M.flush,ne=xw(p,P,g),ee=".".concat(b),Q=vw(p,P,ne,{deprecatedTokens:v.deprecatedTokens});j&&ne&&ie(ne)==="object"&&Object.keys(ne).forEach(function(X){ne[X]="var(".concat(lu(X,hw(p,j.prefix)),")")});var ce=Ze(G,{componentCls:ee,prefixCls:b,iconCls:".".concat(z),antCls:".".concat(W),calc:A,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,T({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 bw=rW;var bn=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var x$=E(N());var g$="5.24.8";var v$=g$;function Sw(e){return e>=0&&e<=255}function oW(e,t){let{r,g:o,b:n,a:i}=new lt(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new lt(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(Sw(u)&&Sw(f)&&Sw(d))return new lt({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new lt({r,g:o,b:n,a:1}).toRgbString()}var Ml=oW;var nW=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function sv(e){let{override:t}=e,r=nW(e,["override"]),o=Object.assign({},t);Object.keys(_a).forEach(d=>{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:Ml(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:Ml(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Ml(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:Ml(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 lt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
0 3px 6px 0 ${new lt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
0 5px 12px 4px ${new lt("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 y$=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Cw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},iW={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},aW={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},b$=(e,t,r)=>{let o=r.getDerivativeToken(e),{override:n}=t,i=y$(t,["override"]),a=Object.assign(Object.assign({},o),{override:n});return a=sv(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s,{theme:u}=c,f=y$(c,["theme"]),d=f;u&&(d=b$(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}=x$.default.useContext(jd),i=`${v$}-${t||""}`,a=r||zd,[s,l,c]=Ag(a,[_a,e],{salt:i,override:o,getComputedToken:b$,formatToken:sv,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:Cw,ignore:iW,preserve:aW}});return[a,c,t?l:"",s,n]}var Ew=E(N());var Ri={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}},Ta=()=>({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"}}),wu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),S$=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"}}}),C$=(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})}},ww=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),lv=(e,t)=>({"&:focus-visible":Object.assign({},ww(e,t))}),cv=e=>({[`.${e}`]:Object.assign(Object.assign({},Ta()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:Rt,genComponentStyleHook:Rw,genSubStyleComponent:_w}=bw({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,Ew.useContext)(Qe);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,Ew.useContext)(Qe);return e??{}},getResetStyles:(e,t)=>{var r;let o=S$(e);return[o,{"&":o},cv((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Wd)]},getCommonStyle:C$,getCompUnitless:()=>Cw});function uv(e,t){return bn.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 sW=(e,t)=>{let[r,o]=sr();return Ns({theme:r,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[cv(e)])},fv=sW;var lW=E(N()),cW=Object.assign({},lW),{useId:w$}=cW,uW=()=>"",fW=typeof w$>"u"?uW:w$,E$=fW;function Ow(e,t,r){var o,n;let i=Kg("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Bd),{hashed:(o=t?.hashed)!==null&&o!==void 0?o:Bd.hashed,cssVar:t?.cssVar}):t,l=E$();return qi(()=>{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!Es(f,m,!0)}))}var Nv=E(N());var B$=E(Ce());var Yo=E(N()),Lw=E(N());var dv=E(N()),dW=["children"],Pw=dv.createContext({});function pv(e){var t=e.children,r=Ne(e,dW);return dv.createElement(Pw.Provider,{value:r},t)}var R$=E(N()),pW=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}(R$.Component),_$=pW;var mv=E(N());function Tw(e){var t=mv.useReducer(function(s){return s+1},0),r=B(t,2),o=r[1],n=mv.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 wv=E(N()),Ia=E(N());var Yi="none",Vd="appear",Hd="enter",Ud="leave",Nw="none",Xo="prepare",Na="start",Ds="active",hv="end",gv="prepared";var D$=E(N()),M$=E(N());function O$(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 mW(e,t){var r={animationend:O$("Animation","AnimationEnd"),transitionend:O$("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var hW=mW(Vt(),typeof window<"u"?window:{}),T$={};Vt()&&(P$=document.createElement("div"),T$=P$.style);var P$,vv={};function N$(e){if(vv[e])return vv[e];var t=hW[e];if(t)for(var r=Object.keys(t),o=r.length,n=0;n<o;n+=1){var i=r[n];if(Object.prototype.hasOwnProperty.call(t,i)&&i in T$)return vv[e]=t[i],vv[e]}return""}var I$=N$("animationend"),$$=N$("transitionend"),yv=!!(I$&&$$),Iw=I$||"animationend",$w=$$||"transitionend";function Dw(e,t){if(!e)return null;if(ie(e)==="object"){var r=t.replace(/-\w/g,function(o){return o[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var A$=function(e){var t=(0,M$.useRef)();function r(n){n&&(n.removeEventListener($w,e),n.removeEventListener(Iw,e))}function o(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener($w,e),n.addEventListener(Iw,e),t.current=n)}return D$.useEffect(function(){return function(){r(t.current)}},[]),[o,r]};var xv=E(N()),gW=Vt()?xv.useLayoutEffect:xv.useEffect,bv=gW;var k$=E(N());var Sv=E(N()),L$=function(){var e=Sv.useRef(null);function t(){ft.cancel(e.current)}function r(o){var n=arguments.length>1&&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 Sv.useEffect(function(){return function(){t()}},[]),[r,t]};var vW=[Xo,Na,Ds,hv],yW=[Xo,gv],Mw=!1,F$=!0;function Cv(e){return e===Ds||e===hv}var z$=function(e,t,r){var o=Pa(Nw),n=B(o,2),i=n[0],a=n[1],s=L$(),l=B(s,2),c=l[0],u=l[1];function f(){a(Xo,!0)}var d=t?yW:vW;return bv(function(){if(i!==Nw&&i!==hv){var m=d.indexOf(i),g=d[m+1],v=r(i);v===Mw?a(g,!0):g&&c(function(x){function h(){x.isCanceled()||a(g,!0)}v===!0?h():Promise.resolve(v).then(h)})}},[e,i]),k$.useEffect(function(){return function(){u()}},[]),[f,i]};function Aw(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,P=Pa(),O=B(P,2),I=O[0],j=O[1],L=Tw(Yi),W=B(L,2),z=W[0],$=W[1],D=Pa(null),A=B(D,2),H=A[0],k=A[1],F=z(),U=(0,Ia.useRef)(!1),V=(0,Ia.useRef)(null);function M(){return r()}var G=(0,Ia.useRef)(!1);function q(){$(Yi),k(null,!0)}var ne=It(function(xe){var Pe=z();if(Pe!==Yi){var fe=M();if(!(xe&&!xe.deadline&&xe.target!==fe)){var pe=G.current,Me;Pe===Vd&&pe?Me=b?.(fe,xe):Pe===Hd&&pe?Me=w?.(fe,xe):Pe===Ud&&pe&&(Me=C?.(fe,xe)),pe&&Me!==!1&&q()}}}),ee=A$(ne),Q=B(ee,1),ce=Q[0],re=function(Pe){switch(Pe){case Vd:return _(_(_({},Xo,d),Na,v),Ds,p);case Hd:return _(_(_({},Xo,m),Na,x),Ds,y);case Ud:return _(_(_({},Xo,g),Na,h),Ds,S);default:return{}}},K=wv.useMemo(function(){return re(F)},[F]),X=z$(F,!e,function(xe){if(xe===Xo){var Pe=K[Xo];return Pe?Pe(M()):Mw}if(J in K){var fe;k(((fe=K[J])===null||fe===void 0?void 0:fe.call(K,M(),null))||null)}return J===Ds&&F!==Yi&&(ce(M()),u>0&&(clearTimeout(V.current),V.current=setTimeout(function(){ne({deadline:!0})},u))),J===gv&&q(),F$}),oe=B(X,2),Y=oe[0],J=oe[1],se=Cv(J);G.current=se;var ue=(0,Ia.useRef)(null);bv(function(){if(!(U.current&&ue.current===t)){j(t);var xe=U.current;U.current=!0;var Pe;!xe&&t&&s&&(Pe=Vd),xe&&t&&i&&(Pe=Hd),(xe&&!t&&c||!xe&&f&&!t&&c)&&(Pe=Ud);var fe=re(Pe);Pe&&(e||fe[Xo])?($(Pe),Y()):$(Yi),ue.current=t}},[t]),(0,Ia.useEffect)(function(){(F===Vd&&!s||F===Hd&&!i||F===Ud&&!c)&&$(Yi)},[s,i,c]),(0,Ia.useEffect)(function(){return function(){U.current=!1,clearTimeout(V.current)}},[]);var de=wv.useRef(!1);(0,Ia.useEffect)(function(){I&&(de.current=!0),I!==void 0&&F===Yi&&((de.current||I)&&R?.(I),de.current=!0)},[I,F]);var ye=H;return K[Xo]&&J===Na&&(ye=T({transition:"none"},ye)),[F,J,ye,I??t]}function xW(e){var t=e;ie(e)==="object"&&(t=e.transitionSupport);function r(n,i){return!!(n.motionName&&t&&i!==!1)}var o=Yo.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=Yo.useContext(Pw),x=v.motion,h=r(n,x),p=(0,Lw.useRef)(),y=(0,Lw.useRef)();function S(){try{return p.current instanceof HTMLElement?p.current:Ol(y.current)}catch{return null}}var b=Aw(h,s,S,n),w=B(b,4),C=w[0],R=w[1],P=w[2],O=w[3],I=Yo.useRef(O);O&&(I.current=!0);var j=Yo.useCallback(function(A){p.current=A,Od(i,A)},[i]),L,W=T(T({},g),{},{visible:s});if(!f)L=null;else if(C===Yi)O?L=f(T({},W),j):!c&&I.current&&m?L=f(T(T({},W),{},{className:m}),j):u||!c&&!m?L=f(T(T({},W),{},{style:{display:"none"}}),j):L=null;else{var z;R===Xo?z="prepare":Cv(R)?z="active":R===Na&&(z="start");var $=Dw(d,"".concat(C,"-").concat(z));L=f(T(T({},W),{},{className:(0,B$.default)(Dw(d,C),_(_({},$,$&&z),d,typeof d=="string")),style:P}),j)}if(Yo.isValidElement(L)&&yi(L)){var D=bs(L);D||(L=Yo.cloneElement(L,{ref:j}))}return Yo.createElement(_$,{ref:y},L)});return o.displayName="CSSMotion",o}var Ev=xW(yv);var Al=E(N());var Rv="add",_v="keep",Ov="remove",Tv="removed";function bW(e){var t;return e&&ie(e)==="object"&&"key"in e?t=e:t={key:e},T(T({},t),{},{key:String(t.key)})}function Pv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(bW)}function j$(){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=Pv(e),a=Pv(t);i.forEach(function(c){for(var u=!1,f=o;f<n;f+=1){var d=a[f];if(d.key===c.key){o<f&&(r=r.concat(a.slice(o,f).map(function(m){return T(T({},m),{},{status:Rv})})),o=f),r.push(T(T({},d),{},{status:_v})),o+=1,u=!0;break}}u||r.push(T(T({},c),{},{status:Ov}))}),o<n&&(r=r.concat(a.slice(o).map(function(c){return T(T({},c),{},{status:Rv})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==Ov}),r.forEach(function(u){u.key===c&&(u.status=_v)})}),r}var SW=["component","children","onVisibleChanged","onAllRemoved"],CW=["status"],wW=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function EW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ev,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;c<s;c++)l[c]=arguments[c];return a=n.call.apply(n,[this].concat(l)),_(Ve(a),"state",{keyEntities:[]}),_(Ve(a),"removeKey",function(u){a.setState(function(f){var d=f.keyEntities.map(function(m){return m.key!==u?m:T(T({},m),{},{status:Tv})});return{keyEntities:d}},function(){var f=a.state.keyEntities,d=f.filter(function(m){var g=m.status;return g!==Tv}).length;d===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return nt(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,d=c.onVisibleChanged,m=c.onAllRemoved,g=Ne(c,SW),v=u||Al.Fragment,x={};return wW.forEach(function(h){x[h]=g[h],delete g[h]}),delete g.keys,Al.createElement(v,g,l.map(function(h,p){var y=h.status,S=Ne(h,CW),b=y===Rv||y===_v;return Al.createElement(t,Z({},x,{key:S.key,visible:b,eventProps:S,onVisibleChanged:function(C){d?.(C,{key:S.key}),C||s.removeKey(S.key)}}),function(w,C){return f(T(T({},w),{},{index:p}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=Pv(c),d=j$(u,f);return{keyEntities:d.filter(function(m){var g=u.find(function(v){var x=v.key;return m.key===x});return!(g&&g.status===Tv&&m.status===Ov)})}}}]),i}(Al.Component);return _(r,"defaultProps",{component:"div"}),r}var kw=EW(yv);var Jr=Ev;function Fw(e){let{children:t}=e,[,r]=sr(),{motion:o}=r,n=Nv.useRef(!1);return n.current=n.current||o===!1,n.current?Nv.createElement(pv,{motion:o},t):t}var RW=E(N());var W$=()=>null;var _W=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};var OW=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],V$,PW,TW,NW;function IW(){return V$||$s}function $W(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var DW=e=>{let{prefixCls:t,iconPrefixCls:r,theme:o,holderRender:n}=e;t!==void 0&&(V$=t),r!==void 0&&(PW=r),"holderRender"in e&&(NW=n),o&&($W(o)?o$(IW(),o):TW=o)};var MW=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:P,cascader:O,collapse:I,typography:j,checkbox:L,descriptions:W,divider:z,drawer:$,skeleton:D,steps:A,image:H,layout:k,list:F,mentions:U,modal:V,progress:M,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:Me,upload:je,notification:Xe,tree:Le,colorPicker:Ie,datePicker:Ee,rangePicker:Ke,flex:et,wave:We,dropdown:ae,warning:me,tour:ze,tooltip:be,popover:He,popconfirm:Ue,floatButtonGroup:wt,variant:Ot,inputNumber:Ht,treeSelect:Ae}=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]),Je=p||h.iconPrefixCls||Wd,_e=r||h.csp;fv(Je,_e);let Te=Ow(y,h.theme,{prefixCls:Re("")}),Oe={csp:_e,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:Je,theme:Te,segmented:b,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:I,typography:j,checkbox:L,descriptions:W,divider:z,drawer:$,skeleton:D,steps:A,image:H,input:ce,textArea:re,layout:k,list:F,mentions:U,modal:V,progress:M,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:Me,upload:je,notification:Xe,tree:Le,colorPicker:Ie,datePicker:Ee,rangePicker:Ke,flex:et,wave:We,dropdown:ae,warning:me,tour:ze,tooltip:be,popover:He,popconfirm:Ue,floatButtonGroup:wt,variant:Ot,inputNumber:Ht,treeSelect:Ae},we=Object.assign({},h);Object.keys(Oe).forEach(Be=>{Oe[Be]!==void 0&&(we[Be]=Oe[Be])}),OW.forEach(Be=>{let rt=e[Be];rt&&(we[Be]=rt)}),typeof o<"u"&&(we.button=Object.assign({autoInsertSpace:o},we.button));let gt=qi(()=>we,we,(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(Si),$e=Zt.useMemo(()=>({prefixCls:Je,csp:_e,layer:jt?"antd":void 0}),[Je,_e,jt]),Se=Zt.createElement(Zt.Fragment,null,Zt.createElement(W$,{dropdownMatchSelectWidth:m}),t),Ge=Zt.useMemo(()=>{var Be,rt,Wt,Tt;return Ra(((Be=Ci.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(b2.Provider,{value:Ge},Se)),s&&(Se=Zt.createElement(T2,{locale:s,_ANT_MARK__:P2},Se)),(Je||_e)&&(Se=Zt.createElement(hu.Provider,{value:$e},Se)),l&&(Se=Zt.createElement(i$,{size:l},Se)),Se=Zt.createElement(Fw,null,Se);let qe=Zt.useMemo(()=>{let Be=Te||{},{algorithm:rt,token:Wt,components:Tt,cssVar:cr}=Be,Ft=_W(Be,["algorithm","token","components","cssVar"]),hr=rt&&(!Array.isArray(rt)||rt.length>0)?Rs(rt):zd,Cr={};Object.entries(Tt||{}).forEach(rn=>{let[wr,Fr]=rn,ve=Object.assign({},Fr);"algorithm"in ve&&(ve.algorithm===!0?ve.theme=hr:(Array.isArray(ve.algorithm)||typeof ve.algorithm=="function")&&(ve.theme=Rs(ve.algorithm)),delete ve.algorithm),Cr[wr]=ve});let Gr=Object.assign(Object.assign({},_a),Wt);return Object.assign(Object.assign({},Ft),{theme:hr,token:Gr,components:Cr,override:Object.assign({override:Gr},Cr),cssVar:cr})},[Te]);return y&&(Se=Zt.createElement(jd.Provider,{value:qe},Se)),gt.warning&&(Se=Zt.createElement(y2.Provider,{value:gt.warning},Se)),S!==void 0&&(Se=Zt.createElement(n$,{disabled:S},Se)),Zt.createElement(Qe.Provider,{value:gt},Se)},Eu=e=>{let t=Zt.useContext(Qe),r=Zt.useContext(gu);return Zt.createElement(MW,Object.assign({parentContext:t,legacyLocale:r},e))};Eu.ConfigContext=Qe;Eu.SizeContext=Dl;Eu.config=DW;Eu.useConfig=a$;Object.defineProperty(Eu,"SizeContext",{get:()=>Dl});var $a=Eu;var Av=E(N());var AW={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"},H$=AW;var Fl=E(N()),Q$=E(Ce());var X$=E(N());function U$(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function LW(e){return U$(e)instanceof ShadowRoot}function Ll(e){return LW(e)?U$(e):null}var kl=E(N());function kW(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function q$(e,t){Kt(e,"[@ant-design/icons] ".concat(t))}function zw(e){return ie(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ie(e.icon)==="object"||typeof e.icon=="function")}function G$(){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[kW(r)]=o}return t},{})}function Iv(e,t,r){return r?kl.default.createElement(e.tag,T(T({key:t},G$(e.attrs)),r),(e.children||[]).map(function(o,n){return Iv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))})):kl.default.createElement(e.tag,T({key:t},G$(e.attrs)),(e.children||[]).map(function(o,n){return Iv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function Bw(e){return Ei(e)[0]}function $v(e){return e?Array.isArray(e)?e:[e]:[]}var FW=`
|
|
.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);
|
|
}
|
|
}
|
|
`,K$=function(t){var r=(0,kl.useContext)(hu),o=r.csp,n=r.prefixCls,i=r.layer,a=FW;n&&(a=a.replace(/anticon/g,n)),i&&(a="@layer ".concat(i,` {
|
|
`).concat(a,`
|
|
}`)),(0,kl.useEffect)(function(){var s=t.current,l=Ll(s);fo(a,"@ant-design-icons",{prepend:!i,csp:o,attachTo:l})},[])};var zW=["icon","className","onClick","style","primaryColor","secondaryColor"],Gd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function BW(e){var t=e.primaryColor,r=e.secondaryColor;Gd.primaryColor=t,Gd.secondaryColor=r||Bw(t),Gd.calculated=!!r}function jW(){return T({},Gd)}var Dv=function(t){var r=t.icon,o=t.className,n=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ne(t,zW),c=X$.useRef(),u=Gd;if(a&&(u={primaryColor:a,secondaryColor:s||Bw(a)}),K$(c),q$(zw(r),"icon should be icon definiton, but got ".concat(r)),!zw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=T(T({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Iv(f.icon,"svg-".concat(f.name),T(T({className:o,onClick:n,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Dv.displayName="IconReact";Dv.getTwoToneColors=jW;Dv.setTwoToneColors=BW;var qd=Dv;function jw(e){var t=$v(e),r=B(t,2),o=r[0],n=r[1];return qd.setTwoToneColors({primaryColor:o,secondaryColor:n})}function Y$(){var e=qd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var WW=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jw(Is.primary);var Mv=Fl.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,WW),u=Fl.useContext(hu),f=u.prefixCls,d=f===void 0?"anticon":f,m=u.rootClassName,g=(0,Q$.default)(m,d,_(_({},"".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=$v(l),p=B(h,2),y=p[0],S=p[1];return Fl.createElement("span",Z({role:"img","aria-label":o.name},c,{ref:t,tabIndex:v,onClick:s,className:g}),Fl.createElement(qd,{icon:o,primaryColor:y,secondaryColor:S,style:x}))});Mv.displayName="AntdIcon";Mv.getTwoToneColor=Y$;Mv.setTwoToneColor=jw;var ct=Mv;var VW=function(t,r){return Av.createElement(ct,Z({},t,{ref:r,icon:H$}))},HW=Av.forwardRef(VW),Z$=HW;var Lv=E(N());var UW={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"},J$=UW;var GW=function(t,r){return Lv.createElement(ct,Z({},t,{ref:r,icon:J$}))},qW=Lv.forwardRef(GW),Ru=qW;var Fv=E(N());var KW={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"},kv=KW;var XW=function(t,r){return Fv.createElement(ct,Z({},t,{ref:r,icon:kv}))},YW=Fv.forwardRef(XW),_u=YW;var QW=`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`,ZW=`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`,JW="".concat(QW," ").concat(ZW).split(/[\s\n]+/),eV="aria-",tV="data-";function eD(e,t){return e.indexOf(t)===0}function Ro(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=T({},t);var o={};return Object.keys(e).forEach(function(n){(r.aria&&(n==="role"||eD(n,eV))||r.data&&eD(n,tV)||r.attr&&JW.includes(n))&&(o[n]=e[n])}),o}var Kd=E(N());function zv(e){return e&&Kd.default.isValidElement(e)&&e.type===Kd.default.Fragment}var rV=(e,t,r)=>Kd.default.isValidElement(e)?Kd.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Vn(e,t){return rV(e,e,t)}var oV=e=>{let[,,,,t]=sr();return t?`${e}-css-var`:""},_o=oV;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 Bv=E(N());var nV={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"},tD=nV;var iV=function(t,r){return Bv.createElement(ct,Z({},t,{ref:r,icon:tD}))},aV=Bv.forwardRef(iV),zl=aV;var oD=E(N());var rD=E(N()),sV=rD.default.createContext(void 0),jv=sV;var Da=100,lV=10,cV=Da*lV,mpe=cV+Da,nD={Modal:Da,Drawer:Da,Popover:Da,Popconfirm:Da,Tooltip:Da,Tour:Da,FloatButton:Da},uV={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function fV(e){return e in nD}var Ms=(e,t)=>{let[,r]=sr(),o=oD.default.useContext(jv),n=fV(e),i;if(t!==void 0)i=[t,t];else{let a=o??0;n?a+=(o?0:r.zIndexPopupBase)+nD[e]:a+=uV[e],i=[o===void 0?t:a,a]}return i};var xV=E(N()),Epe=E(Ui());function Pt(){"use strict";Pt=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function($,D,A){$[D]=A.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c($,D,A){return Object.defineProperty($,D,{value:A,enumerable:!0,configurable:!0,writable:!0}),$[D]}try{c({},"")}catch{c=function(A,H,k){return A[H]=k}}function u($,D,A,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($,A,U)}),F}function f($,D,A){try{return{type:"normal",arg:$.call(D,A)}}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(A){return this._invoke(D,A)})})}function P($,D){function A(k,F,U,V){var M=f($[k],$,F);if(M.type!=="throw"){var G=M.arg,q=G.value;return q&&ie(q)=="object"&&o.call(q,"__await")?D.resolve(q.__await).then(function(ne){A("next",ne,U,V)},function(ne){A("throw",ne,U,V)}):D.resolve(q).then(function(ne){G.value=ne,U(G)},function(ne){return A("throw",ne,U,V)})}V(M.arg)}var H;n(this,"_invoke",{value:function(F,U){function V(){return new D(function(M,G){A(F,U,M,G)})}return H=H?H.then(V,V):V()}})}function O($,D,A){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(A.method=k,A.arg=F;;){var U=A.delegate;if(U){var V=I(U,A);if(V){if(V===x)continue;return V}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(H===d)throw H=v,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);H=g;var M=f($,D,A);if(M.type==="normal"){if(H=A.done?v:m,M.arg===x)continue;return{value:M.arg,done:A.done}}M.type==="throw"&&(H=v,A.method="throw",A.arg=M.arg)}}}function I($,D){var A=D.method,H=$.iterator[A];if(H===e)return D.delegate=null,A==="throw"&&$.iterator.return&&(D.method="return",D.arg=e,I($,D),D.method==="throw")||A!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+A+"' 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 A=-1,H=function k(){for(;++A<$.length;)if(o.call($,A))return k.value=$[A],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(P.prototype),c(P.prototype,s,function(){return this}),t.AsyncIterator=P,t.async=function($,D,A,H,k){k===void 0&&(k=Promise);var F=new P(u($,D,A,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($),A=[];for(var H in D)A.push(H);return A.reverse(),function k(){for(;A.length;){var F=A.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 A in this)A.charAt(0)==="t"&&o.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=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 A=this;function H(G,q){return U.type="throw",U.arg=D,A.next=G,q&&(A.method="next",A.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"),M=o.call(F,"finallyLoc");if(V&&M){if(this.prev<F.catchLoc)return H(F.catchLoc,!0);if(this.prev<F.finallyLoc)return H(F.finallyLoc)}else if(V){if(this.prev<F.catchLoc)return H(F.catchLoc,!0)}else{if(!M)throw Error("try statement without catch or finally");if(this.prev<F.finallyLoc)return H(F.finallyLoc)}}}},abrupt:function(D,A){for(var H=this.tryEntries.length-1;H>=0;--H){var k=this.tryEntries[H];if(k.tryLoc<=this.prev&&o.call(k,"finallyLoc")&&this.prev<k.finallyLoc){var F=k;break}}F&&(D==="break"||D==="continue")&&F.tryLoc<=A&&A<=F.finallyLoc&&(F=null);var U=F?F.completion:{};return U.type=D,U.arg=A,F?(this.method="next",this.next=F.finallyLoc,x):this.complete(U)},complete:function(D,A){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&A&&(this.next=A),x},finish:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===D)return this.complete(H.completion,H.afterLoc),L(H),x}},catch:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];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,A,H){return this.delegate={iterator:z(D),resultName:A,nextLoc:H},this.method==="next"&&(this.arg=e),x}},t}function iD(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 eo(e){return function(){var t=this,r=arguments;return new Promise(function(o,n){var i=e.apply(t,r);function a(l){iD(i,o,n,a,s,"next",l)}function s(l){iD(i,o,n,a,s,"throw",l)}a(void 0)})}}var dV=E(Ui()),Xd=T({},dV),pV=Xd.version,Ww=Xd.render,mV=Xd.unmountComponentAtNode,Vv;try{aD=Number((pV||"").split(".")[0]),aD>=18&&(Vv=Xd.createRoot)}catch{}var aD;function sD(e){var t=Xd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ie(t)==="object"&&(t.usingClientEntryPoint=e)}var Wv="__rc_react_root__";function hV(e,t){sD(!0);var r=t[Wv]||Vv(t);sD(!1),r.render(e),t[Wv]=r}function gV(e,t){Ww?.(e,t)}function lD(e,t){if(Vv){hV(e,t);return}gV(e,t)}function vV(e){return Vw.apply(this,arguments)}function Vw(){return Vw=eo(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[Wv])===null||n===void 0||n.unmount(),delete t[Wv]}));case 1:case"end":return o.stop()}},e)})),Vw.apply(this,arguments)}function yV(e){mV(e)}function cD(e){return Hw.apply(this,arguments)}function Hw(){return Hw=eo(Pt().mark(function e(t){return Pt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(Vv===void 0){o.next=2;break}return o.abrupt("return",vV(t));case 2:yV(t);case 3:case"end":return o.stop()}},e)})),Hw.apply(this,arguments)}var bV=(e,t)=>(lD(e,t),()=>cD(t)),SV=bV;function uD(){return SV}var Uw=()=>({height:0,opacity:0}),fD=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},CV=e=>({height:e?e.offsetHeight:0}),Gw=(e,t)=>t?.deadline===!0||t.propertyName==="height",wV=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:$s}-motion-collapse`,onAppearStart:Uw,onEnterStart:Uw,onAppearActive:fD,onEnterActive:fD,onLeaveStart:CV,onLeaveActive:Uw,onAppearEnd:Gw,onEnterEnd:Gw,onLeaveEnd:Gw,motionDeadline:500}};var Qi=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var dD=wV;var At=E(N()),dy=E(Ce());function Mr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(o){delete r[o]}),r}var Bl=E(N()),yD=E(Ce());var Hv=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 EV=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(",")}}}}},pD=Rw("Wave",e=>[EV(e)]);var Uv=E(N());var Ou=`${$s}-wave-target`;var to=E(N()),hD=E(Ce());function qw(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 mD(e){let{borderTopColor:t,borderColor:r,backgroundColor:o}=getComputedStyle(e);return qw(t)?t:qw(r)?r:qw(o)?o:null}function Kw(e){return Number.isNaN(e)?0:e}var RV=e=>{let{className:t,target:r,component:o,registerUnmount:n}=e,i=to.useRef(null),a=to.useRef(null);to.useEffect(()=>{a.current=n()},[]);let[s,l]=to.useState(null),[c,u]=to.useState([]),[f,d]=to.useState(0),[m,g]=to.useState(0),[v,x]=to.useState(0),[h,p]=to.useState(0),[y,S]=to.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(mD(r));let P=R.position==="static",{borderLeftWidth:O,borderTopWidth:I}=R;d(P?r.offsetLeft:Kw(-parseFloat(O))),g(P?r.offsetTop:Kw(-parseFloat(I))),x(r.offsetWidth),p(r.offsetHeight);let{borderTopLeftRadius:j,borderTopRightRadius:L,borderBottomLeftRadius:W,borderBottomRightRadius:z}=R;u([j,L,z,W].map($=>Kw(parseFloat($))))}if(to.useEffect(()=>{if(r){let R=ft(()=>{w(),S(!0)}),P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(w),P.observe(r)),()=>{ft.cancel(R),P?.disconnect()}}},[]),!y)return null;let C=(o==="Checkbox"||o==="Radio")&&r?.classList.contains(Ou);return to.createElement(Jr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var O,I;if(P.deadline||P.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,P)=>{let{className:O}=R;return to.createElement("div",{ref:Wr(i,P),className:(0,hD.default)(t,O,{"wave-quick":C}),style:b})})},_V=(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=uD(),a=null;function s(){return a}a=i(to.createElement(RV,Object.assign({},t,{target:e,registerUnmount:s})),n)},gD=_V;var OV=(e,t,r)=>{let{wave:o}=Uv.useContext(Qe),[,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||gD)(f,{className:t,token:n,component:r,event:c,hashId:i})}),s=Uv.useRef(null);return c=>{ft.cancel(s.current),s.current=ft(()=>{a(c)})}},vD=OV;var PV=e=>{let{children:t,disabled:r,component:o}=e,{getPrefixCls:n}=(0,Bl.useContext)(Qe),i=(0,Bl.useRef)(null),a=n("wave"),[,s]=pD(a),l=vD(i,(0,yD.default)(a,s),o);if(Bl.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=d=>{!Hv(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]),!Bl.default.isValidElement(t))return t??null;let c=yi(t)?Wr(bs(t),i):i;return Vn(t,{ref:c})},Gv=PV;var Xw=E(N());var TV=e=>{let t=Xw.default.useContext(Dl);return Xw.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Qo=TV;var As=E(N()),xD=E(Ce());var bD=As.createContext(null),Hn=(e,t)=>{let r=As.useContext(bD),o=As.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=r,s=n==="vertical"?"-vertical-":"-";return(0,xD.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}},SD=e=>{let{children:t}=e;return As.createElement(bD.Provider,{value:null},t)};var Ma=E(N()),CD=E(Ce());var NV=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Yw=Ma.createContext(void 0),IV=e=>{let{getPrefixCls:t,direction:r}=Ma.useContext(Qe),{prefixCls:o,size:n,className:i}=e,a=NV(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,l]=sr(),c=Ma.useMemo(()=>{switch(n){case"large":return"lg";case"small":return"sm";default:return""}},[n]),u=(0,CD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return Ma.createElement(Yw.Provider,{value:n},Ma.createElement("div",Object.assign({},a,{className:u})))},wD=IV;var Pu=E(N());var ED=/^[\u4E00-\u9FA5]{2}$/,qv=ED.test.bind(ED);function RD(e){return typeof e=="string"}function Kv(e){return e==="text"||e==="link"}function $V(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&RD(e.type)&&qv(e.props.children)?Vn(e,{children:e.props.children.split("").join(r)}):RD(e)?qv(e)?Pu.default.createElement("span",null,e.split("").join(r)):Pu.default.createElement("span",null,e):zv(e)?Pu.default.createElement("span",null,e):e}function _D(e,t){let r=!1,o=[];return Pu.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}),Pu.default.Children.map(o,n=>$V(n,t))}var pme=["default","primary","danger"].concat(le(bn));var Ls=E(N());var Jw=E(Ce());var Xv=E(N()),OD=E(Ce()),DV=(0,Xv.forwardRef)((e,t)=>{let{className:r,style:o,children:n,prefixCls:i}=e,a=(0,OD.default)(`${i}-icon`,r);return Xv.default.createElement("span",{ref:t,className:a,style:o},n)}),Yd=DV;var PD=(0,Ls.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:n,iconClassName:i}=e,a=(0,Jw.default)(`${r}-loading-icon`,o);return Ls.default.createElement(Yd,{prefixCls:r,className:a,style:n,ref:t},Ls.default.createElement(zl,{className:i}))}),Qw=()=>({width:0,opacity:0,transform:"scale(0)"}),Zw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),MV=e=>{let{prefixCls:t,loading:r,existIcon:o,className:n,style:i,mount:a}=e,s=!!r;return o?Ls.default.createElement(PD,{prefixCls:t,className:n,style:i}):Ls.default.createElement(Jr,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Qw,onAppearActive:Zw,onEnterStart:Qw,onEnterActive:Zw,onLeaveStart:Zw,onLeaveActive:Qw},(l,c)=>{let{className:u,style:f}=l,d=Object.assign(Object.assign({},i),f);return Ls.default.createElement(PD,{prefixCls:t,className:(0,Jw.default)(n,u),style:d,ref:c})})},TD=MV;var ND=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),AV=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}},ND(`${t}-primary`,n),ND(`${t}-danger`,i)]}},ID=AV;var n1=E(N());var ro=Math.round;function e1(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 $D=(e,t,r)=>r===0?e:e/100;function Qd(e,t){let r=t||255;return e>r?r:e<0?0:e}var Zd=class e{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(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=Qd(t.r),this.g=Qd(t.g),this.b=Qd(t.b),this.a=typeof t.a=="number"?Qd(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=ro(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"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:ro(i("r")),g:ro(i("g")),b:ro(i("b")),a:ro(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=>ro((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=ro(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=ro(this.getSaturation()*100),o=ro(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]=Qd(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=ro(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=ro((i+f)*255),this.g=ro((a+f)*255),this.b=ro((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=ro(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=ro(o*(1-r)*255),u=ro(o*(1-r*l)*255),f=ro(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=e1(t,$D);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=e1(t,$D);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=e1(t,(o,n)=>n.includes("%")?ro(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var LV=["b"],kV=["v"],t1=function(t){return Math.round(Number(t||0))},FV=function(t){if(t instanceof Zd)return t;if(t&&ie(t)==="object"&&"h"in t&&"b"in t){var r=t,o=r.b,n=Ne(r,LV);return T(T({},n),{},{v:o})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Un=function(e){xr(r,e);var t=br(r);function r(o){return ot(this,r),t.call(this,FV(o))}return nt(r,[{key:"toHsbString",value:function(){var n=this.toHsb(),i=t1(n.s*100),a=t1(n.b*100),s=t1(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,kV);return T(T({},a),{},{b:i,a:this.a})}}]),r}(Zd);var r1=function(t){return t instanceof Un?t:new Un(t)},zV=r1("#1677ff");var eH=E(Ce());var BV=E(Ce()),jV=E(N());var MD=E(N());var o1=E(N());var WV=E(Ce()),VV=E(N());var HV=E(N());var DD=E(N());var QV=E(N());var JV=E(N());var LD=E(N());var ZV=E(Ce());var AD=E(N());var tH=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",rH=(e,t)=>e?tH(e,t):"",FD=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 Un(this.colors[0].color.metaColor)):this.metaColor=new Un(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 rH(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 uM=E(N());var dH=E(Ce());var Yv=E(N());var oH={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"},zD=oH;var nH=function(t,r){return Yv.createElement(ct,Z({},t,{ref:r,icon:zD}))},iH=Yv.forwardRef(nH),Qv=iH;var aH=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`}}}),i1=aH;var sH=e=>({animationDuration:e,animationFillMode:"both"}),lH=e=>({animationDuration:e,animationFillMode:"both"}),ks=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({},sH(o)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},lH(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 BD=new dt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),jD=new dt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),jl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,{antCls:r}=e,o=`${r}-fade`,n=t?"&":"";return[ks(o,BD,jD,e.motionDurationMid,t),{[`
|
|
${n}${o}-enter,
|
|
${n}${o}-appear
|
|
`]:{opacity:0,animationTimingFunction:"linear"},[`${n}${o}-leave`]:{animationTimingFunction:"linear"}}]};var WD=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}}),VD=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}}),HD=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}}),UD=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}}),GD=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}}),qD=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}}),KD=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}}),XD=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}}),cH={"move-up":{inKeyframes:KD,outKeyframes:XD},"move-down":{inKeyframes:WD,outKeyframes:VD},"move-left":{inKeyframes:HD,outKeyframes:UD},"move-right":{inKeyframes:GD,outKeyframes:qD}},Zv=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=cH[t];return[ks(o,n,i,e.motionDurationMid),{[`
|
|
${o}-enter,
|
|
${o}-appear
|
|
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Jv=new dt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ey=new dt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ty=new dt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ry=new dt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),YD=new dt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),QD=new dt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ZD=new dt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),JD=new dt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),uH={"slide-up":{inKeyframes:Jv,outKeyframes:ey},"slide-down":{inKeyframes:ty,outKeyframes:ry},"slide-left":{inKeyframes:YD,outKeyframes:QD},"slide-right":{inKeyframes:ZD,outKeyframes:JD}},oy=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=uH[t];return[ks(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 eM=new dt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tM=new dt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),a1=new dt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s1=new dt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),rM=new dt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),oM=new dt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),nM=new dt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),iM=new dt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),aM=new dt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),sM=new dt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lM=new dt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),cM=new dt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),fH={zoom:{inKeyframes:eM,outKeyframes:tM},"zoom-big":{inKeyframes:a1,outKeyframes:s1},"zoom-big-fast":{inKeyframes:a1,outKeyframes:s1},"zoom-left":{inKeyframes:nM,outKeyframes:iM},"zoom-right":{inKeyframes:aM,outKeyframes:sM},"zoom-up":{inKeyframes:rM,outKeyframes:oM},"zoom-down":{inKeyframes:lM,outKeyframes:cM}},Wl=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=fH[t];return[ks(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 fM=(e,t)=>{let{r,g:o,b:n,a:i}=e.toRgb(),a=new Un(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+o*.587+n*.114>192};var ny=e=>{let{paddingInline:t,onlyIconSize:r}=e;return Ze(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},iy=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:yu(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:yu(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:yu(c),m=fM(new FD(e.colorBgSolid),"#fff")?"#000":"#fff",g=bn.reduce((v,x)=>Object.assign(Object.assign({},v),{[`${x}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Ml(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 pH=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`]:Ta(),"> a":{color:"currentColor"},"&:not(:disabled)":lv(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()}}}}}},dM=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),mH=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),hH=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),gH=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ay=(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"},dM(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),vH=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},gH(e))}),yH=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),sy=(e,t,r,o)=>{let i=o&&["link","text"].includes(o)?yH:vH;return Object.assign(Object.assign({},i(e)),dM(e.componentCls,t,r))},ly=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},sy(e,o,n))}),cy=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},sy(e,o,n))}),uy=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),fy=(e,t,r,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},sy(e,r,o))}),Zi=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},sy(e,o,n,r))}),xH=e=>{let{componentCls:t}=e;return bn.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`]},ly(e,e.colorTextLightSolid,n,{background:a},{background:c})),cy(e,n,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),uy(e)),fy(e,i,{background:s},{background:l})),Zi(e,n,"link",{color:a},{color:c})),Zi(e,n,"text",{color:a,background:i},{color:c,background:l}))})},{})},bH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ly(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),uy(e)),fy(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),ay(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Zi(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),SH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},cy(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),uy(e)),fy(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Zi(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Zi(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),ay(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),CH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ly(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),cy(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),uy(e)),fy(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Zi(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Zi(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ay(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wH=e=>Object.assign(Object.assign({},Zi(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),ay(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),EH=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:bH(e),[`${t}-color-primary`]:SH(e),[`${t}-color-dangerous`]:CH(e),[`${t}-color-link`]:wH(e)},xH(e))},RH=e=>Object.assign(Object.assign(Object.assign(Object.assign({},cy(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Zi(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ly(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Zi(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),l1=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}`]:mH(e)},{[`${r}${r}-round${t}`]:hH(e)}]},_H=e=>{let t=Ze(e,{fontSize:e.contentFontSize});return l1(t,e.componentCls)},OH=e=>{let t=Ze(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return l1(t,`${e.componentCls}-sm`)},PH=e=>{let t=Ze(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return l1(t,`${e.componentCls}-lg`)},TH=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},pM=Rt("Button",e=>{let t=ny(e);return[pH(t),_H(t),OH(t),PH(t),TH(t),EH(t),RH(t),ID(t)]},iy,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function NH(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 IH(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 Fs(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({},NH(e,o,t)),IH(r,o,t))}}function $H(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 DH(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 mM(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},$H(e,t)),DH(e.componentCls,t))}}var MH=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))},hM=_w(["Button","compact"],e=>{let t=ny(e);return[Fs(t),mM(t),MH(t)]},iy);var AH=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function LH(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var kH={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},FH=At.default.forwardRef((e,t)=>{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:P}=e,O=AH(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,At.useMemo)(()=>{if(a&&s)return[a,s];let me=kH[I]||[];return c?["danger",me[1]]:me},[l,a,s,c]),z=j==="danger"?"dangerous":j,{getPrefixCls:$,direction:D,autoInsertSpace:A,className:H,style:k,classNames:F,styles:U}=Ko("button"),V=(r=R??A)!==null&&r!==void 0?r:!0,M=$("btn",i),[G,q,ne]=pM(M),ee=(0,At.useContext)(Zr),Q=m??ee,ce=(0,At.useContext)(Yw),re=(0,At.useMemo)(()=>LH(n),[n]),[K,X]=(0,At.useState)(re.loading),[oe,Y]=(0,At.useState)(!1),J=(0,At.useRef)(null),se=gn(t,J),ue=At.Children.count(x)===1&&!h&&!Kv(L),de=(0,At.useRef)(!0);At.default.useEffect(()=>(de.current=!1,()=>{de.current=!0}),[]),(0,At.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,At.useEffect)(()=>{if(!J.current||!V)return;let me=J.current.textContent||"";ue&&qv(me)?oe||Y(!0):oe&&Y(!1)}),(0,At.useEffect)(()=>{P&&J.current&&J.current.focus()},[]);let ye=At.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}=Hn(M,D),fe={large:"lg",small:"sm",middle:void 0},pe=Qo(me=>{var ze,be;return(be=(ze=f??xe)!==null&&ze!==void 0?ze:ce)!==null&&be!==void 0?be:me}),Me=pe&&(o=fe[pe])!==null&&o!==void 0?o:"",je=K?"loading":h,Xe=Mr(O,["navigate"]),Le=(0,dy.default)(M,q,ne,{[`${M}-${u}`]:u!=="default"&&u,[`${M}-${I}`]:I,[`${M}-dangerous`]:c,[`${M}-color-${z}`]:z,[`${M}-variant-${L}`]:L,[`${M}-${Me}`]:Me,[`${M}-icon-only`]:!x&&x!==0&&!!je,[`${M}-background-ghost`]:y&&!Kv(L),[`${M}-loading`]:K,[`${M}-two-chinese-chars`]:oe&&V&&!K,[`${M}-block`]:S,[`${M}-rtl`]:D==="rtl",[`${M}-icon-end`]:p==="end"},Pe,g,v,H),Ie=Object.assign(Object.assign({},k),C),Ee=(0,dy.default)(w?.icon,F.icon),Ke=Object.assign(Object.assign({},d?.icon||{}),U.icon||{}),et=h&&!K?At.default.createElement(Yd,{prefixCls:M,className:Ee,style:Ke},h):n&&typeof n=="object"&&n.icon?At.default.createElement(Yd,{prefixCls:M,className:Ee,style:Ke},n.icon):At.default.createElement(TD,{existIcon:!!h,prefixCls:M,loading:K,mount:de.current}),We=x||x===0?_D(x,ue&&V):null;if(Xe.href!==void 0)return G(At.default.createElement("a",Object.assign({},Xe,{className:(0,dy.default)(Le,{[`${M}-disabled`]:Q}),href:Q?void 0:Xe.href,style:Ie,onClick:ye,ref:se,tabIndex:Q?-1:0}),et,We));let ae=At.default.createElement("button",Object.assign({},O,{type:b,className:Le,style:Ie,onClick:ye,disabled:Q,ref:se}),et,We,Pe&&At.default.createElement(hM,{prefixCls:M}));return Kv(L)||(ae=At.default.createElement(Gv,{component:"Button",disabled:K},ae)),G(ae)}),c1=FH;c1.Group=wD;c1.__ANT_BUTTON=!0;var gM=c1;var Jd=gM;var Gn=E(N()),RM=E(Ui());var vM=E(N()),zH=vM.createContext(null),py=zH;var Vl=E(N());var yM=[];function u1(e,t){var r=Vl.useState(function(){if(!Vt())return null;var g=document.createElement("div");return g}),o=B(r,1),n=o[0],i=Vl.useRef(!1),a=Vl.useContext(py),s=Vl.useState(yM),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(yM))},[c]),[n,f]}var CM=E(N());function BH(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,";"):"";fo(`
|
|
#`.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),Ki(t),{width:d,height:m}}function xM(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:BH(e)}function bM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var jH="rc-util-locker-".concat(Date.now()),SM=0;function f1(e){var t=!!e,r=CM.useState(function(){return SM+=1,"".concat(jH,"_").concat(SM)}),o=B(r,1),n=o[0];xt(function(){if(t){var i=xM(document.body).width,a=bM();fo(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
}`),n)}else Ki(n);return function(){Ki(n)}},[t,n])}var wM=!1;function d1(e){return typeof e=="boolean"&&(wM=e),wM}var EM=function(t){return t===!1?!1:!Vt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},WH=Gn.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=Gn.useState(r),u=B(c,2),f=u[0],d=u[1],m=f||r;Gn.useEffect(function(){(s||r)&&d(r)},[r,s]);var g=Gn.useState(function(){return EM(n)}),v=B(g,2),x=v[0],h=v[1];Gn.useEffect(function(){var j=EM(n);h(j??null)});var p=u1(m&&!x,i),y=B(p,2),S=y[0],b=y[1],w=x??S;f1(o&&r&&Vt()&&(w===S||w===document.body));var C=null;if(l&&yi(l)&&t){var R=l;C=R.ref}var P=gn(C,t);if(!m||!Vt()||x===void 0)return null;var O=w===!1||d1(),I=l;return t&&(I=Gn.cloneElement(l,{ref:P})),Gn.createElement(py.Provider,{value:b},O?I:(0,RM.createPortal)(I,w))}),_M=WH;var Hl=_M;var Ji=E(N());var OM=E(N()),my=OM.createContext({});var g1=E(Ce());var ep=E(N());function VH(){var e=T({},ep);return e.useId}var PM=0;var TM=VH(),Tu=TM?function(t){var r=TM();return t||r}:function(t){var r=ep.useState("ssr-id"),o=B(r,2),n=o[0],i=o[1];return ep.useEffect(function(){var a=PM;PM+=1,i("rc_unique_".concat(a))},[]),t||n};var Gl=E(N()),Aa=E(N());function p1(e,t,r){var o=t;return!o&&r&&(o="".concat(e,"-").concat(r)),o}function NM(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 IM(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},o=e.ownerDocument,n=o.defaultView||o.parentWindow;return r.left+=NM(n),r.top+=NM(n,!0),r}var Ul=E(N()),MM=E(N()),AM=E(Ce());var Nu=E(Ce());var Ar=E(N());var $M=E(N()),DM=$M.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var HH={width:0,height:0,overflow:"hidden",outline:"none"},UH={outline:"none"},GH=Ar.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=Ar.default.useContext(my),P=R.panel,O=gn(h,P),I=(0,Ar.useRef)(),j=(0,Ar.useRef)();Ar.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,M=V.activeElement;U&&M===j.current?I.current.focus({preventScroll:!0}):!U&&M===I.current&&j.current.focus({preventScroll:!0})}}});var L={};S!==void 0&&(L.width=S),b!==void 0&&(L.height=b);var W=s?Ar.default.createElement("div",{className:(0,Nu.default)("".concat(r,"-footer"),w?.footer),style:T({},C?.footer)},s):null,z=i?Ar.default.createElement("div",{className:(0,Nu.default)("".concat(r,"-header"),w?.header),style:T({},C?.header)},Ar.default.createElement("div",{className:"".concat(r,"-title"),id:a},i)):null,$=(0,Ar.useMemo)(function(){return ie(l)==="object"&&l!==null?l:l?{closeIcon:c??Ar.default.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),D=Ro($,!0),A=ie(l)==="object"&&l.disabled,H=l?Ar.default.createElement("button",Z({type:"button",onClick:u,"aria-label":"Close"},D,{className:"".concat(r,"-close"),disabled:A}),$.closeIcon):null,k=Ar.default.createElement("div",{className:(0,Nu.default)("".concat(r,"-content"),w?.content),style:C?.content},H,z,Ar.default.createElement("div",Z({className:(0,Nu.default)("".concat(r,"-body"),w?.body),style:T(T({},d),C?.body)},m),f),W);return Ar.default.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:T(T({},n),L),className:(0,Nu.default)(r,o),onMouseDown:v,onMouseUp:x},Ar.default.createElement("div",{ref:I,tabIndex:0,style:UH},Ar.default.createElement(DM,{shouldUpdate:p||y},g?g(k):k)),Ar.default.createElement("div",{tabIndex:0,ref:j,style:HH}))}),m1=GH;var LM=Ul.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,MM.useRef)(),g=Ul.useState(),v=B(g,2),x=v[0],h=v[1],p={};x&&(p.transformOrigin=x);function y(){var S=IM(m.current);h(d&&(d.x||d.y)?"".concat(d.x-S.left,"px ").concat(d.y-S.top,"px"):"")}return Ul.createElement(Jr,{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 Ul.createElement(m1,Z({},e,{ref:t,title:o,ariaId:u,prefixCls:r,holderRef:b,style:T(T(T({},C),n),p),className:(0,AM.default)(i,w)}))})});LM.displayName="Content";var kM=LM;var h1=E(N()),FM=E(Ce());var qH=function(t){var r=t.prefixCls,o=t.style,n=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return h1.createElement(Jr,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return h1.createElement("div",Z({ref:c,style:T(T({},f),o),className:(0,FM.default)("".concat(r,"-mask"),u,s)},i))})},zM=qH;var KH=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,P=t.maskClosable,O=P===void 0?!0:P,I=t.maskStyle,j=t.maskProps,L=t.rootClassName,W=t.classNames,z=t.styles,$=(0,Aa.useRef)(),D=(0,Aa.useRef)(),A=(0,Aa.useRef)(),H=Gl.useState(a),k=B(H,2),F=k[0],U=k[1],V=Tu();function M(){iu(D.current,document.activeElement)||($.current=document.activeElement)}function G(){if(!iu(D.current,document.activeElement)){var Y;(Y=A.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,Aa.useRef)(!1),Q=(0,Aa.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&&A.current.changeActive(!Y.shiftKey)}(0,Aa.useEffect)(function(){a&&(U(!0),M())},[a]),(0,Aa.useEffect)(function(){return function(){clearTimeout(Q.current)}},[]);var oe=T(T(T({zIndex:n},f),z?.wrapper),{},{display:F?null:"none"});return Gl.createElement("div",Z({className:(0,g1.default)("".concat(o,"-root"),L)},Ro(t,{data:!0})),Gl.createElement(zM,{prefixCls:o,visible:w&&a,motionName:p1(o,C,R),style:T(T({zIndex:n},I),z?.mask),maskProps:j,className:W?.mask}),Gl.createElement("div",Z({tabIndex:-1,onKeyDown:X,className:(0,g1.default)("".concat(o,"-wrap"),d,W?.wrapper),ref:D,onClick:K,style:oe},m),Gl.createElement(kM,Z({},t,{onMouseDown:ce,onMouseUp:re,ref:A,closable:S,ariaId:V,prefixCls:o,visible:a&&F,onClose:ne,onVisibleChanged:q,motionName:p1(o,h,p)}))))},BM=KH;var jM=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=Ji.useState(r),u=B(c,2),f=u[0],d=u[1],m=Ji.useMemo(function(){return{panel:l}},[l]);return Ji.useEffect(function(){r&&d(!0)},[r]),!n&&a&&!f?null:Ji.createElement(my.Provider,{value:m},Ji.createElement(Hl,{open:r||n||f,autoDestroy:!1,getContainer:o,autoLock:r||f},Ji.createElement(BM,Z({},t,{destroyOnClose:a,afterClose:function(){s?.(),d(!1)}}))))};jM.displayName="Dialog";var WM=jM;var VM=WM;var I1=E(N());var La=E(N());var DA=E(N());var ko=E(N());var HM=E(N()),_i="RC_FORM_INTERNAL_HOOKS",Bt=function(){Kt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},XH=HM.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}}}),Oi=XH;var UM=E(N()),YH=UM.createContext(null),zs=YH;function tp(e){return e==null?[]:Array.isArray(e)?e:[e]}function GM(e){return e&&!!e._init}function hy(){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 gy=hy();function qM(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function KM(e,t,r){if(Pd())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var n=new(e.bind.apply(e,o));return r&&Cs(n,r.prototype),n}function vy(e){var t=typeof Map=="function"?new Map:void 0;return vy=function(o){if(o===null||!qM(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 KM(o,arguments,Pl(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Cs(n,o)},vy(e)}var QH=/%[sdj%]/g,QM=function(){};typeof process<"u"&&process.env;function yy(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<t;o++)r[o-1]=arguments[o];var n=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(QH,function(s){if(s==="%%")return"%";if(n>=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 ZH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function _t(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ZH(t)&&typeof e=="string"&&!e)}function JH(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 XM(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,s<n?t(e[s],i):r([])}i([])}function e9(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,le(e[r]||[]))}),t}var YM=function(e){xr(r,e);var t=br(r);function r(o,n){var i;return ot(this,r),i=t.call(this,"Async Validation Error"),_(Ve(i),"errors",void 0),_(Ve(i),"fields",void 0),i.errors=o,i.fields=n,i}return nt(r)}(vy(Error));function ZM(e,t,r,o,n){if(t.first){var i=new Promise(function(d,m){var g=function(h){return o(h),h.length?m(new YM(h,yy(h))):d(n)},v=e9(e);XM(v,r,g)});return i.catch(function(d){return d}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(d,m){var g=function(x){if(u.push.apply(u,x),c++,c===l)return o(u),u.length?m(new YM(u,yy(u))):d(n)};s.length||(o(u),d(n)),s.forEach(function(v){var x=e[v];a.indexOf(v)!==-1?XM(x,r,g):JH(x,r,g)})});return f.catch(function(d){return d}),f}function t9(e){return!!(e&&e.message!==void 0)}function r9(e,t){for(var r=e,o=0;o<t.length;o++){if(r==null)return r;r=r[t[o]]}return r}function v1(e,t){return function(r){var o;return e.fullFields?o=r9(t,e.fullFields):o=t[r.field||e.fullField],t9(r)?(r.field=r.field||e.fullField,r.fieldValue=o,r):{message:typeof r=="function"?r():r,fieldValue:o,field:r.field||e.fullField}}}function y1(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];ie(o)==="object"&&ie(e[r])==="object"?e[r]=T(T({},e[r]),o):e[r]=o}}return e}var Iu="enum",o9=function(t,r,o,n,i){t[Iu]=Array.isArray(t[Iu])?t[Iu]:[],t[Iu].indexOf(r)===-1&&n.push(Lr(i.messages[Iu],t.fullField,t[Iu].join(", ")))},JM=o9;var n9=function(t,r,o,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(Lr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||n.push(Lr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},eA=n9;var i9=function(t,r,o,n,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,d=typeof r=="number",m=typeof r=="string",g=Array.isArray(r);if(d?f="number":m?f="string":g&&(f="array"),!f)return!1;g&&(u=r.length),m&&(u=r.replace(c,"_").length),a?u!==t.len&&n.push(Lr(i.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?n.push(Lr(i.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?n.push(Lr(i.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&n.push(Lr(i.messages[f].range,t.fullField,t.min,t.max))},tA=i9;var a9=function(t,r,o,n,i,a){t.required&&(!o.hasOwnProperty(t.field)||_t(r,a||t.type))&&n.push(Lr(i.messages.required,t.fullField))},xy=a9;var by,rA=function(){if(by)return by;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 by=new RegExp("(?:^".concat(S,"$)"),"i"),by};var oA={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},rp={integer:function(t){return rp.number(t)&&parseInt(t,10)===t},float:function(t){return rp.number(t)&&!rp.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"&&!rp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(oA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(rA())},hex:function(t){return typeof t=="string"&&!!t.match(oA.hex)}},s9=function(t,r,o,n,i){if(t.required&&r===void 0){xy(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?rp[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))},nA=s9;var l9=function(t,r,o,n,i){(/^\s+$/.test(r)||r==="")&&n.push(Lr(i.messages.whitespace,t.fullField))},iA=l9;var tt={required:xy,whitespace:iA,type:nA,range:tA,enum:JM,pattern:eA};var c9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r)&&!t.required)return o();tt.required(t,r,n,a,i)}o(a)},aA=c9;var u9=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)},sA=u9;var f9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&tt.type(t,r,n,a,i)}o(a)},lA=f9;var d9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r,"date")&&!t.required)return o();if(tt.required(t,r,n,a,i),!_t(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)},cA=d9;var p9="enum",m9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&tt[p9](t,r,n,a,i)}o(a)},uA=m9;var h9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(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)},fA=h9;var g9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(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)},dA=g9;var v9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&tt.type(t,r,n,a,i)}o(a)},pA=v9;var y9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),_t(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)},mA=y9;var x9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r)&&!t.required)return o();tt.required(t,r,n,a,i),r!==void 0&&tt.type(t,r,n,a,i)}o(a)},hA=x9;var b9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r,"string")&&!t.required)return o();tt.required(t,r,n,a,i),_t(r,"string")||tt.pattern(t,r,n,a,i)}o(a)},gA=b9;var S9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r)&&!t.required)return o();tt.required(t,r,n,a,i),_t(r)||tt.type(t,r,n,a,i)}o(a)},vA=S9;var C9=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)},yA=C9;var w9=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(_t(r,"string")&&!t.required)return o();tt.required(t,r,n,a,i,"string"),_t(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)},xA=w9;var E9=function(t,r,o,n,i){var a=t.type,s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(_t(r,a)&&!t.required)return o();tt.required(t,r,n,s,i,a),_t(r,a)||tt.type(t,r,n,s,i)}o(s)},Sy=E9;var $u={string:xA,method:pA,number:mA,boolean:lA,regexp:vA,integer:dA,float:fA,array:sA,object:hA,enum:uA,pattern:gA,date:cA,url:Sy,hex:Sy,email:Sy,required:yA,any:aA};var op=function(){function e(t){ot(this,e),_(this,"rules",null),_(this,"_messages",gy),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=y1(hy(),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;p<g.length;p++)h(g[p]);v.length?(x=yy(v),l(v,x)):l(null,a)}if(s.messages){var u=this.messages();u===gy&&(u=hy()),y1(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},d=s.keys||Object.keys(this.rules);d.forEach(function(g){var v=o.rules[g],x=a[g];v.forEach(function(h){var p=h;typeof p.transform=="function"&&(a===r&&(a=T({},a)),x=a[g]=p.transform(x),x!=null&&(p.type=p.type||(Array.isArray(x)?"array":ie(x)))),typeof p=="function"?p={validator:p}:p=T({},p),p.validator=o.getValidationMethod(p),p.validator&&(p.field=g,p.fullField=p.fullField||g,p.type=o.getType(p),f[g]=f[g]||[],f[g].push({rule:p,value:x,source:a,field:g}))})});var m={};return ZM(f,s,function(g,v){var x=g.rule,h=(x.type==="object"||x.type==="array")&&(ie(x.fields)==="object"||ie(x.defaultField)==="object");h=h&&(x.required||!x.required&&g.value),x.field=g.field;function p(C,R){return T(T({},R),{},{fullField:"".concat(x.fullField,".").concat(C),fullFields:x.fullFields?[].concat(le(x.fullFields),[C]):[C]})}function y(){var C=arguments.length>0&&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 P=R.map(v1(x,a));if(s.first&&P.length)return m[x.field]=1,v(P);if(!h)v(P);else{if(x.required&&!g.value)return x.message!==void 0?P=[].concat(x.message).map(v1(x,a)):s.error&&(P=[s.error(x,Lr(s.messages.required,x.field))]),v(P);var O={};x.defaultField&&Object.keys(g.value).map(function(L){O[L]=x.defaultField}),O=T(T({},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=[];P&&P.length&&W.push.apply(W,le(P)),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&&!$u.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"?$u.required:$u[this.getType(r)]||void 0}}]),e}();_(op,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");$u[t]=r});_(op,"warning",QM);_(op,"messages",gy);_(op,"validators",$u);var bA=op;var wy=E(N());var Sn="'${name}' is not a valid ${type}",Cy={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:Sn,method:Sn,array:Sn,object:Sn,number:Sn,date:Sn,boolean:Sn,integer:Sn,float:Sn,regexp:Sn,email:Sn,url:Sn,hex:Sn},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 SA=bA;function R9(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 CA="CODE_LOGIC_ERROR";function x1(e,t,r,o,n){return b1.apply(this,arguments)}function b1(){return b1=eo(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=T({},o),delete a.ruleIndex,SA.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(CA)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new SA(_({},t,[a])),u=Ra(Cy,n.validateMessages),c.messages(u),f=[],x.prev=10,x.next=13,Promise.resolve(c.validate(_({},t,r),T({},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===CA?u.default:y;return wy.isValidElement(S)?wy.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 x1("".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=T(T({},o),{},{name:t,enum:(o.enum||[]).join(", ")},i),g=f.map(function(h){return typeof h=="string"?R9(h,m):h}),x.abrupt("return",g);case 26:case"end":return x.stop()}},e,null,[[10,15]])})),b1.apply(this,arguments)}function wA(e,t,r,o,n,i){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,m=T(T({},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;C<b;C++)w[C]=arguments[C];Promise.resolve().then(function(){Kt(!h,"Your validator function has already return a promise. `callback` will be ignored."),h||x.apply(void 0,w)})},y=d(g,v,p);h=y&&typeof y.then=="function"&&typeof y.catch=="function",Kt(h,"`callback` is deprecated. Please return a promise instead."),h&&y.then(function(){x()}).catch(function(S){x(S||" ")})}),m}).sort(function(u,f){var d=u.warningOnly,m=u.ruleIndex,g=f.warningOnly,v=f.ruleIndex;return!!d==!!g?m-v:d?1:-1}),l;if(n===!0)l=new Promise(function(){var u=eo(Pt().mark(function f(d,m){var g,v,x;return Pt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:g=0;case 1:if(!(g<s.length)){p.next=12;break}return v=s[g],p.next=5,x1(a,t,v,o,i);case 5:if(x=p.sent,!x.length){p.next=9;break}return m([{errors:x,rule:v}]),p.abrupt("return");case 9:g+=1,p.next=1;break;case 12:d([]);case 13:case"end":return p.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return x1(a,t,u,o,i).then(function(f){return{errors:f,rule:u}})});l=(n?O9(c):_9(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function _9(e){return S1.apply(this,arguments)}function S1(){return S1=eo(Pt().mark(function e(t){return Pt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.all(t).then(function(n){var i,a=(i=[]).concat.apply(i,le(n));return a}));case 1:case"end":return o.stop()}},e)})),S1.apply(this,arguments)}function O9(e){return C1.apply(this,arguments)}function C1(){return C1=eo(Pt().mark(function e(t){var r;return Pt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=0,n.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return n.stop()}},e)})),C1.apply(this,arguments)}function Jt(e){return tp(e)}function w1(e,t){var r={};return t.forEach(function(o){var n=po(e,o);r=Lo(r,o,n)}),r}function Bs(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(o){return E1(t,o,r)})}function E1(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 EA(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 RA(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 R1(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 P9=["name"],qn=[];function _1(e,t,r,o,n,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):o!==n}var O1=function(e){xr(r,e);var t=br(r);function r(o){var n;if(ot(this,r),n=t.call(this,o),_(Ve(n),"state",{resetCount:0}),_(Ve(n),"cancelRegisterFunc",null),_(Ve(n),"mounted",!1),_(Ve(n),"touched",!1),_(Ve(n),"dirty",!1),_(Ve(n),"validatePromise",void 0),_(Ve(n),"prevValidating",void 0),_(Ve(n),"errors",qn),_(Ve(n),"warnings",qn),_(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}),_(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)):[]}),_(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})}),_(Ve(n),"refresh",function(){n.mounted&&n.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),_(Ve(n),"metaCache",null),_(Ve(n),"triggerMetaEvent",function(l){var c=n.props.onMetaChange;if(c){var u=T(T({},n.getMeta()),{},{destroy:l});Es(n.metaCache,u)||c(u),n.metaCache=u}else n.metaCache=null}),_(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&&Bs(c,h);switch(u.type==="valueUpdate"&&u.source==="external"&&!Es(p,y)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=qn,n.warnings=qn,n.triggerMetaEvent()),u.type){case"reset":if(!c||S){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=qn,n.warnings=qn,n.triggerMetaEvent(),v?.(),n.refresh();return}break;case"remove":{if(d&&_1(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||qn),"warnings"in b&&(n.warnings=b.warnings||qn),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in b&&Bs(c,h,!0)){n.reRender();return}if(d&&!h.length&&_1(d,l,x,p,y,u)){n.reRender();return}break}case"dependenciesUpdate":{var w=g.map(Jt);if(w.some(function(C){return Bs(u.relatedFields,C)})){n.reRender();return}break}default:if(S||(!g.length||h.length||d)&&_1(d,l,x,p,y,u)){n.reRender();return}break}d===!0&&n.reRender()}),_(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(eo(Pt().mark(function x(){var h,p,y,S,b,w,C;return Pt().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(n.mounted){P.next=2;break}return P.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=tp(I);return j.includes(d)})),!(b&&d)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,b)});case 8:if(n.validatePromise===v){P.next=10;break}return P.abrupt("return",[]);case 10:return C=wA(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]:qn;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?qn:$;z?L.push.apply(L,le(D)):j.push.apply(j,le(D))}),n.errors=j,n.warnings=L,n.triggerMetaEvent(),n.reRender()}}),P.abrupt("return",C);case 13:case"end":return P.stop()}},x)})));return g||(n.validatePromise=v,n.dirty=!0,n.errors=qn,n.warnings=qn,n.triggerMetaEvent(),n.reRender()),v}),_(Ve(n),"isFieldValidating",function(){return!!n.validatePromise}),_(Ve(n),"isFieldTouched",function(){return n.touched}),_(Ve(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var l=n.props.fieldContext,c=l.getInternalHooks(_i),u=c.getInitialValue;return u(n.getNamePath())!==void 0}),_(Ve(n),"getErrors",function(){return n.errors}),_(Ve(n),"getWarnings",function(){return n.warnings}),_(Ve(n),"isListField",function(){return n.props.isListField}),_(Ve(n),"isList",function(){return n.props.isList}),_(Ve(n),"isPreserve",function(){return n.props.preserve}),_(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}),_(Ve(n),"getOnlyChild",function(l){if(typeof l=="function"){var c=n.getMeta();return T(T({},n.getOnlyChild(l(n.getControlled(),c,n.props.fieldContext))),{},{isFunction:!0})}var u=vi(l);return u.length!==1||!ko.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),_(Ve(n),"getValue",function(l){var c=n.props.fieldContext.getFieldsValue,u=n.getNamePath();return po(l||c(!0),u)}),_(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(_i),C=w.dispatch,R=n.getValue(),P=x||function(W){return _({},v,W)},O=l[f],I=u!==void 0?P(R):{},j=T(T({},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<z;D++)$[D]=arguments[D];m?W=m.apply(void 0,$):W=RA.apply(void 0,[v].concat($)),g&&(W=g(W,R,b(!0))),W!==R&&C({type:"updateValue",namePath:y,value:W}),O&&O.apply(void 0,$)};var L=tp(p||[]);return L.forEach(function(W){var z=j[W];j[W]=function(){z&&z.apply(void 0,arguments);var $=n.props.rules;$&&$.length&&C({type:"validateField",namePath:y,triggerName:W})}}),j}),o.fieldContext){var i=o.fieldContext.getInternalHooks,a=i(_i),s=a.initEntityValue;s(Ve(n))}return n}return nt(r,[{key:"componentDidMount",value:function(){var n=this.props,i=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(_i),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var n=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:ko.isValidElement(s)?c=ko.cloneElement(s,this.getControlled(s.props)):(Kt(!s,"`children` of Field is not validate ReactElement."),c=s),ko.createElement(ko.Fragment,{key:n},c)}}]),r}(ko.Component);_(O1,"contextType",Oi);_(O1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function T9(e){var t,r=e.name,o=Ne(e,P9),n=ko.useContext(Oi),i=ko.useContext(zs),a=r!==void 0?Jt(r):void 0,s=(t=o.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),ko.createElement(O1,Z({key:l,name:a,isListField:s},o,{fieldContext:n}))}var Ey=T9;var Cn=E(N());function N9(e){var t=e.name,r=e.initialValue,o=e.children,n=e.rules,i=e.validateTrigger,a=e.isListField,s=Cn.useContext(Oi),l=Cn.useContext(zs),c=Cn.useRef({keys:[],id:0}),u=c.current,f=Cn.useMemo(function(){var v=Jt(s.prefixName)||[];return[].concat(le(v),le(Jt(t)))},[s.prefixName,t]),d=Cn.useMemo(function(){return T(T({},s),{},{prefixName:f})},[s,f]),m=Cn.useMemo(function(){return{getKey:function(x){var h=f.length,p=x[h];return[u.keys[p],x.slice(h+1)]}}},[f]);if(typeof o!="function")return Kt(!1,"Form.List only accepts function as children."),null;var g=function(x,h,p){var y=p.source;return y==="internal"?!1:x!==h};return Cn.createElement(zs.Provider,{value:m},Cn.createElement(Oi.Provider,{value:d},Cn.createElement(Ey,{name:[],shouldUpdate:g,rules:n,validateTrigger:i,initialValue:r,isList:!0,isListField:a??!!l},function(v,x){var h=v.value,p=h===void 0?[]:h,y=v.onChange,S=s.getFieldValue,b=function(){var P=S(f||[]);return P||[]},w={add:function(P,O){var I=b();O>=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)),[P],le(I.slice(O))))):(u.keys=[].concat(le(u.keys),[u.id]),y([].concat(le(I),[P]))),u.id+=1},remove:function(P){var O=b(),I=new Set(Array.isArray(P)?P:[P]);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(P,O){if(P!==O){var I=b();P<0||P>=I.length||O<0||O>=I.length||(u.keys=R1(u.keys,P,O),y(R1(I,P,O)))}}},C=p||[];return Array.isArray(C)||(C=[]),o(C.map(function(R,P){var O=u.keys[P];return O===void 0&&(u.keys[P]=u.id,O=u.keys[P],u.id+=1),{name:P,key:O,isListField:!0}}),w,x)})))}var _A=N9;var Ry=E(N());function OA(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 PA="__@field_split__";function P1(e){return e.map(function(t){return"".concat(ie(t),":").concat(t)}).join(PA)}var I9=function(){function e(){ot(this,e),_(this,"kvs",new Map)}return nt(e,[{key:"set",value:function(r,o){this.kvs.set(P1(r),o)}},{key:"get",value:function(r){return this.kvs.get(P1(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(P1(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(PA);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}(),ql=I9;var $9=["name"],D9=nt(function e(t){var r=this;ot(this,e),_(this,"formHooked",!1),_(this,"forceRootUpdate",void 0),_(this,"subscribable",!0),_(this,"store",{}),_(this,"fieldEntities",[]),_(this,"initialValues",{}),_(this,"callbacks",{}),_(this,"validateMessages",null),_(this,"preserve",null),_(this,"lastValidatePromise",null),_(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}}),_(this,"getInternalHooks",function(o){return o===_i?(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)}),_(this,"useSubscribe",function(o){r.subscribable=o}),_(this,"prevWithoutPreserves",null),_(this,"setInitialValues",function(o,n){if(r.initialValues=o||{},n){var i,a=Ra(o,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Lo(a,l,po(o,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),_(this,"destroyForm",function(o){if(o)r.updateStore({});else{var n=new ql;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=n}}),_(this,"getInitialValue",function(o){var n=po(r.initialValues,o);return o.length?Ra(n):n}),_(this,"setCallbacks",function(o){r.callbacks=o}),_(this,"setValidateMessages",function(o){r.validateMessages=o}),_(this,"setPreserve",function(o){r.preserve=o}),_(this,"watchList",[]),_(this,"registerWatch",function(o){return r.watchList.push(o),function(){r.watchList=r.watchList.filter(function(n){return n!==o})}}),_(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)})}}),_(this,"timeoutId",null),_(this,"warningUnhooked",function(){}),_(this,"updateStore",function(o){r.store=o}),_(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}),_(this,"getFieldsMap",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new ql;return r.getFieldEntities(o).forEach(function(i){var a=i.getNamePath();n.set(a,i)}),n}),_(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)}})}),_(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)}}),w1(r.store,c.map(Jt))}),_(this,"getFieldValue",function(o){r.warningUnhooked();var n=Jt(o);return po(r.store,n)}),_(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:[]}})}),_(this,"getFieldError",function(o){r.warningUnhooked();var n=Jt(o),i=r.getFieldsError([n])[0];return i.errors}),_(this,"getFieldWarning",function(o){r.warningUnhooked();var n=Jt(o),i=r.getFieldsError([n])[0];return i.warnings}),_(this,"isFieldsTouched",function(){r.warningUnhooked();for(var o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];var a=n[0],s=n[1],l,c=!1;n.length===0?l=null:n.length===1?Array.isArray(a)?(l=a.map(Jt),c=!1):(l=null,c=a):(l=a.map(Jt),c=s);var u=r.getFieldEntities(!0),f=function(x){return x.isFieldTouched()};if(!l)return c?u.every(function(v){return f(v)||v.isList()}):u.some(f);var d=new ql;l.forEach(function(v){d.set(v,[])}),u.forEach(function(v){var x=v.getNamePath();l.forEach(function(h){h.every(function(p,y){return x[y]===p})&&d.update(h,function(p){return[].concat(le(p),[v])})})});var m=function(x){return x.some(f)},g=d.map(function(v){var x=v.value;return x});return c?g.every(m):g.some(m)}),_(this,"isFieldTouched",function(o){return r.warningUnhooked(),r.isFieldsTouched([o])}),_(this,"isFieldsValidating",function(o){r.warningUnhooked();var n=r.getFieldEntities();if(!o)return n.some(function(a){return a.isFieldValidating()});var i=o.map(Jt);return n.some(function(a){var s=a.getNamePath();return Bs(i,s)&&a.isFieldValidating()})}),_(this,"isFieldValidating",function(o){return r.warningUnhooked(),r.isFieldsValidating([o])}),_(this,"resetWithFieldInitialValue",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new ql,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(Lo(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)}),_(this,"resetFields",function(o){r.warningUnhooked();var n=r.store;if(!o){r.updateStore(Ra(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(Lo(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(n,i,{type:"reset"}),r.notifyWatch(i)}),_(this,"setFields",function(o){r.warningUnhooked();var n=r.store,i=[];o.forEach(function(a){var s=a.name,l=Ne(a,$9),c=Jt(s);i.push(c),"value"in l&&r.updateStore(Lo(r.store,c,l.value)),r.notifyObservers(n,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),_(this,"getFields",function(){var o=r.getFieldEntities(!0),n=o.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=T(T({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return n}),_(this,"initEntityValue",function(o){var n=o.props.initialValue;if(n!==void 0){var i=o.getNamePath(),a=po(r.store,i);a===void 0&&r.updateStore(Lo(r.store,i,n))}}),_(this,"isMergedPreserve",function(o){var n=o!==void 0?o:r.preserve;return n??!0}),_(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!E1(f.getNamePath(),n)})){var u=r.store;r.updateStore(Lo(u,n,c,!0)),r.notifyObservers(u,[n],{type:"remove"}),r.triggerDependenciesUpdate(u,n)}}r.notifyWatch([n])}}),_(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:}}),_(this,"notifyObservers",function(o,n,i){if(r.subscribable){var a=T(T({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(o,n,a)})}else r.forceRootUpdate()}),_(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}),_(this,"updateValue",function(o,n){var i=Jt(o),a=r.store;r.updateStore(Lo(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=w1(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(le(s)))}),_(this,"setFieldsValue",function(o){r.warningUnhooked();var n=r.store;if(o){var i=Ra(r.store,o);r.updateStore(i)}r.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),_(this,"setFieldValue",function(o,n){r.setFields([{name:o,value:n,errors:[],warnings:[]}])}),_(this,"getDependencyChildrenFields",function(o){var n=new Set,i=[],a=new ql;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}),_(this,"triggerOnFieldsChange",function(o,n){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(n){var s=new ql;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 Bs(o,u)});l.length&&i(l,a)}}),_(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||Bs(l,y,m)){var S=p.validateRules(T({validateMessages:T(T({},Cy),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(P){var O=P.rule.warningOnly,I=P.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=OA(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}),_(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 M9(e){var t=Ry.useRef(),r=Ry.useState({}),o=B(r,2),n=o[1];if(!t.current)if(e)t.current=e;else{var i=function(){n({})},a=new D9(i);t.current=a.getForm()}return[t.current]}var _y=M9;var oo=E(N());var js=E(N()),T1=js.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),N1=function(t){var r=t.validateMessages,o=t.onFormChange,n=t.onFormFinish,i=t.children,a=js.useContext(T1),s=js.useRef({});return js.createElement(T1.Provider,{value:T(T({},a),{},{validateMessages:T(T({},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=T(T({},s.current),{},_({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=T({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var TA=T1;var A9=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],L9=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,A9),S=oo.useRef(null),b=oo.useContext(TA),w=_y(a),C=B(w,1),R=C[0],P=R.getInternalHooks(_i),O=P.useSubscribe,I=P.setInitialValues,j=P.setCallbacks,L=P.setValidateMessages,W=P.setPreserve,z=P.destroyForm;oo.useImperativeHandle(r,function(){return T(T({},R),{},{nativeElement:S.current})}),oo.useEffect(function(){return b.registerForm(o,R),function(){b.unregisterForm(o)}},[b,R,o]),L(T(T({},b.validateMessages),f)),j({onValuesChange:g,onFieldsChange:function(M){if(b.triggerFormChange(o,M),v){for(var G=arguments.length,q=new Array(G>1?G-1:0),ne=1;ne<G;ne++)q[ne-1]=arguments[ne];v.apply(void 0,[M].concat(q))}},onFinish:function(M){b.triggerFormFinish(o,M),x&&x(M)},onFinishFailed:h}),W(s);var $=oo.useRef(null);I(n,!$.current),$.current||($.current=!0),oo.useEffect(function(){return function(){return z(p)}},[]);var D,A=typeof l=="function";if(A){var H=R.getFieldsValue(!0);D=l(H,R)}else D=l;O(!A);var k=oo.useRef();oo.useEffect(function(){EA(k.current||[],i||[])||R.setFields(i||[]),k.current=i},[i,R]);var F=oo.useMemo(function(){return T(T({},R),{},{validateTrigger:m})},[R,m]),U=oo.createElement(zs.Provider,{value:null},oo.createElement(Oi.Provider,{value:F},D));return u===!1?U:oo.createElement(u,Z({},y,{ref:S,onSubmit:function(M){M.preventDefault(),M.stopPropagation(),R.submit()},onReset:function(M){var G;M.preventDefault(),R.resetFields(),(G=y.onReset)===null||G===void 0||G.call(y,M)}}),U)},NA=L9;var Pi=E(N());function IA(e){try{return JSON.stringify(e)}catch{return Math.random()}}var k9=function(){};function F9(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0],n=t[1],i=n===void 0?{}:n,a=GM(i)?{form:i}:i,s=a.form,l=(0,Pi.useState)(),c=B(l,2),u=c[0],f=c[1],d=(0,Pi.useMemo)(function(){return IA(u)},[u]),m=(0,Pi.useRef)(d);m.current=d;var g=(0,Pi.useContext)(Oi),v=s||g,x=v&&v._init,h=Jt(o),p=(0,Pi.useRef)(h);return p.current=h,k9(h),(0,Pi.useEffect)(function(){if(x){var y=v.getFieldsValue,S=v.getInternalHooks,b=S(_i),w=b.registerWatch,C=function(I,j){var L=a.preserve?j:I;return typeof o=="function"?o(L):po(L,p.current)},R=w(function(O,I){var j=C(O,I),L=IA(j);m.current!==L&&(m.current=L,f(j))}),P=C(y(),y(!0));return u!==P&&f(P),R}},[x]),u}var $A=F9;var z9=DA.forwardRef(NA),np=z9;np.FormProvider=N1;np.Field=Ey;np.List=_A;np.useForm=_y;np.useWatch=$A;var no=La.createContext({}),MA=e=>{let{children:t,status:r,override:o}=e,n=La.useContext(no),i=La.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 La.createElement(no.Provider,{value:i},t)},AA=La.createContext(void 0);var B9=e=>{let{space:t,form:r,children:o}=e;if(o==null)return null;let n=o;return r&&(n=I1.default.createElement(MA,{override:!0,status:!0},n)),t&&(n=I1.default.createElement(SD,null,n)),n},Ws=B9;var j9=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"}}}},W9=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},V9=(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},$1=(e,t)=>V9(e,t),H9=(e,t,r)=>({[`@media (min-width: ${te(t)})`]:Object.assign({},$1(e,r))}),U9=()=>({}),G9=()=>({}),LSe=Rt("Grid",j9,U9),D1=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),kSe=Rt("Grid",e=>{let t=Ze(e,{gridColumns:24}),r=D1(t);return delete r.xs,[W9(t),$1(t,""),$1(t,"-xs"),Object.keys(r).map(o=>H9(t,r[o],`-${o}`)).reduce((o,n)=>Object.assign(Object.assign({},o),n),{})]},G9);function LA(e){return{position:e,inset:0}}var M1=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({},LA("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},LA("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:jl(e)}]},q9=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}},lv(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"}}}]},K9=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},X9=e=>{let{componentCls:t}=e,r=D1(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))}}},Y9=e=>{let t=e.padding,r=e.fontSizeHeading5,o=e.lineHeightHeading5;return Ze(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()})},Q9=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}),USe=Rt("Modal",e=>{let t=Y9(e);return[q9(t),K9(t),M1(t),Wl(t,"zoom"),X9(t)]},Q9,{unitless:{titleLineHeight:!0}});var Zo=E(N());function Z9(e){return t=>Zo.createElement($a,{theme:{token:{motion:!1,zIndexPopupBase:0}}},Zo.createElement(e,Object.assign({},t)))}var J9=(e,t,r,o,n)=>Z9(a=>{let{prefixCls:s,style:l}=a,c=Zo.useRef(null),[u,f]=Zo.useState(0),[d,m]=Zo.useState(0),[g,v]=zt(!1,{value:a.open}),{getPrefixCls:x}=Zo.useContext(Qe),h=x(o||"select",s);Zo.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}}}),Zo.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},Zo.createElement(e,Object.assign({},p)))}),kA=J9;var Zn=E(N()),_E=E(Ce());var tr=E(N());var eE=E(Ce());var Du=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 A1=E(N()),FA=E(Ce()),e7=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 A1.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:A1.createElement("span",{className:(0,FA.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Vs=e7;var Oy=E(N()),zA=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=Oy.default.useMemo(function(){if(ie(n)==="object")return n.clearIcon;if(i)return i},[n,i]),u=Oy.default.useMemo(function(){return!!(!a&&n&&(o.length||s)&&!(l==="combobox"&&s===""))},[n,a,o.length,s,l]);return{allowClear:u,clearIcon:Oy.default.createElement(Vs,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var Py=E(N()),L1=Py.createContext(null);function Ty(){return Py.useContext(L1)}var Mu=E(N());function k1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Mu.useState(!1),r=B(t,2),o=r[0],n=r[1],i=Mu.useRef(null),a=function(){window.clearTimeout(i.current)};Mu.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 ip=E(N());function ap(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=ip.useRef(null),r=ip.useRef(null);ip.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 Ny=E(N());function F1(e,t,r,o){var n=Ny.useRef(null);n.current={open:t,triggerOpen:r,customizedTrigger:o},Ny.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 ka=E(N()),Ay=E(N());function BA(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 wn=E(N()),j1=E(N()),aL=E(Ce());var Kn=E(N()),ea=E(N()),XA=E(Ce());var Kl=E(N()),jA=E(Ce());var t7=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Au=void 0;function r7(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,t7),p=a&&!m;function y(R){l(c,R)}Kl.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=Kl.createElement(x,Z({className:(0,jA.default)(!o&&r,u),style:T(T({},b),f)},w,h,{ref:t}),S);return a&&(C=Kl.createElement(qo,{onResize:function(P){var O=P.offsetWidth;y(O)},disabled:s},C)),C}var WA=Kl.forwardRef(r7);WA.displayName="Item";var Lu=WA;var Iy=E(N()),VA=E(Ui());function z1(e){if(typeof MessageChannel>"u")ft(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function HA(){var e=Iy.useRef(null),t=function(o){e.current||(e.current=[],z1(function(){(0,VA.unstable_batchedUpdates)(function(){e.current.forEach(function(n){n()}),e.current=null})})),e.current.push(o)};return t}function Xl(e,t){var r=Iy.useState(t),o=B(r,2),n=o[0],i=o[1],a=It(function(s){e(function(){i(s)})});return[n,a]}var Hs=E(N()),GA=E(Ce());var UA=E(N()),Yl=UA.default.createContext(null);var o7=["component"],n7=["className"],i7=["className"],a7=function(t,r){var o=Hs.useContext(Yl);if(!o){var n=t.component,i=n===void 0?"div":n,a=Ne(t,o7);return Hs.createElement(i,Z({},a,{ref:r}))}var s=o.className,l=Ne(o,n7),c=t.className,u=Ne(t,i7);return Hs.createElement(Yl.Provider,{value:null},Hs.createElement(Lu,Z({ref:r,className:(0,GA.default)(s,c)},l,u)))},qA=Hs.forwardRef(a7);qA.displayName="RawItem";var KA=qA;var s7=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],YA="responsive",QA="invalidate";function l7(e){return"+ ".concat(e.length," ...")}function c7(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,s7),C=f==="full",R=HA(),P=Xl(R,null),O=B(P,2),I=O[0],j=O[1],L=I||0,W=Xl(R,new Map),z=B(W,2),$=z[0],D=z[1],A=Xl(R,0),H=B(A,2),k=H[0],F=H[1],U=Xl(R,0),V=B(U,2),M=V[0],G=V[1],q=Xl(R,0),ne=B(q,2),ee=ne[0],Q=ne[1],ce=(0,ea.useState)(null),re=B(ce,2),K=re[0],X=re[1],oe=(0,ea.useState)(null),Y=B(oe,2),J=Y[0],se=Y[1],ue=Kn.useMemo(function(){return J===null&&C?Number.MAX_SAFE_INTEGER:J||0},[J,I]),de=(0,ea.useState)(!1),ye=B(de,2),xe=ye[0],Pe=ye[1],fe="".concat(o,"-item"),pe=Math.max(k,M),Me=g===YA,je=i.length&&Me,Xe=g===QA,Le=je||typeof g=="number"&&i.length>g,Ie=(0,ea.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,ea.useMemo)(function(){return je?i.slice(ue+1):i.slice(Ie.length)},[i,Ie,je,ue]),Ke=(0,ea.useCallback)(function(Te,Oe){var we;return typeof l=="function"?l(Te):(we=l&&Te?.[l])!==null&&we!==void 0?we:Oe},[l]),et=(0,ea.useCallback)(a||function(Te){return Te},[a]);function We(Te,Oe,we){J===Te&&(Oe===void 0||Oe===K)||(se(Te),we||(Pe(Te<i.length-1),b?.(Te)),Oe!==void 0&&X(Oe))}function ae(Te,Oe){j(Oe.clientWidth)}function me(Te,Oe){D(function(we){var gt=new Map(we);return Oe===null?gt.delete(Te):gt.set(Te,Oe),gt})}function ze(Te,Oe){G(Oe),F(M)}function be(Te,Oe){Q(Oe)}function He(Te){return $.get(Ke(Ie[Te],Te))}xt(function(){if(L&&typeof pe=="number"&&Ie){var Te=ee,Oe=Ie.length,we=Oe-1;if(!Oe){We(0,null);return}for(var gt=0;gt<Oe;gt+=1){var jt=He(gt);if(C&&(jt=jt||0),jt===void 0){We(gt-1,void 0,!0);break}if(Te+=jt,we===0&&Te<=L||gt===we-1&&Te+He(we)<=L){We(we,null);break}else if(Te+pe>L){We(gt-1,Te-jt-ee+M);break}}h&&He(0)+ee>L&&X(null)}},[L,$,M,ee,Ke,Ie]);var Ue=xe&&!!Ee.length,wt={};K!==null&&je&&(wt={position:"absolute",left:K,top:0});var Ot={prefixCls:fe,responsive:je,component:S,invalidate:Xe},Ht=s?function(Te,Oe){var we=Ke(Te,Oe);return Kn.createElement(Yl.Provider,{key:we,value:T(T({},Ot),{},{order:Oe,item:Te,itemKey:we,registerSize:me,display:Oe<=ue})},s(Te,Oe))}:function(Te,Oe){var we=Ke(Te,Oe);return Kn.createElement(Lu,Z({},Ot,{order:Oe,key:we,item:Te,renderItem:et,itemKey:we,registerSize:me,display:Oe<=ue}))},Ae={order:Ue?ue:Number.MAX_SAFE_INTEGER,className:"".concat(fe,"-rest"),registerSize:ze,display:Ue},Re=v||l7,Je=x?Kn.createElement(Yl.Provider,{value:T(T({},Ot),Ae)},x(Ee)):Kn.createElement(Lu,Z({},Ot,Ae),typeof Re=="function"?Re(Ee):Re),_e=Kn.createElement(y,Z({className:(0,XA.default)(!Xe&&o,m),style:d,ref:t},w),Ie.map(Ht),Le?Je:null,h&&Kn.createElement(Lu,Z({},Ot,{responsive:Me,responsiveDisabled:!je,order:ue,className:"".concat(fe,"-suffix"),registerSize:be,display:!0,style:wt}),h));return Me?Kn.createElement(qo,{onResize:ae,disabled:!je},_e):_e}var sp=Kn.forwardRef(c7);sp.displayName="Overflow";sp.Item=KA;sp.RESPONSIVE=YA;sp.INVALIDATE=QA;var ZA=sp;var JA=ZA;var ku=E(N()),eL=E(Ce());var u7=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||ku.createElement("input",null),P=R,O=P.ref,I=P.props,j=I.onKeyDown,L=I.onChange,W=I.onMouseDown,z=I.onCompositionStart,$=I.onCompositionEnd,D=I.onBlur,A=I.style;return Rl(!("maxLength"in R.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),R=ku.cloneElement(R,T(T(T({type:"search"},I),{},{id:i,ref:Wr(r,O),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:(0,eL.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:T(T({},A),{},{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},f7=ku.forwardRef(u7),$y=f7;var My=E(N());function lp(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var d7=typeof window<"u"&&window.document&&window.document.documentElement,rL=d7;function oL(e){return e!=null}function nL(e){return!e&&e!==0}function tL(e){return["string","number"].includes(ie(e))}function Dy(e){var t=void 0;return e&&(tL(e.title)?t=e.title.toString():tL(e.label)&&(t=e.label.toString())),t}function B1(e,t){rL?My.useLayoutEffect(e,t):My.useEffect(e,t)}function p7(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var iL=function(t){t.preventDefault(),t.stopPropagation()},m7=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,P=t.onInputChange,O=t.onInputPaste,I=t.onInputKeyDown,j=t.onInputMouseDown,L=t.onInputCompositionStart,W=t.onInputCompositionEnd,z=t.onInputBlur,$=wn.useRef(null),D=(0,j1.useState)(0),A=B(D,2),H=A[0],k=A[1],F=(0,j1.useState)(!1),U=B(F,2),V=U[0],M=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);B1(function(){k($.current.scrollWidth)},[q]);var ee=function(Y,J,se,ue,de){return wn.createElement("span",{title:Dy(Y),className:(0,aL.default)("".concat(G,"-item"),_({},"".concat(G,"-item-disabled"),se))},wn.createElement("span",{className:"".concat(G,"-item-content")},J),ue&&wn.createElement(Vs,{className:"".concat(G,"-item-remove"),onMouseDown:iL,onClick:de,customizeIcon:h},"\xD7"))},Q=function(Y,J,se,ue,de,ye){var xe=function(fe){iL(fe),C(!i)};return wn.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=wn.createElement("div",{className:"".concat(G,"-search"),style:{width:H},onFocus:function(){M(!0)},onBlur:function(){M(!1)}},wn.createElement($y,{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:P,onPaste:O,onCompositionStart:L,onCompositionEnd:W,onBlur:z,tabIndex:x,attrs:Ro(t,!0)}),wn.createElement("span",{ref:$,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q,"\xA0")),X=wn.createElement(JA,{prefixCls:"".concat(G,"-overflow"),data:n,renderItem:ce,renderRest:re,suffix:K,itemKey:p7,maxCount:p});return wn.createElement("span",{className:"".concat(G,"-wrap")},X,!n.length&&!q&&wn.createElement("span",{className:"".concat(G,"-placeholder")},c))},sL=m7;var Xn=E(N());var h7=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,P=t.onInputBlur,O=t.title,I=Xn.useState(!1),j=B(I,2),L=j[0],W=j[1],z=u==="combobox",$=z||v,D=d[0],A=x||"";z&&h&&!L&&(A=h),Xn.useEffect(function(){z&&W(!1)},[z,h]);var H=u!=="combobox"&&!f&&!v?!1:!!A,k=O===void 0?Dy(D):O,F=Xn.useMemo(function(){return D?null:Xn.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:H?{visibility:"hidden"}:void 0},m)},[D,H,m,o]);return Xn.createElement("span",{className:"".concat(o,"-selection-wrap")},Xn.createElement("span",{className:"".concat(o,"-selection-search")},Xn.createElement($y,{ref:i,prefixCls:o,id:n,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:$,activeDescendantId:c,value:A,onKeyDown:y,onMouseDown:S,onChange:function(V){W(!0),b(V)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:P,tabIndex:g,attrs:Ro(t,!0),maxLength:z?p:void 0})),!z&&D?Xn.createElement("span",{className:"".concat(o,"-selection-item"),title:k,style:H?{visibility:"hidden"}:void 0},D.label):null,F)},lL=h7;var g7=function(t,r){var o=(0,Ay.useRef)(null),n=(0,Ay.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;ka.useImperativeHandle(r,function(){return{focus:function(k){o.current.focus(k)},blur:function(){o.current.blur()}}});var y=ap(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))&&BA(F)&&v(!0)},R=function(){w(!0)},P=(0,Ay.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&&P.current&&/[\r\n]/.test(P.current)){var U=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");F=F.replace(U,P.current)}P.current=null,O(F)},W=function(k){var F=k.clipboardData,U=F?.getData("text");P.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},A=s==="multiple"||s==="tags"?ka.createElement(sL,Z({},t,D)):ka.createElement(lL,Z({},t,D));return ka.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:z,onMouseDown:$},f&&ka.createElement("div",{className:"".concat(i,"-prefix")},f),A)},v7=ka.forwardRef(g7),cL=v7;var ky=E(Ce());var pt=E(N());var mL=E(Ce());var Yn=E(N());var uL=E(Ce()),Ly=E(N());function W1(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=Ly.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 Ly.createElement("div",{ref:d,className:(0,uL.default)("".concat(t,"-arrow"),a),style:m},s)}var fL=E(Ce());var V1=E(N());function H1(e){var t=e.prefixCls,r=e.open,o=e.zIndex,n=e.mask,i=e.motion;return n?V1.createElement(Jr,Z({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return V1.createElement("div",{style:{zIndex:o},className:(0,fL.default)("".concat(t,"-mask"),s)})}):null}var dL=E(N()),y7=dL.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),pL=y7;var x7=Yn.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,P=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,A=e.stretch,H=e.targetWidth,k=e.targetHeight,F=typeof r=="function"?r():r,U=l||c,V=y?.length>0,M=Yn.useState(!y||!V),G=B(M,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 A&&(A.includes("height")&&k?Y.height=k:A.includes("minHeight")&&k&&(Y.minHeight=k),A.includes("width")&&H?Y.width=H:A.includes("minWidth")&&H&&(Y.minWidth=H)),l||(Y.pointerEvents="none"),Yn.createElement(b,{open:p||U,getContainer:y&&function(){return y(a)},autoDestroy:S},Yn.createElement(H1,{prefixCls:n,open:l,zIndex:w,mask:d,motion:h}),Yn.createElement(qo,{onResize:$,disabled:!l},function(J){return Yn.createElement(Jr,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,mL.default)(n,de,o);return Yn.createElement("div",{ref:Wr(J,t,ue),className:xe,style:T(T(T(T({"--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:P,onClick:f,onPointerDownCapture:O},m&&Yn.createElement(W1,{prefixCls:n,arrow:m,arrowPos:g,align:v}),Yn.createElement(pL,{cache:!l&&!u},F))})}))}),hL=x7;var Fu=E(N()),b7=Fu.forwardRef(function(e,t){var r=e.children,o=e.getTriggerDOMNode,n=yi(r),i=Fu.useCallback(function(s){Od(t,o?o(s):s)},[o]),a=gn(i,bs(r));return n?Fu.cloneElement(r,{ref:a}):r}),gL=b7;var vL=E(N()),S7=vL.createContext(null),U1=S7;var xL=E(N());function yL(e){return e?Array.isArray(e)?e:[e]:[]}function G1(e,t,r,o){return xL.useMemo(function(){var n=yL(r??t),i=yL(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 Ql=E(N());function C7(){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 bL(e,t,r,o){for(var n=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(C7((s=e[l])===null||s===void 0?void 0:s.points,n,o))return"".concat(t,"-placement-").concat(l)}return""}function q1(e,t,r,o){return t||(r?{motionName:"".concat(e,"-").concat(r)}:o?{motionName:o}:null)}function Us(e){return e.ownerDocument.defaultView}function up(e){for(var t=[],r=e?.parentElement,o=["hidden","scroll","clip","auto"];r;){var n=Us(r).getComputedStyle(r),i=n.overflowX,a=n.overflowY,s=n.overflow;[i,a,s].some(function(l){return o.includes(l)})&&t.push(r),r=r.parentElement}return t}function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function cp(e){return zu(parseFloat(e),0)}function K1(e,t){var r=T({},e);return(t||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var n=Us(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=cp(s),h=cp(l),p=cp(c),y=cp(u),S=zu(Math.round(f.width/g*1e3)/1e3),b=zu(Math.round(f.height/d*1e3)/1e3),w=(g-v-p-y)*S,C=(d-m-x-h)*b,R=x*b,P=h*b,O=p*S,I=y*S,j=0,L=0;if(i==="clip"){var W=cp(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,A=$+f.height+2*L-R-P-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,A)}}),r}function SL(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 CL(e,t){var r=t||[],o=B(r,2),n=o[0],i=o[1];return[SL(e.width,n),SL(e.height,i)]}function wL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Bu(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 Gs(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 X1(e,t,r,o,n,i,a){var s=Ql.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=Ql.useRef(0),d=Ql.useMemo(function(){return t?up(t):[]},[t]),m=Ql.useRef({}),g=function(){m.current={}};e||g();var v=It(function(){if(t&&r&&e){let No=function(hc,Xa){var gc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,qp=M.x+hc,Kp=M.y+Xa,xx=qp+X,Fe=Kp+K,at=Math.max(qp,gc.left),nr=Math.max(Kp,gc.top),Rr=Math.min(xx,gc.right),ir=Math.min(Fe,gc.bottom);return Math.max(0,(Rr-at)*(ir-nr))},mc=function(){hr=M.y+we,Cr=hr+K,Gr=M.x+Oe,rn=Gr+X};var KR=No,XR=mc,p,y,S,b,w=t,C=w.ownerDocument,R=Us(w),P=R.getComputedStyle(w),O=P.width,I=P.height,j=P.position,L=w.style.left,W=w.style.top,z=w.style.right,$=w.style.bottom,D=w.style.overflow,A=T(T({},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 M=w.getBoundingClientRect();M.x=(y=M.x)!==null&&y!==void 0?y:M.left,M.y=(S=M.y)!==null&&S!==void 0?S:M.top;var G=C.documentElement,q=G.clientWidth,ne=G.clientHeight,ee=G.scrollWidth,Q=G.scrollHeight,ce=G.scrollTop,re=G.scrollLeft,K=M.height,X=M.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=A.htmlRegion,de="visible",ye="visibleFirst";ue!=="scroll"&&ue!==ye&&(ue=de);var xe=ue===ye,Pe=K1(se,d),fe=K1(J,d),pe=ue===de?fe:Pe,Me=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=zu(Math.round(X/parseFloat(O)*1e3)/1e3),Le=zu(Math.round(K/parseFloat(I)*1e3)/1e3);if(Xe===0||Le===0||_l(r)&&!Hv(r))return;var Ie=A.offset,Ee=A.targetOffset,Ke=CL(M,Ie),et=B(Ke,2),We=et[0],ae=et[1],me=CL(k,Ee),ze=B(me,2),be=ze[0],He=ze[1];k.x-=be,k.y-=He;var Ue=A.points||[],wt=B(Ue,2),Ot=wt[0],Ht=wt[1],Ae=wL(Ht),Re=wL(Ot),Je=Bu(k,Ae),_e=Bu(M,Re),Te=T({},A),Oe=Je.x-_e.x+We,we=Je.y-_e.y+ae,gt=No(Oe,we),jt=No(Oe,we,fe),$e=Bu(k,["t","l"]),Se=Bu(M,["t","l"]),Ge=Bu(k,["b","r"]),qe=Bu(M,["b","r"]),Be=A.overflow||{},rt=Be.adjustX,Wt=Be.adjustY,Tt=Be.shiftX,cr=Be.shiftY,Ft=function(Xa){return typeof Xa=="boolean"?Xa:Xa>=0},hr,Cr,Gr,rn;mc();var wr=Ft(Wt),Fr=Re[0]===Ae[0];if(wr&&Re[0]==="t"&&(Cr>Me.bottom||m.current.bt)){var ve=we;Fr?ve-=K-oe:ve=$e.y-qe.y-ae;var ke=No(Oe,ve),ut=No(Oe,ve,fe);ke>gt||ke===gt&&(!xe||ut>=jt)?(m.current.bt=!0,we=ve,ae=-ae,Te.points=[Gs(Re,0),Gs(Ae,0)]):m.current.bt=!1}if(wr&&Re[0]==="b"&&(hr<Me.top||m.current.tb)){var vt=we;Fr?vt+=K-oe:vt=Ge.y-Se.y-ae;var or=No(Oe,vt),$i=No(Oe,vt,fe);or>gt||or===gt&&(!xe||$i>=jt)?(m.current.tb=!0,we=vt,ae=-ae,Te.points=[Gs(Re,0),Gs(Ae,0)]):m.current.tb=!1}var zo=Ft(rt),Ua=Re[1]===Ae[1];if(zo&&Re[1]==="l"&&(rn>Me.right||m.current.rl)){var oi=Oe;Ua?oi-=X-Y:oi=$e.x-qe.x-We;var Di=No(oi,we),_n=No(oi,we,fe);Di>gt||Di===gt&&(!xe||_n>=jt)?(m.current.rl=!0,Oe=oi,We=-We,Te.points=[Gs(Re,1),Gs(Ae,1)]):m.current.rl=!1}if(zo&&Re[1]==="r"&&(Gr<Me.left||m.current.lr)){var On=Oe;Ua?On+=X-Y:On=Ge.x-Se.x-We;var rl=No(On,we),dc=No(On,we,fe);rl>gt||rl===gt&&(!xe||dc>=jt)?(m.current.lr=!0,Oe=On,We=-We,Te.points=[Gs(Re,1),Gs(Ae,1)]):m.current.lr=!1}mc();var on=Tt===!0?0:Tt;typeof on=="number"&&(Gr<fe.left&&(Oe-=Gr-fe.left-We,k.x+Y<fe.left+on&&(Oe+=k.x-fe.left+Y-on)),rn>fe.right&&(Oe-=rn-fe.right-We,k.x>fe.right-on&&(Oe+=k.x-fe.right+on)));var nn=cr===!0?0:cr;typeof nn=="number"&&(hr<fe.top&&(we-=hr-fe.top-ae,k.y+oe<fe.top+nn&&(we+=k.y-fe.top+oe-nn)),Cr>fe.bottom&&(we-=Cr-fe.bottom-ae,k.y>fe.bottom-nn&&(we+=k.y-fe.bottom+nn)));var Ga=M.x+Oe,qa=Ga+X,Pn=M.y+we,pc=Pn+K,Ka=k.x,yt=Ka+Y,st=k.y,qr=st+oe,Kr=Math.max(Ga,Ka),ur=Math.min(qa,yt),Er=(Kr+ur)/2,an=Er-Ga,Bo=Math.max(Pn,st),Tn=Math.min(pc,qr),Mi=(Bo+Tn)/2,ni=Mi-Pn;a?.(t,Te);var Ai=je.right-M.x-(Oe+M.width),To=je.bottom-M.y-(we+M.height);Xe===1&&(Oe=Math.round(Oe),Ai=Math.round(Ai)),Le===1&&(we=Math.round(we),To=Math.round(To));var yx={ready:!0,offsetX:Oe/Xe,offsetY:we/Le,offsetR:Ai/Xe,offsetB:To/Le,arrowX:an/Xe,arrowY:ni/Le,scaleX:Xe,scaleY:Le,align:Te};u(yx)}}),x=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&v()})},h=function(){u(function(y){return T(T({},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 Y1(e,t,r,o,n){xt(function(){if(e&&t&&r){let d=function(){o(),n()};var f=d,i=t,a=r,s=up(i),l=up(a),c=Us(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 fp=E(N());function Q1(e,t,r,o,n,i,a,s){var l=fp.useRef(e);l.current=e;var c=fp.useRef(!1);fp.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=Us(o);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",d,!0),m.addEventListener("contextmenu",d,!0);var g=Ll(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 w7=["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 E7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hl,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,P=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,A=r.zIndex,H=r.stretch,k=r.getPopupClassNameFromAlign,F=r.fresh,U=r.alignPoint,V=r.onPopupClick,M=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,w7),Y=P||O||!1,J=pt.useState(!1),se=B(J,2),ue=se[0],de=se[1];xt(function(){de(Du())},[]);var ye=pt.useRef({}),xe=pt.useContext(U1),Pe=pt.useMemo(function(){return{registerSubPopup:function(at,nr){ye.current[at]=nr,xe?.registerSubPopup(at,nr)}}},[xe]),fe=Tu(),pe=pt.useState(null),Me=B(pe,2),je=Me[0],Xe=Me[1],Le=pt.useRef(null),Ie=It(function(Fe){Le.current=Fe,_l(Fe)&&je!==Fe&&Xe(Fe),xe?.registerSubPopup(fe,Fe)}),Ee=pt.useState(null),Ke=B(Ee,2),et=Ke[0],We=Ke[1],ae=pt.useRef(null),me=It(function(Fe){_l(Fe)&&et!==Fe&&(We(Fe),ae.current=Fe)}),ze=pt.Children.only(a),be=ze?.props||{},He={},Ue=It(function(Fe){var at,nr,Rr=et;return Rr?.contains(Fe)||((at=Ll(Rr))===null||at===void 0?void 0:at.host)===Fe||Fe===Rr||je?.contains(Fe)||((nr=Ll(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=q1(i,q,Q,ee),Ot=q1(i,ne,re,ce),Ht=pt.useState(d||!1),Ae=B(Ht,2),Re=Ae[0],Je=Ae[1],_e=f??Re,Te=It(function(Fe){f===void 0&&Je(Fe)});xt(function(){Je(f||!1)},[f]);var Oe=pt.useRef(_e);Oe.current=_e;var we=pt.useRef([]);we.current=[];var gt=It(function(Fe){var at;Te(Fe),((at=we.current[we.current.length-1])!==null&&at!==void 0?at:_e)!==Fe&&(we.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||_e)&&rt(!0)},[_e]);var Wt=pt.useState(null),Tt=B(Wt,2),cr=Tt[0],Ft=Tt[1],hr=pt.useState(null),Cr=B(hr,2),Gr=Cr[0],rn=Cr[1],wr=function(at){rn([at.clientX,at.clientY])},Fr=X1(_e,je,U&&Gr!==null?Gr:et,W,$,D,M),ve=B(Fr,11),ke=ve[0],ut=ve[1],vt=ve[2],or=ve[3],$i=ve[4],zo=ve[5],Ua=ve[6],oi=ve[7],Di=ve[8],_n=ve[9],On=ve[10],rl=G1(ue,l,c,u),dc=B(rl,2),on=dc[0],nn=dc[1],Ga=on.has("click"),qa=nn.has("click")||nn.has("contextMenu"),Pn=It(function(){Be||On()}),pc=function(){Oe.current&&U&&qa&&Se(!1)};Y1(_e,et,je,Pn,pc),xt(function(){Pn()},[Gr,W]),xt(function(){_e&&!($!=null&&$[W])&&Pn()},[JSON.stringify(D)]);var Ka=pt.useMemo(function(){var Fe=bL($,i,_n,U);return(0,ky.default)(Fe,k?.(_n))},[_n,k,$,i,U]);pt.useImperativeHandle(o,function(){return{nativeElement:ae.current,popupElement:Le.current,forceAlign:Pn}});var yt=pt.useState(0),st=B(yt,2),qr=st[0],Kr=st[1],ur=pt.useState(0),Er=B(ur,2),an=Er[0],Bo=Er[1],Tn=function(){if(H&&et){var at=et.getBoundingClientRect();Kr(at.width),Bo(at.height)}},Mi=function(){Tn(),Pn()},ni=function(at){rt(!1),On(),g?.(at)},Ai=function(){return new Promise(function(at){Tn(),Ft(function(){return at})})};xt(function(){cr&&(On(),cr(),Ft(null))},[cr]);function To(Fe,at,nr,Rr){He[Fe]=function(ir){var Xp;Rr?.(ir),Se(at,nr);for(var bx=arguments.length,YR=new Array(bx>1?bx-1:0),Yp=1;Yp<bx;Yp++)YR[Yp-1]=arguments[Yp];(Xp=be[Fe])===null||Xp===void 0||Xp.call.apply(Xp,[be,ir].concat(YR))}}(Ga||qa)&&(He.onClick=function(Fe){var at;Oe.current&&qa?Se(!1):!Oe.current&&Ga&&(wr(Fe),Se(!0));for(var nr=arguments.length,Rr=new Array(nr>1?nr-1:0),ir=1;ir<nr;ir++)Rr[ir-1]=arguments[ir];(at=be.onClick)===null||at===void 0||at.call.apply(at,[be,Fe].concat(Rr))});var yx=Q1(_e,qa,et,je,S,w,Ue,Se),KR=on.has("hover"),XR=nn.has("hover"),No,mc;KR&&(To("onMouseEnter",!0,v,function(Fe){wr(Fe)}),To("onPointerEnter",!0,v,function(Fe){wr(Fe)}),No=function(at){(_e||Be)&&je!==null&&je!==void 0&&je.contains(at.target)&&Se(!0,v)},U&&(He.onMouseMove=function(Fe){var at;(at=be.onMouseMove)===null||at===void 0||at.call(be,Fe)})),XR&&(To("onMouseLeave",!1,h),To("onPointerLeave",!1,h),mc=function(){Se(!1,h)}),on.has("focus")&&To("onFocus",!0,p),nn.has("focus")&&To("onBlur",!1,y),on.has("contextMenu")&&(He.onContextMenu=function(Fe){var at;Oe.current&&nn.has("contextMenu")?Se(!1):(wr(Fe),Se(!0)),Fe.preventDefault();for(var nr=arguments.length,Rr=new Array(nr>1?nr-1:0),ir=1;ir<nr;ir++)Rr[ir-1]=arguments[ir];(at=be.onContextMenu)===null||at===void 0||at.call.apply(at,[be,Fe].concat(Rr))}),K&&(He.className=(0,ky.default)(be.className,K));var hc=T(T({},be),He),Xa={},gc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];gc.forEach(function(Fe){oe[Fe]&&(Xa[Fe]=function(){for(var at,nr=arguments.length,Rr=new Array(nr),ir=0;ir<nr;ir++)Rr[ir]=arguments[ir];(at=hc[Fe])===null||at===void 0||at.call.apply(at,[hc].concat(Rr)),oe[Fe].apply(oe,Rr)})});var qp=pt.cloneElement(ze,T(T({},hc),Xa)),Kp={x:zo,y:Ua},xx=G?T({},G!==!0?G:{}):null;return pt.createElement(pt.Fragment,null,pt.createElement(qo,{disabled:!_e,ref:me,onResize:Mi},pt.createElement(gL,{getTriggerDOMNode:X},qp)),pt.createElement(U1.Provider,{value:Pe},pt.createElement(hL,{portal:e,ref:Ie,prefixCls:i,popup:I,className:(0,ky.default)(j,Ka),style:L,target:et,onMouseEnter:No,onMouseLeave:mc,onPointerEnter:No,zIndex:A,open:_e,keepDom:Be,fresh:F,onClick:V,onPointerDownCapture:yx,mask:S,motion:wt,maskMotion:Ot,onVisibleChanged:ni,onPrepare:Ai,forceRender:R,autoDestroy:Y,getPopupContainer:C,align:_n,arrow:xx,arrowPos:Kp,ready:ke,offsetX:ut,offsetY:vt,offsetR:or,offsetB:$i,onAlign:Pn,stretch:H,targetWidth:qr/oi,targetHeight:an/Di})))});return t}var Fy=E7(Hl);var EL=E(Ce()),Qn=E(N()),R7=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],_7=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},O7=function(t,r){var o=t.prefixCls,n=t.disabled,i=t.visible,a=t.children,s=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,f=t.dropdownClassName,d=t.direction,m=d===void 0?"ltr":d,g=t.placement,v=t.builtinPlacements,x=t.dropdownMatchSelectWidth,h=t.dropdownRender,p=t.dropdownAlign,y=t.getPopupContainer,S=t.empty,b=t.getTriggerDOMNode,w=t.onPopupVisibleChange,C=t.onPopupMouseEnter,R=Ne(t,R7),P="".concat(o,"-dropdown"),O=s;h&&(O=h(s));var I=Qn.useMemo(function(){return v||_7(x)},[v,x]),j=l?"".concat(P,"-").concat(l):c,L=typeof x=="number",W=Qn.useMemo(function(){return L?null:x===!1?"minWidth":"width"},[x,L]),z=u;L&&(z=T(T({},z),{},{width:x}));var $=Qn.useRef(null);return Qn.useImperativeHandle(r,function(){return{getPopupElement:function(){var A;return(A=$.current)===null||A===void 0?void 0:A.popupElement}}}),Qn.createElement(Fy,Z({},R,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:P,popupTransitionName:j,popup:Qn.createElement("div",{onMouseEnter:C},O),ref:$,stretch:W,popupAlign:p,popupVisible:i,getPopupContainer:y,popupClassName:(0,EL.default)(f,_({},"".concat(P,"-empty"),S)),popupStyle:z,getTriggerDOMNode:b,onPopupVisibleChange:w}),a)},P7=Qn.forwardRef(O7),RL=P7;function _L(e,t){var r=e.key,o;return"value"in e&&(o=e.value),r??(o!==void 0?o:"rc-index-key-".concat(t))}function dp(e){return typeof e<"u"&&!Number.isNaN(e)}function Z1(e,t){var r=e||{},o=r.label,n=r.value,i=r.options,a=r.groupLabel,s=o||(t?"children":"label");return{label:s,value:n||"value",options:i||"options",groupLabel:a||s}}function OL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,o=t.childrenAsData,n=[],i=Z1(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:_L(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:_L(m,n.length),group:!0,data:m,label:v}),u(m[l],!0)}})}return u(e,!1),n}function pp(e){var t=T({},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 PL=function(t,r,o){if(!r||!r.length)return null;var n=!1,i=function s(l,c){var u=qg(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 TL=E(N()),T7=TL.createContext(null),ju=T7;var NL=E(N());function J1(e){var t=e.visible,r=e.values;if(!t)return null;var o=50;return NL.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 N7=["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"],I7=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],mp=function(t){return t==="tags"||t==="multiple"},$7=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,P=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,A=e.suffixIcon,H=e.clearIcon,k=e.OptionList,F=e.animation,U=e.transitionName,V=e.dropdownStyle,M=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,N7),de=mp(x),ye=(a!==void 0?a:de)||x==="combobox",xe=T({},ue);I7.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],Me=fe[1];mt.useEffect(function(){Me(Du())},[]);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),et=k1(),We=B(et,3),ae=We[0],me=We[1],ze=We[2];mt.useImperativeHandle(t,function(){var yt,st;return{focus:(yt=Ie.current)===null||yt===void 0?void 0:yt.focus,blur:(st=Ie.current)===null||st===void 0?void 0:st.blur,scrollTo:function(Kr){var ur;return(ur=Ee.current)===null||ur===void 0?void 0:ur.scrollTo(Kr)},nativeElement:je.current||Xe.current}});var be=mt.useMemo(function(){var yt;if(x!=="combobox")return I;var st=(yt=u[0])===null||yt===void 0?void 0:yt.value;return typeof st=="string"||typeof st=="number"?String(st):""},[I,x,u]),He=x==="combobox"&&typeof y=="function"&&y()||null,Ue=typeof S=="function"&&S(),wt=gn(Xe,Ue==null||(r=Ue.props)===null||r===void 0?void 0:r.ref),Ot=mt.useState(!1),Ht=B(Ot,2),Ae=Ht[0],Re=Ht[1];xt(function(){Re(!0)},[]);var Je=zt(!1,{defaultValue:w,value:b}),_e=B(Je,2),Te=_e[0],Oe=_e[1],we=Ae?Te:!1,gt=!g&&d;(h||gt&&we&&x==="combobox")&&(we=!1);var jt=gt?!1:we,$e=mt.useCallback(function(yt){var st=yt!==void 0?yt:!we;h||(Oe(st),we!==st&&C?.(st))},[h,we,Oe,C]),Se=mt.useMemo(function(){return(z||[]).some(function(yt){return[`
|
|
`,`\r
|
|
`].includes(yt)})},[z]),Ge=mt.useContext(ju)||{},qe=Ge.maxCount,Be=Ge.rawValues,rt=function(st,qr,Kr){if(!(de&&dp(qe)&&Be?.size>=qe)){var ur=!0,Er=st;P?.(null);var an=PL(st,z,dp(qe)?qe-Be.size:void 0),Bo=Kr?null:an;return x!=="combobox"&&Bo&&(Er="",W?.(Bo),$e(!1),ur=!1),L&&be!==Er&&L(Er,{source:qr?"typing":"effect"}),ur}},Wt=function(st){!st||!st.trim()||L(st,{source:"submit"})};mt.useEffect(function(){!we&&!de&&x!=="combobox"&&rt("",!1,!1)},[we]),mt.useEffect(function(){Te&&h&&Oe(!1),h&&!Ke.current&&me(!1)},[h]);var Tt=ap(),cr=B(Tt,2),Ft=cr[0],hr=cr[1],Cr=mt.useRef(!1),Gr=function(st){var qr=Ft(),Kr=st.key,ur=Kr==="Enter";if(ur&&(x!=="combobox"&&st.preventDefault(),we||$e(!0)),hr(!!be),Kr==="Backspace"&&!qr&&de&&!be&&u.length){for(var Er=le(u),an=null,Bo=Er.length-1;Bo>=0;Bo-=1){var Tn=Er[Bo];if(!Tn.disabled){Er.splice(Bo,1),an=Tn;break}}an&&f(Er,{type:"remove",values:[an]})}for(var Mi=arguments.length,ni=new Array(Mi>1?Mi-1:0),Ai=1;Ai<Mi;Ai++)ni[Ai-1]=arguments[Ai];if(we&&(!ur||!Cr.current)){var To;ur&&(Cr.current=!0),(To=Ee.current)===null||To===void 0||To.onKeyDown.apply(To,[st].concat(ni))}J?.apply(void 0,[st].concat(ni))},rn=function(st){for(var qr=arguments.length,Kr=new Array(qr>1?qr-1:0),ur=1;ur<qr;ur++)Kr[ur-1]=arguments[ur];if(we){var Er;(Er=Ee.current)===null||Er===void 0||Er.onKeyUp.apply(Er,[st].concat(Kr))}st.key==="Enter"&&(Cr.current=!1),Y?.apply(void 0,[st].concat(Kr))},wr=function(st){var qr=u.filter(function(Kr){return Kr!==st});f(qr,{type:"remove",values:[st]})},Fr=function(){Cr.current=!1},ve=mt.useRef(!1),ke=function(){me(!0),h||(X&&!ve.current&&X.apply(void 0,arguments),K.includes("focus")&&$e(!0)),ve.current=!0},ut=function(){Ke.current=!0,me(!1,function(){ve.current=!1,Ke.current=!1,$e(!1)}),!h&&(be&&(x==="tags"?L(be,{source:"submit"}):x==="multiple"&&L("",{source:"blur"})),oe&&oe.apply(void 0,arguments))},vt=[];mt.useEffect(function(){return function(){vt.forEach(function(yt){return clearTimeout(yt)}),vt.splice(0,vt.length)}},[]);var or=function(st){var qr,Kr=st.target,ur=(qr=Le.current)===null||qr===void 0?void 0:qr.getPopupElement();if(ur&&ur.contains(Kr)){var Er=setTimeout(function(){var Mi=vt.indexOf(Er);if(Mi!==-1&&vt.splice(Mi,1),ze(),!pe&&!ur.contains(document.activeElement)){var ni;(ni=Ie.current)===null||ni===void 0||ni.focus()}});vt.push(Er)}for(var an=arguments.length,Bo=new Array(an>1?an-1:0),Tn=1;Tn<an;Tn++)Bo[Tn-1]=arguments[Tn];se?.apply(void 0,[st].concat(Bo))},$i=mt.useState({}),zo=B($i,2),Ua=zo[1];function oi(){Ua({})}var Di;Ue&&(Di=function(st){$e(st)}),F1(function(){var yt;return[je.current,(yt=Le.current)===null||yt===void 0?void 0:yt.getPopupElement()]},jt,$e,!!Ue);var _n=mt.useMemo(function(){return T(T({},e),{},{notFoundContent:g,open:we,triggerOpen:jt,id:o,showSearch:ye,multiple:de,toggleOpen:$e})},[e,g,jt,we,o,ye,de,$e]),On=!!A||p,rl;On&&(rl=mt.createElement(Vs,{className:(0,eE.default)("".concat(n,"-arrow"),_({},"".concat(n,"-arrow-loading"),p)),customizeIcon:A,customizeIconProps:{loading:p,searchValue:be,open:we,focused:ae,showSearch:ye}}));var dc=function(){var st;v?.(),(st=Ie.current)===null||st===void 0||st.focus(),f([],{type:"clear",values:u}),rt("",!1,!1)},on=zA(n,dc,u,$,H,h,be,x),nn=on.allowClear,Ga=on.clearIcon,qa=mt.createElement(k,{ref:Ee}),Pn=(0,eE.default)(n,i,_(_(_(_(_(_(_(_(_(_({},"".concat(n,"-focused"),ae),"".concat(n,"-multiple"),de),"".concat(n,"-single"),!de),"".concat(n,"-allow-clear"),$),"".concat(n,"-show-arrow"),On),"".concat(n,"-disabled"),h),"".concat(n,"-loading"),p),"".concat(n,"-open"),we),"".concat(n,"-customize-input"),He),"".concat(n,"-show-search"),ye)),pc=mt.createElement(RL,{ref:Le,disabled:h,prefixCls:n,visible:jt,popupElement:qa,animation:F,transitionName:U,dropdownStyle:V,dropdownClassName:M,direction:l,dropdownMatchSelectWidth:G,dropdownRender:q,dropdownAlign:ne,placement:ee,builtinPlacements:Q,getPopupContainer:ce,empty:d,getTriggerDOMNode:function(st){return Xe.current||st},onPopupVisibleChange:Di,onPopupMouseEnter:oi},Ue?mt.cloneElement(Ue,{ref:wt}):mt.createElement(cL,Z({},e,{domRef:Xe,prefixCls:n,inputElement:He,ref:Ie,id:o,prefix:D,showSearch:ye,autoClearSearchValue:j,mode:x,activeDescendantId:O,tagRender:s,values:u,open:we,onToggleOpen:$e,activeValue:R,searchValue:be,onSearch:rt,onSearchSubmit:Wt,onRemove:wr,tokenWithEnter:Se,onInputBlur:Fr}))),Ka;return Ue?Ka=pc:Ka=mt.createElement("div",Z({className:Pn},xe,{ref:je,onMouseDown:or,onKeyDown:Gr,onKeyUp:rn,onFocus:ke,onBlur:ut}),mt.createElement(J1,{visible:ae&&!we,values:u}),pc,rl,nn&&Ga),mt.createElement(L1.Provider,{value:_n},Ka)}),tE=$7;var IL=function(){return null};IL.isSelectOptGroup=!0;var hp=IL;var $L=function(){return null};$L.isSelectOption=!0;var gp=$L;var mE=E(Ce());var qL=E(Ce());var Sr=E(N()),Jo=E(N()),pE=E(Ui());var Wu=E(N());var DL=E(Ce()),ML=Wu.forwardRef(function(e,t){var r=e.height,o=e.offsetY,n=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,f={},d={display:"flex",flexDirection:"column"};return o!==void 0&&(f={height:r,position:"relative",overflow:"hidden"},d=T(T({},d),{},_(_(_(_(_({transform:"translateY(".concat(o,"px)")},c?"marginRight":"marginLeft",-n),"position","absolute"),"left",0),"right",0),"top",0))),Wu.createElement("div",{style:f},Wu.createElement(qo,{onResize:function(g){var v=g.offsetHeight;v&&s&&s()}},Wu.createElement("div",Z({style:d,className:(0,DL.default)(_({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))});ML.displayName="Filler";var AL=ML;var kL=E(N());var zy=E(N());function LL(e){var t=e.children,r=e.setRef,o=zy.useCallback(function(n){r(n)},[]);return zy.cloneElement(t,{ref:o})}function rE(e,t,r,o,n,i,a,s){var l=s.getKey;return e.slice(t,r+1).map(function(c,u){var f=t+u,d=a(c,f,{style:{width:o},offsetX:n}),m=l(c);return kL.createElement(LL,{key:m,setRef:function(v){return i(c,v)}},d)})}var vp=E(N());function FL(e,t,r){var o=e.length,n=t.length,i,a;if(o===0&&n===0)return null;o<n?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(g){return g!==void 0?r(g):s}for(var c=null,u=Math.abs(o-n)!==1,f=0;f<a.length;f+=1){var d=l(i[f]),m=l(a[f]);if(d!==m){c=f,u=u||d!==l(a[f+1]);break}}return c===null?null:{index:c,multiple:u}}function oE(e,t,r){var o=vp.useState(e),n=B(o,2),i=n[0],a=n[1],s=vp.useState(null),l=B(s,2),c=l[0],u=l[1];return vp.useEffect(function(){var f=FL(i||[],e||[],t);f?.index!==void 0&&(r?.(f.index),u(e[f.index])),a(e)},[e]),[c]}var Zl=E(N());var D7=(typeof navigator>"u"?"undefined":ie(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),nE=D7;var By=E(N()),jy=function(e,t,r,o){var n=(0,By.useRef)(!1),i=(0,By.useRef)(null);function a(){clearTimeout(i.current),n.current=!0,i.current=setTimeout(function(){n.current=!1},50)}var s=(0,By.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 iE(e,t,r,o,n,i,a){var s=(0,Zl.useRef)(0),l=(0,Zl.useRef)(null),c=(0,Zl.useRef)(null),u=(0,Zl.useRef)(!1),f=jy(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,nE||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),nE||p.preventDefault()}var g=(0,Zl.useRef)(null),v=(0,Zl.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),P=Math.abs(C);g.current===null&&(g.current=i&&R>P?"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 zL=E(N());function BL(e,t,r,o){var n=zL.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;v<g;v+=1){var x,h=e[v],p=t(h);a.set(p,v);var y=(x=r.get(p))!==null&&x!==void 0?x:o;if(s[v]=(s[v-1]||0)+y,p===u&&(d=v),p===f&&(m=v),d!==void 0&&m!==void 0)break}return{top:s[d-1]||0,bottom:s[m]}};return l}var VL=E(N()),Vu=E(N());var M7=function(){function e(){ot(this,e),_(this,"maps",void 0),_(this,"id",0),_(this,"diffKeys",new Set),this.maps=Object.create(null)}return nt(e,[{key:"set",value:function(r,o){this.maps[r]=o,this.id+=1,this.diffKeys.add(r)}},{key:"get",value:function(r){return this.maps[r]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}(),jL=M7;function WL(e){var t=parseFloat(e);return isNaN(t)?0:t}function aE(e,t,r){var o=VL.useState(0),n=B(o,2),i=n[0],a=n[1],s=(0,Vu.useRef)(new Map),l=(0,Vu.useRef)(new jL),c=(0,Vu.useRef)(0);function u(){c.current+=1}function f(){var m=arguments.length>0&&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=WL(w),P=WL(C),O=S+R+P;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,Vu.useEffect)(function(){return u},[]),[d,f,l.current,i]}var Hu=E(N()),HL=14/15;function sE(e,t,r){var o=(0,Hu.useRef)(!1),n=(0,Hu.useRef)(0),i=(0,Hu.useRef)(0),a=(0,Hu.useRef)(null),s=(0,Hu.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*=HL:h*=HL;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 GL=E(N());function UL(e){return Math.floor(Math.pow(e,.5))}function Wy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function lE(e,t,r){GL.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=Wy(m,!1),v=o.getBoundingClientRect(),x=v.top,h=v.bottom;if(g<=x){var p=x-g;a=-UL(p),l()}else if(g>=h){var y=g-h;a=UL(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 Vy=E(N());var A7=10;function cE(e,t,r,o,n,i,a,s){var l=Vy.useRef(),c=Vy.useState(null),u=B(c,2),f=u[0],d=u[1];return xt(function(){if(f&&f.times<A7){if(!e.current){d(function(H){return T({},H)});return}i();var m=f.targetAlign,g=f.originAlign,v=f.index,x=f.offset,h=e.current.clientHeight,p=!1,y=m,S=null;if(h){for(var b=m||g,w=0,C=0,R=0,P=Math.min(t.length-1,v),O=0;O<=P;O+=1){var I=n(t[O]);C=w;var j=r.get(I);R=C+(j===void 0?o:j),w=R}for(var L=b==="top"?x:h-x,W=P;W>=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,A=D+h;C<D?y="top":R>A&&(y="bottom")}}S!==null&&a(S),S!==f.lastTop&&(p=!0)}p&&d(T(T({},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 uE=E(Ce());var er=E(N());var L7=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),P=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],A=er.useRef(),H=function(){g===!0||g===!1||(clearTimeout(A.current),D(!0),A.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()},M=er.useRef({top:U,dragging:h,pageY:b,startTop:P});M.current={top:U,dragging:h,pageY:b,startTop:P};var G=function(K){p(!0),w(Wy(K,c)),O(M.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=M.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=(Wy(Y,c)-ue)*xe,fe=de;!I&&c?fe-=Pe:fe+=Pe;var pe=q.current,Me=ne.current,je=Me?fe/Me: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(A.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,uE.default)(ee,_(_(_({},"".concat(ee,"-horizontal"),c),"".concat(ee,"-vertical"),!c),"".concat(ee,"-visible"),$)),style:T(T({},Q),d),onMouseDown:V,onMouseMove:H},er.createElement("div",{ref:L,className:(0,uE.default)("".concat(ee,"-thumb"),_({},"".concat(ee,"-thumb-moving"),h)),style:T(T({},ce),m),onMouseDown:G}))}),fE=L7;var k7=20;function dE(){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,k7),Math.floor(r)}var F7=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],z7=[],B7={overflowY:"auto",overflowAnchor:"none"};function j7(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,P=R===void 0?"optional":R,O=Ne(e,F7),I=Sr.useCallback(function(ve){return typeof d=="function"?d(ve):ve?.[d]},[d]),j=aE(I,null,null),L=B(j,4),W=L[0],z=L[1],$=L[2],D=L[3],A=!!(m!==!1&&i&&a),H=Sr.useMemo(function(){return Object.values($.maps).reduce(function(ve,ke){return ve+ke},0)},[$.id,$.maps]),k=A&&u&&(Math.max(a*u.length,H)>i||!!v),F=g==="rtl",U=(0,qL.default)(o,_({},"".concat(o,"-rtl"),F),n),V=u||z7,M=(0,Jo.useRef)(),G=(0,Jo.useRef)(),q=(0,Jo.useRef)(),ne=(0,Jo.useState)(0),ee=B(ne,2),Q=ee[0],ce=ee[1],re=(0,Jo.useState)(0),K=B(re,2),X=K[0],oe=K[1],Y=(0,Jo.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 M.current.scrollTop=vt,vt})}var fe=(0,Jo.useRef)({start:0,end:V.length}),pe=(0,Jo.useRef)(),Me=oE(V,I),je=B(Me,1),Xe=je[0];pe.current=Xe;var Le=Sr.useMemo(function(){if(!A)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,$i=V.length,zo=0;zo<$i;zo+=1){var Ua=V[zo],oi=I(Ua),Di=$.get(oi),_n=ke+(Di===void 0?a:Di);_n>=Q&&ut===void 0&&(ut=zo,vt=ke),_n>Q+i&&or===void 0&&(or=zo),ke=_n}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,A,Q,V,D,i]),Ie=Le.scrollHeight,Ee=Le.start,Ke=Le.end,et=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),$i=or-a;Pe(function(zo){return zo+$i})}}}$.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,Jo.useRef)(),Ue=(0,Jo.useRef)(),wt=Sr.useMemo(function(){return dE(me.width,v)},[me.width,v]),Ot=Sr.useMemo(function(){return dE(me.height,Ie)},[me.height,Ie]),Ht=Ie-i,Ae=(0,Jo.useRef)(Ht);Ae.current=Ht;function Re(ve){var ke=ve;return Number.isNaN(Ae.current)||(ke=Math.min(ke,Ae.current)),ke=Math.max(ke,0),ke}var Je=Q<=0,_e=Q>=Ht,Te=X<=0,Oe=X>=v,we=jy(Je,_e,Te,Oe),gt=function(){return{x:F?-X:X,y:Q}},jt=(0,Jo.useRef)(gt()),$e=It(function(ve){if(y){var ke=T(T({},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,pE.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,pE.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=iE(A,Je,_e,Te,Oe,!!v,Be),Wt=B(rt,2),Tt=Wt[0],cr=Wt[1];sE(A,M,function(ve,ke,ut,vt){var or=vt;return we(ve,ke,ut)?!1:!or||!or._virtualHandled?(or&&(or._virtualHandled=!0),Tt({preventDefault:function(){},deltaX:ve?ke:0,deltaY:ve?0:ke}),!0):!1}),lE(k,M,function(ve){Pe(function(ke){return ke+ve})}),xt(function(){function ve(ut){var vt=Je&&ut.detail<0,or=_e&&ut.detail>0;A&&!vt&&!or&&ut.preventDefault()}var ke=M.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)}},[A,Je,_e]),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=cE(M,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=BL(V,I,$,a),Gr=w?.({start:Ee,end:Ke,virtual:k,offsetX:X,offsetY:et,rtl:F,getSize:Cr}),rn=rE(V,Ee,Ke,v,X,W,f,xe),wr=null;i&&(wr=T(_({},l?"height":"maxHeight",i),B7),A&&(wr.overflowY="hidden",v&&(wr.overflowX="hidden"),se&&(wr.pointerEvents="none")));var Fr={};return F&&(Fr.dir="rtl"),Sr.createElement("div",Z({ref:q,style:T(T({},c),{},{position:"relative"}),className:U},Fr,O),Sr.createElement(qo,{onResize:be},Sr.createElement(h,{className:"".concat(o,"-holder"),style:wr,ref:M,onScroll:Ge,onMouseEnter:Ft},Sr.createElement(AL,{prefixCls:o,height:Ie,offsetX:X,offsetY:et,scrollWidth:v,onInnerResize:z,ref:G,innerProps:b,rtl:F,extra:Gr},rn))),k&&Ie>i&&Sr.createElement(fE,{ref:He,prefixCls:o,scrollOffset:Q,scrollRange:Ie,rtl:F,onScroll:Se,onStartMove:de,onStopMove:ye,spinSize:Ot,containerSize:me.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:P}),k&&v>me.width&&Sr.createElement(fE,{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:P}))}var KL=Sr.forwardRef(j7);KL.displayName="List";var XL=KL;var YL=XL;var Lt=E(N()),hE=E(N());function QL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var W7=["disabled","title","children","style","className"];function ZL(e){return typeof e=="string"||typeof e=="number"}var V7=function(t,r){var o=Ty(),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(ju),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,P=m.listItemHeight,O=m.optionRender,I="".concat(n,"-item"),j=qi(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&&dp(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]),A=function(K){for(var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=j.length,Y=0;Y<oe;Y+=1){var J=(K+Y*X+oe)%oe,se=j[J]||{},ue=se.group,de=se.data;if(!ue&&!(de!=null&&de.disabled)&&(D(de.value)||!W))return J}return-1},H=Lt.useState(function(){return A(0)}),k=B(H,2),F=k[0],U=k[1],V=function(K){var X=arguments.length>1&&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,hE.useEffect)(function(){V(h!==!1?A(0):-1)},[j.length,c]);var M=Lt.useCallback(function(re){return l==="combobox"?String(re).toLowerCase()===c.toLowerCase():S.has(re)},[l,c,le(S).toString(),S.size]);(0,hE.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:QL()&&oe&&(X===Ye.N?Y=1:X===Ye.P&&(Y=-1)),Y!==0){var J=A(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=Ro(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":M(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(YL,{itemKey:"key",ref:L,data:j,height:R,itemHeight:P,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:ZL(J)?J.toString():void 0;return Lt.createElement("div",{className:(0,mE.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,Me=Y.className,je=Ne(Y,W7),Xe=Mr(je,q),Le=D(se),Ie=xe||!Le&&W,Ee="".concat(I,"-option"),Ke=(0,mE.default)(I,Ee,Me,_(_(_(_({},"".concat(Ee,"-grouped"),oe),"".concat(Ee,"-active"),F===K&&!Ie),"".concat(Ee,"-disabled"),Ie),"".concat(Ee,"-selected"),Le)),et=ne(re),We=!y||typeof y=="function"||Le,ae=typeof et=="number"?et:et||se,me=ZL(ae)?ae.toString():void 0;return Pe!==void 0&&(me=Pe),Lt.createElement("div",Z({},Ro(Xe),w?{}:ee(re,K),{"aria-selected":M(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(Vs,{className:"".concat(I,"-option-state"),customizeIcon:y,customizeIconProps:{value:se,disabled:Ie,isSelected:Le}},Le?"\u2713":null))}))},H7=Lt.forwardRef(V7),JL=H7;var Uu=E(N()),ek=function(e,t){var r=Uu.useRef({values:new Map,options:new Map}),o=Uu.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 T(T({},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=Uu.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[o,n]};var tk=E(N());function gE(e,t){return lp(e).join("").toUpperCase().includes(t)}var rk=function(e,t,r,o,n){return tk.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?gE(g[n],u):g[i]?gE(g[a!=="children"?a:"label"],u):gE(g[s],u)},d=c?function(m){return pp(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(T(T({},m),{},_({},i,v)))}return}f(r,d(m))&&l.push(m)}),l},[e,o,n,r,t])};var Hy=E(N());var ok=0,U7=Vt();function G7(){var e;return U7?(e=ok,ok+=1):e="TEST_OR_SSR",e}function vE(e){var t=Hy.useState(),r=B(t,2),o=r[0],n=r[1];return Hy.useEffect(function(){n("rc_select_".concat(G7()))},[]),e||o}var ik=E(N());var nk=E(N());var q7=["children","value"],K7=["children"];function X7(e){var t=e,r=t.key,o=t.props,n=o.children,i=o.value,a=Ne(o,q7);return T({key:r,value:i!==void 0?i:r,children:n},a)}function Uy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vi(e).map(function(r,o){if(!nk.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,K7);return t||!i?X7(r):T(T({key:"__RC_SELECT_GRP__".concat(a===null?o:a,"__"),label:a},c),{},{options:Uy(l)})}).filter(function(r){return r})}var Y7=function(t,r,o,n,i){return ik.useMemo(function(){var a=t,s=!t;s&&(a=Uy(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;v<m.length;v+=1){var x=m[v];!x[o.options]||g?(l.set(x[o.value],x),u(c,x,o.label),u(c,x,n),u(c,x,i)):d(x[o.options],!0)}};return f(a),{options:a,valueOptions:l,labelOptions:c}},[t,r,o,n,i])},ak=Y7;var Gy=E(N());function qy(e){var t=Gy.useRef();t.current=e;var r=Gy.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var Q7=E(N());var Z7=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],J7=["inputValue"];function eU(e){return!e||ie(e)!=="object"}var tU=tr.forwardRef(function(e,t){var r=e.id,o=e.mode,n=e.prefixCls,i=n===void 0?"rc-select":n,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,d=f===void 0?!0:f,m=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,x=v===void 0?!0:v,h=e.filterOption,p=e.filterSort,y=e.optionFilterProp,S=e.optionLabelProp,b=e.options,w=e.optionRender,C=e.children,R=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,O=e.virtual,I=e.direction,j=e.listHeight,L=j===void 0?200:j,W=e.listItemHeight,z=W===void 0?20:W,$=e.labelRender,D=e.value,A=e.defaultValue,H=e.labelInValue,k=e.onChange,F=e.maxCount,U=Ne(e,Z7),V=vE(r),M=mp(o),G=!!(!b&&C),q=tr.useMemo(function(){return h===void 0&&o==="combobox"?!1:h},[h,o]),ne=tr.useMemo(function(){return Z1(s,G)},[JSON.stringify(s),G]),ee=zt("",{value:c!==void 0?c:l,postState:function(Se){return Se||""}}),Q=B(ee,2),ce=Q[0],re=Q[1],K=ak(b,C,ne,y,S),X=K.valueOptions,oe=K.labelOptions,Y=K.options,J=tr.useCallback(function($e){var Se=lp($e);return Se.map(function(Ge){var qe,Be,rt,Wt,Tt;if(eU(Ge))qe=Ge;else{var cr;rt=Ge.key,Be=Ge.label,qe=(cr=Ge.value)!==null&&cr!==void 0?cr:rt}var Ft=X.get(qe);if(Ft){var hr;if(Be===void 0&&(Be=Ft?.[S||ne.label]),rt===void 0&&(rt=(hr=Ft?.key)!==null&&hr!==void 0?hr:qe),Wt=Ft?.disabled,Tt=Ft?.title,0)var Cr}return{label:Be,value:qe,key:rt,disabled:Wt,title:Tt}})},[ne,S,X]),se=zt(A,{value:D}),ue=B(se,2),de=ue[0],ye=ue[1],xe=tr.useMemo(function(){var $e,Se=M&&de===null?[]:de,Ge=J(Se);return o==="combobox"&&nL(($e=Ge[0])===null||$e===void 0?void 0:$e.value)?[]:Ge},[de,J,o,M]),Pe=ek(xe,X),fe=B(Pe,2),pe=fe[0],Me=fe[1],je=tr.useMemo(function(){if(!o&&pe.length===1){var $e=pe[0];if($e.value===null&&($e.label===null||$e.label===void 0))return[]}return pe.map(function(Se){var Ge;return T(T({},Se),{},{label:(Ge=typeof $=="function"?$(Se):Se.label)!==null&&Ge!==void 0?Ge:Se.value})})},[o,pe,$]),Xe=tr.useMemo(function(){return new Set(pe.map(function($e){return $e.value}))},[pe]);tr.useEffect(function(){if(o==="combobox"){var $e,Se=($e=pe[0])===null||$e===void 0?void 0:$e.value;re(oL(Se)?String(Se):"")}},[pe]);var Le=qy(function($e,Se){var Ge=Se??$e;return _(_({},ne.value,$e),ne.label,Ge)}),Ie=tr.useMemo(function(){if(o!=="tags")return Y;var $e=le(Y),Se=function(qe){return X.has(qe)};return le(pe).sort(function(Ge,qe){return Ge.value<qe.value?-1:1}).forEach(function(Ge){var qe=Ge.value;Se(qe)||$e.push(Le(qe,Ge.label))}),$e},[Le,Y,X,pe,o]),Ee=rk(Ie,ne,ce,q,y),Ke=tr.useMemo(function(){return o!=="tags"||!ce||Ee.some(function($e){return $e[y||"value"]===ce})||Ee.some(function($e){return $e[ne.value]===ce})?Ee:[Le(ce)].concat(le(Ee))},[Le,y,o,Ee,ce,ne]),et=function $e(Se){var Ge=le(Se).sort(function(qe,Be){return p(qe,Be,{searchValue:ce})});return Ge.map(function(qe){return Array.isArray(qe.options)?T(T({},qe),{},{options:qe.options.length>0?$e(qe.options):qe.options}):qe})},We=tr.useMemo(function(){return p?et(Ke):Ke},[Ke,p,ce]),ae=tr.useMemo(function(){return OL(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 pp(Me(rt.value))});k(M?qe:qe[0],M?Be:Be[0])}},ze=tr.useState(null),be=B(ze,2),He=be[0],Ue=be[1],wt=tr.useState(0),Ot=B(wt,2),Ht=Ot[0],Ae=Ot[1],Re=R!==void 0?R:o!=="combobox",Je=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;Ae(Se),a&&o==="combobox"&&$e!==null&&Be==="keyboard"&&Ue(String($e))},[a,o]),_e=function(Se,Ge,qe){var Be=function(){var wr,Fr=Me(Se);return[H?{label:Fr?.[ne.label],value:Se,key:(wr=Fr?.key)!==null&&wr!==void 0?wr:Se}:Se,pp(Fr)]};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],Gr=hr[1];g(Cr,Gr)}},Te=qy(function($e,Se){var Ge,qe=M?Se.selected:!0;qe?Ge=M?[].concat(le(pe),[$e]):[$e]:Ge=pe.filter(function(Be){return Be.value!==$e}),me(Ge),_e($e,qe),o==="combobox"?Ue(""):(!mp||d)&&(re(""),Ue(""))}),Oe=function(Se,Ge){me(Se);var qe=Ge.type,Be=Ge.values;(qe==="remove"||qe==="clear")&&Be.forEach(function(rt){_e(rt.value,!1,qe)})},we=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),_e(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){_e(Be,!0)})},jt=tr.useMemo(function(){var $e=O!==!1&&x!==!1;return T(T({},K),{},{flattenOptions:ae,onActiveValue:Je,defaultActiveFirstOption:Re,onSelect:Te,menuItemSelectedIcon:P,rawValues:Xe,fieldNames:ne,virtual:$e,direction:I,listHeight:L,listItemHeight:z,childrenAsData:G,maxCount:F,optionRender:w})},[F,K,ae,Je,Re,Te,P,Xe,ne,O,x,I,L,z,G,w]);return tr.createElement(ju.Provider,{value:jt},tr.createElement(tE,Z({},U,{id:V,prefixCls:i,ref:t,omitDomProps:J7,mode:o,displayValues:je,onDisplayValuesChange:Oe,direction:I,searchValue:ce,onSearch:we,autoClearSearchValue:d,onSearchSplit:gt,dropdownMatchSelectWidth:x,OptionList:JL,emptyOptions:!ae.length,activeValue:He,activeDescendantId:"".concat(V,"_list_").concat(Ht)})))}),yE=tU;yE.Option=gp;yE.OptGroup=hp;var sk=yE;var lk=sk;var ck=E(Ce());function ta(e,t,r){return(0,ck.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 ra=(e,t)=>t||e;var qu=E(N());var Ks=E(N()),yp=E(Ce());var en=E(N());var rU=()=>{let[,e]=sr(),[t]=wi("Empty"),o=new lt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return en.createElement("svg",{style:o,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},en.createElement("title",null,t?.description||"Empty"),en.createElement("g",{fill:"none",fillRule:"evenodd"},en.createElement("g",{transform:"translate(24 31.67)"},en.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),en.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"}),en.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)"}),en.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"}),en.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"})),en.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"}),en.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},en.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),en.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},uk=rU;var qs=E(N()),fk=E(N());var oU=()=>{let[,e]=sr(),[t]=wi("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,fk.useMemo)(()=>({borderColor:new lt(r).onBackground(i).toHexString(),shadowColor:new lt(o).onBackground(i).toHexString(),contentColor:new lt(n).onBackground(i).toHexString()}),[r,o,n,i]);return qs.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},qs.createElement("title",null,t?.description||"Empty"),qs.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},qs.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),qs.createElement("g",{fillRule:"nonzero",stroke:a},qs.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"}),qs.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}))))},dk=oU;var nU=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}}}}},pk=Rt("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:o}=e,n=Ze(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:o(r).mul(.875).equal()});return[nU(n)]});var iU=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},mk=Ks.createElement(uk,null),hk=Ks.createElement(dk,null),xE=e=>{let{className:t,rootClassName:r,prefixCls:o,image:n=mk,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=iU(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:d,direction:m,className:g,style:v,classNames:x,styles:h}=Ko("empty"),p=d("empty",o),[y,S,b]=pk(p),[w]=wi("Empty"),C=typeof i<"u"?i:w?.description,R=typeof C=="string"?C:"empty",P=null;return typeof n=="string"?P=Ks.createElement("img",{alt:R,src:n}):P=n,y(Ks.createElement("div",Object.assign({className:(0,yp.default)(S,b,p,g,{[`${p}-normal`]:n===hk,[`${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),Ks.createElement("div",{className:(0,yp.default)(`${p}-image`,x.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),h.image),u?.image)},P),C&&Ks.createElement("div",{className:(0,yp.default)(`${p}-description`,x.description,c?.description),style:Object.assign(Object.assign({},h.description),u?.description)},C),a&&Ks.createElement("div",{className:(0,yp.default)(`${p}-footer`,x.footer,c?.footer),style:Object.assign(Object.assign({},h.footer),u?.footer)},a)))};xE.PRESENTED_IMAGE_DEFAULT=mk;xE.PRESENTED_IMAGE_SIMPLE=hk;var Gu=xE;var aU=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,qu.useContext)(Qe),o=r("empty");switch(t){case"Table":case"List":return qu.default.createElement(Gu,{image:Gu.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return qu.default.createElement(Gu,{image:Gu.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return qu.default.createElement(Gu,null)}},gk=aU;var bE=E(N());var sU=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var o,n;let{variant:i,[e]:a}=bE.useContext(Qe),s=bE.useContext(AA),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=uw.includes(c);return[c,u]},Xs=sU;var lU=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 cU(e,t){return e||lU(t)}var vk=cU;var yk=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"}},uU=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:Jv},[`
|
|
${n}${s}topLeft,
|
|
${i}${s}topLeft,
|
|
${n}${s}topRight,
|
|
${i}${s}topRight
|
|
`]:{animationName:ty},[`${a}${s}bottomLeft`]:{animationName:ey},[`
|
|
${a}${s}topLeft,
|
|
${a}${s}topRight
|
|
`]:{animationName:ry},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},yk(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"},Ri),"&-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({},yk(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},oy(e,"slide-up"),oy(e,"slide-down"),Zv(e,"move-up"),Zv(e,"move-down")]},xk=uU;var fU=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())}},dU=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:o}=e;return e.calc(r).sub(t).div(2).sub(o).equal()},pU=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({},Ta()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},mU=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,n=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=dU(e),s=t?`${r}-${t}`:"",l=fU(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},pU(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 SE(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[mU(e,t),n]}var hU=e=>{let{componentCls:t}=e,r=Ze(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=Ze(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[SE(e),SE(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},SE(o,"lg")]},bk=hU;function CE(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 wE(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[CE(e),CE(Ze(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()}}}},CE(Ze(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var Sk=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),P=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:P,multipleSelectorBgDisabled:x,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:y,activeOutlineColor:S,selectAffixPadding:s}};var Rk=(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}}}},Ck=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rk(e,t))}),gU=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Rk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Ck(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Ck(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}`}})}),_k=(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}}}},wk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},_k(e,t))}),vU=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},_k(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),wk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),wk(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}`}})}),yU=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}}}}),Ok=(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}}}},Ek=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ok(e,t))}),xU=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ok(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Ek(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Ek(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}`}})}),bU=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},gU(e)),vU(e)),yU(e)),xU(e))}),Pk=bU;var SU=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"}}}},CU=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"}}}},wU=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({},SU(e)),CU(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ri),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Ri),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Ta()),{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.colorIcon}},[`&: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()}}}}}},EU=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},wU(e),wE(e),bk(e),xk(e),{[`${t}-rtl`]:{direction:"rtl"}},Fs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Tk=Rt("Select",(e,t)=>{let{rootPrefixCls:r}=t,o=Ze(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[EU(o),Pk(o)]},Sk,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var oa=E(N());var Ky=E(N());var RU={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"},Nk=RU;var _U=function(t,r){return Ky.createElement(ct,Z({},t,{ref:r,icon:Nk}))},OU=Ky.forwardRef(_U),Xy=OU;var Yy=E(N());var PU={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"},Ik=PU;var TU=function(t,r){return Yy.createElement(ct,Z({},t,{ref:r,icon:Ik}))},NU=Yy.forwardRef(TU),Qy=NU;var Zy=E(N());var IU={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"},$k=IU;var $U=function(t,r){return Zy.createElement(ct,Z({},t,{ref:r,icon:$k}))},DU=Zy.forwardRef($U),Jy=DU;function EE(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??oa.createElement(Ru,null),g=p=>t===null&&!s&&!f?null:oa.createElement(oa.Fragment,null,c!==!1&&p,s&&u),v=null;if(t!==void 0)v=g(t);else if(i)v=g(oa.createElement(zl,{spin:!0}));else{let p=`${l}-suffix`;v=y=>{let{open:S,showSearch:b}=y;return g(S&&b?oa.createElement(Jy,{className:p}):oa.createElement(Qy,{className:p}))}}let x=null;o!==void 0?x=o:a?x=oa.createElement(Xy,null):x=null;let h=null;return n!==void 0?h=n:h=oa.createElement(_u,null),{clearIcon:m,suffixIcon:v,itemIcon:x,removeIcon:h}}function RE(e,t){return t!==void 0?t:e!==null}var MU=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Dk="SECRET_COMBOBOX_MODE_DO_NOT_USE",AU=(e,t)=>{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:P,tagRender:O,maxCount:I,prefix:j}=e,L=MU(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:A,popupMatchSelectWidth:H,popupOverflow:k}=Zn.useContext(Qe),F=Ko("select"),[,U]=sr(),V=d??U?.controlHeight,M=z("select",o),G=z(),q=S??D,{compactSize:ne,compactItemClassnames:ee}=Hn(M,q),[Q,ce]=Xs("select",C,n),re=_o(M),[K,X,oe]=Tk(M,re),Y=Zn.useMemo(()=>{let{mode:He}=e;if(He!=="combobox")return He===Dk?"combobox":He},[e.mode]),J=Y==="multiple"||Y==="tags",se=RE(e.suffixIcon,e.showArrow),ue=(r=y??p)!==null&&r!==void 0?r:H,{status:de,hasFeedback:ye,isFormItemInput:xe,feedbackIcon:Pe}=Zn.useContext(no),fe=ra(de,x),pe;v!==void 0?pe=v:Y==="combobox"?pe=null:pe=$?.("Select")||Zn.createElement(gk,{componentName:"Select"});let{suffixIcon:Me,itemIcon:je,removeIcon:Xe,clearIcon:Le}=EE(Object.assign(Object.assign({},L),{multiple:J,hasFeedback:ye,feedbackIcon:Pe,showSuffixIcon:se,prefixCls:M,componentName:"Select"})),Ie=w===!0?{clearIcon:Le}:w,Ee=Mr(L,["suffixIcon","itemIcon"]),Ke=(0,_E.default)(l||c,{[`${M}-dropdown-${q}`]:q==="rtl"},a,oe,re,X),et=Qo(He=>{var Ue;return(Ue=m??ne)!==null&&Ue!==void 0?Ue:He}),We=Zn.useContext(Zr),ae=g??We,me=(0,_E.default)({[`${M}-lg`]:et==="large",[`${M}-sm`]:et==="small",[`${M}-rtl`]:q==="rtl",[`${M}-${Q}`]:ce,[`${M}-in-form-item`]:xe},ta(M,fe,ye),ee,F.className,i,a,oe,re,X),ze=Zn.useMemo(()=>f!==void 0?f:q==="rtl"?"bottomRight":"bottomLeft",[f,q]),[be]=Ms("SelectLike",R?.zIndex);return K(Zn.createElement(lk,Object.assign({ref:t,virtual:A,showSearch:F.showSearch},Ee,{style:Object.assign(Object.assign({},F.style),b),dropdownMatchSelectWidth:ue,transitionName:Qi(G,"slide-up",P),builtinPlacements:vk(h,k),listHeight:u,listItemHeight:V,mode:Y,prefixCls:M,placement:ze,direction:q,prefix:j,suffixIcon:Me,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})))},Ku=Zn.forwardRef(AU),LU=kA(Ku,"dropdownAlign");Ku.SECRET_COMBOBOX_MODE_DO_NOT_USE=Dk;Ku.Option=gp;Ku.OptGroup=hp;Ku._InternalPanelDoNotUseOrYouWillBeFired=LU;var xp=Ku;var Mk=E(N());function OE(){let[,e]=Mk.useReducer(t=>t+1,0);return e}var mo=E(N()),n0=E(Ce());var PE=E(Ce()),TE=E(N());function Xu(e){var t=e.children,r=e.prefixCls,o=e.id,n=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return TE.createElement("div",{className:(0,PE.default)("".concat(r,"-content"),a),style:s},TE.createElement("div",{className:(0,PE.default)("".concat(r,"-inner"),i),id:o,role:"tooltip",style:n},typeof t=="function"?t():t))}var Lk=E(Ce()),Jl=E(N()),Zu=E(N());var Yu={shiftX:64,adjustY:1},Qu={adjustX:1,shiftY:!0},Jn=[0,0],Ak={left:{points:["cr","cl"],overflow:Qu,offset:[-4,0],targetOffset:Jn},right:{points:["cl","cr"],overflow:Qu,offset:[4,0],targetOffset:Jn},top:{points:["bc","tc"],overflow:Yu,offset:[0,-4],targetOffset:Jn},bottom:{points:["tc","bc"],overflow:Yu,offset:[0,4],targetOffset:Jn},topLeft:{points:["bl","tl"],overflow:Yu,offset:[0,-4],targetOffset:Jn},leftTop:{points:["tr","tl"],overflow:Qu,offset:[-4,0],targetOffset:Jn},topRight:{points:["br","tr"],overflow:Yu,offset:[0,-4],targetOffset:Jn},rightTop:{points:["tl","tr"],overflow:Qu,offset:[4,0],targetOffset:Jn},bottomRight:{points:["tr","br"],overflow:Yu,offset:[0,4],targetOffset:Jn},rightBottom:{points:["bl","br"],overflow:Qu,offset:[4,0],targetOffset:Jn},bottomLeft:{points:["tl","bl"],overflow:Yu,offset:[0,4],targetOffset:Jn},leftBottom:{points:["br","bl"],overflow:Qu,offset:[-4,0],targetOffset:Jn}};var kU=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],FU=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,P=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,A=t.styles,H=Ne(t,kU),k=Tu(W),F=(0,Zu.useRef)(null);(0,Zu.useImperativeHandle)(r,function(){return F.current});var U=T({},H);"visible"in t&&(U.popupVisible=t.visible);var V=function(){return Jl.createElement(Xu,{key:"content",prefixCls:d,id:k,bodyClassName:D?.body,overlayInnerStyle:T(T({},I),A?.body)},L)},M=function(){var q=Jl.Children.only(m),ne=q?.props||{},ee=T(T({},ne),{},{"aria-describedby":L?k:null});return Jl.cloneElement(m,ee)};return Jl.createElement(Fy,Z({popupClassName:(0,Lk.default)(o,D?.root),prefixCls:d,popup:V,action:i,builtinPlacements:Ak,popupPlacement:S,ref:F,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:x,popupAnimation:h,popupMotion:p,defaultPopupVisible:P,autoDestroy:R,mouseLeaveDelay:c,popupStyle:T(T({},u),A?.root),mouseEnterDelay:s,arrow:$},U),M())},kk=(0,Zu.forwardRef)(FU);var Fk=kk;function zk(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 Bk=(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 NE=8;function t0(e){let{contentRadius:t,limitVerticalRadius:r}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:r?NE:o}}function e0(e,t){return e?t:{}}function IE(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"},Bk(e,t,n)),{"&:before":{background:t}})]},e0(!!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}}}})),e0(!!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}}}})),e0(!!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}})),e0(!!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 zU(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 jk={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"]}},BU={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"]}},jU=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function $E(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:o,offset:n,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(jk).forEach(c=>{let u=o&&BU[c]||jk[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,jU.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=t0({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=zU(c,d,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var Ju=E(N()),Hk=E(Ce());var WU=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,NE)}},[`${r}-content`]:{position:"relative"}}),uv(e,(x,h)=>{let{darkColor:p}=h;return{[`&${r}-${x}`]:{[`${r}-inner`]:{backgroundColor:p},[`${r}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},IE(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},VU=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},t0({contentRadius:e.borderRadius,limitVerticalRadius:!0})),zk(Ze(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),r0=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=Ze(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:a});return[WU(s),Wl(o,"zoom-big-fast")]},VU,{resetStyle:!1,injectStyle:t})(e)};var Vk=E(Ce());var HU=bn.map(e=>`${e}-inverse`);function Wk(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(le(HU),le(bn)).includes(e):bn.includes(e)}function o0(e,t){let r=Wk(t),o=(0,Vk.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 UU=e=>{let{prefixCls:t,className:r,placement:o="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Ju.useContext(Qe),l=s("tooltip",t),[c,u,f]=r0(l),d=o0(l,i),m=d.arrowStyle,g=Object.assign(Object.assign({},a),d.overlayStyle),v=(0,Hk.default)(u,f,l,`${l}-pure`,`${l}-placement-${o}`,r,d.className);return c(Ju.createElement("div",{className:v,style:m},Ju.createElement("div",{className:`${l}-arrow`}),Ju.createElement(Xu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:g}),n)))},Uk=UU;var GU=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},qU=mo.forwardRef((e,t)=>{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:P,overlayClassName:O,styles:I,classNames:j}=e,L=GU(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:A,className:H,style:k,classNames:F,styles:U}=Ko("tooltip"),V=Kg("Tooltip"),M=mo.useRef(null),G=()=>{var Ee;(Ee=M.current)===null||Ee===void 0||Ee.forceAlign()};mo.useImperativeHandle(t,()=>{var Ee,Ke;return{forceAlign:G,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),G()},nativeElement:(Ee=M.current)===null||Ee===void 0?void 0:Ee.nativeElement,popupElement:(Ke=M.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,et;ne(ee?!1:Ee),ee||((Ke=e.onOpenChange)===null||Ke===void 0||Ke.call(e,Ee),(et=e.onVisibleChange)===null||et===void 0||et.call(e,Ee))},ce=mo.useMemo(()=>{var Ee,Ke;let et=h;return typeof m=="object"&&(et=(Ke=(Ee=m.pointAtCenter)!==null&&Ee!==void 0?Ee:m.arrowPointAtCenter)!==null&&Ke!==void 0?Ke:h),x||$E({arrowPointAtCenter:et,autoAdjustOverflow:p,arrowWidth:W?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})},[h,m,x,z]),re=mo.useMemo(()=>g===0?g:v||g||"",[v,g]),K=mo.createElement(Ws,{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=mo.isValidElement(c)&&!zv(c)?c:mo.createElement("span",null,c),ue=se.props,de=!ue.className||typeof ue.className=="string"?(0,n0.default)(ue.className,i||`${X}-open`):ue.className,[ye,xe,Pe]=r0(X,!Y),fe=o0(X,s),pe=fe.arrowStyle,Me=(0,n0.default)(O,{[`${X}-rtl`]:A==="rtl"},fe.className,P,xe,Pe,H,F.root,j?.root),je=(0,n0.default)(F.body,j?.body),[Xe,Le]=Ms("Tooltip",L.zIndex),Ie=mo.createElement(Fk,Object.assign({},L,{zIndex:Xe,showArrow:W,placement:b,mouseEnterDelay:w,mouseLeaveDelay:C,prefixCls:X,classNames:{root:Me,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:M,builtinPlacements:ce,overlay:K,visible:J,onVisibleChange:Q,afterVisibleChange:u??f,arrowContent:mo.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:Qi(oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!d}),J?Vn(se,{className:de}):se);return ye(mo.createElement(jv.Provider,{value:Le},Ie))}),Gk=qU;Gk._InternalPanelDoNotUseOrYouWillBeFired=Uk;var ec=Gk;var i0=E(N());var KU={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"},qk=KU;var XU=function(t,r){return i0.createElement(ct,Z({},t,{ref:r,icon:qk}))},YU=i0.forwardRef(XU),a0=YU;var Kk=E(Ce());var s0=E(N()),tc=E(N()),QU=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],ZU=(0,tc.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,QU),v=(0,tc.useRef)(null),x=(0,tc.useRef)(null),h=zt(c,{value:a}),p=B(h,2),y=p[0],S=p[1];(0,tc.useImperativeHandle)(t,function(){return{focus:function(R){var P;(P=v.current)===null||P===void 0||P.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:x.current}});var b=(0,Kk.default)(o,n,_(_({},"".concat(o,"-checked"),y),"".concat(o,"-disabled"),s)),w=function(R){s||("checked"in e||S(R.target.checked),m?.({target:T(T({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return s0.createElement("span",{className:b,title:d,style:i,ref:x},s0.createElement("input",Z({},g,{className:"".concat(o,"-input"),ref:v,onChange:w,disabled:s,checked:!!y,type:f})),s0.createElement("span",{className:"".concat(o,"-inner")}))}),Xk=ZU;var Yk=E(N());function DE(e){let t=Yk.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 Fa(e){return Ze(e,{inputAffixPadding:e.paddingXXS})}var za=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,P=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-P*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:P,inputFontSizeSM:R}};var JU=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ME=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({},JU(Ze(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),rF=(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}}),Qk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},rF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),l0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rF(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ME(e))}),Qk(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Qk(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Zk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),c0=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}}},Zk(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Zk(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ME(e))}})}),u0=(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)}},oF=(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}}},Jk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},oF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),f0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ME(e))}),Jk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Jk(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),eF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),d0=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}`}}}},eF(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),eF(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}`}}}})}),nF=(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}}),tF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},nF(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`}}),p0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nF(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"}}),tF(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),tF(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var AE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var iF=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:n}=e;return{padding:`${te(t)} ${te(n)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:o}},aF=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bp=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}`},AE(e.colorTextPlaceholder)),{"&-lg":Object.assign({},iF(e)),"&-sm":Object.assign({},aF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),LE=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({},iF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},aF(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"},wu()),{[`${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}}}})}},eG=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)),bp(e)),l0(e)),f0(e)),u0(e)),p0(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"}})}},tG=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.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${te(e.inputAffixPadding)}`}}}},rG=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({},bp(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,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),tG(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}}}}},oG=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Qt(e)),LE(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}}},c0(e)),d0(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}}})})}},nG=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}}}}},iG=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},m0=Rt(["Input","Shared"],e=>{let t=Ze(e,Fa(e));return[eG(t),rG(t)]},za,{resetFont:!1}),h0=Rt(["Input","Component"],e=>{let t=Ze(e,Fa(e));return[oG(t),nG(t),iG(t),Fs(t)]},za,{resetFont:!1});var aG=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({},ww(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 sG(e,t){let r=Ze(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[aG(r)]}var g0=Rt("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[sG(r,e)]});var Vr=E(N()),kE=E(Ce());var sF=E(N()),lG=sF.default.createContext(null),v0=lG;var cG=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},uG=(e,t)=>{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=cG(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:x}=Vr.useContext(Qe),h=Vr.useContext(v0),{isFormItemInput:p}=Vr.useContext(no),y=Vr.useContext(Zr),S=(r=h?.disabled||d)!==null&&r!==void 0?r:y,b=Vr.useRef(m.value),w=Vr.useRef(null),C=Wr(t,w);Vr.useEffect(()=>{h?.registerValue(m.value)},[]),Vr.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]),Vr.useEffect(()=>{var A;!((A=w.current)===null||A===void 0)&&A.input&&(w.current.input.indeterminate=s)},[s]);let R=g("checkbox",o),P=_o(R),[O,I,j]=g0(R,P),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,kE.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,P,I),z=(0,kE.default)({[`${R}-indeterminate`]:s},Ou,I),[$,D]=DE(L.onClick);return O(Vr.createElement(Gv,{component:"Checkbox",disabled:S},Vr.createElement("label",{className:W,style:Object.assign(Object.assign({},x?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:$},Vr.createElement(Xk,Object.assign({},L,{onClick:D,prefixCls:R,className:z,disabled:S,ref:C})),a!==void 0&&Vr.createElement("span",{className:`${R}-label`},a))))},fG=Vr.forwardRef(uG),y0=fG;var Fo=E(N()),lF=E(Ce());var dG=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},pG=Fo.forwardRef((e,t)=>{let{defaultValue:r,children:o,options:n=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=dG(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=Fo.useContext(Qe),[m,g]=Fo.useState(u.value||r||[]),[v,x]=Fo.useState([]);Fo.useEffect(()=>{"value"in u&&g(u.value||[])},[u.value]);let h=Fo.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(A=>v.includes(A)).sort((A,H)=>{let k=h.findIndex(U=>U.value===A),F=h.findIndex(U=>U.value===H);return k-F}))},b=f("checkbox",i),w=`${b}-group`,C=_o(b),[R,P,O]=g0(b,C),I=Mr(u,["value","disabled"]),j=n.length?h.map(z=>Fo.createElement(y0,{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,lF.default)(w,{[`${w}-rtl`]:d==="rtl"},a,s,O,C,P);return R(Fo.createElement("div",Object.assign({className:W,style:l},I,{ref:t}),Fo.createElement(v0.Provider,{value:L},j)))});var cF=pG;var FE=y0;FE.Group=cF;FE.__ANT_CHECKBOX=!0;var zE=FE;var mr=E(N());var x0=E(N());var mG={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"},uF=mG;var hG=function(t,r){return x0.createElement(ct,Z({},t,{ref:r,icon:uF}))},gG=x0.forwardRef(hG),fF=gG;var nc=E(Ce());function Sp(){return typeof BigInt=="function"}function b0(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ti(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 S0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function na(e){var t=String(e);if(S0(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(".")&&ef(t)?t.length-t.indexOf(".")-1:0}function Ba(e){var t=String(e);if(S0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Sp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Sp()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(na(t))}return Ti(t).fullStr}function ef(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var dF=function(){function e(t){if(ot(this,e),_(this,"origin",""),_(this,"negative",void 0),_(this,"integer",void 0),_(this,"decimal",void 0),_(this,"decimalLen",void 0),_(this,"empty",void 0),_(this,"nan",void 0),b0(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(S0(r)&&(r=Number(r)),r=typeof r=="string"?r:Ba(r),ef(r)){var o=Ti(r);this.negative=o.negative;var n=o.trimStr.split(".");this.integer=BigInt(n[0]);var i=n[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return nt(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(r){var o="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(o)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"cal",value:function(r,o,n){var i=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(i),s=r.alignDecimal(i),l=o(a,s).toString(),c=n(i),u=Ti(l),f=u.negativeStr,d=u.trimStr,m="".concat(f).concat(d.padStart(c+1,"0"));return new e("".concat(m.slice(0,-c),".").concat(m.slice(-c)))}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var o=new e(r);return o.isInvalidate()?this:this.cal(o,function(n,i){return n+i},function(n){return n})}},{key:"multi",value:function(r){var o=new e(r);return this.isInvalidate()||o.isInvalidate()?new e(NaN):this.cal(o,function(n,i){return n*i},function(n){return n*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(r){return this.toString()===r?.toString()}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Ti("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();var pF=function(){function e(t){if(ot(this,e),_(this,"origin",""),_(this,"number",void 0),_(this,"empty",void 0),b0(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(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(na(this.number),na(o));return new e(n.toFixed(i))}},{key:"multi",value:function(r){var o=Number(r);if(this.isInvalidate()||Number.isNaN(o))return new e(NaN);var n=this.number*o;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(na(this.number),na(o));return new e(n.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(r){return this.toNumber()===r?.toNumber()}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Ba(this.number):this.origin}}]),e}();function C0(e){return Sp()?new dF(e):new pF(e)}function Cp(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var n=Ti(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=C0(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return Cp(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 Ni=C0;var _F=E(Ce());var ja=E(Ce()),ho=E(N());function hF(e){return!!(e.addonBefore||e.addonAfter)}function gF(e){return!!(e.prefix||e.suffix||e.allowClear)}function mF(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 tf(e,t,r,o){if(r){var n=t;if(t.type==="click"){n=mF(t,e,""),r(n);return}if(e.type!=="file"&&o!==void 0){n=mF(t,e,o),r(n);return}r(n)}}function rc(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 vG=ho.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,P=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,ho.useRef)(null),A=function(Y){var J;(J=D.current)!==null&&J!==void 0&&J.contains(Y.target)&&h?.()},H=gF(e),k=(0,ho.cloneElement)(j,{value:y,className:(0,ja.default)((r=j.props)===null||r===void 0?void 0:r.className,!H&&C?.variant)||null}),F=(0,ho.useRef)(null);if(ho.default.useImperativeHandle(t,function(){return{nativeElement:F.current||D.current}}),H){var U=null;if(p){var V=!g&&!v&&y,M="".concat(s,"-clear-icon"),G=ie(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"\u2716";U=ho.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(Y){S?.(Y),I?.()},onMouseDown:function(Y){return Y.preventDefault()},className:(0,ja.default)(M,_(_({},"".concat(M,"-hidden"),!V),"".concat(M,"-has-suffix"),!!c))},G)}var q="".concat(s,"-affix-wrapper"),ne=(0,ja.default)(q,_(_(_(_(_({},"".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)&&ho.default.createElement("span",{className:(0,ja.default)("".concat(s,"-suffix"),C?.suffix),style:P?.suffix},U,c);k=ho.default.createElement(L,Z({className:ne,style:P?.affixWrapper,onClick:A},R?.affixWrapper,{ref:D}),l&&ho.default.createElement("span",{className:(0,ja.default)("".concat(s,"-prefix"),C?.prefix),style:P?.prefix},l),k,ee)}if(hF(e)){var Q="".concat(s,"-group"),ce="".concat(Q,"-addon"),re="".concat(Q,"-wrapper"),K=(0,ja.default)("".concat(s,"-wrapper"),Q,w?.wrapper,C?.wrapper),X=(0,ja.default)(re,_({},"".concat(re,"-disabled"),g),w?.group,C?.groupWrapper);k=ho.default.createElement(W,{className:X,ref:F},ho.default.createElement(z,{className:K},u&&ho.default.createElement($,{className:ce},u),k,f&&ho.default.createElement($,{className:ce},f)))}return ho.default.cloneElement(k,{className:(0,ja.default)((o=k.props)===null||o===void 0?void 0:o.className,d)||null,style:T(T({},(n=k.props)===null||n===void 0?void 0:n.style),m),hidden:b})}),oc=vG;var w0=E(Ce());var Tr=E(N());var vF=E(N()),yG=["show"];function wp(e,t){return vF.useMemo(function(){var r={};t&&(r.show=ie(t)==="object"&&t.formatter?t.formatter:!!t),r=T(T({},r),e);var o=r,n=o.show,i=Ne(o,yG);return T(T({},i),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var xG=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],bG=(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,P=Ne(e,xG),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),A=function(pe){$.current&&rc($.current,pe)},H=zt(e.defaultValue,{value:e.value}),k=B(H,2),F=k[0],U=k[1],V=F==null?"":String(F),M=(0,Tr.useState)(null),G=B(M,2),q=G[0],ne=G[1],ee=wp(h,x),Q=ee.max||g,ce=ee.strategy(V),re=!!Q&&ce>Q;(0,Tr.useImperativeHandle)(t,function(){var fe;return{focus:A,blur:function(){var Me;(Me=$.current)===null||Me===void 0||Me.blur()},setSelectionRange:function(Me,je,Xe){var Le;(Le=$.current)===null||Le===void 0||Le.setSelectionRange(Me,je,Xe)},select:function(){var Me;(Me=$.current)===null||Me===void 0||Me.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,Me,je){var Xe=Me;if(!W.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Me)>ee.max){if(Xe=ee.exceedFormatter(Me,{max:ee.max}),Me!==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&&tf($.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(""),A(),$.current&&tf($.current,pe,o)},ye=re&&"".concat(u,"-out-of-range"),xe=function(){var pe=Mr(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,w0.default)(u,_({},"".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 Me=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,w0.default)("".concat(u,"-show-count-suffix"),_({},"".concat(u,"-show-count-has-suffix"),!!v),b?.count),style:T({},w?.count)},Me),v)}return null};return Tr.default.createElement(oc,Z({},P,{prefixCls:u,className:(0,w0.default)(m,ye),handleReset:de,value:V,focused:j,triggerFocus:A,suffix:Pe(),disabled:f,classes:S,classNames:b,styles:w,ref:D}),xe())}),yF=bG;var xF=yF;function BE(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 bF=E(N());function jE(e,t){var r=(0,bF.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 ei=E(N()),WE=E(Ce());var SF=E(N());var SG=function(){var t=(0,SF.useState)(!1),r=B(t,2),o=r[0],n=r[1];return xt(function(){n(Du())},[]),o},CF=SG;var CG=200,wG=600;function VE(e){var t=e.prefixCls,r=e.upNode,o=e.downNode,n=e.upDisabled,i=e.downDisabled,a=e.onStep,s=ei.useRef(),l=ei.useRef([]),c=ei.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,CG)}s.current=setTimeout(b,wG)};ei.useEffect(function(){return function(){u(),l.current.forEach(function(p){return ft.cancel(p)})}},[]);var d=CF();if(d)return null;var m="".concat(t,"-handler"),g=(0,WE.default)(m,"".concat(m,"-up"),_({},"".concat(m,"-up-disabled"),n)),v=(0,WE.default)(m,"".concat(m,"-down"),_({},"".concat(m,"-down-disabled"),i)),x=function(){return l.current.push(ft(u))},h={unselectable:"on",role:"button",onMouseUp:x,onMouseLeave:x};return ei.createElement("div",{className:"".concat(m,"-wrap")},ei.createElement("span",Z({},h,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":n,className:g}),r||ei.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),ei.createElement("span",Z({},h,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),o||ei.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function HE(e){var t=typeof e=="number"?Ba(e):Ti(e).fullStr,r=t.includes(".");return r?Ti(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var E0=E(N());var wF=function(){var e=(0,E0.useRef)(0),t=function(){ft.cancel(e.current)};return(0,E0.useEffect)(function(){return t},[]),function(r){t(),e.current=ft(function(){r()})}};var EG=["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"],RG=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],EF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},RF=function(t){var r=Ni(t);return r.isInvalidate()?null:r},_G=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,P=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,EG),A="".concat(r,"-input"),H=Ct.useRef(null),k=Ct.useState(!1),F=B(k,2),U=F[0],V=F[1],M=Ct.useRef(!1),G=Ct.useRef(!1),q=Ct.useRef(!1),ne=Ct.useState(function(){return Ni(u??c)}),ee=B(ne,2),Q=ee[0],ce=ee[1];function re(Ae){u===void 0&&ce(Ae)}var K=Ct.useCallback(function(Ae,Re){if(!Re)return R>=0?R:Math.max(na(Ae),na(l))},[R,l]),X=Ct.useCallback(function(Ae){var Re=String(Ae);if(w)return w(Re);var Je=Re;return P&&(Je=Je.replace(P,".")),Je.replace(/[^\w.-]+/g,"")},[w,P]),oe=Ct.useRef(""),Y=Ct.useCallback(function(Ae,Re){if(C)return C(Ae,{userTyping:Re,input:String(oe.current)});var Je=typeof Ae=="number"?Ba(Ae):Ae;if(!Re){var _e=K(Je,Re);if(ef(Je)&&(P||_e>=0)){var Te=P||".";Je=Cp(Je,Te,_e)}}return Je},[C,K,P]),J=Ct.useState(function(){var Ae=c??u;return Q.isInvalidate()&&["string","number"].includes(ie(Ae))?Number.isNaN(Ae)?"":Ae:Y(Q.toString(),!1)}),se=B(J,2),ue=se[0],de=se[1];oe.current=ue;function ye(Ae,Re){de(Y(Ae.isInvalidate()?Ae.toString(!1):Ae.toString(!Re),Re))}var xe=Ct.useMemo(function(){return RF(a)},[a,R]),Pe=Ct.useMemo(function(){return RF(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]),Me=jE(H.current,U),je=B(Me,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,Je){var _e=Re,Te=Ee(_e)||_e.isEmpty();if(!_e.isEmpty()&&!Je&&(_e=Ie(_e)||_e,Te=!0),!d&&!f&&Te){var Oe=_e.toString(),we=K(Oe,Je);return we>=0&&(_e=Ni(Cp(Oe,".",we)),Ee(_e)||(_e=Ni(Cp(Oe,".",we,!0)))),_e.equals(Q)||(re(_e),O?.(_e.isEmpty()?null:EF(b,_e)),u===void 0&&ye(_e,Je)),_e}return Q},et=wF(),We=function Ae(Re){if(Xe(),oe.current=Re,de(Re),!G.current){var Je=X(Re),_e=Ni(Je);_e.isNaN()||Ke(_e,!0)}I?.(Re),et(function(){var Te=Re;w||(Te=Re.replace(/。/g,".")),Te!==Re&&Ae(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 Je;if(!(Re&&fe||!Re&&pe)){M.current=!1;var _e=Ni(q.current?HE(l):l);Re||(_e=_e.negate());var Te=(Q||Ni(0)).add(_e.toString()),Oe=Ke(Te,!1);L?.(EF(b,Oe),{offset:q.current?HE(l):l,type:Re?"up":"down"}),(Je=H.current)===null||Je===void 0||Je.focus()}},He=function(Re){var Je=Ni(X(ue)),_e;Je.isNaN()?_e=Ke(Q,Re):_e=Ke(Je,Re),u!==void 0?ye(Q,!1):_e.isNaN()||ye(_e,!1)},Ue=function(){M.current=!0},wt=function(Re){var Je=Re.key,_e=Re.shiftKey;M.current=!0,q.current=_e,Je==="Enter"&&(G.current||(M.current=!1),He(!1),j?.(Re)),v!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Je)&&(be(Je==="Up"||Je==="ArrowUp"),Re.preventDefault())},Ot=function(){M.current=!1,q.current=!1};Ct.useEffect(function(){if(h&&U){var Ae=function(_e){be(_e.deltaY<0),_e.preventDefault()},Re=H.current;if(Re)return Re.addEventListener("wheel",Ae,{passive:!1}),function(){return Re.removeEventListener("wheel",Ae)}}});var Ht=function(){z&&He(!1),V(!1),M.current=!1};return Tl(function(){Q.isInvalidate()||ye(Q,!1)},[R,C]),Tl(function(){var Ae=Ni(u);ce(Ae);var Re=Ni(X(ue));(!Ae.equals(Re)||!M.current||C)&&ye(Ae,M.current)},[u]),Tl(function(){C&&Le()},[ue]),Ct.createElement("div",{ref:$,className:(0,_F.default)(r,o,_(_(_(_(_({},"".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:Ot,onCompositionStart:ae,onCompositionEnd:me,onBeforeInput:Ue},y&&Ct.createElement(VE,{prefixCls:r,upNode:m,downNode:g,upDisabled:fe,downDisabled:pe,onStep:be}),Ct.createElement("div",{className:"".concat(A,"-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:Wr(H,t),className:A,value:ue,onChange:ze,disabled:f,readOnly:d}))))}),OG=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,RG),g=Ct.useRef(null),v=Ct.useRef(null),x=Ct.useRef(null),h=function(y){x.current&&rc(x.current,y)};return Ct.useImperativeHandle(t,function(){return BE(x.current,{focus:h,nativeElement:g.current.nativeElement||v.current})}),Ct.createElement(oc,{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(_G,Z({prefixCls:i,disabled:r,ref:x,domRef:v,className:d?.input},m)))}),OF=OG;var PF=OF;var TF=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({},za(e)),{controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new lt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?o:0})};var NF=(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}}}},PG=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,colorIcon:g,motionDurationMid:v,handleHoverColor:x,handleOpacity:h,paddingInline:p,paddingBlock:y,handleBg:S,handleActiveBg:b,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:P,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)),bp(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:n}),l0(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}}})),f0(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),p0(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${te(r)} ${o} ${O}`}}})),u0(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)),LE(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}}},c0(e)),d0(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"}),AE(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({},Ta()),{color:g,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:n},[`${t}-handler-down`]:{borderEndEndRadius:n}},NF(e,"lg")),NF(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}})}]},TG=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`}},bp(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()}})}},IF=Rt("InputNumber",e=>{let t=Ze(e,Fa(e));return[PG(t),TG(t),Fs(t)]},TF,{unitless:{handleOpacity:!0}});var NG=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},$F=mr.forwardRef((e,t)=>{let{getPrefixCls:r,direction:o}=mr.useContext(Qe),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=NG(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=r("input-number",c),b=_o(S),[w,C,R]=IF(S,b),{compactSize:P,compactItemClassnames:O}=Hn(S,o),I=mr.createElement(fF,{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(no),A=ra(z,x),H=Qo(ee=>{var Q;return(Q=s??P)!==null&&Q!==void 0?Q:ee}),k=mr.useContext(Zr),F=l??k,[U,V]=Xs("inputNumber",p,g),M=W&&mr.createElement(mr.Fragment,null,D),G=(0,nc.default)({[`${S}-lg`]:H==="large",[`${S}-sm`]:H==="small",[`${S}-rtl`]:o==="rtl",[`${S}-in-form-item`]:$},C),q=`${S}-group`,ne=mr.createElement(PF,Object.assign({ref:n,disabled:F,className:(0,nc.default)(R,b,i,a,O),upHandler:I,downHandler:j,prefixCls:S,readOnly:v,controls:L,prefix:d,suffix:M||m,addonBefore:u&&mr.createElement(Ws,{form:!0,space:!0},u),addonAfter:f&&mr.createElement(Ws,{form:!0,space:!0},f),classNames:{input:G,variant:(0,nc.default)({[`${S}-${U}`]:V},ta(S,A,W)),affixWrapper:(0,nc.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,nc.default)({[`${q}-rtl`]:o==="rtl"},C),groupWrapper:(0,nc.default)({[`${S}-group-wrapper-sm`]:H==="small",[`${S}-group-wrapper-lg`]:H==="large",[`${S}-group-wrapper-rtl`]:o==="rtl",[`${S}-group-wrapper-${U}`]:V},ta(`${S}-group-wrapper`,A,W),C)}},y));return w(ne)}),DF=$F,IG=e=>mr.createElement($a,{theme:{components:{InputNumber:{handleVisible:!0}}}},mr.createElement($F,Object.assign({},e)));DF._InternalPanelDoNotUseOrYouWillBeFired=IG;var UE=DF;var tn=E(N()),ic=E(Ce());var MF=E(N());var $G=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:MF.default.createElement(Ru,null)}),t},R0=$G;var _0=E(N());function Ep(e,t){let r=(0,_0.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,_0.useEffect)(()=>(t&&o(),()=>r.current.forEach(n=>{n&&clearTimeout(n)})),[]),o}function AF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var DG=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};var MG=(0,tn.forwardRef)((e,t)=>{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=DG(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:P,style:O,classNames:I,styles:j}=Ko("input"),L=b("input",r),W=(0,tn.useRef)(null),z=_o(L),[$,D,A]=m0(L,x),[H]=h0(L,z),{compactSize:k,compactItemClassnames:F}=Hn(L,w),U=Qo(de=>{var ye;return(ye=i??k)!==null&&ye!==void 0?ye:de}),V=tn.default.useContext(Zr),M=a??V,{status:G,hasFeedback:q,feedbackIcon:ne}=(0,tn.useContext)(no),ee=ra(G,n),Q=AF(e)||!!q,ce=(0,tn.useRef)(Q),re=Ep(W,!0),K=de=>{re(),s?.(de)},X=de=>{re(),l?.(de)},oe=de=>{re(),h?.(de)},Y=(q||c)&&tn.default.createElement(tn.default.Fragment,null,c,q&&ne),J=R0(u??C),[se,ue]=Xs("input",y,o);return $(H(tn.default.createElement(xF,Object.assign({ref:Wr(t,W),prefixCls:L,autoComplete:R},S,{disabled:M,onBlur:K,onFocus:X,style:Object.assign(Object.assign({},O),g),styles:Object.assign(Object.assign({},j),v),suffix:Y,allowClear:J,className:(0,ic.default)(m,x,A,z,F,P),onChange:oe,addonBefore:d&&tn.default.createElement(Ws,{form:!0,space:!0},d),addonAfter:f&&tn.default.createElement(Ws,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},p),I),{input:(0,ic.default)({[`${L}-sm`]:U==="small",[`${L}-lg`]:U==="large",[`${L}-rtl`]:w==="rtl"},p?.input,I.input,D),variant:(0,ic.default)({[`${L}-${se}`]:ue},ta(L,ee)),affixWrapper:(0,ic.default)({[`${L}-affix-wrapper-sm`]:U==="small",[`${L}-affix-wrapper-lg`]:U==="large",[`${L}-affix-wrapper-rtl`]:w==="rtl"},D),wrapper:(0,ic.default)({[`${L}-group-rtl`]:w==="rtl"},D),groupWrapper:(0,ic.default)({[`${L}-group-wrapper-sm`]:U==="small",[`${L}-group-wrapper-lg`]:U==="large",[`${L}-group-wrapper-rtl`]:w==="rtl",[`${L}-group-wrapper-${se}`]:ue},ta(`${L}-group-wrapper`,ee,q),D)})}))))}),Ys=MG;function GE(e){return["small","middle","large"].includes(e)}var O0=E(N()),zF=E(Ce());var LF=E(Ce()),qE=["wrap","nowrap","wrap-reverse"],KE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],XE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],AG=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&qE.includes(r)}},LG=(e,t)=>{let r={};return XE.forEach(o=>{r[`${e}-align-${o}`]=t.align===o}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},kG=(e,t)=>{let r={};return KE.forEach(o=>{r[`${e}-justify-${o}`]=t.justify===o}),r};function FG(e,t){return(0,LF.default)(Object.assign(Object.assign(Object.assign({},AG(e,t)),LG(e,t)),kG(e,t)))}var kF=FG;var zG=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},BG=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},jG=e=>{let{componentCls:t}=e,r={};return qE.forEach(o=>{r[`${t}-wrap-${o}`]={flexWrap:o}}),r},WG=e=>{let{componentCls:t}=e,r={};return XE.forEach(o=>{r[`${t}-align-${o}`]={alignItems:o}}),r},VG=e=>{let{componentCls:t}=e,r={};return KE.forEach(o=>{r[`${t}-justify-${o}`]={justifyContent:o}}),r},HG=()=>({}),FF=Rt("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:o}=e,n=Ze(e,{flexGapSM:t,flexGap:r,flexGapLG:o});return[zG(n),BG(n),jG(n),WG(n),VG(n)]},HG,{resetStyle:!1});var UG=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},GG=O0.default.forwardRef((e,t)=>{let{prefixCls:r,rootClassName:o,className:n,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=UG(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:m,getPrefixCls:g}=O0.default.useContext(Qe),v=g("flex",r),[x,h,p]=FF(v),y=c??d?.vertical,S=(0,zF.default)(n,o,d?.className,v,h,p,kF(v,e),{[`${v}-rtl`]:m==="rtl",[`${v}-gap-${s}`]:GE(s),[`${v}-vertical`]:y}),b=Object.assign(Object.assign({},d?.style),i);return a&&(b.flex=a),s&&!GE(s)&&(b.gap=s),x(O0.default.createElement(u,Object.assign({ref:t,className:S,style:b},Mr(f,["justify","wrap","align"])),l))}),P0=GG;var sf=E(N());var T0=E(N());var qG={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"},BF=qG;var KG=function(t,r){return T0.createElement(ct,Z({},t,{ref:r,icon:BF}))},XG=T0.forwardRef(KG),rf=XG;var W0=E(Ce());var M0=E(Ce());function N0(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function jF(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 Va=E(N()),lc=E(N());var KF=E(Ce());var YE=E(Ui());function ia(e,t,r,o){var n=YE.default.unstable_batchedUpdates?function(a){YE.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 go=E(N());var Rp=E(Ce());var io=E(N()),VF=E(N());var WF=E(N()),aa=WF.createContext(null);var YG=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,P=t.onFlipY,O=t.onReset,I=t.toolbarRender,j=t.zIndex,L=t.image,W=(0,VF.useContext)(aa),z=s.rotateLeft,$=s.rotateRight,D=s.zoomIn,A=s.zoomOut,H=s.close,k=s.left,F=s.right,U=s.flipX,V=s.flipY,M="".concat(i,"-operations-operation");io.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=io.useCallback(function(J){var se=J.type,ue=J.disabled,de=J.onClick,ye=J.icon;return io.createElement("div",{key:se,className:(0,Rp.default)(M,"".concat(i,"-operations-operation-").concat(se),_({},"".concat(i,"-operations-operation-disabled"),!!ue)),onClick:de},ye)},[M,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:P,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:A,onClick:b,type:"zoomOut",disabled:g<=v}),oe=q({icon:D,onClick:S,type:"zoomIn",disabled:g===x}),Y=io.createElement("div",{className:"".concat(i,"-operations")},Q,ce,re,K,X,oe);return io.createElement(Jr,{visible:r,motionName:o},function(J){var se=J.className,ue=J.style;return io.createElement(Hl,{open:!0,getContainer:n??document.body},io.createElement("div",{className:(0,Rp.default)("".concat(i,"-operations-wrapper"),se,a),style:T(T({},ue),{},{zIndex:j})},h===null?null:io.createElement("button",{className:"".concat(i,"-close"),onClick:y},h||H),c&&io.createElement(io.Fragment,null,io.createElement("div",{className:(0,Rp.default)("".concat(i,"-switch-left"),_({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:function(ye){return G(ye,-1)}},k),io.createElement("div",{className:(0,Rp.default)("".concat(i,"-switch-right"),_({},"".concat(i,"-switch-right-disabled"),f===m-1)),onClick:function(ye){return G(ye,1)}},F)),io.createElement("div",{className:"".concat(i,"-footer")},u&&io.createElement("div",{className:"".concat(i,"-progress")},l?l(f+1,m):"".concat(f+1," / ").concat(m)),I?I(Y,T(T({icons:{prevIcon:ne,nextIcon:ee,flipYIcon:Q,flipXIcon:ce,rotateLeftIcon:re,rotateRightIcon:K,zoomOutIcon:X,zoomInIcon:oe},actions:{onActive:p,onFlipY:P,onFlipX:R,onRotateLeft:C,onRotateRight:w,onZoomOut:b,onZoomIn:S,onReset:O,onClose:y},transform:d},W?{current:f,total:m}:{}),{},{image:L})):Y)))})},HF=YG;var _p=E(N()),I0={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function QE(e,t,r,o){var n=(0,_p.useRef)(null),i=(0,_p.useRef)([]),a=(0,_p.useState)(I0),s=B(a,2),l=s[0],c=s[1],u=function(g){c(I0),Es(I0,l)||o?.({transform:I0,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=T(T({},h),p)}),n.current=null,o?.({transform:h,action:v}),h})})),i.current.push(T(T({},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,P=y.offsetTop,O=g,I=l.scale*g;I>r?(I=r,O=r/l.scale):I<t&&(I=p?I:t,O=I/l.scale);var j=x??innerWidth/2,L=h??innerHeight/2,W=O-1,z=W*S*.5,$=W*b*.5,D=W*(j-l.x-R),A=W*(L-l.y-P),H=l.x-(D-z),k=l.y-(A-$);if(g<1&&I===1){var F=w*I,U=C*I,V=N0(),M=V.width,G=V.height;F<=M&&U<=G&&(H=0,k=0)}f({x:H,y:k,scale:I},v)};return{transform:l,resetTransform:u,updateTransform:f,dispatchZoomChange:d}}var of=E(N());function UF(e,t,r,o){var n=t+r,i=(r-o)/2;if(r>o){if(t>0)return _({},e,i);if(t<0&&n<o)return _({},e,-i)}else if(t<0||n>o)return _({},e,t<0?i:-i);return{}}function Op(e,t,r,o){var n=N0(),i=n.width,a=n.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=T(T({},UF("x",r,e,i)),UF("y",o,t,a))),s}var Qs=1,GF=1;function ZE(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)({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 P=e.current.offsetWidth*l,O=e.current.offsetHeight*l,I=e.current.getBoundingClientRect(),j=I.left,L=I.top,W=s%180!==0,z=Op(W?O:P,W?P:O,j,L);z&&i(T({},z),"dragRebound")}},y=function(b){if(!(!r||b.deltaY==0)){var w=Math.abs(b.deltaY/100),C=Math.min(w,GF),R=Qs+C*o;b.deltaY>0&&(R=Qs/R),a(R,"wheel",b.clientX,b.clientY)}};return(0,of.useEffect)(function(){var S,b,w,C;if(t){w=ia(window,"mouseup",p,!1),C=ia(window,"mousemove",h,!1);try{window.top!==window.self&&(S=ia(window.top,"mouseup",p,!1),b=ia(window.top,"mousemove",h,!1))}catch(R){Rl(!1,"[rc-image] ".concat(R))}}return function(){var R,P,O,I;(R=w)===null||R===void 0||R.remove(),(P=C)===null||P===void 0||P.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 ac=E(N());function qF(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 Pp(e){var t=e.src,r=e.isCustomPlaceholder,o=e.fallback,n=(0,ac.useState)(r?"loading":"normal"),i=B(n,2),a=i[0],s=i[1],l=(0,ac.useRef)(!1),c=a==="error";(0,ac.useEffect)(function(){var m=!0;return qF(t).then(function(g){!g&&m&&s("error")}),function(){m=!1}},[t]),(0,ac.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 nf=E(N());function $0(e,t){var r=e.x-t.x,o=e.y-t.y;return Math.hypot(r,o)}function QG(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 JE(e,t,r,o,n,i,a){var s=n.rotate,l=n.scale,c=n.x,u=n.y,f=(0,nf.useState)(!1),d=B(f,2),m=d[0],g=d[1],v=(0,nf.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),x=function(b){v.current=T(T({},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,P=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=QG(P,O,j,L),z=B(W,2),$=z[0],D=z[1],A=$0(j,L)/$0(P,O);a(A,"touchZoom",$,D,!0),x({point1:j,point2:L,eventType:"touchZoom"})}else I==="move"&&(i({x:C[0].clientX-P.x,y:C[0].clientY-P.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,P=C.top,O=s%180!==0,I=Op(O?w:b,O?b:w,R,P);I&&i(T({},I),"dragRebound")}};return(0,nf.useEffect)(function(){var S;return r&&t&&(S=ia(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 ZG=["fallback","src","imgRef"],JG=["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"],eq=function(t){var r=t.fallback,o=t.src,n=t.imgRef,i=Ne(t,ZG),a=Pp({src:o,fallback:r}),s=B(a,2),l=s[0],c=s[1];return go.default.createElement("img",Z({ref:function(f){n.current=f,l(f)}},i,c))},tq=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,P=t.maxScale,O=P===void 0?50:P,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,A=t.onTransform,H=t.onChange,k=Ne(t,JG),F=(0,go.useRef)(),U=(0,go.useContext)(aa),V=U&&y>1,M=U&&y>=1,G=(0,go.useState)(!0),q=B(G,2),ne=q[0],ee=q[1],Q=QE(F,R,O,A),ce=Q.transform,re=Q.resetTransform,K=Q.updateTransform,X=Q.dispatchZoomChange,oe=ZE(F,l,u,w,ce,K,X),Y=oe.isMoving,J=oe.onMouseDown,se=oe.onWheel,ue=JE(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,Me=(0,KF.default)(_({},"".concat(r,"-moving"),Y));(0,go.useEffect)(function(){ne||ee(!0)},[ne]);var je=function(){re("close")},Xe=function(){X(Qs+w,"zoomIn")},Le=function(){X(Qs/(Qs+w),"zoomOut")},Ie=function(){K({rotate:fe+90},"rotateRight")},Ee=function(){K({rotate:fe-90},"rotateLeft")},Ke=function(){K({flipX:!ce.flipX},"flipX")},et=function(){K({flipY:!ce.flipY},"flipY")},We=function(){re("reset")},ae=function(wt){var Ot=h+wt;!Number.isInteger(Ot)||Ot<0||Ot>y-1||(ee(!1),re(wt<0?"prev":"next"),H?.(Ot,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(Qs+w,"doubleClick",wt.clientX,wt.clientY))};(0,go.useEffect)(function(){var Ue=ia(window,"keydown",me,!1);return function(){Ue.remove()}},[u,V,h]);var be=go.default.createElement(eq,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=T({url:o,alt:n},i);return go.default.createElement(go.default.Fragment,null,go.default.createElement(VM,Z({transitionName:j,maskTransitionName:W,closable:!1,keyboard:!0,prefixCls:r,onClose:c,visible:u,classNames:{wrapper:Me},rootClassName:m,getContainer:v},k,{afterClose:je}),go.default.createElement("div",{className:"".concat(r,"-img-wrapper")},z?z(be,T({transform:ce,image:He},U?{current:h}:{})):be)),go.default.createElement(HF,{visible:u,transform:ce,maskTransitionName:W,closeIcon:g,getContainer:v,prefixCls:r,rootClassName:m,icons:d,countRender:S,showSwitch:V,showProgress:M,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:et,onClose:c,onReset:We,zIndex:k.zIndex!==void 0?k.zIndex+1:void 0,image:He}))},D0=tq;var Wa=E(N()),tR=E(N());var af=E(N());var Tp=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function eR(e){var t=af.useState({}),r=B(t,2),o=r[0],n=r[1],i=af.useCallback(function(s,l){return n(function(c){return T(T({},c),{},_({},s,l))}),function(){n(function(c){var u=T({},c);return delete u[s],u})}},[]),a=af.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(Tp)).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 rq=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],oq=["src"],nq=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,P=Ne(f,rq),O=eR(l),I=B(O,3),j=I[0],L=I[1],W=I[2],z=zt(0,{value:v}),$=B(z,2),D=$[0],A=$[1],H=(0,tR.useState)(!1),k=B(H,2),F=k[0],U=k[1],V=((r=j[D])===null||r===void 0?void 0:r.data)||{},M=V.src,G=Ne(V,oq),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,tR.useState)(null),re=B(ce,2),K=re[0],X=re[1],oe=Wa.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});A(Pe<0?0:Pe),Q(!0),X({x:ye,y:xe}),U(!0)},[j,W]);Wa.useEffect(function(){ee?F||A(0):U(!1)},[ee]);var Y=function(de,ye){A(de),b?.(de,ye)},J=function(){Q(!1),X(null)},se=Wa.useMemo(function(){return{register:L,onPreview:oe}},[L,oe]);return Wa.createElement(aa.Provider,{value:se},i,Wa.createElement(D0,Z({"aria-hidden":!ee,movable:x,visible:ee,prefixCls:n,closeIcon:S,onClose:J,mousePosition:K,imgCommonProps:G,src:M,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},P)))},XF=nq;var sc=E(N());var YF=0;function rR(e,t){var r=sc.useState(function(){return YF+=1,String(YF)}),o=B(r,1),n=o[0],i=sc.useContext(aa),a={data:t,canPreview:e};return sc.useEffect(function(){if(i)return i.register(n,a)},[]),sc.useEffect(function(){i&&i.register(n,a)},[e,t]),n}var iq=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],aq=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],QF=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,iq),C=c&&c!==!0,R=ie(v)==="object"?v:{},P=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,A=R.movable,H=R.icons,k=R.scaleStep,F=R.minScale,U=R.maxScale,V=R.imageRender,M=R.toolbarRender,G=Ne(R,aq),q=P??r,ne=zt(!!I,{value:I,onChange:L}),ee=B(ne,2),Q=ee[0],ce=ee[1],re=Pp({src:r,isCustomPlaceholder:C,fallback:u}),K=B(re,3),X=K[0],oe=K[1],Y=K[2],J=(0,lc.useState)(null),se=B(J,2),ue=se[0],de=se[1],ye=(0,lc.useContext)(aa),xe=!!v,Pe=function(){ce(!1),de(null)},fe=(0,M0.default)(a,y,b,_({},"".concat(a,"-error"),Y==="error")),pe=(0,lc.useMemo)(function(){var Le={};return Tp.forEach(function(Ie){t[Ie]!==void 0&&(Le[Ie]=t[Ie])}),Le},Tp.map(function(Le){return t[Le]})),Me=(0,lc.useMemo)(function(){return T(T({},pe),{},{src:q})},[q,pe]),je=rR(xe,Me),Xe=function(Ie){var Ee=jF(Ie.target),Ke=Ee.left,et=Ee.top;ye?ye.onPreview(je,q,Ke,et):(de({x:Ke,y:et}),ce(!0)),h?.(Ie)};return Va.createElement(Va.Fragment,null,Va.createElement("div",Z({},w,{className:fe,onClick:xe?Xe:h,style:T({width:f,height:d},S)}),Va.createElement("img",Z({},pe,{className:(0,M0.default)("".concat(a,"-img"),_({},"".concat(a,"-img-placeholder"),c===!0),x),style:T({height:d},m),ref:X},oe,{width:f,height:d,onError:p})),Y==="loading"&&Va.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),$&&xe&&Va.createElement("div",{className:(0,M0.default)("".concat(a,"-mask"),D),style:{display:m?.display==="none"?"none":void 0}},$)),!ye&&xe&&Va.createElement(D0,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:A,scaleStep:k,minScale:F,maxScale:U,rootClassName:b,imageRender:V,imgCommonProps:pe,toolbarRender:M},G)))};QF.PreviewGroup=XF;var ZF=QF;var A0=ZF;var kr=E(N());var L0=E(N());var sq={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"},JF=sq;var lq=function(t,r){return L0.createElement(ct,Z({},t,{ref:r,icon:JF}))},cq=L0.forwardRef(lq),e3=cq;var k0=E(N());var uq={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"},t3=uq;var fq=function(t,r){return k0.createElement(ct,Z({},t,{ref:r,icon:t3}))},dq=k0.forwardRef(fq),r3=dq;var F0=E(N());var pq={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"},o3=pq;var mq=function(t,r){return F0.createElement(ct,Z({},t,{ref:r,icon:o3}))},hq=F0.forwardRef(mq),oR=hq;var z0=E(N());var gq={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"},n3=gq;var vq=function(t,r){return z0.createElement(ct,Z({},t,{ref:r,icon:n3}))},yq=z0.forwardRef(vq),i3=yq;var B0=E(N());var xq={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"},a3=xq;var bq=function(t,r){return B0.createElement(ct,Z({},t,{ref:r,icon:a3}))},Sq=B0.forwardRef(bq),s3=Sq;var l3=E(Ce());var nR=e=>({position:e||"absolute",inset:0}),Cq=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 lt("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ri),{padding:`0 ${te(o)}`,[t]:{marginInlineEnd:n,svg:{verticalAlign:"baseline"}}})}},wq=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 lt(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}}}}},Eq=e=>{let{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:o,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,s=new lt(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}}},Rq=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({},nR()),{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({},nR()),{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()},"&":[wq(e),Eq(e)]}]},_q=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({},Cq(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},nR())}}},Oq=e=>{let{previewCls:t}=e;return{[`${t}-root`]:Wl(e,"zoom"),"&":jl(e,!0)}},Pq=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new lt(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new lt(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new lt(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),j0=Rt("Image",e=>{let t=`${e.componentCls}-preview`,r=Ze(e,{previewCls:t,modalMaskBg:new lt("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[_q(r),Rq(r),M1(Ze(r,{componentCls:t})),Oq(r)]},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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},iR={rotateLeft:kr.createElement(e3,null),rotateRight:kr.createElement(r3,null),zoomIn:kr.createElement(i3,null),zoomOut:kr.createElement(s3,null),close:kr.createElement(_u,null),left:kr.createElement(a0,null),right:kr.createElement(Qv,null),flipX:kr.createElement(oR,null),flipY:kr.createElement(oR,{rotate:90})},Nq=e=>{var{previewPrefixCls:t,preview:r}=e,o=Tq(e,["previewPrefixCls","preview"]);let{getPrefixCls:n,direction:i}=kr.useContext(Qe),a=n("image",t),s=`${a}-preview`,l=n(),c=_o(a),[u,f,d]=j0(a,c),[m]=Ms("ImagePreview",typeof r=="object"?r.zIndex:void 0),g=kr.useMemo(()=>Object.assign(Object.assign({},iR),{left:i==="rtl"?kr.createElement(Qv,null):kr.createElement(a0,null),right:i==="rtl"?kr.createElement(a0,null):kr.createElement(Qv,null)}),[i]),v=kr.useMemo(()=>{var x;if(r===!1)return r;let h=typeof r=="object"?r:{},p=(0,l3.default)(f,d,c,(x=h.rootClassName)!==null&&x!==void 0?x:"");return Object.assign(Object.assign({},h),{transitionName:Qi(l,"zoom",h.transitionName),maskTransitionName:Qi(l,"fade",h.maskTransitionName),rootClassName:p,zIndex:m})},[r]);return u(kr.createElement(A0.PreviewGroup,Object.assign({preview:v,previewPrefixCls:s,icons:g},o)))},c3=Nq;var u3=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},f3=e=>{let{prefixCls:t,preview:r,className:o,rootClassName:n,style:i}=e,a=u3(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,getPopupContainer:l,className:c,style:u,preview:f}=Ko("image"),[d]=wi("Image"),m=s("image",t),g=s(),v=_o(m),[x,h,p]=j0(m,v),y=(0,W0.default)(n,h,p,v),S=(0,W0.default)(o,h,c),[b]=Ms("ImagePreview",typeof r=="object"?r.zIndex:void 0),w=sf.useMemo(()=>{if(r===!1)return r;let R=typeof r=="object"?r:{},{getContainer:P,closeIcon:O,rootClassName:I}=R,j=u3(R,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:sf.createElement("div",{className:`${m}-mask-info`},sf.createElement(rf,null),d?.preview),icons:iR},j),{rootClassName:(0,W0.default)(y,I),getContainer:P??l,transitionName:Qi(g,"zoom",R.transitionName),maskTransitionName:Qi(g,"fade",R.maskTransitionName),zIndex:b,closeIcon:O??f?.closeIcon})},[r,d,f?.closeIcon]),C=Object.assign(Object.assign({},u),i);return x(sf.createElement(A0,Object.assign({prefixCls:m,preview:w,rootClassName:y,className:S,style:C},a)))};f3.PreviewGroup=c3;var aR=f3;var sR=E(N()),Np=E(N()),d3=E(Ce());var Iq=e=>{let{getPrefixCls:t,direction:r}=(0,Np.useContext)(Qe),{prefixCls:o,className:n}=e,i=t("input-group",o),a=t("input"),[s,l,c]=h0(a),u=(0,d3.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,Np.useContext)(no),d=(0,Np.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(sR.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},sR.createElement(no.Provider,{value:d},e.children)))},p3=Iq;var rr=E(N()),v3=E(Ce());var $q=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},m3=Rt(["Input","OTP"],e=>{let t=Ze(e,Fa(e));return[$q(t)]},za);var ti=E(N()),h3=E(Ce());var Dq=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Mq=ti.forwardRef((e,t)=>{let{className:r,value:o,onChange:n,onActiveChange:i,index:a,mask:s}=e,l=Dq(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=ti.useContext(Qe),u=c("otp"),f=typeof s=="string"?s:o,d=ti.useRef(null);ti.useImperativeHandle(t,()=>d.current);let m=h=>{n(a,h.target.value)},g=()=>{ft(()=>{var h;let p=(h=d.current)===null||h===void 0?void 0:h.input;document.activeElement===p&&p&&p.select()})},v=h=>{let{key:p,ctrlKey:y,metaKey:S}=h;p==="ArrowLeft"?i(a-1):p==="ArrowRight"?i(a+1):p==="z"&&(y||S)&&h.preventDefault(),g()},x=h=>{h.key==="Backspace"&&!o&&i(a-1),g()};return ti.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&o!==""&&o!==void 0&&ti.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),ti.createElement(Ys,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:d,value:o,onInput:m,onFocus:g,onKeyDown:v,onKeyUp:x,onMouseDown:g,onMouseUp:g,className:(0,h3.default)(r,{[`${u}-mask-input`]:s})})))}),g3=Mq;var Aq=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function V0(e){return(e||"").split("")}var Lq=e=>{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},kq=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=Aq(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:S}=rr.useContext(Qe),b=y("otp",r),w=Ro(p,{aria:!0,data:!0,attr:!0}),[C,R,P]=m3(b),O=Qo(M=>n??M),I=rr.useContext(no),j=ra(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 M;(M=z.current[0])===null||M===void 0||M.focus()},blur:()=>{var M;for(let G=0;G<o;G+=1)(M=z.current[G])===null||M===void 0||M.blur()},nativeElement:W.current}));let $=M=>l?l(M):M,[D,A]=rr.useState(()=>V0($(i||"")));rr.useEffect(()=>{a!==void 0&&A(V0(a))},[a]);let H=It(M=>{A(M),x&&x(M),s&&M.length===o&&M.every(G=>G)&&M.some((G,q)=>D[q]!==G)&&s(M.join(""))}),k=It((M,G)=>{let q=le(D);for(let ee=0;ee<M;ee+=1)q[ee]||(q[ee]="");G.length<=1?q[M]=G:q=q.slice(0,M).concat(V0(G)),q=q.slice(0,o);for(let ee=q.length-1;ee>=0&&!q[ee];ee-=1)q.pop();let ne=$(q.map(ee=>ee||" ").join(""));return q=V0(ne).map((ee,Q)=>ee===" "&&!q[Q]?q[Q]:ee),q}),F=(M,G)=>{var q;let ne=k(M,G),ee=Math.min(M+G.length,o-1);ee!==M&&ne[M]!==void 0&&((q=z.current[ee])===null||q===void 0||q.focus()),H(ne)},U=M=>{var G;(G=z.current[M])===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,v3.default)(b,{[`${b}-sm`]:O==="small",[`${b}-lg`]:O==="large",[`${b}-rtl`]:S==="rtl"},P,R),role:"group"}),rr.createElement(no.Provider,{value:L},Array.from({length:o}).map((M,G)=>{let q=`otp-${G}`,ne=D[G]||"";return rr.createElement(rr.Fragment,{key:q},rr.createElement(g3,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)),G<o-1&&rr.createElement(Lq,{separator:c,index:G,prefixCls:b}))}))))}),y3=kq;var Oo=E(N()),U0=E(N());var H0=E(N());var Fq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},x3=Fq;var zq=function(t,r){return H0.createElement(ct,Z({},t,{ref:r,icon:x3}))},Bq=H0.forwardRef(zq),b3=Bq;var S3=E(Ce());var jq=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Wq=e=>e?Oo.createElement(rf,null):Oo.createElement(b3,null),Vq={click:"onClick",hover:"onMouseOver"},Hq=Oo.forwardRef((e,t)=>{let{disabled:r,action:o="click",visibilityToggle:n=!0,iconRender:i=Wq}=e,a=Oo.useContext(Zr),s=r??a,l=typeof n=="object"&&n.visible!==void 0,[c,u]=(0,U0.useState)(()=>l?n.visible:!1),f=(0,U0.useRef)(null);Oo.useEffect(()=>{l&&u(n.visible)},[l,n]);let d=Ep(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=Vq[o]||"",j=i(c),L={[I]:m,className:`${O}-icon`,key:"passwordIcon",onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()}};return Oo.cloneElement(Oo.isValidElement(j)?j:Oo.createElement("span",null,j),L)},{className:v,prefixCls:x,inputPrefixCls:h,size:p}=e,y=jq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=Oo.useContext(Qe),b=S("input",h),w=S("input-password",x),C=n&&g(w),R=(0,S3.default)(w,v,{[`${w}-${p}`]:!!p}),P=Object.assign(Object.assign({},Mr(y,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:b,suffix:C});return p&&(P.size=p),Oo.createElement(Ys,Object.assign({ref:Wr(t,f)},P))}),C3=Hq;var Ii=E(N());var w3=E(Ce());var Uq=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},Gq=Ii.forwardRef((e,t)=>{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=Uq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:h}=Ii.useContext(Qe),p=Ii.useRef(!1),y=x("input-search",r),S=x("input",o),{compactSize:b}=Hn(y,h),w=Qo(F=>{var U;return(U=i??b)!==null&&U!==void 0?U:F}),C=Ii.useRef(null),R=F=>{F?.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),d?.(F)},P=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"?Ii.createElement(Jy,null):null,L=`${y}-button`,W,z=s||{},$=z.type&&z.type.__ANT_BUTTON===!0;$||z.type==="button"?W=Vn(z,Object.assign({onMouseDown:P,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=Ii.createElement(Jd,{className:L,type:s?"primary":void 0,size:w,disabled:u,key:"enterButton",onMouseDown:P,onClick:O,loading:c,icon:j},s),l&&(W=[W,Vn(l,{key:"addonAfter"})]);let D=(0,w3.default)(y,{[`${y}-rtl`]:h==="rtl",[`${y}-${w}`]:!!w,[`${y}-with-button`]:!!s},n),A=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 Ii.createElement(Ys,Object.assign({ref:Wr(C,t),onPressEnter:I},A,{size:w,onCompositionStart:H,onCompositionEnd:k,addonAfter:W,suffix:a,onChange:R,disabled:u}))}),E3=Gq;var Rn=E(N()),T3=E(N()),$p=E(Ce());var Ip=E(Ce());var Hr=E(N());var R3=E(Ce());var vo=E(N());var qq=`
|
|
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;
|
|
`,Kq=["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"],lR={},En;function Xq(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&&lR[r])return lR[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=Kq.map(function(c){return"".concat(c,":").concat(o.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:n};return t&&r&&(lR[r]=l),l}function cR(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;En||(En=document.createElement("textarea"),En.setAttribute("tab-index","-1"),En.setAttribute("aria-hidden","true"),En.setAttribute("name","hiddenTextarea"),document.body.appendChild(En)),e.getAttribute("wrap")?En.setAttribute("wrap",e.getAttribute("wrap")):En.removeAttribute("wrap");var n=Xq(e,t),i=n.paddingSize,a=n.borderSize,s=n.boxSizing,l=n.sizingStyle;En.setAttribute("style","".concat(l,";").concat(qq)),En.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=En.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),r!==null||o!==null){En.value=" ";var m=En.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 Yq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],uR=0,fR=1,dR=2,Qq=vo.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,Yq),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=vo.useRef();vo.useImperativeHandle(t,function(){return{textArea:y.current}});var S=vo.useMemo(function(){return a&&ie(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),b=B(S,2),w=b[0],C=b[1],R=!!a,P=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=vo.useState(dR),I=B(O,2),j=I[0],L=I[1],W=vo.useState(),z=B(W,2),$=z[0],D=z[1],A=function(){L(uR)};xt(function(){R&&A()},[i,w,C,R]),xt(function(){if(j===uR)L(fR);else if(j===fR){var M=cR(y.current,!1,w,C);L(dR),D(M)}else P()},[j]);var H=vo.useRef(),k=function(){ft.cancel(H.current)},F=function(G){j===dR&&(s?.(G),a&&(k(),H.current=ft(function(){A()})))};vo.useEffect(function(){return k},[]);var U=R?$:null,V=T(T({},c),U);return(j===uR||j===fR)&&(V.overflowY="hidden",V.overflowX="hidden"),vo.createElement(qo,{onResize:F,disabled:!(a||s)},vo.createElement("textarea",Z({},m,{ref:y,style:V,className:(0,R3.default)(o,l,_({},"".concat(o,"-disabled"),u)),disabled:u,value:x,onChange:p})))}),pR=Qq;var Zq=["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"],Jq=Hr.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,P=e.onPressEnter,O=e.readOnly,I=e.autoSize,j=e.onKeyDown,L=Ne(e,Zq),W=zt(o,{value:n,defaultValue:o}),z=B(W,2),$=z[0],D=z[1],A=$==null?"":String($),H=Hr.default.useState(!1),k=B(H,2),F=k[0],U=k[1],V=Hr.default.useRef(!1),M=Hr.default.useState(null),G=B(M,2),q=G[0],ne=G[1],ee=(0,Hr.useRef)(null),Q=(0,Hr.useRef)(null),ce=function(){var ae;return(ae=Q.current)===null||ae===void 0?void 0:ae.textArea},re=function(){ce().focus()};(0,Hr.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,Hr.useEffect)(function(){U(function(We){return!y&&We})},[y]);var K=Hr.default.useState(null),X=B(K,2),oe=X[0],Y=X[1];Hr.default.useEffect(function(){if(oe){var We;(We=ce()).setSelectionRange.apply(We,le(oe))}},[oe]);var J=wp(x,v),se=(r=J.max)!==null&&r!==void 0?r:c,ue=Number(se)>0,de=J.strategy(A),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),tf(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)},Me=function(ae){ae.key==="Enter"&&P&&P(ae),j?.(ae)},je=function(ae){U(!0),i?.(ae)},Xe=function(ae){U(!1),a?.(ae)},Le=function(ae){D(""),re(),tf(ce(),ae,s)},Ie=d,Ee;J.show&&(J.showFormatter?Ee=J.showFormatter({value:A,count:de,maxLength:se}):Ee="".concat(de).concat(ue?" / ".concat(se):""),Ie=Hr.default.createElement(Hr.default.Fragment,null,Ie,Hr.default.createElement("span",{className:(0,Ip.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)},et=!I&&!v&&!l;return Hr.default.createElement(oc,{ref:ee,value:A,allowClear:l,handleReset:Le,suffix:Ie,prefixCls:g,classNames:T(T({},b),{},{affixWrapper:(0,Ip.default)(b?.affixWrapper,_(_({},"".concat(g,"-show-count"),v),"".concat(g,"-textarea-allow-clear"),l))}),disabled:y,focused:F,className:(0,Ip.default)(h,ye&&"".concat(g,"-out-of-range")),style:T(T({},p),q&&!et?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ee=="string"?Ee:void 0}},hidden:S,readOnly:O,onClear:R},Hr.default.createElement(pR,Z({},L,{autoSize:I,maxLength:c,onKeyDown:Me,onChange:pe,onFocus:je,onBlur:Xe,onCompositionStart:Pe,onCompositionEnd:fe,className:(0,Ip.default)(b?.textarea),style:T(T({},w?.textarea),{},{resize:p?.resize}),disabled:y,prefixCls:g,onResize:Ke,ref:Q,readOnly:O})))}),_3=Jq;var O3=_3;var eK=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}-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-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},P3=Rt(["Input","TextArea"],e=>{let t=Ze(e,Fa(e));return[eK(t)]},za,{resetFont:!1});var tK=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},rK=(0,T3.forwardRef)((e,t)=>{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=tK(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:P,styles:O}=Ko("textArea"),I=Rn.useContext(Zr),j=a??I,{status:L,hasFeedback:W,feedbackIcon:z}=Rn.useContext(no),$=ra(L,s),D=Rn.useRef(null);Rn.useImperativeHandle(t,()=>{var J;return{resizableTextArea:(J=D.current)===null||J===void 0?void 0:J.resizableTextArea,focus:se=>{var ue,de;rc((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 A=y("input",o),H=_o(A),[k,F,U]=m0(A,u),[V]=P3(A,H),{compactSize:M,compactItemClassnames:G}=Hn(A,S),q=Qo(J=>{var se;return(se=i??M)!==null&&se!==void 0?se:J}),[ne,ee]=Xs("textArea",g,n),Q=R0(l??b),[ce,re]=Rn.useState(!1),[K,X]=Rn.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(Rn.createElement(O3,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,$p.default)(U,H,f,u,G,C,K&&`${A}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),P),{textarea:(0,$p.default)({[`${A}-sm`]:q==="small",[`${A}-lg`]:q==="large"},F,c?.textarea,P.textarea,ce&&`${A}-mouse-active`),variant:(0,$p.default)({[`${A}-${ne}`]:ee},ta(A,$)),affixWrapper:(0,$p.default)(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:S==="rtl",[`${A}-affix-wrapper-sm`]:q==="small",[`${A}-affix-wrapper-lg`]:q==="large",[`${A}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},F)}),prefixCls:A,suffix:W&&Rn.createElement("span",{className:`${A}-textarea-suffix`},z),showCount:v,ref:D,onResize:Y,onMouseDown:oe}))))}),N3=rK;var lf=Ys;lf.Group=p3;lf.Search=E3;lf.TextArea=N3;lf.Password=C3;lf.OTP=y3;var Dp=lf;var Ur=E(N());var xR=E(Ce());var ff=E(N()),B3=E(Ce());var oK=E(N()),nK=E(Ce());var Mp=E(N()),mR={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},hR=function(){var t=(0,Mp.useRef)([]),r=(0,Mp.useRef)(null);return(0,Mp.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 Ap=E(N()),k3=E(Ce());var G0=E(N());var I3=0,iK=Vt();function aK(){var e;return iK?(e=I3,I3+=1):e="TEST_OR_SSR",e}var $3=function(e){var t=G0.useState(),r=B(t,2),o=r[0],n=r[1];return G0.useEffect(function(){n("rc_progress_".concat(aK()))},[]),e||o};var ri=E(N()),D3=function(t){var r=t.bg,o=t.children;return ri.createElement("div",{style:{width:"100%",height:"100%",background:r}},o)};function M3(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 sK=ri.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=ri.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=M3(o,(360-f)/360),y=M3(o,1),S="conic-gradient(from ".concat(h,", ").concat(p.join(", "),")"),b="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(y.join(", "),")");return ri.createElement(ri.Fragment,null,ri.createElement("mask",{id:x},v),ri.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(x,")")},ri.createElement(D3,{bg:b},ri.createElement(D3,{bg:S}))))}),A3=sK;var cf=100,q0=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=cf/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 lK=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function L3(e){var t=e??[];return Array.isArray(t)?t:[t]}var cK=function(t){var r=T(T({},mR),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,lK),p=cf/2,y=$3(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),P=ie(i)==="object"?i:{count:i,gap:2},O=P.count,I=P.gap,j=L3(x),L=L3(v),W=L.find(function(F){return F&&ie(F)==="object"}),z=W&&ie(W)==="object",$=z?"butt":d,D=q0(w,R,0,100,C,c,u,f,$,a),A=hR(),H=function(){var U=0;return j.map(function(V,M){var G=L[M]||L[L.length-1],q=q0(w,R,U,V,C,c,u,G,$,a);return U+=V,Ap.createElement(A3,{key:M,color:G,ptg:V,radius:b,prefixCls:n,gradientId:S,style:q,strokeLinecap:$,strokeWidth:a,gapDegree:c,ref:function(ee){A[M]=ee},size:cf})}).reverse()},k=function(){var U=Math.round(O*(j[0]/100)),V=100/O,M=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=q0(w,R,M,V,C,c,u,ne,"butt",a,I);return M+=(R-Q.strokeDashoffset+I)*100/R,Ap.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){A[q]=re}})})};return Ap.createElement("svg",Z({className:(0,k3.default)("".concat(n,"-circle"),g),viewBox:"0 0 ".concat(cf," ").concat(cf),style:m,id:o,role:"presentation"},h),!O&&Ap.createElement("circle",{className:"".concat(n,"-circle-trail"),r:b,cx:p,cy:p,stroke:f,strokeLinecap:$,strokeWidth:s||a,style:D}),O?k():H())},gR=cK;function sa(e){return!e||e<0?0:e>100?100:e}function uf(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 F3=e=>{let{percent:t,success:r,successPercent:o}=e,n=sa(uf({success:r,successPercent:o}));return[n,sa(sa(t)-n)]},z3=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||Oa.green,r||null]},Zs=(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 uK=3,fK=e=>uK/e*100,dK=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]=Zs(u,"circle"),{strokeWidth:g}=e;g===void 0&&(g=Math.max(fK(d),6));let v={width:d,height:m,fontSize:d*.15+6},x=ff.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),h=F3(e),p=n||s==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=z3({success:c,strokeColor:e.strokeColor}),b=(0,B3.default)(`${t}-inner`,{[`${t}-circle-gradient`]:y}),w=ff.createElement(gR,{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=ff.createElement("div",{className:b,style:v},w,!C&&l);return C?ff.createElement(ec,{title:l},R):R},j3=dK;var df=E(N());var H3=E(Ce());var Lp="--progress-line-stroke-color",vR="--progress-percent",W3=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}})},pK=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(${Lp})`]},height:"100%",width:`calc(1 / var(${vR}) * 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:W3(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:W3(!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}}})}},mK=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"}}}},hK=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}}}}}},gK=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},vK=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),V3=Rt("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=Ze(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[pK(r),mK(r),hK(r),gK(r)]},vK);var yK=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},xK=e=>{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(", ")},bK=(e,t)=>{let{from:r=Oa.blue,to:o=Oa.blue,direction:n=t==="rtl"?"to left":"to right"}=e,i=yK(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=xK(i),l=`linear-gradient(${n}, ${s})`;return{background:l,[Lp]:l}}let a=`linear-gradient(${n}, ${r}, ${o})`;return{background:a,[Lp]:a}},SK=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"?bK(a,r):{[Lp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,x=n??[-1,i||(n==="small"?6:8)],[h,p]=Zs(x,"line",{strokeWidth:i}),y={backgroundColor:c||void 0,borderRadius:v},S=Object.assign(Object.assign({width:`${sa(o)}%`,height:p,borderRadius:v},g),{[vR]:sa(o)/100}),b=uf(e),w={width:`${sa(b)}%`,height:p,borderRadius:v,backgroundColor:f?.strokeColor},C={width:h<0?"100%":h},R=df.createElement("div",{className:`${t}-inner`,style:y},df.createElement("div",{className:(0,H3.default)(`${t}-bg`,`${t}-bg-${m}`),style:S},m==="inner"&&l),b!==void 0&&df.createElement("div",{className:`${t}-success-bg`,style:w})),P=m==="outer"&&d==="start",O=m==="outer"&&d==="end";return m==="outer"&&d==="center"?df.createElement("div",{className:`${t}-layout-bottom`},R,l):df.createElement("div",{className:`${t}-outer`,style:C},P&&l,R,O&&l)},U3=SK;var yR=E(N()),G3=E(Ce());var CK=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]=Zs(d,"step",{steps:r,strokeWidth:i}),v=m/r,x=Array.from({length:r});for(let h=0;h<r;h++){let p=Array.isArray(a)?a[h]:a;x[h]=yR.createElement("div",{key:h,className:(0,G3.default)(`${l}-steps-item`,{[`${l}-steps-item-active`]:h<=u-1}),style:{backgroundColor:h<=u-1?p:s,width:v,height:g}})}return yR.createElement("div",{className:`${l}-steps-outer`},x,c)},q3=CK;var wK=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};var EK=["normal","exception","active","success"],RK=Ur.forwardRef((e,t)=>{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=wK(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=Ur.useMemo(()=>{if(p){let H=typeof p=="string"?p:Object.values(p)[0];return new lt(H).isLight()}return!1},[a]),b=Ur.useMemo(()=>{var H,k;let F=uf(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=Ur.useMemo(()=>!EK.includes(f)&&b>=100?"success":f||"normal",[f,b]),{getPrefixCls:C,direction:R,progress:P}=Ur.useContext(Qe),O=C("progress",r),[I,j,L]=V3(O),W=u==="line",z=W&&!i,$=Ur.useMemo(()=>{if(!c)return null;let H=uf(e),k,F=d||(V=>`${V}%`),U=W&&S&&h==="inner";return h==="inner"||d||w!=="exception"&&w!=="success"?k=F(sa(s),sa(H)):w==="exception"?k=W?Ur.createElement(Ru,null):Ur.createElement(_u,null):w==="success"&&(k=W?Ur.createElement(Z$,null):Ur.createElement(Xy,null)),Ur.createElement("span",{className:(0,xR.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?Ur.createElement(q3,Object.assign({},e,{strokeColor:y,prefixCls:O,steps:typeof i=="object"?i.count:i}),$):Ur.createElement(U3,Object.assign({},e,{strokeColor:p,prefixCls:O,direction:R,percentPosition:{align:x,type:h}}),$):(u==="circle"||u==="dashboard")&&(D=Ur.createElement(j3,Object.assign({},e,{strokeColor:p,prefixCls:O,progressStatus:w}),$));let A=(0,xR.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&Zs(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"},P?.className,o,n,j,L);return I(Ur.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P?.style),m),className:A,role:"progressbar","aria-valuenow":b,"aria-valuemin":0,"aria-valuemax":100},Mr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))}),K3=RK;var X3=K3;var K0=E(N());var _K={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"},Y3=_K;var OK=function(t,r){return K0.createElement(ct,Z({},t,{ref:r,icon:Y3}))},PK=K0.forwardRef(OK),Q3=PK;var X0=E(N());var TK={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"},Z3=TK;var NK=function(t,r){return X0.createElement(ct,Z({},t,{ref:r,icon:Z3}))},IK=X0.forwardRef(NK),J3=IK;var Y0=E(N());var $K={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"},e4=$K;var DK=function(t,r){return Y0.createElement(ct,Z({},t,{ref:r,icon:e4}))},MK=Y0.forwardRef(DK),t4=MK;var Q0=E(N());var AK={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"},r4=AK;var LK=function(t,r){return Q0.createElement(ct,Z({},t,{ref:r,icon:r4}))},kK=Q0.forwardRef(LK),o4=kK;var Z0=E(N());var FK={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"},n4=FK;var zK=function(t,r){return Z0.createElement(ct,Z({},t,{ref:r,icon:n4}))},BK=Z0.forwardRef(zK),i4=BK;var jK={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"},a4=jK;var nx=E(N());var lr=E(N()),ER=E(Ui()),rx=E(Ce());var ex=E(N());var c4=E(Ce());var Fp=E(N());var J0=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 WK(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 s4(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function bR(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(WK(e,t),s4(t)):e.onSuccess(s4(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 VK=function(){var e=eo(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=eo(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=eo(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<S;b++)p.push(y[b]);C.next=2;break;case 12:return C.abrupt("return",p);case 13:case"end":return C.stop()}},v)})),s.apply(this,arguments)},a=function(v){return s.apply(this,arguments)},n=[],i=[],r.forEach(function(g){return i.push(g.webkitGetAsEntry())}),u=function(){var g=eo(Pt().mark(function v(x,h){var p,y;return Pt().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(x){b.next=2;break}return b.abrupt("return");case 2:if(x.path=h||"",!x.isFile){b.next=10;break}return b.next=6,l(x);case 6:p=b.sent,p&&n.push(p),b.next=15;break;case 10:if(!x.isDirectory){b.next=15;break}return b.next=13,a(x);case 13:y=b.sent,i.push.apply(i,le(y));case 15:case"end":return b.stop()}},v)}));return function(x,h){return g.apply(this,arguments)}}(),f=0;case 9:if(!(f<i.length)){m.next=15;break}return m.next=12,u(i[f]);case 12:f++,m.next=9;break;case 15:return m.abrupt("return",n);case 16:case"end":return m.stop()}},t)}));return function(r,o){return e.apply(this,arguments)}}(),l4=VK;var HK=+new Date,UK=0;function kp(){return"rc-upload-".concat(HK,"-").concat(++UK)}var GK=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],qK=function(e){xr(r,e);var t=br(r);function r(){var o;ot(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=t.call.apply(t,[this].concat(i)),_(Ve(o),"state",{uid:kp()}),_(Ve(o),"reqs",{}),_(Ve(o),"fileInput",void 0),_(Ve(o),"_isMounted",void 0),_(Ve(o),"onChange",function(s){var l=o.props,c=l.accept,u=l.directory,f=s.target.files,d=le(f).filter(function(m){return!u||J0(m,c)});o.uploadFiles(d),o.reset()}),_(Ve(o),"onClick",function(s){var l=o.fileInput;if(l){var c=s.target,u=o.props.onClick;if(c&&c.tagName==="BUTTON"){var f=l.parentNode;f.focus(),c.blur()}l.click(),u&&u(s)}}),_(Ve(o),"onKeyDown",function(s){s.key==="Enter"&&o.onClick(s)}),_(Ve(o),"onFileDrop",function(){var s=eo(Pt().mark(function l(c){var u,f,d;return Pt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(u=o.props.multiple,c.preventDefault(),c.type!=="dragover"){g.next=4;break}return g.abrupt("return");case 4:if(!o.props.directory){g.next=11;break}return g.next=7,l4(Array.prototype.slice.call(c.dataTransfer.items),function(v){return J0(v,o.props.accept)});case 7:f=g.sent,o.uploadFiles(f),g.next=14;break;case 11:d=le(c.dataTransfer.files).filter(function(v){return J0(v,o.props.accept)}),u===!1&&(d=d.slice(0,1)),o.uploadFiles(d);case 14:case"end":return g.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ve(o),"uploadFiles",function(s){var l=le(s),c=l.map(function(u){return u.uid=kp(),o.processFile(u,l)});Promise.all(c).then(function(u){var f=o.props.onBatchStart;f?.(u.map(function(d){var m=d.origin,g=d.parsedFile;return{file:m,parsedFile:g}})),u.filter(function(d){return d.parsedFile!==null}).forEach(function(d){o.post(d)})})}),_(Ve(o),"processFile",function(){var s=eo(Pt().mark(function l(c,u){var f,d,m,g,v,x,h,p,y;return Pt().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(f=o.props.beforeUpload,d=c,!f){b.next=14;break}return b.prev=3,b.next=6,f(c,u);case 6:d=b.sent,b.next=12;break;case 9:b.prev=9,b.t0=b.catch(3),d=!1;case 12:if(d!==!1){b.next=14;break}return b.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(m=o.props.action,typeof m!="function"){b.next=21;break}return b.next=18,m(c);case 18:g=b.sent,b.next=22;break;case 21:g=m;case 22:if(v=o.props.data,typeof v!="function"){b.next=29;break}return b.next=26,v(c);case 26:x=b.sent,b.next=30;break;case 29:x=v;case 30:return h=(ie(d)==="object"||typeof d=="string")&&d?d:c,h instanceof File?p=h:p=new File([h],c.name,{type:c.type}),y=p,y.uid=c.uid,b.abrupt("return",{origin:c,data:x,parsedFile:y,action:g});case 35:case"end":return b.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),_(Ve(o),"saveFileInput",function(s){o.fileInput=s}),o}return nt(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(n){var i=this,a=n.data,s=n.origin,l=n.action,c=n.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,d=u.customRequest,m=u.name,g=u.headers,v=u.withCredentials,x=u.method,h=s.uid,p=d||bR,y={action:l,filename:m,data:a,file:c,headers:g,withCredentials:v,method:x||"post",onProgress:function(b){var w=i.props.onProgress;w?.(b,c)},onSuccess:function(b,w){var C=i.props.onSuccess;C?.(b,c,w),delete i.reqs[h]},onError:function(b,w){var C=i.props.onError;C?.(b,w,c),delete i.reqs[h]}};f(s),this.reqs[h]=p(y)}}},{key:"reset",value:function(){this.setState({uid:kp()})}},{key:"abort",value:function(n){var i=this.reqs;if(n){var a=n.uid?n.uid:n;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var n=this.props,i=n.component,a=n.prefixCls,s=n.className,l=n.classNames,c=l===void 0?{}:l,u=n.disabled,f=n.id,d=n.name,m=n.style,g=n.styles,v=g===void 0?{}:g,x=n.multiple,h=n.accept,p=n.capture,y=n.children,S=n.directory,b=n.openFileDialogOnClick,w=n.onMouseEnter,C=n.onMouseLeave,R=n.hasControlInside,P=Ne(n,GK),O=(0,c4.default)(_(_(_({},a,!0),"".concat(a,"-disabled"),u),s,s)),I=S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},j=u?{}:{onClick:b?this.onClick:function(){},onKeyDown:b?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:C,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:R?void 0:"0"};return Fp.default.createElement(i,Z({},j,{className:O,role:R?void 0:"button",style:m}),Fp.default.createElement("input",Z({},Ro(P,{aria:!0,data:!0}),{id:f,name:d,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(W){return W.stopPropagation()},key:this.state.uid,style:T({display:"none"},v.input),className:c.input,accept:h},I,{multiple:x,onChange:this.onChange},p!=null?{capture:p}:{})),y)}}]),r}(Fp.Component),u4=qK;function SR(){}var f4=function(e){xr(r,e);var t=br(r);function r(){var o;ot(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=t.call.apply(t,[this].concat(i)),_(Ve(o),"uploader",void 0),_(Ve(o),"saveUploader",function(s){o.uploader=s}),o}return nt(r,[{key:"abort",value:function(n){this.uploader.abort(n)}},{key:"render",value:function(){return ex.default.createElement(u4,Z({},this.props,{ref:this.saveUploader}))}}]),r}(ex.Component);_(f4,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:SR,onError:SR,onSuccess:SR,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var d4=f4;var CR=d4;var KK=e=>{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}}}}}},p4=KK;var XK=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({},wu()),{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({},Ri),{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.colorIcon,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:'""'}}})}}},m4=XK;var YK=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`]:jl(e)},r,o]},h4=YK;var g4=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({},Ri),{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='${Is[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Is.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},v4=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({},wu()),{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 QK=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},y4=QK;var ZK=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"}})}},JK=e=>({actionsColor:e.colorIcon}),x4=Rt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:o,controlHeightLG:n,calc:i}=e,a=Ze(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(o).equal(),uploadPicCardSize:i(n).mul(2.55).equal()});return[ZK(a),p4(a),g4(a),v4(a),m4(a),h4(a),y4(a),i1(a)]},JK);var kt=E(N());var wR=E(Ce());function zp(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 Bp(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 tx(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(o=>o[r]===e[r])[0]}function b4(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 eX=function(){let t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},S4=e=>e.indexOf("image/")===0,C4=e=>{if(e.type&&!e.thumbUrl)return S4(e.type);let t=e.thumbUrl||e.url||"",r=eX(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)},Js=200;function w4(e){return new Promise(t=>{if(!e.type||!S4(e.type)){t("");return}let r=document.createElement("canvas");r.width=Js,r.height=Js,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Js}px; height: ${Js}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=Js,l=Js,c=0,u=0;i>a?(l=a*(Js/i),u=-(l-s)/2):(s=i*(Js/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 el=E(Ce());var tX=$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,P;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,el.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,el.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,el.default)(`${r}-list-item`,`${r}-list-item-${I}`),A=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(Q3,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(J3,null),()=>w(s),r,i.downloadFile):null,F=a!=="picture-card"&&a!=="picture-circle"&&$t.createElement("span",{key:"download-delete",className:(0,el.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),M=(0,el.default)(`${r}-list-item-name`),G=s.url?$t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:M,title:s.name},A,{href:s.url,onClick:X=>b(s,X)}),s.name,V):$t.createElement("span",{key:"view",className:M,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(rf,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(Qe),Q=ee(),ce=$t.createElement("div",{className:D},$,G,F,ne,L&&$t.createElement(Jr,{motionName:`${Q}-fade`,visible:I==="uploading",motionDeadline:2e3},X=>{let{className:oe}=X,Y="percent"in s?$t.createElement(X3,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,el.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)||((P=s.error)===null||P===void 0?void 0:P.message)||i.uploadError,K=I==="error"?$t.createElement(ec,{title:re,getPopupContainer:X=>X.parentNode},ce):ce;return $t.createElement("div",{className:(0,el.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)}),E4=tX;var rX=(e,t)=>{let{listType:r="text",previewFile:o=w4,onPreview:n,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=C4,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=OE(),[P,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(M=>{V.thumbUrl=M||"",R()}))})},[r,f,o]),kt.useEffect(()=>{O(!0)},[]);let j=(V,M)=>{if(n)return M?.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 M=V.status==="uploading";if(r.startsWith("picture")){let G=r==="picture"?kt.createElement(zl,null):s.uploading,q=c?.(V)?kt.createElement(i4,null):kt.createElement(t4,null);return M?G:q}return M?kt.createElement(zl,null):kt.createElement(o4,null)},$=(V,M,G,q,ne)=>{let ee={type:"text",size:"small",title:q,onClick:Q=>{var ce,re;M(),kt.isValidElement(V)&&((re=(ce=V.props).onClick)===null||re===void 0||re.call(ce,Q))},className:`${G}-list-item-action`,disabled:ne?C:!1};return kt.isValidElement(V)?kt.createElement(Jd,Object.assign({},ee,{icon:Vn(V,Object.assign(Object.assign({},V.props),{onClick:()=>{}}))})):kt.createElement(Jd,Object.assign({},ee),kt.createElement("span",null,V))};kt.useImperativeHandle(t,()=>({handlePreview:j,handleDownload:L}));let{getPrefixCls:D}=kt.useContext(Qe),A=D("upload",u),H=D(),k=(0,wR.default)(`${A}-list`,`${A}-list-${r}`),F=kt.useMemo(()=>Mr(dD(H),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[H]),U=Object.assign(Object.assign({},I?{}:F),{motionDeadline:2e3,motionName:`${A}-${I?"animate-inline":"animate"}`,keys:le(f.map(V=>({key:V.uid,file:V}))),motionAppear:P});return kt.createElement("div",{className:k},kt.createElement(kw,Object.assign({},U,{component:!1}),V=>{let{key:M,file:G,className:q,style:ne}=V;return kt.createElement(E4,{key:M,locale:s,prefixCls:A,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(Jr,Object.assign({},U,{visible:b,forceRender:!0}),V=>{let{className:M,style:G}=V;return Vn(S,q=>({className:(0,wR.default)(q.className,M),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:M?"none":void 0}),q.style)}))}))},oX=kt.forwardRef(rX),R4=oX;var nX=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())})},pf=`__LIST_IGNORE_${Date.now()}__`,iX=(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:P=!1,hasControlInside:O=!0,action:I="",accept:j="",supportServerRender:L=!0,rootClassName:W}=e,z=lr.useContext(Zr),$=d??z,[D,A]=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,ER.flushSync)(()=>{A(be)});let Ue={file:ae,fileList:be};ze&&(Ue.event=ze),(!He||ae.status==="removed"||be.some(wt=>wt.uid===ae.uid))&&(0,ER.flushSync)(()=>{c?.(Ue)})},M=(ae,me)=>nX(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[pf],Ue===pf)return Object.defineProperty(ae,pf,{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[pf]);if(!me.length)return;let ze=me.map(He=>zp(He.file)),be=le(D);ze.forEach(He=>{be=Bp(He,be)}),ze.forEach((He,Ue)=>{let wt=He;if(me[Ue].parsedFile)He.status="uploading";else{let{originFileObj:Ot}=He,Ht;try{Ht=new File([Ot],Ot.name,{type:Ot.type})}catch{Ht=new Blob([Ot],{type:Ot.type}),Ht.name=Ot.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(!tx(me,D))return;let be=zp(me);be.status="done",be.percent=100,be.response=ae,be.xhr=ze;let He=Bp(be,D);V(be,He)},ne=(ae,me)=>{if(!tx(me,D))return;let ze=zp(me);ze.status="uploading",ze.percent=ae.percent;let be=Bp(ze,D);V(ze,be,ae)},ee=(ae,me,ze)=>{if(!tx(ze,D))return;let be=zp(ze);be.error=ae,be.response=me,be.status="error";let He=Bp(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=b4(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(Qe),oe=re("upload",h),Y=Object.assign(Object.assign({onBatchStart:G,onError:ee,onProgress:ne,onSuccess:q},e),{data:R,multiple:P,action:I,accept:j,supportServerRender:L,prefixCls:oe,disabled:$,beforeUpload:M,onChange:void 0,hasControlInside:O});delete Y.className,delete Y.style,(!S||$)&&delete Y.id;let J=`${oe}-wrapper`,[se,ue,de]=x4(oe,J),[ye]=wi("Upload",Ci.Upload),{showRemoveIcon:xe,showPreviewIcon:Pe,showDownloadIcon:fe,removeIcon:pe,previewIcon:Me,downloadIcon:je,extra:Xe}=typeof i=="boolean"?{}:i,Le=typeof xe>"u"?!$:xe,Ie=(ae,me)=>i?lr.createElement(R4,{prefixCls:oe,listType:a,items:D,previewFile:f,onPreview:s,onDownload:l,onRemove:Q,showRemoveIcon:Le,showPreviewIcon:Pe,showDownloadIcon:fe,removeIcon:pe,previewIcon:Me,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,rx.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,rx.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(CR,Object.assign({},Y,{ref:F,className:`${oe}-btn`}),lr.createElement("div",{className:`${oe}-drag-container`},S))),Ie()))}let et=(0,rx.default)(oe,`${oe}-select`,{[`${oe}-disabled`]:$,[`${oe}-hidden`]:!S}),We=lr.createElement("div",{className:et},lr.createElement(CR,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()))},aX=lr.forwardRef(iX),ox=aX;var sX=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<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},lX=nx.forwardRef((e,t)=>{var{style:r,height:o,hasControlInside:n=!1}=e,i=sX(e,["style","height","hasControlInside"]);return nx.createElement(ox,Object.assign({ref:t,hasControlInside:n},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))}),_4=lX;var RR=ox;RR.Dragger=_4;RR.LIST_IGNORE=pf;var _R=RR;var O4=E(N(),1);function tl(e){return(0,O4.useMemo)(()=>ru(e),[e])}var T4=E(Nt(),1),P4=({inputMin:e,inputMax:t,inputStep:r,value:o=0,uiWeight:n=1,onValueChange:i})=>{let a=tl(n||12),s=c=>{if(c!==null){let u=+c.toFixed(3);i(u)}},l=+o.toFixed(3);return(0,T4.jsx)(UE,{style:{width:"100%",...a},min:e,max:t,step:r,value:l,onChange:s,controls:!1})};var I4=E(Nt(),1),N4=({onSelectUpdate:e,options:t,value:r,uiWeight:o})=>{let n=a=>{let s=t.indexOf(a);e(a,s)},i=tl(o||12);return(0,I4.jsx)(xp,{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 D4=E(Nt(),1),$4=({value:e,name:t,onValueChange:r,uiWeight:o})=>{let n=a=>{r(a.target.checked)},i=tl(o||12);return(0,D4.jsx)(zE,{checked:!!e,onChange:n,style:{...i},children:t||""})};var OR=E(Nt(),1),{TextArea:cX}=Dp,M4=({value:e="",onValueChange:t,uiWeight:r})=>{let o=tl(r||12);return(0,OR.jsx)("div",{className:"widget-container",style:o,children:(0,OR.jsx)(cX,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var jp=E(N(),1);var ix=E(Nt(),1);function A4({title:e,onTitleChange:t}){let[r,o]=(0,jp.useState)(!1),[n,i]=(0,jp.useState)(e);(0,jp.useEffect)(()=>{i(e)},[e]);let a=()=>{o(!0)};return r?(0,ix.jsx)(Dp,{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,ix.jsx)(ec,{title:ge("click to edit"),children:(0,ix.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:n})})}var L4=E(N()),uX=(0,L4.createContext)({}),ax=uX;var fc=E(N()),N5=E(Ce());var k4={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 ao=Math.round;function PR(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 F4=(e,t,r)=>r===0?e:e/100;function Wp(e,t){let r=t||255;return e>r?r:e<0?0:e}var cc=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=k4[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=Wp(t.r),this.g=Wp(t.g),this.b=Wp(t.b),this.a=typeof t.a=="number"?Wp(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=ao(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"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:ao(i("r")),g:ao(i("g")),b:ao(i("b")),a:ao(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=>ao((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=ao(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=ao(this.getSaturation()*100),o=ao(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]=Wp(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=ao(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=ao((i+f)*255),this.g=ao((a+f)*255),this.b=ao((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=ao(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=ao(o*(1-r)*255),u=ao(o*(1-r*l)*255),f=ao(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=PR(t,F4);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=PR(t,F4);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=PR(t,(o,n)=>n.includes("%")?ao(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var sx=2,z4=.16,fX=.05,dX=.05,pX=.15,V4=5,H4=4,mX=[{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 B4(e,t,r){let o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-sx*t:Math.round(e.h)+sx*t:o=r?Math.round(e.h)+sx*t:Math.round(e.h)-sx*t,o<0?o+=360:o>=360&&(o-=360),o}function j4(e,t,r){if(e.h===0&&e.s===0)return e.s;let o;return r?o=e.s-z4*t:t===H4?o=e.s+z4:o=e.s+fX*t,o>1&&(o=1),r&&t===V4&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function W4(e,t,r){let o;return r?o=e.v+dX*t:o=e.v-pX*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function lx(e,t={}){let r=[],o=new cc(e),n=o.toHsv();for(let i=V4;i>0;i-=1){let a=new cc({h:B4(n,i,!0),s:j4(n,i,!0),v:W4(n,i,!0)});r.push(a)}r.push(o);for(let i=1;i<=H4;i+=1){let a=new cc({h:B4(n,i),s:j4(n,i),v:W4(n,i)});r.push(a)}return t.theme==="dark"?mX.map(({index:i,amount:a})=>new cc(t.backgroundColor||"#141414").mix(r[i],a).toHexString()):r.map(i=>i.toHexString())}var U4=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];U4.primary=U4[5];var G4=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];G4.primary=G4[5];var q4=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];q4.primary=q4[5];var K4=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];K4.primary=K4[5];var X4=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];X4.primary=X4[5];var Y4=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Y4.primary=Y4[5];var Q4=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Q4.primary=Q4[5];var Z4=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Z4.primary=Z4[5];var cx=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];cx.primary=cx[5];var J4=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];J4.primary=J4[5];var e5=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];e5.primary=e5[5];var t5=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];t5.primary=t5[5];var r5=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];r5.primary=r5[5];var o5=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];o5.primary=o5[5];var n5=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];n5.primary=n5[5];var i5=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];i5.primary=i5[5];var a5=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];a5.primary=a5[5];var s5=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];s5.primary=s5[5];var l5=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];l5.primary=l5[5];var c5=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];c5.primary=c5[5];var u5=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];u5.primary=u5[5];var f5=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];f5.primary=f5[5];var d5=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];d5.primary=d5[5];var p5=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];p5.primary=p5[5];var m5=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];m5.primary=m5[5];var h5=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];h5.primary=h5[5];var P5=E(N());function TR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function NR(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 g5="data-rc-order",v5="data-rc-priority",hX="rc-util-key",IR=new Map;function y5({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:hX}function $R(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function gX(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function DR(e){return Array.from((IR.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function x5(e,t={}){if(!TR())return null;let{csp:r,prepend:o,priority:n=0}=t,i=gX(o),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(g5,i),a&&n&&s.setAttribute(v5,`${n}`),r?.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;let l=$R(t),{firstChild:c}=l;if(o){if(a){let u=(t.styles||DR(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(g5)))return!1;let d=Number(f.getAttribute(v5)||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 vX(e,t={}){let{styles:r}=t;return r||=DR($R(t)),r.find(o=>o.getAttribute(y5(t))===e)}function yX(e,t){let r=IR.get(e);if(!r||!NR(document,r)){let o=x5("",t),{parentNode:n}=o;IR.set(e,n),e.removeChild(o)}}function b5(e,t,r={}){let o=$R(r),n=DR(o),i={...r,styles:n};yX(o,i);let a=vX(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=x5(e,i);return s.setAttribute(y5(i),t),s}function S5(e){return e?.getRootNode?.()}function xX(e){return S5(e)instanceof ShadowRoot}function C5(e){return xX(e)?S5(e):null}var MR={},bX=[],SX=e=>{bX.push(e)};function CX(e,t){}function wX(e,t){}function EX(){MR={}}function w5(e,t,r){!t&&!MR[r]&&(e(!1,r),MR[r]=!0)}function ux(e,t){w5(CX,e,t)}function RX(e,t){w5(wX,e,t)}ux.preMessage=SX;ux.resetWarned=EX;ux.noteOnce=RX;var E5=ux;var uc=E(N());function _X(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}function _5(e,t){E5(e,`[@ant-design/icons] ${t}`)}function AR(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function R5(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[_X(r)]=o}return t},{})}function fx(e,t,r){return r?uc.default.createElement(e.tag,{key:t,...R5(e.attrs),...r},(e.children||[]).map((o,n)=>fx(o,`${t}-${e.tag}-${n}`))):uc.default.createElement(e.tag,{key:t,...R5(e.attrs)},(e.children||[]).map((o,n)=>fx(o,`${t}-${e.tag}-${n}`)))}function LR(e){return lx(e)[0]}function dx(e){return e?Array.isArray(e)?e:[e]:[]}var OX=`
|
|
.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);
|
|
}
|
|
}
|
|
`,O5=e=>{let{csp:t,prefixCls:r,layer:o}=(0,uc.useContext)(ax),n=OX;r&&(n=n.replace(/anticon/g,r)),o&&(n=`@layer ${o} {
|
|
${n}
|
|
}`),(0,uc.useEffect)(()=>{let i=e.current,a=C5(i);b5(n,"@ant-design-icons",{prepend:!o,csp:t,attachTo:a})},[])};var Vp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function PX({primaryColor:e,secondaryColor:t}){Vp.primaryColor=e,Vp.secondaryColor=t||LR(e),Vp.calculated=!!t}function TX(){return{...Vp}}var px=e=>{let{icon:t,className:r,onClick:o,style:n,primaryColor:i,secondaryColor:a,...s}=e,l=P5.useRef(),c=Vp;if(i&&(c={primaryColor:i,secondaryColor:a||LR(i)}),O5(l),_5(AR(t),`icon should be icon definiton, but got ${t}`),!AR(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),fx(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})};px.displayName="IconReact";px.getTwoToneColors=TX;px.setTwoToneColors=PX;var Hp=px;function kR(e){let[t,r]=dx(e);return Hp.setTwoToneColors({primaryColor:t,secondaryColor:r})}function T5(){let e=Hp.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function FR(){return FR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},FR.apply(this,arguments)}kR(cx.primary);var mx=fc.forwardRef((e,t)=>{let{className:r,icon:o,spin:n,rotate:i,tabIndex:a,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:f}=fc.useContext(ax),d=(0,N5.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]=dx(l);return fc.createElement("span",FR({role:"img","aria-label":o.name},c,{ref:t,tabIndex:m,onClick:s,className:d}),fc.createElement(Hp,{icon:o,primaryColor:v,secondaryColor:x,style:g}))});mx.displayName="AntdIcon";mx.getTwoToneColor=T5;mx.setTwoToneColor=kR;var hx=mx;var gx=E(N());function zR(){return zR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},zR.apply(this,arguments)}var NX=(e,t)=>gx.createElement(hx,zR({},e,{ref:t,icon:kv})),IX=gx.forwardRef(NX),BR=IX;var vx=E(N());function jR(){return jR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},jR.apply(this,arguments)}var $X=(e,t)=>vx.createElement(hx,jR({},e,{ref:t,icon:a4})),DX=vx.forwardRef($X),WR=DX;var Ha=E(Nt(),1),I5=({value:e,onValueChange:t,options:r})=>{let o=n=>{if(n.file.status==="done"){let i=n.file.response.name;t?.(i)}};return(0,Ha.jsxs)(P0,{gap:5,align:"stretch",vertical:!0,children:[(0,Ha.jsxs)(P0,{gap:5,children:[(0,Ha.jsx)(xp,{style:{flex:1},value:e,onChange:n=>{t?.(n)},options:r.map(n=>({label:n.split("/").pop(),value:n}))}),(0,Ha.jsx)(_R,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:n=>({image:n}),children:(0,Ha.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Ha.jsx)(WR,{})," ",ge("upload")]})})]}),e&&(0,Ha.jsx)(aR,{src:`./api/view?filename=${e}&type=input&subfolder=&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain"}})]})};var la=E(Nt(),1),$5=window.comfyAPI.api.api,mf=class extends D5.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},formDatas:[]};eventListeners=[];constructor(t){super(t);let r=(a,s)=>{$5.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:In(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:In(app.graph)}))};requestAnimationFrame(n);let i=In(app.graph);this.state.formDatas=i}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{$5.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&&xm(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,la.jsx)(P4,{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,la.jsx)(N4,{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,la.jsx)($4,{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,la.jsx)(M4,{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,la.jsx)("p",{children:ge("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return o.result.push((0,la.jsx)(I5,{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,la.jsx)(A4,{title:o,onTitleChange:i=>{$n.instance.setNodeTitle({node_id:n.id,title:i})}})},r=12;return(0,la.jsx)($a,{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,la.jsx)(xC,{...t})})}};var Po=E(Nt(),1),M5=document.createElement("style");M5.innerHTML=ON;document.head.appendChild(M5);function VR({onClose:e}){let[t,r]=(0,Up.useState)("1"),[o,n]=(0,Up.useState)(0);return(0,Up.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,Po.jsx)($a,{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,Po.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,Po.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Po.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,Po.jsx)("button",{onClick:()=>r("1"),className:t==="1"?"active":"",children:ge("Simplify Workflow")}),(0,Po.jsx)("button",{onClick:()=>r("2"),className:t==="2"?"active":"",children:ge("Photoshop")})]}),(0,Po.jsx)("span",{children:"Powered by SDPPP"}),(0,Po.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,Po.jsx)(BR,{})})]}),(0,Po.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Po.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:t==="1"?"block":"none"},children:(0,Po.jsx)(mf,{})}),(0,Po.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:t==="2"?"block":"none"},children:(0,Po.jsx)($N,{})})]})]})})}var hf=E(Nt(),1);function HR({onMaximize:e}){return(0,hf.jsxs)("div",{className:"sdppp-side-container",children:[(0,hf.jsx)("div",{className:"sdppp-side-header",children:(0,hf.jsx)("button",{className:"pi pi-window-maximize",onClick:e})}),(0,hf.jsx)(mf,{})]})}var A5=null,MX=null;async function qR(e){if(!A5){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=>{MX||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,UR.createRoot)(r).render((0,GR.createElement)(HR,{onMaximize:()=>{A5||(0,UR.createRoot)(t).render((0,GR.createElement)(VR,{onClose:()=>{t.style.display="none"}})),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}))),t.style.display="none"}})}}async function AX(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(""),cl.get(c.detail.prompt_id)&&cl.delete(c.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{ht.setProgress(0),ht.setExecutingNodeTitle("")}),t.addEventListener("graphChanged",()=>{ht.setCurrentForm(In(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(cl.get(c.detail.prompt_id)?u=cl.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=In(e.graph);ht.setCurrentForm(f);let d=JSON.stringify(f);setTimeout(()=>{let m=In(e.graph);JSON.stringify(m)!==d&&ht.setCurrentForm(m)},800)}requestAnimationFrame(a),qR(e);var s=new $n;s.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){ht.setCurrentForm(In(e.graph))},async beforeRegisterNodeDef(c,u,f){try{q_(c,u)}catch(d){Gp.push(d.stack||d.message||d)}}})}var Gp=[];(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 o_(),await AX(e,r,t),import("./sdppp-custom.js").then(o=>{o.default(ca)})}catch(e){Gp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Gp.length&&(console.error(Gp[0]),alert(`sd-ppp init failed:
|
|
`+Gp.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 *)
|
|
*/
|