587 lines
807 KiB
JavaScript
587 lines
807 KiB
JavaScript
var J4=Object.create;var sm=Object.defineProperty;var VR=Object.getOwnPropertyDescriptor;var ez=Object.getOwnPropertyNames;var tz=Object.getPrototypeOf,rz=Object.prototype.hasOwnProperty;var yx=(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 zn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xx=(e,t)=>{for(var r in t)sm(e,r,{get:t[r],enumerable:!0})},oz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ez(t))!rz.call(e,n)&&n!==r&&sm(e,n,{get:()=>t[n],enumerable:!(o=VR(t,n))||o.enumerable});return e};var E=(e,t,r)=>(r=e!=null?J4(tz(e)):{},oz(t||!e||!e.__esModule?sm(r,"default",{value:e,enumerable:!0}):r,e));var Or=(e,t,r,o)=>{for(var n=o>1?void 0:o?VR(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&&sm(t,r,n),n};var YO=zn(wt=>{"use strict";var Uf=Symbol.for("react.element"),Bz=Symbol.for("react.portal"),jz=Symbol.for("react.fragment"),Vz=Symbol.for("react.strict_mode"),Hz=Symbol.for("react.profiler"),Uz=Symbol.for("react.provider"),Gz=Symbol.for("react.context"),qz=Symbol.for("react.forward_ref"),Kz=Symbol.for("react.suspense"),Xz=Symbol.for("react.memo"),Yz=Symbol.for("react.lazy"),zO=Symbol.iterator;function Qz(e){return e===null||typeof e!="object"?null:(e=zO&&e[zO]||e["@@iterator"],typeof e=="function"?e:null)}var jO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VO=Object.assign,HO={};function Mc(e,t,r){this.props=e,this.context=t,this.refs=HO,this.updater=r||jO}Mc.prototype.isReactComponent={};Mc.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")};Mc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function UO(){}UO.prototype=Mc.prototype;function Qx(e,t,r){this.props=e,this.context=t,this.refs=HO,this.updater=r||jO}var Zx=Qx.prototype=new UO;Zx.constructor=Qx;VO(Zx,Mc.prototype);Zx.isPureReactComponent=!0;var WO=Array.isArray,GO=Object.prototype.hasOwnProperty,Jx={current:null},qO={key:!0,ref:!0,__self:!0,__source:!0};function KO(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)GO.call(t,o)&&!qO.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:Uf,type:e,key:i,ref:a,props:n,_owner:Jx.current}}function Zz(e,t){return{$$typeof:Uf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function eb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uf}function Jz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var BO=/\/+/g;function Yx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Jz(""+e.key):t.toString(36)}function Um(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 Uf:case Bz:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+Yx(a,0):o,WO(n)?(r="",e!=null&&(r=e.replace(BO,"$&/")+"/"),Um(n,t,r,"",function(c){return c})):n!=null&&(eb(n)&&(n=Zz(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(BO,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",WO(e))for(var s=0;s<e.length;s++){i=e[s];var l=o+Yx(i,s);a+=Um(i,t,r,l,n)}else if(l=Qz(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=o+Yx(i,s++),a+=Um(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 Hm(e,t,r){if(e==null)return e;var o=[],n=0;return Um(e,o,"","",function(i){return t.call(r,i,n++)}),o}function eW(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 Uo={current:null},Gm={transition:null},tW={ReactCurrentDispatcher:Uo,ReactCurrentBatchConfig:Gm,ReactCurrentOwner:Jx};function XO(){throw Error("act(...) is not supported in production builds of React.")}wt.Children={map:Hm,forEach:function(e,t,r){Hm(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Hm(e,function(){t++}),t},toArray:function(e){return Hm(e,function(t){return t})||[]},only:function(e){if(!eb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};wt.Component=Mc;wt.Fragment=jz;wt.Profiler=Hz;wt.PureComponent=Qx;wt.StrictMode=Vz;wt.Suspense=Kz;wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tW;wt.act=XO;wt.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=VO({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Jx.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)GO.call(t,l)&&!qO.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:Uf,type:e.type,key:n,ref:i,props:o,_owner:a}};wt.createContext=function(e){return e={$$typeof:Gz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Uz,_context:e},e.Consumer=e};wt.createElement=KO;wt.createFactory=function(e){var t=KO.bind(null,e);return t.type=e,t};wt.createRef=function(){return{current:null}};wt.forwardRef=function(e){return{$$typeof:qz,render:e}};wt.isValidElement=eb;wt.lazy=function(e){return{$$typeof:Yz,_payload:{_status:-1,_result:e},_init:eW}};wt.memo=function(e,t){return{$$typeof:Xz,type:e,compare:t===void 0?null:t}};wt.startTransition=function(e){var t=Gm.transition;Gm.transition={};try{e()}finally{Gm.transition=t}};wt.unstable_act=XO;wt.useCallback=function(e,t){return Uo.current.useCallback(e,t)};wt.useContext=function(e){return Uo.current.useContext(e)};wt.useDebugValue=function(){};wt.useDeferredValue=function(e){return Uo.current.useDeferredValue(e)};wt.useEffect=function(e,t){return Uo.current.useEffect(e,t)};wt.useId=function(){return Uo.current.useId()};wt.useImperativeHandle=function(e,t,r){return Uo.current.useImperativeHandle(e,t,r)};wt.useInsertionEffect=function(e,t){return Uo.current.useInsertionEffect(e,t)};wt.useLayoutEffect=function(e,t){return Uo.current.useLayoutEffect(e,t)};wt.useMemo=function(e,t){return Uo.current.useMemo(e,t)};wt.useReducer=function(e,t,r){return Uo.current.useReducer(e,t,r)};wt.useRef=function(e){return Uo.current.useRef(e)};wt.useState=function(e){return Uo.current.useState(e)};wt.useSyncExternalStore=function(e,t,r){return Uo.current.useSyncExternalStore(e,t,r)};wt.useTransition=function(){return Uo.current.useTransition()};wt.version="18.3.1"});var I=zn((SJ,QO)=>{"use strict";QO.exports=YO()});var s_=zn(Jt=>{"use strict";function nb(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<qm(n,t))e[o]=t,e[r]=n,r=o;else break e}}function di(e){return e.length===0?null:e[0]}function Xm(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>qm(s,r))l<n&&0>qm(c,s)?(e[o]=c,e[l]=r,o=l):(e[o]=s,e[a]=r,o=a);else if(l<n&&0>qm(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function qm(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ZO=performance,Jt.unstable_now=function(){return ZO.now()}):(tb=Date,JO=tb.now(),Jt.unstable_now=function(){return tb.now()-JO});var ZO,tb,JO,ji=[],ls=[],rW=1,Bn=null,_o=3,Ym=!1,xl=!1,qf=!1,r_=typeof setTimeout=="function"?setTimeout:null,o_=typeof clearTimeout=="function"?clearTimeout:null,e_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ib(e){for(var t=di(ls);t!==null;){if(t.callback===null)Xm(ls);else if(t.startTime<=e)Xm(ls),t.sortIndex=t.expirationTime,nb(ji,t);else break;t=di(ls)}}function ab(e){if(qf=!1,ib(e),!xl)if(di(ji)!==null)xl=!0,lb(sb);else{var t=di(ls);t!==null&&cb(ab,t.startTime-e)}}function sb(e,t){xl=!1,qf&&(qf=!1,o_(Kf),Kf=-1),Ym=!0;var r=_o;try{for(ib(t),Bn=di(ji);Bn!==null&&(!(Bn.expirationTime>t)||e&&!a_());){var o=Bn.callback;if(typeof o=="function"){Bn.callback=null,_o=Bn.priorityLevel;var n=o(Bn.expirationTime<=t);t=Jt.unstable_now(),typeof n=="function"?Bn.callback=n:Bn===di(ji)&&Xm(ji),ib(t)}else Xm(ji);Bn=di(ji)}if(Bn!==null)var i=!0;else{var a=di(ls);a!==null&&cb(ab,a.startTime-t),i=!1}return i}finally{Bn=null,_o=r,Ym=!1}}var Qm=!1,Km=null,Kf=-1,n_=5,i_=-1;function a_(){return!(Jt.unstable_now()-i_<n_)}function rb(){if(Km!==null){var e=Jt.unstable_now();i_=e;var t=!0;try{t=Km(!0,e)}finally{t?Gf():(Qm=!1,Km=null)}}else Qm=!1}var Gf;typeof e_=="function"?Gf=function(){e_(rb)}:typeof MessageChannel<"u"?(ob=new MessageChannel,t_=ob.port2,ob.port1.onmessage=rb,Gf=function(){t_.postMessage(null)}):Gf=function(){r_(rb,0)};var ob,t_;function lb(e){Km=e,Qm||(Qm=!0,Gf())}function cb(e,t){Kf=r_(function(){e(Jt.unstable_now())},t)}Jt.unstable_IdlePriority=5;Jt.unstable_ImmediatePriority=1;Jt.unstable_LowPriority=4;Jt.unstable_NormalPriority=3;Jt.unstable_Profiling=null;Jt.unstable_UserBlockingPriority=2;Jt.unstable_cancelCallback=function(e){e.callback=null};Jt.unstable_continueExecution=function(){xl||Ym||(xl=!0,lb(sb))};Jt.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"):n_=0<e?Math.floor(1e3/e):5};Jt.unstable_getCurrentPriorityLevel=function(){return _o};Jt.unstable_getFirstCallbackNode=function(){return di(ji)};Jt.unstable_next=function(e){switch(_o){case 1:case 2:case 3:var t=3;break;default:t=_o}var r=_o;_o=t;try{return e()}finally{_o=r}};Jt.unstable_pauseExecution=function(){};Jt.unstable_requestPaint=function(){};Jt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=_o;_o=e;try{return t()}finally{_o=r}};Jt.unstable_scheduleCallback=function(e,t,r){var o=Jt.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:rW++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,nb(ls,e),di(ji)===null&&e===di(ls)&&(qf?(o_(Kf),Kf=-1):qf=!0,cb(ab,r-o))):(e.sortIndex=n,nb(ji,e),xl||Ym||(xl=!0,lb(sb))),e};Jt.unstable_shouldYield=a_;Jt.unstable_wrapCallback=function(e){var t=_o;return function(){var r=_o;_o=t;try{return e.apply(this,arguments)}finally{_o=r}}}});var c_=zn((wJ,l_)=>{"use strict";l_.exports=s_()});var pN=zn(On=>{"use strict";var oW=I(),En=c_();function ge(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 hP=new Set,hd={};function $l(e,t){ru(e,t),ru(e+"Capture",t)}function ru(e,t){for(hd[e]=t,e=0;e<t.length;e++)hP.add(t[e])}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$b=Object.prototype.hasOwnProperty,nW=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u_={},f_={};function iW(e){return $b.call(f_,e)?!0:$b.call(u_,e)?!1:nW.test(e)?f_[e]=!0:(u_[e]=!0,!1)}function aW(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 sW(e,t,r,o){if(t===null||typeof t>"u"||aW(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 Ko(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 vo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vo[e]=new Ko(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vo[t]=new Ko(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vo[e]=new Ko(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vo[e]=new Ko(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){vo[e]=new Ko(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vo[e]=new Ko(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vo[e]=new Ko(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vo[e]=new Ko(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vo[e]=new Ko(e,5,!1,e.toLowerCase(),null,!1,!1)});var ES=/[\-:]([a-z])/g;function RS(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(ES,RS);vo[t]=new Ko(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(ES,RS);vo[t]=new Ko(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(ES,RS);vo[t]=new Ko(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vo[e]=new Ko(e,1,!1,e.toLowerCase(),null,!1,!1)});vo.xlinkHref=new Ko("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vo[e]=new Ko(e,1,!1,e.toLowerCase(),null,!0,!0)});function OS(e,t,r,o){var n=vo.hasOwnProperty(t)?vo[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sW(t,r,n,o)&&(r=null),o||n===null?iW(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 Pa=oW.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zm=Symbol.for("react.element"),Fc=Symbol.for("react.portal"),zc=Symbol.for("react.fragment"),_S=Symbol.for("react.strict_mode"),Db=Symbol.for("react.profiler"),vP=Symbol.for("react.provider"),yP=Symbol.for("react.context"),PS=Symbol.for("react.forward_ref"),Ab=Symbol.for("react.suspense"),Mb=Symbol.for("react.suspense_list"),TS=Symbol.for("react.memo"),us=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var xP=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var d_=Symbol.iterator;function Xf(e){return e===null||typeof e!="object"?null:(e=d_&&e[d_]||e["@@iterator"],typeof e=="function"?e:null)}var Sr=Object.assign,ub;function od(e){if(ub===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ub=t&&t[1]||""}return`
|
|
`+ub+e}var fb=!1;function db(e,t){if(!e||fb)return"";fb=!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{fb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?od(e):""}function lW(e){switch(e.tag){case 5:return od(e.type);case 16:return od("Lazy");case 13:return od("Suspense");case 19:return od("SuspenseList");case 0:case 2:case 15:return e=db(e.type,!1),e;case 11:return e=db(e.type.render,!1),e;case 1:return e=db(e.type,!0),e;default:return""}}function Lb(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 zc:return"Fragment";case Fc:return"Portal";case Db:return"Profiler";case _S:return"StrictMode";case Ab:return"Suspense";case Mb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yP:return(e.displayName||"Context")+".Consumer";case vP:return(e._context.displayName||"Context")+".Provider";case PS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case TS:return t=e.displayName||null,t!==null?t:Lb(e.type)||"Memo";case us:t=e._payload,e=e._init;try{return Lb(e(t))}catch{}}return null}function cW(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 Lb(t);case 8:return t===_S?"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 Es(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uW(e){var t=bP(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=uW(e))}function SP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=bP(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function _g(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 kb(e,t){var r=t.checked;return Sr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function p_(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=Es(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 CP(e,t){t=t.checked,t!=null&&OS(e,"checked",t,!1)}function Fb(e,t){CP(e,t);var r=Es(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")?zb(e,t.type,r):t.hasOwnProperty("defaultValue")&&zb(e,t.type,Es(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function m_(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 zb(e,t,r){(t!=="number"||_g(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var nd=Array.isArray;function Yc(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=""+Es(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 Wb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ge(91));return Sr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function g_(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ge(92));if(nd(r)){if(1<r.length)throw Error(ge(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Es(r)}}function wP(e,t){var r=Es(t.value),o=Es(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 h_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function EP(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 Bb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?EP(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var eg,RP=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(eg=eg||document.createElement("div"),eg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var sd={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},fW=["Webkit","ms","Moz","O"];Object.keys(sd).forEach(function(e){fW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sd[t]=sd[e]})});function OP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||sd.hasOwnProperty(e)&&sd[e]?(""+t).trim():t+"px"}function _P(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=OP(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var dW=Sr({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 jb(e,t){if(t){if(dW[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ge(62))}}function Vb(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 Hb=null;function NS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ub=null,Qc=null,Zc=null;function v_(e){if(e=Md(e)){if(typeof Ub!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=th(t),Ub(e.stateNode,e.type,t))}}function PP(e){Qc?Zc?Zc.push(e):Zc=[e]:Qc=e}function TP(){if(Qc){var e=Qc,t=Zc;if(Zc=Qc=null,v_(e),t)for(e=0;e<t.length;e++)v_(t[e])}}function NP(e,t){return e(t)}function IP(){}var pb=!1;function $P(e,t,r){if(pb)return e(t,r);pb=!0;try{return NP(e,t,r)}finally{pb=!1,(Qc!==null||Zc!==null)&&(IP(),TP())}}function yd(e,t){var r=e.stateNode;if(r===null)return null;var o=th(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(ge(231,t,typeof r));return r}var Gb=!1;if(Ea)try{Lc={},Object.defineProperty(Lc,"passive",{get:function(){Gb=!0}}),window.addEventListener("test",Lc,Lc),window.removeEventListener("test",Lc,Lc)}catch{Gb=!1}var Lc;function pW(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 ld=!1,Pg=null,Tg=!1,qb=null,mW={onError:function(e){ld=!0,Pg=e}};function gW(e,t,r,o,n,i,a,s,l){ld=!1,Pg=null,pW.apply(mW,arguments)}function hW(e,t,r,o,n,i,a,s,l){if(gW.apply(this,arguments),ld){if(ld){var c=Pg;ld=!1,Pg=null}else throw Error(ge(198));Tg||(Tg=!0,qb=c)}}function Dl(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function DP(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 y_(e){if(Dl(e)!==e)throw Error(ge(188))}function vW(e){var t=e.alternate;if(!t){if(t=Dl(e),t===null)throw Error(ge(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 y_(n),e;if(i===o)return y_(n),t;i=i.sibling}throw Error(ge(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(ge(189))}}if(r.alternate!==o)throw Error(ge(190))}if(r.tag!==3)throw Error(ge(188));return r.stateNode.current===r?e:t}function AP(e){return e=vW(e),e!==null?MP(e):null}function MP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=MP(e);if(t!==null)return t;e=e.sibling}return null}var LP=En.unstable_scheduleCallback,x_=En.unstable_cancelCallback,yW=En.unstable_shouldYield,xW=En.unstable_requestPaint,kr=En.unstable_now,bW=En.unstable_getCurrentPriorityLevel,IS=En.unstable_ImmediatePriority,kP=En.unstable_UserBlockingPriority,Ng=En.unstable_NormalPriority,SW=En.unstable_LowPriority,FP=En.unstable_IdlePriority,Qg=null,Gi=null;function CW(e){if(Gi&&typeof Gi.onCommitFiberRoot=="function")try{Gi.onCommitFiberRoot(Qg,e,void 0,(e.current.flags&128)===128)}catch{}}var vi=Math.clz32?Math.clz32:RW,wW=Math.log,EW=Math.LN2;function RW(e){return e>>>=0,e===0?32:31-(wW(e)/EW|0)|0}var tg=64,rg=4194304;function id(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 Ig(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=id(s):(i&=a,i!==0&&(o=id(i)))}else a=r&~n,a!==0?o=id(a):i!==0&&(o=id(i));if(o===0)return 0;if(t!==0&&t!==o&&(t&n)===0&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-vi(t),n=1<<r,o|=e[r],t&=~n;return o}function OW(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 _W(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-vi(i),s=1<<a,l=n[a];l===-1?((s&r)===0||(s&o)!==0)&&(n[a]=OW(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function Kb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zP(){var e=tg;return tg<<=1,(tg&4194240)===0&&(tg=64),e}function mb(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Dd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vi(t),e[t]=r}function PW(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-vi(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function $S(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-vi(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var jt=0;function WP(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var BP,DS,jP,VP,HP,Xb=!1,og=[],hs=null,vs=null,ys=null,xd=new Map,bd=new Map,ds=[],TW="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 b_(e,t){switch(e){case"focusin":case"focusout":hs=null;break;case"dragenter":case"dragleave":vs=null;break;case"mouseover":case"mouseout":ys=null;break;case"pointerover":case"pointerout":xd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bd.delete(t.pointerId)}}function Yf(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=Md(t),t!==null&&DS(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function NW(e,t,r,o,n){switch(t){case"focusin":return hs=Yf(hs,e,t,r,o,n),!0;case"dragenter":return vs=Yf(vs,e,t,r,o,n),!0;case"mouseover":return ys=Yf(ys,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return xd.set(i,Yf(xd.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,bd.set(i,Yf(bd.get(i)||null,e,t,r,o,n)),!0}return!1}function UP(e){var t=Cl(e.target);if(t!==null){var r=Dl(t);if(r!==null){if(t=r.tag,t===13){if(t=DP(r),t!==null){e.blockedOn=t,HP(e.priority,function(){jP(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 vg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Yb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Hb=o,r.target.dispatchEvent(o),Hb=null}else return t=Md(r),t!==null&&DS(t),e.blockedOn=r,!1;t.shift()}return!0}function S_(e,t,r){vg(e)&&r.delete(t)}function IW(){Xb=!1,hs!==null&&vg(hs)&&(hs=null),vs!==null&&vg(vs)&&(vs=null),ys!==null&&vg(ys)&&(ys=null),xd.forEach(S_),bd.forEach(S_)}function Qf(e,t){e.blockedOn===t&&(e.blockedOn=null,Xb||(Xb=!0,En.unstable_scheduleCallback(En.unstable_NormalPriority,IW)))}function Sd(e){function t(n){return Qf(n,e)}if(0<og.length){Qf(og[0],e);for(var r=1;r<og.length;r++){var o=og[r];o.blockedOn===e&&(o.blockedOn=null)}}for(hs!==null&&Qf(hs,e),vs!==null&&Qf(vs,e),ys!==null&&Qf(ys,e),xd.forEach(t),bd.forEach(t),r=0;r<ds.length;r++)o=ds[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<ds.length&&(r=ds[0],r.blockedOn===null);)UP(r),r.blockedOn===null&&ds.shift()}var Jc=Pa.ReactCurrentBatchConfig,$g=!0;function $W(e,t,r,o){var n=jt,i=Jc.transition;Jc.transition=null;try{jt=1,AS(e,t,r,o)}finally{jt=n,Jc.transition=i}}function DW(e,t,r,o){var n=jt,i=Jc.transition;Jc.transition=null;try{jt=4,AS(e,t,r,o)}finally{jt=n,Jc.transition=i}}function AS(e,t,r,o){if($g){var n=Yb(e,t,r,o);if(n===null)Sb(e,t,o,Dg,r),b_(e,o);else if(NW(n,e,t,r,o))o.stopPropagation();else if(b_(e,o),t&4&&-1<TW.indexOf(e)){for(;n!==null;){var i=Md(n);if(i!==null&&BP(i),i=Yb(e,t,r,o),i===null&&Sb(e,t,o,Dg,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else Sb(e,t,o,null,r)}}var Dg=null;function Yb(e,t,r,o){if(Dg=null,e=NS(o),e=Cl(e),e!==null)if(t=Dl(e),t===null)e=null;else if(r=t.tag,r===13){if(e=DP(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 Dg=e,null}function GP(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(bW()){case IS:return 1;case kP:return 4;case Ng:case SW:return 16;case FP:return 536870912;default:return 16}default:return 16}}var ms=null,MS=null,yg=null;function qP(){if(yg)return yg;var e,t=MS,r=t.length,o,n="value"in ms?ms.value:ms.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 yg=n.slice(e,1<o?1-o:void 0)}function xg(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 ng(){return!0}function C_(){return!1}function Rn(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)?ng:C_,this.isPropagationStopped=C_,this}return Sr(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=ng)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ng)},persist:function(){},isPersistent:ng}),t}var cu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},LS=Rn(cu),Ad=Sr({},cu,{view:0,detail:0}),AW=Rn(Ad),gb,hb,Zf,Zg=Sr({},Ad,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kS,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"?(gb=e.screenX-Zf.screenX,hb=e.screenY-Zf.screenY):hb=gb=0,Zf=e),gb)},movementY:function(e){return"movementY"in e?e.movementY:hb}}),w_=Rn(Zg),MW=Sr({},Zg,{dataTransfer:0}),LW=Rn(MW),kW=Sr({},Ad,{relatedTarget:0}),vb=Rn(kW),FW=Sr({},cu,{animationName:0,elapsedTime:0,pseudoElement:0}),zW=Rn(FW),WW=Sr({},cu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),BW=Rn(WW),jW=Sr({},cu,{data:0}),E_=Rn(jW),VW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HW={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"},UW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=UW[e])?!!t[e]:!1}function kS(){return GW}var qW=Sr({},Ad,{key:function(e){if(e.key){var t=VW[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kS,charCode:function(e){return e.type==="keypress"?xg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),KW=Rn(qW),XW=Sr({},Zg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),R_=Rn(XW),YW=Sr({},Ad,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kS}),QW=Rn(YW),ZW=Sr({},cu,{propertyName:0,elapsedTime:0,pseudoElement:0}),JW=Rn(ZW),e6=Sr({},Zg,{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}),t6=Rn(e6),r6=[9,13,27,32],FS=Ea&&"CompositionEvent"in window,cd=null;Ea&&"documentMode"in document&&(cd=document.documentMode);var o6=Ea&&"TextEvent"in window&&!cd,KP=Ea&&(!FS||cd&&8<cd&&11>=cd),O_=" ",__=!1;function XP(e,t){switch(e){case"keyup":return r6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function YP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wc=!1;function n6(e,t){switch(e){case"compositionend":return YP(t);case"keypress":return t.which!==32?null:(__=!0,O_);case"textInput":return e=t.data,e===O_&&__?null:e;default:return null}}function i6(e,t){if(Wc)return e==="compositionend"||!FS&&XP(e,t)?(e=qP(),yg=MS=ms=null,Wc=!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 KP&&t.locale!=="ko"?null:t.data;default:return null}}var a6={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 P_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!a6[e.type]:t==="textarea"}function QP(e,t,r,o){PP(o),t=Ag(t,"onChange"),0<t.length&&(r=new LS("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var ud=null,Cd=null;function s6(e){lT(e,0)}function Jg(e){var t=Vc(e);if(SP(t))return e}function l6(e,t){if(e==="change")return t}var ZP=!1;Ea&&(Ea?(ag="oninput"in document,ag||(yb=document.createElement("div"),yb.setAttribute("oninput","return;"),ag=typeof yb.oninput=="function"),ig=ag):ig=!1,ZP=ig&&(!document.documentMode||9<document.documentMode));var ig,ag,yb;function T_(){ud&&(ud.detachEvent("onpropertychange",JP),Cd=ud=null)}function JP(e){if(e.propertyName==="value"&&Jg(Cd)){var t=[];QP(t,Cd,e,NS(e)),$P(s6,t)}}function c6(e,t,r){e==="focusin"?(T_(),ud=t,Cd=r,ud.attachEvent("onpropertychange",JP)):e==="focusout"&&T_()}function u6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jg(Cd)}function f6(e,t){if(e==="click")return Jg(t)}function d6(e,t){if(e==="input"||e==="change")return Jg(t)}function p6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xi=typeof Object.is=="function"?Object.is:p6;function wd(e,t){if(xi(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(!$b.call(t,n)||!xi(e[n],t[n]))return!1}return!0}function N_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function I_(e,t){var r=N_(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=N_(r)}}function eT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tT(){for(var e=window,t=_g();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=_g(e.document)}return t}function zS(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 m6(e){var t=tT(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&eT(r.ownerDocument.documentElement,r)){if(o!==null&&zS(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=I_(r,i);var a=I_(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 g6=Ea&&"documentMode"in document&&11>=document.documentMode,Bc=null,Qb=null,fd=null,Zb=!1;function $_(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zb||Bc==null||Bc!==_g(o)||(o=Bc,"selectionStart"in o&&zS(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}),fd&&wd(fd,o)||(fd=o,o=Ag(Qb,"onSelect"),0<o.length&&(t=new LS("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Bc)))}function sg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var jc={animationend:sg("Animation","AnimationEnd"),animationiteration:sg("Animation","AnimationIteration"),animationstart:sg("Animation","AnimationStart"),transitionend:sg("Transition","TransitionEnd")},xb={},rT={};Ea&&(rT=document.createElement("div").style,"AnimationEvent"in window||(delete jc.animationend.animation,delete jc.animationiteration.animation,delete jc.animationstart.animation),"TransitionEvent"in window||delete jc.transitionend.transition);function eh(e){if(xb[e])return xb[e];if(!jc[e])return e;var t=jc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in rT)return xb[e]=t[r];return e}var oT=eh("animationend"),nT=eh("animationiteration"),iT=eh("animationstart"),aT=eh("transitionend"),sT=new Map,D_="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 Os(e,t){sT.set(e,t),$l(t,[e])}for(lg=0;lg<D_.length;lg++)cg=D_[lg],A_=cg.toLowerCase(),M_=cg[0].toUpperCase()+cg.slice(1),Os(A_,"on"+M_);var cg,A_,M_,lg;Os(oT,"onAnimationEnd");Os(nT,"onAnimationIteration");Os(iT,"onAnimationStart");Os("dblclick","onDoubleClick");Os("focusin","onFocus");Os("focusout","onBlur");Os(aT,"onTransitionEnd");ru("onMouseEnter",["mouseout","mouseover"]);ru("onMouseLeave",["mouseout","mouseover"]);ru("onPointerEnter",["pointerout","pointerover"]);ru("onPointerLeave",["pointerout","pointerover"]);$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$l("onBeforeInput",["compositionend","keypress","textInput","paste"]);$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ad="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(" "),h6=new Set("cancel close invalid load scroll toggle".split(" ").concat(ad));function L_(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,hW(o,t,void 0,e),e.currentTarget=null}function lT(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;L_(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;L_(n,s,c),i=l}}}if(Tg)throw e=qb,Tg=!1,qb=null,e}function or(e,t){var r=t[oS];r===void 0&&(r=t[oS]=new Set);var o=e+"__bubble";r.has(o)||(cT(t,e,2,!1),r.add(o))}function bb(e,t,r){var o=0;t&&(o|=4),cT(r,e,o,t)}var ug="_reactListening"+Math.random().toString(36).slice(2);function Ed(e){if(!e[ug]){e[ug]=!0,hP.forEach(function(r){r!=="selectionchange"&&(h6.has(r)||bb(r,!1,e),bb(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ug]||(t[ug]=!0,bb("selectionchange",!1,t))}}function cT(e,t,r,o){switch(GP(t)){case 1:var n=$W;break;case 4:n=DW;break;default:n=AS}r=n.bind(null,t,r,e),n=void 0,!Gb||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 Sb(e,t,r,o,n){var i=o;if((t&1)===0&&(t&2)===0&&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=Cl(s),a===null)return;if(l=a.tag,l===5||l===6){o=i=a;continue e}s=s.parentNode}}o=o.return}$P(function(){var c=i,u=NS(r),f=[];e:{var d=sT.get(e);if(d!==void 0){var m=LS,h=e;switch(e){case"keypress":if(xg(r)===0)break e;case"keydown":case"keyup":m=KW;break;case"focusin":h="focus",m=vb;break;case"focusout":h="blur",m=vb;break;case"beforeblur":case"afterblur":m=vb;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=w_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=LW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=QW;break;case oT:case nT:case iT:m=zW;break;case aT:m=JW;break;case"scroll":m=AW;break;case"wheel":m=t6;break;case"copy":case"cut":case"paste":m=BW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=R_}var v=(t&4)!==0,y=!v&&e==="scroll",g=v?d!==null?d+"Capture":null:d;v=[];for(var p=c,x;p!==null;){x=p;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,g!==null&&(S=yd(p,g),S!=null&&v.push(Rd(p,S,x)))),y)break;p=p.return}0<v.length&&(d=new m(d,h,null,r,u),f.push({event:d,listeners:v}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&r!==Hb&&(h=r.relatedTarget||r.fromElement)&&(Cl(h)||h[Ra]))break e;if((m||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,m?(h=r.relatedTarget||r.toElement,m=c,h=h?Cl(h):null,h!==null&&(y=Dl(h),h!==y||h.tag!==5&&h.tag!==6)&&(h=null)):(m=null,h=c),m!==h)){if(v=w_,S="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=R_,S="onPointerLeave",g="onPointerEnter",p="pointer"),y=m==null?d:Vc(m),x=h==null?d:Vc(h),d=new v(S,p+"leave",m,r,u),d.target=y,d.relatedTarget=x,S=null,Cl(u)===c&&(v=new v(g,p+"enter",h,r,u),v.target=x,v.relatedTarget=y,S=v),y=S,m&&h)t:{for(v=m,g=h,p=0,x=v;x;x=kc(x))p++;for(x=0,S=g;S;S=kc(S))x++;for(;0<p-x;)v=kc(v),p--;for(;0<x-p;)g=kc(g),x--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=kc(v),g=kc(g)}v=null}else v=null;m!==null&&k_(f,d,m,v,!1),h!==null&&y!==null&&k_(f,y,h,v,!0)}}e:{if(d=c?Vc(c):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var b=l6;else if(P_(d))if(ZP)b=d6;else{b=u6;var w=c6}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=f6);if(b&&(b=b(e,c))){QP(f,b,r,u);break e}w&&w(e,d,c),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&zb(d,"number",d.value)}switch(w=c?Vc(c):window,e){case"focusin":(P_(w)||w.contentEditable==="true")&&(Bc=w,Qb=c,fd=null);break;case"focusout":fd=Qb=Bc=null;break;case"mousedown":Zb=!0;break;case"contextmenu":case"mouseup":case"dragend":Zb=!1,$_(f,r,u);break;case"selectionchange":if(g6)break;case"keydown":case"keyup":$_(f,r,u)}var C;if(FS)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 Wc?XP(e,r)&&(R="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(R="onCompositionStart");R&&(KP&&r.locale!=="ko"&&(Wc||R!=="onCompositionStart"?R==="onCompositionEnd"&&Wc&&(C=qP()):(ms=u,MS="value"in ms?ms.value:ms.textContent,Wc=!0)),w=Ag(c,R),0<w.length&&(R=new E_(R,e,null,r,u),f.push({event:R,listeners:w}),C?R.data=C:(C=YP(r),C!==null&&(R.data=C)))),(C=o6?n6(e,r):i6(e,r))&&(c=Ag(c,"onBeforeInput"),0<c.length&&(u=new E_("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:c}),u.data=C))}lT(f,t)})}function Rd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ag(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=yd(e,r),i!=null&&o.unshift(Rd(e,i,n)),i=yd(e,t),i!=null&&o.push(Rd(e,i,n))),e=e.return}return o}function kc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function k_(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=yd(r,i),l!=null&&a.unshift(Rd(r,l,s))):n||(l=yd(r,i),l!=null&&a.push(Rd(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var v6=/\r\n?/g,y6=/\u0000|\uFFFD/g;function F_(e){return(typeof e=="string"?e:""+e).replace(v6,`
|
|
`).replace(y6,"")}function fg(e,t,r){if(t=F_(t),F_(e)!==t&&r)throw Error(ge(425))}function Mg(){}var Jb=null,eS=null;function tS(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 rS=typeof setTimeout=="function"?setTimeout:void 0,x6=typeof clearTimeout=="function"?clearTimeout:void 0,z_=typeof Promise=="function"?Promise:void 0,b6=typeof queueMicrotask=="function"?queueMicrotask:typeof z_<"u"?function(e){return z_.resolve(null).then(e).catch(S6)}:rS;function S6(e){setTimeout(function(){throw e})}function Cb(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),Sd(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);Sd(t)}function xs(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 W_(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 uu=Math.random().toString(36).slice(2),Ui="__reactFiber$"+uu,Od="__reactProps$"+uu,Ra="__reactContainer$"+uu,oS="__reactEvents$"+uu,C6="__reactListeners$"+uu,w6="__reactHandles$"+uu;function Cl(e){var t=e[Ui];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ra]||r[Ui]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=W_(e);e!==null;){if(r=e[Ui])return r;e=W_(e)}return t}e=r,r=e.parentNode}return null}function Md(e){return e=e[Ui]||e[Ra],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ge(33))}function th(e){return e[Od]||null}var nS=[],Hc=-1;function _s(e){return{current:e}}function nr(e){0>Hc||(e.current=nS[Hc],nS[Hc]=null,Hc--)}function er(e,t){Hc++,nS[Hc]=e.current,e.current=t}var Rs={},Io=_s(Rs),an=_s(!1),_l=Rs;function ou(e,t){var r=e.type.contextTypes;if(!r)return Rs;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 sn(e){return e=e.childContextTypes,e!=null}function Lg(){nr(an),nr(Io)}function B_(e,t,r){if(Io.current!==Rs)throw Error(ge(168));er(Io,t),er(an,r)}function uT(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(ge(108,cW(e)||"Unknown",n));return Sr({},r,o)}function kg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rs,_l=Io.current,er(Io,e),er(an,an.current),!0}function j_(e,t,r){var o=e.stateNode;if(!o)throw Error(ge(169));r?(e=uT(e,t,_l),o.__reactInternalMemoizedMergedChildContext=e,nr(an),nr(Io),er(Io,e)):nr(an),er(an,r)}var ba=null,rh=!1,wb=!1;function fT(e){ba===null?ba=[e]:ba.push(e)}function E6(e){rh=!0,fT(e)}function Ps(){if(!wb&&ba!==null){wb=!0;var e=0,t=jt;try{var r=ba;for(jt=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}ba=null,rh=!1}catch(n){throw ba!==null&&(ba=ba.slice(e+1)),LP(IS,Ps),n}finally{jt=t,wb=!1}}return null}var Uc=[],Gc=0,Fg=null,zg=0,jn=[],Vn=0,Pl=null,Sa=1,Ca="";function bl(e,t){Uc[Gc++]=zg,Uc[Gc++]=Fg,Fg=e,zg=t}function dT(e,t,r){jn[Vn++]=Sa,jn[Vn++]=Ca,jn[Vn++]=Pl,Pl=e;var o=Sa;e=Ca;var n=32-vi(o)-1;o&=~(1<<n),r+=1;var i=32-vi(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Sa=1<<32-vi(t)+n|r<<n|o,Ca=i+e}else Sa=1<<i|r<<n|o,Ca=e}function WS(e){e.return!==null&&(bl(e,1),dT(e,1,0))}function BS(e){for(;e===Fg;)Fg=Uc[--Gc],Uc[Gc]=null,zg=Uc[--Gc],Uc[Gc]=null;for(;e===Pl;)Pl=jn[--Vn],jn[Vn]=null,Ca=jn[--Vn],jn[Vn]=null,Sa=jn[--Vn],jn[Vn]=null}var wn=null,Cn=null,gr=!1,hi=null;function pT(e,t){var r=Hn(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 V_(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,wn=e,Cn=xs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wn=e,Cn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Pl!==null?{id:Sa,overflow:Ca}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Hn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,wn=e,Cn=null,!0):!1;default:return!1}}function iS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function aS(e){if(gr){var t=Cn;if(t){var r=t;if(!V_(e,t)){if(iS(e))throw Error(ge(418));t=xs(r.nextSibling);var o=wn;t&&V_(e,t)?pT(o,r):(e.flags=e.flags&-4097|2,gr=!1,wn=e)}}else{if(iS(e))throw Error(ge(418));e.flags=e.flags&-4097|2,gr=!1,wn=e}}}function H_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wn=e}function dg(e){if(e!==wn)return!1;if(!gr)return H_(e),gr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tS(e.type,e.memoizedProps)),t&&(t=Cn)){if(iS(e))throw mT(),Error(ge(418));for(;t;)pT(e,t),t=xs(t.nextSibling)}if(H_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ge(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Cn=xs(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Cn=null}}else Cn=wn?xs(e.stateNode.nextSibling):null;return!0}function mT(){for(var e=Cn;e;)e=xs(e.nextSibling)}function nu(){Cn=wn=null,gr=!1}function jS(e){hi===null?hi=[e]:hi.push(e)}var R6=Pa.ReactCurrentBatchConfig;function Jf(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(ge(309));var o=r.stateNode}if(!o)throw Error(ge(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(ge(284));if(!r._owner)throw Error(ge(290,e))}return e}function pg(e,t){throw e=Object.prototype.toString.call(t),Error(ge(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function U_(e){var t=e._init;return t(e._payload)}function gT(e){function t(g,p){if(e){var x=g.deletions;x===null?(g.deletions=[p],g.flags|=16):x.push(p)}}function r(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function o(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function n(g,p){return g=ws(g,p),g.index=0,g.sibling=null,g}function i(g,p,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<p?(g.flags|=2,p):x):(g.flags|=2,p)):(g.flags|=1048576,p)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,p,x,S){return p===null||p.tag!==6?(p=Nb(x,g.mode,S),p.return=g,p):(p=n(p,x),p.return=g,p)}function l(g,p,x,S){var b=x.type;return b===zc?u(g,p,x.props.children,S,x.key):p!==null&&(p.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===us&&U_(b)===p.type)?(S=n(p,x.props),S.ref=Jf(g,p,x),S.return=g,S):(S=Og(x.type,x.key,x.props,null,g.mode,S),S.ref=Jf(g,p,x),S.return=g,S)}function c(g,p,x,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==x.containerInfo||p.stateNode.implementation!==x.implementation?(p=Ib(x,g.mode,S),p.return=g,p):(p=n(p,x.children||[]),p.return=g,p)}function u(g,p,x,S,b){return p===null||p.tag!==7?(p=Ol(x,g.mode,S,b),p.return=g,p):(p=n(p,x),p.return=g,p)}function f(g,p,x){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Nb(""+p,g.mode,x),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Zm:return x=Og(p.type,p.key,p.props,null,g.mode,x),x.ref=Jf(g,null,p),x.return=g,x;case Fc:return p=Ib(p,g.mode,x),p.return=g,p;case us:var S=p._init;return f(g,S(p._payload),x)}if(nd(p)||Xf(p))return p=Ol(p,g.mode,x,null),p.return=g,p;pg(g,p)}return null}function d(g,p,x,S){var b=p!==null?p.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return b!==null?null:s(g,p,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Zm:return x.key===b?l(g,p,x,S):null;case Fc:return x.key===b?c(g,p,x,S):null;case us:return b=x._init,d(g,p,b(x._payload),S)}if(nd(x)||Xf(x))return b!==null?null:u(g,p,x,S,null);pg(g,x)}return null}function m(g,p,x,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(x)||null,s(p,g,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Zm:return g=g.get(S.key===null?x:S.key)||null,l(p,g,S,b);case Fc:return g=g.get(S.key===null?x:S.key)||null,c(p,g,S,b);case us:var w=S._init;return m(g,p,x,w(S._payload),b)}if(nd(S)||Xf(S))return g=g.get(x)||null,u(p,g,S,b,null);pg(p,S)}return null}function h(g,p,x,S){for(var b=null,w=null,C=p,R=p=0,_=null;C!==null&&R<x.length;R++){C.index>R?(_=C,C=null):_=C.sibling;var O=d(g,C,x[R],S);if(O===null){C===null&&(C=_);break}e&&C&&O.alternate===null&&t(g,C),p=i(O,p,R),w===null?b=O:w.sibling=O,w=O,C=_}if(R===x.length)return r(g,C),gr&&bl(g,R),b;if(C===null){for(;R<x.length;R++)C=f(g,x[R],S),C!==null&&(p=i(C,p,R),w===null?b=C:w.sibling=C,w=C);return gr&&bl(g,R),b}for(C=o(g,C);R<x.length;R++)_=m(C,g,R,x[R],S),_!==null&&(e&&_.alternate!==null&&C.delete(_.key===null?R:_.key),p=i(_,p,R),w===null?b=_:w.sibling=_,w=_);return e&&C.forEach(function(N){return t(g,N)}),gr&&bl(g,R),b}function v(g,p,x,S){var b=Xf(x);if(typeof b!="function")throw Error(ge(150));if(x=b.call(x),x==null)throw Error(ge(151));for(var w=b=null,C=p,R=p=0,_=null,O=x.next();C!==null&&!O.done;R++,O=x.next()){C.index>R?(_=C,C=null):_=C.sibling;var N=d(g,C,O.value,S);if(N===null){C===null&&(C=_);break}e&&C&&N.alternate===null&&t(g,C),p=i(N,p,R),w===null?b=N:w.sibling=N,w=N,C=_}if(O.done)return r(g,C),gr&&bl(g,R),b;if(C===null){for(;!O.done;R++,O=x.next())O=f(g,O.value,S),O!==null&&(p=i(O,p,R),w===null?b=O:w.sibling=O,w=O);return gr&&bl(g,R),b}for(C=o(g,C);!O.done;R++,O=x.next())O=m(C,g,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(k){return t(g,k)}),gr&&bl(g,R),b}function y(g,p,x,S){if(typeof x=="object"&&x!==null&&x.type===zc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Zm:e:{for(var b=x.key,w=p;w!==null;){if(w.key===b){if(b=x.type,b===zc){if(w.tag===7){r(g,w.sibling),p=n(w,x.props.children),p.return=g,g=p;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===us&&U_(b)===w.type){r(g,w.sibling),p=n(w,x.props),p.ref=Jf(g,w,x),p.return=g,g=p;break e}r(g,w);break}else t(g,w);w=w.sibling}x.type===zc?(p=Ol(x.props.children,g.mode,S,x.key),p.return=g,g=p):(S=Og(x.type,x.key,x.props,null,g.mode,S),S.ref=Jf(g,p,x),S.return=g,g=S)}return a(g);case Fc:e:{for(w=x.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){r(g,p.sibling),p=n(p,x.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else t(g,p);p=p.sibling}p=Ib(x,g.mode,S),p.return=g,g=p}return a(g);case us:return w=x._init,y(g,p,w(x._payload),S)}if(nd(x))return h(g,p,x,S);if(Xf(x))return v(g,p,x,S);pg(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,p!==null&&p.tag===6?(r(g,p.sibling),p=n(p,x),p.return=g,g=p):(r(g,p),p=Nb(x,g.mode,S),p.return=g,g=p),a(g)):r(g,p)}return y}var iu=gT(!0),hT=gT(!1),Wg=_s(null),Bg=null,qc=null,VS=null;function HS(){VS=qc=Bg=null}function US(e){var t=Wg.current;nr(Wg),e._currentValue=t}function sS(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 eu(e,t){Bg=e,VS=qc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(nn=!0),e.firstContext=null)}function Gn(e){var t=e._currentValue;if(VS!==e)if(e={context:e,memoizedValue:t,next:null},qc===null){if(Bg===null)throw Error(ge(308));qc=e,Bg.dependencies={lanes:0,firstContext:e}}else qc=qc.next=e;return t}var wl=null;function GS(e){wl===null?wl=[e]:wl.push(e)}function vT(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,GS(t)):(r.next=n.next,n.next=r),t.interleaved=r,Oa(e,o)}function Oa(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 fs=!1;function qS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yT(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 wa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bs(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(At&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,Oa(e,r)}return n=o.interleaved,n===null?(t.next=t,GS(o)):(t.next=n.next,n.next=t),o.interleaved=t,Oa(e,r)}function bg(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,$S(e,r)}}function G_(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 jg(e,t,r,o){var n=e.updateQueue;fs=!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 h=e,v=s;switch(d=t,m=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){f=h.call(m,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,d=typeof h=="function"?h.call(m,f,d):h,d==null)break e;f=Sr({},f,d);break e;case 2:fs=!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);Nl|=a,e.lanes=a,e.memoizedState=f}}function q_(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(ge(191,n));n.call(o)}}}var Ld={},qi=_s(Ld),_d=_s(Ld),Pd=_s(Ld);function El(e){if(e===Ld)throw Error(ge(174));return e}function KS(e,t){switch(er(Pd,t),er(_d,e),er(qi,Ld),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bb(t,e)}nr(qi),er(qi,t)}function au(){nr(qi),nr(_d),nr(Pd)}function xT(e){El(Pd.current);var t=El(qi.current),r=Bb(t,e.type);t!==r&&(er(_d,e),er(qi,r))}function XS(e){_d.current===e&&(nr(qi),nr(_d))}var xr=_s(0);function Vg(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)!==0)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 Eb=[];function YS(){for(var e=0;e<Eb.length;e++)Eb[e]._workInProgressVersionPrimary=null;Eb.length=0}var Sg=Pa.ReactCurrentDispatcher,Rb=Pa.ReactCurrentBatchConfig,Tl=0,br=null,Xr=null,oo=null,Hg=!1,dd=!1,Td=0,O6=0;function Po(){throw Error(ge(321))}function QS(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!xi(e[r],t[r]))return!1;return!0}function ZS(e,t,r,o,n,i){if(Tl=i,br=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Sg.current=e===null||e.memoizedState===null?N6:I6,e=r(o,n),dd){i=0;do{if(dd=!1,Td=0,25<=i)throw Error(ge(301));i+=1,oo=Xr=null,t.updateQueue=null,Sg.current=$6,e=r(o,n)}while(dd)}if(Sg.current=Ug,t=Xr!==null&&Xr.next!==null,Tl=0,oo=Xr=br=null,Hg=!1,t)throw Error(ge(300));return e}function JS(){var e=Td!==0;return Td=0,e}function Hi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oo===null?br.memoizedState=oo=e:oo=oo.next=e,oo}function qn(){if(Xr===null){var e=br.alternate;e=e!==null?e.memoizedState:null}else e=Xr.next;var t=oo===null?br.memoizedState:oo.next;if(t!==null)oo=t,Xr=e;else{if(e===null)throw Error(ge(310));Xr=e,e={memoizedState:Xr.memoizedState,baseState:Xr.baseState,baseQueue:Xr.baseQueue,queue:Xr.queue,next:null},oo===null?br.memoizedState=oo=e:oo=oo.next=e}return oo}function Nd(e,t){return typeof t=="function"?t(e):t}function Ob(e){var t=qn(),r=t.queue;if(r===null)throw Error(ge(311));r.lastRenderedReducer=e;var o=Xr,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((Tl&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,br.lanes|=u,Nl|=u}c=c.next}while(c!==null&&c!==i);l===null?a=o:l.next=s,xi(o,t.memoizedState)||(nn=!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,br.lanes|=i,Nl|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function _b(e){var t=qn(),r=t.queue;if(r===null)throw Error(ge(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);xi(i,t.memoizedState)||(nn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function bT(){}function ST(e,t){var r=br,o=qn(),n=t(),i=!xi(o.memoizedState,n);if(i&&(o.memoizedState=n,nn=!0),o=o.queue,eC(ET.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||oo!==null&&oo.memoizedState.tag&1){if(r.flags|=2048,Id(9,wT.bind(null,r,o,n,t),void 0,null),no===null)throw Error(ge(349));(Tl&30)!==0||CT(r,t,n)}return n}function CT(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=br.updateQueue,t===null?(t={lastEffect:null,stores:null},br.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function wT(e,t,r,o){t.value=r,t.getSnapshot=o,RT(t)&&OT(e)}function ET(e,t,r){return r(function(){RT(t)&&OT(e)})}function RT(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!xi(e,r)}catch{return!0}}function OT(e){var t=Oa(e,1);t!==null&&yi(t,e,1,-1)}function K_(e){var t=Hi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nd,lastRenderedState:e},t.queue=e,e=e.dispatch=T6.bind(null,br,e),[t.memoizedState,e]}function Id(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=br.updateQueue,t===null?(t={lastEffect:null,stores:null},br.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 _T(){return qn().memoizedState}function Cg(e,t,r,o){var n=Hi();br.flags|=e,n.memoizedState=Id(1|t,r,void 0,o===void 0?null:o)}function oh(e,t,r,o){var n=qn();o=o===void 0?null:o;var i=void 0;if(Xr!==null){var a=Xr.memoizedState;if(i=a.destroy,o!==null&&QS(o,a.deps)){n.memoizedState=Id(t,r,i,o);return}}br.flags|=e,n.memoizedState=Id(1|t,r,i,o)}function X_(e,t){return Cg(8390656,8,e,t)}function eC(e,t){return oh(2048,8,e,t)}function PT(e,t){return oh(4,2,e,t)}function TT(e,t){return oh(4,4,e,t)}function NT(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 IT(e,t,r){return r=r!=null?r.concat([e]):null,oh(4,4,NT.bind(null,t,e),r)}function tC(){}function $T(e,t){var r=qn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&QS(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function DT(e,t){var r=qn();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&QS(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function AT(e,t,r){return(Tl&21)===0?(e.baseState&&(e.baseState=!1,nn=!0),e.memoizedState=r):(xi(r,t)||(r=zP(),br.lanes|=r,Nl|=r,e.baseState=!0),t)}function _6(e,t){var r=jt;jt=r!==0&&4>r?r:4,e(!0);var o=Rb.transition;Rb.transition={};try{e(!1),t()}finally{jt=r,Rb.transition=o}}function MT(){return qn().memoizedState}function P6(e,t,r){var o=Cs(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},LT(e))kT(t,r);else if(r=vT(e,t,r,o),r!==null){var n=qo();yi(r,e,o,n),FT(r,t,o)}}function T6(e,t,r){var o=Cs(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(LT(e))kT(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,xi(s,a)){var l=t.interleaved;l===null?(n.next=n,GS(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=vT(e,t,n,o),r!==null&&(n=qo(),yi(r,e,o,n),FT(r,t,o))}}function LT(e){var t=e.alternate;return e===br||t!==null&&t===br}function kT(e,t){dd=Hg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function FT(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,$S(e,r)}}var Ug={readContext:Gn,useCallback:Po,useContext:Po,useEffect:Po,useImperativeHandle:Po,useInsertionEffect:Po,useLayoutEffect:Po,useMemo:Po,useReducer:Po,useRef:Po,useState:Po,useDebugValue:Po,useDeferredValue:Po,useTransition:Po,useMutableSource:Po,useSyncExternalStore:Po,useId:Po,unstable_isNewReconciler:!1},N6={readContext:Gn,useCallback:function(e,t){return Hi().memoizedState=[e,t===void 0?null:t],e},useContext:Gn,useEffect:X_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Cg(4194308,4,NT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Cg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Cg(4,2,e,t)},useMemo:function(e,t){var r=Hi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Hi();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=P6.bind(null,br,e),[o.memoizedState,e]},useRef:function(e){var t=Hi();return e={current:e},t.memoizedState=e},useState:K_,useDebugValue:tC,useDeferredValue:function(e){return Hi().memoizedState=e},useTransition:function(){var e=K_(!1),t=e[0];return e=_6.bind(null,e[1]),Hi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=br,n=Hi();if(gr){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),no===null)throw Error(ge(349));(Tl&30)!==0||CT(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,X_(ET.bind(null,o,i,e),[e]),o.flags|=2048,Id(9,wT.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Hi(),t=no.identifierPrefix;if(gr){var r=Ca,o=Sa;r=(o&~(1<<32-vi(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Td++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=O6++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},I6={readContext:Gn,useCallback:$T,useContext:Gn,useEffect:eC,useImperativeHandle:IT,useInsertionEffect:PT,useLayoutEffect:TT,useMemo:DT,useReducer:Ob,useRef:_T,useState:function(){return Ob(Nd)},useDebugValue:tC,useDeferredValue:function(e){var t=qn();return AT(t,Xr.memoizedState,e)},useTransition:function(){var e=Ob(Nd)[0],t=qn().memoizedState;return[e,t]},useMutableSource:bT,useSyncExternalStore:ST,useId:MT,unstable_isNewReconciler:!1},$6={readContext:Gn,useCallback:$T,useContext:Gn,useEffect:eC,useImperativeHandle:IT,useInsertionEffect:PT,useLayoutEffect:TT,useMemo:DT,useReducer:_b,useRef:_T,useState:function(){return _b(Nd)},useDebugValue:tC,useDeferredValue:function(e){var t=qn();return Xr===null?t.memoizedState=e:AT(t,Xr.memoizedState,e)},useTransition:function(){var e=_b(Nd)[0],t=qn().memoizedState;return[e,t]},useMutableSource:bT,useSyncExternalStore:ST,useId:MT,unstable_isNewReconciler:!1};function mi(e,t){if(e&&e.defaultProps){t=Sr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function lS(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:Sr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var nh={isMounted:function(e){return(e=e._reactInternals)?Dl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=qo(),n=Cs(e),i=wa(o,n);i.payload=t,r!=null&&(i.callback=r),t=bs(e,i,n),t!==null&&(yi(t,e,n,o),bg(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=qo(),n=Cs(e),i=wa(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=bs(e,i,n),t!==null&&(yi(t,e,n,o),bg(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=qo(),o=Cs(e),n=wa(r,o);n.tag=2,t!=null&&(n.callback=t),t=bs(e,n,o),t!==null&&(yi(t,e,o,r),bg(t,e,o))}};function Y_(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?!wd(r,o)||!wd(n,i):!0}function zT(e,t,r){var o=!1,n=Rs,i=t.contextType;return typeof i=="object"&&i!==null?i=Gn(i):(n=sn(t)?_l:Io.current,o=t.contextTypes,i=(o=o!=null)?ou(e,n):Rs),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nh,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function Q_(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&&nh.enqueueReplaceState(t,t.state,null)}function cS(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},qS(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Gn(i):(i=sn(t)?_l:Io.current,n.context=ou(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(lS(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&&nh.enqueueReplaceState(n,n.state,null),jg(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function su(e,t){try{var r="",o=t;do r+=lW(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 Pb(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function uS(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var D6=typeof WeakMap=="function"?WeakMap:Map;function WT(e,t,r){r=wa(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){qg||(qg=!0,bS=o),uS(e,t)},r}function BT(e,t,r){r=wa(-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(){uS(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){uS(e,t),typeof o!="function"&&(Ss===null?Ss=new Set([this]):Ss.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Z_(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new D6;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=q6.bind(null,e,t,r),t.then(e,e))}function J_(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 eP(e,t,r,o,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=wa(-1,1),t.tag=2,bs(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var A6=Pa.ReactCurrentOwner,nn=!1;function Go(e,t,r,o){t.child=e===null?hT(t,null,r,o):iu(t,e.child,r,o)}function tP(e,t,r,o,n){r=r.render;var i=t.ref;return eu(t,n),o=ZS(e,t,r,o,i,n),r=JS(),e!==null&&!nn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,_a(e,t,n)):(gr&&r&&WS(t),t.flags|=1,Go(e,t,o,n),t.child)}function rP(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!cC(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,jT(e,t,i,o,n)):(e=Og(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)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:wd,r(a,o)&&e.ref===t.ref)return _a(e,t,n)}return t.flags|=1,e=ws(i,o),e.ref=t.ref,e.return=t,t.child=e}function jT(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(wd(i,o)&&e.ref===t.ref)if(nn=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(nn=!0);else return t.lanes=e.lanes,_a(e,t,n)}return fS(e,t,r,o,n)}function VT(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},er(Xc,Sn),Sn|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,er(Xc,Sn),Sn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,er(Xc,Sn),Sn|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,er(Xc,Sn),Sn|=o;return Go(e,t,n,r),t.child}function HT(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function fS(e,t,r,o,n){var i=sn(r)?_l:Io.current;return i=ou(t,i),eu(t,n),r=ZS(e,t,r,o,i,n),o=JS(),e!==null&&!nn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,_a(e,t,n)):(gr&&o&&WS(t),t.flags|=1,Go(e,t,r,n),t.child)}function oP(e,t,r,o,n){if(sn(r)){var i=!0;kg(t)}else i=!1;if(eu(t,n),t.stateNode===null)wg(e,t),zT(t,r,o),cS(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=Gn(c):(c=sn(r)?_l:Io.current,c=ou(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)&&Q_(t,a,o,c),fs=!1;var d=t.memoizedState;a.state=d,jg(t,o,a,n),l=t.memoizedState,s!==o||d!==l||an.current||fs?(typeof u=="function"&&(lS(t,r,u,o),l=t.memoizedState),(s=fs||Y_(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,yT(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:mi(t.type,s),a.props=c,f=t.pendingProps,d=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Gn(l):(l=sn(r)?_l:Io.current,l=ou(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)&&Q_(t,a,o,l),fs=!1,d=t.memoizedState,a.state=d,jg(t,o,a,n);var h=t.memoizedState;s!==f||d!==h||an.current||fs?(typeof m=="function"&&(lS(t,r,m,o),h=t.memoizedState),(c=fs||Y_(t,r,c,o,d,h,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,h,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=h),a.props=o,a.state=h,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 dS(e,t,r,o,i,n)}function dS(e,t,r,o,n,i){HT(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&j_(t,r,!1),_a(e,t,i);o=t.stateNode,A6.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=iu(t,e.child,null,i),t.child=iu(t,null,s,i)):Go(e,t,s,i),t.memoizedState=o.state,n&&j_(t,r,!0),t.child}function UT(e){var t=e.stateNode;t.pendingContext?B_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&B_(e,t.context,!1),KS(e,t.containerInfo)}function nP(e,t,r,o,n){return nu(),jS(n),t.flags|=256,Go(e,t,r,o),t.child}var pS={dehydrated:null,treeContext:null,retryLane:0};function mS(e){return{baseLanes:e,cachePool:null,transitions:null}}function GT(e,t,r){var o=t.pendingProps,n=xr.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),er(xr,n&1),e===null)return aS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},(o&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=sh(a,o,0,null),e=Ol(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=mS(r),t.memoizedState=pS,e):rC(t,a));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return M6(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)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=ws(n,l),o.subtreeFlags=n.subtreeFlags&14680064),s!==null?i=ws(s,i):(i=Ol(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?mS(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=pS,o}return i=e.child,e=i.sibling,o=ws(i,{mode:"visible",children:o.children}),(t.mode&1)===0&&(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 rC(e,t){return t=sh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function mg(e,t,r,o){return o!==null&&jS(o),iu(t,e.child,null,r),e=rC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function M6(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=Pb(Error(ge(422))),mg(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=sh({mode:"visible",children:o.children},n,0,null),i=Ol(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&iu(t,e.child,null,a),t.child.memoizedState=mS(a),t.memoizedState=pS,i);if((t.mode&1)===0)return mg(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var s=o.dgst;return o=s,i=Error(ge(419)),o=Pb(i,o,void 0),mg(e,t,a,o)}if(s=(a&e.childLanes)!==0,nn||s){if(o=no,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?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,Oa(e,n),yi(o,e,n,-1))}return lC(),o=Pb(Error(ge(421))),mg(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=K6.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Cn=xs(n.nextSibling),wn=t,gr=!0,hi=null,e!==null&&(jn[Vn++]=Sa,jn[Vn++]=Ca,jn[Vn++]=Pl,Sa=e.id,Ca=e.overflow,Pl=t),t=rC(t,o.children),t.flags|=4096,t)}function iP(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),sS(e.return,t,r)}function Tb(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 qT(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(Go(e,t,o.children,r),o=xr.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&iP(e,r,t);else if(e.tag===19)iP(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(er(xr,o),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&Vg(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),Tb(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&&Vg(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}Tb(t,!0,r,null,i);break;case"together":Tb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function wg(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _a(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Nl|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(ge(153));if(t.child!==null){for(e=t.child,r=ws(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ws(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function L6(e,t,r){switch(t.tag){case 3:UT(t),nu();break;case 5:xT(t);break;case 1:sn(t.type)&&kg(t);break;case 4:KS(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;er(Wg,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(er(xr,xr.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?GT(e,t,r):(er(xr,xr.current&1),e=_a(e,t,r),e!==null?e.sibling:null);er(xr,xr.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return qT(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),er(xr,xr.current),o)break;return null;case 22:case 23:return t.lanes=0,VT(e,t,r)}return _a(e,t,r)}var KT,gS,XT,YT;KT=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}};gS=function(){};XT=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,El(qi.current);var i=null;switch(r){case"input":n=kb(e,n),o=kb(e,o),i=[];break;case"select":n=Sr({},n,{value:void 0}),o=Sr({},o,{value:void 0}),i=[];break;case"textarea":n=Wb(e,n),o=Wb(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Mg)}jb(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"&&(hd.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"&&(hd.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&or("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)}};YT=function(e,t,r,o){r!==o&&(t.flags|=4)};function ed(e,t){if(!gr)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 To(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 k6(e,t,r){var o=t.pendingProps;switch(BS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return To(t),null;case 1:return sn(t.type)&&Lg(),To(t),null;case 3:return o=t.stateNode,au(),nr(an),nr(Io),YS(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(dg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hi!==null&&(wS(hi),hi=null))),gS(e,t),To(t),null;case 5:XS(t);var n=El(Pd.current);if(r=t.type,e!==null&&t.stateNode!=null)XT(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(ge(166));return To(t),null}if(e=El(qi.current),dg(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[Ui]=t,o[Od]=i,e=(t.mode&1)!==0,r){case"dialog":or("cancel",o),or("close",o);break;case"iframe":case"object":case"embed":or("load",o);break;case"video":case"audio":for(n=0;n<ad.length;n++)or(ad[n],o);break;case"source":or("error",o);break;case"img":case"image":case"link":or("error",o),or("load",o);break;case"details":or("toggle",o);break;case"input":p_(o,i),or("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},or("invalid",o);break;case"textarea":g_(o,i),or("invalid",o)}jb(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&&fg(o.textContent,s,e),n=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&fg(o.textContent,s,e),n=["children",""+s]):hd.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&or("scroll",o)}switch(r){case"input":Jm(o),m_(o,i,!0);break;case"textarea":Jm(o),h_(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=Mg)}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=EP(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[Ui]=t,e[Od]=o,KT(e,t,!1,!1),t.stateNode=e;e:{switch(a=Vb(r,o),r){case"dialog":or("cancel",e),or("close",e),n=o;break;case"iframe":case"object":case"embed":or("load",e),n=o;break;case"video":case"audio":for(n=0;n<ad.length;n++)or(ad[n],e);n=o;break;case"source":or("error",e),n=o;break;case"img":case"image":case"link":or("error",e),or("load",e),n=o;break;case"details":or("toggle",e),n=o;break;case"input":p_(e,o),n=kb(e,o),or("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=Sr({},o,{value:void 0}),or("invalid",e);break;case"textarea":g_(e,o),n=Wb(e,o),or("invalid",e);break;default:n=o}jb(r,n),s=n;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?_P(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&RP(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&vd(e,l):typeof l=="number"&&vd(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(hd.hasOwnProperty(i)?l!=null&&i==="onScroll"&&or("scroll",e):l!=null&&OS(e,i,l,a))}switch(r){case"input":Jm(e),m_(e,o,!1);break;case"textarea":Jm(e),h_(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Es(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?Yc(e,!!o.multiple,i,!1):o.defaultValue!=null&&Yc(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Mg)}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 To(t),null;case 6:if(e&&t.stateNode!=null)YT(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(ge(166));if(r=El(Pd.current),El(qi.current),dg(t)){if(o=t.stateNode,r=t.memoizedProps,o[Ui]=t,(i=o.nodeValue!==r)&&(e=wn,e!==null))switch(e.tag){case 3:fg(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fg(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Ui]=t,t.stateNode=o}return To(t),null;case 13:if(nr(xr),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(gr&&Cn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)mT(),nu(),t.flags|=98560,i=!1;else if(i=dg(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(ge(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ge(317));i[Ui]=t}else nu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;To(t),i=!1}else hi!==null&&(wS(hi),hi=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(xr.current&1)!==0?Yr===0&&(Yr=3):lC())),t.updateQueue!==null&&(t.flags|=4),To(t),null);case 4:return au(),gS(e,t),e===null&&Ed(t.stateNode.containerInfo),To(t),null;case 10:return US(t.type._context),To(t),null;case 17:return sn(t.type)&&Lg(),To(t),null;case 19:if(nr(xr),i=t.memoizedState,i===null)return To(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)ed(i,!1);else{if(Yr!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Vg(e),a!==null){for(t.flags|=128,ed(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 er(xr,xr.current&1|2),t.child}e=e.sibling}i.tail!==null&&kr()>lu&&(t.flags|=128,o=!0,ed(i,!1),t.lanes=4194304)}else{if(!o)if(e=Vg(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ed(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!gr)return To(t),null}else 2*kr()-i.renderingStartTime>lu&&r!==1073741824&&(t.flags|=128,o=!0,ed(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=kr(),t.sibling=null,r=xr.current,er(xr,o?r&1|2:r&1),t):(To(t),null);case 22:case 23:return sC(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Sn&1073741824)!==0&&(To(t),t.subtreeFlags&6&&(t.flags|=8192)):To(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function F6(e,t){switch(BS(t),t.tag){case 1:return sn(t.type)&&Lg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return au(),nr(an),nr(Io),YS(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return XS(t),null;case 13:if(nr(xr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));nu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nr(xr),null;case 4:return au(),null;case 10:return US(t.type._context),null;case 22:case 23:return sC(),null;case 24:return null;default:return null}}var gg=!1,No=!1,z6=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Kc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Tr(e,t,o)}else r.current=null}function hS(e,t,r){try{r()}catch(o){Tr(e,t,o)}}var aP=!1;function W6(e,t){if(Jb=$g,e=tT(),zS(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(eS={focusedElem:e,selectionRange:r},$g=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:mi(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(S){Tr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return h=aP,aP=!1,h}function pd(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&&hS(t,r,i)}n=n.next}while(n!==o)}}function ih(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 vS(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 QT(e){var t=e.alternate;t!==null&&(e.alternate=null,QT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ui],delete t[Od],delete t[oS],delete t[C6],delete t[w6])),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 ZT(e){return e.tag===5||e.tag===3||e.tag===4}function sP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZT(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 yS(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=Mg));else if(o!==4&&(e=e.child,e!==null))for(yS(e,t,r),e=e.sibling;e!==null;)yS(e,t,r),e=e.sibling}function xS(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(xS(e,t,r),e=e.sibling;e!==null;)xS(e,t,r),e=e.sibling}var go=null,gi=!1;function cs(e,t,r){for(r=r.child;r!==null;)JT(e,t,r),r=r.sibling}function JT(e,t,r){if(Gi&&typeof Gi.onCommitFiberUnmount=="function")try{Gi.onCommitFiberUnmount(Qg,r)}catch{}switch(r.tag){case 5:No||Kc(r,t);case 6:var o=go,n=gi;go=null,cs(e,t,r),go=o,gi=n,go!==null&&(gi?(e=go,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):go.removeChild(r.stateNode));break;case 18:go!==null&&(gi?(e=go,r=r.stateNode,e.nodeType===8?Cb(e.parentNode,r):e.nodeType===1&&Cb(e,r),Sd(e)):Cb(go,r.stateNode));break;case 4:o=go,n=gi,go=r.stateNode.containerInfo,gi=!0,cs(e,t,r),go=o,gi=n;break;case 0:case 11:case 14:case 15:if(!No&&(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)!==0||(i&4)!==0)&&hS(r,t,a),n=n.next}while(n!==o)}cs(e,t,r);break;case 1:if(!No&&(Kc(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){Tr(r,t,s)}cs(e,t,r);break;case 21:cs(e,t,r);break;case 22:r.mode&1?(No=(o=No)||r.memoizedState!==null,cs(e,t,r),No=o):cs(e,t,r);break;default:cs(e,t,r)}}function lP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new z6),t.forEach(function(o){var n=X6.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function pi(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:go=s.stateNode,gi=!1;break e;case 3:go=s.stateNode.containerInfo,gi=!0;break e;case 4:go=s.stateNode.containerInfo,gi=!0;break e}s=s.return}if(go===null)throw Error(ge(160));JT(i,a,n),go=null,gi=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(c){Tr(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)eN(t,e),t=t.sibling}function eN(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pi(t,e),Vi(e),o&4){try{pd(3,e,e.return),ih(3,e)}catch(v){Tr(e,e.return,v)}try{pd(5,e,e.return)}catch(v){Tr(e,e.return,v)}}break;case 1:pi(t,e),Vi(e),o&512&&r!==null&&Kc(r,r.return);break;case 5:if(pi(t,e),Vi(e),o&512&&r!==null&&Kc(r,r.return),e.flags&32){var n=e.stateNode;try{vd(n,"")}catch(v){Tr(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&&CP(n,i),Vb(s,a);var c=Vb(s,i);for(a=0;a<l.length;a+=2){var u=l[a],f=l[a+1];u==="style"?_P(n,f):u==="dangerouslySetInnerHTML"?RP(n,f):u==="children"?vd(n,f):OS(n,u,f,c)}switch(s){case"input":Fb(n,i);break;case"textarea":wP(n,i);break;case"select":var d=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Yc(n,!!i.multiple,m,!1):d!==!!i.multiple&&(i.defaultValue!=null?Yc(n,!!i.multiple,i.defaultValue,!0):Yc(n,!!i.multiple,i.multiple?[]:"",!1))}n[Od]=i}catch(v){Tr(e,e.return,v)}}break;case 6:if(pi(t,e),Vi(e),o&4){if(e.stateNode===null)throw Error(ge(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(v){Tr(e,e.return,v)}}break;case 3:if(pi(t,e),Vi(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Sd(t.containerInfo)}catch(v){Tr(e,e.return,v)}break;case 4:pi(t,e),Vi(e);break;case 13:pi(t,e),Vi(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(iC=kr())),o&4&&lP(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(No=(c=No)||u,pi(t,e),No=c):pi(t,e),Vi(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&(e.mode&1)!==0)for(qe=e,u=e.child;u!==null;){for(f=qe=u;qe!==null;){switch(d=qe,m=d.child,d.tag){case 0:case 11:case 14:case 15:pd(4,d,d.return);break;case 1:Kc(d,d.return);var h=d.stateNode;if(typeof h.componentWillUnmount=="function"){o=d,r=d.return;try{t=o,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(v){Tr(o,r,v)}}break;case 5:Kc(d,d.return);break;case 22:if(d.memoizedState!==null){uP(f);continue}}m!==null?(m.return=d,qe=m):uP(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=OP("display",a))}catch(v){Tr(e,e.return,v)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Tr(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:pi(t,e),Vi(e),o&4&&lP(e);break;case 21:break;default:pi(t,e),Vi(e)}}function Vi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(ZT(r)){var o=r;break e}r=r.return}throw Error(ge(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(vd(n,""),o.flags&=-33);var i=sP(e);xS(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,s=sP(e);yS(e,s,a);break;default:throw Error(ge(161))}}catch(l){Tr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function B6(e,t,r){qe=e,tN(e,t,r)}function tN(e,t,r){for(var o=(e.mode&1)!==0;qe!==null;){var n=qe,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||gg;if(!a){var s=n.alternate,l=s!==null&&s.memoizedState!==null||No;s=gg;var c=No;if(gg=a,(No=l)&&!c)for(qe=n;qe!==null;)a=qe,l=a.child,a.tag===22&&a.memoizedState!==null?fP(n):l!==null?(l.return=a,qe=l):fP(n);for(;i!==null;)qe=i,tN(i,t,r),i=i.sibling;qe=n,gg=s,No=c}cP(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,qe=i):cP(e,t,r)}}function cP(e){for(;qe!==null;){var t=qe;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:No||ih(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!No)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:mi(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&q_(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}q_(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&&Sd(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ge(163))}No||t.flags&512&&vS(t)}catch(d){Tr(t,t.return,d)}}if(t===e){qe=null;break}if(r=t.sibling,r!==null){r.return=t.return,qe=r;break}qe=t.return}}function uP(e){for(;qe!==null;){var t=qe;if(t===e){qe=null;break}var r=t.sibling;if(r!==null){r.return=t.return,qe=r;break}qe=t.return}}function fP(e){for(;qe!==null;){var t=qe;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ih(4,t)}catch(l){Tr(t,r,l)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(l){Tr(t,n,l)}}var i=t.return;try{vS(t)}catch(l){Tr(t,i,l)}break;case 5:var a=t.return;try{vS(t)}catch(l){Tr(t,a,l)}}}catch(l){Tr(t,t.return,l)}if(t===e){qe=null;break}var s=t.sibling;if(s!==null){s.return=t.return,qe=s;break}qe=t.return}}var j6=Math.ceil,Gg=Pa.ReactCurrentDispatcher,oC=Pa.ReactCurrentOwner,Un=Pa.ReactCurrentBatchConfig,At=0,no=null,Vr=null,ho=0,Sn=0,Xc=_s(0),Yr=0,$d=null,Nl=0,ah=0,nC=0,md=null,on=null,iC=0,lu=1/0,xa=null,qg=!1,bS=null,Ss=null,hg=!1,gs=null,Kg=0,gd=0,SS=null,Eg=-1,Rg=0;function qo(){return(At&6)!==0?kr():Eg!==-1?Eg:Eg=kr()}function Cs(e){return(e.mode&1)===0?1:(At&2)!==0&&ho!==0?ho&-ho:R6.transition!==null?(Rg===0&&(Rg=zP()),Rg):(e=jt,e!==0||(e=window.event,e=e===void 0?16:GP(e.type)),e)}function yi(e,t,r,o){if(50<gd)throw gd=0,SS=null,Error(ge(185));Dd(e,r,o),((At&2)===0||e!==no)&&(e===no&&((At&2)===0&&(ah|=r),Yr===4&&ps(e,ho)),ln(e,o),r===1&&At===0&&(t.mode&1)===0&&(lu=kr()+500,rh&&Ps()))}function ln(e,t){var r=e.callbackNode;_W(e,t);var o=Ig(e,e===no?ho:0);if(o===0)r!==null&&x_(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&x_(r),t===1)e.tag===0?E6(dP.bind(null,e)):fT(dP.bind(null,e)),b6(function(){(At&6)===0&&Ps()}),r=null;else{switch(WP(o)){case 1:r=IS;break;case 4:r=kP;break;case 16:r=Ng;break;case 536870912:r=FP;break;default:r=Ng}r=cN(r,rN.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function rN(e,t){if(Eg=-1,Rg=0,(At&6)!==0)throw Error(ge(327));var r=e.callbackNode;if(tu()&&e.callbackNode!==r)return null;var o=Ig(e,e===no?ho:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Xg(e,o);else{t=o;var n=At;At|=2;var i=nN();(no!==e||ho!==t)&&(xa=null,lu=kr()+500,Rl(e,t));do try{U6();break}catch(s){oN(e,s)}while(!0);HS(),Gg.current=i,At=n,Vr!==null?t=0:(no=null,ho=0,t=Yr)}if(t!==0){if(t===2&&(n=Kb(e),n!==0&&(o=n,t=CS(e,n))),t===1)throw r=$d,Rl(e,0),ps(e,o),ln(e,kr()),r;if(t===6)ps(e,o);else{if(n=e.current.alternate,(o&30)===0&&!V6(n)&&(t=Xg(e,o),t===2&&(i=Kb(e),i!==0&&(o=i,t=CS(e,i))),t===1))throw r=$d,Rl(e,0),ps(e,o),ln(e,kr()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(ge(345));case 2:Sl(e,on,xa);break;case 3:if(ps(e,o),(o&130023424)===o&&(t=iC+500-kr(),10<t)){if(Ig(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){qo(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=rS(Sl.bind(null,e,on,xa),t);break}Sl(e,on,xa);break;case 4:if(ps(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-vi(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=kr()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*j6(o/1960))-o,10<o){e.timeoutHandle=rS(Sl.bind(null,e,on,xa),o);break}Sl(e,on,xa);break;case 5:Sl(e,on,xa);break;default:throw Error(ge(329))}}}return ln(e,kr()),e.callbackNode===r?rN.bind(null,e):null}function CS(e,t){var r=md;return e.current.memoizedState.isDehydrated&&(Rl(e,t).flags|=256),e=Xg(e,t),e!==2&&(t=on,on=r,t!==null&&wS(t)),e}function wS(e){on===null?on=e:on.push.apply(on,e)}function V6(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(!xi(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 ps(e,t){for(t&=~nC,t&=~ah,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-vi(t),o=1<<r;e[r]=-1,t&=~o}}function dP(e){if((At&6)!==0)throw Error(ge(327));tu();var t=Ig(e,0);if((t&1)===0)return ln(e,kr()),null;var r=Xg(e,t);if(e.tag!==0&&r===2){var o=Kb(e);o!==0&&(t=o,r=CS(e,o))}if(r===1)throw r=$d,Rl(e,0),ps(e,t),ln(e,kr()),r;if(r===6)throw Error(ge(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sl(e,on,xa),ln(e,kr()),null}function aC(e,t){var r=At;At|=1;try{return e(t)}finally{At=r,At===0&&(lu=kr()+500,rh&&Ps())}}function Il(e){gs!==null&&gs.tag===0&&(At&6)===0&&tu();var t=At;At|=1;var r=Un.transition,o=jt;try{if(Un.transition=null,jt=1,e)return e()}finally{jt=o,Un.transition=r,At=t,(At&6)===0&&Ps()}}function sC(){Sn=Xc.current,nr(Xc)}function Rl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,x6(r)),Vr!==null)for(r=Vr.return;r!==null;){var o=r;switch(BS(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Lg();break;case 3:au(),nr(an),nr(Io),YS();break;case 5:XS(o);break;case 4:au();break;case 13:nr(xr);break;case 19:nr(xr);break;case 10:US(o.type._context);break;case 22:case 23:sC()}r=r.return}if(no=e,Vr=e=ws(e.current,null),ho=Sn=t,Yr=0,$d=null,nC=ah=Nl=0,on=md=null,wl!==null){for(t=0;t<wl.length;t++)if(r=wl[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}wl=null}return e}function oN(e,t){do{var r=Vr;try{if(HS(),Sg.current=Ug,Hg){for(var o=br.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}Hg=!1}if(Tl=0,oo=Xr=br=null,dd=!1,Td=0,oC.current=null,r===null||r.return===null){Yr=1,$d=t,Vr=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=ho,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,f=u.tag;if((u.mode&1)===0&&(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=J_(a);if(m!==null){m.flags&=-257,eP(m,a,s,i,t),m.mode&1&&Z_(i,c,t),t=m,l=c;var h=t.updateQueue;if(h===null){var v=new Set;v.add(l),t.updateQueue=v}else h.add(l);break e}else{if((t&1)===0){Z_(i,c,t),lC();break e}l=Error(ge(426))}}else if(gr&&s.mode&1){var y=J_(a);if(y!==null){(y.flags&65536)===0&&(y.flags|=256),eP(y,a,s,i,t),jS(su(l,s));break e}}i=l=su(l,s),Yr!==4&&(Yr=2),md===null?md=[i]:md.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=WT(i,l,t);G_(i,g);break e;case 1:s=l;var p=i.type,x=i.stateNode;if((i.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ss===null||!Ss.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=BT(i,s,t);G_(i,S);break e}}i=i.return}while(i!==null)}aN(r)}catch(b){t=b,Vr===r&&r!==null&&(Vr=r=r.return);continue}break}while(!0)}function nN(){var e=Gg.current;return Gg.current=Ug,e===null?Ug:e}function lC(){(Yr===0||Yr===3||Yr===2)&&(Yr=4),no===null||(Nl&268435455)===0&&(ah&268435455)===0||ps(no,ho)}function Xg(e,t){var r=At;At|=2;var o=nN();(no!==e||ho!==t)&&(xa=null,Rl(e,t));do try{H6();break}catch(n){oN(e,n)}while(!0);if(HS(),At=r,Gg.current=o,Vr!==null)throw Error(ge(261));return no=null,ho=0,Yr}function H6(){for(;Vr!==null;)iN(Vr)}function U6(){for(;Vr!==null&&!yW();)iN(Vr)}function iN(e){var t=lN(e.alternate,e,Sn);e.memoizedProps=e.pendingProps,t===null?aN(e):Vr=t,oC.current=null}function aN(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=k6(r,t,Sn),r!==null){Vr=r;return}}else{if(r=F6(r,t),r!==null){r.flags&=32767,Vr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Yr=6,Vr=null;return}}if(t=t.sibling,t!==null){Vr=t;return}Vr=t=e}while(t!==null);Yr===0&&(Yr=5)}function Sl(e,t,r){var o=jt,n=Un.transition;try{Un.transition=null,jt=1,G6(e,t,r,o)}finally{Un.transition=n,jt=o}return null}function G6(e,t,r,o){do tu();while(gs!==null);if((At&6)!==0)throw Error(ge(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(ge(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(PW(e,i),e===no&&(Vr=no=null,ho=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||hg||(hg=!0,cN(Ng,function(){return tu(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Un.transition,Un.transition=null;var a=jt;jt=1;var s=At;At|=4,oC.current=null,W6(e,r),eN(r,e),m6(eS),$g=!!Jb,eS=Jb=null,e.current=r,B6(r,e,n),xW(),At=s,jt=a,Un.transition=i}else e.current=r;if(hg&&(hg=!1,gs=e,Kg=n),i=e.pendingLanes,i===0&&(Ss=null),CW(r.stateNode,o),ln(e,kr()),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(qg)throw qg=!1,e=bS,bS=null,e;return(Kg&1)!==0&&e.tag!==0&&tu(),i=e.pendingLanes,(i&1)!==0?e===SS?gd++:(gd=0,SS=e):gd=0,Ps(),null}function tu(){if(gs!==null){var e=WP(Kg),t=Un.transition,r=jt;try{if(Un.transition=null,jt=16>e?16:e,gs===null)var o=!1;else{if(e=gs,gs=null,Kg=0,(At&6)!==0)throw Error(ge(331));var n=At;for(At|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(qe=c;qe!==null;){var u=qe;switch(u.tag){case 0:case 11:case 15:pd(8,u,i)}var f=u.child;if(f!==null)f.return=u,qe=f;else for(;qe!==null;){u=qe;var d=u.sibling,m=u.return;if(QT(u),u===c){qe=null;break}if(d!==null){d.return=m,qe=d;break}qe=m}}}var h=i.alternate;if(h!==null){var v=h.child;if(v!==null){h.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}qe=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,qe=a;else e:for(;qe!==null;){if(i=qe,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:pd(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,qe=g;break e}qe=i.return}}var p=e.current;for(qe=p;qe!==null;){a=qe;var x=a.child;if((a.subtreeFlags&2064)!==0&&x!==null)x.return=a,qe=x;else e:for(a=p;qe!==null;){if(s=qe,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:ih(9,s)}}catch(b){Tr(s,s.return,b)}if(s===a){qe=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,qe=S;break e}qe=s.return}}if(At=n,Ps(),Gi&&typeof Gi.onPostCommitFiberRoot=="function")try{Gi.onPostCommitFiberRoot(Qg,e)}catch{}o=!0}return o}finally{jt=r,Un.transition=t}}return!1}function pP(e,t,r){t=su(r,t),t=WT(e,t,1),e=bs(e,t,1),t=qo(),e!==null&&(Dd(e,1,t),ln(e,t))}function Tr(e,t,r){if(e.tag===3)pP(e,e,r);else for(;t!==null;){if(t.tag===3){pP(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ss===null||!Ss.has(o))){e=su(r,e),e=BT(t,e,1),t=bs(t,e,1),e=qo(),t!==null&&(Dd(t,1,e),ln(t,e));break}}t=t.return}}function q6(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=qo(),e.pingedLanes|=e.suspendedLanes&r,no===e&&(ho&r)===r&&(Yr===4||Yr===3&&(ho&130023424)===ho&&500>kr()-iC?Rl(e,0):nC|=r),ln(e,t)}function sN(e,t){t===0&&((e.mode&1)===0?t=1:(t=rg,rg<<=1,(rg&130023424)===0&&(rg=4194304)));var r=qo();e=Oa(e,t),e!==null&&(Dd(e,t,r),ln(e,r))}function K6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),sN(e,r)}function X6(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(ge(314))}o!==null&&o.delete(t),sN(e,r)}var lN;lN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||an.current)nn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return nn=!1,L6(e,t,r);nn=(e.flags&131072)!==0}else nn=!1,gr&&(t.flags&1048576)!==0&&dT(t,zg,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;wg(e,t),e=t.pendingProps;var n=ou(t,Io.current);eu(t,r),n=ZS(null,t,o,e,n,r);var i=JS();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,sn(o)?(i=!0,kg(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,qS(t),n.updater=nh,t.stateNode=n,n._reactInternals=t,cS(t,o,e,r),t=dS(null,t,o,!0,i,r)):(t.tag=0,gr&&i&&WS(t),Go(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(wg(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=Q6(o),e=mi(o,e),n){case 0:t=fS(null,t,o,e,r);break e;case 1:t=oP(null,t,o,e,r);break e;case 11:t=tP(null,t,o,e,r);break e;case 14:t=rP(null,t,o,mi(o.type,e),r);break e}throw Error(ge(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:mi(o,n),fS(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:mi(o,n),oP(e,t,o,n,r);case 3:e:{if(UT(t),e===null)throw Error(ge(387));o=t.pendingProps,i=t.memoizedState,n=i.element,yT(e,t),jg(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=su(Error(ge(423)),t),t=nP(e,t,o,r,n);break e}else if(o!==n){n=su(Error(ge(424)),t),t=nP(e,t,o,r,n);break e}else for(Cn=xs(t.stateNode.containerInfo.firstChild),wn=t,gr=!0,hi=null,r=hT(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(nu(),o===n){t=_a(e,t,r);break e}Go(e,t,o,r)}t=t.child}return t;case 5:return xT(t),e===null&&aS(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,tS(o,n)?a=null:i!==null&&tS(o,i)&&(t.flags|=32),HT(e,t),Go(e,t,a,r),t.child;case 6:return e===null&&aS(t),null;case 13:return GT(e,t,r);case 4:return KS(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=iu(t,null,o,r):Go(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:mi(o,n),tP(e,t,o,n,r);case 7:return Go(e,t,t.pendingProps,r),t.child;case 8:return Go(e,t,t.pendingProps.children,r),t.child;case 12:return Go(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,er(Wg,o._currentValue),o._currentValue=a,i!==null)if(xi(i.value,a)){if(i.children===n.children&&!an.current){t=_a(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=wa(-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),sS(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(ge(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),sS(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}Go(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,eu(t,r),n=Gn(n),o=o(n),t.flags|=1,Go(e,t,o,r),t.child;case 14:return o=t.type,n=mi(o,t.pendingProps),n=mi(o.type,n),rP(e,t,o,n,r);case 15:return jT(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:mi(o,n),wg(e,t),t.tag=1,sn(o)?(e=!0,kg(t)):e=!1,eu(t,r),zT(t,o,n),cS(t,o,n,r),dS(null,t,o,!0,e,r);case 19:return qT(e,t,r);case 22:return VT(e,t,r)}throw Error(ge(156,t.tag))};function cN(e,t){return LP(e,t)}function Y6(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 Hn(e,t,r,o){return new Y6(e,t,r,o)}function cC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Q6(e){if(typeof e=="function")return cC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===PS)return 11;if(e===TS)return 14}return 2}function ws(e,t){var r=e.alternate;return r===null?(r=Hn(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 Og(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")cC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case zc:return Ol(r.children,n,i,t);case _S:a=8,n|=8;break;case Db:return e=Hn(12,r,t,n|2),e.elementType=Db,e.lanes=i,e;case Ab:return e=Hn(13,r,t,n),e.elementType=Ab,e.lanes=i,e;case Mb:return e=Hn(19,r,t,n),e.elementType=Mb,e.lanes=i,e;case xP:return sh(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vP:a=10;break e;case yP:a=9;break e;case PS:a=11;break e;case TS:a=14;break e;case us:a=16,o=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=Hn(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function Ol(e,t,r,o){return e=Hn(7,e,o,t),e.lanes=r,e}function sh(e,t,r,o){return e=Hn(22,e,o,t),e.elementType=xP,e.lanes=r,e.stateNode={isHidden:!1},e}function Nb(e,t,r){return e=Hn(6,e,null,t),e.lanes=r,e}function Ib(e,t,r){return t=Hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z6(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=mb(0),this.expirationTimes=mb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mb(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function uC(e,t,r,o,n,i,a,s,l){return e=new Z6(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Hn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qS(i),e}function J6(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fc,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function uN(e){if(!e)return Rs;e=e._reactInternals;e:{if(Dl(e)!==e||e.tag!==1)throw Error(ge(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(sn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ge(171))}if(e.tag===1){var r=e.type;if(sn(r))return uT(e,r,t)}return t}function fN(e,t,r,o,n,i,a,s,l){return e=uC(r,o,!0,e,n,i,a,s,l),e.context=uN(null),r=e.current,o=qo(),n=Cs(r),i=wa(o,n),i.callback=t??null,bs(r,i,n),e.current.lanes=n,Dd(e,n,o),ln(e,o),e}function lh(e,t,r,o){var n=t.current,i=qo(),a=Cs(n);return r=uN(r),t.context===null?t.context=r:t.pendingContext=r,t=wa(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=bs(n,t,a),e!==null&&(yi(e,n,a,i),bg(e,n,a)),a}function Yg(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 mP(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function fC(e,t){mP(e,t),(e=e.alternate)&&mP(e,t)}function eB(){return null}var dN=typeof reportError=="function"?reportError:function(e){console.error(e)};function dC(e){this._internalRoot=e}ch.prototype.render=dC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ge(409));lh(e,t,null,null)};ch.prototype.unmount=dC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Il(function(){lh(null,e,null,null)}),t[Ra]=null}};function ch(e){this._internalRoot=e}ch.prototype.unstable_scheduleHydration=function(e){if(e){var t=VP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ds.length&&t!==0&&t<ds[r].priority;r++);ds.splice(r,0,e),r===0&&UP(e)}};function pC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function uh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gP(){}function tB(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=Yg(a);i.call(c)}}var a=fN(t,o,e,0,null,!1,!1,"",gP);return e._reactRootContainer=a,e[Ra]=a.current,Ed(e.nodeType===8?e.parentNode:e),Il(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var s=o;o=function(){var c=Yg(l);s.call(c)}}var l=uC(e,0,!1,null,null,!1,!1,"",gP);return e._reactRootContainer=l,e[Ra]=l.current,Ed(e.nodeType===8?e.parentNode:e),Il(function(){lh(t,l,r,o)}),l}function fh(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=Yg(a);s.call(l)}}lh(t,a,e,n)}else a=tB(r,t,e,n,o);return Yg(a)}BP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=id(t.pendingLanes);r!==0&&($S(t,r|1),ln(t,kr()),(At&6)===0&&(lu=kr()+500,Ps()))}break;case 13:Il(function(){var o=Oa(e,1);if(o!==null){var n=qo();yi(o,e,1,n)}}),fC(e,1)}};DS=function(e){if(e.tag===13){var t=Oa(e,134217728);if(t!==null){var r=qo();yi(t,e,134217728,r)}fC(e,134217728)}};jP=function(e){if(e.tag===13){var t=Cs(e),r=Oa(e,t);if(r!==null){var o=qo();yi(r,e,t,o)}fC(e,t)}};VP=function(){return jt};HP=function(e,t){var r=jt;try{return jt=e,t()}finally{jt=r}};Ub=function(e,t,r){switch(t){case"input":if(Fb(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=th(o);if(!n)throw Error(ge(90));SP(o),Fb(o,n)}}}break;case"textarea":wP(e,r);break;case"select":t=r.value,t!=null&&Yc(e,!!r.multiple,t,!1)}};NP=aC;IP=Il;var rB={usingClientEntryPoint:!1,Events:[Md,Vc,th,PP,TP,aC]},td={findFiberByHostInstance:Cl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},oB={bundleType:td.bundleType,version:td.version,rendererPackageName:td.rendererPackageName,rendererConfig:td.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=AP(e),e===null?null:e.stateNode},findFiberByHostInstance:td.findFiberByHostInstance||eB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(rd=__REACT_DEVTOOLS_GLOBAL_HOOK__,!rd.isDisabled&&rd.supportsFiber))try{Qg=rd.inject(oB),Gi=rd}catch{}var rd;On.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rB;On.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pC(t))throw Error(ge(200));return J6(e,t,null,r)};On.createRoot=function(e,t){if(!pC(e))throw Error(ge(299));var r=!1,o="",n=dN;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=uC(e,1,!1,null,null,r,!1,o,n),e[Ra]=t.current,Ed(e.nodeType===8?e.parentNode:e),new dC(t)};On.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(ge(188)):(e=Object.keys(e).join(","),Error(ge(268,e)));return e=AP(t),e=e===null?null:e.stateNode,e};On.flushSync=function(e){return Il(e)};On.hydrate=function(e,t,r){if(!uh(t))throw Error(ge(200));return fh(null,e,t,!0,r)};On.hydrateRoot=function(e,t,r){if(!pC(e))throw Error(ge(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=dN;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=fN(t,null,e,1,r??null,n,!1,i,a),e[Ra]=t.current,Ed(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 ch(t)};On.render=function(e,t,r){if(!uh(t))throw Error(ge(200));return fh(null,e,t,!1,r)};On.unmountComponentAtNode=function(e){if(!uh(e))throw Error(ge(40));return e._reactRootContainer?(Il(function(){fh(null,null,e,!1,function(){e._reactRootContainer=null,e[Ra]=null})}),!0):!1};On.unstable_batchedUpdates=aC;On.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!uh(r))throw Error(ge(200));if(e==null||e._reactInternals===void 0)throw Error(ge(38));return fh(e,t,r,!1,o)};On.version="18.3.1-next-f1338f8080-20240426"});var bi=zn((RJ,gN)=>{"use strict";function mN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mN)}catch(e){console.error(e)}}mN(),gN.exports=pN()});var vN=zn(mC=>{"use strict";var hN=bi();mC.createRoot=hN.createRoot,mC.hydrateRoot=hN.hydrateRoot;var OJ});var Ee=zn((TJ,dh)=>{"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 dh<"u"&&dh.exports?(t.default=t,dh.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var _N=zn(Ht=>{"use strict";var vC=Symbol.for("react.element"),yC=Symbol.for("react.portal"),gh=Symbol.for("react.fragment"),hh=Symbol.for("react.strict_mode"),vh=Symbol.for("react.profiler"),yh=Symbol.for("react.provider"),xh=Symbol.for("react.context"),dB=Symbol.for("react.server_context"),bh=Symbol.for("react.forward_ref"),Sh=Symbol.for("react.suspense"),Ch=Symbol.for("react.suspense_list"),wh=Symbol.for("react.memo"),Eh=Symbol.for("react.lazy"),pB=Symbol.for("react.offscreen"),ON;ON=Symbol.for("react.module.reference");function Kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vC:switch(e=e.type,e){case gh:case vh:case hh:case Sh:case Ch:return e;default:switch(e=e&&e.$$typeof,e){case dB:case xh:case bh:case Eh:case wh:case yh:return e;default:return t}}case yC:return t}}}Ht.ContextConsumer=xh;Ht.ContextProvider=yh;Ht.Element=vC;Ht.ForwardRef=bh;Ht.Fragment=gh;Ht.Lazy=Eh;Ht.Memo=wh;Ht.Portal=yC;Ht.Profiler=vh;Ht.StrictMode=hh;Ht.Suspense=Sh;Ht.SuspenseList=Ch;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return Kn(e)===xh};Ht.isContextProvider=function(e){return Kn(e)===yh};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vC};Ht.isForwardRef=function(e){return Kn(e)===bh};Ht.isFragment=function(e){return Kn(e)===gh};Ht.isLazy=function(e){return Kn(e)===Eh};Ht.isMemo=function(e){return Kn(e)===wh};Ht.isPortal=function(e){return Kn(e)===yC};Ht.isProfiler=function(e){return Kn(e)===vh};Ht.isStrictMode=function(e){return Kn(e)===hh};Ht.isSuspense=function(e){return Kn(e)===Sh};Ht.isSuspenseList=function(e){return Kn(e)===Ch};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gh||e===vh||e===hh||e===Sh||e===Ch||e===pB||typeof e=="object"&&e!==null&&(e.$$typeof===Eh||e.$$typeof===wh||e.$$typeof===yh||e.$$typeof===xh||e.$$typeof===bh||e.$$typeof===ON||e.getModuleId!==void 0)};Ht.typeOf=Kn});var TN=zn((XJ,PN)=>{"use strict";PN.exports=_N()});var I4=zn(dx=>{"use strict";var HK=I(),UK=Symbol.for("react.element"),GK=Symbol.for("react.fragment"),qK=Object.prototype.hasOwnProperty,KK=HK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,XK={key:!0,ref:!0,__self:!0,__source:!0};function N4(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)qK.call(t,o)&&!XK.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:UK,type:e,key:i,ref:a,props:n,_owner:KK.current}}dx.Fragment=GK;dx.jsx=N4;dx.jsxs=N4});var wr=zn((Y4e,$4)=>{"use strict";$4.exports=I4()});var bx={"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 Sx={"### 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 Send Text To Layer":"SDPPP\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Run Photoshop Action":"SDPPP\u8FD0\u884CPS Action(RunPhotoshopAction)","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:"\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:"\u56FE\u5C42",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_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\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",quality:"\u56FE\u50CF\u8D28\u91CF",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",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","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}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","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","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","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","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","sdppp Run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","{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",Cloud:"\u4E91\u7AEF",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",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 (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var HR=typeof yx<"u"?yx:void 0,Cx="en";typeof navigator<"u"&&navigator.language?Cx=navigator.language=="zh-CN"?"zhcn":"en":HR&&(Cx=HR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function ve(e,...t){let r=Cx=="zhcn"?Sx[e]:e in bx?bx[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 dl(e,t){return e==t||Sx[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return dl(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return ve(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return dl(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return ve(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return dl(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return ve(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return dl(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return ve(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return dl(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return ve(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return dl(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return ve(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return ve(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[ve(e.SPECIAL_LAYER_USE_CANVAS),ve(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[ve(e.SPECIAL_LAYER_NEW_LAYER),ve(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return ve(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 wx={};xx(wx,{JsonPatchError:()=>Pr,_areEquals:()=>Nf,applyOperation:()=>pl,applyPatch:()=>Rc,applyReducer:()=>lz,deepClone:()=>az,getValueByPointer:()=>ml,validate:()=>GR,validator:()=>dm});var nz=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)}}(),iz=Object.prototype.hasOwnProperty;function cm(e,t){return iz.call(e,t)}function um(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)cm(e,n)&&o.push(n);return o}function _r(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function fm(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 Fi(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Pf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function lm(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(lm(e[t]))return!0}else if(typeof e=="object"){for(var o=um(e),n=o.length,i=0;i<n;i++)if(lm(e[o[i]]))return!0}}return!1}function UR(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 Tf=function(e){nz(t,e);function t(r,o,n,i,a){var s=this.constructor,l=e.call(this,UR(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=UR(r,{name:o,index:n,operation:i,tree:a}),l}return t}(Error);var Pr=Tf,az=_r,Ec={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=ml(r,this.path);o&&(o=_r(o));var n=pl(r,{op:"remove",path:this.from}).removed;return pl(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:o}},copy:function(e,t,r){var o=ml(r,this.from);return pl(r,{op:"add",path:this.path,value:_r(o)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Nf(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},sz={add:function(e,t,r){return fm(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:Ec.move,copy:Ec.copy,test:Ec.test,_get:Ec._get};function ml(e,t){if(t=="")return e;var r={op:"_get",path:t};return pl(e,r),r.value}function pl(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):dm(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=ml(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=Nf(e,t.value),a.test===!1)throw new Pr("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 Pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}}else{o||(e=_r(e));var s=t.path||"",l=s.split("/"),c=e,u=1,f=l.length,d=void 0,m=void 0,h=void 0;for(typeof r=="function"?h=r:h=dm;;){if(m=l[u],m&&m.indexOf("~")!=-1&&(m=Pf(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&&h(t,0,e,d)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(r&&!fm(m))throw new Pr("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);fm(m)&&(m=~~m)}if(u>=f){if(r&&t.op==="add"&&m>c.length)throw new Pr("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=sz[t.op].call(t,c,m,e);if(a.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=Ec[t.op].call(t,c,m,e);if(a.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[m],r&&u<f&&(!c||typeof c!="object"))throw new Pr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}}function Rc(e,t,r,o,n){if(o===void 0&&(o=!0),n===void 0&&(n=!0),r&&!Array.isArray(t))throw new Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(e=_r(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=pl(e,t[a],r,!0,n,a),e=i[a].newDocument;return i.newDocument=e,i}function lz(e,t,r){var o=pl(e,t);if(o.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return o.newDocument}function dm(e,t,r,o){if(typeof e!="object"||e===null||Array.isArray(e))throw new Pr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(Ec[e.op]){if(typeof e.path!="string")throw new Pr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Pr('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 Pr("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 Pr("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")&&lm(e.value))throw new Pr("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 Pr("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 Pr("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=GR([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Pr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function GR(e,t,r){try{if(!Array.isArray(e))throw new Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Rc(_r(t),_r(e),r||!0);else{r=r||dm;for(var o=0;o<e.length;o++)r(e[o],o,t,void 0)}}catch(n){if(n instanceof Pr)return n;throw n}}function Nf(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(!Nf(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],!Nf(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var _x={};xx(_x,{compare:()=>pm,generate:()=>Ex,observe:()=>gz,unobserve:()=>mz});var Rx=new WeakMap,cz=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),uz=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function fz(e){return Rx.get(e)}function dz(e,t){return e.observers.get(t)}function pz(e,t){e.observers.delete(t.callback)}function mz(e,t){t.unobserve()}function gz(e,t){var r=[],o,n=fz(e);if(!n)n=new cz(e),Rx.set(e,n);else{var i=dz(n,t);o=i&&i.observer}if(o)return o;if(o={},n.value=_r(e),t){o.callback=t,o.next=null;var a=function(){Ex(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(){Ex(o),clearTimeout(o.next),pz(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 uz(t,o)),o}function Ex(e,t){t===void 0&&(t=!1);var r=Rx.get(e.object);Ox(r.value,e.object,e.patches,"",t),e.patches.length&&Rc(r.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function Ox(e,t,r,o,n){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=um(t),a=um(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(cm(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)?Ox(f,d,r,o+"/"+Fi(u),n):f!==d&&(s=!0,n&&r.push({op:"test",path:o+"/"+Fi(u),value:_r(f)}),r.push({op:"replace",path:o+"/"+Fi(u),value:_r(d)}))}else Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:o+"/"+Fi(u),value:_r(f)}),r.push({op:"remove",path:o+"/"+Fi(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];!cm(e,u)&&t[u]!==void 0&&r.push({op:"add",path:o+"/"+Fi(u),value:_r(t[u])})}}}function pm(e,t,r){r===void 0&&(r=!1);var o=[];return Ox(e,t,o,"",r),o}var mX=Object.assign({},wx,_x,{JsonPatchError:Tf,deepClone:_r,escapePathComponent:Fi,unescapePathComponent:Pf});var mm=Symbol("STORE_MUTATIONS"),Px=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=_r(this._data);Rc(this._data,t),this._version+=t.length,this.storedMinVersion=this._version,this.dispatch(t,r)}get data(){return _r(this._data)}static[mm]=[];constructor(t){this._data=_r(t)}sync(t,r){let o=this._data,n=pm(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:ml(r,i)))})}),o.forEach((n,i)=>{let a=i==="/"?this._data:ml(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 Lr(e,t,r){return e.constructor[mm]||(e.constructor[mm]=[]),e.constructor[mm].push(t),{value:function(...o){let n=_r(this._data);r.value.apply(this,o);let i=pm(n,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,n))}}}var gl=class extends Px{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Or([Lr],gl.prototype,"setSID",1);var Ro=class extends gl{constructor(t,r){super(t||{title:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",progress:0,lastError:"",queueSize:0,executingNodeTitle:"",widgetTableStructure:{widgetTablePath:"",widgetTablePersisted:!1,widgetTableID:"",nodes:{},groups:{},nodeIndexes:[],extraOptions:{}},widgetTableValue:{},widgetTableErrors:{},useSliderForNumberWidget:!1,hasPSDNodes:!1,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){this._data.lastError=t}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setWidgetTableStructure(t){this._data.widgetTableStructure=JSON.parse(JSON.stringify(t))}setWidgetTableValue(t){this._data.widgetTableValue=JSON.parse(JSON.stringify(t))}setWidgetTableErrors(t){this._data.widgetTableErrors=JSON.parse(JSON.stringify(t))}setHasPSDNodes(t){this._data.hasPSDNodes=t}setComfyUserToken(t){this._data.comfyUserToken=t}setUseSliderForNumberWidget(t){this._data.useSliderForNumberWidget=t}};Or([Lr],Ro.prototype,"setWebviewFromSid",1),Or([Lr],Ro.prototype,"setTitle",1),Or([Lr],Ro.prototype,"setProgress",1),Or([Lr],Ro.prototype,"setLastError",1),Or([Lr],Ro.prototype,"setQueueSize",1),Or([Lr],Ro.prototype,"setExecutingNodeTitle",1),Or([Lr],Ro.prototype,"setWidgetTableStructure",1),Or([Lr],Ro.prototype,"setWidgetTableValue",1),Or([Lr],Ro.prototype,"setWidgetTableErrors",1),Or([Lr],Ro.prototype,"setHasPSDNodes",1),Or([Lr],Ro.prototype,"setComfyUserToken",1),Or([Lr],Ro.prototype,"setUseSliderForNumberWidget",1);var zi=class extends gl{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}};Or([Lr],zi.prototype,"setUName",1),Or([Lr],zi.prototype,"setDocument",1),Or([Lr],zi.prototype,"setCanvasStateID",1),Or([Lr],zi.prototype,"setSelectionStateID",1),Or([Lr],zi.prototype,"setHistoryStateID",1),Or([Lr],zi.prototype,"setComfyUserToken",1);var gm=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 Dt=window.comfyAPI.app.app,NX=window.comfyAPI.ui.$el,Oo=window.comfyAPI.api.api;var Tx=class extends gm{createStore(t,r){return new zi(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}},xn=new Tx,Je=new Ro;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,Je.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function KR(){document.title!==Je.data.title&&Je.setTitle(document.title),requestAnimationFrame(KR)}requestAnimationFrame(KR);var qR=!1;async function XR(){if(qR)return Promise.resolve();Oo.user&&Je.setComfyUserToken(Oo.user);let e=await Oo.getSetting("sdppp.useSliderForNumberWidget");e&&Je.setUseSliderForNumberWidget(e),qR=!0}function hz(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function hm(e){return hz(e)}globalThis.sdpppX=globalThis.sdpppX||{};var ma=globalThis.sdpppX;var Wi=class{static makeDocumentDataOptions(t){let r=t.data,o=[`${Xt.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(n=>{let i=r.documents[n];o.push(i.identify)}),o}static findDocumentData(t,r){let o=Xt.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:hm(r).id;return t.data.documents[o]}static makeLayerOptions(t,r){return r.concat(t.layers.map(n=>n.identify))}static getLayerDirtyID(t,r){return t.layers.find(n=>n.identify===r)?.dirtyID||0}static getCanvasDirtyID(t){return t.canvasDirtyID||0}static getSelectionDirtyID(t){return t.selectionDirtyID||0}};function Nx(){let e=xn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(Oo.user&&Oo.user!=r.data.comfyUserToken)return;let o=Wi.makeDocumentDataOptions(r).map(n=>Ix(n,r.data.uname));t.push(...o)}),t}function YR(e,t){let r=[""],o=Oc(e);if(!o)return[];let n=Wi.makeLayerOptions(o.documentData,t);return r.push(...n),r}function QR(){return Oo.user?Object.values(xn.getAllStore()).filter(e=>Oo.user==e.data.comfyUserToken).length>0:xn.storeCount()}function Ix(e,t){return`${t}/${e}`}function Oc(e){if(!e||!e.split)return null;let t=xn.getAllPhotoshopDocumentData(),[r,o]=e.split("/");if(o||(o=r,r=Object.keys(t)[0]),!t[r])return null;let n=Xt.is_SPECIAL_DOCUMENT_CURRENT(o)?t[r].activeDocumentID:hm(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 vz=function(e){let t=Dt.graph.links;return Array.isArray(t)?t.find(o=>o&&o.origin_id==e):t.get(e)};function $x(e){let t=Dt.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(ve("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=vz(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}}ma.findDocumentNodeRecursive=$x;var vm=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 ZR(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 vm(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 JR(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 fi=Object.create(null);fi.open="0";fi.close="1";fi.ping="2";fi.pong="3";fi.message="4";fi.upgrade="5";fi.noop="6";var If=Object.create(null);Object.keys(fi).forEach(e=>{If[fi[e]]=e});var $f={type:"error",data:"parser error"};var rO=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oO=typeof ArrayBuffer=="function",nO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Df=({type:e,data:t},r,o)=>rO&&t instanceof Blob?r?o(t):eO(t,o):oO&&(t instanceof ArrayBuffer||nO(t))?r?o(t):eO(new Blob([t]),o):o(fi[e]+(t||"")),eO=(e,t)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];t("b"+(o||""))},r.readAsDataURL(e)};function tO(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Dx;function iO(e,t){if(rO&&e.data instanceof Blob)return e.data.arrayBuffer().then(tO).then(t);if(oO&&(e.data instanceof ArrayBuffer||nO(e.data)))return t(tO(e.data));Df(e,!1,r=>{Dx||(Dx=new TextEncoder),t(Dx.encode(r))})}var aO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Af=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<aO.length;e++)Af[aO.charCodeAt(e)]=e;var sO=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=Af[e.charCodeAt(o)],a=Af[e.charCodeAt(o+1)],s=Af[e.charCodeAt(o+2)],l=Af[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 yz=typeof ArrayBuffer=="function",Mf=(e,t)=>{if(typeof e!="string")return{type:"message",data:lO(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:xz(e.substring(1),t)}:If[r]?e.length>1?{type:If[r],data:e.substring(1)}:{type:If[r]}:$f},xz=(e,t)=>{if(yz){let r=sO(e);return lO(r,t)}else return{base64:!0,data:e}},lO=(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 cO="",uO=(e,t)=>{let r=e.length,o=new Array(r),n=0;e.forEach((i,a)=>{Df(i,!1,s=>{o[a]=s,++n===r&&t(o.join(cO))})})},fO=(e,t)=>{let r=e.split(cO),o=[];for(let n=0;n<r.length;n++){let i=Mf(r[n],t);if(o.push(i),i.type==="error")break}return o};function dO(){return new TransformStream({transform(e,t){iO(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 Ax;function ym(e){return e.reduce((t,r)=>t+r.length,0)}function xm(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 pO(e,t){Ax||(Ax=new TextDecoder);let r=[],o=0,n=-1,i=!1;return new TransformStream({transform(a,s){for(r.push(a);;){if(o===0){if(ym(r)<1)break;let l=xm(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(ym(r)<2)break;let l=xm(r,2);n=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),o=3}else if(o===2){if(ym(r)<8)break;let l=xm(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){s.enqueue($f);break}n=u*Math.pow(2,32)+c.getUint32(4),o=3}else{if(ym(r)<n)break;let l=xm(r,n);s.enqueue(Mf(i?l:Ax.decode(l),t)),o=0}if(n===0||n>e){s.enqueue($f);break}}}})}var Mx=4;function Zt(e){if(e)return bz(e)}function bz(e){for(var t in Zt.prototype)e[t]=Zt.prototype[t];return e}Zt.prototype.on=Zt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Zt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Zt.prototype.off=Zt.prototype.removeListener=Zt.prototype.removeAllListeners=Zt.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};Zt.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};Zt.prototype.emitReserved=Zt.prototype.emit;Zt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Zt.prototype.hasListeners=function(e){return!!this.listeners(e).length};var ga=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Vo=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),mO="arraybuffer";function bm(e,...t){return t.reduce((r,o)=>(e.hasOwnProperty(o)&&(r[o]=e[o]),r),{})}var Sz=Vo.setTimeout,Cz=Vo.clearTimeout;function ha(e,t){t.useNativeTimers?(e.setTimeoutFn=Sz.bind(Vo),e.clearTimeoutFn=Cz.bind(Vo)):(e.setTimeoutFn=Vo.setTimeout.bind(Vo),e.clearTimeoutFn=Vo.clearTimeout.bind(Vo))}var wz=1.33;function gO(e){return typeof e=="string"?Ez(e):Math.ceil((e.byteLength||e.size)*wz)}function Ez(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 Sm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function hO(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function vO(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 Cm=class extends Error{constructor(t,r,o){super(t),this.description=r,this.context=o,this.type="TransportError"}},va=class extends Zt{constructor(t){super(),this.writable=!1,ha(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 Cm(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=Mf(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=hO(t);return r.length?"?"+r:""}};var Lf=class extends va{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)};fO(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,uO(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]=Sm()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var yO=!1;try{yO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var xO=yO;function Rz(){}var Lx=class extends Lf{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}},os=class e extends Zt{constructor(t,r,o){super(),this.createRequest=t,ha(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=bm(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=Rz,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()}};os.requestsCount=0;os.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",bO);else if(typeof addEventListener=="function"){let e="onpagehide"in Vo?"pagehide":"unload";addEventListener(e,bO,!1)}}function bO(){for(let e in os.requests)os.requests.hasOwnProperty(e)&&os.requests[e].abort()}var Oz=function(){let e=SO({xdomain:!1});return e&&e.responseType!==null}(),ns=class extends Lx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=Oz&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new os(SO,this.uri(),t)}};function SO(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||xO))return new XMLHttpRequest}catch{}if(!t)try{return new Vo[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var CO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Fx=class extends va{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,o=CO?{}:bm(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;Df(o,this.supportsBinary,i=>{try{this.doWrite(o,i)}catch{}n&&ga(()=>{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]=Sm()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},kx=Vo.WebSocket||Vo.MozWebSocket,is=class extends Fx{createSocket(t,r,o){return CO?new kx(t,r,o):r?new kx(t,r):new kx(t)}doWrite(t,r){this.ws.send(r)}};var _c=class extends va{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=pO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=t.readable.pipeThrough(r).getReader(),n=dO();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&&ga(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var zx={websocket:is,webtransport:_c,polling:ns};var _z=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Pz=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pc(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=_z.exec(e||""),i={},a=14;for(;a--;)i[Pz[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=Tz(i,i.path),i.queryKey=Nz(i,i.query),i}function Tz(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 Nz(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,i){n&&(r[n]=i)}),r}var Wx=typeof addEventListener=="function"&&typeof removeEventListener=="function",wm=[];Wx&&addEventListener("offline",()=>{wm.forEach(e=>e())},!1);var hl=class e extends Zt{constructor(t,r){if(super(),this.binaryType=mO,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=Pc(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=Pc(r.host).host);ha(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=vO(this.opts.query)),Wx&&(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"})},wm.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Mx,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+=gO(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,ga(()=>{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(),Wx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=wm.indexOf(this._offlineEventListener);o!==-1&&wm.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};hl.protocol=Mx;var Em=class extends hl{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;hl.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;hl.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}},Tc=class extends Em{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=>zx[n]).filter(n=>!!n)),super(t,o)}};var sQ=Tc.protocol;function wO(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=Pc(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 Gx={};xx(Gx,{Decoder:()=>Hx,Encoder:()=>Vx,PacketType:()=>Rt,protocol:()=>PO});var $z=typeof ArrayBuffer=="function",Dz=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,EO=Object.prototype.toString,Az=typeof Blob=="function"||typeof Blob<"u"&&EO.call(Blob)==="[object BlobConstructor]",Mz=typeof File=="function"||typeof File<"u"&&EO.call(File)==="[object FileConstructor]";function Ff(e){return $z&&(e instanceof ArrayBuffer||Dz(e))||Az&&e instanceof Blob||Mz&&e instanceof File}function kf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,o=e.length;r<o;r++)if(kf(e[r]))return!0;return!1}if(Ff(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return kf(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&kf(e[r]))return!0;return!1}function RO(e){let t=[],r=e.data,o=e;return o.data=Bx(r,t),o.attachments=t.length,{packet:o,buffers:t}}function Bx(e,t){if(!e)return e;if(Ff(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]=Bx(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]=Bx(e[o],t));return r}return e}function OO(e,t){return e.data=jx(e.data,t),delete e.attachments,e}function jx(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]=jx(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=jx(e[r],t));return e}var Lz=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],PO=5,Rt;(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"})(Rt||(Rt={}));var Vx=class{constructor(t){this.replacer=t}encode(t){return(t.type===Rt.EVENT||t.type===Rt.ACK)&&kf(t)?this.encodeAsBinary({type:t.type===Rt.EVENT?Rt.BINARY_EVENT:Rt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Rt.BINARY_EVENT||t.type===Rt.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=RO(t),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}};function _O(e){return Object.prototype.toString.call(e)==="[object Object]"}var Hx=class e extends Zt{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===Rt.BINARY_EVENT;o||r.type===Rt.BINARY_ACK?(r.type=o?Rt.EVENT:Rt.ACK,this.reconstructor=new Ux(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Ff(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(Rt[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===Rt.BINARY_EVENT||o.type===Rt.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 Rt.CONNECT:return _O(r);case Rt.DISCONNECT:return r===void 0;case Rt.CONNECT_ERROR:return typeof r=="string"||_O(r);case Rt.EVENT:case Rt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Lz.indexOf(r[0])===-1);case Rt.ACK:case Rt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Ux=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=OO(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function bn(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var kz=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Nc=class extends Zt{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=[bn(t,"open",this.onopen.bind(this)),bn(t,"packet",this.onpacket.bind(this)),bn(t,"error",this.onerror.bind(this)),bn(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(kz.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:Rt.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:Rt.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 Rt.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 Rt.EVENT:case Rt.BINARY_EVENT:this.onevent(t);break;case Rt.ACK:case Rt.BINARY_ACK:this.onack(t);break;case Rt.DISCONNECT:this.ondisconnect();break;case Rt.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:Rt.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:Rt.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 vl(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}vl.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)==0?e-r:e+r}return Math.min(e,this.max)|0};vl.prototype.reset=function(){this.attempts=0};vl.prototype.setMin=function(e){this.ms=e};vl.prototype.setMax=function(e){this.max=e};vl.prototype.setJitter=function(e){this.jitter=e};var Ic=class extends Zt{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,ha(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 vl({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||Gx;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 Tc(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=bn(r,"open",function(){o.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=bn(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(bn(t,"ping",this.onping.bind(this)),bn(t,"data",this.ondata.bind(this)),bn(t,"error",this.onerror.bind(this)),bn(t,"close",this.onclose.bind(this)),bn(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){ga(()=>{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 Nc(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 zf={};function Wf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=wO(e,t.path||"/socket.io"),o=r.source,n=r.id,i=r.path,a=zf[n]&&i in zf[n].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new Ic(o,t):(zf[n]||(zf[n]=new Ic(o,t)),l=zf[n]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Wf,{Manager:Ic,Socket:Nc,io:Wf,connect:Wf});var TO=`504
|
|
`;var Rm=TO.trim();var qx=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=Wf(t,{transports:["websocket"],path:r,query:{api_level:Rm},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 NO(...e){return e.reduce((t,r)=>r(t),qx)}function IO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,o)=>{try{r.action=="extractPSD"&&Dt.graph.nodes.forEach(n=>{n.type=="SDPPP Get Document"&&this.extractPSD(n,r.params.from_sid,"")}),o({})}catch(n){o({error:n.message})}})}async importPSDDataURLFromPhotoshop(t,r,o){let n=await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:o,document_identify:r}},l=>{a(l.data)})});var i=new FileReader;return i.readAsDataURL(n),new Promise(a=>{i.onloadend=function(){var s=i.result;a(s)}})}async exportPSDDataURLToPhotoshop(t,r,o,n){let i=await fetch(o).then(a=>a.arrayBuffer());await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:n,document_identify:r,data:i}},l=>{a(l)})})}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)})})}async getSpecialIdentifierValue(t,r){return new Promise((o,n)=>{this.socket.emit("B_photoshop",{action:"getSpecialIdentifierValue",sid:t,params:r},i=>{i&&i.error?n(new Error(i.error)):o(i)})})}async extractPSD(t,r,o){t.properties.psd&&await this.exportPSDDataURLToPhotoshop(r,o,t.properties.psd,this.socket.id||"??").then(async()=>{await new Promise(n=>setTimeout(n,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}}}var $O={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var as=[];ma.widgetable=ma.widgetable||{};ma.widgetable.add=function(e,t){typeof t=="function"?as.push([e,{formatter:t,setter:null}]):as.push([e,t])};function _m(e,t,r){let o=as.find(([s])=>s=="__DEFAULT__"),n=as.find(([s])=>Kx(s,e.type))||o,i=!1;if(n){let s=n[1].setter;s&&(i=!!s(e,t,r))}i||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(Dt.workflowManager||Dt.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function Bf(e){let t={},r=as.find(([o])=>o=="__DEFAULT__");return e.nodes.forEach(o=>{if(!o.widgets||o.widgets.length==0)return;let n=as.find(([i])=>Kx(i,o.type))||r;if(n){let i=n[1].formatter(o);i&&(t[o.id]=i.widgets.map(a=>a.value))}}),t}function Pm(e,t){if(!e)return{widgetTableID:"",widgetTablePath:"",widgetTablePersisted:!1,groups:{},nodes:{},nodeIndexes:[],extraOptions:{useSliderForNumberWidget:Je.data.useSliderForNumberWidget}};let r=e.groups.map(n=>(n.recomputeInsideNodes(),{id:n.id,name:n.title,color:n.color,nodeIDs:n.nodes.map(i=>i.id)})),o=e.nodes.map(n=>{if(n.mode!=0)return;let i=Om(n);if(!i||i.startsWith(".")||!n.widgets||n.widgets.length==0)return;let a=as.find(([u])=>Kx(u,n.type));if(a)try{let u=a[1].formatter(n);if(u)return u.id=n.id,u.uiWeightSum=u.widgets.reduce((f,d)=>f+(d.uiWeight||12),0),u}catch(u){return{id:n.id,title:i,uiWeightSum:12,widgets:[{outputType:"error",value:ve("convert widget {0} failed:",a[0])+(u.message||u||"")+(u?.stack||"")}]}}if(!i.startsWith("#"))return null;let s=n.widgets,l=as.find(([u])=>u=="__DEFAULT__");if(l){let u=l[1].formatter(n);if(u)return Object.assign(u,{uiWeightSum:u.widgets.reduce((f,d)=>f+(d.uiWeight||12),0)})}let c={id:n.id,title:i,widgets:s.map(u=>({name:u.label||u.name,outputType:u.type||"string",value:u.value,options:u.options}))};return Object.assign(c,{uiWeightSum:c.widgets.reduce((u,f)=>u+(f.uiWeight||12),0)})}).filter(Boolean).sort((n,i)=>{let a=Om(n),s=Om(i);return a=a.startsWith("#")?a.slice(1).trim():a.trim(),s=s.startsWith("#")?s.slice(1).trim():s.trim(),a.localeCompare(s)});return{widgetTablePath:t.path,widgetTablePersisted:t.isPersisted,widgetTableID:t.activeState.id,groups:r,nodes:o.reduce((n,i)=>(n[i.id]=i,n),{}),nodeIndexes:o.map(n=>n.id),extraOptions:{useSliderForNumberWidget:Je.data.useSliderForNumberWidget}}}function Kx(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function Om(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}ma.getNodeTitle=Om;var zz=new Map,yl=zz;function AO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=Dt.workflowManager||Dt.extensionManager.workflow,this.socket.on("F_workflow",async(r,o)=>{if(r.action=="open"||r.action=="save"||r.action=="list"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout"||r.action=="interrupt"||r.action=="clearQueue"||r.action=="reboot")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 f=function(m){let h={};return Object.keys(m).forEach(v=>{h[v.split(":")[0]]=m[v].errors.map(JSON.stringify).join(`
|
|
`)}),h};var n=f;let a=await Dt.graphToPrompt(),s=!1,l="",c={},u="";try{let m=await Oo.queuePrompt(0,a);m.node_errors&&Object.keys(m.node_errors).length>0&&(s=!0,c=f(m.node_errors)),u=m.prompt_id}catch(m){m.response?(s=!0,c=f(m.response.node_errors)):(s=!0,l=m.stack)}if(s){l?Je.setLastError(l):Je.setWidgetTableErrors(c);break}yl.set(u,o);for(let m of a.workflow.nodes){let h=Dt.graph.getNodeById(m.id);if(h.widgets)for(let v of h.widgets)v.afterQueued&&v.afterQueued()}this.workflowManager.activeWorkflow.changeTracker.checkState()}}async list(){let r=this.workflowManager.workflows.map(o=>o.path.replace("workflows/",""));try{let o=new Headers,n=localStorage.getItem("Comfy.userId");n&&o.set("comfy-user",n);let i=await fetch("./api/userdata/workflows%2F.index.json",{headers:o});if(i.ok){let s=(await i.json()).favorites.map(l=>l.replace("workflows/",""));r.sort((l,c)=>{let u=s.includes(l),f=s.includes(c);return u&&!f?-1:!u&&f?1:0})}}catch(o){console.warn("Error fetching favorites, returning unsorted workflows:",o)}return r}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:o,value:n})=>{let i=Dt.graph.nodes.find(a=>a.id==r);!i||n==i.widgets[o].value||_m(i,o,n)})}async open(t){let{workflow_path:r}=t;try{r.startsWith("sdppp://")?await this.openSDPPPWorkflow(t):await this.openComfyWorkflow(t)}catch(o){throw o}}async openSDPPPWorkflow(t){let r=t.workflow_path.replace("sdppp://",""),o=await fetch("/sd-ppp-static/sdppp-workflows/"+r).then(n=>n.json());await Dt.loadGraphData(o)}async openComfyWorkflow(t){let{workflow_path:r,from_sid:o,reset:n}=t,i=this.workflowManager.workflows.find(a=>a.fullFilename===r||a.path===r||a.path==="workflows/"+r);(i.isOpen||this.workflowManager.isOpen?.(i))&&!n||(this.workflowManager.openWorkflows.length===1?await Dt.loadGraphData($O):await DO(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(a=>requestAnimationFrame(a)),await DO(this.workflowManager,i),await new Promise(a=>setTimeout(a,500)),Je.data.widgetTableStructure&&await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:o,params:{widgetTableID:Je.data.widgetTableStructure.widgetTableID,widgetTablePath:Je.data.widgetTableStructure.widgetTablePath,widgetTablePersisted:Je.data.widgetTableStructure.widgetTablePersisted}},a=>{this.setWidgetValue(a)}))}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=Dt.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 interrupt(t){await Dt.api.interrupt()}async clearQueue(t){await Dt.api.clearItems("queue")}async reboot(t){let r=await fetch("./api/manager/reboot");return r.status==404?{error:ve("ComfyManager not found, cannot reboot"),success:!1}:r.status==200?{success:!0}:{error:ve("Failed to reboot ComfyUI")+r.statusText,success:!1}}}}async function DO(e,t){Dt.workflowManager==e?await t.load():(await e.openWorkflow(t),await Dt.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var Ho=class e extends NO(ZR(Je,"comfy"),JR(xn,"photoshop"),IO,AO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};function Tm(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"")}var Nm=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)}},Im=class extends Nm{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}}},ss=class e extends Im{static create(t,r){let o=Nx(),n=t.size.slice(0),i=t.addWidget("combo",r,o[0]||"",()=>{},{forceInput:!0,values:Nx});return i.serializeValue=async()=>{let a=Oc(i.value);if(!a)return JSON.stringify({instance_id:ve("document {0} not found",i.value),identify:"",dirtyID:0});let s=a.identify;return Xt.is_SPECIAL_DOCUMENT_CURRENT(s)&&(s=(await Ho.instance.getSpecialIdentifierValue(a.instance_id,{identifier:s})).value),JSON.stringify({instance_id:a.instance_id,identify:s,canvasDirtyID:a.documentData.canvasDirtyID,selectionDirtyID:a.documentData.selectionDirtyID})},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("/");Xt.is_SPECIAL_DOCUMENT_CURRENT(n[1])&&(r.value=n[0]+"/"+Xt.getSpecialDocumentCurrent())}})}update(){LO(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Xt.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=xn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=Ix(r.data.documents[r.data.activeDocumentID].identify,t)}}},$c=class e extends Im{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=Xt.fixI18n(n))}),r.serializeValue=async()=>{let n=this.documentWidgetByLinked;if(!n)return JSON.stringify({identify:r.value,dirtyID:0});let i=Oc(n.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await Ho.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Wi.getCanvasDirtyID(i.documentData):s=Wi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})}}static link(t,r,o){if(r.type=="combo")return new e(t,r,o);let n=e.create(t,r.name,o),i=t.widgets.indexOf(r);return t.widgets[i]=t.widgets.pop(),n}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=Oc(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}}}}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 e(t,i,{extraOptions:o.extraOptions})}},Wz={extraOptions:[],documentWidgetInNode:null},jf=class e extends $c{documentWidgetInNode;constructor(t,r,o=Wz){super(t,r,o),this.documentWidgetInNode=o.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),r.serializeValue=async()=>{let n=this.documentWidgetInNode||this.documentWidgetByLinked;if(!n)return JSON.stringify({identify:r.value,dirtyID:0});let i=Oc(n.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await Ho.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Wi.getCanvasDirtyID(i.documentData):s=Wi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})},this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=YR(t.widget.value,this.extraOptions),LO(this.widget,this.widget.options.values))}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 e(t,i,{documentWidgetInNode:o.documentWidgetInNode,extraOptions:o.extraOptions})}},MO=0,Dc=class extends Nm{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={lastOpenedWorkflow:Tm(Je.data.widgetTableStructure.widgetTablePath)},i=$x(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(()=>{xn.storeCount()==0&&Date.now()-MO>3e3&&(MO=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`<h2
|
|
style="color: var(--fg-color);">${ve("How to use .ccx file")}</h2><h4
|
|
style="color: var(--fg-color);">${ve("1. If you have installed Adobe Creative Cloud")}</h4><p
|
|
style="color: var(--fg-color);">${ve("Just double click the .ccx file, it will install the plugin automatically")}</p><h4
|
|
style="color: var(--fg-color);">${ve("2. If you don't have Adobe Creative Cloud")}</h4><p
|
|
style="color: var(--fg-color);">${ve("Rename .ccx to .zip and extract it into ")}<i>[${ve("Photoshop directory")}]/Plug-ins</i> ${ve("or")} <i>[${ve("Photoshop directory")}]/Plug-ins/Generator</i></p><img
|
|
width=400 src="/sd-ppp-static/ccx-help.png"/>
|
|
`)},300))})}update(){this.widget.label=xn.storeCount()>0&&Ho.instance.id?ve("current ComfyUI pageid: {0}",Ho.instance.id.slice(0,4)):ve("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function LO(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 ya=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",Rm)}};var Bi=class extends ya{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new Dc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||QR()||(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(ve("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var $m=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},Vf=class extends $m{get documentWidget(){return kO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},Hf=class extends $m{get documentWidget(){return kO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function kO(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 ya.nodeMap.get(o)}var Wn=class extends Bi{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof Vf||r instanceof Hf));return t?t.documentWidget:this.sdpppWidgets.find(r=>r instanceof ss)}inputs=[];sdpppWidgets=[];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=ss.link(t,this.node.widgets[o]);r=r||a,this.sdpppWidgets.push(a)}if(i[1].sdppp_type=="LAYER_select"){let a=$c.link(t,this.node.widgets[o],{extraOptions:Xt.getSpecialLayerForGet()});this.sdpppWidgets.push(a)}}}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 Vf(t,o)),i[1].sdppp_type=="LAYER"&&this.inputs.push(new Hf(t,o))}}async update(){this.node.widgets?.forEach(t=>{if(!t.label)try{t.label=ve(t.name)}catch{t.label=t.name}}),this.sdpppWidgets?.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.sdpppWidgets.forEach(i=>{(i instanceof $c||i instanceof Dc)&&i.linkDocumentWidget(n)})}})}};var Dm=class extends Wn{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Ac=class extends Wn{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Am=class extends Wn{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Mm=class extends Wn{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},Lm=class extends Wn{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}},km=class extends Bi{async update(){super.update(),this.node.inputs[0].label=ve(this.node.inputs[0].name),this.node.inputs[1].label=ve(this.node.inputs[1].name),this.node.outputs[0]&&(this.node.outputs[0].label=ve(this.node.outputs[0].name))}},Fm=class extends Bi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}constructor(t){super(t)}},zm=class extends Wn{get documentWidget(){return this.sdpppWidgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&Ho.instance.exportPSDDataURLToPhotoshop(t,r,this.node.properties.psd,Je.data.ssid).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=xn.getAllPhotoshopDocumentData(),[o,n]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[o].sid,n):Ho.instance.importPSDDataURLFromPhotoshop(r[o].sid,n,Je.data.ssid).then(i=>{this.node.setProperty("psd",i)})},{})}async update(){super.update(),this.node.outputs.forEach(t=>t.label=ve(t.name)),this.node.properties.psd?(Je.setHasPSDNodes(!0),this.psdWidget.label=ve("extract saved .psd to Photoshop")):(Je.setHasPSDNodes(!1),this.psdWidget.label=ve("save .psd to this workflow"))}},Wm=class extends Wn{async update(){super.update(),this.node.inputs.forEach(t=>t.label=ve(t.name)),this.node.outputs.forEach(t=>t.label=ve(t.name))}};var Bm=class extends Bi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=ss.create(t,"document"),o=jf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForGet()});super(t),this.documentWidget=r,this.layerWidget=o,this.node.widgets[0].name=="quality"?(this.node.widgets[1]=r.widget,this.node.widgets[2]=o.widget):(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(Vm["SDPPP Get Selection"],{pos:this.node.pos});new Ac(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(Vm.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]}else+t.properties["sdppp-version"]<504&&this.node.widgets[0].name=="quality"&&(this.node.widgets[0].value=100,this.node.widgets[1].value=t.widgets_values[0],this.node.widgets[2].value=t.widgets_values[1]);super.onConfigure(t)}async update(){this.documentWidget.lockMode(this.layerLinked,ve("document linked")),this.layerWidget.lockMode(this.layerLinked,ve("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets.forEach(t=>{if(!t.label)try{t.label=ve(t.name)}catch{}}),this.node.inputs.forEach(t=>{if(!t.label)try{t.label=ve(t.name)}catch{}}),this.node.outputs.forEach(t=>{if(!t.label)try{t.label=ve(t.name)}catch{}})}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},jm=class extends Bi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=ss.create(t,"document"),o=jf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForSend()});super(t),this.documentWidget=r,this.layerWidget=o}async update(){this.documentWidget?.lockMode(this.layerLinked,ve("document linked")),this.layerWidget?.lockMode(this.layerLinked,ve("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=ve(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=ve(this.node.widgets[1].name)),this.node.inputs[0].label=ve(this.node.inputs[0].name),this.node.inputs[1].label=ve(this.node.inputs[1].name),this.node.inputs[2].label=ve(this.node.inputs[2].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==1&&(this.layerLinked=r)}};var Xx={"Get Image From Photoshop Layer":Bm,"Send Images To Photoshop":jm,"SDPPP Send Text To Layer":km,"SDPPP Get Text From Layer":Fm,"SDPPP Parse Layer Info":Am,"SDPPP Get Linked Layers":Lm,"SDPPP Get Layers In Group":Mm,"SDPPP Get Layer By ID":Dm,"SDPPP Get Document":zm,"SDPPP Get Selection":Ac,"SDPPP Run Photoshop Action":Wm},Vm={};function FO(e,t){let r=e.comfyClass||t.name;if(Vm[r]=t,r in Xx)e.title=ve(t.display_name),t.display_name=ve(t.display_name),ya.registerNodeType(e,t,Xx[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 Xx&&(n=!0)}),n&&ya.registerNodeType(e,t,Wn)}else return}var kR=E(vN(),1),FR=E(I(),1);var yN=`#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;
|
|
border: 1px solid var(--border-color);
|
|
cursor: pointer;
|
|
}
|
|
.sdppp-photoshop-icon {
|
|
background-image: url("https://upload.wikimedia.org/wikipedia/commons/a/af/Adobe_Photoshop_CC_icon.svg");
|
|
}
|
|
.sdppp-premiere-icon {
|
|
background-image: url("https://upload.wikimedia.org/wikipedia/commons/4/40/Adobe_Premiere_Pro_CC_icon.svg");
|
|
}
|
|
`;var _f=E(I(),1);var D4=E(I(),1);function ee(){return ee=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},ee.apply(null,arguments)}var Nh=E(I());function pe(e){"@babel/helpers - typeof";return pe=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},pe(e)}var iB=Symbol.for("react.element"),aB=Symbol.for("react.transitional.element"),sB=Symbol.for("react.fragment");function kd(e){return e&&pe(e)==="object"&&(e.$$typeof===iB||e.$$typeof===aB)&&e.type===sB}var xN=E(I());function Si(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return xN.default.Children.forEach(e,function(o){o==null&&!t.keepEmpty||(Array.isArray(o)?r=r.concat(Si(o)):kd(o)&&o.props?r=r.concat(Si(o.props.children,t)):r.push(o))}),r}var gC={},lB=[],cB=function(t){lB.push(t)};function Al(e,t){if(0)var r}function uB(e,t){if(0)var r}function bN(){gC={}}function SN(e,t,r){!t&&!gC[r]&&(e(!1,r),gC[r]=!0)}function ph(e,t){SN(Al,e,t)}function CN(e,t){SN(uB,e,t)}ph.preMessage=cB;ph.resetWarned=bN;ph.noteOnce=CN;var Vt=ph;function wN(e,t){if(pe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(pe(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mh(e){var t=wN(e,"string");return pe(t)=="symbol"?t:t+""}function T(e,t,r){return(t=mh(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(r),!0).forEach(function(o){T(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EN(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}var RN=E(I()),hC=E(bi());function Ml(e){return e instanceof HTMLElement||e instanceof SVGElement}function fB(e){return e&&pe(e)==="object"&&Ml(e.nativeElement)?e.nativeElement:Ml(e)?e:null}function Ll(e){var t=fB(e);if(t)return t;if(e instanceof RN.default.Component){var r;return(r=hC.default.findDOMNode)===null||r===void 0?void 0:r.call(hC.default,e)}return null}var Rh=E(I()),Fd=E(TN());var NN=E(I());function Ki(e,t,r){var o=NN.useRef({});return(!("value"in o.current)||r(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}var mB=Number(Rh.version.split(".")[0]),zd=function(t,r){typeof t=="function"?t(r):pe(t)==="object"&&t&&"current"in t&&(t.current=r)},Fr=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){zd(a,i)})}},_n=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Ki(function(){return Fr.apply(void 0,r)},r,function(n,i){return n.length!==i.length||n.every(function(a,s){return a!==i[s]})})},Ci=function(t){var r,o;if(!t)return!1;if(IN(t)&&mB>=19)return!0;var n=(0,Fd.isMemo)(t)?t.type.type:t.type;return!(typeof n=="function"&&!((r=n.prototype)!==null&&r!==void 0&&r.render)&&n.$$typeof!==Fd.ForwardRef||typeof t=="function"&&!((o=t.prototype)!==null&&o!==void 0&&o.render)&&t.$$typeof!==Fd.ForwardRef)};function IN(e){return(0,Rh.isValidElement)(e)&&!kd(e)}var Ts=function(t){if(t&&IN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var zr=E(I());var wi=E(I()),Oh=wi.createContext(null);function $N(e){var t=e.children,r=e.onBatchResize,o=wi.useRef(0),n=wi.useRef([]),i=wi.useContext(Oh),a=wi.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 wi.createElement(Oh.Provider,{value:a},t)}var AN=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}()}(),xC=typeof window<"u"&&typeof document<"u"&&window.document===document,_h=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")()}(),gB=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_h):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),hB=2;function vB(e,t){var r=!1,o=!1,n=0;function i(){r&&(r=!1,e()),o&&s()}function a(){gB(i)}function s(){var l=Date.now();if(r){if(l-n<hB)return;o=!0}else r=!0,o=!1,setTimeout(a,t);n=l}return s}var yB=20,xB=["top","right","bottom","left","width","height","size","weight"],bB=typeof MutationObserver<"u",SB=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=vB(this.refresh.bind(this),yB)}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(){!xC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),bB?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!xC||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,o=r===void 0?"":r,n=xB.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}(),MN=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},fu=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||_h},LN=Th(0,0,0,0);function Ph(e){return parseFloat(e)||0}function DN(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+Ph(i)},0)}function CB(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]=Ph(a)}return r}function wB(e){var t=e.getBBox();return Th(0,0,t.width,t.height)}function EB(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return LN;var o=fu(e).getComputedStyle(e),n=CB(o),i=n.left+n.right,a=n.top+n.bottom,s=Ph(o.width),l=Ph(o.height);if(o.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=DN(o,"left","right")+i),Math.round(l+a)!==r&&(l-=DN(o,"top","bottom")+a)),!OB(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 Th(n.left,n.top,s,l)}var RB=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof fu(e).SVGGraphicsElement}:function(e){return e instanceof fu(e).SVGElement&&typeof e.getBBox=="function"}}();function OB(e){return e===fu(e).document.documentElement}function _B(e){return xC?RB(e)?wB(e):EB(e):LN}function PB(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 MN(a,{x:t,y:r,width:o,height:n,top:r,right:t+o,bottom:n+r,left:t}),a}function Th(e,t,r,o){return{x:e,y:t,width:r,height:o}}var TB=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Th(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=_B(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}(),NB=function(){function e(t,r){var o=PB(r);MN(this,{target:t,contentRect:o})}return e}(),IB=function(){function e(t,r,o){if(this.activeObservations_=[],this.observations_=new AN,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 fu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new TB(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 fu(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 NB(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}(),kN=typeof WeakMap<"u"?new WeakMap:new AN,FN=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=SB.getInstance(),o=new IB(t,r,this);kN.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){FN.prototype[e]=function(){var t;return(t=kN.get(this))[e].apply(t,arguments)}});var $B=function(){return typeof _h.ResizeObserver<"u"?_h.ResizeObserver:FN}(),zN=$B;var Ns=new Map;function DB(e){e.forEach(function(t){var r,o=t.target;(r=Ns.get(o))===null||r===void 0||r.forEach(function(n){return n(o)})})}var WN=new zN(DB);function BN(e,t){Ns.has(e)||(Ns.set(e,new Set),WN.observe(e)),Ns.get(e).add(t)}function jN(e,t){Ns.has(e)&&(Ns.get(e).delete(t),Ns.get(e).size||(WN.unobserve(e),Ns.delete(e)))}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VN(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,mh(o.key),o)}}function ct(e,t,r){return t&&VN(e.prototype,t),r&&VN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Is(e,t){return Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Is(e,t)}function Nr(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&&Is(e,t)}function kl(e){return kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kl(e)}function Wd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wd=function(){return!!e})()}function et(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HN(e,t){if(t&&(pe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return et(e)}function Ir(e){var t=Wd();return function(){var r,o=kl(e);if(t){var n=kl(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return HN(this,r)}}var UN=E(I()),GN=function(e){Nr(r,e);var t=Ir(r);function r(){return lt(this,r),t.apply(this,arguments)}return ct(r,[{key:"render",value:function(){return this.props.children}}]),r}(UN.Component);function AB(e,t){var r=e.children,o=e.disabled,n=zr.useRef(null),i=zr.useRef(null),a=zr.useContext(Oh),s=typeof r=="function",l=s?r(n):r,c=zr.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&zr.isValidElement(l)&&Ci(l),f=u?Ts(l):null,d=_n(f,n),m=function(){var g;return Ll(n.current)||(n.current&&pe(n.current)==="object"?Ll((g=n.current)===null||g===void 0?void 0:g.nativeElement):null)||Ll(i.current)};zr.useImperativeHandle(t,function(){return m()});var h=zr.useRef(e);h.current=e;var v=zr.useCallback(function(y){var g=h.current,p=g.onResize,x=g.data,S=y.getBoundingClientRect(),b=S.width,w=S.height,C=y.offsetWidth,R=y.offsetHeight,_=Math.floor(b),O=Math.floor(w);if(c.current.width!==_||c.current.height!==O||c.current.offsetWidth!==C||c.current.offsetHeight!==R){var N={width:_,height:O,offsetWidth:C,offsetHeight:R};c.current=N;var k=C===Math.round(b)?b:C,L=R===Math.round(w)?w:R,j=P(P({},N),{},{offsetWidth:k,offsetHeight:L});a?.(j,y,x),p&&Promise.resolve().then(function(){p(j,y)})}},[]);return zr.useEffect(function(){var y=m();return y&&!o&&BN(y,v),function(){return jN(y,v)}},[n.current,o]),zr.createElement(GN,{ref:i},u?zr.cloneElement(l,{ref:d}):l)}var MB=zr.forwardRef(AB),qN=MB;var LB="rc-observer-key";function kB(e,t){var r=e.children,o=typeof r=="function"?[r]:Si(r);return o.map(function(n,i){var a=n?.key||"".concat(LB,"-").concat(i);return Nh.createElement(qN,ee({},e,{key:a,ref:i===0?t:void 0}),n)})}var KN=Nh.forwardRef(kB);KN.Collection=$N;var cn=KN;function Bd(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 XN(e){if(Array.isArray(e))return Bd(e)}function Ih(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function du(e,t){if(e){if(typeof e=="string")return Bd(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)?Bd(e,t):void 0}}function YN(){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 se(e){return XN(e)||Ih(e)||du(e)||YN()}var ZN=function(t){return+setTimeout(t,16)},JN=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(ZN=function(t){return window.requestAnimationFrame(t)},JN=function(t){return window.cancelAnimationFrame(t)});var QN=0,bC=new Map;function eI(e){bC.delete(e)}var tI=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;QN+=1;var o=QN;function n(i){if(i===0)eI(o),t();else{var a=ZN(function(){n(i-1)});bC.set(o,a)}}return n(r),o};tI.cancel=function(e){var t=bC.get(e);return eI(e),JN(t)};var ut=tI;var ir=E(I());function $h(e){if(Array.isArray(e))return e}function rI(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 Dh(){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 $h(e)||rI(e,t)||du(e,t)||Dh()}function FB(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 $s=FB;function Yt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pu(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 oI="data-rc-order",nI="data-rc-priority",zB="rc-util-key",SC=new Map;function iI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):zB}function Ah(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function WB(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function CC(e){return Array.from((SC.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function aI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yt())return null;var r=t.csp,o=t.prepend,n=t.priority,i=n===void 0?0:n,a=WB(o),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(oI,a),s&&i&&l.setAttribute(nI,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=Ah(t),u=c.firstChild;if(o){if(s){var f=(t.styles||CC(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(oI)))return!1;var m=Number(d.getAttribute(nI)||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 sI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ah(t);return(t.styles||CC(r)).find(function(o){return o.getAttribute(iI(t))===e})}function Xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=sI(e,t);if(r){var o=Ah(t);o.removeChild(r)}}function BB(e,t){var r=SC.get(e);if(!r||!pu(document,r)){var o=aI("",t),n=o.parentNode;SC.set(e,n),e.removeChild(o)}}function yo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Ah(r),n=CC(o),i=P(P({},r),{},{styles:n});BB(o,i);var a=sI(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=aI(e,i);return u.setAttribute(iI(i),t),u}var bI=E(I());function lI(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 Ae(e,t){if(e==null)return{};var r,o,n=lI(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 jB(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(Vt(!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&&pe(i)==="object"&&pe(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 Yi=jB;var Lh=E(I());var VB="%";function Mh(e){return e.join(VB)}var HB=function(){function e(t){lt(this,e),T(this,"instanceId",void 0),T(this,"cache",new Map),this.instanceId=t}return ct(e,[{key:"get",value:function(r){return this.opGet(Mh(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,o){return this.opUpdate(Mh(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}(),cI=HB;var Qi="data-token-hash",$o="data-css-hash";var Ei="__cssinjs_instance__";function uI(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat($o,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(n){n[Ei]=n[Ei]||e,n[Ei]===e&&document.head.insertBefore(n,r)});var o={};Array.from(document.querySelectorAll("style[".concat($o,"]"))).forEach(function(n){var i=n.getAttribute($o);if(o[i]){if(n[Ei]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else o[i]=!0})}return new cI(e)}var UB=Lh.createContext({hashPriority:"low",cache:uI(),defaultCache:!0});var Ri=UB;var qB="CALC_UNIT",Hte=new RegExp(qB,"g");function KB(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 jd=function(){function e(){lt(this,e),T(this,"cache",void 0),T(this,"keys",void 0),T(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ct(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!KB(o,r)}),this.deleteByPath(this.cache,r)}}]),e}();T(jd,"MAX_CACHE_SIZE",20);T(jd,"MAX_CACHE_OFFSET",5);var fI=0,mu=function(){function e(t){lt(this,e),T(this,"derivatives",void 0),T(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=fI,t.length===0&&Al(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),fI+=1}return ct(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(o,n){return n(r,o)},void 0)}}]),e}();var wC=new jd;function Ds(e){var t=Array.isArray(e)?e:[e];return wC.has(t)||wC.set(t,new mu(t)),wC.get(t)}var YB=new WeakMap,EC={};function pI(e,t){for(var r=YB,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(EC)||r.set(EC,e()),r.get(EC)}var dI=new WeakMap;function gu(e){var t=dI.get(e)||"";return t||(Object.keys(e).forEach(function(r){var o=e[r];t+=r,o instanceof mu?t+=o.id:o&&pe(o)==="object"?t+=gu(o):t+=o}),t=$s(t),dI.set(e,t)),t}function RC(e,t){return $s("".concat(t,"_").concat(gu(e)))}var Ire="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Vd=Yt();function re(e){return typeof e=="number"?"".concat(e,"px"):e}function As(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=P(P({},n),{},(o={},T(o,Qi,t),T(o,$o,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 hu=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()},QB=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(""),"}"):""},kh=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=hu(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,QB(n,r,{scope:o?.scope})]};var Fh=E(I());var vu=E(I());var mI=Yt()?vu.useLayoutEffect:vu.useEffect,gI=function(t,r){var o=vu.useRef(!0);mI(function(){return t(o.current)},r),mI(function(){return o.current=!1,function(){o.current=!0}},[])},Fl=function(t,r){gI(function(o){if(!o)return t()},r)},yt=gI;var OC=E(I()),ZB=P({},OC),hI=ZB.useInsertionEffect,JB=function(t,r,o){OC.useMemo(t,o),yt(function(){return r(!0)},o)},ej=hI?function(e,t,r){return hI(function(){return e(),t()},r)}:JB,vI=ej;var _C=E(I()),tj=P({},_C),rj=tj.useInsertionEffect,oj=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},nj=function(){return function(t){t()}},ij=typeof rj<"u"?oj:nj,yI=ij;function aj(){return!1}var xI=aj;function zl(e,t,r,o,n){var i=Fh.useContext(Ri),a=i.cache,s=[e].concat(se(t)),l=Mh(s),c=yI([l]),u=xI(),f=function(v){a.opUpdate(l,function(y){var g=y||[void 0,void 0],p=B(g,2),x=p[0],S=x===void 0?0:x,b=p[1],w=b,C=w||r(),R=[S,C];return v?v(R):R})};Fh.useMemo(function(){f()},[l]);var d=a.opGet(l),m=d[1];return vI(function(){n?.(m)},function(h){return f(function(v){var y=B(v,2),g=y[0],p=y[1];return h&&g===0&&n?.(m),[g+1,p]}),function(){a.opUpdate(l,function(v){var y=v||[],g=B(y,2),p=g[0],x=p===void 0?0:p,S=g[1],b=x-1;return b===0?(c(function(){(h||!a.opGet(l))&&o?.(S,!1)}),null):[x-1,S]})}},[l]),m}var sj={},lj="css",Wl=new Map;function cj(e){Wl.set(e,(Wl.get(e)||0)+1)}function uj(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Qi,'="').concat(e,'"]'));r.forEach(function(o){if(o[Ei]===t){var n;(n=o.parentNode)===null||n===void 0||n.removeChild(o)}})}}var fj=0;function dj(e,t){Wl.set(e,(Wl.get(e)||0)-1);var r=Array.from(Wl.keys()),o=r.filter(function(n){var i=Wl.get(n)||0;return i<=0});r.length-o.length>fj&&o.forEach(function(n){uj(n,t),Wl.delete(n)})}var SI=function(t,r,o,n){var i=o.getDerivativeToken(t),a=P(P({},i),r);return n&&(a=n(a)),a},PC="token";function zh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=(0,bI.useContext)(Ri),n=o.cache.instanceId,i=o.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?sj:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,m=pI(function(){return Object.assign.apply(Object,[{}].concat(se(t)))},t),h=gu(m),v=gu(c),y=d?gu(d):"",g=zl(PC,[s,e.id,h,v,y],function(){var p,x=f?f(m,c,e):SI(m,c,e,u),S=P({},x),b="";if(d){var w=kh(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),C=B(w,2);x=C[0],b=C[1]}var R=RC(x,s);x._tokenKey=R,S._tokenKey=RC(S,s);var _=(p=d?.key)!==null&&p!==void 0?p:R;x._themeKey=_,cj(_);var O="".concat(lj,"-").concat($s(R));return x._hashId=O,[x,O,S,b,d?.key||""]},function(p){dj(p[0]._themeKey,n)},function(p){var x=B(p,4),S=x[0],b=x[3];if(d&&b){var w=yo(b,$s("css-variables-".concat(S._themeKey)),{mark:$o,prepend:"queue",attachTo:i,priority:-999});w[Ei]=n,w.setAttribute(Qi,S._themeKey)}});return g}var CI=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=As(a,s,u,d,c);return[f,u,m]};var KI=E(I());var ks=E(I());var pj={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TC=pj;var Wh="comm",Bh="rule",jh="decl";var wI="@import";var EI="@namespace",RI="@keyframes";var OI="@layer";var NC=Math.abs,Hd=String.fromCharCode;function Vh(e){return e.trim()}function Ud(e,t,r){return e.replace(t,r)}function _I(e,t,r){return e.indexOf(t,r)}function Ms(e,t){return e.charCodeAt(t)|0}function Ls(e,t,r){return e.slice(t,r)}function Pn(e){return e.length}function PI(e){return e.length}function yu(e,t){return t.push(e),e}var Hh=1,xu=1,TI=0,Xn=0,Hr=0,Su="";function Uh(e,t,r,o,n,i,a,s){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:Hh,column:xu,length:a,return:"",siblings:s}}function NI(){return Hr}function II(){return Hr=Xn>0?Ms(Su,--Xn):0,xu--,Hr===10&&(xu=1,Hh--),Hr}function Yn(){return Hr=Xn<TI?Ms(Su,Xn++):0,xu++,Hr===10&&(xu=1,Hh++),Hr}function Ta(){return Ms(Su,Xn)}function Gd(){return Xn}function Gh(e,t){return Ls(Su,e,t)}function bu(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 $I(e){return Hh=xu=1,TI=Pn(Su=e),Xn=0,[]}function DI(e){return Su="",e}function qh(e){return Vh(Gh(Xn-1,IC(e===91?e+2:e===40?e+1:e)))}function AI(e){for(;(Hr=Ta())&&Hr<33;)Yn();return bu(e)>2||bu(Hr)>3?"":" "}function MI(e,t){for(;--t&&Yn()&&!(Hr<48||Hr>102||Hr>57&&Hr<65||Hr>70&&Hr<97););return Gh(e,Gd()+(t<6&&Ta()==32&&Yn()==32))}function IC(e){for(;Yn();)switch(Hr){case e:return Xn;case 34:case 39:e!==34&&e!==39&&IC(Hr);break;case 40:e===41&&IC(e);break;case 92:Yn();break}return Xn}function LI(e,t){for(;Yn()&&e+Hr!==57;)if(e+Hr===84&&Ta()===47)break;return"/*"+Gh(t,Xn-1)+"*"+Hd(e===47?e:Yn())}function kI(e){for(;!bu(Ta());)Yn();return Gh(e,Xn)}function WI(e){return DI(Kh("",null,null,null,[""],e=$I(e),0,[0],e))}function Kh(e,t,r,o,n,i,a,s,l){for(var c=0,u=0,f=a,d=0,m=0,h=0,v=1,y=1,g=1,p=0,x="",S=n,b=i,w=o,C=x;y;)switch(h=p,p=Yn()){case 40:if(h!=108&&Ms(C,f-1)==58){_I(C+=Ud(qh(p),"&","&\f"),"&\f",NC(c?s[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:C+=qh(p);break;case 9:case 10:case 13:case 32:C+=AI(h);break;case 92:C+=MI(Gd()-1,7);continue;case 47:switch(Ta()){case 42:case 47:yu(mj(LI(Yn(),Gd()),t,r,l),l),(bu(h||1)==5||bu(Ta()||1)==5)&&Pn(C)&&Ls(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=Pn(C)*g;case 125*v:case 59:case 0:switch(p){case 0:case 125:y=0;case 59+u:g==-1&&(C=Ud(C,/\f/g,"")),m>0&&(Pn(C)-f||v===0&&h===47)&&yu(m>32?zI(C+";",o,r,f-1,l):zI(Ud(C," ","")+";",o,r,f-2,l),l);break;case 59:C+=";";default:if(yu(w=FI(C,t,r,c,u,n,s,x,S=[],b=[],f,i),i),p===123)if(u===0)Kh(C,t,w,w,S,i,f,s,b);else{switch(d){case 99:if(Ms(C,3)===110)break;case 108:if(Ms(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Kh(e,w,w,o&&yu(FI(e,w,w,0,0,n,s,x,n,S=[],f,b),b),n,b,f,s,o?S:b):Kh(C,w,w,w,[""],b,0,s,b)}}c=u=m=0,v=g=1,x=C="",f=a;break;case 58:f=1+Pn(C),m=h;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&II()==125)continue}switch(C+=Hd(p),p*v){case 38:g=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Pn(C)-1)*g,g=1;break;case 64:Ta()===45&&(C+=qh(Yn())),d=Ta(),u=f=Pn(x=C+=kI(Gd())),p++;break;case 45:h===45&&Pn(C)==2&&(v=0)}}return i}function FI(e,t,r,o,n,i,a,s,l,c,u,f){for(var d=n-1,m=n===0?i:[""],h=PI(m),v=0,y=0,g=0;v<o;++v)for(var p=0,x=Ls(e,d+1,d=NC(y=a[v])),S=e;p<h;++p)(S=Vh(y>0?m[p]+" "+x:Ud(x,/&\f/g,m[p])))&&(l[g++]=S);return Uh(e,t,r,n===0?Bh:s,l,c,u,f)}function mj(e,t,r,o){return Uh(e,t,r,Wh,Hd(NI()),Ls(e,2,-2),0,o)}function zI(e,t,r,o,n){return Uh(e,t,r,jh,Ls(e,0,o),Ls(e,o+1,-1),o,n)}function Xh(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function BI(e,t,r,o){switch(e.type){case OI:if(e.children.length)break;case wI:case EI:case jh:return e.return=e.return||e.value;case Wh:return"";case RI:return e.return=e.value+"{"+Xh(e.children,o)+"}";case Bh:if(!Pn(e.value=e.props.join(",")))return""}return Pn(r=Xh(e.children,o))?e.return=e.value+"{"+r+"}":""}var $C="data-ant-cssinjs-cache-path",DC="_FILE_STYLE__";var Bl,jI=!0;function xj(){if(!Bl&&(Bl={},Yt())){var e=document.createElement("div");e.className=$C,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];Bl[s]=l});var r=document.querySelector("style[".concat($C,"]"));if(r){var o;jI=!1,(o=r.parentNode)===null||o===void 0||o.removeChild(r)}document.body.removeChild(e)}}function VI(e){return xj(),!!Bl[e]}function HI(e){var t=Bl[e],r=null;if(t&&Yt())if(jI)r=DC;else{var o=document.querySelector("style[".concat($o,'="').concat(Bl[e],'"]'));o?r=o.innerHTML:delete Bl[e]}return[r,t]}var bj="_skip_check_",GI="_multi_value_";function Yh(e){var t=Xh(WI(e),BI);return t.replace(/\{%%%\:[^;];}/g,";")}function Sj(e){return pe(e)==="object"&&e&&(bj in e||GI in e)}function UI(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(se(l.slice(1))).join(" ")});return i.join(",")}var Cj=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,h=m===void 0?[]:m,v="",y={};function g(S){var b=S.getName(s);if(!y[b]){var w=e(S.style,r,{root:!1,parentSelectors:a}),C=B(w,1),R=C[0];y[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 x=p(Array.isArray(t)?t:[t]);return x.forEach(function(S){var b=typeof S=="string"&&!n?{}:S;if(typeof b=="string")v+="".concat(b,`
|
|
`);else if(b._keyframe)g(b);else{var w=d.reduce(function(C,R){var _;return(R==null||(_=R.visit)===null||_===void 0?void 0:_.call(R,C))||C},b);Object.keys(w).forEach(function(C){var R=w[C];if(pe(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!Sj(R)){var _=!1,O=C.trim(),N=!1;(n||i)&&s?O.startsWith("@")?_=!0:O==="&"?O=UI("",s,u):O=UI(C,s,u):n&&!s&&(O==="&"||O==="")&&(O="",N=!0);var k=e(R,r,{root:N,injectHash:_,parentSelectors:[].concat(se(a),[O])}),L=B(k,2),j=L[0],W=L[1];y=P(P({},y),W),v+="".concat(O).concat(j)}else{let V=function(F,z){var U=F.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),H=z;!TC[F]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),F==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(g(z),H=z.getName(s)),v+="".concat(U,":").concat(H,";")};var M=V,D,$=(D=R?.value)!==null&&D!==void 0?D:R;pe(R)==="object"&&R!==null&&R!==void 0&&R[GI]&&Array.isArray($)?$.forEach(function(F){V(C,F)}):V(C,$)}})}}),n?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(y["@layer ".concat(l.name)]=l.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(l.name,";")}).join(`
|
|
`))):v="{".concat(v,"}"),[v,y]};function AC(e,t){return $s("".concat(e.join("%")).concat(t))}function wj(){return null}var MC="style";function Fs(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=ks.useContext(Ri),f=u.autoClear,d=u.mock,m=u.defaultCache,h=u.hashPriority,v=u.container,y=u.ssrInline,g=u.transformers,p=u.linters,x=u.cache,S=u.layer,b=r._tokenKey,w=[b];S&&w.push("layer"),w.push.apply(w,se(o));var C=Vd,R=zl(MC,w,function(){var L=w.join("|");if(VI(L)){var j=HI(L),W=B(j,2),D=W[0],$=W[1];if(D)return[D,b,$,{},s,c]}var M=t(),V=Cj(M,{hashId:n,hashPriority:h,layer:S?i:void 0,path:o.join("-"),transformers:g,linters:p}),F=B(V,2),z=F[0],U=F[1],H=Yh(z),A=AC(w,H);return[H,b,A,U,s,c]},function(L,j){var W=B(L,3),D=W[2];(j||f)&&Vd&&Xi(D,{mark:$o})},function(L){var j=B(L,4),W=j[0],D=j[1],$=j[2],M=j[3];if(C&&W!==DC){var V={mark:$o,prepend:S?!1:"queue",attachTo:v,priority:c},F=typeof a=="function"?a():a;F&&(V.csp={nonce:F});var z=[],U=[];Object.keys(M).forEach(function(A){A.startsWith("@layer")?z.push(A):U.push(A)}),z.forEach(function(A){yo(Yh(M[A]),"_layer-".concat(A),P(P({},V),{},{prepend:!0}))});var H=yo(W,$,V);H[Ei]=x.instanceId,H.setAttribute(Qi,b),U.forEach(function(A){yo(Yh(M[A]),"_effect-".concat(A),V)})}}),_=B(R,3),O=_[0],N=_[1],k=_[2];return function(L){var j;if(!y||C||!m)j=ks.createElement(wj,null);else{var W;j=ks.createElement("style",ee({},(W={},T(W,Qi,N),T(W,$o,k),W),{dangerouslySetInnerHTML:{__html:O}}))}return ks.createElement(ks.Fragment,null,j,L)}}var qI=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,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=As(i,a,s,h,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=Yh(l[v]),g=As(y,a,"_effect-".concat(v),h,d);v.startsWith("@layer")?m=g+m:m+=g}}),[u,s,m]};var LC="cssVar",Ej=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,KI.useContext)(Ri),f=u.cache.instanceId,d=u.container,m=s._tokenKey,h=[].concat(se(t.path),[o,c,m]),v=zl(LC,h,function(){var y=r(),g=kh(y,o,{prefix:n,unitless:i,ignore:a,scope:c}),p=B(g,2),x=p[0],S=p[1],b=AC(h,S);return[x,S,b,o]},function(y){var g=B(y,3),p=g[2];Vd&&Xi(p,{mark:$o})},function(y){var g=B(y,3),p=g[1],x=g[2];if(p){var S=yo(p,x,{mark:$o,prepend:"queue",attachTo:d,priority:-999});S[Ei]=f,S.setAttribute(Qi,o)}});return v},XI=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=As(i,s,a,f,c);return[u,a,d]},kC=Ej;var Kd,Ine=(Kd={},T(Kd,MC,qI),T(Kd,PC,CI),T(Kd,LC,XI),Kd);var Rj=function(){function e(t,r){lt(this,e),T(this,"name",void 0),T(this,"style",void 0),T(this,"_keyframe",!0),this.name=t,this.style=r}return ct(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}(),xt=Rj;function Cu(e){return e.notSplit=!0,e}var Fne={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:Cu(["borderTop","borderBottom"]),borderBlockStart:Cu(["borderTop"]),borderBlockEnd:Cu(["borderBottom"]),borderInline:Cu(["borderLeft","borderRight"]),borderInlineStart:Cu(["borderLeft"]),borderInlineEnd:Cu(["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 YI=E(I()),Oj=(0,YI.createContext)({}),wu=Oj;function Qh(e){return $h(e)||Ih(e)||du(e)||Dh()}function xo(e,t){for(var r=e,o=0;o<t.length;o+=1){if(r==null)return;r=r[t[o]]}return r}function ZI(e,t,r,o){if(!t.length)return r;var n=Qh(t),i=n[0],a=n.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=se(e):s=P({},e),o&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=ZI(s[i],a,r,o),s}function Xo(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&r===void 0&&!xo(e,t.slice(0,-1))?e:ZI(e,t,r,o)}function _j(e){return pe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function QI(e){return Array.isArray(e)?[]:{}}var Pj=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Na(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=QI(t[0]);return t.forEach(function(n){function i(a,s){var l=new Set(s),c=xo(n,a),u=Array.isArray(c);if(u||_j(c)){if(!l.has(c)){l.add(c);var f=xo(o,a);u?o=Xo(o,a,[]):(!f||pe(f)!=="object")&&(o=Xo(o,a,QI(c))),Pj(c).forEach(function(d){i([].concat(se(a),[d]),l)})}}else o=Xo(o,a,c)}i([])}),o}var FC=E(I());function Tj(){}var JI=FC.createContext({}),Zh=()=>{let e=()=>{};return e.deprecated=Tj,e};var e2=E(I()),t2=(0,e2.createContext)(void 0);var Ru=E(I());var Nj={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"},r2=Nj;var o2={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var Ij=P(P({},o2),{},{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"}),n2=Ij;var $j={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Jh=$j;var Dj={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"]},n2),timePickerLocale:Object.assign({},Jh)},ev=Dj;var i2=ev;var Tn="${label} is not a valid ${type}",Aj={locale:"en",Pagination:r2,DatePicker:ev,TimePicker:Jh,Calendar:i2,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:Tn,method:Tn,array:Tn,object:Tn,number:Tn,date:Tn,boolean:Tn,integer:Tn,float:Tn,regexp:Tn,email:Tn,url:Tn,hex:Tn},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"}},Oi=Aj;var zC=Object.assign({},Oi.Modal),tv=[],a2=()=>tv.reduce((e,t)=>Object.assign(Object.assign({},e),t),Oi.Modal);function s2(e){if(e){let t=Object.assign({},e);return tv.push(t),zC=a2(),()=>{tv=tv.filter(r=>r!==t),zC=a2()}}zC=Object.assign({},Oi.Modal)}var l2=E(I()),Mj=(0,l2.createContext)(void 0),Eu=Mj;var Xd=E(I());var Lj=(e,t)=>{let r=Xd.useContext(Eu),o=Xd.useMemo(()=>{var i;let a=t||Oi[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=Xd.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?Oi.locale:i},[r]);return[o,n]},_i=Lj;var c2="internalMark",kj=e=>{let{locale:t={},children:r,_ANT_MARK__:o}=e;Ru.useEffect(()=>s2(t?.Modal),[t]);let n=Ru.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return Ru.createElement(Eu.Provider,{value:n},r)},u2=kj;var L2=E(I());var WC={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"},Fj=Object.assign(Object.assign({},WC),{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}),Ia=Fj;var io=Math.round;function BC(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 f2=(e,t,r)=>r===0?e:e/100;function Yd(e,t){let r=t||255;return e>r?r:e<0?0:e}var it=class e{constructor(t){T(this,"isValid",!0),T(this,"r",0),T(this,"g",0),T(this,"b",0),T(this,"a",1),T(this,"_h",void 0),T(this,"_s",void 0),T(this,"_l",void 0),T(this,"_v",void 0),T(this,"_max",void 0),T(this,"_min",void 0),T(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let i=function(a){return n.startsWith(a)};var o=i;let n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Yd(t.r),this.g=Yd(t.g),this.b=Yd(t.b),this.a=typeof t.a=="number"?Yd(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=io(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:io(i("r")),g:io(i("g")),b:io(i("b")),a:io(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=>io((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=io(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=io(this.getSaturation()*100),o=io(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]=Yd(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=io(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=io((i+f)*255),this.g=io((a+f)*255),this.b=io((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=io(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=io(o*(1-r)*255),u=io(o*(1-r*l)*255),f=io(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=BC(t,f2);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=BC(t,f2);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=BC(t,(o,n)=>n.includes("%")?io(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var rv=2,d2=.16,zj=.05,Wj=.05,Bj=.15,h2=5,v2=4,jj=[{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 p2(e,t,r){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-rv*t:Math.round(e.h)+rv*t:o=r?Math.round(e.h)+rv*t:Math.round(e.h)-rv*t,o<0?o+=360:o>=360&&(o-=360),o}function m2(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-d2*t:t===v2?o=e.s+d2:o=e.s+zj*t,o>1&&(o=1),r&&t===h2&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function g2(e,t,r){var o;return r?o=e.v+Wj*t:o=e.v-Bj*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Pi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new it(e),n=o.toHsv(),i=h2;i>0;i-=1){var a=new it({h:p2(n,i,!0),s:m2(n,i,!0),v:g2(n,i,!0)});r.push(a)}r.push(o);for(var s=1;s<=v2;s+=1){var l=new it({h:p2(n,s),s:m2(n,s),v:g2(n,s)});r.push(l)}return t.theme==="dark"?jj.map(function(c){var u=c.index,f=c.amount;return new it(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var $a={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"},jC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];jC.primary=jC[5];var VC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];VC.primary=VC[5];var HC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];HC.primary=HC[5];var UC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];UC.primary=UC[5];var GC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];GC.primary=GC[5];var qC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];qC.primary=qC[5];var KC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];KC.primary=KC[5];var XC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];XC.primary=XC[5];var zs=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];zs.primary=zs[5];var YC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];YC.primary=YC[5];var QC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];QC.primary=QC[5];var ZC=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ZC.primary=ZC[5];var JC=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];JC.primary=JC[5];var ov={red:jC,volcano:VC,orange:HC,gold:UC,yellow:GC,lime:qC,green:KC,cyan:XC,blue:zs,geekblue:YC,purple:QC,magenta:ZC,grey:JC},y2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];y2.primary=y2[5];var x2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];x2.primary=x2[5];var b2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];b2.primary=b2[5];var S2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];S2.primary=S2[5];var C2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];C2.primary=C2[5];var w2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];w2.primary=w2[5];var E2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];E2.primary=E2[5];var R2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];R2.primary=R2[5];var O2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];O2.primary=O2[5];var _2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];_2.primary=_2[5];var P2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];P2.primary=P2[5];var T2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];T2.primary=T2[5];var N2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];N2.primary=N2[5];function ew(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:o}=t,{colorSuccess:n,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=r(l),d=r(n),m=r(i),h=r(a),v=r(s),y=o(c,u),g=e.colorLink||e.colorInfo,p=r(g),x=new it(h[1]).mix(new it(h[3]),50).toHexString();return Object.assign(Object.assign({},y),{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:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:x,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg: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 it("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var Vj=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}},I2=Vj;function tw(e){let{motionUnit:t,motionBase:r,borderRadius:o,lineWidth:n}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:n+1},I2(o))}var Hj=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},$2=Hj;function Ou(e){return(e+8)/e}function rw(e){let t=Array.from({length:10}).map((r,o)=>{let n=o-1,i=e*Math.pow(Math.E,n/5),a=o>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:Ou(r)}))}var Uj=e=>{let t=rw(e),r=t.map(u=>u.size),o=t.map(u=>u.lineHeight),n=r[1],i=r[0],a=r[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},D2=Uj;function ow(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var Nn=(e,t)=>new it(e).setA(t).toRgbString(),_u=(e,t)=>new it(e).darken(t).toHexString();var A2=e=>{let t=Pi(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]}},M2=(e,t)=>{let r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorText:Nn(o,.88),colorTextSecondary:Nn(o,.65),colorTextTertiary:Nn(o,.45),colorTextQuaternary:Nn(o,.25),colorFill:Nn(o,.15),colorFillSecondary:Nn(o,.06),colorFillTertiary:Nn(o,.04),colorFillQuaternary:Nn(o,.02),colorBgSolid:Nn(o,1),colorBgSolidHover:Nn(o,.75),colorBgSolidActive:Nn(o,.95),colorBgLayout:_u(r,4),colorBgContainer:_u(r,0),colorBgElevated:_u(r,0),colorBgSpotlight:Nn(o,.85),colorBgBlur:"transparent",colorBorder:_u(r,15),colorBorderSecondary:_u(r,6)}};function nw(e){$a.pink=$a.magenta,ov.pink=ov.magenta;let t=Object.keys(WC).map(r=>{let o=e[r]===$a[r]?ov[r]:Pi(e[r]);return Array.from({length:10},()=>1).reduce((n,i,a)=>(n[`${r}-${a+1}`]=o[a],n[`${r}${a+1}`]=o[a],n),{})}).reduce((r,o)=>(r=Object.assign(Object.assign({},r),o),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),ew(e,{generateColorPalettes:A2,generateNeutralColorPalettes:M2})),D2(e.fontSize)),ow(e)),$2(e)),tw(e))}var Gj=Ds(nw),Qd=Gj;var Zd={token:Ia,override:{override:Ia},hashed:!0},Jd=L2.default.createContext(Zd);var nv=E(I()),Ws="ant",ep="anticon",iw=["outlined","borderless","filled","underlined"],qj=(e,t)=>t||(e?`${Ws}-${e}`:Ws),at=nv.createContext({getPrefixCls:qj,iconPrefixCls:ep}),{Consumer:Kj}=at,k2={};function Do(e){let t=nv.useContext(at),{getPrefixCls:r,direction:o,getPopupContainer:n}=t,i=t[e];return Object.assign(Object.assign({classNames:k2,styles:k2},i),{getPrefixCls:r,direction:o,getPopupContainer:n})}var Xj=`-ant-${Date.now()}-${Math.random()}`;function Yj(e,t){let r={},o=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},n=(a,s)=>{let l=new it(a),c=Pi(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 it(t.primaryColor),s=Pi(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 it(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 F2(e,t){let r=Yj(e,t);Yt()&&yo(r,`${Xj}-dynamic-theme`)}var Pu=E(I()),aw=Pu.createContext(!1),z2=e=>{let{children:t,disabled:r}=e,o=Pu.useContext(aw);return Pu.createElement(aw.Provider,{value:r??o},t)},Ur=aw;var lw=E(I());var Tu=E(I()),sw=Tu.createContext(void 0),W2=e=>{let{children:t,size:r}=e,o=Tu.useContext(sw);return Tu.createElement(sw.Provider,{value:r||o},t)},jl=sw;function Qj(){let e=(0,lw.useContext)(Ur),t=(0,lw.useContext)(jl);return{componentDisabled:e,componentSize:t}}var B2=Qj;var uv=E(I());var Zj=ct(function e(){lt(this,e)}),iv=Zj;var j2="CALC_UNIT",Jj=new RegExp(j2,"g");function cw(e){return typeof e=="number"?"".concat(e).concat(j2):e}var V2=function(e){Nr(r,e);var t=Ir(r);function r(o,n){var i;lt(this,r),i=t.call(this),T(et(i),"result",""),T(et(i),"unitlessCssVar",void 0),T(et(i),"lowPriority",void 0);var a=pe(o);return i.unitlessCssVar=n,o instanceof r?i.result="(".concat(o.result,")"):a==="number"?i.result=cw(o):a==="string"&&(i.result=o),i}return ct(r,[{key:"add",value:function(n){return n instanceof r?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(cw(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof r?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(cw(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var i=this,a=n||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(Jj,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(iv);var e5=function(e){Nr(r,e);var t=Ir(r);function r(o){var n;return lt(this,r),n=t.call(this),T(et(n),"result",0),o instanceof r?n.result=o.result:typeof o=="number"&&(n.result=o),n}return ct(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}(iv),H2=e5;var t5=function(t,r){var o=t==="css"?V2:H2;return function(n){return new o(n,r)}},av=t5;var r5=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},uw=r5;var sv=E(I());function Et(e){var t=sv.useRef();t.current=e;var r=sv.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 Nu=E(I());function Da(e){var t=Nu.useRef(!1),r=Nu.useState(e),o=B(r,2),n=o[0],i=o[1];Nu.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[n,a]}function fw(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=Da(function(){return fw(n)?n:fw(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=Et(i),h=Da([f]),v=B(h,2),y=v[0],g=v[1];Fl(function(){var x=y[0];c!==x&&m(c,x)},[y]),Fl(function(){fw(n)||u(n)},[n]);var p=Et(function(x,S){u(x,S),g([f],S)});return[d,p]}function o5(e,t,r,o){var n=P({},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=P(P({},r),n);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var dw=o5;var U2=typeof CSSINJS_STATISTIC<"u",pw=!0;function rt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!U2)return Object.assign.apply(Object,[{}].concat(t));pw=!1;var o={};return t.forEach(function(n){if(pe(n)==="object"){var i=Object.keys(n);i.forEach(function(a){Object.defineProperty(o,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),pw=!0,o}var lv={};function n5(){}var i5=function(t){var r,o=t,n=n5;return U2&&typeof Proxy<"u"&&(r=new Set,o=new Proxy(t,{get:function(a,s){if(pw){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),n=function(a,s){var l;lv[a]={global:Array.from(r),component:P(P({},(l=lv[a])===null||l===void 0?void 0:l.component),s)}}),{token:o,keys:r,flush:n}},cv=i5;function a5(e,t,r){if(typeof r=="function"){var o;return r(rt(t,(o=t[e])!==null&&o!==void 0?o:{}))}return r??{}}var mw=a5;function s5(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 re(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 re(i)}).join(","),")")}}}var G2=s5;var K2=E(I()),l5=1e3*60*10,c5=function(){function e(){lt(this,e),T(this,"map",new Map),T(this,"objectIDMap",new WeakMap),T(this,"nextID",0),T(this,"lastAccessBeat",new Map),T(this,"accessBeat",0)}return ct(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&&pe(i)==="object"?"obj_".concat(o.getObjectID(i)):"".concat(pe(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>l5&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),q2=new c5;function u5(e,t){return K2.default.useMemo(function(){var r=q2.get(t);if(r)return r;var o=e();return q2.set(t,o),o},t)}var X2=u5;var f5=function(){return{}},Y2=f5;function d5(e){var t=e.useCSP,r=t===void 0?Y2:t,o=e.useToken,n=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,m,h,v){var y=Array.isArray(d)?d[0]:d;function g(R){return"".concat(String(y)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var p=v?.unitless||{},x=typeof s=="function"?s(d):{},S=P(P({},x),{},T({},g("zIndexPopup"),!0));Object.keys(p).forEach(function(R){S[g(R)]=p[R]});var b=P(P({},v),{},{unitless:S,prefixToken:g}),w=u(d,m,h,b),C=c(y,h,b);return function(R){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=w(R,_),N=B(O,2),k=N[1],L=C(_),j=B(L,2),W=j[0],D=j[1];return[W,k,D]}}function c(d,m,h){var v=h.unitless,y=h.injectStyle,g=y===void 0?!0:y,p=h.prefixToken,x=h.ignore,S=function(C){var R=C.rootCls,_=C.cssVar,O=_===void 0?{}:_,N=o(),k=N.realToken;return kC({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:x,token:k,scope:R},function(){var L=mw(d,k,m),j=dw(d,k,L,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(L).forEach(function(W){j[p(W)]=j[W],delete j[W]}),j}),null},b=function(C){var R=o(),_=R.cssVar;return[function(O){return g&&_?uv.default.createElement(uv.default.Fragment,null,uv.default.createElement(S,{rootCls:C,cssVar:_,component:d}),O):O},_?.key]};return b}function u(d,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(d)?d:[d,d],g=B(y,1),p=g[0],x=y.join("-"),S=e.layer||{name:"antd"};return function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,C=o(),R=C.theme,_=C.realToken,O=C.hashId,N=C.token,k=C.cssVar,L=n(),j=L.rootPrefixCls,W=L.iconPrefixCls,D=r(),$=k?"css":"js",M=X2(function(){var A=new Set;return k&&Object.keys(v.unitless||{}).forEach(function(G){A.add(hu(G,k.prefix)),A.add(hu(G,uw(p,k.prefix)))}),av($,A)},[$,p,k?.prefix]),V=G2($),F=V.max,z=V.min,U={theme:R,token:N,hashId:O,nonce:function(){return D.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};typeof i=="function"&&Fs(P(P({},U),{},{clientOnly:!1,path:["Shared",j]}),function(){return i(N,{prefix:{rootPrefixCls:j,iconPrefixCls:W},csp:D})});var H=Fs(P(P({},U),{},{path:[x,b,W]}),function(){if(v.injectStyle===!1)return[];var A=cv(N),G=A.token,q=A.flush,oe=mw(p,_,h),Z=".".concat(b),X=dw(p,_,oe,{deprecatedTokens:v.deprecatedTokens});k&&oe&&pe(oe)==="object"&&Object.keys(oe).forEach(function(Y){oe[Y]="var(".concat(hu(Y,uw(p,k.prefix)),")")});var ie=rt(G,{componentCls:Z,prefixCls:b,iconCls:".".concat(W),antCls:".".concat(j),calc:M,max:F,min:z},k?oe:X),te=m(ie,{hashId:O,prefixCls:b,rootPrefixCls:j,iconPrefixCls:W});q(p,X);var K=typeof a=="function"?a(ie,b,w,v.resetFont):null;return[v.resetStyle===!1?null:K,te]});return[H,O]}}function f(d,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(d,m,h,P({resetStyle:!1,order:-998},v)),g=function(x){var S=x.prefixCls,b=x.rootCls,w=b===void 0?S:b;return y(S,w),null};return g}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var gw=d5;var In=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var e$=E(I());var Q2="5.24.7";var Z2=Q2;function hw(e){return e>=0&&e<=255}function p5(e,t){let{r,g:o,b:n,a:i}=new it(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new it(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(hw(u)&&hw(f)&&hw(d))return new it({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new it({r,g:o,b:n,a:1}).toRgbString()}var Vl=p5;var m5=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 fv(e){let{override:t}=e,r=m5(e,["override"]),o=Object.assign({},t);Object.keys(Ia).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:Vl(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:Vl(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Vl(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:Vl(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 it("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
0 3px 6px 0 ${new it("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
0 5px 12px 4px ${new it("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 J2=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},vw={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},g5={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},h5={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},t$=(e,t,r)=>{let o=r.getDerivativeToken(e),{override:n}=t,i=J2(t,["override"]),a=Object.assign(Object.assign({},o),{override:n});return a=fv(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s,{theme:u}=c,f=J2(c,["theme"]),d=f;u&&(d=t$(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=d}),a};function hr(){let{token:e,hashed:t,theme:r,override:o,cssVar:n}=e$.default.useContext(Jd),i=`${Z2}-${t||""}`,a=r||Qd,[s,l,c]=zh(a,[Ia,e],{salt:i,override:o,getComputedToken:t$,formatToken:fv,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:vw,ignore:g5,preserve:h5}});return[a,c,t?l:"",s,n]}var xw=E(I());var Ti={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}},Aa=()=>({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"}}),Iu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),r$=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"}}}),o$=(e,t,r,o)=>{let n=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return o!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[n]:a})}},yw=(e,t)=>({outline:`${re(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),dv=(e,t)=>({"&:focus-visible":Object.assign({},yw(e,t))}),pv=e=>({[`.${e}`]:Object.assign(Object.assign({},Aa()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:_t,genComponentStyleHook:bw,genSubStyleComponent:Sw}=gw({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,xw.useContext)(at);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,o,n]=hr();return{theme:e,realToken:t,hashId:r,token:o,cssVar:n}},useCSP:()=>{let{csp:e}=(0,xw.useContext)(at);return e??{}},getResetStyles:(e,t)=>{var r;let o=r$(e);return[o,{"&":o},pv((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:ep)]},getCommonStyle:o$,getCompUnitless:()=>vw});function mv(e,t){return In.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 v5=(e,t)=>{let[r,o]=hr();return Fs({theme:r,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[pv(e)])},gv=v5;var y5=E(I()),x5=Object.assign({},y5),{useId:n$}=x5,b5=()=>"",S5=typeof n$>"u"?b5:n$,i$=S5;function Cw(e,t,r){var o,n;let i=Zh("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Zd),{hashed:(o=t?.hashed)!==null&&o!==void 0?o:Zd.hashed,cssVar:t?.cssVar}):t,l=i$();return Ki(()=>{var c,u;if(!e)return t;let f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});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!Yi(f,m,!0)}))}var Av=E(I());var S$=E(Ee());var fn=E(I()),Iw=E(I());var hv=E(I()),C5=["children"],ww=hv.createContext({});function vv(e){var t=e.children,r=Ae(e,C5);return hv.createElement(ww.Provider,{value:r},t)}var a$=E(I()),w5=function(e){Nr(r,e);var t=Ir(r);function r(){return lt(this,r),t.apply(this,arguments)}return ct(r,[{key:"render",value:function(){return this.props.children}}]),r}(a$.Component),s$=w5;var yv=E(I());function Ew(e){var t=yv.useReducer(function(s){return s+1},0),r=B(t,2),o=r[1],n=yv.useRef(e),i=Et(function(){return n.current}),a=Et(function(s){n.current=typeof s=="function"?s(n.current):s,o()});return[i,a]}var _v=E(I()),La=E(I());var Zi="none",tp="appear",rp="enter",op="leave",Rw="none",un="prepare",Ma="start",Bs="active",xv="end",bv="prepared";var m$=E(I()),g$=E(I());function l$(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 E5(e,t){var r={animationend:l$("Animation","AnimationEnd"),transitionend:l$("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var R5=E5(Yt(),typeof window<"u"?window:{}),u$={};Yt()&&(c$=document.createElement("div"),u$=c$.style);var c$,Sv={};function f$(e){if(Sv[e])return Sv[e];var t=R5[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 u$)return Sv[e]=t[i],Sv[e]}return""}var d$=f$("animationend"),p$=f$("transitionend"),Cv=!!(d$&&p$),Ow=d$||"animationend",_w=p$||"transitionend";function Pw(e,t){if(!e)return null;if(pe(e)==="object"){var r=t.replace(/-\w/g,function(o){return o[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var h$=function(e){var t=(0,g$.useRef)();function r(n){n&&(n.removeEventListener(_w,e),n.removeEventListener(Ow,e))}function o(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(_w,e),n.addEventListener(Ow,e),t.current=n)}return m$.useEffect(function(){return function(){r(t.current)}},[]),[o,r]};var wv=E(I()),O5=Yt()?wv.useLayoutEffect:wv.useEffect,Ev=O5;var y$=E(I());var Rv=E(I()),v$=function(){var e=Rv.useRef(null);function t(){ut.cancel(e.current)}function r(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=ut(function(){n<=1?o({isCanceled:function(){return i!==e.current}}):r(o,n-1)});e.current=i}return Rv.useEffect(function(){return function(){t()}},[]),[r,t]};var _5=[un,Ma,Bs,xv],P5=[un,bv],Tw=!1,x$=!0;function Ov(e){return e===Bs||e===xv}var b$=function(e,t,r){var o=Da(Rw),n=B(o,2),i=n[0],a=n[1],s=v$(),l=B(s,2),c=l[0],u=l[1];function f(){a(un,!0)}var d=t?P5:_5;return Ev(function(){if(i!==Rw&&i!==xv){var m=d.indexOf(i),h=d[m+1],v=r(i);v===Tw?a(h,!0):h&&c(function(y){function g(){y.isCanceled()||a(h,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),y$.useEffect(function(){return function(){u()}},[]),[f,i]};function Nw(e,t,r,o){var n=o.motionEnter,i=n===void 0?!0:n,a=o.motionAppear,s=a===void 0?!0:a,l=o.motionLeave,c=l===void 0?!0:l,u=o.motionDeadline,f=o.motionLeaveImmediately,d=o.onAppearPrepare,m=o.onEnterPrepare,h=o.onLeavePrepare,v=o.onAppearStart,y=o.onEnterStart,g=o.onLeaveStart,p=o.onAppearActive,x=o.onEnterActive,S=o.onLeaveActive,b=o.onAppearEnd,w=o.onEnterEnd,C=o.onLeaveEnd,R=o.onVisibleChanged,_=Da(),O=B(_,2),N=O[0],k=O[1],L=Ew(Zi),j=B(L,2),W=j[0],D=j[1],$=Da(null),M=B($,2),V=M[0],F=M[1],z=W(),U=(0,La.useRef)(!1),H=(0,La.useRef)(null);function A(){return r()}var G=(0,La.useRef)(!1);function q(){D(Zi),F(null,!0)}var oe=Et(function(ye){var we=W();if(we!==Zi){var ce=A();if(!(ye&&!ye.deadline&&ye.target!==ce)){var ae=G.current,Re;we===tp&&ae?Re=b?.(ce,ye):we===rp&&ae?Re=w?.(ce,ye):we===op&&ae&&(Re=C?.(ce,ye)),ae&&Re!==!1&&q()}}}),Z=h$(oe),X=B(Z,1),ie=X[0],te=function(we){switch(we){case tp:return T(T(T({},un,d),Ma,v),Bs,p);case rp:return T(T(T({},un,m),Ma,y),Bs,x);case op:return T(T(T({},un,h),Ma,g),Bs,S);default:return{}}},K=_v.useMemo(function(){return te(z)},[z]),Y=b$(z,!e,function(ye){if(ye===un){var we=K[un];return we?we(A()):Tw}if(J in K){var ce;F(((ce=K[J])===null||ce===void 0?void 0:ce.call(K,A(),null))||null)}return J===Bs&&z!==Zi&&(ie(A()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){oe({deadline:!0})},u))),J===bv&&q(),x$}),ne=B(Y,2),Q=ne[0],J=ne[1],le=Ov(J);G.current=le;var ue=(0,La.useRef)(null);Ev(function(){if(!(U.current&&ue.current===t)){k(t);var ye=U.current;U.current=!0;var we;!ye&&t&&s&&(we=tp),ye&&t&&i&&(we=rp),(ye&&!t&&c||!ye&&f&&!t&&c)&&(we=op);var ce=te(we);we&&(e||ce[un])?(D(we),Q()):D(Zi),ue.current=t}},[t]),(0,La.useEffect)(function(){(z===tp&&!s||z===rp&&!i||z===op&&!c)&&D(Zi)},[s,i,c]),(0,La.useEffect)(function(){return function(){U.current=!1,clearTimeout(H.current)}},[]);var fe=_v.useRef(!1);(0,La.useEffect)(function(){N&&(fe.current=!0),N!==void 0&&z===Zi&&((fe.current||N)&&R?.(N),fe.current=!0)},[N,z]);var he=V;return K[un]&&J===Ma&&(he=P({transition:"none"},he)),[z,J,he,N??t]}function T5(e){var t=e;pe(e)==="object"&&(t=e.transitionSupport);function r(n,i){return!!(n.motionName&&t&&i!==!1)}var o=fn.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,h=n.eventProps,v=fn.useContext(ww),y=v.motion,g=r(n,y),p=(0,Iw.useRef)(),x=(0,Iw.useRef)();function S(){try{return p.current instanceof HTMLElement?p.current:Ll(x.current)}catch{return null}}var b=Nw(g,s,S,n),w=B(b,4),C=w[0],R=w[1],_=w[2],O=w[3],N=fn.useRef(O);O&&(N.current=!0);var k=fn.useCallback(function(M){p.current=M,zd(i,M)},[i]),L,j=P(P({},h),{},{visible:s});if(!f)L=null;else if(C===Zi)O?L=f(P({},j),k):!c&&N.current&&m?L=f(P(P({},j),{},{className:m}),k):u||!c&&!m?L=f(P(P({},j),{},{style:{display:"none"}}),k):L=null;else{var W;R===un?W="prepare":Ov(R)?W="active":R===Ma&&(W="start");var D=Pw(d,"".concat(C,"-").concat(W));L=f(P(P({},j),{},{className:(0,S$.default)(Pw(d,C),T(T({},D,D&&W),d,typeof d=="string")),style:_}),k)}if(fn.isValidElement(L)&&Ci(L)){var $=Ts(L);$||(L=fn.cloneElement(L,{ref:k}))}return fn.createElement(s$,{ref:x},L)});return o.displayName="CSSMotion",o}var Pv=T5(Cv);var Hl=E(I());var Tv="add",Nv="keep",Iv="remove",Dv="removed";function N5(e){var t;return e&&pe(e)==="object"&&"key"in e?t=e:t={key:e},P(P({},t),{},{key:String(t.key)})}function $v(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(N5)}function C$(){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=$v(e),a=$v(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 P(P({},m),{},{status:Tv})})),o=f),r.push(P(P({},d),{},{status:Nv})),o+=1,u=!0;break}}u||r.push(P(P({},c),{},{status:Iv}))}),o<n&&(r=r.concat(a.slice(o).map(function(c){return P(P({},c),{},{status:Tv})})));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!==Iv}),r.forEach(function(u){u.key===c&&(u.status=Nv)})}),r}var I5=["component","children","onVisibleChanged","onAllRemoved"],$5=["status"],D5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function A5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pv,r=function(o){Nr(i,o);var n=Ir(i);function i(){var a;lt(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)),T(et(a),"state",{keyEntities:[]}),T(et(a),"removeKey",function(u){a.setState(function(f){var d=f.keyEntities.map(function(m){return m.key!==u?m:P(P({},m),{},{status:Dv})});return{keyEntities:d}},function(){var f=a.state.keyEntities,d=f.filter(function(m){var h=m.status;return h!==Dv}).length;d===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return ct(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,h=Ae(c,I5),v=u||Hl.Fragment,y={};return D5.forEach(function(g){y[g]=h[g],delete h[g]}),delete h.keys,Hl.createElement(v,h,l.map(function(g,p){var x=g.status,S=Ae(g,$5),b=x===Tv||x===Nv;return Hl.createElement(t,ee({},y,{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(P(P({},w),{},{index:p}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,f=$v(c),d=C$(u,f);return{keyEntities:d.filter(function(m){var h=u.find(function(v){var y=v.key;return m.key===y});return!(h&&h.status===Dv&&m.status===Iv)})}}}]),i}(Hl.Component);return T(r,"defaultProps",{component:"div"}),r}var $w=A5(Cv);var ao=Pv;function Dw(e){let{children:t}=e,[,r]=hr(),{motion:o}=r,n=Av.useRef(!1);return n.current=n.current||o===!1,n.current?Av.createElement(vv,{motion:o},t):t}var M5=E(I());var w$=()=>null;var L5=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 k5=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],E$,F5,z5,W5;function B5(){return E$||Ws}function j5(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var V5=e=>{let{prefixCls:t,iconPrefixCls:r,theme:o,holderRender:n}=e;t!==void 0&&(E$=t),r!==void 0&&(F5=r),"holderRender"in e&&(W5=n),o&&(j5(o)?F2(B5(),o):z5=o)};var H5=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:h,popupOverflow:v,legacyLocale:y,parentContext:g,iconPrefixCls:p,theme:x,componentDisabled:S,segmented:b,statistic:w,spin:C,calendar:R,carousel:_,cascader:O,collapse:N,typography:k,checkbox:L,descriptions:j,divider:W,drawer:D,skeleton:$,steps:M,image:V,layout:F,list:z,mentions:U,modal:H,progress:A,result:G,slider:q,breadcrumb:oe,menu:Z,pagination:X,input:ie,textArea:te,empty:K,badge:Y,radio:ne,rate:Q,switch:J,transfer:le,avatar:ue,message:fe,tag:he,table:ye,card:we,tabs:ce,timeline:ae,timePicker:Re,upload:Me,notification:Be,tree:Ie,colorPicker:Oe,datePicker:be,rangePicker:Ve,flex:He,wave:$e,dropdown:de,warning:me,tour:ze,tooltip:Ce,popover:Ue,popconfirm:Ye,floatButtonGroup:gt,variant:Tt,inputNumber:ht,treeSelect:We}=e,Pe=ir.useCallback((Ke,ot)=>{let{prefixCls:kt}=e;if(ot)return ot;let Nt=kt||g.getPrefixCls("");return Ke?`${Nt}-${Ke}`:Nt},[g.getPrefixCls,e.prefixCls]),tt=p||g.iconPrefixCls||ep,De=r||g.csp;gv(tt,De);let Le=Cw(x,g.theme,{prefixCls:Pe("")}),Te={csp:De,autoInsertSpaceInButton:o,alert:n,anchor:i,locale:s||y,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:h??m,popupOverflow:v,getPrefixCls:Pe,iconPrefixCls:tt,theme:Le,segmented:b,statistic:w,spin:C,calendar:R,carousel:_,cascader:O,collapse:N,typography:k,checkbox:L,descriptions:j,divider:W,drawer:D,skeleton:$,steps:M,image:V,input:ie,textArea:te,layout:F,list:z,mentions:U,modal:H,progress:A,result:G,slider:q,breadcrumb:oe,menu:Z,pagination:X,empty:K,badge:Y,radio:ne,rate:Q,switch:J,transfer:le,avatar:ue,message:fe,tag:he,table:ye,card:we,tabs:ce,timeline:ae,timePicker:Re,upload:Me,notification:Be,tree:Ie,colorPicker:Oe,datePicker:be,rangePicker:Ve,flex:He,wave:$e,dropdown:de,warning:me,tour:ze,tooltip:Ce,popover:Ue,popconfirm:Ye,floatButtonGroup:gt,variant:Tt,inputNumber:ht,treeSelect:We},Ne=Object.assign({},g);Object.keys(Te).forEach(Ke=>{Te[Ke]!==void 0&&(Ne[Ke]=Te[Ke])}),k5.forEach(Ke=>{let ot=e[Ke];ot&&(Ne[Ke]=ot)}),typeof o<"u"&&(Ne.button=Object.assign({autoInsertSpace:o},Ne.button));let vt=Ki(()=>Ne,Ne,(Ke,ot)=>{let kt=Object.keys(Ke),Nt=Object.keys(ot);return kt.length!==Nt.length||kt.some(tr=>Ke[tr]!==ot[tr])}),{layer:Bt}=ir.useContext(Ri),je=ir.useMemo(()=>({prefixCls:tt,csp:De,layer:Bt?"antd":void 0}),[tt,De,Bt]),_e=ir.createElement(ir.Fragment,null,ir.createElement(w$,{dropdownMatchSelectWidth:m}),t),Qe=ir.useMemo(()=>{var Ke,ot,kt,Nt;return Na(((Ke=Oi.Form)===null||Ke===void 0?void 0:Ke.defaultValidateMessages)||{},((kt=(ot=vt.locale)===null||ot===void 0?void 0:ot.Form)===null||kt===void 0?void 0:kt.defaultValidateMessages)||{},((Nt=vt.form)===null||Nt===void 0?void 0:Nt.validateMessages)||{},a?.validateMessages||{})},[vt,a?.validateMessages]);Object.keys(Qe).length>0&&(_e=ir.createElement(t2.Provider,{value:Qe},_e)),s&&(_e=ir.createElement(u2,{locale:s,_ANT_MARK__:c2},_e)),(tt||De)&&(_e=ir.createElement(wu.Provider,{value:je},_e)),l&&(_e=ir.createElement(W2,{size:l},_e)),_e=ir.createElement(Dw,null,_e);let Ze=ir.useMemo(()=>{let Ke=Le||{},{algorithm:ot,token:kt,components:Nt,cssVar:tr}=Ke,Ft=L5(Ke,["algorithm","token","components","cssVar"]),rr=ot&&(!Array.isArray(ot)||ot.length>0)?Ds(ot):Qd,ur={};Object.entries(Nt||{}).forEach(zo=>{let[dr,Er]=zo,Se=Object.assign({},Er);"algorithm"in Se&&(Se.algorithm===!0?Se.theme=rr:(Array.isArray(Se.algorithm)||typeof Se.algorithm=="function")&&(Se.theme=Ds(Se.algorithm)),delete Se.algorithm),ur[dr]=Se});let fr=Object.assign(Object.assign({},Ia),kt);return Object.assign(Object.assign({},Ft),{theme:rr,token:fr,components:ur,override:Object.assign({override:fr},ur),cssVar:tr})},[Le]);return x&&(_e=ir.createElement(Jd.Provider,{value:Ze},_e)),vt.warning&&(_e=ir.createElement(JI.Provider,{value:vt.warning},_e)),S!==void 0&&(_e=ir.createElement(z2,{disabled:S},_e)),ir.createElement(at.Provider,{value:vt},_e)},$u=e=>{let t=ir.useContext(at),r=ir.useContext(Eu);return ir.createElement(H5,Object.assign({parentContext:t,legacyLocale:r},e))};$u.ConfigContext=at;$u.SizeContext=jl;$u.config=V5;$u.useConfig=B2;Object.defineProperty($u,"SizeContext",{get:()=>jl});var ka=$u;var zv=E(I());var U5={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"},R$=U5;var ql=E(I()),$$=E(Ee());var N$=E(I());function O$(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function G5(e){return O$(e)instanceof ShadowRoot}function Ul(e){return G5(e)?O$(e):null}var Gl=E(I());function q5(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function P$(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function Aw(e){return pe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(pe(e.icon)==="object"||typeof e.icon=="function")}function _$(){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[q5(r)]=o}return t},{})}function Mv(e,t,r){return r?Gl.default.createElement(e.tag,P(P({key:t},_$(e.attrs)),r),(e.children||[]).map(function(o,n){return Mv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))})):Gl.default.createElement(e.tag,P({key:t},_$(e.attrs)),(e.children||[]).map(function(o,n){return Mv(o,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function Mw(e){return Pi(e)[0]}function Lv(e){return e?Array.isArray(e)?e:[e]:[]}var K5=`
|
|
.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);
|
|
}
|
|
}
|
|
`,T$=function(t){var r=(0,Gl.useContext)(wu),o=r.csp,n=r.prefixCls,i=r.layer,a=K5;n&&(a=a.replace(/anticon/g,n)),i&&(a="@layer ".concat(i,` {
|
|
`).concat(a,`
|
|
}`)),(0,Gl.useEffect)(function(){var s=t.current,l=Ul(s);yo(a,"@ant-design-icons",{prepend:!i,csp:o,attachTo:l})},[])};var X5=["icon","className","onClick","style","primaryColor","secondaryColor"],np={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Y5(e){var t=e.primaryColor,r=e.secondaryColor;np.primaryColor=t,np.secondaryColor=r||Mw(t),np.calculated=!!r}function Q5(){return P({},np)}var kv=function(t){var r=t.icon,o=t.className,n=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ae(t,X5),c=N$.useRef(),u=np;if(a&&(u={primaryColor:a,secondaryColor:s||Mw(a)}),T$(c),P$(Aw(r),"icon should be icon definiton, but got ".concat(r)),!Aw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=P(P({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Mv(f.icon,"svg-".concat(f.name),P(P({className:o,onClick:n,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};kv.displayName="IconReact";kv.getTwoToneColors=Q5;kv.setTwoToneColors=Y5;var ip=kv;function Lw(e){var t=Lv(e),r=B(t,2),o=r[0],n=r[1];return ip.setTwoToneColors({primaryColor:o,secondaryColor:n})}function I$(){var e=ip.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Z5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Lw(zs.primary);var Fv=ql.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=Ae(e,Z5),u=ql.useContext(wu),f=u.prefixCls,d=f===void 0?"anticon":f,m=u.rootClassName,h=(0,$$.default)(m,d,T(T({},"".concat(d,"-").concat(o.name),!!o.name),"".concat(d,"-spin"),!!n||o.name==="loading"),r),v=a;v===void 0&&s&&(v=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=Lv(l),p=B(g,2),x=p[0],S=p[1];return ql.createElement("span",ee({role:"img","aria-label":o.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),ql.createElement(ip,{icon:o,primaryColor:x,secondaryColor:S,style:y}))});Fv.displayName="AntdIcon";Fv.getTwoToneColor=I$;Fv.setTwoToneColor=Lw;var mt=Fv;var J5=function(t,r){return zv.createElement(mt,ee({},t,{ref:r,icon:R$}))},e8=zv.forwardRef(J5),D$=e8;var Wv=E(I());var t8={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"},A$=t8;var r8=function(t,r){return Wv.createElement(mt,ee({},t,{ref:r,icon:A$}))},o8=Wv.forwardRef(r8),Du=o8;var Bv=E(I());var n8={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"},M$=n8;var i8=function(t,r){return Bv.createElement(mt,ee({},t,{ref:r,icon:M$}))},a8=Bv.forwardRef(i8),Fa=a8;var s8=`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`,l8=`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`,c8="".concat(s8," ").concat(l8).split(/[\s\n]+/),u8="aria-",f8="data-";function L$(e,t){return e.indexOf(t)===0}function Ao(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=P({},t);var o={};return Object.keys(e).forEach(function(n){(r.aria&&(n==="role"||L$(n,u8))||r.data&&L$(n,f8)||r.attr&&c8.includes(n))&&(o[n]=e[n])}),o}var ap=E(I());function jv(e){return e&&ap.default.isValidElement(e)&&e.type===ap.default.Fragment}var d8=(e,t,r)=>ap.default.isValidElement(e)?ap.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Qn(e,t){return d8(e,e,t)}var p8=e=>{let[,,,,t]=hr();return t?`${e}-css-var`:""},Mo=p8;var ft={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>=ft.F1&&r<=ft.F12)return!1;switch(r){case ft.ALT:case ft.CAPS_LOCK:case ft.CONTEXT_MENU:case ft.CTRL:case ft.DOWN:case ft.END:case ft.ESC:case ft.HOME:case ft.INSERT:case ft.LEFT:case ft.MAC_FF_META:case ft.META:case ft.NUMLOCK:case ft.NUM_CENTER:case ft.PAGE_DOWN:case ft.PAGE_UP:case ft.PAUSE:case ft.PRINT_SCREEN:case ft.RIGHT:case ft.SHIFT:case ft.UP:case ft.WIN_KEY:case ft.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ft.ZERO&&t<=ft.NINE||t>=ft.NUM_ZERO&&t<=ft.NUM_MULTIPLY||t>=ft.A&&t<=ft.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ft.SPACE:case ft.QUESTION_MARK:case ft.NUM_PLUS:case ft.NUM_MINUS:case ft.NUM_PERIOD:case ft.NUM_DIVISION:case ft.SEMICOLON:case ft.DASH:case ft.EQUALS:case ft.COMMA:case ft.PERIOD:case ft.SLASH:case ft.APOSTROPHE:case ft.SINGLE_QUOTE:case ft.OPEN_SQUARE_BRACKET:case ft.BACKSLASH:case ft.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Fe=ft;var Vv=E(I());var m8={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"},k$=m8;var g8=function(t,r){return Vv.createElement(mt,ee({},t,{ref:r,icon:k$}))},h8=Vv.forwardRef(g8),Kl=h8;var z$=E(I());var F$=E(I()),v8=F$.default.createContext(void 0),Hv=v8;var za=100,y8=10,x8=za*y8,ade=x8+za,W$={Modal:za,Drawer:za,Popover:za,Popconfirm:za,Tooltip:za,Tour:za,FloatButton:za},b8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function S8(e){return e in W$}var js=(e,t)=>{let[,r]=hr(),o=z$.default.useContext(Hv),n=S8(e),i;if(t!==void 0)i=[t,t];else{let a=o??0;n?a+=(o?0:r.zIndexPopupBase)+W$[e]:a+=b8[e],i=[o===void 0?t:a,a]}return i};var T8=E(I()),hde=E(bi());function Lt(){"use strict";Lt=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,n=Object.defineProperty||function(D,$,M){D[$]=M.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(D,$,M){return Object.defineProperty(D,$,{value:M,enumerable:!0,configurable:!0,writable:!0}),D[$]}try{c({},"")}catch{c=function(M,V,F){return M[V]=F}}function u(D,$,M,V){var F=$&&$.prototype instanceof g?$:g,z=Object.create(F.prototype),U=new j(V||[]);return n(z,"_invoke",{value:O(D,M,U)}),z}function f(D,$,M){try{return{type:"normal",arg:D.call($,M)}}catch(V){return{type:"throw",arg:V}}}t.wrap=u;var d="suspendedStart",m="suspendedYield",h="executing",v="completed",y={};function g(){}function p(){}function x(){}var S={};c(S,a,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(W([])));w&&w!==r&&o.call(w,a)&&(S=w);var C=x.prototype=g.prototype=Object.create(S);function R(D){["next","throw","return"].forEach(function($){c(D,$,function(M){return this._invoke($,M)})})}function _(D,$){function M(F,z,U,H){var A=f(D[F],D,z);if(A.type!=="throw"){var G=A.arg,q=G.value;return q&&pe(q)=="object"&&o.call(q,"__await")?$.resolve(q.__await).then(function(oe){M("next",oe,U,H)},function(oe){M("throw",oe,U,H)}):$.resolve(q).then(function(oe){G.value=oe,U(G)},function(oe){return M("throw",oe,U,H)})}H(A.arg)}var V;n(this,"_invoke",{value:function(z,U){function H(){return new $(function(A,G){M(z,U,A,G)})}return V=V?V.then(H,H):H()}})}function O(D,$,M){var V=d;return function(F,z){if(V===h)throw Error("Generator is already running");if(V===v){if(F==="throw")throw z;return{value:e,done:!0}}for(M.method=F,M.arg=z;;){var U=M.delegate;if(U){var H=N(U,M);if(H){if(H===y)continue;return H}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(V===d)throw V=v,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);V=h;var A=f(D,$,M);if(A.type==="normal"){if(V=M.done?v:m,A.arg===y)continue;return{value:A.arg,done:M.done}}A.type==="throw"&&(V=v,M.method="throw",M.arg=A.arg)}}}function N(D,$){var M=$.method,V=D.iterator[M];if(V===e)return $.delegate=null,M==="throw"&&D.iterator.return&&($.method="return",$.arg=e,N(D,$),$.method==="throw")||M!=="return"&&($.method="throw",$.arg=new TypeError("The iterator does not provide a '"+M+"' method")),y;var F=f(V,D.iterator,$.arg);if(F.type==="throw")return $.method="throw",$.arg=F.arg,$.delegate=null,y;var z=F.arg;return z?z.done?($[D.resultName]=z.value,$.next=D.nextLoc,$.method!=="return"&&($.method="next",$.arg=e),$.delegate=null,y):z:($.method="throw",$.arg=new TypeError("iterator result is not an object"),$.delegate=null,y)}function k(D){var $={tryLoc:D[0]};1 in D&&($.catchLoc=D[1]),2 in D&&($.finallyLoc=D[2],$.afterLoc=D[3]),this.tryEntries.push($)}function L(D){var $=D.completion||{};$.type="normal",delete $.arg,D.completion=$}function j(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(k,this),this.reset(!0)}function W(D){if(D||D===""){var $=D[a];if($)return $.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var M=-1,V=function F(){for(;++M<D.length;)if(o.call(D,M))return F.value=D[M],F.done=!1,F;return F.value=e,F.done=!0,F};return V.next=V}}throw new TypeError(pe(D)+" is not iterable")}return p.prototype=x,n(C,"constructor",{value:x,configurable:!0}),n(x,"constructor",{value:p,configurable:!0}),p.displayName=c(x,l,"GeneratorFunction"),t.isGeneratorFunction=function(D){var $=typeof D=="function"&&D.constructor;return!!$&&($===p||($.displayName||$.name)==="GeneratorFunction")},t.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,x):(D.__proto__=x,c(D,l,"GeneratorFunction")),D.prototype=Object.create(C),D},t.awrap=function(D){return{__await:D}},R(_.prototype),c(_.prototype,s,function(){return this}),t.AsyncIterator=_,t.async=function(D,$,M,V,F){F===void 0&&(F=Promise);var z=new _(u(D,$,M,V),F);return t.isGeneratorFunction($)?z:z.next().then(function(U){return U.done?U.value:z.next()})},R(C),c(C,l,"Generator"),c(C,a,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function(D){var $=Object(D),M=[];for(var V in $)M.push(V);return M.reverse(),function F(){for(;M.length;){var z=M.pop();if(z in $)return F.value=z,F.done=!1,F}return F.done=!0,F}},t.values=W,j.prototype={constructor:j,reset:function($){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),!$)for(var M in this)M.charAt(0)==="t"&&o.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=e)},stop:function(){this.done=!0;var $=this.tryEntries[0].completion;if($.type==="throw")throw $.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var M=this;function V(G,q){return U.type="throw",U.arg=$,M.next=G,q&&(M.method="next",M.arg=e),!!q}for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F],U=z.completion;if(z.tryLoc==="root")return V("end");if(z.tryLoc<=this.prev){var H=o.call(z,"catchLoc"),A=o.call(z,"finallyLoc");if(H&&A){if(this.prev<z.catchLoc)return V(z.catchLoc,!0);if(this.prev<z.finallyLoc)return V(z.finallyLoc)}else if(H){if(this.prev<z.catchLoc)return V(z.catchLoc,!0)}else{if(!A)throw Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return V(z.finallyLoc)}}}},abrupt:function($,M){for(var V=this.tryEntries.length-1;V>=0;--V){var F=this.tryEntries[V];if(F.tryLoc<=this.prev&&o.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var z=F;break}}z&&($==="break"||$==="continue")&&z.tryLoc<=M&&M<=z.finallyLoc&&(z=null);var U=z?z.completion:{};return U.type=$,U.arg=M,z?(this.method="next",this.next=z.finallyLoc,y):this.complete(U)},complete:function($,M){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&M&&(this.next=M),y},finish:function($){for(var M=this.tryEntries.length-1;M>=0;--M){var V=this.tryEntries[M];if(V.finallyLoc===$)return this.complete(V.completion,V.afterLoc),L(V),y}},catch:function($){for(var M=this.tryEntries.length-1;M>=0;--M){var V=this.tryEntries[M];if(V.tryLoc===$){var F=V.completion;if(F.type==="throw"){var z=F.arg;L(V)}return z}}throw Error("illegal catch attempt")},delegateYield:function($,M,V){return this.delegate={iterator:W($),resultName:M,nextLoc:V},this.method==="next"&&(this.arg=e),y}},t}function B$(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 so(e){return function(){var t=this,r=arguments;return new Promise(function(o,n){var i=e.apply(t,r);function a(l){B$(i,o,n,a,s,"next",l)}function s(l){B$(i,o,n,a,s,"throw",l)}a(void 0)})}}var C8=E(bi()),sp=P({},C8),w8=sp.version,kw=sp.render,E8=sp.unmountComponentAtNode,Gv;try{j$=Number((w8||"").split(".")[0]),j$>=18&&(Gv=sp.createRoot)}catch{}var j$;function V$(e){var t=sp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&pe(t)==="object"&&(t.usingClientEntryPoint=e)}var Uv="__rc_react_root__";function R8(e,t){V$(!0);var r=t[Uv]||Gv(t);V$(!1),r.render(e),t[Uv]=r}function O8(e,t){kw?.(e,t)}function H$(e,t){if(Gv){R8(e,t);return}O8(e,t)}function _8(e){return Fw.apply(this,arguments)}function Fw(){return Fw=so(Lt().mark(function e(t){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.resolve().then(function(){var n;(n=t[Uv])===null||n===void 0||n.unmount(),delete t[Uv]}));case 1:case"end":return o.stop()}},e)})),Fw.apply(this,arguments)}function P8(e){E8(e)}function U$(e){return zw.apply(this,arguments)}function zw(){return zw=so(Lt().mark(function e(t){return Lt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(Gv===void 0){o.next=2;break}return o.abrupt("return",_8(t));case 2:P8(t);case 3:case"end":return o.stop()}},e)})),zw.apply(this,arguments)}var N8=(e,t)=>(H$(e,t),()=>U$(t)),I8=N8;function G$(){return I8}var Ww=()=>({height:0,opacity:0}),q$=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},$8=e=>({height:e?e.offsetHeight:0}),Bw=(e,t)=>t?.deadline===!0||t.propertyName==="height",D8=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ws}-motion-collapse`,onAppearStart:Ww,onEnterStart:Ww,onAppearActive:q$,onEnterActive:q$,onLeaveStart:$8,onLeaveActive:Ww,onAppearEnd:Bw,onEnterEnd:Bw,onLeaveEnd:Bw,motionDeadline:500}};var Ji=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var K$=D8;var Ut=E(I()),my=E(Ee());function Gr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(o){delete r[o]}),r}var Xl=E(I()),eD=E(Ee());var qv=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 A8=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(",")}}}}},X$=bw("Wave",e=>[A8(e)]);var Kv=E(I());var Au=`${Ws}-wave-target`;var lo=E(I()),Q$=E(Ee());function jw(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 Y$(e){let{borderTopColor:t,borderColor:r,backgroundColor:o}=getComputedStyle(e);return jw(t)?t:jw(r)?r:jw(o)?o:null}function Vw(e){return Number.isNaN(e)?0:e}var M8=e=>{let{className:t,target:r,component:o,registerUnmount:n}=e,i=lo.useRef(null),a=lo.useRef(null);lo.useEffect(()=>{a.current=n()},[]);let[s,l]=lo.useState(null),[c,u]=lo.useState([]),[f,d]=lo.useState(0),[m,h]=lo.useState(0),[v,y]=lo.useState(0),[g,p]=lo.useState(0),[x,S]=lo.useState(!1),b={left:f,top:m,width:v,height:g,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(b["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(Y$(r));let _=R.position==="static",{borderLeftWidth:O,borderTopWidth:N}=R;d(_?r.offsetLeft:Vw(-parseFloat(O))),h(_?r.offsetTop:Vw(-parseFloat(N))),y(r.offsetWidth),p(r.offsetHeight);let{borderTopLeftRadius:k,borderTopRightRadius:L,borderBottomLeftRadius:j,borderBottomRightRadius:W}=R;u([k,L,W,j].map(D=>Vw(parseFloat(D))))}if(lo.useEffect(()=>{if(r){let R=ut(()=>{w(),S(!0)}),_;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(w),_.observe(r)),()=>{ut.cancel(R),_?.disconnect()}}},[]),!x)return null;let C=(o==="Checkbox"||o==="Radio")&&r?.classList.contains(Au);return lo.createElement(ao,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,_)=>{var O,N;if(_.deadline||_.propertyName==="opacity"){let k=(O=i.current)===null||O===void 0?void 0:O.parentElement;(N=a.current)===null||N===void 0||N.call(a).then(()=>{k?.remove()})}return!1}},(R,_)=>{let{className:O}=R;return lo.createElement("div",{ref:Fr(i,_),className:(0,Q$.default)(t,O,{"wave-quick":C}),style:b})})},L8=(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=G$(),a=null;function s(){return a}a=i(lo.createElement(M8,Object.assign({},t,{target:e,registerUnmount:s})),n)},Z$=L8;var k8=(e,t,r)=>{let{wave:o}=Kv.useContext(at),[,n,i]=hr(),a=Et(c=>{let u=e.current;if(o?.disabled||!u)return;let f=u.querySelector(`.${Au}`)||u,{showEffect:d}=o||{};(d||Z$)(f,{className:t,token:n,component:r,event:c,hashId:i})}),s=Kv.useRef(null);return c=>{ut.cancel(s.current),s.current=ut(()=>{a(c)})}},J$=k8;var F8=e=>{let{children:t,disabled:r,component:o}=e,{getPrefixCls:n}=(0,Xl.useContext)(at),i=(0,Xl.useRef)(null),a=n("wave"),[,s]=X$(a),l=J$(i,(0,eD.default)(a,s),o);if(Xl.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=d=>{!qv(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]),!Xl.default.isValidElement(t))return t??null;let c=Ci(t)?Fr(Ts(t),i):i;return Qn(t,{ref:c})},Xv=F8;var Hw=E(I());var z8=e=>{let t=Hw.default.useContext(jl);return Hw.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},dn=z8;var Vs=E(I()),tD=E(Ee());var rD=Vs.createContext(null),Zn=(e,t)=>{let r=Vs.useContext(rD),o=Vs.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=r,s=n==="vertical"?"-vertical-":"-";return(0,tD.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}},oD=e=>{let{children:t}=e;return Vs.createElement(rD.Provider,{value:null},t)};var Wa=E(I()),nD=E(Ee());var W8=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},Uw=Wa.createContext(void 0),B8=e=>{let{getPrefixCls:t,direction:r}=Wa.useContext(at),{prefixCls:o,size:n,className:i}=e,a=W8(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,l]=hr(),c=Wa.useMemo(()=>{switch(n){case"large":return"lg";case"small":return"sm";default:return""}},[n]),u=(0,nD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return Wa.createElement(Uw.Provider,{value:n},Wa.createElement("div",Object.assign({},a,{className:u})))},iD=B8;var Mu=E(I());var aD=/^[\u4E00-\u9FA5]{2}$/,Yv=aD.test.bind(aD);function sD(e){return typeof e=="string"}function Qv(e){return e==="text"||e==="link"}function j8(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&sD(e.type)&&Yv(e.props.children)?Qn(e,{children:e.props.children.split("").join(r)}):sD(e)?Yv(e)?Mu.default.createElement("span",null,e.split("").join(r)):Mu.default.createElement("span",null,e):jv(e)?Mu.default.createElement("span",null,e):e}function lD(e,t){let r=!1,o=[];return Mu.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}),Mu.default.Children.map(o,n=>j8(n,t))}var ipe=["default","primary","danger"].concat(se(In));var Hs=E(I());var Kw=E(Ee());var Zv=E(I()),cD=E(Ee()),V8=(0,Zv.forwardRef)((e,t)=>{let{className:r,style:o,children:n,prefixCls:i}=e,a=(0,cD.default)(`${i}-icon`,r);return Zv.default.createElement("span",{ref:t,className:a,style:o},n)}),lp=V8;var uD=(0,Hs.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:n,iconClassName:i}=e,a=(0,Kw.default)(`${r}-loading-icon`,o);return Hs.default.createElement(lp,{prefixCls:r,className:a,style:n,ref:t},Hs.default.createElement(Kl,{className:i}))}),Gw=()=>({width:0,opacity:0,transform:"scale(0)"}),qw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),H8=e=>{let{prefixCls:t,loading:r,existIcon:o,className:n,style:i,mount:a}=e,s=!!r;return o?Hs.default.createElement(uD,{prefixCls:t,className:n,style:i}):Hs.default.createElement(ao,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Gw,onAppearActive:qw,onEnterStart:Gw,onEnterActive:qw,onLeaveStart:qw,onLeaveActive:Gw},(l,c)=>{let{className:u,style:f}=l,d=Object.assign(Object.assign({},i),f);return Hs.default.createElement(uD,{prefixCls:t,className:(0,Kw.default)(n,u),style:d,ref:c})})},fD=H8;var dD=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),U8=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}},dD(`${t}-primary`,n),dD(`${t}-danger`,i)]}},pD=U8;var Zw=E(I());var G8=["b"],q8=["v"],Xw=function(t){return Math.round(Number(t||0))},K8=function(t){if(t instanceof it)return t;if(t&&pe(t)==="object"&&"h"in t&&"b"in t){var r=t,o=r.b,n=Ae(r,G8);return P(P({},n),{},{v:o})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Jn=function(e){Nr(r,e);var t=Ir(r);function r(o){return lt(this,r),t.call(this,K8(o))}return ct(r,[{key:"toHsbString",value:function(){var n=this.toHsb(),i=Xw(n.s*100),a=Xw(n.b*100),s=Xw(n.h),l=n.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var n=this.toHsv(),i=n.v,a=Ae(n,q8);return P(P({},a),{},{b:i,a:this.a})}}]),r}(it);var Yw=function(t){return t instanceof Jn?t:new Jn(t)},X8=Yw("#1677ff");var uV=E(Ee());var Y8=E(Ee()),Q8=E(I());var gD=E(I());var Qw=E(I());var Z8=E(Ee()),J8=E(I());var eV=E(I());var mD=E(I());var sV=E(I());var cV=E(I());var vD=E(I());var lV=E(Ee());var hD=E(I());var fV=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",dV=(e,t)=>e?fV(e,t):"",xD=function(){function e(t){lt(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 Jn(this.colors[0].color.metaColor)):this.metaColor=new Jn(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ct(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return dV(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 GD=E(I());var CV=E(Ee());var Jv=E(I());var pV={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"},bD=pV;var mV=function(t,r){return Jv.createElement(mt,ee({},t,{ref:r,icon:bD}))},gV=Jv.forwardRef(mV),SD=gV;var hV=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Jw=hV;var vV=e=>({animationDuration:e,animationFillMode:"both"}),yV=e=>({animationDuration:e,animationFillMode:"both"}),Us=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({},vV(o)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},yV(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 CD=new xt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),wD=new xt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Yl=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,{antCls:r}=e,o=`${r}-fade`,n=t?"&":"";return[Us(o,CD,wD,e.motionDurationMid,t),{[`
|
|
${n}${o}-enter,
|
|
${n}${o}-appear
|
|
`]:{opacity:0,animationTimingFunction:"linear"},[`${n}${o}-leave`]:{animationTimingFunction:"linear"}}]};var ED=new xt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),RD=new xt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),OD=new xt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_D=new xt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),PD=new xt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),TD=new xt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ND=new xt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ID=new xt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),xV={"move-up":{inKeyframes:ND,outKeyframes:ID},"move-down":{inKeyframes:ED,outKeyframes:RD},"move-left":{inKeyframes:OD,outKeyframes:_D},"move-right":{inKeyframes:PD,outKeyframes:TD}},ey=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=xV[t];return[Us(o,n,i,e.motionDurationMid),{[`
|
|
${o}-enter,
|
|
${o}-appear
|
|
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ty=new xt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ry=new xt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),oy=new xt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ny=new xt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$D=new xt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),DD=new xt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),AD=new xt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),MD=new xt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),bV={"slide-up":{inKeyframes:ty,outKeyframes:ry},"slide-down":{inKeyframes:oy,outKeyframes:ny},"slide-left":{inKeyframes:$D,outKeyframes:DD},"slide-right":{inKeyframes:AD,outKeyframes:MD}},iy=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=bV[t];return[Us(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 LD=new xt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),kD=new xt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),e1=new xt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),t1=new xt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),FD=new xt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zD=new xt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),WD=new xt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),BD=new xt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),jD=new xt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),VD=new xt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),HD=new xt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),UD=new xt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),SV={zoom:{inKeyframes:LD,outKeyframes:kD},"zoom-big":{inKeyframes:e1,outKeyframes:t1},"zoom-big-fast":{inKeyframes:e1,outKeyframes:t1},"zoom-left":{inKeyframes:WD,outKeyframes:BD},"zoom-right":{inKeyframes:jD,outKeyframes:VD},"zoom-up":{inKeyframes:FD,outKeyframes:zD},"zoom-down":{inKeyframes:HD,outKeyframes:UD}},Ql=(e,t)=>{let{antCls:r}=e,o=`${r}-${t}`,{inKeyframes:n,outKeyframes:i}=SV[t];return[Us(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 qD=(e,t)=>{let{r,g:o,b:n,a:i}=e.toRgb(),a=new Jn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+o*.587+n*.114>192};var ay=e=>{let{paddingInline:t,onlyIconSize:r}=e;return rt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},sy=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:Ou(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Ou(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Ou(c),m=qD(new xD(e.colorBgSolid),"#fff")?"#000":"#fff",h=In.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${re(e.controlOutlineWidth)} 0 ${Vl(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{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 wV=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:`${re(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`]:Aa(),"> a":{color:"currentColor"},"&:not(:disabled)":dv(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()}}}}}},KD=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),EV=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),RV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),OV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ly=(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"},KD(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),_V=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},OV(e))}),PV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),cy=(e,t,r,o)=>{let i=o&&["link","text"].includes(o)?PV:_V;return Object.assign(Object.assign({},i(e)),KD(e.componentCls,t,r))},uy=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},cy(e,o,n))}),fy=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},cy(e,o,n))}),dy=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),py=(e,t,r,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},cy(e,r,o))}),ea=(e,t,r,o,n)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},cy(e,o,n,r))}),TV=e=>{let{componentCls:t}=e;return In.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`]},uy(e,e.colorTextLightSolid,n,{background:a},{background:c})),fy(e,n,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),dy(e)),py(e,i,{background:s},{background:l})),ea(e,n,"link",{color:a},{color:c})),ea(e,n,"text",{color:a,background:i},{color:c,background:l}))})},{})},NV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},uy(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),dy(e)),py(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),ly(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ea(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),IV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},fy(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),dy(e)),py(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),ea(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ea(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),ly(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),$V=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},uy(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),fy(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),dy(e)),py(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),ea(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ea(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ly(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),DV=e=>Object.assign(Object.assign({},ea(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),ly(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),AV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:NV(e),[`${t}-color-primary`]:IV(e),[`${t}-color-dangerous`]:$V(e),[`${t}-color-link`]:DV(e)},TV(e))},MV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},fy(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ea(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),uy(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ea(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),r1=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",{componentCls:r,controlHeight:o,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:n,height:o,padding:`${re(l)} ${re(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:o,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:EV(e)},{[`${r}${r}-round${t}`]:RV(e)}]},LV=e=>{let t=rt(e,{fontSize:e.contentFontSize});return r1(t,e.componentCls)},kV=e=>{let t=rt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return r1(t,`${e.componentCls}-sm`)},FV=e=>{let t=rt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return r1(t,`${e.componentCls}-lg`)},zV=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},XD=_t("Button",e=>{let t=ay(e);return[wV(t),LV(t),kV(t),FV(t),zV(t),AV(t),MV(t),pD(t)]},sy,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function WV(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 BV(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 Gs(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({},WV(e,o,t)),BV(r,o,t))}}function jV(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 VV(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 YD(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},jV(e,t)),VV(e.componentCls,t))}}var HV=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))},QD=Sw(["Button","compact"],e=>{let t=ay(e);return[Gs(t),YD(t),HV(t)]},sy);var UV=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 GV(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 qV={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},KV=Ut.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:h,rootClassName:v,children:y,icon:g,iconPosition:p="start",ghost:x=!1,block:S=!1,htmlType:b="button",classNames:w,style:C={},autoInsertSpace:R,autoFocus:_}=e,O=UV(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=l||"default",[k,L]=(0,Ut.useMemo)(()=>{if(a&&s)return[a,s];let me=qV[N]||[];return c?["danger",me[1]]:me},[l,a,s,c]),W=k==="danger"?"dangerous":k,{getPrefixCls:D,direction:$,autoInsertSpace:M,className:V,style:F,classNames:z,styles:U}=Do("button"),H=(r=R??M)!==null&&r!==void 0?r:!0,A=D("btn",i),[G,q,oe]=XD(A),Z=(0,Ut.useContext)(Ur),X=m??Z,ie=(0,Ut.useContext)(Uw),te=(0,Ut.useMemo)(()=>GV(n),[n]),[K,Y]=(0,Ut.useState)(te.loading),[ne,Q]=(0,Ut.useState)(!1),J=(0,Ut.useRef)(null),le=_n(t,J),ue=Ut.Children.count(y)===1&&!g&&!Qv(L),fe=(0,Ut.useRef)(!0);Ut.default.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),(0,Ut.useEffect)(()=>{let me=null;te.delay>0?me=setTimeout(()=>{me=null,Y(!0)},te.delay):Y(te.loading);function ze(){me&&(clearTimeout(me),me=null)}return ze},[te]),(0,Ut.useEffect)(()=>{if(!J.current||!H)return;let me=J.current.textContent||"";ue&&Yv(me)?ne||Q(!0):ne&&Q(!1)}),(0,Ut.useEffect)(()=>{_&&J.current&&J.current.focus()},[]);let he=Ut.default.useCallback(me=>{var ze;if(K||X){me.preventDefault();return}(ze=e.onClick)===null||ze===void 0||ze.call(e,("href"in e,me))},[e.onClick,K,X]),{compactSize:ye,compactItemClassnames:we}=Zn(A,$),ce={large:"lg",small:"sm",middle:void 0},ae=dn(me=>{var ze,Ce;return(Ce=(ze=f??ye)!==null&&ze!==void 0?ze:ie)!==null&&Ce!==void 0?Ce:me}),Re=ae&&(o=ce[ae])!==null&&o!==void 0?o:"",Me=K?"loading":g,Be=Gr(O,["navigate"]),Ie=(0,my.default)(A,q,oe,{[`${A}-${u}`]:u!=="default"&&u,[`${A}-${N}`]:N,[`${A}-dangerous`]:c,[`${A}-color-${W}`]:W,[`${A}-variant-${L}`]:L,[`${A}-${Re}`]:Re,[`${A}-icon-only`]:!y&&y!==0&&!!Me,[`${A}-background-ghost`]:x&&!Qv(L),[`${A}-loading`]:K,[`${A}-two-chinese-chars`]:ne&&H&&!K,[`${A}-block`]:S,[`${A}-rtl`]:$==="rtl",[`${A}-icon-end`]:p==="end"},we,h,v,V),Oe=Object.assign(Object.assign({},F),C),be=(0,my.default)(w?.icon,z.icon),Ve=Object.assign(Object.assign({},d?.icon||{}),U.icon||{}),He=g&&!K?Ut.default.createElement(lp,{prefixCls:A,className:be,style:Ve},g):n&&typeof n=="object"&&n.icon?Ut.default.createElement(lp,{prefixCls:A,className:be,style:Ve},n.icon):Ut.default.createElement(fD,{existIcon:!!g,prefixCls:A,loading:K,mount:fe.current}),$e=y||y===0?lD(y,ue&&H):null;if(Be.href!==void 0)return G(Ut.default.createElement("a",Object.assign({},Be,{className:(0,my.default)(Ie,{[`${A}-disabled`]:X}),href:X?void 0:Be.href,style:Oe,onClick:he,ref:le,tabIndex:X?-1:0}),He,$e));let de=Ut.default.createElement("button",Object.assign({},O,{type:b,className:Ie,style:Oe,onClick:he,disabled:X,ref:le}),He,$e,we&&Ut.default.createElement(QD,{prefixCls:A}));return Qv(L)||(de=Ut.default.createElement(Xv,{component:"Button",disabled:K},de)),G(de)}),o1=KV;o1.Group=iD;o1.__ANT_BUTTON=!0;var ZD=o1;var cp=ZD;var ei=E(I()),sA=E(bi());var JD=E(I()),XV=JD.createContext(null),gy=XV;var Zl=E(I());var eA=[];function n1(e,t){var r=Zl.useState(function(){if(!Yt())return null;var h=document.createElement("div");return h}),o=B(r,1),n=o[0],i=Zl.useRef(!1),a=Zl.useContext(gy),s=Zl.useState(eA),l=B(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(h){u(function(v){var y=[h].concat(se(v));return y})});function d(){n.parentElement||document.body.appendChild(n),i.current=!0}function m(){var h;(h=n.parentElement)===null||h===void 0||h.removeChild(n),i.current=!1}return yt(function(){return e?a?a(d):d():m(),m},[e]),yt(function(){c.length&&(c.forEach(function(h){return h()}),u(eA))},[c]),[n,f]}var nA=E(I());function YV(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,";"):"";yo(`
|
|
#`.concat(t,`::-webkit-scrollbar {
|
|
`).concat(u,`
|
|
`).concat(f,`
|
|
}`),t)}catch(h){console.error(h),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),Xi(t),{width:d,height:m}}function tA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:YV(e)}function rA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var QV="rc-util-locker-".concat(Date.now()),oA=0;function i1(e){var t=!!e,r=nA.useState(function(){return oA+=1,"".concat(QV,"_").concat(oA)}),o=B(r,1),n=o[0];yt(function(){if(t){var i=tA(document.body).width,a=rA();yo(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
}`),n)}else Xi(n);return function(){Xi(n)}},[t,n])}var iA=!1;function a1(e){return typeof e=="boolean"&&(iA=e),iA}var aA=function(t){return t===!1?!1:!Yt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ZV=ei.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=ei.useState(r),u=B(c,2),f=u[0],d=u[1],m=f||r;ei.useEffect(function(){(s||r)&&d(r)},[r,s]);var h=ei.useState(function(){return aA(n)}),v=B(h,2),y=v[0],g=v[1];ei.useEffect(function(){var k=aA(n);g(k??null)});var p=n1(m&&!y,i),x=B(p,2),S=x[0],b=x[1],w=y??S;i1(o&&r&&Yt()&&(w===S||w===document.body));var C=null;if(l&&Ci(l)&&t){var R=l;C=R.ref}var _=_n(C,t);if(!m||!Yt()||y===void 0)return null;var O=w===!1||a1(),N=l;return t&&(N=ei.cloneElement(l,{ref:_})),ei.createElement(gy.Provider,{value:b},O?N:(0,sA.createPortal)(N,w))}),lA=ZV;var Jl=lA;var ta=E(I());var cA=E(I()),hy=cA.createContext({});var u1=E(Ee());var up=E(I());function JV(){var e=P({},up);return e.useId}var uA=0;var fA=JV(),Lu=fA?function(t){var r=fA();return t||r}:function(t){var r=up.useState("ssr-id"),o=B(r,2),n=o[0],i=o[1];return up.useEffect(function(){var a=uA;uA+=1,i("rc_unique_".concat(a))},[]),t||n};var tc=E(I()),Ba=E(I());function s1(e,t,r){var o=t;return!o&&r&&(o="".concat(e,"-").concat(r)),o}function dA(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 pA(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},o=e.ownerDocument,n=o.defaultView||o.parentWindow;return r.left+=dA(n),r.top+=dA(n,!0),r}var ec=E(I()),hA=E(I()),vA=E(Ee());var ku=E(Ee());var qr=E(I());var mA=E(I()),gA=mA.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var eH={width:0,height:0,overflow:"hidden",outline:"none"},tH={outline:"none"},rH=qr.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,h=e.modalRender,v=e.onMouseDown,y=e.onMouseUp,g=e.holderRef,p=e.visible,x=e.forceRender,S=e.width,b=e.height,w=e.classNames,C=e.styles,R=qr.default.useContext(hy),_=R.panel,O=_n(g,_),N=(0,qr.useRef)(),k=(0,qr.useRef)();qr.default.useImperativeHandle(t,function(){return{focus:function(){var U;(U=N.current)===null||U===void 0||U.focus({preventScroll:!0})},changeActive:function(U){var H=document,A=H.activeElement;U&&A===k.current?N.current.focus({preventScroll:!0}):!U&&A===N.current&&k.current.focus({preventScroll:!0})}}});var L={};S!==void 0&&(L.width=S),b!==void 0&&(L.height=b);var j=s?qr.default.createElement("div",{className:(0,ku.default)("".concat(r,"-footer"),w?.footer),style:P({},C?.footer)},s):null,W=i?qr.default.createElement("div",{className:(0,ku.default)("".concat(r,"-header"),w?.header),style:P({},C?.header)},qr.default.createElement("div",{className:"".concat(r,"-title"),id:a},i)):null,D=(0,qr.useMemo)(function(){return pe(l)==="object"&&l!==null?l:l?{closeIcon:c??qr.default.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),$=Ao(D,!0),M=pe(l)==="object"&&l.disabled,V=l?qr.default.createElement("button",ee({type:"button",onClick:u,"aria-label":"Close"},$,{className:"".concat(r,"-close"),disabled:M}),D.closeIcon):null,F=qr.default.createElement("div",{className:(0,ku.default)("".concat(r,"-content"),w?.content),style:C?.content},V,W,qr.default.createElement("div",ee({className:(0,ku.default)("".concat(r,"-body"),w?.body),style:P(P({},d),C?.body)},m),f),j);return qr.default.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:P(P({},n),L),className:(0,ku.default)(r,o),onMouseDown:v,onMouseUp:y},qr.default.createElement("div",{ref:N,tabIndex:0,style:tH},qr.default.createElement(gA,{shouldUpdate:p||x},h?h(F):F)),qr.default.createElement("div",{tabIndex:0,ref:k,style:eH}))}),l1=rH;var yA=ec.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,hA.useRef)(),h=ec.useState(),v=B(h,2),y=v[0],g=v[1],p={};y&&(p.transformOrigin=y);function x(){var S=pA(m.current);g(d&&(d.x||d.y)?"".concat(d.x-S.left,"px ").concat(d.y-S.top,"px"):"")}return ec.createElement(ao,{visible:a,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:l,ref:m},function(S,b){var w=S.className,C=S.style;return ec.createElement(l1,ee({},e,{ref:t,title:o,ariaId:u,prefixCls:r,holderRef:b,style:P(P(P({},C),n),p),className:(0,vA.default)(i,w)}))})});yA.displayName="Content";var xA=yA;var c1=E(I()),bA=E(Ee());var oH=function(t){var r=t.prefixCls,o=t.style,n=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return c1.createElement(ao,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return c1.createElement("div",ee({ref:c,style:P(P({},f),o),className:(0,bA.default)("".concat(r,"-mask"),u,s)},i))})},SA=oH;var nH=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,h=t.onClose,v=t.afterOpenChange,y=t.afterClose,g=t.transitionName,p=t.animation,x=t.closable,S=x===void 0?!0:x,b=t.mask,w=b===void 0?!0:b,C=t.maskTransitionName,R=t.maskAnimation,_=t.maskClosable,O=_===void 0?!0:_,N=t.maskStyle,k=t.maskProps,L=t.rootClassName,j=t.classNames,W=t.styles,D=(0,Ba.useRef)(),$=(0,Ba.useRef)(),M=(0,Ba.useRef)(),V=tc.useState(a),F=B(V,2),z=F[0],U=F[1],H=Lu();function A(){pu($.current,document.activeElement)||(D.current=document.activeElement)}function G(){if(!pu($.current,document.activeElement)){var Q;(Q=M.current)===null||Q===void 0||Q.focus()}}function q(Q){if(Q)G();else{if(U(!1),w&&D.current&&u){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}z&&y?.()}v?.(Q)}function oe(Q){h?.(Q)}var Z=(0,Ba.useRef)(!1),X=(0,Ba.useRef)(),ie=function(){clearTimeout(X.current),Z.current=!0},te=function(){X.current=setTimeout(function(){Z.current=!1})},K=null;O&&(K=function(J){Z.current?Z.current=!1:$.current===J.target&&oe(J)});function Y(Q){if(l&&Q.keyCode===Fe.ESC){Q.stopPropagation(),oe(Q);return}a&&Q.keyCode===Fe.TAB&&M.current.changeActive(!Q.shiftKey)}(0,Ba.useEffect)(function(){a&&(U(!0),A())},[a]),(0,Ba.useEffect)(function(){return function(){clearTimeout(X.current)}},[]);var ne=P(P(P({zIndex:n},f),W?.wrapper),{},{display:z?null:"none"});return tc.createElement("div",ee({className:(0,u1.default)("".concat(o,"-root"),L)},Ao(t,{data:!0})),tc.createElement(SA,{prefixCls:o,visible:w&&a,motionName:s1(o,C,R),style:P(P({zIndex:n},N),W?.mask),maskProps:k,className:j?.mask}),tc.createElement("div",ee({tabIndex:-1,onKeyDown:Y,className:(0,u1.default)("".concat(o,"-wrap"),d,j?.wrapper),ref:$,onClick:K,style:ne},m),tc.createElement(xA,ee({},t,{onMouseDown:ie,onMouseUp:te,ref:M,closable:S,ariaId:H,prefixCls:o,visible:a&&z,onClose:oe,onVisibleChanged:q,motionName:s1(o,g,p)}))))},CA=nH;var wA=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=ta.useState(r),u=B(c,2),f=u[0],d=u[1],m=ta.useMemo(function(){return{panel:l}},[l]);return ta.useEffect(function(){r&&d(!0)},[r]),!n&&a&&!f?null:ta.createElement(hy.Provider,{value:m},ta.createElement(Jl,{open:r||n||f,autoDestroy:!1,getContainer:o,autoLock:r||f},ta.createElement(CA,ee({},t,{destroyOnClose:a,afterClose:function(){s?.(),d(!1)}}))))};wA.displayName="Dialog";var EA=wA;var RA=EA;var R1=E(I());var ja=E(I());var gM=E(I());var Yo=E(I());var OA=E(I()),Ni="RC_FORM_INTERNAL_HOOKS",Kt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},iH=OA.createContext({getFieldValue:Kt,getFieldsValue:Kt,getFieldError:Kt,getFieldWarning:Kt,getFieldsError:Kt,isFieldsTouched:Kt,isFieldTouched:Kt,isFieldValidating:Kt,isFieldsValidating:Kt,resetFields:Kt,setFields:Kt,setFieldValue:Kt,setFieldsValue:Kt,validateFields:Kt,submit:Kt,getInternalHooks:function(){return Kt(),{dispatch:Kt,initEntityValue:Kt,registerField:Kt,useSubscribe:Kt,setInitialValues:Kt,destroyForm:Kt,setCallbacks:Kt,registerWatch:Kt,getFields:Kt,setValidateMessages:Kt,setPreserve:Kt,getInitialValue:Kt}}}),Ii=iH;var _A=E(I()),aH=_A.createContext(null),qs=aH;function fp(e){return e==null?[]:Array.isArray(e)?e:[e]}function PA(e){return e&&!!e._init}function vy(){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 yy=vy();function TA(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function NA(e,t,r){if(Wd())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var n=new(e.bind.apply(e,o));return r&&Is(n,r.prototype),n}function xy(e){var t=typeof Map=="function"?new Map:void 0;return xy=function(o){if(o===null||!TA(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 NA(o,arguments,kl(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Is(n,o)},xy(e)}var sH=/%[sdj%]/g,DA=function(){};typeof process<"u"&&process.env;function by(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 Kr(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(sH,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 lH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||lH(t)&&typeof e=="string"&&!e)}function cH(e,t,r){var o=[],n=0,i=e.length;function a(s){o.push.apply(o,se(s||[])),n++,n===i&&r(o)}e.forEach(function(s){t(s,a)})}function IA(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 uH(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,se(e[r]||[]))}),t}var $A=function(e){Nr(r,e);var t=Ir(r);function r(o,n){var i;return lt(this,r),i=t.call(this,"Async Validation Error"),T(et(i),"errors",void 0),T(et(i),"fields",void 0),i.errors=o,i.fields=n,i}return ct(r)}(xy(Error));function AA(e,t,r,o,n){if(t.first){var i=new Promise(function(d,m){var h=function(g){return o(g),g.length?m(new $A(g,by(g))):d(n)},v=uH(e);IA(v,r,h)});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 h=function(y){if(u.push.apply(u,y),c++,c===l)return o(u),u.length?m(new $A(u,by(u))):d(n)};s.length||(o(u),d(n)),s.forEach(function(v){var y=e[v];a.indexOf(v)!==-1?IA(y,r,h):cH(y,r,h)})});return f.catch(function(d){return d}),f}function fH(e){return!!(e&&e.message!==void 0)}function dH(e,t){for(var r=e,o=0;o<t.length;o++){if(r==null)return r;r=r[t[o]]}return r}function f1(e,t){return function(r){var o;return e.fullFields?o=dH(t,e.fullFields):o=t[r.field||e.fullField],fH(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 d1(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];pe(o)==="object"&&pe(e[r])==="object"?e[r]=P(P({},e[r]),o):e[r]=o}}return e}var Fu="enum",pH=function(t,r,o,n,i){t[Fu]=Array.isArray(t[Fu])?t[Fu]:[],t[Fu].indexOf(r)===-1&&n.push(Kr(i.messages[Fu],t.fullField,t[Fu].join(", ")))},MA=pH;var mH=function(t,r,o,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(Kr(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(Kr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},LA=mH;var gH=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",h=Array.isArray(r);if(d?f="number":m?f="string":h&&(f="array"),!f)return!1;h&&(u=r.length),m&&(u=r.replace(c,"_").length),a?u!==t.len&&n.push(Kr(i.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?n.push(Kr(i.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?n.push(Kr(i.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&n.push(Kr(i.messages[f].range,t.fullField,t.min,t.max))},kA=gH;var hH=function(t,r,o,n,i,a){t.required&&(!o.hasOwnProperty(t.field)||Mt(r,a||t.type))&&n.push(Kr(i.messages.required,t.fullField))},Sy=hH;var Cy,FA=function(){if(Cy)return Cy;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,h=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(m,"|").concat(h,"|").concat(v).concat(y).concat(g,")").concat(p).concat(x);return Cy=new RegExp("(?:^".concat(S,"$)"),"i"),Cy};var zA={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},dp={integer:function(t){return dp.number(t)&&parseInt(t,10)===t},float:function(t){return dp.number(t)&&!dp.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 pe(t)==="object"&&!dp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(zA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(FA())},hex:function(t){return typeof t=="string"&&!!t.match(zA.hex)}},vH=function(t,r,o,n,i){if(t.required&&r===void 0){Sy(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?dp[s](r)||n.push(Kr(i.messages.types[s],t.fullField,t.type)):s&&pe(r)!==t.type&&n.push(Kr(i.messages.types[s],t.fullField,t.type))},WA=vH;var yH=function(t,r,o,n,i){(/^\s+$/.test(r)||r==="")&&n.push(Kr(i.messages.whitespace,t.fullField))},BA=yH;var st={required:Sy,whitespace:BA,type:WA,range:kA,enum:MA,pattern:LA};var xH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();st.required(t,r,n,a,i)}o(a)},jA=xH;var bH=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();st.required(t,r,n,a,i,"array"),r!=null&&(st.type(t,r,n,a,i),st.range(t,r,n,a,i))}o(a)},VA=bH;var SH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();st.required(t,r,n,a,i),r!==void 0&&st.type(t,r,n,a,i)}o(a)},HA=SH;var CH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r,"date")&&!t.required)return o();if(st.required(t,r,n,a,i),!Mt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),st.type(t,l,n,a,i),l&&st.range(t,l.getTime(),n,a,i)}}o(a)},UA=CH;var wH="enum",EH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();st.required(t,r,n,a,i),r!==void 0&&st[wH](t,r,n,a,i)}o(a)},GA=EH;var RH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();st.required(t,r,n,a,i),r!==void 0&&(st.type(t,r,n,a,i),st.range(t,r,n,a,i))}o(a)},qA=RH;var OH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();st.required(t,r,n,a,i),r!==void 0&&(st.type(t,r,n,a,i),st.range(t,r,n,a,i))}o(a)},KA=OH;var _H=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();st.required(t,r,n,a,i),r!==void 0&&st.type(t,r,n,a,i)}o(a)},XA=_H;var PH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Mt(r)&&!t.required)return o();st.required(t,r,n,a,i),r!==void 0&&(st.type(t,r,n,a,i),st.range(t,r,n,a,i))}o(a)},YA=PH;var TH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();st.required(t,r,n,a,i),r!==void 0&&st.type(t,r,n,a,i)}o(a)},QA=TH;var NH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r,"string")&&!t.required)return o();st.required(t,r,n,a,i),Mt(r,"string")||st.pattern(t,r,n,a,i)}o(a)},ZA=NH;var IH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r)&&!t.required)return o();st.required(t,r,n,a,i),Mt(r)||st.type(t,r,n,a,i)}o(a)},JA=IH;var $H=function(t,r,o,n,i){var a=[],s=Array.isArray(r)?"array":pe(r);st.required(t,r,n,a,i,s),o(a)},eM=$H;var DH=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(Mt(r,"string")&&!t.required)return o();st.required(t,r,n,a,i,"string"),Mt(r,"string")||(st.type(t,r,n,a,i),st.range(t,r,n,a,i),st.pattern(t,r,n,a,i),t.whitespace===!0&&st.whitespace(t,r,n,a,i))}o(a)},tM=DH;var AH=function(t,r,o,n,i){var a=t.type,s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(Mt(r,a)&&!t.required)return o();st.required(t,r,n,s,i,a),Mt(r,a)||st.type(t,r,n,s,i)}o(s)},wy=AH;var zu={string:tM,method:XA,number:YA,boolean:HA,regexp:JA,integer:KA,float:qA,array:VA,object:QA,enum:GA,pattern:ZA,date:UA,url:wy,hex:wy,email:wy,required:eM,any:jA};var pp=function(){function e(t){lt(this,e),T(this,"rules",null),T(this,"_messages",yy),this.define(t)}return ct(e,[{key:"define",value:function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(pe(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(n){var i=r[n];o.rules[n]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=d1(vy(),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(h){var v=[],y={};function g(x){if(Array.isArray(x)){var S;v=(S=v).concat.apply(S,se(x))}else v.push(x)}for(var p=0;p<h.length;p++)g(h[p]);v.length?(y=by(v),l(v,y)):l(null,a)}if(s.messages){var u=this.messages();u===yy&&(u=vy()),d1(u,s.messages),s.messages=u}else s.messages=this.messages();var f={},d=s.keys||Object.keys(this.rules);d.forEach(function(h){var v=o.rules[h],y=a[h];v.forEach(function(g){var p=g;typeof p.transform=="function"&&(a===r&&(a=P({},a)),y=a[h]=p.transform(y),y!=null&&(p.type=p.type||(Array.isArray(y)?"array":pe(y)))),typeof p=="function"?p={validator:p}:p=P({},p),p.validator=o.getValidationMethod(p),p.validator&&(p.field=h,p.fullField=p.fullField||h,p.type=o.getType(p),f[h]=f[h]||[],f[h].push({rule:p,value:y,source:a,field:h}))})});var m={};return AA(f,s,function(h,v){var y=h.rule,g=(y.type==="object"||y.type==="array")&&(pe(y.fields)==="object"||pe(y.defaultField)==="object");g=g&&(y.required||!y.required&&h.value),y.field=h.field;function p(C,R){return P(P({},R),{},{fullField:"".concat(y.fullField,".").concat(C),fullFields:y.fullFields?[].concat(se(y.fullFields),[C]):[C]})}function x(){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&&y.message!==void 0&&(R=[].concat(y.message));var _=R.map(f1(y,a));if(s.first&&_.length)return m[y.field]=1,v(_);if(!g)v(_);else{if(y.required&&!h.value)return y.message!==void 0?_=[].concat(y.message).map(f1(y,a)):s.error&&(_=[s.error(y,Kr(s.messages.required,y.field))]),v(_);var O={};y.defaultField&&Object.keys(h.value).map(function(L){O[L]=y.defaultField}),O=P(P({},O),h.rule.fields);var N={};Object.keys(O).forEach(function(L){var j=O[L],W=Array.isArray(j)?j:[j];N[L]=W.map(p.bind(null,L))});var k=new e(N);k.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),k.validate(h.value,h.rule.options||s,function(L){var j=[];_&&_.length&&j.push.apply(j,se(_)),L&&L.length&&j.push.apply(j,se(L)),v(j.length?j:null)})}}var S;if(y.asyncValidator)S=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{S=y.validator(y,h.value,x,h.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),x(C.message)}S===!0?x():S===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(C){return x(C)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!zu.hasOwnProperty(r.type))throw new Error(Kr("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"?zu.required:zu[this.getType(r)]||void 0}}]),e}();T(pp,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");zu[t]=r});T(pp,"warning",DA);T(pp,"messages",yy);T(pp,"validators",zu);var rM=pp;var Ry=E(I());var $n="'${name}' is not a valid ${type}",Ey={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:$n,method:$n,array:$n,object:$n,number:$n,date:$n,boolean:$n,integer:$n,float:$n,regexp:$n,email:$n,url:$n,hex:$n},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 oM=rM;function MH(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 nM="CODE_LOGIC_ERROR";function p1(e,t,r,o,n){return m1.apply(this,arguments)}function m1(){return m1=so(Lt().mark(function e(t,r,o,n,i){var a,s,l,c,u,f,d,m,h;return Lt().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=P({},o),delete a.ruleIndex,oM.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(nM)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new oM(T({},t,[a])),u=Na(Ey,n.validateMessages),c.messages(u),f=[],y.prev=10,y.next=13,Promise.resolve(c.validate(T({},t,r),P({},n)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(g,p){var x=g.message,S=x===nM?u.default:x;return Ry.isValidElement(S)?Ry.cloneElement(S,{key:"error_".concat(p)}):S}));case 18:if(!(!f.length&&l)){y.next=23;break}return y.next=21,Promise.all(r.map(function(g,p){return p1("".concat(t,".").concat(p),g,l,n,i)}));case 21:return d=y.sent,y.abrupt("return",d.reduce(function(g,p){return[].concat(se(g),se(p))},[]));case 23:return m=P(P({},o),{},{name:t,enum:(o.enum||[]).join(", ")},i),h=f.map(function(g){return typeof g=="string"?MH(g,m):g}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),m1.apply(this,arguments)}function iM(e,t,r,o,n,i){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,m=P(P({},u),{},{ruleIndex:f});return d&&(m.validator=function(h,v,y){var g=!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(){Vt(!g,"Your validator function has already return a promise. `callback` will be ignored."),g||y.apply(void 0,w)})},x=d(h,v,p);g=x&&typeof x.then=="function"&&typeof x.catch=="function",Vt(g,"`callback` is deprecated. Please return a promise instead."),g&&x.then(function(){y()}).catch(function(S){y(S||" ")})}),m}).sort(function(u,f){var d=u.warningOnly,m=u.ruleIndex,h=f.warningOnly,v=f.ruleIndex;return!!d==!!h?m-v:d?1:-1}),l;if(n===!0)l=new Promise(function(){var u=so(Lt().mark(function f(d,m){var h,v,y;return Lt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:h=0;case 1:if(!(h<s.length)){p.next=12;break}return v=s[h],p.next=5,p1(a,t,v,o,i);case 5:if(y=p.sent,!y.length){p.next=9;break}return m([{errors:y,rule:v}]),p.abrupt("return");case 9:h+=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 p1(a,t,u,o,i).then(function(f){return{errors:f,rule:u}})});l=(n?kH(c):LH(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function LH(e){return g1.apply(this,arguments)}function g1(){return g1=so(Lt().mark(function e(t){return Lt().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,se(n));return a}));case 1:case"end":return o.stop()}},e)})),g1.apply(this,arguments)}function kH(e){return h1.apply(this,arguments)}function h1(){return h1=so(Lt().mark(function e(t){var r;return Lt().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)})),h1.apply(this,arguments)}function ar(e){return fp(e)}function v1(e,t){var r={};return t.forEach(function(o){var n=xo(e,o);r=Xo(r,o,n)}),r}function Ks(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(o){return y1(t,o,r)})}function y1(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(o,n){return e[n]===o})}function aM(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||pe(e)!=="object"||pe(t)!=="object")return!1;var r=Object.keys(e),o=Object.keys(t),n=new Set([].concat(r,o));return se(n).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function sM(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&pe(t.target)==="object"&&e in t.target?t.target[e]:t}function x1(e,t,r){var o=e.length;if(t<0||t>=o||r<0||r>=o)return e;var n=e[t],i=t-r;return i>0?[].concat(se(e.slice(0,r)),[n],se(e.slice(r,t)),se(e.slice(t+1,o))):i<0?[].concat(se(e.slice(0,t)),se(e.slice(t+1,r+1)),[n],se(e.slice(r+1,o))):e}var FH=["name"],ti=[];function b1(e,t,r,o,n,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):o!==n}var S1=function(e){Nr(r,e);var t=Ir(r);function r(o){var n;if(lt(this,r),n=t.call(this,o),T(et(n),"state",{resetCount:0}),T(et(n),"cancelRegisterFunc",null),T(et(n),"mounted",!1),T(et(n),"touched",!1),T(et(n),"dirty",!1),T(et(n),"validatePromise",void 0),T(et(n),"prevValidating",void 0),T(et(n),"errors",ti),T(et(n),"warnings",ti),T(et(n),"cancelRegister",function(){var l=n.props,c=l.preserve,u=l.isListField,f=l.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(u,c,ar(f)),n.cancelRegisterFunc=null}),T(et(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(se(d),se(c)):[]}),T(et(n),"getRules",function(){var l=n.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),T(et(n),"refresh",function(){n.mounted&&n.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),T(et(n),"metaCache",null),T(et(n),"triggerMetaEvent",function(l){var c=n.props.onMetaChange;if(c){var u=P(P({},n.getMeta()),{},{destroy:l});Yi(n.metaCache,u)||c(u),n.metaCache=u}else n.metaCache=null}),T(et(n),"onStoreChange",function(l,c,u){var f=n.props,d=f.shouldUpdate,m=f.dependencies,h=m===void 0?[]:m,v=f.onReset,y=u.store,g=n.getNamePath(),p=n.getValue(l),x=n.getValue(y),S=c&&Ks(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&!Yi(p,x)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=ti,n.warnings=ti,n.triggerMetaEvent()),u.type){case"reset":if(!c||S){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=ti,n.warnings=ti,n.triggerMetaEvent(),v?.(),n.refresh();return}break;case"remove":{if(d&&b1(d,l,y,p,x,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||ti),"warnings"in b&&(n.warnings=b.warnings||ti),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in b&&Ks(c,g,!0)){n.reRender();return}if(d&&!g.length&&b1(d,l,y,p,x,u)){n.reRender();return}break}case"dependenciesUpdate":{var w=h.map(ar);if(w.some(function(C){return Ks(u.relatedFields,C)})){n.reRender();return}break}default:if(S||(!h.length||g.length||d)&&b1(d,l,y,p,x,u)){n.reRender();return}break}d===!0&&n.reRender()}),T(et(n),"validateRules",function(l){var c=n.getNamePath(),u=n.getValue(),f=l||{},d=f.triggerName,m=f.validateOnly,h=m===void 0?!1:m,v=Promise.resolve().then(so(Lt().mark(function y(){var g,p,x,S,b,w,C;return Lt().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(n.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(g=n.props,p=g.validateFirst,x=p===void 0?!1:p,S=g.messageVariables,b=g.validateDebounce,w=n.getRules(),d&&(w=w.filter(function(O){return O}).filter(function(O){var N=O.validateTrigger;if(!N)return!0;var k=fp(N);return k.includes(d)})),!(b&&d)){_.next=10;break}return _.next=8,new Promise(function(O){setTimeout(O,b)});case 8:if(n.validatePromise===v){_.next=10;break}return _.abrupt("return",[]);case 10:return C=iM(c,u,w,l,x,S),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ti;if(n.validatePromise===v){var N;n.validatePromise=null;var k=[],L=[];(N=O.forEach)===null||N===void 0||N.call(O,function(j){var W=j.rule.warningOnly,D=j.errors,$=D===void 0?ti:D;W?L.push.apply(L,se($)):k.push.apply(k,se($))}),n.errors=k,n.warnings=L,n.triggerMetaEvent(),n.reRender()}}),_.abrupt("return",C);case 13:case"end":return _.stop()}},y)})));return h||(n.validatePromise=v,n.dirty=!0,n.errors=ti,n.warnings=ti,n.triggerMetaEvent(),n.reRender()),v}),T(et(n),"isFieldValidating",function(){return!!n.validatePromise}),T(et(n),"isFieldTouched",function(){return n.touched}),T(et(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var l=n.props.fieldContext,c=l.getInternalHooks(Ni),u=c.getInitialValue;return u(n.getNamePath())!==void 0}),T(et(n),"getErrors",function(){return n.errors}),T(et(n),"getWarnings",function(){return n.warnings}),T(et(n),"isListField",function(){return n.props.isListField}),T(et(n),"isList",function(){return n.props.isList}),T(et(n),"isPreserve",function(){return n.props.preserve}),T(et(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var l={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return l}),T(et(n),"getOnlyChild",function(l){if(typeof l=="function"){var c=n.getMeta();return P(P({},n.getOnlyChild(l(n.getControlled(),c,n.props.fieldContext))),{},{isFunction:!0})}var u=Si(l);return u.length!==1||!Yo.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),T(et(n),"getValue",function(l){var c=n.props.fieldContext.getFieldsValue,u=n.getNamePath();return xo(l||c(!0),u)}),T(et(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,h=c.normalize,v=c.valuePropName,y=c.getValueProps,g=c.fieldContext,p=d!==void 0?d:g.validateTrigger,x=n.getNamePath(),S=g.getInternalHooks,b=g.getFieldsValue,w=S(Ni),C=w.dispatch,R=n.getValue(),_=y||function(j){return T({},v,j)},O=l[f],N=u!==void 0?_(R):{},k=P(P({},l),N);k[f]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var j,W=arguments.length,D=new Array(W),$=0;$<W;$++)D[$]=arguments[$];m?j=m.apply(void 0,D):j=sM.apply(void 0,[v].concat(D)),h&&(j=h(j,R,b(!0))),j!==R&&C({type:"updateValue",namePath:x,value:j}),O&&O.apply(void 0,D)};var L=fp(p||[]);return L.forEach(function(j){var W=k[j];k[j]=function(){W&&W.apply(void 0,arguments);var D=n.props.rules;D&&D.length&&C({type:"validateField",namePath:x,triggerName:j})}}),k}),o.fieldContext){var i=o.fieldContext.getInternalHooks,a=i(Ni),s=a.initEntityValue;s(et(n))}return n}return ct(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(Ni),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:Yo.isValidElement(s)?c=Yo.cloneElement(s,this.getControlled(s.props)):(Vt(!s,"`children` of Field is not validate ReactElement."),c=s),Yo.createElement(Yo.Fragment,{key:n},c)}}]),r}(Yo.Component);T(S1,"contextType",Ii);T(S1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function zH(e){var t,r=e.name,o=Ae(e,FH),n=Yo.useContext(Ii),i=Yo.useContext(qs),a=r!==void 0?ar(r):void 0,s=(t=o.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),Yo.createElement(S1,ee({key:l,name:a,isListField:s},o,{fieldContext:n}))}var Oy=zH;var Dn=E(I());function WH(e){var t=e.name,r=e.initialValue,o=e.children,n=e.rules,i=e.validateTrigger,a=e.isListField,s=Dn.useContext(Ii),l=Dn.useContext(qs),c=Dn.useRef({keys:[],id:0}),u=c.current,f=Dn.useMemo(function(){var v=ar(s.prefixName)||[];return[].concat(se(v),se(ar(t)))},[s.prefixName,t]),d=Dn.useMemo(function(){return P(P({},s),{},{prefixName:f})},[s,f]),m=Dn.useMemo(function(){return{getKey:function(y){var g=f.length,p=y[g];return[u.keys[p],y.slice(g+1)]}}},[f]);if(typeof o!="function")return Vt(!1,"Form.List only accepts function as children."),null;var h=function(y,g,p){var x=p.source;return x==="internal"?!1:y!==g};return Dn.createElement(qs.Provider,{value:m},Dn.createElement(Ii.Provider,{value:d},Dn.createElement(Oy,{name:[],shouldUpdate:h,rules:n,validateTrigger:i,initialValue:r,isList:!0,isListField:a??!!l},function(v,y){var g=v.value,p=g===void 0?[]:g,x=v.onChange,S=s.getFieldValue,b=function(){var _=S(f||[]);return _||[]},w={add:function(_,O){var N=b();O>=0&&O<=N.length?(u.keys=[].concat(se(u.keys.slice(0,O)),[u.id],se(u.keys.slice(O))),x([].concat(se(N.slice(0,O)),[_],se(N.slice(O))))):(u.keys=[].concat(se(u.keys),[u.id]),x([].concat(se(N),[_]))),u.id+=1},remove:function(_){var O=b(),N=new Set(Array.isArray(_)?_:[_]);N.size<=0||(u.keys=u.keys.filter(function(k,L){return!N.has(L)}),x(O.filter(function(k,L){return!N.has(L)})))},move:function(_,O){if(_!==O){var N=b();_<0||_>=N.length||O<0||O>=N.length||(u.keys=x1(u.keys,_,O),x(x1(N,_,O)))}}},C=p||[];return Array.isArray(C)||(C=[]),o(C.map(function(R,_){var O=u.keys[_];return O===void 0&&(u.keys[_]=u.id,O=u.keys[_],u.id+=1),{name:_,key:O,isListField:!0}}),w,y)})))}var lM=WH;var _y=E(I());function cM(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 uM="__@field_split__";function C1(e){return e.map(function(t){return"".concat(pe(t),":").concat(t)}).join(uM)}var BH=function(){function e(){lt(this,e),T(this,"kvs",new Map)}return ct(e,[{key:"set",value:function(r,o){this.kvs.set(C1(r),o)}},{key:"get",value:function(r){return this.kvs.get(C1(r))}},{key:"update",value:function(r,o){var n=this.get(r),i=o(n);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(C1(r))}},{key:"map",value:function(r){return se(this.kvs.entries()).map(function(o){var n=B(o,2),i=n[0],a=n[1],s=i.split(uM);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}(),rc=BH;var jH=["name"],VH=ct(function e(t){var r=this;lt(this,e),T(this,"formHooked",!1),T(this,"forceRootUpdate",void 0),T(this,"subscribable",!0),T(this,"store",{}),T(this,"fieldEntities",[]),T(this,"initialValues",{}),T(this,"callbacks",{}),T(this,"validateMessages",null),T(this,"preserve",null),T(this,"lastValidatePromise",null),T(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),T(this,"getInternalHooks",function(o){return o===Ni?(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}):(Vt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),T(this,"useSubscribe",function(o){r.subscribable=o}),T(this,"prevWithoutPreserves",null),T(this,"setInitialValues",function(o,n){if(r.initialValues=o||{},n){var i,a=Na(o,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Xo(a,l,xo(o,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),T(this,"destroyForm",function(o){if(o)r.updateStore({});else{var n=new rc;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=n}}),T(this,"getInitialValue",function(o){var n=xo(r.initialValues,o);return o.length?Na(n):n}),T(this,"setCallbacks",function(o){r.callbacks=o}),T(this,"setValidateMessages",function(o){r.validateMessages=o}),T(this,"setPreserve",function(o){r.preserve=o}),T(this,"watchList",[]),T(this,"registerWatch",function(o){return r.watchList.push(o),function(){r.watchList=r.watchList.filter(function(n){return n!==o})}}),T(this,"notifyWatch",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var n=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(n,i,o)})}}),T(this,"timeoutId",null),T(this,"warningUnhooked",function(){}),T(this,"updateStore",function(o){r.store=o}),T(this,"getFieldEntities",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return o?r.fieldEntities.filter(function(n){return n.getNamePath().length}):r.fieldEntities}),T(this,"getFieldsMap",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new rc;return r.getFieldEntities(o).forEach(function(i){var a=i.getNamePath();n.set(a,i)}),n}),T(this,"getFieldEntitiesForNamePathList",function(o){if(!o)return r.getFieldEntities(!0);var n=r.getFieldsMap(!0);return o.map(function(i){var a=ar(i);return n.get(a)||{INVALIDATE_NAME_PATH:ar(i)}})}),T(this,"getFieldsValue",function(o,n){r.warningUnhooked();var i,a,s;if(o===!0||Array.isArray(o)?(i=o,a=n):o&&pe(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 h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.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 y="getMeta"in u?u.getMeta():null;a(y)&&c.push(m)}}),v1(r.store,c.map(ar))}),T(this,"getFieldValue",function(o){r.warningUnhooked();var n=ar(o);return xo(r.store,n)}),T(this,"getFieldsError",function(o){r.warningUnhooked();var n=r.getFieldEntitiesForNamePathList(o);return n.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:ar(o[a]),errors:[],warnings:[]}})}),T(this,"getFieldError",function(o){r.warningUnhooked();var n=ar(o),i=r.getFieldsError([n])[0];return i.errors}),T(this,"getFieldWarning",function(o){r.warningUnhooked();var n=ar(o),i=r.getFieldsError([n])[0];return i.warnings}),T(this,"isFieldsTouched",function(){r.warningUnhooked();for(var o=arguments.length,n=new Array(o),i=0;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(ar),c=!1):(l=null,c=a):(l=a.map(ar),c=s);var u=r.getFieldEntities(!0),f=function(y){return y.isFieldTouched()};if(!l)return c?u.every(function(v){return f(v)||v.isList()}):u.some(f);var d=new rc;l.forEach(function(v){d.set(v,[])}),u.forEach(function(v){var y=v.getNamePath();l.forEach(function(g){g.every(function(p,x){return y[x]===p})&&d.update(g,function(p){return[].concat(se(p),[v])})})});var m=function(y){return y.some(f)},h=d.map(function(v){var y=v.value;return y});return c?h.every(m):h.some(m)}),T(this,"isFieldTouched",function(o){return r.warningUnhooked(),r.isFieldsTouched([o])}),T(this,"isFieldsValidating",function(o){r.warningUnhooked();var n=r.getFieldEntities();if(!o)return n.some(function(a){return a.isFieldValidating()});var i=o.map(ar);return n.some(function(a){var s=a.getNamePath();return Ks(i,s)&&a.isFieldValidating()})}),T(this,"isFieldValidating",function(o){return r.warningUnhooked(),r.isFieldsValidating([o])}),T(this,"resetWithFieldInitialValue",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new rc,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)Vt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=n.get(d);if(h&&h.size>1)Vt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(d),y=u.isListField();!y&&(!o.skipExist||v===void 0)&&r.updateStore(Xo(r.store,d,se(h)[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,se(se(c).map(function(f){return f.entity})))}})):s=i,a(s)}),T(this,"resetFields",function(o){r.warningUnhooked();var n=r.store;if(!o){r.updateStore(Na(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(n,null,{type:"reset"}),r.notifyWatch();return}var i=o.map(ar);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Xo(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(n,i,{type:"reset"}),r.notifyWatch(i)}),T(this,"setFields",function(o){r.warningUnhooked();var n=r.store,i=[];o.forEach(function(a){var s=a.name,l=Ae(a,jH),c=ar(s);i.push(c),"value"in l&&r.updateStore(Xo(r.store,c,l.value)),r.notifyObservers(n,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),T(this,"getFields",function(){var o=r.getFieldEntities(!0),n=o.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=P(P({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return n}),T(this,"initEntityValue",function(o){var n=o.props.initialValue;if(n!==void 0){var i=o.getNamePath(),a=xo(r.store,i);a===void 0&&r.updateStore(Xo(r.store,i,n))}}),T(this,"isMergedPreserve",function(o){var n=o!==void 0?o:r.preserve;return n??!0}),T(this,"registerField",function(o){r.fieldEntities.push(o);var n=o.getNamePath();if(r.notifyWatch([n]),o.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[o],skipExist:!0}),r.notifyObservers(i,[o.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==o}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(n);if(n.length&&r.getFieldValue(n)!==c&&r.fieldEntities.every(function(f){return!y1(f.getNamePath(),n)})){var u=r.store;r.updateStore(Xo(u,n,c,!0)),r.notifyObservers(u,[n],{type:"remove"}),r.triggerDependenciesUpdate(u,n)}}r.notifyWatch([n])}}),T(this,"dispatch",function(o){switch(o.type){case"updateValue":{var n=o.namePath,i=o.value;r.updateValue(n,i);break}case"validateField":{var a=o.namePath,s=o.triggerName;r.validateFields([a],{triggerName:s});break}default:}}),T(this,"notifyObservers",function(o,n,i){if(r.subscribable){var a=P(P({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(o,n,a)})}else r.forceRootUpdate()}),T(this,"triggerDependenciesUpdate",function(o,n){var i=r.getDependencyChildrenFields(n);return i.length&&r.validateFields(i),r.notifyObservers(o,i,{type:"dependenciesUpdate",relatedFields:[n].concat(se(i))}),i}),T(this,"updateValue",function(o,n){var i=ar(o),a=r.store;r.updateStore(Xo(r.store,i,n)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=v1(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(se(s)))}),T(this,"setFieldsValue",function(o){r.warningUnhooked();var n=r.store;if(o){var i=Na(r.store,o);r.updateStore(i)}r.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),T(this,"setFieldValue",function(o,n){r.setFields([{name:o,value:n,errors:[],warnings:[]}])}),T(this,"getDependencyChildrenFields",function(o){var n=new Set,i=[],a=new rc;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ar(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!n.has(f)){n.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(o),i}),T(this,"triggerOnFieldsChange",function(o,n){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(n){var s=new rc;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 Ks(o,u)});l.length&&i(l,a)}}),T(this,"validateFields",function(o,n){r.warningUnhooked();var i,a;Array.isArray(o)||typeof o=="string"||typeof n=="string"?(i=o,a=n):a=o;var s=!!i,l=s?i.map(ar):[],c=[],u=String(Date.now()),f=new Set,d=a||{},m=d.recursive,h=d.dirty;r.getFieldEntities(!0).forEach(function(p){if(s||l.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(h&&!p.isFieldDirty())){var x=p.getNamePath();if(f.add(x.join(u)),!s||Ks(l,x,m)){var S=p.validateRules(P({validateMessages:P(P({},Ey),r.validateMessages)},a));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(b){var w,C=[],R=[];return(w=b.forEach)===null||w===void 0||w.call(b,function(_){var O=_.rule.warningOnly,N=_.errors;O?R.push.apply(R,se(N)):C.push.apply(C,se(N))}),C.length?Promise.reject({name:x,errors:C,warnings:R}):{name:x,errors:C,warnings:R}}))}}});var v=cM(c);r.lastValidatePromise=v,v.catch(function(p){return p}).then(function(p){var x=p.map(function(S){var b=S.name;return b});r.notifyObservers(r.store,x,{type:"validateFinish"}),r.triggerOnFieldsChange(x,p)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var x=p.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:x,outOfDate:r.lastValidatePromise!==v})});y.catch(function(p){return p});var g=l.filter(function(p){return f.has(p.join(u))});return r.triggerOnFieldsChange(g),y}),T(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(o){var n=r.callbacks.onFinish;if(n)try{n(o)}catch(i){console.error(i)}}).catch(function(o){var n=r.callbacks.onFinishFailed;n&&n(o)})}),this.forceRootUpdate=t});function HH(e){var t=_y.useRef(),r=_y.useState({}),o=B(r,2),n=o[1];if(!t.current)if(e)t.current=e;else{var i=function(){n({})},a=new VH(i);t.current=a.getForm()}return[t.current]}var Py=HH;var co=E(I());var Xs=E(I()),w1=Xs.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),E1=function(t){var r=t.validateMessages,o=t.onFormChange,n=t.onFormFinish,i=t.children,a=Xs.useContext(w1),s=Xs.useRef({});return Xs.createElement(w1.Provider,{value:P(P({},a),{},{validateMessages:P(P({},a.validateMessages),r),triggerFormChange:function(c,u){o&&o(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){n&&n(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=P(P({},s.current),{},T({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=P({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var fM=w1;var UH=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],GH=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,h=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,g=t.onFinishFailed,p=t.clearOnDestroy,x=Ae(t,UH),S=co.useRef(null),b=co.useContext(fM),w=Py(a),C=B(w,1),R=C[0],_=R.getInternalHooks(Ni),O=_.useSubscribe,N=_.setInitialValues,k=_.setCallbacks,L=_.setValidateMessages,j=_.setPreserve,W=_.destroyForm;co.useImperativeHandle(r,function(){return P(P({},R),{},{nativeElement:S.current})}),co.useEffect(function(){return b.registerForm(o,R),function(){b.unregisterForm(o)}},[b,R,o]),L(P(P({},b.validateMessages),f)),k({onValuesChange:h,onFieldsChange:function(A){if(b.triggerFormChange(o,A),v){for(var G=arguments.length,q=new Array(G>1?G-1:0),oe=1;oe<G;oe++)q[oe-1]=arguments[oe];v.apply(void 0,[A].concat(q))}},onFinish:function(A){b.triggerFormFinish(o,A),y&&y(A)},onFinishFailed:g}),j(s);var D=co.useRef(null);N(n,!D.current),D.current||(D.current=!0),co.useEffect(function(){return function(){return W(p)}},[]);var $,M=typeof l=="function";if(M){var V=R.getFieldsValue(!0);$=l(V,R)}else $=l;O(!M);var F=co.useRef();co.useEffect(function(){aM(F.current||[],i||[])||R.setFields(i||[]),F.current=i},[i,R]);var z=co.useMemo(function(){return P(P({},R),{},{validateTrigger:m})},[R,m]),U=co.createElement(qs.Provider,{value:null},co.createElement(Ii.Provider,{value:z},$));return u===!1?U:co.createElement(u,ee({},x,{ref:S,onSubmit:function(A){A.preventDefault(),A.stopPropagation(),R.submit()},onReset:function(A){var G;A.preventDefault(),R.resetFields(),(G=x.onReset)===null||G===void 0||G.call(x,A)}}),U)},dM=GH;var $i=E(I());function pM(e){try{return JSON.stringify(e)}catch{return Math.random()}}var qH=function(){};function KH(){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=PA(i)?{form:i}:i,s=a.form,l=(0,$i.useState)(),c=B(l,2),u=c[0],f=c[1],d=(0,$i.useMemo)(function(){return pM(u)},[u]),m=(0,$i.useRef)(d);m.current=d;var h=(0,$i.useContext)(Ii),v=s||h,y=v&&v._init,g=ar(o),p=(0,$i.useRef)(g);return p.current=g,qH(g),(0,$i.useEffect)(function(){if(y){var x=v.getFieldsValue,S=v.getInternalHooks,b=S(Ni),w=b.registerWatch,C=function(N,k){var L=a.preserve?k:N;return typeof o=="function"?o(L):xo(L,p.current)},R=w(function(O,N){var k=C(O,N),L=pM(k);m.current!==L&&(m.current=L,f(k))}),_=C(x(),x(!0));return u!==_&&f(_),R}},[y]),u}var mM=KH;var XH=gM.forwardRef(dM),mp=XH;mp.FormProvider=E1;mp.Field=Oy;mp.List=lM;mp.useForm=Py;mp.useWatch=mM;var uo=ja.createContext({}),hM=e=>{let{children:t,status:r,override:o}=e,n=ja.useContext(uo),i=ja.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 ja.createElement(uo.Provider,{value:i},t)},vM=ja.createContext(void 0);var YH=e=>{let{space:t,form:r,children:o}=e;if(o==null)return null;let n=o;return r&&(n=R1.default.createElement(hM,{override:!0,status:!0},n)),t&&(n=R1.default.createElement(oD,null,n)),n},Ys=YH;var QH=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"}}}},ZH=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},JH=(e,t)=>{let{prefixCls:r,componentCls:o,gridColumns:n}=e,i={};for(let a=n;a>=0;a--)a===0?(i[`${o}${t}-${a}`]={display:"none"},i[`${o}-push-${a}`]={insetInlineStart:"auto"},i[`${o}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${a}`]={marginInlineStart:0},i[`${o}${t}-order-${a}`]={order:0}):(i[`${o}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`}],i[`${o}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},i[`${o}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},i[`${o}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},i[`${o}${t}-order-${a}`]={order:a});return i[`${o}${t}-flex`]={flex:`var(--${r}${t}-flex)`},i},O1=(e,t)=>JH(e,t),e7=(e,t,r)=>({[`@media (min-width: ${re(t)})`]:Object.assign({},O1(e,r))}),t7=()=>({}),r7=()=>({}),wbe=_t("Grid",QH,t7),_1=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Ebe=_t("Grid",e=>{let t=rt(e,{gridColumns:24}),r=_1(t);return delete r.xs,[ZH(t),O1(t,""),O1(t,"-xs"),Object.keys(r).map(o=>e7(t,r[o],`-${o}`)).reduce((o,n)=>Object.assign(Object.assign({},o),n),{})]},r7);function yM(e){return{position:e,inset:0}}var P1=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},yM("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},yM("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Yl(e)}]},o7=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:`${re(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 - ${re(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:re(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},dv(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${re(e.borderRadiusLG)} ${re(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:`${re(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"}}}]},n7=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},i7=e=>{let{componentCls:t}=e,r=_1(e);delete r.xs;let o=Object.keys(r).map(n=>({[`@media (min-width: ${re(r[n])})`]:{width:`var(--${t.replace(".","")}-${n}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(se(o))}}},a7=e=>{let t=e.padding,r=e.fontSizeHeading5,o=e.lineHeightHeading5;return rt(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()})},s7=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${re(e.padding)} ${re(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${re(e.paddingXS)} ${re(e.padding)}`:0,footerBorderTop:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${re(e.padding*2)} ${re(e.padding*2)} ${re(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),$be=_t("Modal",e=>{let t=a7(e);return[o7(t),n7(t),P1(t),Ql(t,"zoom"),i7(t)]},s7,{unitless:{titleLineHeight:!0}});var pn=E(I());function l7(e){return t=>pn.createElement(ka,{theme:{token:{motion:!1,zIndexPopupBase:0}}},pn.createElement(e,Object.assign({},t)))}var c7=(e,t,r,o,n)=>l7(a=>{let{prefixCls:s,style:l}=a,c=pn.useRef(null),[u,f]=pn.useState(0),[d,m]=pn.useState(0),[h,v]=zt(!1,{value:a.open}),{getPrefixCls:y}=pn.useContext(at),g=y(o||"select",s);pn.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(g)}`:`.${g}-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:h,visible:h,getPopupContainer:()=>c.current});return r&&(p=r(p)),t&&Object.assign(p,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),pn.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},pn.createElement(e,Object.assign({},p)))}),xM=c7;var ai=E(I()),bE=E(Ee());var lr=E(I());var K1=E(Ee());var Wu=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 St=E(I());var T1=E(I()),bM=E(Ee()),u7=function(t){var r=t.className,o=t.customizeIcon,n=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof o=="function"?o(n):o;return T1.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),a?.(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:T1.createElement("span",{className:(0,bM.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Qs=u7;var Ty=E(I()),SM=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=Ty.default.useMemo(function(){if(pe(n)==="object")return n.clearIcon;if(i)return i},[n,i]),u=Ty.default.useMemo(function(){return!!(!a&&n&&(o.length||s)&&!(l==="combobox"&&s===""))},[n,a,o.length,s,l]);return{allowClear:u,clearIcon:Ty.default.createElement(Qs,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var Ny=E(I()),N1=Ny.createContext(null);function Iy(){return Ny.useContext(N1)}var Bu=E(I());function I1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Bu.useState(!1),r=B(t,2),o=r[0],n=r[1],i=Bu.useRef(null),a=function(){window.clearTimeout(i.current)};Bu.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 gp=E(I());function hp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=gp.useRef(null),r=gp.useRef(null);gp.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 $y=E(I());function $1(e,t,r,o){var n=$y.useRef(null);n.current={open:t,triggerOpen:r,customizedTrigger:o},$y.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 Va=E(I()),ky=E(I());function CM(e){return e&&![Fe.ESC,Fe.SHIFT,Fe.BACKSPACE,Fe.TAB,Fe.WIN_KEY,Fe.ALT,Fe.META,Fe.WIN_KEY_RIGHT,Fe.CTRL,Fe.SEMICOLON,Fe.EQUALS,Fe.CAPS_LOCK,Fe.CONTEXT_MENU,Fe.F1,Fe.F2,Fe.F3,Fe.F4,Fe.F5,Fe.F6,Fe.F7,Fe.F8,Fe.F9,Fe.F10,Fe.F11,Fe.F12].includes(e)}var An=E(I()),M1=E(I()),jM=E(Ee());var ri=E(I()),ra=E(I()),IM=E(Ee());var oc=E(I()),wM=E(Ee());var f7=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ju=void 0;function d7(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,h=e.order,v=e.component,y=v===void 0?"div":v,g=Ae(e,f7),p=a&&!m;function x(R){l(c,R)}oc.useEffect(function(){return function(){x(null)}},[]);var S=i&&n!==ju?i(n,{index:h}):d,b;o||(b={opacity:p?0:1,height:p?0:ju,overflowY:p?"hidden":ju,order:a?h:ju,pointerEvents:p?"none":ju,position:p?"absolute":ju});var w={};p&&(w["aria-hidden"]=!0);var C=oc.createElement(y,ee({className:(0,wM.default)(!o&&r,u),style:P(P({},b),f)},w,g,{ref:t}),S);return a&&(C=oc.createElement(cn,{onResize:function(_){var O=_.offsetWidth;x(O)},disabled:s},C)),C}var EM=oc.forwardRef(d7);EM.displayName="Item";var Vu=EM;var Dy=E(I()),RM=E(bi());function D1(e){if(typeof MessageChannel>"u")ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function OM(){var e=Dy.useRef(null),t=function(o){e.current||(e.current=[],D1(function(){(0,RM.unstable_batchedUpdates)(function(){e.current.forEach(function(n){n()}),e.current=null})})),e.current.push(o)};return t}function nc(e,t){var r=Dy.useState(t),o=B(r,2),n=o[0],i=o[1],a=Et(function(s){e(function(){i(s)})});return[n,a]}var Zs=E(I()),PM=E(Ee());var _M=E(I()),ic=_M.default.createContext(null);var p7=["component"],m7=["className"],g7=["className"],h7=function(t,r){var o=Zs.useContext(ic);if(!o){var n=t.component,i=n===void 0?"div":n,a=Ae(t,p7);return Zs.createElement(i,ee({},a,{ref:r}))}var s=o.className,l=Ae(o,m7),c=t.className,u=Ae(t,g7);return Zs.createElement(ic.Provider,{value:null},Zs.createElement(Vu,ee({ref:r,className:(0,PM.default)(s,c)},l,u)))},TM=Zs.forwardRef(h7);TM.displayName="RawItem";var NM=TM;var v7=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],$M="responsive",DM="invalidate";function y7(e){return"+ ".concat(e.length," ...")}function x7(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,h=e.maxCount,v=e.renderRest,y=e.renderRawRest,g=e.suffix,p=e.component,x=p===void 0?"div":p,S=e.itemComponent,b=e.onVisibleChange,w=Ae(e,v7),C=f==="full",R=OM(),_=nc(R,null),O=B(_,2),N=O[0],k=O[1],L=N||0,j=nc(R,new Map),W=B(j,2),D=W[0],$=W[1],M=nc(R,0),V=B(M,2),F=V[0],z=V[1],U=nc(R,0),H=B(U,2),A=H[0],G=H[1],q=nc(R,0),oe=B(q,2),Z=oe[0],X=oe[1],ie=(0,ra.useState)(null),te=B(ie,2),K=te[0],Y=te[1],ne=(0,ra.useState)(null),Q=B(ne,2),J=Q[0],le=Q[1],ue=ri.useMemo(function(){return J===null&&C?Number.MAX_SAFE_INTEGER:J||0},[J,N]),fe=(0,ra.useState)(!1),he=B(fe,2),ye=he[0],we=he[1],ce="".concat(o,"-item"),ae=Math.max(F,A),Re=h===$M,Me=i.length&&Re,Be=h===DM,Ie=Me||typeof h=="number"&&i.length>h,Oe=(0,ra.useMemo)(function(){var Le=i;return Me?N===null&&C?Le=i:Le=i.slice(0,Math.min(i.length,L/u)):typeof h=="number"&&(Le=i.slice(0,h)),Le},[i,u,N,h,Me]),be=(0,ra.useMemo)(function(){return Me?i.slice(ue+1):i.slice(Oe.length)},[i,Oe,Me,ue]),Ve=(0,ra.useCallback)(function(Le,Te){var Ne;return typeof l=="function"?l(Le):(Ne=l&&Le?.[l])!==null&&Ne!==void 0?Ne:Te},[l]),He=(0,ra.useCallback)(a||function(Le){return Le},[a]);function $e(Le,Te,Ne){J===Le&&(Te===void 0||Te===K)||(le(Le),Ne||(we(Le<i.length-1),b?.(Le)),Te!==void 0&&Y(Te))}function de(Le,Te){k(Te.clientWidth)}function me(Le,Te){$(function(Ne){var vt=new Map(Ne);return Te===null?vt.delete(Le):vt.set(Le,Te),vt})}function ze(Le,Te){G(Te),z(A)}function Ce(Le,Te){X(Te)}function Ue(Le){return D.get(Ve(Oe[Le],Le))}yt(function(){if(L&&typeof ae=="number"&&Oe){var Le=Z,Te=Oe.length,Ne=Te-1;if(!Te){$e(0,null);return}for(var vt=0;vt<Te;vt+=1){var Bt=Ue(vt);if(C&&(Bt=Bt||0),Bt===void 0){$e(vt-1,void 0,!0);break}if(Le+=Bt,Ne===0&&Le<=L||vt===Ne-1&&Le+Ue(Ne)<=L){$e(Ne,null);break}else if(Le+ae>L){$e(vt-1,Le-Bt-Z+A);break}}g&&Ue(0)+Z>L&&Y(null)}},[L,D,A,Z,Ve,Oe]);var Ye=ye&&!!be.length,gt={};K!==null&&Me&&(gt={position:"absolute",left:K,top:0});var Tt={prefixCls:ce,responsive:Me,component:S,invalidate:Be},ht=s?function(Le,Te){var Ne=Ve(Le,Te);return ri.createElement(ic.Provider,{key:Ne,value:P(P({},Tt),{},{order:Te,item:Le,itemKey:Ne,registerSize:me,display:Te<=ue})},s(Le,Te))}:function(Le,Te){var Ne=Ve(Le,Te);return ri.createElement(Vu,ee({},Tt,{order:Te,key:Ne,item:Le,renderItem:He,itemKey:Ne,registerSize:me,display:Te<=ue}))},We={order:Ye?ue:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:ze,display:Ye},Pe=v||y7,tt=y?ri.createElement(ic.Provider,{value:P(P({},Tt),We)},y(be)):ri.createElement(Vu,ee({},Tt,We),typeof Pe=="function"?Pe(be):Pe),De=ri.createElement(x,ee({className:(0,IM.default)(!Be&&o,m),style:d,ref:t},w),Oe.map(ht),Ie?tt:null,g&&ri.createElement(Vu,ee({},Tt,{responsive:Re,responsiveDisabled:!Me,order:ue,className:"".concat(ce,"-suffix"),registerSize:Ce,display:!0,style:gt}),g));return Re?ri.createElement(cn,{onResize:de,disabled:!Me},De):De}var vp=ri.forwardRef(x7);vp.displayName="Overflow";vp.Item=NM;vp.RESPONSIVE=$M;vp.INVALIDATE=DM;var AM=vp;var MM=AM;var Hu=E(I()),LM=E(Ee());var b7=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,h=t.maxLength,v=t.onKeyDown,y=t.onMouseDown,g=t.onChange,p=t.onPaste,x=t.onCompositionStart,S=t.onCompositionEnd,b=t.onBlur,w=t.open,C=t.attrs,R=a||Hu.createElement("input",null),_=R,O=_.ref,N=_.props,k=N.onKeyDown,L=N.onChange,j=N.onMouseDown,W=N.onCompositionStart,D=N.onCompositionEnd,$=N.onBlur,M=N.style;return Al(!("maxLength"in R.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),R=Hu.cloneElement(R,P(P(P({type:"search"},N),{},{id:i,ref:Fr(r,O),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:(0,LM.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:h,readOnly:!f,unselectable:f?null:"on",style:P(P({},M),{},{opacity:f?null:0}),onKeyDown:function(F){v(F),k&&k(F)},onMouseDown:function(F){y(F),j&&j(F)},onChange:function(F){g(F),L&&L(F)},onCompositionStart:function(F){x(F),W&&W(F)},onCompositionEnd:function(F){S(F),D&&D(F)},onPaste:p,onBlur:function(F){b(F),$&&$(F)}})),R},S7=Hu.forwardRef(b7),Ay=S7;var Ly=E(I());function yp(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var C7=typeof window<"u"&&window.document&&window.document.documentElement,FM=C7;function zM(e){return e!=null}function WM(e){return!e&&e!==0}function kM(e){return["string","number"].includes(pe(e))}function My(e){var t=void 0;return e&&(kM(e.title)?t=e.title.toString():kM(e.label)&&(t=e.label.toString())),t}function A1(e,t){FM?Ly.useLayoutEffect(e,t):Ly.useEffect(e,t)}function w7(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var BM=function(t){t.preventDefault(),t.stopPropagation()},E7=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,h=t.autoComplete,v=t.activeDescendantId,y=t.tabIndex,g=t.removeIcon,p=t.maxTagCount,x=t.maxTagTextLength,S=t.maxTagPlaceholder,b=S===void 0?function(ne){return"+ ".concat(ne.length," ...")}:S,w=t.tagRender,C=t.onToggleOpen,R=t.onRemove,_=t.onInputChange,O=t.onInputPaste,N=t.onInputKeyDown,k=t.onInputMouseDown,L=t.onInputCompositionStart,j=t.onInputCompositionEnd,W=t.onInputBlur,D=An.useRef(null),$=(0,M1.useState)(0),M=B($,2),V=M[0],F=M[1],z=(0,M1.useState)(!1),U=B(z,2),H=U[0],A=U[1],G="".concat(o,"-selection"),q=i||f==="multiple"&&s===!1||f==="tags"?a:"",oe=f==="tags"||f==="multiple"&&s===!1||d&&(i||H);A1(function(){F(D.current.scrollWidth)},[q]);var Z=function(Q,J,le,ue,fe){return An.createElement("span",{title:My(Q),className:(0,jM.default)("".concat(G,"-item"),T({},"".concat(G,"-item-disabled"),le))},An.createElement("span",{className:"".concat(G,"-item-content")},J),ue&&An.createElement(Qs,{className:"".concat(G,"-item-remove"),onMouseDown:BM,onClick:fe,customizeIcon:g},"\xD7"))},X=function(Q,J,le,ue,fe,he){var ye=function(ce){BM(ce),C(!i)};return An.createElement("span",{onMouseDown:ye},w({label:J,value:Q,disabled:le,closable:ue,onClose:fe,isMaxTag:!!he}))},ie=function(Q){var J=Q.disabled,le=Q.label,ue=Q.value,fe=!u&&!J,he=le;if(typeof x=="number"&&(typeof le=="string"||typeof le=="number")){var ye=String(he);ye.length>x&&(he="".concat(ye.slice(0,x),"..."))}var we=function(ae){ae&&ae.stopPropagation(),R(Q)};return typeof w=="function"?X(ue,he,J,fe,we):Z(Q,he,J,fe,we)},te=function(Q){if(!n.length)return null;var J=typeof b=="function"?b(Q):b;return typeof w=="function"?X(void 0,J,!1,!1,void 0,!0):Z({title:J},J,!1)},K=An.createElement("div",{className:"".concat(G,"-search"),style:{width:V},onFocus:function(){A(!0)},onBlur:function(){A(!1)}},An.createElement(Ay,{ref:l,open:i,prefixCls:o,id:r,inputElement:null,disabled:u,autoFocus:m,autoComplete:h,editable:oe,activeDescendantId:v,value:q,onKeyDown:N,onMouseDown:k,onChange:_,onPaste:O,onCompositionStart:L,onCompositionEnd:j,onBlur:W,tabIndex:y,attrs:Ao(t,!0)}),An.createElement("span",{ref:D,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q,"\xA0")),Y=An.createElement(MM,{prefixCls:"".concat(G,"-overflow"),data:n,renderItem:ie,renderRest:te,suffix:K,itemKey:w7,maxCount:p});return An.createElement("span",{className:"".concat(G,"-wrap")},Y,!n.length&&!q&&An.createElement("span",{className:"".concat(G,"-placeholder")},c))},VM=E7;var oi=E(I());var R7=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,h=t.tabIndex,v=t.showSearch,y=t.searchValue,g=t.activeValue,p=t.maxLength,x=t.onInputKeyDown,S=t.onInputMouseDown,b=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,R=t.onInputCompositionEnd,_=t.onInputBlur,O=t.title,N=oi.useState(!1),k=B(N,2),L=k[0],j=k[1],W=u==="combobox",D=W||v,$=d[0],M=y||"";W&&g&&!L&&(M=g),oi.useEffect(function(){W&&j(!1)},[W,g]);var V=u!=="combobox"&&!f&&!v?!1:!!M,F=O===void 0?My($):O,z=oi.useMemo(function(){return $?null:oi.createElement("span",{className:"".concat(o,"-selection-placeholder"),style:V?{visibility:"hidden"}:void 0},m)},[$,V,m,o]);return oi.createElement("span",{className:"".concat(o,"-selection-wrap")},oi.createElement("span",{className:"".concat(o,"-selection-search")},oi.createElement(Ay,{ref:i,prefixCls:o,id:n,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:D,activeDescendantId:c,value:M,onKeyDown:x,onMouseDown:S,onChange:function(H){j(!0),b(H)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:_,tabIndex:h,attrs:Ao(t,!0),maxLength:W?p:void 0})),!W&&$?oi.createElement("span",{className:"".concat(o,"-selection-item"),title:F,style:V?{visibility:"hidden"}:void 0},$.label):null,z)},HM=R7;var O7=function(t,r){var o=(0,ky.useRef)(null),n=(0,ky.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,h=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,g=t.onInputBlur,p=t.domRef;Va.useImperativeHandle(r,function(){return{focus:function(F){o.current.focus(F)},blur:function(){o.current.blur()}}});var x=hp(0),S=B(x,2),b=S[0],w=S[1],C=function(F){var z=F.which,U=o.current instanceof HTMLTextAreaElement;!U&&a&&(z===Fe.UP||z===Fe.DOWN)&&F.preventDefault(),y&&y(F),z===Fe.ENTER&&s==="tags"&&!n.current&&!a&&h?.(F.target.value),!(U&&!a&&~[Fe.UP,Fe.DOWN,Fe.LEFT,Fe.RIGHT].indexOf(z))&&CM(z)&&v(!0)},R=function(){w(!0)},_=(0,ky.useRef)(null),O=function(F){m(F,!0,n.current)!==!1&&v(!0)},N=function(){n.current=!0},k=function(F){n.current=!1,s!=="combobox"&&O(F.target.value)},L=function(F){var z=F.target.value;if(c&&_.current&&/[\r\n]/.test(_.current)){var U=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(U,_.current)}_.current=null,O(z)},j=function(F){var z=F.clipboardData,U=z?.getData("text");_.current=U||""},W=function(F){var z=F.target;if(z!==o.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){o.current.focus()}):o.current.focus()}},D=function(F){var z=b();F.target!==o.current&&!z&&!(s==="combobox"&&u)&&F.preventDefault(),(s!=="combobox"&&(!l||!z)||!a)&&(a&&d!==!1&&m("",!0,!1),v())},$={inputRef:o,onInputKeyDown:C,onInputMouseDown:R,onInputChange:L,onInputPaste:j,onInputCompositionStart:N,onInputCompositionEnd:k,onInputBlur:g},M=s==="multiple"||s==="tags"?Va.createElement(VM,ee({},t,$)):Va.createElement(HM,ee({},t,$));return Va.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:W,onMouseDown:D},f&&Va.createElement("div",{className:"".concat(i,"-prefix")},f),M)},_7=Va.forwardRef(O7),UM=_7;var zy=E(Ee());var bt=E(I());var YM=E(Ee());var ni=E(I());var GM=E(Ee()),Fy=E(I());function L1(e){var t=e.prefixCls,r=e.align,o=e.arrow,n=e.arrowPos,i=o||{},a=i.className,s=i.content,l=n.x,c=l===void 0?0:l,u=n.y,f=u===void 0?0:u,d=Fy.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],y=h[0],g=h[1],p=v[0],x=v[1];y===p||!["t","b"].includes(y)?m.top=f:y==="t"?m.top=0:m.bottom=0,g===x||!["l","r"].includes(g)?m.left=c:g==="l"?m.left=0:m.right=0}return Fy.createElement("div",{ref:d,className:(0,GM.default)("".concat(t,"-arrow"),a),style:m},s)}var qM=E(Ee());var k1=E(I());function F1(e){var t=e.prefixCls,r=e.open,o=e.zIndex,n=e.mask,i=e.motion;return n?k1.createElement(ao,ee({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return k1.createElement("div",{style:{zIndex:o},className:(0,qM.default)("".concat(t,"-mask"),s)})}):null}var KM=E(I()),P7=KM.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),XM=P7;var T7=ni.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,h=e.arrowPos,v=e.align,y=e.motion,g=e.maskMotion,p=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,b=e.portal,w=e.zIndex,C=e.onMouseEnter,R=e.onMouseLeave,_=e.onPointerEnter,O=e.onPointerDownCapture,N=e.ready,k=e.offsetX,L=e.offsetY,j=e.offsetR,W=e.offsetB,D=e.onAlign,$=e.onPrepare,M=e.stretch,V=e.targetWidth,F=e.targetHeight,z=typeof r=="function"?r():r,U=l||c,H=x?.length>0,A=ni.useState(!x||!H),G=B(A,2),q=G[0],oe=G[1];if(yt(function(){!q&&H&&a&&oe(!0)},[q,H,a]),!q)return null;var Z="auto",X={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(N||!l){var ie,te=v.points,K=v.dynamicInset||((ie=v._experimental)===null||ie===void 0?void 0:ie.dynamicInset),Y=K&&te[0][1]==="r",ne=K&&te[0][0]==="b";Y?(X.right=j,X.left=Z):(X.left=k,X.right=Z),ne?(X.bottom=W,X.top=Z):(X.top=L,X.bottom=Z)}var Q={};return M&&(M.includes("height")&&F?Q.height=F:M.includes("minHeight")&&F&&(Q.minHeight=F),M.includes("width")&&V?Q.width=V:M.includes("minWidth")&&V&&(Q.minWidth=V)),l||(Q.pointerEvents="none"),ni.createElement(b,{open:p||U,getContainer:x&&function(){return x(a)},autoDestroy:S},ni.createElement(F1,{prefixCls:n,open:l,zIndex:w,mask:d,motion:g}),ni.createElement(cn,{onResize:D,disabled:!l},function(J){return ni.createElement(ao,ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(n,"-hidden")},y,{onAppearPrepare:$,onEnterPrepare:$,visible:l,onVisibleChanged:function(ue){var fe;y==null||(fe=y.onVisibleChanged)===null||fe===void 0||fe.call(y,ue),s(ue)}}),function(le,ue){var fe=le.className,he=le.style,ye=(0,YM.default)(n,fe,o);return ni.createElement("div",{ref:Fr(J,t,ue),className:ye,style:P(P(P(P({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},X),Q),he),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:R,onPointerEnter:_,onClick:f,onPointerDownCapture:O},m&&ni.createElement(L1,{prefixCls:n,arrow:m,arrowPos:h,align:v}),ni.createElement(XM,{cache:!l&&!u},z))})}))}),QM=T7;var Uu=E(I()),N7=Uu.forwardRef(function(e,t){var r=e.children,o=e.getTriggerDOMNode,n=Ci(r),i=Uu.useCallback(function(s){zd(t,o?o(s):s)},[o]),a=_n(i,Ts(r));return n?Uu.cloneElement(r,{ref:a}):r}),ZM=N7;var JM=E(I()),I7=JM.createContext(null),z1=I7;var tL=E(I());function eL(e){return e?Array.isArray(e)?e:[e]:[]}function W1(e,t,r,o){return tL.useMemo(function(){var n=eL(r??t),i=eL(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 ac=E(I());function $7(){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 rL(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($7((s=e[l])===null||s===void 0?void 0:s.points,n,o))return"".concat(t,"-placement-").concat(l)}return""}function B1(e,t,r,o){return t||(r?{motionName:"".concat(e,"-").concat(r)}:o?{motionName:o}:null)}function Js(e){return e.ownerDocument.defaultView}function bp(e){for(var t=[],r=e?.parentElement,o=["hidden","scroll","clip","auto"];r;){var n=Js(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 Gu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function xp(e){return Gu(parseFloat(e),0)}function j1(e,t){var r=P({},e);return(t||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var n=Js(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,h=o.offsetWidth,v=o.clientWidth,y=xp(s),g=xp(l),p=xp(c),x=xp(u),S=Gu(Math.round(f.width/h*1e3)/1e3),b=Gu(Math.round(f.height/d*1e3)/1e3),w=(h-v-p-x)*S,C=(d-m-y-g)*b,R=y*b,_=g*b,O=p*S,N=x*S,k=0,L=0;if(i==="clip"){var j=xp(a);k=j*S,L=j*b}var W=f.x+O-k,D=f.y+R-L,$=W+f.width+2*k-O-N-w,M=D+f.height+2*L-R-_-C;r.left=Math.max(r.left,W),r.top=Math.max(r.top,D),r.right=Math.min(r.right,$),r.bottom=Math.min(r.bottom,M)}}),r}function oL(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 nL(e,t){var r=t||[],o=B(r,2),n=o[0],i=o[1];return[oL(e.width,n),oL(e.height,i)]}function iL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function qu(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 el(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(o,n){return n===t?r[o]||"c":o}).join("")}function V1(e,t,r,o,n,i,a){var s=ac.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=ac.useRef(0),d=ac.useMemo(function(){return t?bp(t):[]},[t]),m=ac.useRef({}),h=function(){m.current={}};e||h();var v=Et(function(){if(t&&r&&e){let jo=function(Cc,rs){var wc=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae,om=A.x+Cc,nm=A.y+rs,hx=om+Y,Xe=nm+K,dt=Math.max(om,wc.left),pr=Math.max(nm,wc.top),Mr=Math.min(hx,wc.right),mr=Math.min(Xe,wc.bottom);return Math.max(0,(Mr-dt)*(mr-pr))},Sc=function(){rr=A.y+Ne,ur=rr+K,fr=A.x+Te,zo=fr+Y};var WR=jo,BR=Sc,p,x,S,b,w=t,C=w.ownerDocument,R=Js(w),_=R.getComputedStyle(w),O=_.width,N=_.height,k=_.position,L=w.style.left,j=w.style.top,W=w.style.right,D=w.style.bottom,$=w.style.overflow,M=P(P({},n[o]),i),V=C.createElement("div");(p=w.parentElement)===null||p===void 0||p.appendChild(V),V.style.left="".concat(w.offsetLeft,"px"),V.style.top="".concat(w.offsetTop,"px"),V.style.position=k,V.style.height="".concat(w.offsetHeight,"px"),V.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 F;if(Array.isArray(r))F={x:r[0],y:r[1],width:0,height:0};else{var z,U,H=r.getBoundingClientRect();H.x=(z=H.x)!==null&&z!==void 0?z:H.left,H.y=(U=H.y)!==null&&U!==void 0?U:H.top,F={x:H.x,y:H.y,width:H.width,height:H.height}}var A=w.getBoundingClientRect();A.x=(x=A.x)!==null&&x!==void 0?x:A.left,A.y=(S=A.y)!==null&&S!==void 0?S:A.top;var G=C.documentElement,q=G.clientWidth,oe=G.clientHeight,Z=G.scrollWidth,X=G.scrollHeight,ie=G.scrollTop,te=G.scrollLeft,K=A.height,Y=A.width,ne=F.height,Q=F.width,J={left:0,top:0,right:q,bottom:oe},le={left:-te,top:-ie,right:Z-te,bottom:X-ie},ue=M.htmlRegion,fe="visible",he="visibleFirst";ue!=="scroll"&&ue!==he&&(ue=fe);var ye=ue===he,we=j1(le,d),ce=j1(J,d),ae=ue===fe?ce:we,Re=ye?ce:ae;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Me=w.getBoundingClientRect();w.style.left=L,w.style.top=j,w.style.right=W,w.style.bottom=D,w.style.overflow=$,(b=w.parentElement)===null||b===void 0||b.removeChild(V);var Be=Gu(Math.round(Y/parseFloat(O)*1e3)/1e3),Ie=Gu(Math.round(K/parseFloat(N)*1e3)/1e3);if(Be===0||Ie===0||Ml(r)&&!qv(r))return;var Oe=M.offset,be=M.targetOffset,Ve=nL(A,Oe),He=B(Ve,2),$e=He[0],de=He[1],me=nL(F,be),ze=B(me,2),Ce=ze[0],Ue=ze[1];F.x-=Ce,F.y-=Ue;var Ye=M.points||[],gt=B(Ye,2),Tt=gt[0],ht=gt[1],We=iL(ht),Pe=iL(Tt),tt=qu(F,We),De=qu(A,Pe),Le=P({},M),Te=tt.x-De.x+$e,Ne=tt.y-De.y+de,vt=jo(Te,Ne),Bt=jo(Te,Ne,ce),je=qu(F,["t","l"]),_e=qu(A,["t","l"]),Qe=qu(F,["b","r"]),Ze=qu(A,["b","r"]),Ke=M.overflow||{},ot=Ke.adjustX,kt=Ke.adjustY,Nt=Ke.shiftX,tr=Ke.shiftY,Ft=function(rs){return typeof rs=="boolean"?rs:rs>=0},rr,ur,fr,zo;Sc();var dr=Ft(kt),Er=Pe[0]===We[0];if(dr&&Pe[0]==="t"&&(ur>Re.bottom||m.current.bt)){var Se=Ne;Er?Se-=K-ne:Se=je.y-Ze.y-de;var Ge=jo(Te,Se),ke=jo(Te,Se,ce);Ge>vt||Ge===vt&&(!ye||ke>=Bt)?(m.current.bt=!0,Ne=Se,de=-de,Le.points=[el(Pe,0),el(We,0)]):m.current.bt=!1}if(dr&&Pe[0]==="b"&&(rr<Re.top||m.current.tb)){var xe=Ne;Er?xe+=K-ne:xe=Qe.y-_e.y-de;var nt=jo(Te,xe),It=jo(Te,xe,ce);nt>vt||nt===vt&&(!ye||It>=Bt)?(m.current.tb=!0,Ne=xe,de=-de,Le.points=[el(Pe,0),el(We,0)]):m.current.tb=!1}var $t=Ft(ot),mo=Pe[1]===We[1];if($t&&Pe[1]==="l"&&(zo>Re.right||m.current.rl)){var Dr=Te;mo?Dr-=Y-Q:Dr=je.x-Ze.x-$e;var Br=jo(Dr,Ne),Rr=jo(Dr,Ne,ce);Br>vt||Br===vt&&(!ye||Rr>=Bt)?(m.current.rl=!0,Te=Dr,$e=-$e,Le.points=[el(Pe,1),el(We,1)]):m.current.rl=!1}if($t&&Pe[1]==="r"&&(fr<Re.left||m.current.lr)){var jr=Te;mo?jr+=Y-Q:jr=Qe.x-_e.x-$e;var tn=jo(jr,Ne),Wo=jo(jr,Ne,ce);tn>vt||tn===vt&&(!ye||Wo>=Bt)?(m.current.lr=!0,Te=jr,$e=-$e,Le.points=[el(Pe,1),el(We,1)]):m.current.lr=!1}Sc();var eo=Nt===!0?0:Nt;typeof eo=="number"&&(fr<ce.left&&(Te-=fr-ce.left-$e,F.x+Q<ce.left+eo&&(Te+=F.x-ce.left+Q-eo)),zo>ce.right&&(Te-=zo-ce.right-$e,F.x>ce.right-eo&&(Te+=F.x-ce.right+eo)));var Eo=tr===!0?0:tr;typeof Eo=="number"&&(rr<ce.top&&(Ne-=rr-ce.top-de,F.y+ne<ce.top+Eo&&(Ne+=F.y-ce.top+ne-Eo)),ur>ce.bottom&&(Ne-=ur-ce.bottom-de,F.y>ce.bottom-Eo&&(Ne+=F.y-ce.bottom+Eo)));var Ja=A.x+Te,es=Ja+Y,kn=A.y+Ne,bc=kn+K,ts=F.x,Ct=ts+Q,pt=F.y,to=pt+ne,ro=Math.max(Ja,ts),yr=Math.min(es,Ct),Ar=(ro+yr)/2,yn=Ar-Ja,rn=Math.max(kn,pt),Fn=Math.min(bc,to),Li=(rn+Fn)/2,ui=Li-kn;a?.(t,Le);var ki=Me.right-A.x-(Te+A.width),Bo=Me.bottom-A.y-(Ne+A.height);Be===1&&(Te=Math.round(Te),ki=Math.round(ki)),Ie===1&&(Ne=Math.round(Ne),Bo=Math.round(Bo));var gx={ready:!0,offsetX:Te/Be,offsetY:Ne/Ie,offsetR:ki/Be,offsetB:Bo/Ie,arrowX:yn/Be,arrowY:ui/Ie,scaleX:Be,scaleY:Ie,align:Le};u(gx)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},g=function(){u(function(x){return P(P({},x),{},{ready:!1})})};return yt(g,[o]),yt(function(){e||g()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function H1(e,t,r,o,n){yt(function(){if(e&&t&&r){let d=function(){o(),n()};var f=d,i=t,a=r,s=bp(i),l=bp(a),c=Js(a),u=new Set([c].concat(se(s),se(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 Sp=E(I());function U1(e,t,r,o,n,i,a,s){var l=Sp.useRef(e);l.current=e;var c=Sp.useRef(!1);Sp.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=Js(o);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",d,!0),m.addEventListener("contextmenu",d,!0);var h=Ul(r);if(h&&(h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0)),0)var v,y,g,p;return function(){m.removeEventListener("pointerdown",f,!0),m.removeEventListener("mousedown",d,!0),m.removeEventListener("contextmenu",d,!0),h&&(h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0))}}},[t,r,o,n,i]);function u(){c.current=!0}return u}var D7=["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 A7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jl,t=bt.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,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,g=y===void 0?.1:y,p=r.focusDelay,x=r.blurDelay,S=r.mask,b=r.maskClosable,w=b===void 0?!0:b,C=r.getPopupContainer,R=r.forceRender,_=r.autoDestroy,O=r.destroyPopupOnHide,N=r.popup,k=r.popupClassName,L=r.popupStyle,j=r.popupPlacement,W=r.builtinPlacements,D=W===void 0?{}:W,$=r.popupAlign,M=r.zIndex,V=r.stretch,F=r.getPopupClassNameFromAlign,z=r.fresh,U=r.alignPoint,H=r.onPopupClick,A=r.onPopupAlign,G=r.arrow,q=r.popupMotion,oe=r.maskMotion,Z=r.popupTransitionName,X=r.popupAnimation,ie=r.maskTransitionName,te=r.maskAnimation,K=r.className,Y=r.getTriggerDOMNode,ne=Ae(r,D7),Q=_||O||!1,J=bt.useState(!1),le=B(J,2),ue=le[0],fe=le[1];yt(function(){fe(Wu())},[]);var he=bt.useRef({}),ye=bt.useContext(z1),we=bt.useMemo(function(){return{registerSubPopup:function(dt,pr){he.current[dt]=pr,ye?.registerSubPopup(dt,pr)}}},[ye]),ce=Lu(),ae=bt.useState(null),Re=B(ae,2),Me=Re[0],Be=Re[1],Ie=bt.useRef(null),Oe=Et(function(Xe){Ie.current=Xe,Ml(Xe)&&Me!==Xe&&Be(Xe),ye?.registerSubPopup(ce,Xe)}),be=bt.useState(null),Ve=B(be,2),He=Ve[0],$e=Ve[1],de=bt.useRef(null),me=Et(function(Xe){Ml(Xe)&&He!==Xe&&($e(Xe),de.current=Xe)}),ze=bt.Children.only(a),Ce=ze?.props||{},Ue={},Ye=Et(function(Xe){var dt,pr,Mr=He;return Mr?.contains(Xe)||((dt=Ul(Mr))===null||dt===void 0?void 0:dt.host)===Xe||Xe===Mr||Me?.contains(Xe)||((pr=Ul(Me))===null||pr===void 0?void 0:pr.host)===Xe||Xe===Me||Object.values(he.current).some(function(mr){return mr?.contains(Xe)||Xe===mr})}),gt=B1(i,q,X,Z),Tt=B1(i,oe,te,ie),ht=bt.useState(d||!1),We=B(ht,2),Pe=We[0],tt=We[1],De=f??Pe,Le=Et(function(Xe){f===void 0&&tt(Xe)});yt(function(){tt(f||!1)},[f]);var Te=bt.useRef(De);Te.current=De;var Ne=bt.useRef([]);Ne.current=[];var vt=Et(function(Xe){var dt;Le(Xe),((dt=Ne.current[Ne.current.length-1])!==null&&dt!==void 0?dt:De)!==Xe&&(Ne.current.push(Xe),m?.(Xe))}),Bt=bt.useRef(),je=function(){clearTimeout(Bt.current)},_e=function(dt){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;je(),pr===0?vt(dt):Bt.current=setTimeout(function(){vt(dt)},pr*1e3)};bt.useEffect(function(){return je},[]);var Qe=bt.useState(!1),Ze=B(Qe,2),Ke=Ze[0],ot=Ze[1];yt(function(Xe){(!Xe||De)&&ot(!0)},[De]);var kt=bt.useState(null),Nt=B(kt,2),tr=Nt[0],Ft=Nt[1],rr=bt.useState(null),ur=B(rr,2),fr=ur[0],zo=ur[1],dr=function(dt){zo([dt.clientX,dt.clientY])},Er=V1(De,Me,U&&fr!==null?fr:He,j,D,$,A),Se=B(Er,11),Ge=Se[0],ke=Se[1],xe=Se[2],nt=Se[3],It=Se[4],$t=Se[5],mo=Se[6],Dr=Se[7],Br=Se[8],Rr=Se[9],jr=Se[10],tn=W1(ue,l,c,u),Wo=B(tn,2),eo=Wo[0],Eo=Wo[1],Ja=eo.has("click"),es=Eo.has("click")||Eo.has("contextMenu"),kn=Et(function(){Ke||jr()}),bc=function(){Te.current&&U&&es&&_e(!1)};H1(De,He,Me,kn,bc),yt(function(){kn()},[fr,j]),yt(function(){De&&!(D!=null&&D[j])&&kn()},[JSON.stringify($)]);var ts=bt.useMemo(function(){var Xe=rL(D,i,Rr,U);return(0,zy.default)(Xe,F?.(Rr))},[Rr,F,D,i,U]);bt.useImperativeHandle(o,function(){return{nativeElement:de.current,popupElement:Ie.current,forceAlign:kn}});var Ct=bt.useState(0),pt=B(Ct,2),to=pt[0],ro=pt[1],yr=bt.useState(0),Ar=B(yr,2),yn=Ar[0],rn=Ar[1],Fn=function(){if(V&&He){var dt=He.getBoundingClientRect();ro(dt.width),rn(dt.height)}},Li=function(){Fn(),kn()},ui=function(dt){ot(!1),jr(),h?.(dt)},ki=function(){return new Promise(function(dt){Fn(),Ft(function(){return dt})})};yt(function(){tr&&(jr(),tr(),Ft(null))},[tr]);function Bo(Xe,dt,pr,Mr){Ue[Xe]=function(mr){var im;Mr?.(mr),_e(dt,pr);for(var vx=arguments.length,jR=new Array(vx>1?vx-1:0),am=1;am<vx;am++)jR[am-1]=arguments[am];(im=Ce[Xe])===null||im===void 0||im.call.apply(im,[Ce,mr].concat(jR))}}(Ja||es)&&(Ue.onClick=function(Xe){var dt;Te.current&&es?_e(!1):!Te.current&&Ja&&(dr(Xe),_e(!0));for(var pr=arguments.length,Mr=new Array(pr>1?pr-1:0),mr=1;mr<pr;mr++)Mr[mr-1]=arguments[mr];(dt=Ce.onClick)===null||dt===void 0||dt.call.apply(dt,[Ce,Xe].concat(Mr))});var gx=U1(De,es,He,Me,S,w,Ye,_e),WR=eo.has("hover"),BR=Eo.has("hover"),jo,Sc;WR&&(Bo("onMouseEnter",!0,v,function(Xe){dr(Xe)}),Bo("onPointerEnter",!0,v,function(Xe){dr(Xe)}),jo=function(dt){(De||Ke)&&Me!==null&&Me!==void 0&&Me.contains(dt.target)&&_e(!0,v)},U&&(Ue.onMouseMove=function(Xe){var dt;(dt=Ce.onMouseMove)===null||dt===void 0||dt.call(Ce,Xe)})),BR&&(Bo("onMouseLeave",!1,g),Bo("onPointerLeave",!1,g),Sc=function(){_e(!1,g)}),eo.has("focus")&&Bo("onFocus",!0,p),Eo.has("focus")&&Bo("onBlur",!1,x),eo.has("contextMenu")&&(Ue.onContextMenu=function(Xe){var dt;Te.current&&Eo.has("contextMenu")?_e(!1):(dr(Xe),_e(!0)),Xe.preventDefault();for(var pr=arguments.length,Mr=new Array(pr>1?pr-1:0),mr=1;mr<pr;mr++)Mr[mr-1]=arguments[mr];(dt=Ce.onContextMenu)===null||dt===void 0||dt.call.apply(dt,[Ce,Xe].concat(Mr))}),K&&(Ue.className=(0,zy.default)(Ce.className,K));var Cc=P(P({},Ce),Ue),rs={},wc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];wc.forEach(function(Xe){ne[Xe]&&(rs[Xe]=function(){for(var dt,pr=arguments.length,Mr=new Array(pr),mr=0;mr<pr;mr++)Mr[mr]=arguments[mr];(dt=Cc[Xe])===null||dt===void 0||dt.call.apply(dt,[Cc].concat(Mr)),ne[Xe].apply(ne,Mr)})});var om=bt.cloneElement(ze,P(P({},Cc),rs)),nm={x:$t,y:mo},hx=G?P({},G!==!0?G:{}):null;return bt.createElement(bt.Fragment,null,bt.createElement(cn,{disabled:!De,ref:me,onResize:Li},bt.createElement(ZM,{getTriggerDOMNode:Y},om)),bt.createElement(z1.Provider,{value:we},bt.createElement(QM,{portal:e,ref:Oe,prefixCls:i,popup:N,className:(0,zy.default)(k,ts),style:L,target:He,onMouseEnter:jo,onMouseLeave:Sc,onPointerEnter:jo,zIndex:M,open:De,keepDom:Ke,fresh:z,onClick:H,onPointerDownCapture:gx,mask:S,motion:gt,maskMotion:Tt,onVisibleChanged:ui,onPrepare:ki,forceRender:R,autoDestroy:Q,getPopupContainer:C,align:Rr,arrow:hx,arrowPos:nm,ready:Ge,offsetX:ke,offsetY:xe,offsetR:nt,offsetB:It,onAlign:kn,stretch:V,targetWidth:to/Dr,targetHeight:yn/Br})))});return t}var Wy=A7(Jl);var aL=E(Ee()),ii=E(I()),M7=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],L7=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"}}},k7=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,h=t.placement,v=t.builtinPlacements,y=t.dropdownMatchSelectWidth,g=t.dropdownRender,p=t.dropdownAlign,x=t.getPopupContainer,S=t.empty,b=t.getTriggerDOMNode,w=t.onPopupVisibleChange,C=t.onPopupMouseEnter,R=Ae(t,M7),_="".concat(o,"-dropdown"),O=s;g&&(O=g(s));var N=ii.useMemo(function(){return v||L7(y)},[v,y]),k=l?"".concat(_,"-").concat(l):c,L=typeof y=="number",j=ii.useMemo(function(){return L?null:y===!1?"minWidth":"width"},[y,L]),W=u;L&&(W=P(P({},W),{},{width:y}));var D=ii.useRef(null);return ii.useImperativeHandle(r,function(){return{getPopupElement:function(){var M;return(M=D.current)===null||M===void 0?void 0:M.popupElement}}}),ii.createElement(Wy,ee({},R,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:_,popupTransitionName:k,popup:ii.createElement("div",{onMouseEnter:C},O),ref:D,stretch:j,popupAlign:p,popupVisible:i,getPopupContainer:x,popupClassName:(0,aL.default)(f,T({},"".concat(_,"-empty"),S)),popupStyle:W,getTriggerDOMNode:b,onPopupVisibleChange:w}),a)},F7=ii.forwardRef(k7),sL=F7;function lL(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 Cp(e){return typeof e<"u"&&!Number.isNaN(e)}function G1(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 cL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,o=t.childrenAsData,n=[],i=G1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,d){Array.isArray(f)&&f.forEach(function(m){if(d||!(l in m)){var h=m[s];n.push({key:lL(m,n.length),groupOption:d,data:m,label:m[a],value:h})}else{var v=m[c];v===void 0&&o&&(v=m.label),n.push({key:lL(m,n.length),group:!0,data:m,label:v}),u(m[l],!0)}})}return u(e,!1),n}function wp(e){var t=P({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var uL=function(t,r,o){if(!r||!r.length)return null;var n=!1,i=function s(l,c){var u=Qh(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(h,v){return[].concat(se(h),se(s(v,d)))},[]).filter(Boolean)},a=i(t,r);return n?typeof o<"u"?a.slice(0,o):a:null};var fL=E(I()),z7=fL.createContext(null),Ku=z7;var dL=E(I());function q1(e){var t=e.visible,r=e.values;if(!t)return null;var o=50;return dL.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(pe(i))?i:a}).join(", ")),r.length>o?", ...":null)}var W7=["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"],B7=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ep=function(t){return t==="tags"||t==="multiple"},j7=St.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,h=m===void 0?"Not Found":m,v=e.onClear,y=e.mode,g=e.disabled,p=e.loading,x=e.getInputElement,S=e.getRawInputElement,b=e.open,w=e.defaultOpen,C=e.onDropdownVisibleChange,R=e.activeValue,_=e.onActiveValueChange,O=e.activeDescendantId,N=e.searchValue,k=e.autoClearSearchValue,L=e.onSearch,j=e.onSearchSplit,W=e.tokenSeparators,D=e.allowClear,$=e.prefix,M=e.suffixIcon,V=e.clearIcon,F=e.OptionList,z=e.animation,U=e.transitionName,H=e.dropdownStyle,A=e.dropdownClassName,G=e.dropdownMatchSelectWidth,q=e.dropdownRender,oe=e.dropdownAlign,Z=e.placement,X=e.builtinPlacements,ie=e.getPopupContainer,te=e.showAction,K=te===void 0?[]:te,Y=e.onFocus,ne=e.onBlur,Q=e.onKeyUp,J=e.onKeyDown,le=e.onMouseDown,ue=Ae(e,W7),fe=Ep(y),he=(a!==void 0?a:fe)||y==="combobox",ye=P({},ue);B7.forEach(function(Ct){delete ye[Ct]}),c?.forEach(function(Ct){delete ye[Ct]});var we=St.useState(!1),ce=B(we,2),ae=ce[0],Re=ce[1];St.useEffect(function(){Re(Wu())},[]);var Me=St.useRef(null),Be=St.useRef(null),Ie=St.useRef(null),Oe=St.useRef(null),be=St.useRef(null),Ve=St.useRef(!1),He=I1(),$e=B(He,3),de=$e[0],me=$e[1],ze=$e[2];St.useImperativeHandle(t,function(){var Ct,pt;return{focus:(Ct=Oe.current)===null||Ct===void 0?void 0:Ct.focus,blur:(pt=Oe.current)===null||pt===void 0?void 0:pt.blur,scrollTo:function(ro){var yr;return(yr=be.current)===null||yr===void 0?void 0:yr.scrollTo(ro)},nativeElement:Me.current||Be.current}});var Ce=St.useMemo(function(){var Ct;if(y!=="combobox")return N;var pt=(Ct=u[0])===null||Ct===void 0?void 0:Ct.value;return typeof pt=="string"||typeof pt=="number"?String(pt):""},[N,y,u]),Ue=y==="combobox"&&typeof x=="function"&&x()||null,Ye=typeof S=="function"&&S(),gt=_n(Be,Ye==null||(r=Ye.props)===null||r===void 0?void 0:r.ref),Tt=St.useState(!1),ht=B(Tt,2),We=ht[0],Pe=ht[1];yt(function(){Pe(!0)},[]);var tt=zt(!1,{defaultValue:w,value:b}),De=B(tt,2),Le=De[0],Te=De[1],Ne=We?Le:!1,vt=!h&&d;(g||vt&&Ne&&y==="combobox")&&(Ne=!1);var Bt=vt?!1:Ne,je=St.useCallback(function(Ct){var pt=Ct!==void 0?Ct:!Ne;g||(Te(pt),Ne!==pt&&C?.(pt))},[g,Ne,Te,C]),_e=St.useMemo(function(){return(W||[]).some(function(Ct){return[`
|
|
`,`\r
|
|
`].includes(Ct)})},[W]),Qe=St.useContext(Ku)||{},Ze=Qe.maxCount,Ke=Qe.rawValues,ot=function(pt,to,ro){if(!(fe&&Cp(Ze)&&Ke?.size>=Ze)){var yr=!0,Ar=pt;_?.(null);var yn=uL(pt,W,Cp(Ze)?Ze-Ke.size:void 0),rn=ro?null:yn;return y!=="combobox"&&rn&&(Ar="",j?.(rn),je(!1),yr=!1),L&&Ce!==Ar&&L(Ar,{source:to?"typing":"effect"}),yr}},kt=function(pt){!pt||!pt.trim()||L(pt,{source:"submit"})};St.useEffect(function(){!Ne&&!fe&&y!=="combobox"&&ot("",!1,!1)},[Ne]),St.useEffect(function(){Le&&g&&Te(!1),g&&!Ve.current&&me(!1)},[g]);var Nt=hp(),tr=B(Nt,2),Ft=tr[0],rr=tr[1],ur=St.useRef(!1),fr=function(pt){var to=Ft(),ro=pt.key,yr=ro==="Enter";if(yr&&(y!=="combobox"&&pt.preventDefault(),Ne||je(!0)),rr(!!Ce),ro==="Backspace"&&!to&&fe&&!Ce&&u.length){for(var Ar=se(u),yn=null,rn=Ar.length-1;rn>=0;rn-=1){var Fn=Ar[rn];if(!Fn.disabled){Ar.splice(rn,1),yn=Fn;break}}yn&&f(Ar,{type:"remove",values:[yn]})}for(var Li=arguments.length,ui=new Array(Li>1?Li-1:0),ki=1;ki<Li;ki++)ui[ki-1]=arguments[ki];if(Ne&&(!yr||!ur.current)){var Bo;yr&&(ur.current=!0),(Bo=be.current)===null||Bo===void 0||Bo.onKeyDown.apply(Bo,[pt].concat(ui))}J?.apply(void 0,[pt].concat(ui))},zo=function(pt){for(var to=arguments.length,ro=new Array(to>1?to-1:0),yr=1;yr<to;yr++)ro[yr-1]=arguments[yr];if(Ne){var Ar;(Ar=be.current)===null||Ar===void 0||Ar.onKeyUp.apply(Ar,[pt].concat(ro))}pt.key==="Enter"&&(ur.current=!1),Q?.apply(void 0,[pt].concat(ro))},dr=function(pt){var to=u.filter(function(ro){return ro!==pt});f(to,{type:"remove",values:[pt]})},Er=function(){ur.current=!1},Se=St.useRef(!1),Ge=function(){me(!0),g||(Y&&!Se.current&&Y.apply(void 0,arguments),K.includes("focus")&&je(!0)),Se.current=!0},ke=function(){Ve.current=!0,me(!1,function(){Se.current=!1,Ve.current=!1,je(!1)}),!g&&(Ce&&(y==="tags"?L(Ce,{source:"submit"}):y==="multiple"&&L("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},xe=[];St.useEffect(function(){return function(){xe.forEach(function(Ct){return clearTimeout(Ct)}),xe.splice(0,xe.length)}},[]);var nt=function(pt){var to,ro=pt.target,yr=(to=Ie.current)===null||to===void 0?void 0:to.getPopupElement();if(yr&&yr.contains(ro)){var Ar=setTimeout(function(){var Li=xe.indexOf(Ar);if(Li!==-1&&xe.splice(Li,1),ze(),!ae&&!yr.contains(document.activeElement)){var ui;(ui=Oe.current)===null||ui===void 0||ui.focus()}});xe.push(Ar)}for(var yn=arguments.length,rn=new Array(yn>1?yn-1:0),Fn=1;Fn<yn;Fn++)rn[Fn-1]=arguments[Fn];le?.apply(void 0,[pt].concat(rn))},It=St.useState({}),$t=B(It,2),mo=$t[1];function Dr(){mo({})}var Br;Ye&&(Br=function(pt){je(pt)}),$1(function(){var Ct;return[Me.current,(Ct=Ie.current)===null||Ct===void 0?void 0:Ct.getPopupElement()]},Bt,je,!!Ye);var Rr=St.useMemo(function(){return P(P({},e),{},{notFoundContent:h,open:Ne,triggerOpen:Bt,id:o,showSearch:he,multiple:fe,toggleOpen:je})},[e,h,Bt,Ne,o,he,fe,je]),jr=!!M||p,tn;jr&&(tn=St.createElement(Qs,{className:(0,K1.default)("".concat(n,"-arrow"),T({},"".concat(n,"-arrow-loading"),p)),customizeIcon:M,customizeIconProps:{loading:p,searchValue:Ce,open:Ne,focused:de,showSearch:he}}));var Wo=function(){var pt;v?.(),(pt=Oe.current)===null||pt===void 0||pt.focus(),f([],{type:"clear",values:u}),ot("",!1,!1)},eo=SM(n,Wo,u,D,V,g,Ce,y),Eo=eo.allowClear,Ja=eo.clearIcon,es=St.createElement(F,{ref:be}),kn=(0,K1.default)(n,i,T(T(T(T(T(T(T(T(T(T({},"".concat(n,"-focused"),de),"".concat(n,"-multiple"),fe),"".concat(n,"-single"),!fe),"".concat(n,"-allow-clear"),D),"".concat(n,"-show-arrow"),jr),"".concat(n,"-disabled"),g),"".concat(n,"-loading"),p),"".concat(n,"-open"),Ne),"".concat(n,"-customize-input"),Ue),"".concat(n,"-show-search"),he)),bc=St.createElement(sL,{ref:Ie,disabled:g,prefixCls:n,visible:Bt,popupElement:es,animation:z,transitionName:U,dropdownStyle:H,dropdownClassName:A,direction:l,dropdownMatchSelectWidth:G,dropdownRender:q,dropdownAlign:oe,placement:Z,builtinPlacements:X,getPopupContainer:ie,empty:d,getTriggerDOMNode:function(pt){return Be.current||pt},onPopupVisibleChange:Br,onPopupMouseEnter:Dr},Ye?St.cloneElement(Ye,{ref:gt}):St.createElement(UM,ee({},e,{domRef:Be,prefixCls:n,inputElement:Ue,ref:Oe,id:o,prefix:$,showSearch:he,autoClearSearchValue:k,mode:y,activeDescendantId:O,tagRender:s,values:u,open:Ne,onToggleOpen:je,activeValue:R,searchValue:Ce,onSearch:ot,onSearchSubmit:kt,onRemove:dr,tokenWithEnter:_e,onInputBlur:Er}))),ts;return Ye?ts=bc:ts=St.createElement("div",ee({className:kn},ye,{ref:Me,onMouseDown:nt,onKeyDown:fr,onKeyUp:zo,onFocus:Ge,onBlur:ke}),St.createElement(q1,{visible:de&&!Ne,values:u}),bc,tn,Eo&&Ja),St.createElement(N1.Provider,{value:Rr},ts)}),X1=j7;var pL=function(){return null};pL.isSelectOptGroup=!0;var Rp=pL;var mL=function(){return null};mL.isSelectOption=!0;var Op=mL;var lE=E(Ee());var TL=E(Ee());var $r=E(I()),mn=E(I()),sE=E(bi());var Xu=E(I());var gL=E(Ee()),hL=Xu.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=P(P({},d),{},T(T(T(T(T({transform:"translateY(".concat(o,"px)")},c?"marginRight":"marginLeft",-n),"position","absolute"),"left",0),"right",0),"top",0))),Xu.createElement("div",{style:f},Xu.createElement(cn,{onResize:function(h){var v=h.offsetHeight;v&&s&&s()}},Xu.createElement("div",ee({style:d,className:(0,gL.default)(T({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))});hL.displayName="Filler";var vL=hL;var xL=E(I());var By=E(I());function yL(e){var t=e.children,r=e.setRef,o=By.useCallback(function(n){r(n)},[]);return By.cloneElement(t,{ref:o})}function Y1(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 xL.createElement(yL,{key:m,setRef:function(v){return i(c,v)}},d)})}var _p=E(I());function bL(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(h){return h!==void 0?r(h):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 Q1(e,t,r){var o=_p.useState(e),n=B(o,2),i=n[0],a=n[1],s=_p.useState(null),l=B(s,2),c=l[0],u=l[1];return _p.useEffect(function(){var f=bL(i||[],e||[],t);f?.index!==void 0&&(r?.(f.index),u(e[f.index])),a(e)},[e]),[c]}var sc=E(I());var V7=(typeof navigator>"u"?"undefined":pe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Z1=V7;var jy=E(I()),Vy=function(e,t,r,o){var n=(0,jy.useRef)(!1),i=(0,jy.useRef)(null);function a(){clearTimeout(i.current),n.current=!0,i.current=setTimeout(function(){n.current=!1},50)}var s=(0,jy.useRef)({top:e,bottom:t,left:r,right:o});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=o,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),n.current=!1):(!f||n.current)&&a(),!n.current&&f}};function J1(e,t,r,o,n,i,a){var s=(0,sc.useRef)(0),l=(0,sc.useRef)(null),c=(0,sc.useRef)(null),u=(0,sc.useRef)(!1),f=Vy(t,r,o,n);function d(p,x){if(ut.cancel(l.current),!f(!1,x)){var S=p;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=x,c.current=x,Z1||S.preventDefault(),l.current=ut(function(){var b=u.current?10:1;a(s.current*b,!1),s.current=0})}}function m(p,x){a(x,!0),Z1||p.preventDefault()}var h=(0,sc.useRef)(null),v=(0,sc.useRef)(null);function y(p){if(e){ut.cancel(v.current),v.current=ut(function(){h.current=null},2);var x=p.deltaX,S=p.deltaY,b=p.shiftKey,w=x,C=S;(h.current==="sx"||!h.current&&b&&S&&!x)&&(w=S,C=0,h.current="sx");var R=Math.abs(w),_=Math.abs(C);h.current===null&&(h.current=i&&R>_?"x":"y"),h.current==="y"?d(p,C):m(p,w)}}function g(p){e&&(u.current=p.detail===c.current)}return[y,g]}var SL=E(I());function CL(e,t,r,o){var n=SL.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 h=e.length,v=s.length;v<h;v+=1){var y,g=e[v],p=t(g);a.set(p,v);var x=(y=r.get(p))!==null&&y!==void 0?y:o;if(s[v]=(s[v-1]||0)+x,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 RL=E(I()),Yu=E(I());var H7=function(){function e(){lt(this,e),T(this,"maps",void 0),T(this,"id",0),T(this,"diffKeys",new Set),this.maps=Object.create(null)}return ct(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}(),wL=H7;function EL(e){var t=parseFloat(e);return isNaN(t)?0:t}function eE(e,t,r){var o=RL.useState(0),n=B(o,2),i=n[0],a=n[1],s=(0,Yu.useRef)(new Map),l=(0,Yu.useRef)(new wL),c=(0,Yu.useRef)(0);function u(){c.current+=1}function f(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var g=!1;s.current.forEach(function(p,x){if(p&&p.offsetParent){var S=p.offsetHeight,b=getComputedStyle(p),w=b.marginTop,C=b.marginBottom,R=EL(w),_=EL(C),O=S+R+_;l.current.get(x)!==O&&(l.current.set(x,O),g=!0)}}),g&&a(function(p){return p+1})};if(m)h();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&h()})}}function d(m,h){var v=e(m),y=s.current.get(v);h?(s.current.set(v,h),f()):s.current.delete(v),!y!=!h&&(h?t?.(m):r?.(m))}return(0,Yu.useEffect)(function(){return u},[]),[d,f,l.current,i]}var Qu=E(I()),OL=14/15;function tE(e,t,r){var o=(0,Qu.useRef)(!1),n=(0,Qu.useRef)(0),i=(0,Qu.useRef)(0),a=(0,Qu.useRef)(null),s=(0,Qu.useRef)(null),l,c=function(m){if(o.current){var h=Math.ceil(m.touches[0].pageX),v=Math.ceil(m.touches[0].pageY),y=n.current-h,g=i.current-v,p=Math.abs(y)>Math.abs(g);p?n.current=h:i.current=v;var x=r(p,p?y:g,!1,m);x&&m.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){p?y*=OL:g*=OL;var S=Math.floor(p?y:g);(!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))},yt(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 PL=E(I());function _L(e){return Math.floor(Math.pow(e,.5))}function Hy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function rE(e,t,r){PL.useEffect(function(){var o=t.current;if(e&&o){var n=!1,i,a,s=function(){ut.cancel(i)},l=function d(){s(),i=ut(function(){r(a),d()})},c=function(m){if(!(m.target.draggable||m.button!==0)){var h=m;h._virtualHandled||(h._virtualHandled=!0,n=!0)}},u=function(){n=!1,s()},f=function(m){if(n){var h=Hy(m,!1),v=o.getBoundingClientRect(),y=v.top,g=v.bottom;if(h<=y){var p=y-h;a=-_L(p),l()}else if(h>=g){var x=h-g;a=_L(x),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 Uy=E(I());var U7=10;function oE(e,t,r,o,n,i,a,s){var l=Uy.useRef(),c=Uy.useState(null),u=B(c,2),f=u[0],d=u[1];return yt(function(){if(f&&f.times<U7){if(!e.current){d(function(V){return P({},V)});return}i();var m=f.targetAlign,h=f.originAlign,v=f.index,y=f.offset,g=e.current.clientHeight,p=!1,x=m,S=null;if(g){for(var b=m||h,w=0,C=0,R=0,_=Math.min(t.length-1,v),O=0;O<=_;O+=1){var N=n(t[O]);C=w;var k=r.get(N);R=C+(k===void 0?o:k),w=R}for(var L=b==="top"?y:g-y,j=_;j>=0;j-=1){var W=n(t[j]),D=r.get(W);if(D===void 0){p=!0;break}if(L-=D,L<=0)break}switch(b){case"top":S=C-y;break;case"bottom":S=R-g+y;break;default:{var $=e.current.scrollTop,M=$+g;C<$?x="top":R>M&&(x="bottom")}}S!==null&&a(S),S!==f.lastTop&&(p=!0)}p&&d(P(P({},f),{},{times:f.times+1,targetAlign:x,lastTop:S}))}},[f,e.current]),function(m){if(m==null){s();return}if(ut.cancel(l.current),typeof m=="number")a(m);else if(m&&pe(m)==="object"){var h,v=m.align;"index"in m?h=m.index:h=t.findIndex(function(p){return n(p)===m.key});var y=m.offset,g=y===void 0?0:y;d({times:0,index:h,offset:g,originAlign:v})}}}var nE=E(Ee());var sr=E(I());var G7=sr.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,h=e.showScrollBar,v=sr.useState(!1),y=B(v,2),g=y[0],p=y[1],x=sr.useState(null),S=B(x,2),b=S[0],w=S[1],C=sr.useState(null),R=B(C,2),_=R[0],O=R[1],N=!o,k=sr.useRef(),L=sr.useRef(),j=sr.useState(h),W=B(j,2),D=W[0],$=W[1],M=sr.useRef(),V=function(){h===!0||h===!1||(clearTimeout(M.current),$(!0),M.current=setTimeout(function(){$(!1)},3e3))},F=i-f||0,z=f-u||0,U=sr.useMemo(function(){if(n===0||F===0)return 0;var te=n/F;return te*z},[n,F,z]),H=function(K){K.stopPropagation(),K.preventDefault()},A=sr.useRef({top:U,dragging:g,pageY:b,startTop:_});A.current={top:U,dragging:g,pageY:b,startTop:_};var G=function(K){p(!0),w(Hy(K,c)),O(A.current.top),a(),K.stopPropagation(),K.preventDefault()};sr.useEffect(function(){var te=function(Q){Q.preventDefault()},K=k.current,Y=L.current;return K.addEventListener("touchstart",te,{passive:!1}),Y.addEventListener("touchstart",G,{passive:!1}),function(){K.removeEventListener("touchstart",te),Y.removeEventListener("touchstart",G)}},[]);var q=sr.useRef();q.current=F;var oe=sr.useRef();oe.current=z,sr.useEffect(function(){if(g){var te,K=function(Q){var J=A.current,le=J.dragging,ue=J.pageY,fe=J.startTop;ut.cancel(te);var he=k.current.getBoundingClientRect(),ye=f/(c?he.width:he.height);if(le){var we=(Hy(Q,c)-ue)*ye,ce=fe;!N&&c?ce-=we:ce+=we;var ae=q.current,Re=oe.current,Me=Re?ce/Re:0,Be=Math.ceil(Me*ae);Be=Math.max(Be,0),Be=Math.min(Be,ae),te=ut(function(){l(Be,c)})}},Y=function(){p(!1),s()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",Y,{passive:!0}),window.addEventListener("touchend",Y,{passive:!0}),function(){window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",Y),window.removeEventListener("touchend",Y),ut.cancel(te)}}},[g]),sr.useEffect(function(){return V(),function(){clearTimeout(M.current)}},[n]),sr.useImperativeHandle(t,function(){return{delayHidden:V}});var Z="".concat(r,"-scrollbar"),X={position:"absolute",visibility:D?null:"hidden"},ie={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ie.height="100%",ie.width=u,N?ie.left=U:ie.right=U):(X.width=8,X.top=0,X.bottom=0,N?X.right=0:X.left=0,ie.width="100%",ie.height=u,ie.top=U),sr.createElement("div",{ref:k,className:(0,nE.default)(Z,T(T(T({},"".concat(Z,"-horizontal"),c),"".concat(Z,"-vertical"),!c),"".concat(Z,"-visible"),D)),style:P(P({},X),d),onMouseDown:H,onMouseMove:V},sr.createElement("div",{ref:L,className:(0,nE.default)("".concat(Z,"-thumb"),T({},"".concat(Z,"-thumb-moving"),g)),style:P(P({},ie),m),onMouseDown:G}))}),iE=G7;var q7=20;function aE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,q7),Math.floor(r)}var K7=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],X7=[],Y7={overflowY:"auto",overflowAnchor:"none"};function Q7(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,h=e.direction,v=e.scrollWidth,y=e.component,g=y===void 0?"div":y,p=e.onScroll,x=e.onVirtualScroll,S=e.onVisibleChange,b=e.innerProps,w=e.extraRender,C=e.styles,R=e.showScrollBar,_=R===void 0?"optional":R,O=Ae(e,K7),N=$r.useCallback(function(Se){return typeof d=="function"?d(Se):Se?.[d]},[d]),k=eE(N,null,null),L=B(k,4),j=L[0],W=L[1],D=L[2],$=L[3],M=!!(m!==!1&&i&&a),V=$r.useMemo(function(){return Object.values(D.maps).reduce(function(Se,Ge){return Se+Ge},0)},[D.id,D.maps]),F=M&&u&&(Math.max(a*u.length,V)>i||!!v),z=h==="rtl",U=(0,TL.default)(o,T({},"".concat(o,"-rtl"),z),n),H=u||X7,A=(0,mn.useRef)(),G=(0,mn.useRef)(),q=(0,mn.useRef)(),oe=(0,mn.useState)(0),Z=B(oe,2),X=Z[0],ie=Z[1],te=(0,mn.useState)(0),K=B(te,2),Y=K[0],ne=K[1],Q=(0,mn.useState)(!1),J=B(Q,2),le=J[0],ue=J[1],fe=function(){ue(!0)},he=function(){ue(!1)},ye={getKey:N};function we(Se){ie(function(Ge){var ke;typeof Se=="function"?ke=Se(Ge):ke=Se;var xe=Pe(ke);return A.current.scrollTop=xe,xe})}var ce=(0,mn.useRef)({start:0,end:H.length}),ae=(0,mn.useRef)(),Re=Q1(H,N),Me=B(Re,1),Be=Me[0];ae.current=Be;var Ie=$r.useMemo(function(){if(!M)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!F){var Se;return{scrollHeight:((Se=G.current)===null||Se===void 0?void 0:Se.offsetHeight)||0,start:0,end:H.length-1,offset:void 0}}for(var Ge=0,ke,xe,nt,It=H.length,$t=0;$t<It;$t+=1){var mo=H[$t],Dr=N(mo),Br=D.get(Dr),Rr=Ge+(Br===void 0?a:Br);Rr>=X&&ke===void 0&&(ke=$t,xe=Ge),Rr>X+i&&nt===void 0&&(nt=$t),Ge=Rr}return ke===void 0&&(ke=0,xe=0,nt=Math.ceil(i/a)),nt===void 0&&(nt=H.length-1),nt=Math.min(nt+1,H.length-1),{scrollHeight:Ge,start:ke,end:nt,offset:xe}},[F,M,X,H,$,i]),Oe=Ie.scrollHeight,be=Ie.start,Ve=Ie.end,He=Ie.offset;ce.current.start=be,ce.current.end=Ve,$r.useLayoutEffect(function(){var Se=D.getRecord();if(Se.size===1){var Ge=Array.from(Se)[0],ke=H[be];if(ke){var xe=N(ke);if(xe===Ge){var nt=D.get(Ge),It=nt-a;we(function($t){return $t+It})}}}D.resetRecord()},[Oe]);var $e=$r.useState({width:0,height:i}),de=B($e,2),me=de[0],ze=de[1],Ce=function(Ge){ze({width:Ge.offsetWidth,height:Ge.offsetHeight})},Ue=(0,mn.useRef)(),Ye=(0,mn.useRef)(),gt=$r.useMemo(function(){return aE(me.width,v)},[me.width,v]),Tt=$r.useMemo(function(){return aE(me.height,Oe)},[me.height,Oe]),ht=Oe-i,We=(0,mn.useRef)(ht);We.current=ht;function Pe(Se){var Ge=Se;return Number.isNaN(We.current)||(Ge=Math.min(Ge,We.current)),Ge=Math.max(Ge,0),Ge}var tt=X<=0,De=X>=ht,Le=Y<=0,Te=Y>=v,Ne=Vy(tt,De,Le,Te),vt=function(){return{x:z?-Y:Y,y:X}},Bt=(0,mn.useRef)(vt()),je=Et(function(Se){if(x){var Ge=P(P({},vt()),Se);(Bt.current.x!==Ge.x||Bt.current.y!==Ge.y)&&(x(Ge),Bt.current=Ge)}});function _e(Se,Ge){var ke=Se;Ge?((0,sE.flushSync)(function(){ne(ke)}),je()):we(ke)}function Qe(Se){var Ge=Se.currentTarget.scrollTop;Ge!==X&&we(Ge),p?.(Se),je()}var Ze=function(Ge){var ke=Ge,xe=v?v-me.width:0;return ke=Math.max(ke,0),ke=Math.min(ke,xe),ke},Ke=Et(function(Se,Ge){Ge?((0,sE.flushSync)(function(){ne(function(ke){var xe=ke+(z?-Se:Se);return Ze(xe)})}),je()):we(function(ke){var xe=ke+Se;return xe})}),ot=J1(M,tt,De,Le,Te,!!v,Ke),kt=B(ot,2),Nt=kt[0],tr=kt[1];tE(M,A,function(Se,Ge,ke,xe){var nt=xe;return Ne(Se,Ge,ke)?!1:!nt||!nt._virtualHandled?(nt&&(nt._virtualHandled=!0),Nt({preventDefault:function(){},deltaX:Se?Ge:0,deltaY:Se?0:Ge}),!0):!1}),rE(F,A,function(Se){we(function(Ge){return Ge+Se})}),yt(function(){function Se(ke){var xe=tt&&ke.detail<0,nt=De&&ke.detail>0;M&&!xe&&!nt&&ke.preventDefault()}var Ge=A.current;return Ge.addEventListener("wheel",Nt,{passive:!1}),Ge.addEventListener("DOMMouseScroll",tr,{passive:!0}),Ge.addEventListener("MozMousePixelScroll",Se,{passive:!1}),function(){Ge.removeEventListener("wheel",Nt),Ge.removeEventListener("DOMMouseScroll",tr),Ge.removeEventListener("MozMousePixelScroll",Se)}},[M,tt,De]),yt(function(){if(v){var Se=Ze(Y);ne(Se),je({x:Se})}},[me.width,v]);var Ft=function(){var Ge,ke;(Ge=Ue.current)===null||Ge===void 0||Ge.delayHidden(),(ke=Ye.current)===null||ke===void 0||ke.delayHidden()},rr=oE(A,H,D,a,N,function(){return W(!0)},we,Ft);$r.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:vt,scrollTo:function(Ge){function ke(xe){return xe&&pe(xe)==="object"&&("left"in xe||"top"in xe)}ke(Ge)?(Ge.left!==void 0&&ne(Ze(Ge.left)),rr(Ge.top)):rr(Ge)}}}),yt(function(){if(S){var Se=H.slice(be,Ve+1);S(Se,H)}},[be,Ve,H]);var ur=CL(H,N,D,a),fr=w?.({start:be,end:Ve,virtual:F,offsetX:Y,offsetY:He,rtl:z,getSize:ur}),zo=Y1(H,be,Ve,v,Y,j,f,ye),dr=null;i&&(dr=P(T({},l?"height":"maxHeight",i),Y7),M&&(dr.overflowY="hidden",v&&(dr.overflowX="hidden"),le&&(dr.pointerEvents="none")));var Er={};return z&&(Er.dir="rtl"),$r.createElement("div",ee({ref:q,style:P(P({},c),{},{position:"relative"}),className:U},Er,O),$r.createElement(cn,{onResize:Ce},$r.createElement(g,{className:"".concat(o,"-holder"),style:dr,ref:A,onScroll:Qe,onMouseEnter:Ft},$r.createElement(vL,{prefixCls:o,height:Oe,offsetX:Y,offsetY:He,scrollWidth:v,onInnerResize:W,ref:G,innerProps:b,rtl:z,extra:fr},zo))),F&&Oe>i&&$r.createElement(iE,{ref:Ue,prefixCls:o,scrollOffset:X,scrollRange:Oe,rtl:z,onScroll:_e,onStartMove:fe,onStopMove:he,spinSize:Tt,containerSize:me.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:_}),F&&v>me.width&&$r.createElement(iE,{ref:Ye,prefixCls:o,scrollOffset:Y,scrollRange:v,rtl:z,onScroll:_e,onStartMove:fe,onStopMove:he,spinSize:gt,containerSize:me.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:_}))}var NL=$r.forwardRef(Q7);NL.displayName="List";var IL=NL;var $L=IL;var Gt=E(I()),cE=E(I());function DL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Z7=["disabled","title","children","style","className"];function AL(e){return typeof e=="string"||typeof e=="number"}var J7=function(t,r){var o=Iy(),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=Gt.useContext(Ku),h=m.maxCount,v=m.flattenOptions,y=m.onActiveValue,g=m.defaultActiveFirstOption,p=m.onSelect,x=m.menuItemSelectedIcon,S=m.rawValues,b=m.fieldNames,w=m.virtual,C=m.direction,R=m.listHeight,_=m.listItemHeight,O=m.optionRender,N="".concat(n,"-item"),k=Ki(function(){return v},[a,v],function(te,K){return K[0]&&te[1]!==K[1]}),L=Gt.useRef(null),j=Gt.useMemo(function(){return s&&Cp(h)&&S?.size>=h},[s,h,S?.size]),W=function(K){K.preventDefault()},D=function(K){var Y;(Y=L.current)===null||Y===void 0||Y.scrollTo(typeof K=="number"?{index:K}:K)},$=Gt.useCallback(function(te){return l==="combobox"?!1:S.has(te)},[l,se(S).toString(),S.size]),M=function(K){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ne=k.length,Q=0;Q<ne;Q+=1){var J=(K+Q*Y+ne)%ne,le=k[J]||{},ue=le.group,fe=le.data;if(!ue&&!(fe!=null&&fe.disabled)&&($(fe.value)||!j))return J}return-1},V=Gt.useState(function(){return M(0)}),F=B(V,2),z=F[0],U=F[1],H=function(K){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;U(K);var ne={source:Y?"keyboard":"mouse"},Q=k[K];if(!Q){y(null,-1,ne);return}y(Q.value,K,ne)};(0,cE.useEffect)(function(){H(g!==!1?M(0):-1)},[k.length,c]);var A=Gt.useCallback(function(te){return l==="combobox"?String(te).toLowerCase()===c.toLowerCase():S.has(te)},[l,c,se(S).toString(),S.size]);(0,cE.useEffect)(function(){var te=setTimeout(function(){if(!s&&a&&S.size===1){var Y=Array.from(S)[0],ne=k.findIndex(function(Q){var J=Q.data;return J.value===Y});ne!==-1&&(H(ne),D(ne))}});if(a){var K;(K=L.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(te)}},[a,c]);var G=function(K){K!==void 0&&p(K,{selected:!S.has(K)}),s||u(!1)};if(Gt.useImperativeHandle(r,function(){return{onKeyDown:function(K){var Y=K.which,ne=K.ctrlKey;switch(Y){case Fe.N:case Fe.P:case Fe.UP:case Fe.DOWN:{var Q=0;if(Y===Fe.UP?Q=-1:Y===Fe.DOWN?Q=1:DL()&&ne&&(Y===Fe.N?Q=1:Y===Fe.P&&(Q=-1)),Q!==0){var J=M(z+Q,Q);D(J),H(J,!0)}break}case Fe.TAB:case Fe.ENTER:{var le,ue=k[z];ue&&!(ue!=null&&(le=ue.data)!==null&&le!==void 0&&le.disabled)&&!j?G(ue.value):G(void 0),a&&K.preventDefault();break}case Fe.ESC:u(!1),a&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){D(K)}}}),k.length===0)return Gt.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(N,"-empty"),onMouseDown:W},f);var q=Object.keys(b).map(function(te){return b[te]}),oe=function(K){return K.label};function Z(te,K){var Y=te.group;return{role:Y?"presentation":"option",id:"".concat(i,"_list_").concat(K)}}var X=function(K){var Y=k[K];if(!Y)return null;var ne=Y.data||{},Q=ne.value,J=Y.group,le=Ao(ne,!0),ue=oe(Y);return Y?Gt.createElement("div",ee({"aria-label":typeof ue=="string"&&!J?ue:null},le,{key:K},Z(Y,K),{"aria-selected":A(Q)}),Q):null},ie={role:"listbox",id:"".concat(i,"_list")};return Gt.createElement(Gt.Fragment,null,w&&Gt.createElement("div",ee({},ie,{style:{height:0,width:0,overflow:"hidden"}}),X(z-1),X(z),X(z+1)),Gt.createElement($L,{itemKey:"key",ref:L,data:k,height:R,itemHeight:_,fullHeight:!1,onMouseDown:W,onScroll:d,virtual:w,direction:C,innerProps:w?null:ie},function(te,K){var Y=te.group,ne=te.groupOption,Q=te.data,J=te.label,le=te.value,ue=Q.key;if(Y){var fe,he=(fe=Q.title)!==null&&fe!==void 0?fe:AL(J)?J.toString():void 0;return Gt.createElement("div",{className:(0,lE.default)(N,"".concat(N,"-group"),Q.className),title:he},J!==void 0?J:ue)}var ye=Q.disabled,we=Q.title,ce=Q.children,ae=Q.style,Re=Q.className,Me=Ae(Q,Z7),Be=Gr(Me,q),Ie=$(le),Oe=ye||!Ie&&j,be="".concat(N,"-option"),Ve=(0,lE.default)(N,be,Re,T(T(T(T({},"".concat(be,"-grouped"),ne),"".concat(be,"-active"),z===K&&!Oe),"".concat(be,"-disabled"),Oe),"".concat(be,"-selected"),Ie)),He=oe(te),$e=!x||typeof x=="function"||Ie,de=typeof He=="number"?He:He||le,me=AL(de)?de.toString():void 0;return we!==void 0&&(me=we),Gt.createElement("div",ee({},Ao(Be),w?{}:Z(te,K),{"aria-selected":A(le),className:Ve,title:me,onMouseMove:function(){z===K||Oe||H(K)},onClick:function(){Oe||G(le)},style:ae}),Gt.createElement("div",{className:"".concat(be,"-content")},typeof O=="function"?O(te,{index:K}):de),Gt.isValidElement(x)||Ie,$e&&Gt.createElement(Qs,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{value:le,disabled:Oe,isSelected:Ie}},Ie?"\u2713":null))}))},eU=Gt.forwardRef(J7),ML=eU;var Zu=E(I()),LL=function(e,t){var r=Zu.useRef({values:new Map,options:new Map}),o=Zu.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var d;return P(P({},f),{},{label:(d=a.get(f.value))===null||d===void 0?void 0:d.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),n=Zu.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[o,n]};var kL=E(I());function uE(e,t){return yp(e).join("").toUpperCase().includes(t)}var FL=function(e,t,r,o,n){return kL.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,h){return n?uE(h[n],u):h[i]?uE(h[a!=="children"?a:"label"],u):uE(h[s],u)},d=c?function(m){return wp(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var h=f(r,d(m));if(h)l.push(m);else{var v=m[i].filter(function(y){return f(r,d(y))});v.length&&l.push(P(P({},m),{},T({},i,v)))}return}f(r,d(m))&&l.push(m)}),l},[e,o,n,r,t])};var Gy=E(I());var zL=0,tU=Yt();function rU(){var e;return tU?(e=zL,zL+=1):e="TEST_OR_SSR",e}function fE(e){var t=Gy.useState(),r=B(t,2),o=r[0],n=r[1];return Gy.useEffect(function(){n("rc_select_".concat(rU()))},[]),e||o}var BL=E(I());var WL=E(I());var oU=["children","value"],nU=["children"];function iU(e){var t=e,r=t.key,o=t.props,n=o.children,i=o.value,a=Ae(o,oU);return P({key:r,value:i!==void 0?i:r,children:n},a)}function qy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Si(e).map(function(r,o){if(!WL.isValidElement(r)||!r.type)return null;var n=r,i=n.type.isSelectOptGroup,a=n.key,s=n.props,l=s.children,c=Ae(s,nU);return t||!i?iU(r):P(P({key:"__RC_SELECT_GRP__".concat(a===null?o:a,"__"),label:a},c),{},{options:qy(l)})}).filter(function(r){return r})}var aU=function(t,r,o,n,i){return BL.useMemo(function(){var a=t,s=!t;s&&(a=qy(r));var l=new Map,c=new Map,u=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h)},f=function d(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<m.length;v+=1){var y=m[v];!y[o.options]||h?(l.set(y[o.value],y),u(c,y,o.label),u(c,y,n),u(c,y,i)):d(y[o.options],!0)}};return f(a),{options:a,valueOptions:l,labelOptions:c}},[t,r,o,n,i])},jL=aU;var Ky=E(I());function Xy(e){var t=Ky.useRef();t.current=e;var r=Ky.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var sU=E(I());var lU=["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"],cU=["inputValue"];function uU(e){return!e||pe(e)!=="object"}var fU=lr.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,h=e.onDeselect,v=e.dropdownMatchSelectWidth,y=v===void 0?!0:v,g=e.filterOption,p=e.filterSort,x=e.optionFilterProp,S=e.optionLabelProp,b=e.options,w=e.optionRender,C=e.children,R=e.defaultActiveFirstOption,_=e.menuItemSelectedIcon,O=e.virtual,N=e.direction,k=e.listHeight,L=k===void 0?200:k,j=e.listItemHeight,W=j===void 0?20:j,D=e.labelRender,$=e.value,M=e.defaultValue,V=e.labelInValue,F=e.onChange,z=e.maxCount,U=Ae(e,lU),H=fE(r),A=Ep(o),G=!!(!b&&C),q=lr.useMemo(function(){return g===void 0&&o==="combobox"?!1:g},[g,o]),oe=lr.useMemo(function(){return G1(s,G)},[JSON.stringify(s),G]),Z=zt("",{value:c!==void 0?c:l,postState:function(_e){return _e||""}}),X=B(Z,2),ie=X[0],te=X[1],K=jL(b,C,oe,x,S),Y=K.valueOptions,ne=K.labelOptions,Q=K.options,J=lr.useCallback(function(je){var _e=yp(je);return _e.map(function(Qe){var Ze,Ke,ot,kt,Nt;if(uU(Qe))Ze=Qe;else{var tr;ot=Qe.key,Ke=Qe.label,Ze=(tr=Qe.value)!==null&&tr!==void 0?tr:ot}var Ft=Y.get(Ze);if(Ft){var rr;if(Ke===void 0&&(Ke=Ft?.[S||oe.label]),ot===void 0&&(ot=(rr=Ft?.key)!==null&&rr!==void 0?rr:Ze),kt=Ft?.disabled,Nt=Ft?.title,0)var ur}return{label:Ke,value:Ze,key:ot,disabled:kt,title:Nt}})},[oe,S,Y]),le=zt(M,{value:$}),ue=B(le,2),fe=ue[0],he=ue[1],ye=lr.useMemo(function(){var je,_e=A&&fe===null?[]:fe,Qe=J(_e);return o==="combobox"&&WM((je=Qe[0])===null||je===void 0?void 0:je.value)?[]:Qe},[fe,J,o,A]),we=LL(ye,Y),ce=B(we,2),ae=ce[0],Re=ce[1],Me=lr.useMemo(function(){if(!o&&ae.length===1){var je=ae[0];if(je.value===null&&(je.label===null||je.label===void 0))return[]}return ae.map(function(_e){var Qe;return P(P({},_e),{},{label:(Qe=typeof D=="function"?D(_e):_e.label)!==null&&Qe!==void 0?Qe:_e.value})})},[o,ae,D]),Be=lr.useMemo(function(){return new Set(ae.map(function(je){return je.value}))},[ae]);lr.useEffect(function(){if(o==="combobox"){var je,_e=(je=ae[0])===null||je===void 0?void 0:je.value;te(zM(_e)?String(_e):"")}},[ae]);var Ie=Xy(function(je,_e){var Qe=_e??je;return T(T({},oe.value,je),oe.label,Qe)}),Oe=lr.useMemo(function(){if(o!=="tags")return Q;var je=se(Q),_e=function(Ze){return Y.has(Ze)};return se(ae).sort(function(Qe,Ze){return Qe.value<Ze.value?-1:1}).forEach(function(Qe){var Ze=Qe.value;_e(Ze)||je.push(Ie(Ze,Qe.label))}),je},[Ie,Q,Y,ae,o]),be=FL(Oe,oe,ie,q,x),Ve=lr.useMemo(function(){return o!=="tags"||!ie||be.some(function(je){return je[x||"value"]===ie})||be.some(function(je){return je[oe.value]===ie})?be:[Ie(ie)].concat(se(be))},[Ie,x,o,be,ie,oe]),He=function je(_e){var Qe=se(_e).sort(function(Ze,Ke){return p(Ze,Ke,{searchValue:ie})});return Qe.map(function(Ze){return Array.isArray(Ze.options)?P(P({},Ze),{},{options:Ze.options.length>0?je(Ze.options):Ze.options}):Ze})},$e=lr.useMemo(function(){return p?He(Ve):Ve},[Ve,p,ie]),de=lr.useMemo(function(){return cL($e,{fieldNames:oe,childrenAsData:G})},[$e,oe,G]),me=function(_e){var Qe=J(_e);if(he(Qe),F&&(Qe.length!==ae.length||Qe.some(function(ot,kt){var Nt;return((Nt=ae[kt])===null||Nt===void 0?void 0:Nt.value)!==ot?.value}))){var Ze=V?Qe:Qe.map(function(ot){return ot.value}),Ke=Qe.map(function(ot){return wp(Re(ot.value))});F(A?Ze:Ze[0],A?Ke:Ke[0])}},ze=lr.useState(null),Ce=B(ze,2),Ue=Ce[0],Ye=Ce[1],gt=lr.useState(0),Tt=B(gt,2),ht=Tt[0],We=Tt[1],Pe=R!==void 0?R:o!=="combobox",tt=lr.useCallback(function(je,_e){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ze=Qe.source,Ke=Ze===void 0?"keyboard":Ze;We(_e),a&&o==="combobox"&&je!==null&&Ke==="keyboard"&&Ye(String(je))},[a,o]),De=function(_e,Qe,Ze){var Ke=function(){var dr,Er=Re(_e);return[V?{label:Er?.[oe.label],value:_e,key:(dr=Er?.key)!==null&&dr!==void 0?dr:_e}:_e,wp(Er)]};if(Qe&&m){var ot=Ke(),kt=B(ot,2),Nt=kt[0],tr=kt[1];m(Nt,tr)}else if(!Qe&&h&&Ze!=="clear"){var Ft=Ke(),rr=B(Ft,2),ur=rr[0],fr=rr[1];h(ur,fr)}},Le=Xy(function(je,_e){var Qe,Ze=A?_e.selected:!0;Ze?Qe=A?[].concat(se(ae),[je]):[je]:Qe=ae.filter(function(Ke){return Ke.value!==je}),me(Qe),De(je,Ze),o==="combobox"?Ye(""):(!Ep||d)&&(te(""),Ye(""))}),Te=function(_e,Qe){me(_e);var Ze=Qe.type,Ke=Qe.values;(Ze==="remove"||Ze==="clear")&&Ke.forEach(function(ot){De(ot.value,!1,Ze)})},Ne=function(_e,Qe){if(te(_e),Ye(null),Qe.source==="submit"){var Ze=(_e||"").trim();if(Ze){var Ke=Array.from(new Set([].concat(se(Be),[Ze])));me(Ke),De(Ze,!0),te("")}return}Qe.source!=="blur"&&(o==="combobox"&&me(_e),u?.(_e))},vt=function(_e){var Qe=_e;o!=="tags"&&(Qe=_e.map(function(Ke){var ot=ne.get(Ke);return ot?.value}).filter(function(Ke){return Ke!==void 0}));var Ze=Array.from(new Set([].concat(se(Be),se(Qe))));me(Ze),Ze.forEach(function(Ke){De(Ke,!0)})},Bt=lr.useMemo(function(){var je=O!==!1&&y!==!1;return P(P({},K),{},{flattenOptions:de,onActiveValue:tt,defaultActiveFirstOption:Pe,onSelect:Le,menuItemSelectedIcon:_,rawValues:Be,fieldNames:oe,virtual:je,direction:N,listHeight:L,listItemHeight:W,childrenAsData:G,maxCount:z,optionRender:w})},[z,K,de,tt,Pe,Le,_,Be,oe,O,y,N,L,W,G,w]);return lr.createElement(Ku.Provider,{value:Bt},lr.createElement(X1,ee({},U,{id:H,prefixCls:i,ref:t,omitDomProps:cU,mode:o,displayValues:Me,onDisplayValuesChange:Te,direction:N,searchValue:ie,onSearch:Ne,autoClearSearchValue:d,onSearchSplit:vt,dropdownMatchSelectWidth:y,OptionList:ML,emptyOptions:!de.length,activeValue:Ue,activeDescendantId:"".concat(H,"_list_").concat(ht)})))}),dE=fU;dE.Option=Op;dE.OptGroup=Rp;var VL=dE;var HL=VL;var UL=E(Ee());function oa(e,t,r){return(0,UL.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 na=(e,t)=>t||e;var ef=E(I());var rl=E(I()),Pp=E(Ee());var gn=E(I());var dU=()=>{let[,e]=hr(),[t]=_i("Empty"),o=new it(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return gn.createElement("svg",{style:o,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},gn.createElement("title",null,t?.description||"Empty"),gn.createElement("g",{fill:"none",fillRule:"evenodd"},gn.createElement("g",{transform:"translate(24 31.67)"},gn.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),gn.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"}),gn.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)"}),gn.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"}),gn.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"})),gn.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"}),gn.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},gn.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),gn.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},GL=dU;var tl=E(I()),qL=E(I());var pU=()=>{let[,e]=hr(),[t]=_i("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,qL.useMemo)(()=>({borderColor:new it(r).onBackground(i).toHexString(),shadowColor:new it(o).onBackground(i).toHexString(),contentColor:new it(n).onBackground(i).toHexString()}),[r,o,n,i]);return tl.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},tl.createElement("title",null,t?.description||"Empty"),tl.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},tl.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),tl.createElement("g",{fillRule:"nonzero",stroke:a},tl.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"}),tl.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}))))},KL=pU;var mU=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}}}}},XL=_t("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:o}=e,n=rt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:o(r).mul(.875).equal()});return[mU(n)]});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},YL=rl.createElement(GL,null),QL=rl.createElement(KL,null),pE=e=>{let{className:t,rootClassName:r,prefixCls:o,image:n=YL,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=gU(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:d,direction:m,className:h,style:v,classNames:y,styles:g}=Do("empty"),p=d("empty",o),[x,S,b]=XL(p),[w]=_i("Empty"),C=typeof i<"u"?i:w?.description,R=typeof C=="string"?C:"empty",_=null;return typeof n=="string"?_=rl.createElement("img",{alt:R,src:n}):_=n,x(rl.createElement("div",Object.assign({className:(0,Pp.default)(S,b,p,h,{[`${p}-normal`]:n===QL,[`${p}-rtl`]:m==="rtl"},t,r,y.root,c?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},g.root),v),u?.root),l)},f),rl.createElement("div",{className:(0,Pp.default)(`${p}-image`,y.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),g.image),u?.image)},_),C&&rl.createElement("div",{className:(0,Pp.default)(`${p}-description`,y.description,c?.description),style:Object.assign(Object.assign({},g.description),u?.description)},C),a&&rl.createElement("div",{className:(0,Pp.default)(`${p}-footer`,y.footer,c?.footer),style:Object.assign(Object.assign({},g.footer),u?.footer)},a)))};pE.PRESENTED_IMAGE_DEFAULT=YL;pE.PRESENTED_IMAGE_SIMPLE=QL;var Ju=pE;var hU=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,ef.useContext)(at),o=r("empty");switch(t){case"Table":case"List":return ef.default.createElement(Ju,{image:Ju.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ef.default.createElement(Ju,{image:Ju.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return ef.default.createElement(Ju,null)}},ZL=hU;var mE=E(I());var vU=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var o,n;let{variant:i,[e]:a}=mE.useContext(at),s=mE.useContext(vM),l=a?.variant,c;typeof t<"u"?c=t:r===!1?c="borderless":c=(n=(o=s??l)!==null&&o!==void 0?o:i)!==null&&n!==void 0?n:"outlined";let u=iw.includes(c);return[c,u]},ol=vU;var yU=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 xU(e,t){return e||yU(t)}var JL=xU;var ek=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"}},bU=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:ty},[`
|
|
${n}${s}topLeft,
|
|
${i}${s}topLeft,
|
|
${n}${s}topRight,
|
|
${i}${s}topRight
|
|
`]:{animationName:oy},[`${a}${s}bottomLeft`]:{animationName:ry},[`
|
|
${a}${s}topLeft,
|
|
${a}${s}topRight
|
|
`]:{animationName:ny},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},ek(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"},Ti),"&-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({},ek(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},iy(e,"slide-up"),iy(e,"slide-down"),ey(e,"move-up"),ey(e,"move-down")]},tk=bU;var SU=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:re(t),itemLineHeight:re(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},CU=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:o}=e;return e.calc(r).sub(t).div(2).sub(o).equal()},wU=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({},Aa()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},EU=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,n=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=CU(e),s=t?`${r}-${t}`:"",l=SU(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},wU(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:`${re(o)} 0`,lineHeight:re(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:re(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:re(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:re(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 gE(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[EU(e,t),n]}var RU=e=>{let{componentCls:t}=e,r=rt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=rt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[gE(e),gE(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},gE(o,"lg")]},rk=RU;function hE(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:re(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:re(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 ${re(o)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:re(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 ${re(o)}`,"&:after":{display:"none"}}}}}}}function vE(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[hE(e),hE(rt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${re(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()}}}},hE(rt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var ok=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:h,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:g,colorPrimaryHover:p,colorPrimary:x,controlOutline:S}=e,b=s*2,w=o*2,C=Math.min(n-b,n-w),R=Math.min(i-b,i-w),_=Math.min(a-b,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:m,optionPadding:`${(n-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:n,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:R,multipleItemHeightLG:_,multipleSelectorBgDisabled:y,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:x,activeOutlineColor:S,selectAffixPadding:s}};var sk=(e,t)=>{let{componentCls:r,antCls:o,controlOutlineWidth:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${re(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 ${re(n)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},nk=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sk(e,t))}),OU=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},sk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),nk(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),nk(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:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),lk=(e,t)=>{let{componentCls:r,antCls:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${re(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}}}},ik=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},lk(e,t))}),_U=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},lk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),ik(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ik(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:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),PU=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${re(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:`${re(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}}}}),ck=(e,t)=>{let{componentCls:r,antCls:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${re(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}}}},ak=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ck(e,t))}),TU=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},ck(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),ak(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),ak(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:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),NU=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},OU(e)),_U(e)),PU(e)),TU(e))}),uk=NU;var IU=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"}}}},$U=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"}}}},DU=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({},IU(e)),$U(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ti),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Ti),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Aa()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},AU=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},DU(e),vE(e),rk(e),tk(e),{[`${t}-rtl`]:{direction:"rtl"}},Gs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},fk=_t("Select",(e,t)=>{let{rootPrefixCls:r}=t,o=rt(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[AU(o),uk(o)]},ok,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ia=E(I());var Yy=E(I());var MU={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"},dk=MU;var LU=function(t,r){return Yy.createElement(mt,ee({},t,{ref:r,icon:dk}))},kU=Yy.forwardRef(LU),Qy=kU;var Zy=E(I());var FU={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"},pk=FU;var zU=function(t,r){return Zy.createElement(mt,ee({},t,{ref:r,icon:pk}))},WU=Zy.forwardRef(zU),Jy=WU;var e0=E(I());var BU={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"},mk=BU;var jU=function(t,r){return e0.createElement(mt,ee({},t,{ref:r,icon:mk}))},VU=e0.forwardRef(jU),t0=VU;function yE(e){let{suffixIcon:t,clearIcon:r,menuItemSelectedIcon:o,removeIcon:n,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:d}=e,m=r??ia.createElement(Du,null),h=p=>t===null&&!s&&!f?null:ia.createElement(ia.Fragment,null,c!==!1&&p,s&&u),v=null;if(t!==void 0)v=h(t);else if(i)v=h(ia.createElement(Kl,{spin:!0}));else{let p=`${l}-suffix`;v=x=>{let{open:S,showSearch:b}=x;return h(S&&b?ia.createElement(t0,{className:p}):ia.createElement(Jy,{className:p}))}}let y=null;o!==void 0?y=o:a?y=ia.createElement(Qy,null):y=null;let g=null;return n!==void 0?g=n:g=ia.createElement(Fa,null),{clearIcon:m,suffixIcon:v,itemIcon:y,removeIcon:g}}function xE(e,t){return t!==void 0?t:e!==null}var HU=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},gk="SECRET_COMBOBOX_MODE_DO_NOT_USE",UU=(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:h,notFoundContent:v,status:y,builtinPlacements:g,dropdownMatchSelectWidth:p,popupMatchSelectWidth:x,direction:S,style:b,allowClear:w,variant:C,dropdownStyle:R,transitionName:_,tagRender:O,maxCount:N,prefix:k}=e,L=HU(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:j,getPrefixCls:W,renderEmpty:D,direction:$,virtual:M,popupMatchSelectWidth:V,popupOverflow:F}=ai.useContext(at),z=Do("select"),[,U]=hr(),H=d??U?.controlHeight,A=W("select",o),G=W(),q=S??$,{compactSize:oe,compactItemClassnames:Z}=Zn(A,q),[X,ie]=ol("select",C,n),te=Mo(A),[K,Y,ne]=fk(A,te),Q=ai.useMemo(()=>{let{mode:Ue}=e;if(Ue!=="combobox")return Ue===gk?"combobox":Ue},[e.mode]),J=Q==="multiple"||Q==="tags",le=xE(e.suffixIcon,e.showArrow),ue=(r=x??p)!==null&&r!==void 0?r:V,{status:fe,hasFeedback:he,isFormItemInput:ye,feedbackIcon:we}=ai.useContext(uo),ce=na(fe,y),ae;v!==void 0?ae=v:Q==="combobox"?ae=null:ae=D?.("Select")||ai.createElement(ZL,{componentName:"Select"});let{suffixIcon:Re,itemIcon:Me,removeIcon:Be,clearIcon:Ie}=yE(Object.assign(Object.assign({},L),{multiple:J,hasFeedback:he,feedbackIcon:we,showSuffixIcon:le,prefixCls:A,componentName:"Select"})),Oe=w===!0?{clearIcon:Ie}:w,be=Gr(L,["suffixIcon","itemIcon"]),Ve=(0,bE.default)(l||c,{[`${A}-dropdown-${q}`]:q==="rtl"},a,ne,te,Y),He=dn(Ue=>{var Ye;return(Ye=m??oe)!==null&&Ye!==void 0?Ye:Ue}),$e=ai.useContext(Ur),de=h??$e,me=(0,bE.default)({[`${A}-lg`]:He==="large",[`${A}-sm`]:He==="small",[`${A}-rtl`]:q==="rtl",[`${A}-${X}`]:ie,[`${A}-in-form-item`]:ye},oa(A,ce,he),Z,z.className,i,a,ne,te,Y),ze=ai.useMemo(()=>f!==void 0?f:q==="rtl"?"bottomRight":"bottomLeft",[f,q]),[Ce]=js("SelectLike",R?.zIndex);return K(ai.createElement(HL,Object.assign({ref:t,virtual:M,showSearch:z.showSearch},be,{style:Object.assign(Object.assign({},z.style),b),dropdownMatchSelectWidth:ue,transitionName:Ji(G,"slide-up",_),builtinPlacements:JL(g,F),listHeight:u,listItemHeight:H,mode:Q,prefixCls:A,placement:ze,direction:q,prefix:k,suffixIcon:Re,menuItemSelectedIcon:Me,removeIcon:Be,allowClear:Oe,notFoundContent:ae,className:me,getPopupContainer:s||j,dropdownClassName:Ve,disabled:de,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:Ce}),maxCount:J?N:void 0,tagRender:J?O:void 0})))},tf=ai.forwardRef(UU),GU=xM(tf,"dropdownAlign");tf.SECRET_COMBOBOX_MODE_DO_NOT_USE=gk;tf.Option=Op;tf.OptGroup=Rp;tf._InternalPanelDoNotUseOrYouWillBeFired=GU;var Tp=tf;var hk=E(I());function SE(){let[,e]=hk.useReducer(t=>t+1,0);return e}var bo=E(I()),a0=E(Ee());var CE=E(Ee()),wE=E(I());function rf(e){var t=e.children,r=e.prefixCls,o=e.id,n=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return wE.createElement("div",{className:(0,CE.default)("".concat(r,"-content"),a),style:s},wE.createElement("div",{className:(0,CE.default)("".concat(r,"-inner"),i),id:o,role:"tooltip",style:n},typeof t=="function"?t():t))}var yk=E(Ee()),lc=E(I()),af=E(I());var of={shiftX:64,adjustY:1},nf={adjustX:1,shiftY:!0},si=[0,0],vk={left:{points:["cr","cl"],overflow:nf,offset:[-4,0],targetOffset:si},right:{points:["cl","cr"],overflow:nf,offset:[4,0],targetOffset:si},top:{points:["bc","tc"],overflow:of,offset:[0,-4],targetOffset:si},bottom:{points:["tc","bc"],overflow:of,offset:[0,4],targetOffset:si},topLeft:{points:["bl","tl"],overflow:of,offset:[0,-4],targetOffset:si},leftTop:{points:["tr","tl"],overflow:nf,offset:[-4,0],targetOffset:si},topRight:{points:["br","tr"],overflow:of,offset:[0,-4],targetOffset:si},rightTop:{points:["tl","tr"],overflow:nf,offset:[4,0],targetOffset:si},bottomRight:{points:["tr","br"],overflow:of,offset:[0,4],targetOffset:si},rightBottom:{points:["bl","br"],overflow:nf,offset:[4,0],targetOffset:si},bottomLeft:{points:["tl","bl"],overflow:of,offset:[0,4],targetOffset:si},leftBottom:{points:["br","bl"],overflow:nf,offset:[-4,0],targetOffset:si}};var qU=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],KU=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,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,p=t.motion,x=t.placement,S=x===void 0?"right":x,b=t.align,w=b===void 0?{}:b,C=t.destroyTooltipOnHide,R=C===void 0?!1:C,_=t.defaultVisible,O=t.getTooltipContainer,N=t.overlayInnerStyle,k=t.arrowContent,L=t.overlay,j=t.id,W=t.showArrow,D=W===void 0?!0:W,$=t.classNames,M=t.styles,V=Ae(t,qU),F=Lu(j),z=(0,af.useRef)(null);(0,af.useImperativeHandle)(r,function(){return z.current});var U=P({},V);"visible"in t&&(U.popupVisible=t.visible);var H=function(){return lc.createElement(rf,{key:"content",prefixCls:d,id:F,bodyClassName:$?.body,overlayInnerStyle:P(P({},N),M?.body)},L)},A=function(){var q=lc.Children.only(m),oe=q?.props||{},Z=P(P({},oe),{},{"aria-describedby":L?F:null});return lc.cloneElement(m,Z)};return lc.createElement(Wy,ee({popupClassName:(0,yk.default)(o,$?.root),prefixCls:d,popup:H,action:i,builtinPlacements:vk,popupPlacement:S,ref:z,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:p,defaultPopupVisible:_,autoDestroy:R,mouseLeaveDelay:c,popupStyle:P(P({},u),M?.root),mouseEnterDelay:s,arrow:D},U),A())},xk=(0,af.forwardRef)(KU);var bk=xk;function Sk(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,h=l,v=2*n-i,y=a,g=n*Math.sqrt(2)+o*(Math.sqrt(2)-2),p=o*(Math.sqrt(2)-1),x=`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} ${h} A ${o} ${o} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:g,arrowPath:S,arrowPolygon:x}}var Ck=(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 ${re(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var EE=8;function o0(e){let{contentRadius:t,limitVerticalRadius:r}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:r?EE:o}}function r0(e,t){return e?t:{}}function RE(e,t,r){let{componentCls:o,boxShadowPopoverArrow:n,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Ck(e,t,n)),{"&:before":{background:t}})]},r0(!!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% - ${re(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),r0(!!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% - ${re(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),r0(!!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}})),r0(!!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 XU(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 wk={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"]}},YU={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"]}},QU=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function OE(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:o,offset:n,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(wk).forEach(c=>{let u=o&&YU[c]||wk[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,QU.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=o0({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=XU(c,d,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var sf=E(I()),Ok=E(Ee());var ZU=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,h=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:`${re(e.calc(u).div(2).equal())} ${re(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:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,EE)}},[`${r}-content`]:{position:"relative"}}),mv(e,(y,g)=>{let{darkColor:p}=g;return{[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:p},[`${r}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},RE(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},JU=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},o0({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Sk(rt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),n0=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return _t("Tooltip",o=>{let{borderRadius:n,colorTextLightSolid:i,colorBgSpotlight:a}=o,s=rt(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:a});return[ZU(s),Ql(o,"zoom-big-fast")]},JU,{resetStyle:!1,injectStyle:t})(e)};var Rk=E(Ee());var e9=In.map(e=>`${e}-inverse`);function Ek(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(se(e9),se(In)).includes(e):In.includes(e)}function i0(e,t){let r=Ek(t),o=(0,Rk.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 t9=e=>{let{prefixCls:t,className:r,placement:o="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=sf.useContext(at),l=s("tooltip",t),[c,u,f]=n0(l),d=i0(l,i),m=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=(0,Ok.default)(u,f,l,`${l}-pure`,`${l}-placement-${o}`,r,d.className);return c(sf.createElement("div",{className:v,style:m},sf.createElement("div",{className:`${l}-arrow`}),sf.createElement(rf,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),n)))},_k=t9;var r9=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},o9=bo.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:h,overlay:v,builtinPlacements:y,arrowPointAtCenter:g=!1,autoAdjustOverflow:p=!0,motion:x,getPopupContainer:S,placement:b="top",mouseEnterDelay:w=.1,mouseLeaveDelay:C=.1,overlayStyle:R,rootClassName:_,overlayClassName:O,styles:N,classNames:k}=e,L=r9(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"]),j=!!m,[,W]=hr(),{getPopupContainer:D,getPrefixCls:$,direction:M,className:V,style:F,classNames:z,styles:U}=Do("tooltip"),H=Zh("Tooltip"),A=bo.useRef(null),G=()=>{var be;(be=A.current)===null||be===void 0||be.forceAlign()};bo.useImperativeHandle(t,()=>{var be,Ve;return{forceAlign:G,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),G()},nativeElement:(be=A.current)===null||be===void 0?void 0:be.nativeElement,popupElement:(Ve=A.current)===null||Ve===void 0?void 0:Ve.popupElement}});let[q,oe]=zt(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),Z=!h&&!v&&h!==0,X=be=>{var Ve,He;oe(Z?!1:be),Z||((Ve=e.onOpenChange)===null||Ve===void 0||Ve.call(e,be),(He=e.onVisibleChange)===null||He===void 0||He.call(e,be))},ie=bo.useMemo(()=>{var be,Ve;let He=g;return typeof m=="object"&&(He=(Ve=(be=m.pointAtCenter)!==null&&be!==void 0?be:m.arrowPointAtCenter)!==null&&Ve!==void 0?Ve:g),y||OE({arrowPointAtCenter:He,autoAdjustOverflow:p,arrowWidth:j?W.sizePopupArrow:0,borderRadius:W.borderRadius,offset:W.marginXXS,visibleFirst:!0})},[g,m,y,W]),te=bo.useMemo(()=>h===0?h:v||h||"",[v,h]),K=bo.createElement(Ys,{space:!0},typeof te=="function"?te():te),Y=$("tooltip",n),ne=$(),Q=e["data-popover-inject"],J=q;!("open"in e)&&!("visible"in e)&&Z&&(J=!1);let le=bo.isValidElement(c)&&!jv(c)?c:bo.createElement("span",null,c),ue=le.props,fe=!ue.className||typeof ue.className=="string"?(0,a0.default)(ue.className,i||`${Y}-open`):ue.className,[he,ye,we]=n0(Y,!Q),ce=i0(Y,s),ae=ce.arrowStyle,Re=(0,a0.default)(O,{[`${Y}-rtl`]:M==="rtl"},ce.className,_,ye,we,V,z.root,k?.root),Me=(0,a0.default)(z.body,k?.body),[Be,Ie]=js("Tooltip",L.zIndex),Oe=bo.createElement(bk,Object.assign({},L,{zIndex:Be,showArrow:j,placement:b,mouseEnterDelay:w,mouseLeaveDelay:C,prefixCls:Y,classNames:{root:Re,body:Me},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ae),U.root),F),R),N?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},U.body),l),N?.body),ce.overlayStyle)},getTooltipContainer:S||a||D,ref:A,builtinPlacements:ie,overlay:K,visible:J,onVisibleChange:X,afterVisibleChange:u??f,arrowContent:bo.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:Ji(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!d}),J?Qn(le,{className:fe}):le);return he(bo.createElement(Hv.Provider,{value:Ie},Oe))}),Pk=o9;Pk._InternalPanelDoNotUseOrYouWillBeFired=_k;var Ha=Pk;var s0=E(I());var n9={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"},Tk=n9;var i9=function(t,r){return s0.createElement(mt,ee({},t,{ref:r,icon:Tk}))},a9=s0.forwardRef(i9),Nk=a9;var Ik=E(Ee());var l0=E(I()),cc=E(I()),s9=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],l9=(0,cc.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,h=Ae(e,s9),v=(0,cc.useRef)(null),y=(0,cc.useRef)(null),g=zt(c,{value:a}),p=B(g,2),x=p[0],S=p[1];(0,cc.useImperativeHandle)(t,function(){return{focus:function(R){var _;(_=v.current)===null||_===void 0||_.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:y.current}});var b=(0,Ik.default)(o,n,T(T({},"".concat(o,"-checked"),x),"".concat(o,"-disabled"),s)),w=function(R){s||("checked"in e||S(R.target.checked),m?.({target:P(P({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return l0.createElement("span",{className:b,title:d,style:i,ref:y},l0.createElement("input",ee({},h,{className:"".concat(o,"-input"),ref:v,onChange:w,disabled:s,checked:!!x,type:f})),l0.createElement("span",{className:"".concat(o,"-inner")}))}),$k=l9;var Dk=E(I());function _E(e){let t=Dk.default.useRef(null),r=()=>{ut.cancel(t.current),t.current=null};return[()=>{r(),t.current=ut(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}function Ua(e){return rt(e,{inputAffixPadding:e.paddingXXS})}var Ga=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:h,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:g,colorWarningOutline:p,colorBgContainer:x,inputFontSize:S,inputFontSizeLG:b,inputFontSizeSM:w}=e,C=S||r,R=w||C,_=b||s,O=Math.round((t-C*o)/2*10)/10-n,N=Math.round((i-R*o)/2*10)/10-n,k=Math.ceil((a-_*l)/2*10)/10-n;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(k,0),paddingInline:c-n,paddingInlineSM:u-n,paddingInlineLG:f-n,addonBg:d,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${p}`,hoverBg:x,activeBg:x,inputFontSize:C,inputFontSizeLG:_,inputFontSizeSM:R}};var c9=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),PE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},c9(rt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),zk=(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}}),Ak=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},zk(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),c0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zk(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},PE(e))}),Ak(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ak(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Mk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),u0=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Mk(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Mk(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},PE(e))}})}),f0=(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)}},Wk=(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}}},Lk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Wk(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),d0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},PE(e))}),Lk(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Lk(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),kk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),p0=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:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},kk(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),kk(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:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Bk=(e,t)=>({background:e.colorBgContainer,borderWidth:`${re(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}}),Fk=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Bk(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`}}),m0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Bk(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"}}),Fk(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Fk(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var TE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var jk=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:n}=e;return{padding:`${re(t)} ${re(n)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:o}},Vk=e=>({padding:`${re(e.paddingBlockSM)} ${re(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Np=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${re(e.paddingBlock)} ${re(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},TE(e.colorTextPlaceholder)),{"&-lg":Object.assign({},jk(e)),"&-sm":Object.assign({},Vk(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),NE=e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},jk(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Vk(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 ${re(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${re(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${re(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:`${re(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${re(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"},Iu()),{[`${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}}}})}},u9=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)),Np(e)),c0(e)),d0(e)),f0(e)),m0(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"}})}},f9=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${re(e.inputAffixPadding)}`}}}},d9=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({},Np(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),f9(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}}}}},p9=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Qt(e)),NE(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}}},u0(e)),p0(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}}})})}},m9=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}}}}},g9=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},g0=_t(["Input","Shared"],e=>{let t=rt(e,Ua(e));return[u9(t),d9(t)]},Ga,{resetFont:!1}),h0=_t(["Input","Component"],e=>{let t=rt(e,Ua(e));return[p9(t),m9(t),g9(t),Gs(t)]},Ga,{resetFont:!1});var h9=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Qt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},Qt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Qt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},yw(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${re(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:`${re(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 v9(e,t){let r=rt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[h9(r)]}var v0=_t("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[v9(r,e)]});var Qr=E(I()),IE=E(Ee());var Hk=E(I()),y9=Hk.default.createContext(null),y0=y9;var x9=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},b9=(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=x9(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Qr.useContext(at),g=Qr.useContext(y0),{isFormItemInput:p}=Qr.useContext(uo),x=Qr.useContext(Ur),S=(r=g?.disabled||d)!==null&&r!==void 0?r:x,b=Qr.useRef(m.value),w=Qr.useRef(null),C=Fr(t,w);Qr.useEffect(()=>{g?.registerValue(m.value)},[]),Qr.useEffect(()=>{if(!f)return m.value!==b.current&&(g?.cancelValue(b.current),g?.registerValue(m.value),b.current=m.value),()=>g?.cancelValue(m.value)},[m.value]),Qr.useEffect(()=>{var M;!((M=w.current)===null||M===void 0)&&M.input&&(w.current.input.indeterminate=s)},[s]);let R=h("checkbox",o),_=Mo(R),[O,N,k]=v0(R,_),L=Object.assign({},m);g&&!f&&(L.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),g.toggleOption&&g.toggleOption({label:a,value:m.value})},L.name=g.name,L.checked=g.value.includes(m.value));let j=(0,IE.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:L.checked,[`${R}-wrapper-disabled`]:S,[`${R}-wrapper-in-form-item`]:p},y?.className,n,i,k,_,N),W=(0,IE.default)({[`${R}-indeterminate`]:s},Au,N),[D,$]=_E(L.onClick);return O(Qr.createElement(Xv,{component:"Checkbox",disabled:S},Qr.createElement("label",{className:j,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:D},Qr.createElement($k,Object.assign({},L,{onClick:$,prefixCls:R,className:W,disabled:S,ref:C})),a!==void 0&&Qr.createElement("span",{className:`${R}-label`},a))))},S9=Qr.forwardRef(b9),x0=S9;var Qo=E(I()),Uk=E(Ee());var C9=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},w9=Qo.forwardRef((e,t)=>{let{defaultValue:r,children:o,options:n=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=C9(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=Qo.useContext(at),[m,h]=Qo.useState(u.value||r||[]),[v,y]=Qo.useState([]);Qo.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);let g=Qo.useMemo(()=>n.map(W=>typeof W=="string"||typeof W=="number"?{label:W,value:W}:W),[n]),p=W=>{y(D=>D.filter($=>$!==W))},x=W=>{y(D=>[].concat(se(D),[W]))},S=W=>{let D=m.indexOf(W.value),$=se(m);D===-1?$.push(W.value):$.splice(D,1),"value"in u||h($),c?.($.filter(M=>v.includes(M)).sort((M,V)=>{let F=g.findIndex(U=>U.value===M),z=g.findIndex(U=>U.value===V);return F-z}))},b=f("checkbox",i),w=`${b}-group`,C=Mo(b),[R,_,O]=v0(b,C),N=Gr(u,["value","disabled"]),k=n.length?g.map(W=>Qo.createElement(x0,{prefixCls:b,key:W.value.toString(),disabled:"disabled"in W?W.disabled:u.disabled,value:W.value,checked:m.includes(W.value),onChange:W.onChange,className:`${w}-item`,style:W.style,title:W.title,id:W.id,required:W.required},W.label)):o,L={toggleOption:S,value:m,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:p},j=(0,Uk.default)(w,{[`${w}-rtl`]:d==="rtl"},a,s,O,C,_);return R(Qo.createElement("div",Object.assign({className:j,style:l},N,{ref:t}),Qo.createElement(y0.Provider,{value:L},k)))});var Gk=w9;var $E=x0;$E.Group=Gk;$E.__ANT_CHECKBOX=!0;var Ip=$E;var Cr=E(I());var b0=E(I());var E9={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"},qk=E9;var R9=function(t,r){return b0.createElement(mt,ee({},t,{ref:r,icon:qk}))},O9=b0.forwardRef(R9),Kk=O9;var dc=E(Ee());function $p(){return typeof BigInt=="function"}function S0(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Di(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 C0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function aa(e){var t=String(e);if(C0(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(".")&&lf(t)?t.length-t.indexOf(".")-1:0}function qa(e){var t=String(e);if(C0(e)){if(e>Number.MAX_SAFE_INTEGER)return String($p()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String($p()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(aa(t))}return Di(t).fullStr}function lf(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 Xk=function(){function e(t){if(lt(this,e),T(this,"origin",""),T(this,"negative",void 0),T(this,"integer",void 0),T(this,"decimal",void 0),T(this,"decimalLen",void 0),T(this,"empty",void 0),T(this,"nan",void 0),S0(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(C0(r)&&(r=Number(r)),r=typeof r=="string"?r:qa(r),lf(r)){var o=Di(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 ct(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=Di(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()?"":Di("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();var Yk=function(){function e(t){if(lt(this,e),T(this,"origin",""),T(this,"number",void 0),T(this,"empty",void 0),S0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return ct(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(aa(this.number),aa(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(aa(this.number),aa(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()?"":qa(this.number):this.origin}}]),e}();function w0(e){return $p()?new Xk(e):new Yk(e)}function Dp(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var n=Di(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=w0(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return Dp(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 Ai=w0;var cF=E(Ee());var Ka=E(Ee()),So=E(I());function Zk(e){return!!(e.addonBefore||e.addonAfter)}function Jk(e){return!!(e.prefix||e.suffix||e.allowClear)}function Qk(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 cf(e,t,r,o){if(r){var n=t;if(t.type==="click"){n=Qk(t,e,""),r(n);return}if(e.type!=="file"&&o!==void 0){n=Qk(t,e,o),r(n);return}r(n)}}function uc(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 _9=So.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,h=e.disabled,v=e.readOnly,y=e.focused,g=e.triggerFocus,p=e.allowClear,x=e.value,S=e.handleReset,b=e.hidden,w=e.classes,C=e.classNames,R=e.dataAttrs,_=e.styles,O=e.components,N=e.onClear,k=a??i,L=O?.affixWrapper||"span",j=O?.groupWrapper||"span",W=O?.wrapper||"span",D=O?.groupAddon||"span",$=(0,So.useRef)(null),M=function(Q){var J;(J=$.current)!==null&&J!==void 0&&J.contains(Q.target)&&g?.()},V=Jk(e),F=(0,So.cloneElement)(k,{value:x,className:(0,Ka.default)((r=k.props)===null||r===void 0?void 0:r.className,!V&&C?.variant)||null}),z=(0,So.useRef)(null);if(So.default.useImperativeHandle(t,function(){return{nativeElement:z.current||$.current}}),V){var U=null;if(p){var H=!h&&!v&&x,A="".concat(s,"-clear-icon"),G=pe(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"\u2716";U=So.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(Q){S?.(Q),N?.()},onMouseDown:function(Q){return Q.preventDefault()},className:(0,Ka.default)(A,T(T({},"".concat(A,"-hidden"),!H),"".concat(A,"-has-suffix"),!!c))},G)}var q="".concat(s,"-affix-wrapper"),oe=(0,Ka.default)(q,T(T(T(T(T({},"".concat(s,"-disabled"),h),"".concat(q,"-disabled"),h),"".concat(q,"-focused"),y),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),c&&p&&x),w?.affixWrapper,C?.affixWrapper,C?.variant),Z=(c||p)&&So.default.createElement("span",{className:(0,Ka.default)("".concat(s,"-suffix"),C?.suffix),style:_?.suffix},U,c);F=So.default.createElement(L,ee({className:oe,style:_?.affixWrapper,onClick:M},R?.affixWrapper,{ref:$}),l&&So.default.createElement("span",{className:(0,Ka.default)("".concat(s,"-prefix"),C?.prefix),style:_?.prefix},l),F,Z)}if(Zk(e)){var X="".concat(s,"-group"),ie="".concat(X,"-addon"),te="".concat(X,"-wrapper"),K=(0,Ka.default)("".concat(s,"-wrapper"),X,w?.wrapper,C?.wrapper),Y=(0,Ka.default)(te,T({},"".concat(te,"-disabled"),h),w?.group,C?.groupWrapper);F=So.default.createElement(j,{className:Y,ref:z},So.default.createElement(W,{className:K},u&&So.default.createElement(D,{className:ie},u),F,f&&So.default.createElement(D,{className:ie},f)))}return So.default.cloneElement(F,{className:(0,Ka.default)((o=F.props)===null||o===void 0?void 0:o.className,d)||null,style:P(P({},(n=F.props)===null||n===void 0?void 0:n.style),m),hidden:b})}),fc=_9;var E0=E(Ee());var Wr=E(I());var eF=E(I()),P9=["show"];function Ap(e,t){return eF.useMemo(function(){var r={};t&&(r.show=pe(t)==="object"&&t.formatter?t.formatter:!!t),r=P(P({},r),e);var o=r,n=o.show,i=Ae(o,P9);return P(P({},i),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var T9=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],N9=(0,Wr.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,h=e.maxLength,v=e.suffix,y=e.showCount,g=e.count,p=e.type,x=p===void 0?"text":p,S=e.classes,b=e.classNames,w=e.styles,C=e.onCompositionStart,R=e.onCompositionEnd,_=Ae(e,T9),O=(0,Wr.useState)(!1),N=B(O,2),k=N[0],L=N[1],j=(0,Wr.useRef)(!1),W=(0,Wr.useRef)(!1),D=(0,Wr.useRef)(null),$=(0,Wr.useRef)(null),M=function(ae){D.current&&uc(D.current,ae)},V=zt(e.defaultValue,{value:e.value}),F=B(V,2),z=F[0],U=F[1],H=z==null?"":String(z),A=(0,Wr.useState)(null),G=B(A,2),q=G[0],oe=G[1],Z=Ap(g,y),X=Z.max||h,ie=Z.strategy(H),te=!!X&&ie>X;(0,Wr.useImperativeHandle)(t,function(){var ce;return{focus:M,blur:function(){var Re;(Re=D.current)===null||Re===void 0||Re.blur()},setSelectionRange:function(Re,Me,Be){var Ie;(Ie=D.current)===null||Ie===void 0||Ie.setSelectionRange(Re,Me,Be)},select:function(){var Re;(Re=D.current)===null||Re===void 0||Re.select()},input:D.current,nativeElement:((ce=$.current)===null||ce===void 0?void 0:ce.nativeElement)||D.current}}),(0,Wr.useEffect)(function(){W.current&&(W.current=!1),L(function(ce){return ce&&f?!1:ce})},[f]);var K=function(ae,Re,Me){var Be=Re;if(!j.current&&Z.exceedFormatter&&Z.max&&Z.strategy(Re)>Z.max){if(Be=Z.exceedFormatter(Re,{max:Z.max}),Re!==Be){var Ie,Oe;oe([((Ie=D.current)===null||Ie===void 0?void 0:Ie.selectionStart)||0,((Oe=D.current)===null||Oe===void 0?void 0:Oe.selectionEnd)||0])}}else if(Me.source==="compositionEnd")return;U(Be),D.current&&cf(D.current,ae,o,Be)};(0,Wr.useEffect)(function(){if(q){var ce;(ce=D.current)===null||ce===void 0||ce.setSelectionRange.apply(ce,se(q))}},[q]);var Y=function(ae){K(ae,ae.target.value,{source:"change"})},ne=function(ae){j.current=!1,K(ae,ae.currentTarget.value,{source:"compositionEnd"}),R?.(ae)},Q=function(ae){a&&ae.key==="Enter"&&!W.current&&(W.current=!0,a(ae)),s?.(ae)},J=function(ae){ae.key==="Enter"&&(W.current=!1),l?.(ae)},le=function(ae){L(!0),n?.(ae)},ue=function(ae){W.current&&(W.current=!1),L(!1),i?.(ae)},fe=function(ae){U(""),M(),D.current&&cf(D.current,ae,o)},he=te&&"".concat(u,"-out-of-range"),ye=function(){var ae=Gr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Wr.default.createElement("input",ee({autoComplete:r},ae,{onChange:Y,onFocus:le,onBlur:ue,onKeyDown:Q,onKeyUp:J,className:(0,E0.default)(u,T({},"".concat(u,"-disabled"),f),b?.input),style:w?.input,ref:D,size:d,type:x,onCompositionStart:function(Me){j.current=!0,C?.(Me)},onCompositionEnd:ne}))},we=function(){var ae=Number(X)>0;if(v||Z.show){var Re=Z.showFormatter?Z.showFormatter({value:H,count:ie,maxLength:X}):"".concat(ie).concat(ae?" / ".concat(X):"");return Wr.default.createElement(Wr.default.Fragment,null,Z.show&&Wr.default.createElement("span",{className:(0,E0.default)("".concat(u,"-show-count-suffix"),T({},"".concat(u,"-show-count-has-suffix"),!!v),b?.count),style:P({},w?.count)},Re),v)}return null};return Wr.default.createElement(fc,ee({},_,{prefixCls:u,className:(0,E0.default)(m,he),handleReset:fe,value:H,focused:k,triggerFocus:M,suffix:we(),disabled:f,classes:S,classNames:b,styles:w,ref:$}),ye())}),tF=N9;var rF=tF;function DE(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 Ot=E(I());var oF=E(I());function AE(e,t){var r=(0,oF.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){Vt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[o,n]}var li=E(I()),ME=E(Ee());var nF=E(I());var I9=function(){var t=(0,nF.useState)(!1),r=B(t,2),o=r[0],n=r[1];return yt(function(){n(Wu())},[]),o},iF=I9;var $9=200,D9=600;function LE(e){var t=e.prefixCls,r=e.upNode,o=e.downNode,n=e.upDisabled,i=e.downDisabled,a=e.onStep,s=li.useRef(),l=li.useRef([]),c=li.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,S){x.preventDefault(),u(),c.current(S);function b(){c.current(S),s.current=setTimeout(b,$9)}s.current=setTimeout(b,D9)};li.useEffect(function(){return function(){u(),l.current.forEach(function(p){return ut.cancel(p)})}},[]);var d=iF();if(d)return null;var m="".concat(t,"-handler"),h=(0,ME.default)(m,"".concat(m,"-up"),T({},"".concat(m,"-up-disabled"),n)),v=(0,ME.default)(m,"".concat(m,"-down"),T({},"".concat(m,"-down-disabled"),i)),y=function(){return l.current.push(ut(u))},g={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return li.createElement("div",{className:"".concat(m,"-wrap")},li.createElement("span",ee({},g,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":n,className:h}),r||li.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),li.createElement("span",ee({},g,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),o||li.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function kE(e){var t=typeof e=="number"?qa(e):Di(e).fullStr,r=t.includes(".");return r?Di(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var R0=E(I());var aF=function(){var e=(0,R0.useRef)(0),t=function(){ut.cancel(e.current)};return(0,R0.useEffect)(function(){return t},[]),function(r){t(),e.current=ut(function(){r()})}};var A9=["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"],M9=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],sF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},lF=function(t){var r=Ai(t);return r.isInvalidate()?null:r},L9=Ot.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,h=e.downHandler,v=e.keyboard,y=e.changeOnWheel,g=y===void 0?!1:y,p=e.controls,x=p===void 0?!0:p,S=e.classNames,b=e.stringMode,w=e.parser,C=e.formatter,R=e.precision,_=e.decimalSeparator,O=e.onChange,N=e.onInput,k=e.onPressEnter,L=e.onStep,j=e.changeOnBlur,W=j===void 0?!0:j,D=e.domRef,$=Ae(e,A9),M="".concat(r,"-input"),V=Ot.useRef(null),F=Ot.useState(!1),z=B(F,2),U=z[0],H=z[1],A=Ot.useRef(!1),G=Ot.useRef(!1),q=Ot.useRef(!1),oe=Ot.useState(function(){return Ai(u??c)}),Z=B(oe,2),X=Z[0],ie=Z[1];function te(We){u===void 0&&ie(We)}var K=Ot.useCallback(function(We,Pe){if(!Pe)return R>=0?R:Math.max(aa(We),aa(l))},[R,l]),Y=Ot.useCallback(function(We){var Pe=String(We);if(w)return w(Pe);var tt=Pe;return _&&(tt=tt.replace(_,".")),tt.replace(/[^\w.-]+/g,"")},[w,_]),ne=Ot.useRef(""),Q=Ot.useCallback(function(We,Pe){if(C)return C(We,{userTyping:Pe,input:String(ne.current)});var tt=typeof We=="number"?qa(We):We;if(!Pe){var De=K(tt,Pe);if(lf(tt)&&(_||De>=0)){var Le=_||".";tt=Dp(tt,Le,De)}}return tt},[C,K,_]),J=Ot.useState(function(){var We=c??u;return X.isInvalidate()&&["string","number"].includes(pe(We))?Number.isNaN(We)?"":We:Q(X.toString(),!1)}),le=B(J,2),ue=le[0],fe=le[1];ne.current=ue;function he(We,Pe){fe(Q(We.isInvalidate()?We.toString(!1):We.toString(!Pe),Pe))}var ye=Ot.useMemo(function(){return lF(a)},[a,R]),we=Ot.useMemo(function(){return lF(i)},[i,R]),ce=Ot.useMemo(function(){return!ye||!X||X.isInvalidate()?!1:ye.lessEquals(X)},[ye,X]),ae=Ot.useMemo(function(){return!we||!X||X.isInvalidate()?!1:X.lessEquals(we)},[we,X]),Re=AE(V.current,U),Me=B(Re,2),Be=Me[0],Ie=Me[1],Oe=function(Pe){return ye&&!Pe.lessEquals(ye)?ye:we&&!we.lessEquals(Pe)?we:null},be=function(Pe){return!Oe(Pe)},Ve=function(Pe,tt){var De=Pe,Le=be(De)||De.isEmpty();if(!De.isEmpty()&&!tt&&(De=Oe(De)||De,Le=!0),!d&&!f&&Le){var Te=De.toString(),Ne=K(Te,tt);return Ne>=0&&(De=Ai(Dp(Te,".",Ne)),be(De)||(De=Ai(Dp(Te,".",Ne,!0)))),De.equals(X)||(te(De),O?.(De.isEmpty()?null:sF(b,De)),u===void 0&&he(De,tt)),De}return X},He=aF(),$e=function We(Pe){if(Be(),ne.current=Pe,fe(Pe),!G.current){var tt=Y(Pe),De=Ai(tt);De.isNaN()||Ve(De,!0)}N?.(Pe),He(function(){var Le=Pe;w||(Le=Pe.replace(/。/g,".")),Le!==Pe&&We(Le)})},de=function(){G.current=!0},me=function(){G.current=!1,$e(V.current.value)},ze=function(Pe){$e(Pe.target.value)},Ce=function(Pe){var tt;if(!(Pe&&ce||!Pe&&ae)){A.current=!1;var De=Ai(q.current?kE(l):l);Pe||(De=De.negate());var Le=(X||Ai(0)).add(De.toString()),Te=Ve(Le,!1);L?.(sF(b,Te),{offset:q.current?kE(l):l,type:Pe?"up":"down"}),(tt=V.current)===null||tt===void 0||tt.focus()}},Ue=function(Pe){var tt=Ai(Y(ue)),De;tt.isNaN()?De=Ve(X,Pe):De=Ve(tt,Pe),u!==void 0?he(X,!1):De.isNaN()||he(De,!1)},Ye=function(){A.current=!0},gt=function(Pe){var tt=Pe.key,De=Pe.shiftKey;A.current=!0,q.current=De,tt==="Enter"&&(G.current||(A.current=!1),Ue(!1),k?.(Pe)),v!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(tt)&&(Ce(tt==="Up"||tt==="ArrowUp"),Pe.preventDefault())},Tt=function(){A.current=!1,q.current=!1};Ot.useEffect(function(){if(g&&U){var We=function(De){Ce(De.deltaY<0),De.preventDefault()},Pe=V.current;if(Pe)return Pe.addEventListener("wheel",We,{passive:!1}),function(){return Pe.removeEventListener("wheel",We)}}});var ht=function(){W&&Ue(!1),H(!1),A.current=!1};return Fl(function(){X.isInvalidate()||he(X,!1)},[R,C]),Fl(function(){var We=Ai(u);ie(We);var Pe=Ai(Y(ue));(!We.equals(Pe)||!A.current||C)&&he(We,A.current)},[u]),Fl(function(){C&&Ie()},[ue]),Ot.createElement("div",{ref:D,className:(0,cF.default)(r,o,T(T(T(T(T({},"".concat(r,"-focused"),U),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),d),"".concat(r,"-not-a-number"),X.isNaN()),"".concat(r,"-out-of-range"),!X.isInvalidate()&&!be(X))),style:n,onFocus:function(){H(!0)},onBlur:ht,onKeyDown:gt,onKeyUp:Tt,onCompositionStart:de,onCompositionEnd:me,onBeforeInput:Ye},x&&Ot.createElement(LE,{prefixCls:r,upNode:m,downNode:h,upDisabled:ce,downDisabled:ae,onStep:Ce}),Ot.createElement("div",{className:"".concat(M,"-wrap")},Ot.createElement("input",ee({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},$,{ref:Fr(V,t),className:M,value:ue,onChange:ze,disabled:f,readOnly:d}))))}),k9=Ot.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=Ae(e,M9),h=Ot.useRef(null),v=Ot.useRef(null),y=Ot.useRef(null),g=function(x){y.current&&uc(y.current,x)};return Ot.useImperativeHandle(t,function(){return DE(y.current,{focus:g,nativeElement:h.current.nativeElement||v.current})}),Ot.createElement(fc,{className:f,triggerFocus:g,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:h},Ot.createElement(L9,ee({prefixCls:i,disabled:r,ref:y,domRef:v,className:d?.input},m)))}),uF=k9;var fF=uF;var dF=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({},Ga(e)),{controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new it(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?o:0})};var pF=(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}}}},F9=e=>{let{componentCls:t,lineWidth:r,lineType:o,borderRadius:n,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:m,colorTextDescription:h,motionDurationMid:v,handleHoverColor:y,handleOpacity:g,paddingInline:p,paddingBlock:x,handleBg:S,handleActiveBg:b,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:_,handleBorderColor:O,filledHandleBg:N,lineHeightLG:k,calc:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),Np(e)),{display:"inline-block",width:_,margin:0,padding:0,borderRadius:n}),c0(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${re(r)} ${o} ${O}`}}})),d0(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${re(r)} ${o} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),m0(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${re(r)} ${o} ${O}`}}})),f0(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:k,borderRadius:R,[`input${t}-input`]:{height:L(s).sub(L(r).mul(2)).equal(),padding:`${re(d)} ${re(m)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:L(l).sub(L(r).mul(2)).equal(),padding:`${re(f)} ${re(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Qt(e)),NE(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},u0(e)),p0(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:`${re(x)} ${re(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:n,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),TE(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,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:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${re(r)} ${o} ${O}`,transition:`all ${v} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`
|
|
${t}-handler-up-inner,
|
|
${t}-handler-down-inner
|
|
`]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Aa()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:n},[`${t}-handler-down`]:{borderEndEndRadius:n}},pF(e,"lg")),pF(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}})}]},z9=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:`${re(r)} 0`}},Np(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:o,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${re(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${re(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()}})}},mF=_t("InputNumber",e=>{let t=rt(e,Ua(e));return[F9(t),z9(t),Gs(t)]},dF,{unitless:{handleOpacity:!0}});var W9=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},gF=Cr.forwardRef((e,t)=>{let{getPrefixCls:r,direction:o}=Cr.useContext(at),n=Cr.useRef(null);Cr.useImperativeHandle(t,()=>n.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:m,bordered:h,readOnly:v,status:y,controls:g,variant:p}=e,x=W9(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=r("input-number",c),b=Mo(S),[w,C,R]=mF(S,b),{compactSize:_,compactItemClassnames:O}=Zn(S,o),N=Cr.createElement(Kk,{className:`${S}-handler-up-inner`}),k=Cr.createElement(Jy,{className:`${S}-handler-down-inner`}),L=typeof g=="boolean"?g:void 0;typeof g=="object"&&(N=typeof g.upIcon>"u"?N:Cr.createElement("span",{className:`${S}-handler-up-inner`},g.upIcon),k=typeof g.downIcon>"u"?k:Cr.createElement("span",{className:`${S}-handler-down-inner`},g.downIcon));let{hasFeedback:j,status:W,isFormItemInput:D,feedbackIcon:$}=Cr.useContext(uo),M=na(W,y),V=dn(Z=>{var X;return(X=s??_)!==null&&X!==void 0?X:Z}),F=Cr.useContext(Ur),z=l??F,[U,H]=ol("inputNumber",p,h),A=j&&Cr.createElement(Cr.Fragment,null,$),G=(0,dc.default)({[`${S}-lg`]:V==="large",[`${S}-sm`]:V==="small",[`${S}-rtl`]:o==="rtl",[`${S}-in-form-item`]:D},C),q=`${S}-group`,oe=Cr.createElement(fF,Object.assign({ref:n,disabled:z,className:(0,dc.default)(R,b,i,a,O),upHandler:N,downHandler:k,prefixCls:S,readOnly:v,controls:L,prefix:d,suffix:A||m,addonBefore:u&&Cr.createElement(Ys,{form:!0,space:!0},u),addonAfter:f&&Cr.createElement(Ys,{form:!0,space:!0},f),classNames:{input:G,variant:(0,dc.default)({[`${S}-${U}`]:H},oa(S,M,j)),affixWrapper:(0,dc.default)({[`${S}-affix-wrapper-sm`]:V==="small",[`${S}-affix-wrapper-lg`]:V==="large",[`${S}-affix-wrapper-rtl`]:o==="rtl",[`${S}-affix-wrapper-without-controls`]:g===!1||z},C),wrapper:(0,dc.default)({[`${q}-rtl`]:o==="rtl"},C),groupWrapper:(0,dc.default)({[`${S}-group-wrapper-sm`]:V==="small",[`${S}-group-wrapper-lg`]:V==="large",[`${S}-group-wrapper-rtl`]:o==="rtl",[`${S}-group-wrapper-${U}`]:H},oa(`${S}-group-wrapper`,M,j),C)}},x));return w(oe)}),hF=gF,B9=e=>Cr.createElement(ka,{theme:{components:{InputNumber:{handleVisible:!0}}}},Cr.createElement(gF,Object.assign({},e)));hF._InternalPanelDoNotUseOrYouWillBeFired=B9;var O0=hF;var hn=E(I()),pc=E(Ee());var vF=E(I());var j9=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:vF.default.createElement(Du,null)}),t},_0=j9;var P0=E(I());function Mp(e,t){let r=(0,P0.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,P0.useEffect)(()=>(t&&o(),()=>r.current.forEach(n=>{n&&clearTimeout(n)})),[]),o}function yF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var V9=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 H9=(0,hn.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:h,styles:v,rootClassName:y,onChange:g,classNames:p,variant:x}=e,S=V9(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:b,direction:w,allowClear:C,autoComplete:R,className:_,style:O,classNames:N,styles:k}=Do("input"),L=b("input",r),j=(0,hn.useRef)(null),W=Mo(L),[D,$,M]=g0(L,y),[V]=h0(L,W),{compactSize:F,compactItemClassnames:z}=Zn(L,w),U=dn(fe=>{var he;return(he=i??F)!==null&&he!==void 0?he:fe}),H=hn.default.useContext(Ur),A=a??H,{status:G,hasFeedback:q,feedbackIcon:oe}=(0,hn.useContext)(uo),Z=na(G,n),X=yF(e)||!!q,ie=(0,hn.useRef)(X),te=Mp(j,!0),K=fe=>{te(),s?.(fe)},Y=fe=>{te(),l?.(fe)},ne=fe=>{te(),g?.(fe)},Q=(q||c)&&hn.default.createElement(hn.default.Fragment,null,c,q&&oe),J=_0(u??C),[le,ue]=ol("input",x,o);return D(V(hn.default.createElement(rF,Object.assign({ref:Fr(t,j),prefixCls:L,autoComplete:R},S,{disabled:A,onBlur:K,onFocus:Y,style:Object.assign(Object.assign({},O),h),styles:Object.assign(Object.assign({},k),v),suffix:Q,allowClear:J,className:(0,pc.default)(m,y,M,W,z,_),onChange:ne,addonBefore:d&&hn.default.createElement(Ys,{form:!0,space:!0},d),addonAfter:f&&hn.default.createElement(Ys,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},p),N),{input:(0,pc.default)({[`${L}-sm`]:U==="small",[`${L}-lg`]:U==="large",[`${L}-rtl`]:w==="rtl"},p?.input,N.input,$),variant:(0,pc.default)({[`${L}-${le}`]:ue},oa(L,Z)),affixWrapper:(0,pc.default)({[`${L}-affix-wrapper-sm`]:U==="small",[`${L}-affix-wrapper-lg`]:U==="large",[`${L}-affix-wrapper-rtl`]:w==="rtl"},$),wrapper:(0,pc.default)({[`${L}-group-rtl`]:w==="rtl"},$),groupWrapper:(0,pc.default)({[`${L}-group-wrapper-sm`]:U==="small",[`${L}-group-wrapper-lg`]:U==="large",[`${L}-group-wrapper-rtl`]:w==="rtl",[`${L}-group-wrapper-${le}`]:ue},oa(`${L}-group-wrapper`,Z,q),$)})}))))}),nl=H9;var UE=E(Ee());var Pt=E(I());var Zo=E(I()),bF=E(bi());function T0(e,t,r){return(e-t)/(r-t)}function uf(e,t,r,o){var n=T0(t,r,o),i={};switch(e){case"rtl":i.right="".concat(n*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(n*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(n*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(n*100,"%"),i.transform="translateX(-50%)";break}return i}function sa(e,t){return Array.isArray(e)?e[t]:e}var xF=E(Ee());var ff=E(I());var FE=E(I()),U9=FE.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),vn=U9,zE=FE.createContext({});var G9=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],q9=ff.forwardRef(function(e,t){var r=e.prefixCls,o=e.value,n=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,d=e.onChangeComplete,m=e.onFocus,h=e.onMouseEnter,v=Ae(e,G9),y=ff.useContext(vn),g=y.min,p=y.max,x=y.direction,S=y.disabled,b=y.keyboard,w=y.range,C=y.tabIndex,R=y.ariaLabelForHandle,_=y.ariaLabelledByForHandle,O=y.ariaRequired,N=y.ariaValueTextFormatterForHandle,k=y.styles,L=y.classNames,j="".concat(r,"-handle"),W=function(G){S||i(G,n)},D=function(G){m?.(G,n)},$=function(G){h(G,n)},M=function(G){if(!S&&b){var q=null;switch(G.which||G.keyCode){case Fe.LEFT:q=x==="ltr"||x==="btt"?-1:1;break;case Fe.RIGHT:q=x==="ltr"||x==="btt"?1:-1;break;case Fe.UP:q=x!=="ttb"?1:-1;break;case Fe.DOWN:q=x!=="ttb"?-1:1;break;case Fe.HOME:q="min";break;case Fe.END:q="max";break;case Fe.PAGE_UP:q=2;break;case Fe.PAGE_DOWN:q=-2;break;case Fe.BACKSPACE:case Fe.DELETE:a(n);break}q!==null&&(G.preventDefault(),f(q,n))}},V=function(G){switch(G.which||G.keyCode){case Fe.LEFT:case Fe.RIGHT:case Fe.UP:case Fe.DOWN:case Fe.HOME:case Fe.END:case Fe.PAGE_UP:case Fe.PAGE_DOWN:d?.();break}},F=uf(x,o,g,p),z={};if(n!==null){var U;z={tabIndex:S?null:sa(C,n),role:"slider","aria-valuemin":g,"aria-valuemax":p,"aria-valuenow":o,"aria-disabled":S,"aria-label":sa(R,n),"aria-labelledby":sa(_,n),"aria-required":sa(O,n),"aria-valuetext":(U=sa(N,n))===null||U===void 0?void 0:U(o),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:W,onTouchStart:W,onFocus:D,onMouseEnter:$,onKeyDown:M,onKeyUp:V}}var H=ff.createElement("div",ee({ref:t,className:(0,xF.default)(j,T(T(T({},"".concat(j,"-").concat(n+1),n!==null&&w),"".concat(j,"-dragging"),c),"".concat(j,"-dragging-delete"),u),L.handle),style:P(P(P({},F),s),k.handle)},z,v));return l&&(H=l(H,{index:n,prefixCls:r,value:o,dragging:c,draggingDelete:u})),H}),WE=q9;var K9=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],X9=Zo.forwardRef(function(e,t){var r=e.prefixCls,o=e.style,n=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,d=Ae(e,K9),m=Zo.useRef({}),h=Zo.useState(!1),v=B(h,2),y=v[0],g=v[1],p=Zo.useState(-1),x=B(p,2),S=x[0],b=x[1],w=function(N){b(N),g(!0)},C=function(N,k){w(k),f?.(N)},R=function(N,k){w(k)};Zo.useImperativeHandle(t,function(){return{focus:function(N){var k;(k=m.current[N])===null||k===void 0||k.focus()},hideHelp:function(){(0,bF.flushSync)(function(){g(!1)})}}});var _=P({prefixCls:r,onStartMove:n,onOffsetChange:i,render:s,onFocus:C,onMouseEnter:R},d);return Zo.createElement(Zo.Fragment,null,a.map(function(O,N){var k=c===N;return Zo.createElement(WE,ee({ref:function(j){j?m.current[N]=j:delete m.current[N]},dragging:k,draggingDelete:k&&u,style:sa(o,N),key:N,value:O,valueIndex:N},_))}),l&&y&&Zo.createElement(WE,ee({key:"a11y"},_,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),SF=X9;var BE=E(I());var CF=E(Ee()),N0=E(I());var Y9=function(t){var r=t.prefixCls,o=t.style,n=t.children,i=t.value,a=t.onClick,s=N0.useContext(vn),l=s.min,c=s.max,u=s.direction,f=s.includedStart,d=s.includedEnd,m=s.included,h="".concat(r,"-text"),v=uf(u,i,l,c);return N0.createElement("span",{className:(0,CF.default)(h,T({},"".concat(h,"-active"),m&&f<=i&&i<=d)),style:P(P({},v),o),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(i)}},n)},wF=Y9;var Q9=function(t){var r=t.prefixCls,o=t.marks,n=t.onClick,i="".concat(r,"-mark");return o.length?BE.createElement("div",{className:i},o.map(function(a){var s=a.value,l=a.style,c=a.label;return BE.createElement(wF,{key:s,prefixCls:i,style:l,value:s,onClick:n},c)})):null},EF=Q9;var mc=E(I());var RF=E(Ee()),I0=E(I());var Z9=function(t){var r=t.prefixCls,o=t.value,n=t.style,i=t.activeStyle,a=I0.useContext(vn),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,d=a.includedEnd,m="".concat(r,"-dot"),h=u&&f<=o&&o<=d,v=P(P({},uf(c,o,s,l)),typeof n=="function"?n(o):n);return h&&(v=P(P({},v),typeof i=="function"?i(o):i)),I0.createElement("span",{className:(0,RF.default)(m,T({},"".concat(m,"-active"),h)),style:v})},OF=Z9;var J9=function(t){var r=t.prefixCls,o=t.marks,n=t.dots,i=t.style,a=t.activeStyle,s=mc.useContext(vn),l=s.min,c=s.max,u=s.step,f=mc.useMemo(function(){var d=new Set;if(o.forEach(function(h){d.add(h.value)}),n&&u!==null)for(var m=l;m<=c;)d.add(m),m+=u;return Array.from(d)},[l,c,u,n,o]);return mc.createElement("div",{className:"".concat(r,"-step")},f.map(function(d){return mc.createElement(OF,{prefixCls:r,key:d,value:d,style:i,activeStyle:a})}))},_F=J9;var TF=E(Ee()),la=E(I());var PF=E(Ee()),$0=E(I());var eG=function(t){var r=t.prefixCls,o=t.style,n=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=$0.useContext(vn),u=c.direction,f=c.min,d=c.max,m=c.disabled,h=c.range,v=c.classNames,y="".concat(r,"-track"),g=T0(n,f,d),p=T0(i,f,d),x=function(C){!m&&s&&s(C,-1)},S={};switch(u){case"rtl":S.right="".concat(g*100,"%"),S.width="".concat(p*100-g*100,"%");break;case"btt":S.bottom="".concat(g*100,"%"),S.height="".concat(p*100-g*100,"%");break;case"ttb":S.top="".concat(g*100,"%"),S.height="".concat(p*100-g*100,"%");break;default:S.left="".concat(g*100,"%"),S.width="".concat(p*100-g*100,"%")}var b=l||(0,PF.default)(y,T(T({},"".concat(y,"-").concat(a+1),a!==null&&h),"".concat(r,"-track-draggable"),s),v.track);return $0.createElement("div",{className:b,style:P(P({},S),o),onMouseDown:x,onTouchStart:x})},jE=eG;var tG=function(t){var r=t.prefixCls,o=t.style,n=t.values,i=t.startPoint,a=t.onStartMove,s=la.useContext(vn),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,m=la.useMemo(function(){if(!c){if(n.length===0)return[];var v=i??u,y=n[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var g=[],p=0;p<n.length-1;p+=1)g.push({start:n[p],end:n[p+1]});return g},[n,c,i,u]);if(!l)return null;var h=m!=null&&m.length&&(d.tracks||f.tracks)?la.createElement(jE,{index:null,prefixCls:r,start:m[0].start,end:m[m.length-1].end,replaceCls:(0,TF.default)(d.tracks,"".concat(r,"-tracks")),style:f.tracks}):null;return la.createElement(la.Fragment,null,h,m.map(function(v,y){var g=v.start,p=v.end;return la.createElement(jE,{index:y,prefixCls:r,style:P(P({},sa(o,y)),f.track),start:g,end:p,key:y,onStartMove:a})}))},NF=tG;var Lo=E(I());var rG=130;function IF(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function oG(e,t,r,o,n,i,a,s,l,c,u){var f=Lo.useState(null),d=B(f,2),m=d[0],h=d[1],v=Lo.useState(-1),y=B(v,2),g=y[0],p=y[1],x=Lo.useState(!1),S=B(x,2),b=S[0],w=S[1],C=Lo.useState(r),R=B(C,2),_=R[0],O=R[1],N=Lo.useState(r),k=B(N,2),L=k[0],j=k[1],W=Lo.useRef(null),D=Lo.useRef(null),$=Lo.useRef(null),M=Lo.useContext(zE),V=M.onDragStart,F=M.onDragChange;yt(function(){g===-1&&O(r)},[r,g]),Lo.useEffect(function(){return function(){document.removeEventListener("mousemove",W.current),document.removeEventListener("mouseup",D.current),$.current&&($.current.removeEventListener("touchmove",W.current),$.current.removeEventListener("touchend",D.current))}},[]);var z=function(q,oe,Z){oe!==void 0&&h(oe),O(q);var X=q;Z&&(X=q.filter(function(ie,te){return te!==g})),a(X),F&&F({rawValues:q,deleteIndex:Z?g:-1,draggingIndex:g,draggingValue:oe})},U=Et(function(G,q,oe){if(G===-1){var Z=L[0],X=L[L.length-1],ie=o-Z,te=n-X,K=q*(n-o);K=Math.max(K,ie),K=Math.min(K,te);var Y=i(Z+K);K=Y-Z;var ne=L.map(function(ue){return ue+K});z(ne)}else{var Q=(n-o)*q,J=se(_);J[G]=L[G];var le=l(J,Q,G,"dist");z(le.values,le.value,oe)}}),H=function(q,oe,Z){q.stopPropagation();var X=Z||r,ie=X[oe];p(oe),h(ie),j(X),O(X),w(!1);var te=IF(q),K=te.pageX,Y=te.pageY,ne=!1;V&&V({rawValues:X,draggingIndex:oe,draggingValue:ie});var Q=function(ue){ue.preventDefault();var fe=IF(ue),he=fe.pageX,ye=fe.pageY,we=he-K,ce=ye-Y,ae=e.current.getBoundingClientRect(),Re=ae.width,Me=ae.height,Be,Ie;switch(t){case"btt":Be=-ce/Me,Ie=we;break;case"ttb":Be=ce/Me,Ie=we;break;case"rtl":Be=-we/Re,Ie=ce;break;default:Be=we/Re,Ie=ce}ne=c?Math.abs(Ie)>rG&&u<_.length:!1,w(ne),U(oe,Be,ne)},J=function le(ue){ue.preventDefault(),document.removeEventListener("mouseup",le),document.removeEventListener("mousemove",Q),$.current&&($.current.removeEventListener("touchmove",W.current),$.current.removeEventListener("touchend",D.current)),W.current=null,D.current=null,$.current=null,s(ne),p(-1),w(!1)};document.addEventListener("mouseup",J),document.addEventListener("mousemove",Q),q.currentTarget.addEventListener("touchend",J),q.currentTarget.addEventListener("touchmove",Q),W.current=Q,D.current=J,$.current=q.currentTarget},A=Lo.useMemo(function(){var G=se(r).sort(function(ie,te){return ie-te}),q=se(_).sort(function(ie,te){return ie-te}),oe={};q.forEach(function(ie){oe[ie]=(oe[ie]||0)+1}),G.forEach(function(ie){oe[ie]=(oe[ie]||0)-1});var Z=c?1:0,X=Object.values(oe).reduce(function(ie,te){return ie+Math.abs(te)},0);return X<=Z?_:r},[r,_,c]);return[g,m,b,A,H]}var $F=oG;var D0=E(I());function VE(e,t,r,o,n,i){var a=D0.useCallback(function(m){return Math.max(e,Math.min(t,m))},[e,t]),s=D0.useCallback(function(m){if(r!==null){var h=e+Math.round((a(m)-e)/r)*r,v=function(x){return(String(x).split(".")[1]||"").length},y=Math.max(v(r),v(t),v(e)),g=Number(h.toFixed(y));return e<=g&&g<=t?g:null}return null},[r,e,t,a]),l=D0.useCallback(function(m){var h=a(m),v=o.map(function(p){return p.value});r!==null&&v.push(s(m)),v.push(e,t);var y=v[0],g=t-e;return v.forEach(function(p){var x=Math.abs(h-p);x<=g&&(y=p,g=x)}),y},[e,t,o,r,a,s]),c=function m(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var p,x=h[y],S=x+v,b=[];o.forEach(function(O){b.push(O.value)}),b.push(e,t),b.push(s(x));var w=v>0?1:-1;g==="unit"?b.push(s(x+w*r)):b.push(s(S)),b=b.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=x:O>=x}),g==="unit"&&(b=b.filter(function(O){return O!==x}));var C=g==="unit"?x:S;p=b[0];var R=Math.abs(p-C);if(b.forEach(function(O){var N=Math.abs(O-C);N<R&&(p=O,R=N)}),p===void 0)return v<0?e:t;if(g==="dist")return p;if(Math.abs(v)>1){var _=se(h);return _[y]=p,m(_,v-w,y,g)}return p}else{if(v==="min")return e;if(v==="max")return t}},u=function(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",p=h[y],x=c(h,v,y,g);return{value:x,changed:x!==p}},f=function(h){return i===null&&h===0||typeof i=="number"&&h<i},d=function(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",p=h.map(l),x=p[y],S=c(p,v,y,g);if(p[y]=S,n===!1){var b=i||0;y>0&&p[y-1]!==x&&(p[y]=Math.max(p[y],p[y-1]+b)),y<p.length-1&&p[y+1]!==x&&(p[y]=Math.min(p[y],p[y+1]-b))}else if(typeof i=="number"||i===null){for(var w=y+1;w<p.length;w+=1)for(var C=!0;f(p[w]-p[w-1])&&C;){var R=u(p,1,w);p[w]=R.value,C=R.changed}for(var _=y;_>0;_-=1)for(var O=!0;f(p[_]-p[_-1])&&O;){var N=u(p,-1,_-1);p[_-1]=N.value,O=N.changed}for(var k=p.length-1;k>0;k-=1)for(var L=!0;f(p[k]-p[k-1])&&L;){var j=u(p,-1,k-1);p[k-1]=j.value,L=j.changed}for(var W=0;W<p.length-1;W+=1)for(var D=!0;f(p[W+1]-p[W])&&D;){var $=u(p,1,W+1);p[W+1]=$.value,D=$.changed}}return{value:p[y],values:p}};return[l,d]}var DF=E(I());function HE(e){return(0,DF.useMemo)(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,r=e.draggableTrack,o=e.minCount,n=e.maxCount;return[!0,t,!t&&r,o||0,n]},[e])}var nG=Pt.forwardRef(function(e,t){var r=e.prefixCls,o=r===void 0?"rc-slider":r,n=e.className,i=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,f=e.keyboard,d=f===void 0?!0:f,m=e.autoFocus,h=e.onFocus,v=e.onBlur,y=e.min,g=y===void 0?0:y,p=e.max,x=p===void 0?100:p,S=e.step,b=S===void 0?1:S,w=e.value,C=e.defaultValue,R=e.range,_=e.count,O=e.onChange,N=e.onBeforeChange,k=e.onAfterChange,L=e.onChangeComplete,j=e.allowCross,W=j===void 0?!0:j,D=e.pushable,$=D===void 0?!1:D,M=e.reverse,V=e.vertical,F=e.included,z=F===void 0?!0:F,U=e.startPoint,H=e.trackStyle,A=e.handleStyle,G=e.railStyle,q=e.dotStyle,oe=e.activeDotStyle,Z=e.marks,X=e.dots,ie=e.handleRender,te=e.activeHandleRender,K=e.track,Y=e.tabIndex,ne=Y===void 0?0:Y,Q=e.ariaLabelForHandle,J=e.ariaLabelledByForHandle,le=e.ariaRequired,ue=e.ariaValueTextFormatterForHandle,fe=Pt.useRef(null),he=Pt.useRef(null),ye=Pt.useMemo(function(){return V?M?"ttb":"btt":M?"rtl":"ltr"},[M,V]),we=HE(R),ce=B(we,5),ae=ce[0],Re=ce[1],Me=ce[2],Be=ce[3],Ie=ce[4],Oe=Pt.useMemo(function(){return isFinite(g)?g:0},[g]),be=Pt.useMemo(function(){return isFinite(x)?x:100},[x]),Ve=Pt.useMemo(function(){return b!==null&&b<=0?1:b},[b]),He=Pt.useMemo(function(){return typeof $=="boolean"?$?Ve:!1:$>=0?$:!1},[$,Ve]),$e=Pt.useMemo(function(){return Object.keys(Z||{}).map(function(ke){var xe=Z[ke],nt={value:Number(ke)};return xe&&pe(xe)==="object"&&!Pt.isValidElement(xe)&&("label"in xe||"style"in xe)?(nt.style=xe.style,nt.label=xe.label):nt.label=xe,nt}).filter(function(ke){var xe=ke.label;return xe||typeof xe=="number"}).sort(function(ke,xe){return ke.value-xe.value})},[Z]),de=VE(Oe,be,Ve,$e,W,He),me=B(de,2),ze=me[0],Ce=me[1],Ue=zt(C,{value:w}),Ye=B(Ue,2),gt=Ye[0],Tt=Ye[1],ht=Pt.useMemo(function(){var ke=gt==null?[]:Array.isArray(gt)?gt:[gt],xe=B(ke,1),nt=xe[0],It=nt===void 0?Oe:nt,$t=gt===null?[]:[It];if(ae){if($t=se(ke),_||gt===void 0){var mo=_>=0?_+1:2;for($t=$t.slice(0,mo);$t.length<mo;){var Dr;$t.push((Dr=$t[$t.length-1])!==null&&Dr!==void 0?Dr:Oe)}}$t.sort(function(Br,Rr){return Br-Rr})}return $t.forEach(function(Br,Rr){$t[Rr]=ze(Br)}),$t},[gt,ae,Oe,_,ze]),We=function(xe){return ae?xe:xe[0]},Pe=Et(function(ke){var xe=se(ke).sort(function(nt,It){return nt-It});O&&!Yi(xe,ht,!0)&&O(We(xe)),Tt(xe)}),tt=Et(function(ke){ke&&fe.current.hideHelp();var xe=We(ht);k?.(xe),Vt(!k,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L?.(xe)}),De=function(xe){if(!(u||!Re||ht.length<=Be)){var nt=se(ht);nt.splice(xe,1),N?.(We(nt)),Pe(nt);var It=Math.max(0,xe-1);fe.current.hideHelp(),fe.current.focus(It)}},Le=$F(he,ye,ht,Oe,be,ze,Pe,tt,Ce,Re,Be),Te=B(Le,5),Ne=Te[0],vt=Te[1],Bt=Te[2],je=Te[3],_e=Te[4],Qe=function(xe,nt){if(!u){var It=se(ht),$t=0,mo=0,Dr=be-Oe;ht.forEach(function(Wo,eo){var Eo=Math.abs(xe-Wo);Eo<=Dr&&(Dr=Eo,$t=eo),Wo<xe&&(mo=eo)});var Br=$t;Re&&Dr!==0&&(!Ie||ht.length<Ie)?(It.splice(mo+1,0,xe),Br=mo+1):It[$t]=xe,ae&&!ht.length&&_===void 0&&It.push(xe);var Rr=We(It);if(N?.(Rr),Pe(It),nt){var jr,tn;(jr=document.activeElement)===null||jr===void 0||(tn=jr.blur)===null||tn===void 0||tn.call(jr),fe.current.focus(Br),_e(nt,Br,It)}else k?.(Rr),Vt(!k,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),L?.(Rr)}},Ze=function(xe){xe.preventDefault();var nt=he.current.getBoundingClientRect(),It=nt.width,$t=nt.height,mo=nt.left,Dr=nt.top,Br=nt.bottom,Rr=nt.right,jr=xe.clientX,tn=xe.clientY,Wo;switch(ye){case"btt":Wo=(Br-tn)/$t;break;case"ttb":Wo=(tn-Dr)/$t;break;case"rtl":Wo=(Rr-jr)/It;break;default:Wo=(jr-mo)/It}var eo=Oe+Wo*(be-Oe);Qe(ze(eo),xe)},Ke=Pt.useState(null),ot=B(Ke,2),kt=ot[0],Nt=ot[1],tr=function(xe,nt){if(!u){var It=Ce(ht,xe,nt);N?.(We(ht)),Pe(It.values),Nt(It.value)}};Pt.useEffect(function(){if(kt!==null){var ke=ht.indexOf(kt);ke>=0&&fe.current.focus(ke)}Nt(null)},[kt]);var Ft=Pt.useMemo(function(){return Me&&Ve===null?!1:Me},[Me,Ve]),rr=Et(function(ke,xe){_e(ke,xe),N?.(We(ht))}),ur=Ne!==-1;Pt.useEffect(function(){if(!ur){var ke=ht.lastIndexOf(vt);fe.current.focus(ke)}},[ur]);var fr=Pt.useMemo(function(){return se(je).sort(function(ke,xe){return ke-xe})},[je]),zo=Pt.useMemo(function(){return ae?[fr[0],fr[fr.length-1]]:[Oe,fr[0]]},[fr,ae,Oe]),dr=B(zo,2),Er=dr[0],Se=dr[1];Pt.useImperativeHandle(t,function(){return{focus:function(){fe.current.focus(0)},blur:function(){var xe,nt=document,It=nt.activeElement;(xe=he.current)!==null&&xe!==void 0&&xe.contains(It)&&It?.blur()}}}),Pt.useEffect(function(){m&&fe.current.focus(0)},[]);var Ge=Pt.useMemo(function(){return{min:Oe,max:be,direction:ye,disabled:u,keyboard:d,step:Ve,included:z,includedStart:Er,includedEnd:Se,range:ae,tabIndex:ne,ariaLabelForHandle:Q,ariaLabelledByForHandle:J,ariaRequired:le,ariaValueTextFormatterForHandle:ue,styles:s||{},classNames:a||{}}},[Oe,be,ye,u,d,Ve,z,Er,Se,ae,ne,Q,J,le,ue,s,a]);return Pt.createElement(vn.Provider,{value:Ge},Pt.createElement("div",{ref:he,className:(0,UE.default)(o,n,T(T(T(T({},"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),V),"".concat(o,"-horizontal"),!V),"".concat(o,"-with-marks"),$e.length)),style:i,onMouseDown:Ze,id:l},Pt.createElement("div",{className:(0,UE.default)("".concat(o,"-rail"),a?.rail),style:P(P({},G),s?.rail)}),K!==!1&&Pt.createElement(NF,{prefixCls:o,style:H,values:ht,startPoint:U,onStartMove:Ft?rr:void 0}),Pt.createElement(_F,{prefixCls:o,marks:$e,dots:X,style:q,activeStyle:oe}),Pt.createElement(SF,{ref:fe,prefixCls:o,style:A,values:je,draggingIndex:Ne,draggingDelete:Bt,onStartMove:rr,onOffsetChange:tr,onFocus:h,onBlur:v,handleRender:ie,activeHandleRender:te,onChangeComplete:tt,onDelete:Re?De:void 0}),Pt.createElement(EF,{prefixCls:o,marks:$e,onClick:Qe})))}),AF=nG;var MF=AF;var ca=E(I()),mf=E(Ee());var LF=E(I()),iG=(0,LF.createContext)({}),kF=iG;var df=E(I()),GE=E(I());var aG=df.forwardRef((e,t)=>{let{open:r,draggingDelete:o}=e,n=(0,GE.useRef)(null),i=r&&!o,a=(0,GE.useRef)(null);function s(){ut.cancel(a.current),a.current=null}function l(){a.current=ut(()=>{var c;(c=n.current)===null||c===void 0||c.forceAlign(),a.current=null})}return df.useEffect(()=>(i?l():s(),s),[i,e.title]),df.createElement(Ha,Object.assign({ref:Fr(n,t)},e,{open:i}))}),qE=aG;var sG=e=>{let{componentCls:t,antCls:r,controlSize:o,dotSize:n,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:m,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},Qt(e)),{position:"relative",height:o,margin:`${re(a)} ${re(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${re(i)} ${re(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${re(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${re(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
inset-inline-start ${y},
|
|
inset-block-start ${y},
|
|
width ${y},
|
|
height ${y},
|
|
box-shadow ${y},
|
|
outline ${y}
|
|
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${re(v)} ${d}`,outline:`6px solid ${m}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:n,height:n,backgroundColor:e.colorBgElevated,border:`${re(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
${t}-dot
|
|
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${re(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
${t}-mark-text,
|
|
${t}-dot
|
|
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},FF=(e,t)=>{let{componentCls:r,railSize:o,handleSize:n,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",m=s(o).mul(3).sub(n).div(2).equal(),h=s(n).sub(o).div(2).equal(),v=t?{borderWidth:`${re(h)} 0`,transform:`translateY(${re(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${re(h)}`,transform:`translateX(${re(e.calc(h).mul(-1).equal())})`};return{[l]:o,[u]:s(o).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:o},[`${r}-track,${r}-tracks`]:{[u]:o},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[f]:m},[`${r}-mark`]:{insetInlineStart:0,top:0,[d]:s(o).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[d]:o,[c]:"100%",[u]:o},[`${r}-dot`]:{position:"absolute",[f]:s(o).sub(i).div(2).equal()}}},lG=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},FF(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},cG=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},FF(e,!1)),{height:"100%"})}},uG=e=>{let r=e.controlHeightLG/4,o=e.controlHeightSM/2,n=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new it(a).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:o,dotSize:8,handleLineWidth:n,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new it(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},zF=_t("Slider",e=>{let t=rt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[sG(t),lG(t),cG(t)]},uG);var pf=E(I());function Lp(){let[e,t]=pf.useState(!1),r=pf.useRef(null),o=()=>{ut.cancel(r.current)},n=i=>{o(),i?t(i):r.current=ut(()=>{t(i)})};return pf.useEffect(()=>o,[]),[e,n]}var fG=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 dG(e,t){return e||e===null?e:t||t===null?t:r=>typeof r=="number"?r.toString():""}var pG=ca.default.forwardRef((e,t)=>{let{prefixCls:r,range:o,className:n,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:d,tooltip:m={},onChangeComplete:h,classNames:v,styles:y}=e,g=fG(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:p}=e,{getPrefixCls:x,direction:S,className:b,style:w,classNames:C,styles:R,getPopupContainer:_}=Do("slider"),O=ca.default.useContext(Ur),N=s??O,{handleRender:k,direction:L}=ca.default.useContext(kF),W=(L||S)==="rtl",[D,$]=Lp(),[M,V]=Lp(),F=Object.assign({},m),{open:z,placement:U,getPopupContainer:H,prefixCls:A,formatter:G}=F,q=z??u,oe=(D||M)&&q!==!1,Z=dG(G,c),[X,ie]=Lp(),te=ae=>{h?.(ae),ie(!1)},K=(ae,Re)=>ae||(Re?W?"left":"right":"top"),Y=x("slider",r),[ne,Q,J]=zF(Y),le=(0,mf.default)(n,b,C.root,v?.root,i,{[`${Y}-rtl`]:W,[`${Y}-lock`]:X},Q,J);W&&!g.vertical&&(g.reverse=!g.reverse),ca.default.useEffect(()=>{let ae=()=>{ut(()=>{V(!1)},1)};return document.addEventListener("mouseup",ae),()=>{document.removeEventListener("mouseup",ae)}},[]);let ue=o&&!q,fe=k||((ae,Re)=>{let{index:Me}=Re,Be=ae.props;function Ie(He,$e,de){var me,ze,Ce,Ue;de&&((ze=(me=g)[He])===null||ze===void 0||ze.call(me,$e)),(Ue=(Ce=Be)[He])===null||Ue===void 0||Ue.call(Ce,$e)}let Oe=Object.assign(Object.assign({},Be),{onMouseEnter:He=>{$(!0),Ie("onMouseEnter",He)},onMouseLeave:He=>{$(!1),Ie("onMouseLeave",He)},onMouseDown:He=>{V(!0),ie(!0),Ie("onMouseDown",He)},onFocus:He=>{var $e;V(!0),($e=g.onFocus)===null||$e===void 0||$e.call(g,He),Ie("onFocus",He,!0)},onBlur:He=>{var $e;V(!1),($e=g.onBlur)===null||$e===void 0||$e.call(g,He),Ie("onBlur",He,!0)}}),be=ca.default.cloneElement(ae,Oe),Ve=(!!q||oe)&&Z!==null;return ue?be:ca.default.createElement(qE,Object.assign({},F,{prefixCls:x("tooltip",A??l),title:Z?Z(Re.value):"",open:Ve,placement:K(U??d,p),key:Me,classNames:{root:`${Y}-tooltip`},getPopupContainer:H||f||_}),be)}),he=ue?(ae,Re)=>{let Me=ca.default.cloneElement(ae,{style:Object.assign(Object.assign({},ae.props.style),{visibility:"hidden"})});return ca.default.createElement(qE,Object.assign({},F,{prefixCls:x("tooltip",A??l),title:Z?Z(Re.value):"",open:Z!==null&&oe,placement:K(U??d,p),key:"tooltip",classNames:{root:`${Y}-tooltip`},getPopupContainer:H||f||_,draggingDelete:Re.draggingDelete}),Me)}:void 0,ye=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),w),y?.root),a),we=Object.assign(Object.assign({},R.tracks),y?.tracks),ce=(0,mf.default)(C.tracks,v?.tracks);return ne(ca.default.createElement(MF,Object.assign({},g,{classNames:Object.assign({handle:(0,mf.default)(C.handle,v?.handle),rail:(0,mf.default)(C.rail,v?.rail),track:(0,mf.default)(C.track,v?.track)},ce?{tracks:ce}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},R.handle),y?.handle),rail:Object.assign(Object.assign({},R.rail),y?.rail),track:Object.assign(Object.assign({},R.track),y?.track)},Object.keys(we).length?{tracks:we}:{}),step:g.step,range:o,className:le,style:ye,disabled:N,ref:t,prefixCls:Y,handleRender:fe,activeHandleRender:he,onChangeComplete:te})))}),KE=pG;function XE(e){return["small","middle","large"].includes(e)}var A0=E(I()),VF=E(Ee());var WF=E(Ee()),YE=["wrap","nowrap","wrap-reverse"],QE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],ZE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],mG=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&YE.includes(r)}},gG=(e,t)=>{let r={};return ZE.forEach(o=>{r[`${e}-align-${o}`]=t.align===o}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},hG=(e,t)=>{let r={};return QE.forEach(o=>{r[`${e}-justify-${o}`]=t.justify===o}),r};function vG(e,t){return(0,WF.default)(Object.assign(Object.assign(Object.assign({},mG(e,t)),gG(e,t)),hG(e,t)))}var BF=vG;var yG=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},xG=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},bG=e=>{let{componentCls:t}=e,r={};return YE.forEach(o=>{r[`${t}-wrap-${o}`]={flexWrap:o}}),r},SG=e=>{let{componentCls:t}=e,r={};return ZE.forEach(o=>{r[`${t}-align-${o}`]={alignItems:o}}),r},CG=e=>{let{componentCls:t}=e,r={};return QE.forEach(o=>{r[`${t}-justify-${o}`]={justifyContent:o}}),r},wG=()=>({}),jF=_t("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:o}=e,n=rt(e,{flexGapSM:t,flexGap:r,flexGapLG:o});return[yG(n),xG(n),bG(n),SG(n),CG(n)]},wG,{resetStyle:!1});var EG=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},RG=A0.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=EG(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:m,getPrefixCls:h}=A0.default.useContext(at),v=h("flex",r),[y,g,p]=jF(v),x=c??d?.vertical,S=(0,VF.default)(n,o,d?.className,v,g,p,BF(v,e),{[`${v}-rtl`]:m==="rtl",[`${v}-gap-${s}`]:XE(s),[`${v}-vertical`]:x}),b=Object.assign(Object.assign({},d?.style),i);return a&&(b.flex=a),s&&!XE(s)&&(b.gap=s),y(A0.default.createElement(u,Object.assign({ref:t,className:S,style:b},Gr(f,["justify","wrap","align"])),l))}),Xa=RG;var xf=E(I());var M0=E(I());var OG={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"},HF=OG;var _G=function(t,r){return M0.createElement(mt,ee({},t,{ref:r,icon:HF}))},PG=M0.forwardRef(_G),gf=PG;var K0=E(Ee());var W0=E(Ee());function L0(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function UF(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 Qa=E(I()),vc=E(I());var ZF=E(Ee());var JE=E(bi());function ua(e,t,r,o){var n=JE.default.unstable_batchedUpdates?function(a){JE.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 Co=E(I());var kp=E(Ee());var fo=E(I()),qF=E(I());var GF=E(I()),fa=GF.createContext(null);var TG=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,h=t.scale,v=t.minScale,y=t.maxScale,g=t.closeIcon,p=t.onActive,x=t.onClose,S=t.onZoomIn,b=t.onZoomOut,w=t.onRotateRight,C=t.onRotateLeft,R=t.onFlipX,_=t.onFlipY,O=t.onReset,N=t.toolbarRender,k=t.zIndex,L=t.image,j=(0,qF.useContext)(fa),W=s.rotateLeft,D=s.rotateRight,$=s.zoomIn,M=s.zoomOut,V=s.close,F=s.left,z=s.right,U=s.flipX,H=s.flipY,A="".concat(i,"-operations-operation");fo.useEffect(function(){var J=function(ue){ue.keyCode===Fe.ESC&&x()};return r&&window.addEventListener("keydown",J),function(){window.removeEventListener("keydown",J)}},[r]);var G=function(le,ue){le.preventDefault(),le.stopPropagation(),p(ue)},q=fo.useCallback(function(J){var le=J.type,ue=J.disabled,fe=J.onClick,he=J.icon;return fo.createElement("div",{key:le,className:(0,kp.default)(A,"".concat(i,"-operations-operation-").concat(le),T({},"".concat(i,"-operations-operation-disabled"),!!ue)),onClick:fe},he)},[A,i]),oe=c?q({icon:F,onClick:function(le){return G(le,-1)},type:"prev",disabled:f===0}):void 0,Z=c?q({icon:z,onClick:function(le){return G(le,1)},type:"next",disabled:f===m-1}):void 0,X=q({icon:H,onClick:_,type:"flipY"}),ie=q({icon:U,onClick:R,type:"flipX"}),te=q({icon:W,onClick:C,type:"rotateLeft"}),K=q({icon:D,onClick:w,type:"rotateRight"}),Y=q({icon:M,onClick:b,type:"zoomOut",disabled:h<=v}),ne=q({icon:$,onClick:S,type:"zoomIn",disabled:h===y}),Q=fo.createElement("div",{className:"".concat(i,"-operations")},X,ie,te,K,Y,ne);return fo.createElement(ao,{visible:r,motionName:o},function(J){var le=J.className,ue=J.style;return fo.createElement(Jl,{open:!0,getContainer:n??document.body},fo.createElement("div",{className:(0,kp.default)("".concat(i,"-operations-wrapper"),le,a),style:P(P({},ue),{},{zIndex:k})},g===null?null:fo.createElement("button",{className:"".concat(i,"-close"),onClick:x},g||V),c&&fo.createElement(fo.Fragment,null,fo.createElement("div",{className:(0,kp.default)("".concat(i,"-switch-left"),T({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:function(he){return G(he,-1)}},F),fo.createElement("div",{className:(0,kp.default)("".concat(i,"-switch-right"),T({},"".concat(i,"-switch-right-disabled"),f===m-1)),onClick:function(he){return G(he,1)}},z)),fo.createElement("div",{className:"".concat(i,"-footer")},u&&fo.createElement("div",{className:"".concat(i,"-progress")},l?l(f+1,m):"".concat(f+1," / ").concat(m)),N?N(Q,P(P({icons:{prevIcon:oe,nextIcon:Z,flipYIcon:X,flipXIcon:ie,rotateLeftIcon:te,rotateRightIcon:K,zoomOutIcon:Y,zoomInIcon:ne},actions:{onActive:p,onFlipY:_,onFlipX:R,onRotateLeft:C,onRotateRight:w,onZoomOut:b,onZoomIn:S,onReset:O,onClose:x},transform:d},j?{current:f,total:m}:{}),{},{image:L})):Q)))})},KF=TG;var Fp=E(I()),k0={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function eR(e,t,r,o){var n=(0,Fp.useRef)(null),i=(0,Fp.useRef)([]),a=(0,Fp.useState)(k0),s=B(a,2),l=s[0],c=s[1],u=function(h){c(k0),Yi(k0,l)||o?.({transform:k0,action:h})},f=function(h,v){n.current===null&&(i.current=[],n.current=ut(function(){c(function(y){var g=y;return i.current.forEach(function(p){g=P(P({},g),p)}),n.current=null,o?.({transform:g,action:v}),g})})),i.current.push(P(P({},l),h))},d=function(h,v,y,g,p){var x=e.current,S=x.width,b=x.height,w=x.offsetWidth,C=x.offsetHeight,R=x.offsetLeft,_=x.offsetTop,O=h,N=l.scale*h;N>r?(N=r,O=r/l.scale):N<t&&(N=p?N:t,O=N/l.scale);var k=y??innerWidth/2,L=g??innerHeight/2,j=O-1,W=j*S*.5,D=j*b*.5,$=j*(k-l.x-R),M=j*(L-l.y-_),V=l.x-($-W),F=l.y-(M-D);if(h<1&&N===1){var z=w*N,U=C*N,H=L0(),A=H.width,G=H.height;z<=A&&U<=G&&(V=0,F=0)}f({x:V,y:F,scale:N},v)};return{transform:l,resetTransform:u,updateTransform:f,dispatchZoomChange:d}}var hf=E(I());function XF(e,t,r,o){var n=t+r,i=(r-o)/2;if(r>o){if(t>0)return T({},e,i);if(t<0&&n<o)return T({},e,-i)}else if(t<0||n>o)return T({},e,t<0?i:-i);return{}}function zp(e,t,r,o){var n=L0(),i=n.width,a=n.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=P(P({},XF("x",r,e,i)),XF("y",o,t,a))),s}var il=1,YF=1;function tR(e,t,r,o,n,i,a){var s=n.rotate,l=n.scale,c=n.x,u=n.y,f=(0,hf.useState)(!1),d=B(f,2),m=d[0],h=d[1],v=(0,hf.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(b){!t||b.button!==0||(b.preventDefault(),b.stopPropagation(),v.current={diffX:b.pageX-c,diffY:b.pageY-u,transformX:c,transformY:u},h(!0))},g=function(b){r&&m&&i({x:b.pageX-v.current.diffX,y:b.pageY-v.current.diffY},"move")},p=function(){if(r&&m){h(!1);var b=v.current,w=b.transformX,C=b.transformY,R=c!==w&&u!==C;if(!R)return;var _=e.current.offsetWidth*l,O=e.current.offsetHeight*l,N=e.current.getBoundingClientRect(),k=N.left,L=N.top,j=s%180!==0,W=zp(j?O:_,j?_:O,k,L);W&&i(P({},W),"dragRebound")}},x=function(b){if(!(!r||b.deltaY==0)){var w=Math.abs(b.deltaY/100),C=Math.min(w,YF),R=il+C*o;b.deltaY>0&&(R=il/R),a(R,"wheel",b.clientX,b.clientY)}};return(0,hf.useEffect)(function(){var S,b,w,C;if(t){w=ua(window,"mouseup",p,!1),C=ua(window,"mousemove",g,!1);try{window.top!==window.self&&(S=ua(window.top,"mouseup",p,!1),b=ua(window.top,"mousemove",g,!1))}catch(R){Al(!1,"[rc-image] ".concat(R))}}return function(){var R,_,O,N;(R=w)===null||R===void 0||R.remove(),(_=C)===null||_===void 0||_.remove(),(O=S)===null||O===void 0||O.remove(),(N=b)===null||N===void 0||N.remove()}},[r,m,c,u,s,t]),{isMoving:m,onMouseDown:y,onMouseMove:g,onMouseUp:p,onWheel:x}}var gc=E(I());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 Wp(e){var t=e.src,r=e.isCustomPlaceholder,o=e.fallback,n=(0,gc.useState)(r?"loading":"normal"),i=B(n,2),a=i[0],s=i[1],l=(0,gc.useRef)(!1),c=a==="error";(0,gc.useEffect)(function(){var m=!0;return QF(t).then(function(h){!h&&m&&s("error")}),function(){m=!1}},[t]),(0,gc.useEffect)(function(){r&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(h){l.current=!1,a==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(l.current=!0,u())},d=c&&o?{src:o}:{onLoad:u,src:t};return[f,d,a]}var vf=E(I());function F0(e,t){var r=e.x-t.x,o=e.y-t.y;return Math.hypot(r,o)}function NG(e,t,r,o){var n=F0(e,r),i=F0(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 rR(e,t,r,o,n,i,a){var s=n.rotate,l=n.scale,c=n.x,u=n.y,f=(0,vf.useState)(!1),d=B(f,2),m=d[0],h=d[1],v=(0,vf.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(b){v.current=P(P({},v.current),b)},g=function(b){if(t){b.stopPropagation(),h(!0);var w=b.touches,C=w===void 0?[]:w;C.length>1?y({point1:{x:C[0].clientX,y:C[0].clientY},point2:{x:C[1].clientX,y:C[1].clientY},eventType:"touchZoom"}):y({point1:{x:C[0].clientX-c,y:C[0].clientY-u},eventType:"move"})}},p=function(b){var w=b.touches,C=w===void 0?[]:w,R=v.current,_=R.point1,O=R.point2,N=R.eventType;if(C.length>1&&N==="touchZoom"){var k={x:C[0].clientX,y:C[0].clientY},L={x:C[1].clientX,y:C[1].clientY},j=NG(_,O,k,L),W=B(j,2),D=W[0],$=W[1],M=F0(k,L)/F0(_,O);a(M,"touchZoom",D,$,!0),y({point1:k,point2:L,eventType:"touchZoom"})}else N==="move"&&(i({x:C[0].clientX-_.x,y:C[0].clientY-_.y},"move"),y({eventType:"move"}))},x=function(){if(r){if(m&&h(!1),y({eventType:"none"}),o>l)return i({x:0,y:0,scale:o},"touchZoom");var b=e.current.offsetWidth*l,w=e.current.offsetHeight*l,C=e.current.getBoundingClientRect(),R=C.left,_=C.top,O=s%180!==0,N=zp(O?w:b,O?b:w,R,_);N&&i(P({},N),"dragRebound")}};return(0,vf.useEffect)(function(){var S;return r&&t&&(S=ua(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:g,onTouchMove:p,onTouchEnd:x}}var IG=["fallback","src","imgRef"],$G=["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"],DG=function(t){var r=t.fallback,o=t.src,n=t.imgRef,i=Ae(t,IG),a=Wp({src:o,fallback:r}),s=B(a,2),l=s[0],c=s[1];return Co.default.createElement("img",ee({ref:function(f){n.current=f,l(f)}},i,c))},AG=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,h=t.closeIcon,v=t.getContainer,y=t.current,g=y===void 0?0:y,p=t.count,x=p===void 0?1:p,S=t.countRender,b=t.scaleStep,w=b===void 0?.5:b,C=t.minScale,R=C===void 0?1:C,_=t.maxScale,O=_===void 0?50:_,N=t.transitionName,k=N===void 0?"zoom":N,L=t.maskTransitionName,j=L===void 0?"fade":L,W=t.imageRender,D=t.imgCommonProps,$=t.toolbarRender,M=t.onTransform,V=t.onChange,F=Ae(t,$G),z=(0,Co.useRef)(),U=(0,Co.useContext)(fa),H=U&&x>1,A=U&&x>=1,G=(0,Co.useState)(!0),q=B(G,2),oe=q[0],Z=q[1],X=eR(z,R,O,M),ie=X.transform,te=X.resetTransform,K=X.updateTransform,Y=X.dispatchZoomChange,ne=tR(z,l,u,w,ie,K,Y),Q=ne.isMoving,J=ne.onMouseDown,le=ne.onWheel,ue=rR(z,l,u,R,ie,K,Y),fe=ue.isTouching,he=ue.onTouchStart,ye=ue.onTouchMove,we=ue.onTouchEnd,ce=ie.rotate,ae=ie.scale,Re=(0,ZF.default)(T({},"".concat(r,"-moving"),Q));(0,Co.useEffect)(function(){oe||Z(!0)},[oe]);var Me=function(){te("close")},Be=function(){Y(il+w,"zoomIn")},Ie=function(){Y(il/(il+w),"zoomOut")},Oe=function(){K({rotate:ce+90},"rotateRight")},be=function(){K({rotate:ce-90},"rotateLeft")},Ve=function(){K({flipX:!ie.flipX},"flipX")},He=function(){K({flipY:!ie.flipY},"flipY")},$e=function(){te("reset")},de=function(gt){var Tt=g+gt;!Number.isInteger(Tt)||Tt<0||Tt>x-1||(Z(!1),te(gt<0?"prev":"next"),V?.(Tt,g))},me=function(gt){!u||!H||(gt.keyCode===Fe.LEFT?de(-1):gt.keyCode===Fe.RIGHT&&de(1))},ze=function(gt){u&&(ae!==1?K({x:0,y:0,scale:1},"doubleClick"):Y(il+w,"doubleClick",gt.clientX,gt.clientY))};(0,Co.useEffect)(function(){var Ye=ua(window,"keydown",me,!1);return function(){Ye.remove()}},[u,H,g]);var Ce=Co.default.createElement(DG,ee({},D,{width:t.width,height:t.height,imgRef:z,className:"".concat(r,"-img"),alt:n,style:{transform:"translate3d(".concat(ie.x,"px, ").concat(ie.y,"px, 0) scale3d(").concat(ie.flipX?"-":"").concat(ae,", ").concat(ie.flipY?"-":"").concat(ae,", 1) rotate(").concat(ce,"deg)"),transitionDuration:(!oe||fe)&&"0s"},fallback:a,src:o,onWheel:le,onMouseDown:J,onDoubleClick:ze,onTouchStart:he,onTouchMove:ye,onTouchEnd:we,onTouchCancel:we})),Ue=P({url:o,alt:n},i);return Co.default.createElement(Co.default.Fragment,null,Co.default.createElement(RA,ee({transitionName:k,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:r,onClose:c,visible:u,classNames:{wrapper:Re},rootClassName:m,getContainer:v},F,{afterClose:Me}),Co.default.createElement("div",{className:"".concat(r,"-img-wrapper")},W?W(Ce,P({transform:ie,image:Ue},U?{current:g}:{})):Ce)),Co.default.createElement(KF,{visible:u,transform:ie,maskTransitionName:j,closeIcon:h,getContainer:v,prefixCls:r,rootClassName:m,icons:d,countRender:S,showSwitch:H,showProgress:A,current:g,count:x,scale:ae,minScale:R,maxScale:O,toolbarRender:$,onActive:de,onZoomIn:Be,onZoomOut:Ie,onRotateRight:Oe,onRotateLeft:be,onFlipX:Ve,onFlipY:He,onClose:c,onReset:$e,zIndex:F.zIndex!==void 0?F.zIndex+1:void 0,image:Ue}))},z0=AG;var Ya=E(I()),nR=E(I());var yf=E(I());var Bp=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function oR(e){var t=yf.useState({}),r=B(t,2),o=r[0],n=r[1],i=yf.useCallback(function(s,l){return n(function(c){return P(P({},c),{},T({},s,l))}),function(){n(function(c){var u=P({},c);return delete u[s],u})}},[]),a=yf.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(se(Bp)).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 MG=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],LG=["src"],kG=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=pe(c)==="object"?c:{},d=f.visible,m=f.onVisibleChange,h=f.getContainer,v=f.current,y=f.movable,g=f.minScale,p=f.maxScale,x=f.countRender,S=f.closeIcon,b=f.onChange,w=f.onTransform,C=f.toolbarRender,R=f.imageRender,_=Ae(f,MG),O=oR(l),N=B(O,3),k=N[0],L=N[1],j=N[2],W=zt(0,{value:v}),D=B(W,2),$=D[0],M=D[1],V=(0,nR.useState)(!1),F=B(V,2),z=F[0],U=F[1],H=((r=k[$])===null||r===void 0?void 0:r.data)||{},A=H.src,G=Ae(H,LG),q=zt(!!d,{value:d,onChange:function(fe,he){m?.(fe,he,$)}}),oe=B(q,2),Z=oe[0],X=oe[1],ie=(0,nR.useState)(null),te=B(ie,2),K=te[0],Y=te[1],ne=Ya.useCallback(function(ue,fe,he,ye){var we=j?k.findIndex(function(ce){return ce.data.src===fe}):k.findIndex(function(ce){return ce.id===ue});M(we<0?0:we),X(!0),Y({x:he,y:ye}),U(!0)},[k,j]);Ya.useEffect(function(){Z?z||M(0):U(!1)},[Z]);var Q=function(fe,he){M(fe),b?.(fe,he)},J=function(){X(!1),Y(null)},le=Ya.useMemo(function(){return{register:L,onPreview:ne}},[L,ne]);return Ya.createElement(fa.Provider,{value:le},i,Ya.createElement(z0,ee({"aria-hidden":!Z,movable:y,visible:Z,prefixCls:n,closeIcon:S,onClose:J,mousePosition:K,imgCommonProps:G,src:A,fallback:u,icons:s,minScale:g,maxScale:p,getContainer:h,current:$,count:k.length,countRender:x,onTransform:w,toolbarRender:C,imageRender:R,onChange:Q},_)))},JF=kG;var hc=E(I());var e3=0;function iR(e,t){var r=hc.useState(function(){return e3+=1,String(e3)}),o=B(r,1),n=o[0],i=hc.useContext(fa),a={data:t,canPreview:e};return hc.useEffect(function(){if(i)return i.register(n,a)},[]),hc.useEffect(function(){i&&i.register(n,a)},[e,t]),n}var FG=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],zG=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],t3=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,h=t.preview,v=h===void 0?!0:h,y=t.className,g=t.onClick,p=t.onError,x=t.wrapperClassName,S=t.wrapperStyle,b=t.rootClassName,w=Ae(t,FG),C=c&&c!==!0,R=pe(v)==="object"?v:{},_=R.src,O=R.visible,N=O===void 0?void 0:O,k=R.onVisibleChange,L=k===void 0?n:k,j=R.getContainer,W=j===void 0?void 0:j,D=R.mask,$=R.maskClassName,M=R.movable,V=R.icons,F=R.scaleStep,z=R.minScale,U=R.maxScale,H=R.imageRender,A=R.toolbarRender,G=Ae(R,zG),q=_??r,oe=zt(!!N,{value:N,onChange:L}),Z=B(oe,2),X=Z[0],ie=Z[1],te=Wp({src:r,isCustomPlaceholder:C,fallback:u}),K=B(te,3),Y=K[0],ne=K[1],Q=K[2],J=(0,vc.useState)(null),le=B(J,2),ue=le[0],fe=le[1],he=(0,vc.useContext)(fa),ye=!!v,we=function(){ie(!1),fe(null)},ce=(0,W0.default)(a,x,b,T({},"".concat(a,"-error"),Q==="error")),ae=(0,vc.useMemo)(function(){var Ie={};return Bp.forEach(function(Oe){t[Oe]!==void 0&&(Ie[Oe]=t[Oe])}),Ie},Bp.map(function(Ie){return t[Ie]})),Re=(0,vc.useMemo)(function(){return P(P({},ae),{},{src:q})},[q,ae]),Me=iR(ye,Re),Be=function(Oe){var be=UF(Oe.target),Ve=be.left,He=be.top;he?he.onPreview(Me,q,Ve,He):(fe({x:Ve,y:He}),ie(!0)),g?.(Oe)};return Qa.createElement(Qa.Fragment,null,Qa.createElement("div",ee({},w,{className:ce,onClick:ye?Be:g,style:P({width:f,height:d},S)}),Qa.createElement("img",ee({},ae,{className:(0,W0.default)("".concat(a,"-img"),T({},"".concat(a,"-img-placeholder"),c===!0),y),style:P({height:d},m),ref:Y},ne,{width:f,height:d,onError:p})),Q==="loading"&&Qa.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),D&&ye&&Qa.createElement("div",{className:(0,W0.default)("".concat(a,"-mask"),$),style:{display:m?.display==="none"?"none":void 0}},D)),!he&&ye&&Qa.createElement(z0,ee({"aria-hidden":!X,visible:X,prefixCls:l,onClose:we,mousePosition:ue,src:q,alt:o,imageInfo:{width:f,height:d},fallback:u,getContainer:W,icons:V,movable:M,scaleStep:F,minScale:z,maxScale:U,rootClassName:b,imageRender:H,imgCommonProps:ae,toolbarRender:A},G)))};t3.PreviewGroup=JF;var r3=t3;var B0=r3;var Jo=E(I());var j0=E(I());var WG={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"},o3=WG;var BG=function(t,r){return j0.createElement(mt,ee({},t,{ref:r,icon:o3}))},jG=j0.forwardRef(BG),n3=jG;var V0=E(I());var VG={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"},i3=VG;var HG=function(t,r){return V0.createElement(mt,ee({},t,{ref:r,icon:i3}))},UG=V0.forwardRef(HG),a3=UG;var H0=E(I());var GG={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"},s3=GG;var qG=function(t,r){return H0.createElement(mt,ee({},t,{ref:r,icon:s3}))},KG=H0.forwardRef(qG),aR=KG;var U0=E(I());var XG={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"},l3=XG;var YG=function(t,r){return U0.createElement(mt,ee({},t,{ref:r,icon:l3}))},QG=U0.forwardRef(YG),c3=QG;var G0=E(I());var ZG={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"},u3=ZG;var JG=function(t,r){return G0.createElement(mt,ee({},t,{ref:r,icon:u3}))},eq=G0.forwardRef(JG),f3=eq;var d3=E(Ee());var sR=e=>({position:e||"absolute",inset:0}),tq=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 it("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ti),{padding:`0 ${re(o)}`,[t]:{marginInlineEnd:n,svg:{verticalAlign:"baseline"}}})}},rq=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 it(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 ${re(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}}}}},oq=e=>{let{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:o,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,s=new it(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}}},nq=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({},sR()),{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({},sR()),{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()},"&":[rq(e),oq(e)]}]},iq=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({},tq(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},sR())}}},aq=e=>{let{previewCls:t}=e;return{[`${t}-root`]:Ql(e,"zoom"),"&":Yl(e,!0)}},sq=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new it(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new it(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new it(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),q0=_t("Image",e=>{let t=`${e.componentCls}-preview`,r=rt(e,{previewCls:t,modalMaskBg:new it("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[iq(r),nq(r),P1(rt(r,{componentCls:t})),aq(r)]},sq);var lq=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},lR={rotateLeft:Jo.createElement(n3,null),rotateRight:Jo.createElement(a3,null),zoomIn:Jo.createElement(c3,null),zoomOut:Jo.createElement(f3,null),close:Jo.createElement(Fa,null),left:Jo.createElement(Nk,null),right:Jo.createElement(SD,null),flipX:Jo.createElement(aR,null),flipY:Jo.createElement(aR,{rotate:90})},cq=e=>{var{previewPrefixCls:t,preview:r}=e,o=lq(e,["previewPrefixCls","preview"]);let{getPrefixCls:n}=Jo.useContext(at),i=n("image",t),a=`${i}-preview`,s=n(),l=Mo(i),[c,u,f]=q0(i,l),[d]=js("ImagePreview",typeof r=="object"?r.zIndex:void 0),m=Jo.useMemo(()=>{var h;if(r===!1)return r;let v=typeof r=="object"?r:{},y=(0,d3.default)(u,f,l,(h=v.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},v),{transitionName:Ji(s,"zoom",v.transitionName),maskTransitionName:Ji(s,"fade",v.maskTransitionName),rootClassName:y,zIndex:d})},[r]);return c(Jo.createElement(B0.PreviewGroup,Object.assign({preview:m,previewPrefixCls:a,icons:lR},o)))},p3=cq;var m3=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},g3=e=>{let{prefixCls:t,preview:r,className:o,rootClassName:n,style:i}=e,a=m3(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,getPopupContainer:l,className:c,style:u,preview:f}=Do("image"),[d]=_i("Image"),m=s("image",t),h=s(),v=Mo(m),[y,g,p]=q0(m,v),x=(0,K0.default)(n,g,p,v),S=(0,K0.default)(o,g,c),[b]=js("ImagePreview",typeof r=="object"?r.zIndex:void 0),w=xf.useMemo(()=>{if(r===!1)return r;let R=typeof r=="object"?r:{},{getContainer:_,closeIcon:O,rootClassName:N}=R,k=m3(R,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:xf.createElement("div",{className:`${m}-mask-info`},xf.createElement(gf,null),d?.preview),icons:lR},k),{rootClassName:(0,K0.default)(x,N),getContainer:_??l,transitionName:Ji(h,"zoom",R.transitionName),maskTransitionName:Ji(h,"fade",R.maskTransitionName),zIndex:b,closeIcon:O??f?.closeIcon})},[r,d,f?.closeIcon]),C=Object.assign(Object.assign({},u),i);return y(xf.createElement(B0,Object.assign({prefixCls:m,preview:w,rootClassName:x,className:S,style:C},a)))};g3.PreviewGroup=p3;var cR=g3;var uR=E(I()),jp=E(I()),h3=E(Ee());var uq=e=>{let{getPrefixCls:t,direction:r}=(0,jp.useContext)(at),{prefixCls:o,className:n}=e,i=t("input-group",o),a=t("input"),[s,l,c]=h0(a),u=(0,h3.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,jp.useContext)(uo),d=(0,jp.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(uR.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},uR.createElement(uo.Provider,{value:d},e.children)))},v3=uq;var cr=E(I()),b3=E(Ee());var fq=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},y3=_t(["Input","OTP"],e=>{let t=rt(e,Ua(e));return[fq(t)]},Ga);var al=E(I());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},pq=al.forwardRef((e,t)=>{let{value:r,onChange:o,onActiveChange:n,index:i,mask:a}=e,s=dq(e,["value","onChange","onActiveChange","index","mask"]),l=r&&typeof a=="string"?a:r,c=h=>{o(i,h.target.value)},u=al.useRef(null);al.useImperativeHandle(t,()=>u.current);let f=()=>{ut(()=>{var h;let v=(h=u.current)===null||h===void 0?void 0:h.input;document.activeElement===v&&v&&v.select()})};return al.createElement(nl,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:h=>{let{key:v,ctrlKey:y,metaKey:g}=h;v==="ArrowLeft"?n(i-1):v==="ArrowRight"?n(i+1):v==="z"&&(y||g)&&h.preventDefault(),f()},onKeyUp:h=>{h.key==="Backspace"&&!r&&n(i-1),f()},onMouseDown:f,onMouseUp:f}))}),x3=pq;var mq=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 X0(e){return(e||"").split("")}var gq=e=>{let{index:t,prefixCls:r,separator:o}=e,n=typeof o=="function"?o(t):o;return n?cr.createElement("span",{className:`${r}-separator`},n):null},hq=cr.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:h,type:v,onInput:y,inputMode:g}=e,p=mq(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:S}=cr.useContext(at),b=x("otp",r),w=Ao(p,{aria:!0,data:!0,attr:!0}),[C,R,_]=y3(b),O=dn(A=>n??A),N=cr.useContext(uo),k=na(N.status,d),L=cr.useMemo(()=>Object.assign(Object.assign({},N),{status:k,hasFeedback:!1,feedbackIcon:null}),[N,k]),j=cr.useRef(null),W=cr.useRef({});cr.useImperativeHandle(t,()=>({focus:()=>{var A;(A=W.current[0])===null||A===void 0||A.focus()},blur:()=>{var A;for(let G=0;G<o;G+=1)(A=W.current[G])===null||A===void 0||A.blur()},nativeElement:j.current}));let D=A=>l?l(A):A,[$,M]=cr.useState(()=>X0(D(i||"")));cr.useEffect(()=>{a!==void 0&&M(X0(a))},[a]);let V=Et(A=>{M(A),y&&y(A),s&&A.length===o&&A.every(G=>G)&&A.some((G,q)=>$[q]!==G)&&s(A.join(""))}),F=Et((A,G)=>{let q=se($);for(let Z=0;Z<A;Z+=1)q[Z]||(q[Z]="");G.length<=1?q[A]=G:q=q.slice(0,A).concat(X0(G)),q=q.slice(0,o);for(let Z=q.length-1;Z>=0&&!q[Z];Z-=1)q.pop();let oe=D(q.map(Z=>Z||" ").join(""));return q=X0(oe).map((Z,X)=>Z===" "&&!q[X]?q[X]:Z),q}),z=(A,G)=>{var q;let oe=F(A,G),Z=Math.min(A+G.length,o-1);Z!==A&&oe[A]!==void 0&&((q=W.current[Z])===null||q===void 0||q.focus()),V(oe)},U=A=>{var G;(G=W.current[A])===null||G===void 0||G.focus()},H={variant:u,disabled:f,status:k,mask:h,type:v,inputMode:g};return C(cr.createElement("div",Object.assign({},w,{ref:j,className:(0,b3.default)(b,{[`${b}-sm`]:O==="small",[`${b}-lg`]:O==="large",[`${b}-rtl`]:S==="rtl"},_,R)}),cr.createElement(uo.Provider,{value:L},Array.from({length:o}).map((A,G)=>{let q=`otp-${G}`,oe=$[G]||"";return cr.createElement(cr.Fragment,{key:q},cr.createElement(x3,Object.assign({ref:Z=>{W.current[G]=Z},index:G,size:O,htmlSize:1,className:`${b}-input`,onChange:z,value:oe,onActiveChange:U,autoFocus:G===0&&m},H)),G<o-1&&cr.createElement(gq,{separator:c,index:G,prefixCls:b}))}))))}),S3=hq;var ko=E(I()),Q0=E(I());var Y0=E(I());var vq={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"},C3=vq;var yq=function(t,r){return Y0.createElement(mt,ee({},t,{ref:r,icon:C3}))},xq=Y0.forwardRef(yq),w3=xq;var E3=E(Ee());var bq=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},Sq=e=>e?ko.createElement(gf,null):ko.createElement(w3,null),Cq={click:"onClick",hover:"onMouseOver"},wq=ko.forwardRef((e,t)=>{let{disabled:r,action:o="click",visibilityToggle:n=!0,iconRender:i=Sq}=e,a=ko.useContext(Ur),s=r??a,l=typeof n=="object"&&n.visible!==void 0,[c,u]=(0,Q0.useState)(()=>l?n.visible:!1),f=(0,Q0.useRef)(null);ko.useEffect(()=>{l&&u(n.visible)},[l,n]);let d=Mp(f),m=()=>{var O;if(s)return;c&&d();let N=!c;u(N),typeof n=="object"&&((O=n.onVisibleChange)===null||O===void 0||O.call(n,N))},h=O=>{let N=Cq[o]||"",k=i(c),L={[N]:m,className:`${O}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return ko.cloneElement(ko.isValidElement(k)?k:ko.createElement("span",null,k),L)},{className:v,prefixCls:y,inputPrefixCls:g,size:p}=e,x=bq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=ko.useContext(at),b=S("input",g),w=S("input-password",y),C=n&&h(w),R=(0,E3.default)(w,v,{[`${w}-${p}`]:!!p}),_=Object.assign(Object.assign({},Gr(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:b,suffix:C});return p&&(_.size=p),ko.createElement(nl,Object.assign({ref:Fr(t,f)},_))}),R3=wq;var Mi=E(I());var O3=E(Ee());var Eq=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},Rq=Mi.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:h}=e,v=Eq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:g}=Mi.useContext(at),p=Mi.useRef(!1),x=y("input-search",r),S=y("input",o),{compactSize:b}=Zn(x,g),w=dn(z=>{var U;return(U=i??b)!==null&&U!==void 0?U:z}),C=Mi.useRef(null),R=z=>{z?.target&&z.type==="click"&&f&&f(z.target.value,z,{source:"clear"}),d?.(z)},_=z=>{var U;document.activeElement===((U=C.current)===null||U===void 0?void 0:U.input)&&z.preventDefault()},O=z=>{var U,H;f&&f((H=(U=C.current)===null||U===void 0?void 0:U.input)===null||H===void 0?void 0:H.value,z,{source:"input"})},N=z=>{p.current||c||O(z)},k=typeof s=="boolean"?Mi.createElement(t0,null):null,L=`${x}-button`,j,W=s||{},D=W.type&&W.type.__ANT_BUTTON===!0;D||W.type==="button"?j=Qn(W,Object.assign({onMouseDown:_,onClick:z=>{var U,H;(H=(U=W?.props)===null||U===void 0?void 0:U.onClick)===null||H===void 0||H.call(U,z),O(z)},key:"enterButton"},D?{className:L,size:w}:{})):j=Mi.createElement(cp,{className:L,type:s?"primary":void 0,size:w,disabled:u,key:"enterButton",onMouseDown:_,onClick:O,loading:c,icon:k},s),l&&(j=[j,Qn(l,{key:"addonAfter"})]);let $=(0,O3.default)(x,{[`${x}-rtl`]:g==="rtl",[`${x}-${w}`]:!!w,[`${x}-with-button`]:!!s},n),M=Object.assign(Object.assign({},v),{className:$,prefixCls:S,type:"search"}),V=z=>{p.current=!0,m?.(z)},F=z=>{p.current=!1,h?.(z)};return Mi.createElement(nl,Object.assign({ref:Fr(C,t),onPressEnter:N},M,{size:w,onCompositionStart:V,onCompositionEnd:F,addonAfter:j,suffix:a,onChange:R,disabled:u}))}),_3=Rq;var Ln=E(I()),$3=E(I()),Hp=E(Ee());var Vp=E(Ee());var Zr=E(I());var P3=E(Ee());var wo=E(I());var Oq=`
|
|
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;
|
|
`,_q=["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"],fR={},Mn;function Pq(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&&fR[r])return fR[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=_q.map(function(c){return"".concat(c,":").concat(o.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:n};return t&&r&&(fR[r]=l),l}function dR(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;Mn||(Mn=document.createElement("textarea"),Mn.setAttribute("tab-index","-1"),Mn.setAttribute("aria-hidden","true"),Mn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Mn)),e.getAttribute("wrap")?Mn.setAttribute("wrap",e.getAttribute("wrap")):Mn.removeAttribute("wrap");var n=Pq(e,t),i=n.paddingSize,a=n.borderSize,s=n.boxSizing,l=n.sizingStyle;Mn.setAttribute("style","".concat(l,";").concat(Oq)),Mn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=Mn.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),r!==null||o!==null){Mn.value=" ";var m=Mn.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 h={height:d,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var Tq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pR=0,mR=1,gR=2,Nq=wo.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=Ae(r,Tq),h=zt(n,{value:i,postState:function(G){return G??""}}),v=B(h,2),y=v[0],g=v[1],p=function(G){g(G.target.value),f?.(G)},x=wo.useRef();wo.useImperativeHandle(t,function(){return{textArea:x.current}});var S=wo.useMemo(function(){return a&&pe(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),b=B(S,2),w=b[0],C=b[1],R=!!a,_=function(){try{if(document.activeElement===x.current){var G=x.current,q=G.selectionStart,oe=G.selectionEnd,Z=G.scrollTop;x.current.setSelectionRange(q,oe),x.current.scrollTop=Z}}catch{}},O=wo.useState(gR),N=B(O,2),k=N[0],L=N[1],j=wo.useState(),W=B(j,2),D=W[0],$=W[1],M=function(){L(pR)};yt(function(){R&&M()},[i,w,C,R]),yt(function(){if(k===pR)L(mR);else if(k===mR){var A=dR(x.current,!1,w,C);L(gR),$(A)}else _()},[k]);var V=wo.useRef(),F=function(){ut.cancel(V.current)},z=function(G){k===gR&&(s?.(G),a&&(F(),V.current=ut(function(){M()})))};wo.useEffect(function(){return F},[]);var U=R?D:null,H=P(P({},c),U);return(k===pR||k===mR)&&(H.overflowY="hidden",H.overflowX="hidden"),wo.createElement(cn,{onResize:z,disabled:!(a||s)},wo.createElement("textarea",ee({},m,{ref:x,style:H,className:(0,P3.default)(o,l,T({},"".concat(o,"-disabled"),u)),disabled:u,value:y,onChange:p})))}),hR=Nq;var Iq=["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"],$q=Zr.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,h=m===void 0?"rc-textarea":m,v=e.showCount,y=e.count,g=e.className,p=e.style,x=e.disabled,S=e.hidden,b=e.classNames,w=e.styles,C=e.onResize,R=e.onClear,_=e.onPressEnter,O=e.readOnly,N=e.autoSize,k=e.onKeyDown,L=Ae(e,Iq),j=zt(o,{value:n,defaultValue:o}),W=B(j,2),D=W[0],$=W[1],M=D==null?"":String(D),V=Zr.default.useState(!1),F=B(V,2),z=F[0],U=F[1],H=Zr.default.useRef(!1),A=Zr.default.useState(null),G=B(A,2),q=G[0],oe=G[1],Z=(0,Zr.useRef)(null),X=(0,Zr.useRef)(null),ie=function(){var de;return(de=X.current)===null||de===void 0?void 0:de.textArea},te=function(){ie().focus()};(0,Zr.useImperativeHandle)(t,function(){var $e;return{resizableTextArea:X.current,focus:te,blur:function(){ie().blur()},nativeElement:(($e=Z.current)===null||$e===void 0?void 0:$e.nativeElement)||ie()}}),(0,Zr.useEffect)(function(){U(function($e){return!x&&$e})},[x]);var K=Zr.default.useState(null),Y=B(K,2),ne=Y[0],Q=Y[1];Zr.default.useEffect(function(){if(ne){var $e;($e=ie()).setSelectionRange.apply($e,se(ne))}},[ne]);var J=Ap(y,v),le=(r=J.max)!==null&&r!==void 0?r:c,ue=Number(le)>0,fe=J.strategy(M),he=!!le&&fe>le,ye=function(de,me){var ze=me;!H.current&&J.exceedFormatter&&J.max&&J.strategy(me)>J.max&&(ze=J.exceedFormatter(me,{max:J.max}),me!==ze&&Q([ie().selectionStart||0,ie().selectionEnd||0])),$(ze),cf(de.currentTarget,de,s,ze)},we=function(de){H.current=!0,u?.(de)},ce=function(de){H.current=!1,ye(de,de.currentTarget.value),f?.(de)},ae=function(de){ye(de,de.target.value)},Re=function(de){de.key==="Enter"&&_&&_(de),k?.(de)},Me=function(de){U(!0),i?.(de)},Be=function(de){U(!1),a?.(de)},Ie=function(de){$(""),te(),cf(ie(),de,s)},Oe=d,be;J.show&&(J.showFormatter?be=J.showFormatter({value:M,count:fe,maxLength:le}):be="".concat(fe).concat(ue?" / ".concat(le):""),Oe=Zr.default.createElement(Zr.default.Fragment,null,Oe,Zr.default.createElement("span",{className:(0,Vp.default)("".concat(h,"-data-count"),b?.count),style:w?.count},be)));var Ve=function(de){var me;C?.(de),(me=ie())!==null&&me!==void 0&&me.style.height&&oe(!0)},He=!N&&!v&&!l;return Zr.default.createElement(fc,{ref:Z,value:M,allowClear:l,handleReset:Ie,suffix:Oe,prefixCls:h,classNames:P(P({},b),{},{affixWrapper:(0,Vp.default)(b?.affixWrapper,T(T({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:z,className:(0,Vp.default)(g,he&&"".concat(h,"-out-of-range")),style:P(P({},p),q&&!He?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof be=="string"?be:void 0}},hidden:S,readOnly:O,onClear:R},Zr.default.createElement(hR,ee({},L,{autoSize:N,maxLength:c,onKeyDown:Re,onChange:ae,onFocus:Me,onBlur:Be,onCompositionStart:we,onCompositionEnd:ce,className:(0,Vp.default)(b?.textarea),style:P(P({},w?.textarea),{},{resize:p?.resize}),disabled:x,prefixCls:h,onResize:Ve,ref:X,readOnly:O})))}),T3=$q;var N3=T3;var Dq=e=>{let{componentCls:t,paddingLG:r}=e,o=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
&-allow-clear > ${t},
|
|
&-affix-wrapper${o}-has-feedback ${t}
|
|
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},I3=_t(["Input","TextArea"],e=>{let t=rt(e,Ua(e));return[Dq(t)]},Ga,{resetFont:!1});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},Mq=(0,$3.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:h,showCount:v,onMouseDown:y,onResize:g}=e,p=Aq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:S,allowClear:b,autoComplete:w,className:C,style:R,classNames:_,styles:O}=Do("textArea"),N=Ln.useContext(Ur),k=a??N,{status:L,hasFeedback:j,feedbackIcon:W}=Ln.useContext(uo),D=na(L,s),$=Ln.useRef(null);Ln.useImperativeHandle(t,()=>{var J;return{resizableTextArea:(J=$.current)===null||J===void 0?void 0:J.resizableTextArea,focus:le=>{var ue,fe;uc((fe=(ue=$.current)===null||ue===void 0?void 0:ue.resizableTextArea)===null||fe===void 0?void 0:fe.textArea,le)},blur:()=>{var le;return(le=$.current)===null||le===void 0?void 0:le.blur()}}});let M=x("input",o),V=Mo(M),[F,z,U]=g0(M,u),[H]=I3(M,V),{compactSize:A,compactItemClassnames:G}=Zn(M,S),q=dn(J=>{var le;return(le=i??A)!==null&&le!==void 0?le:J}),[oe,Z]=ol("textArea",h,n),X=_0(l??b),[ie,te]=Ln.useState(!1),[K,Y]=Ln.useState(!1),ne=J=>{te(!0),y?.(J);let le=()=>{te(!1),document.removeEventListener("mouseup",le)};document.addEventListener("mouseup",le)},Q=J=>{var le,ue;if(g?.(J),ie&&typeof getComputedStyle=="function"){let fe=(ue=(le=$.current)===null||le===void 0?void 0:le.nativeElement)===null||ue===void 0?void 0:ue.querySelector("textarea");fe&&getComputedStyle(fe).resize==="both"&&Y(!0)}};return F(H(Ln.createElement(N3,Object.assign({autoComplete:w},p,{style:Object.assign(Object.assign({},R),d),styles:Object.assign(Object.assign({},O),m),disabled:k,allowClear:X,className:(0,Hp.default)(U,V,f,u,G,C,K&&`${M}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),_),{textarea:(0,Hp.default)({[`${M}-sm`]:q==="small",[`${M}-lg`]:q==="large"},z,c?.textarea,_.textarea,ie&&`${M}-mouse-active`),variant:(0,Hp.default)({[`${M}-${oe}`]:Z},oa(M,D)),affixWrapper:(0,Hp.default)(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:S==="rtl",[`${M}-affix-wrapper-sm`]:q==="small",[`${M}-affix-wrapper-lg`]:q==="large",[`${M}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},z)}),prefixCls:M,suffix:j&&Ln.createElement("span",{className:`${M}-textarea-suffix`},W),showCount:v,ref:$,onResize:Q,onMouseDown:ne}))))}),D3=Mq;var bf=nl;bf.Group=v3;bf.Search=_3;bf.TextArea=D3;bf.Password=R3;bf.OTP=S3;var Up=bf;var Jr=E(I());var CR=E(Ee());var wf=E(I()),V3=E(Ee());var Lq=E(I()),kq=E(Ee());var Gp=E(I()),vR={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},yR=function(){var t=(0,Gp.useRef)([]),r=(0,Gp.useRef)(null);return(0,Gp.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 qp=E(I()),W3=E(Ee());var Z0=E(I());var A3=0,Fq=Yt();function zq(){var e;return Fq?(e=A3,A3+=1):e="TEST_OR_SSR",e}var M3=function(e){var t=Z0.useState(),r=B(t,2),o=r[0],n=r[1];return Z0.useEffect(function(){n("rc_progress_".concat(zq()))},[]),e||o};var ci=E(I()),L3=function(t){var r=t.bg,o=t.children;return ci.createElement("div",{style:{width:"100%",height:"100%",background:r}},o)};function k3(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 Wq=ci.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&&pe(o)==="object",m=d?"#FFF":void 0,h=u/2,v=ci.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!d)return v;var y="".concat(n,"-conic"),g=f?"".concat(180+f/2,"deg"):"0deg",p=k3(o,(360-f)/360),x=k3(o,1),S="conic-gradient(from ".concat(g,", ").concat(p.join(", "),")"),b="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return ci.createElement(ci.Fragment,null,ci.createElement("mask",{id:y},v),ci.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},ci.createElement(L3,{bg:b},ci.createElement(L3,{bg:S}))))}),F3=Wq;var Sf=100,J0=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],h=(100-n)/100*r;c==="round"&&n!==100&&(h+=u/2,h>=r&&(h=r-.01));var v=Sf/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+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 Bq=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function z3(e){var t=e??[];return Array.isArray(t)?t:[t]}var jq=function(t){var r=P(P({},vR),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,h=r.className,v=r.strokeColor,y=r.percent,g=Ae(r,Bq),p=Sf/2,x=M3(o),S="".concat(x,"-gradient"),b=p-a/2,w=Math.PI*2*b,C=c>0?90+c/2:-90,R=w*((360-c)/360),_=pe(i)==="object"?i:{count:i,gap:2},O=_.count,N=_.gap,k=z3(y),L=z3(v),j=L.find(function(z){return z&&pe(z)==="object"}),W=j&&pe(j)==="object",D=W?"butt":d,$=J0(w,R,0,100,C,c,u,f,D,a),M=yR(),V=function(){var U=0;return k.map(function(H,A){var G=L[A]||L[L.length-1],q=J0(w,R,U,H,C,c,u,G,D,a);return U+=H,qp.createElement(F3,{key:A,color:G,ptg:H,radius:b,prefixCls:n,gradientId:S,style:q,strokeLinecap:D,strokeWidth:a,gapDegree:c,ref:function(Z){M[A]=Z},size:Sf})}).reverse()},F=function(){var U=Math.round(O*(k[0]/100)),H=100/O,A=0;return new Array(O).fill(null).map(function(G,q){var oe=q<=U-1?L[0]:f,Z=oe&&pe(oe)==="object"?"url(#".concat(S,")"):void 0,X=J0(w,R,A,H,C,c,u,oe,"butt",a,N);return A+=(R-X.strokeDashoffset+N)*100/R,qp.createElement("circle",{key:q,className:"".concat(n,"-circle-path"),r:b,cx:p,cy:p,stroke:Z,strokeWidth:a,opacity:1,style:X,ref:function(te){M[q]=te}})})};return qp.createElement("svg",ee({className:(0,W3.default)("".concat(n,"-circle"),h),viewBox:"0 0 ".concat(Sf," ").concat(Sf),style:m,id:o,role:"presentation"},g),!O&&qp.createElement("circle",{className:"".concat(n,"-circle-trail"),r:b,cx:p,cy:p,stroke:f,strokeLinecap:D,strokeWidth:s||a,style:$}),O?F():V())},xR=jq;function da(e){return!e||e<0?0:e>100?100:e}function Cf(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}var B3=e=>{let{percent:t,success:r,successPercent:o}=e,n=da(Cf({success:r,successPercent:o}));return[n,da(da(t)-n)]},j3=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||$a.green,r||null]},sl=(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 Vq=3,Hq=e=>Vq/e*100,Uq=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]=sl(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max(Hq(d),6));let v={width:d,height:m,fontSize:d*.15+6},y=wf.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),g=B3(e),p=n||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=j3({success:c,strokeColor:e.strokeColor}),b=(0,V3.default)(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=wf.createElement(xR,{steps:f,percent:f?g[1]:g,strokeWidth:h,trailWidth:h,strokeColor:f?S[1]:S,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:p}),C=d<=20,R=wf.createElement("div",{className:b,style:v},w,!C&&l);return C?wf.createElement(Ha,{title:l},R):R},H3=Uq;var Ef=E(I());var q3=E(Ee());var Kp="--progress-line-stroke-color",bR="--progress-percent",U3=e=>{let t=e?"100%":"-100%";return new xt(`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}})},Gq=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(${Kp})`]},height:"100%",width:`calc(1 / var(${bR}) * 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 ${re(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:U3(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:U3(!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}}})}},qq=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"}}}},Kq=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}}}}}},Xq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Yq=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),G3=_t("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=rt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Gq(r),qq(r),Kq(r),Xq(r)]},Yq);var Qq=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},Zq=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(", ")},Jq=(e,t)=>{let{from:r=$a.blue,to:o=$a.blue,direction:n=t==="rtl"?"to left":"to right"}=e,i=Qq(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=Zq(i),l=`linear-gradient(${n}, ${s})`;return{background:l,[Kp]:l}}let a=`linear-gradient(${n}, ${r}, ${o})`;return{background:a,[Kp]:a}},eK=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,h=a&&typeof a!="string"?Jq(a,r):{[Kp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=n??[-1,i||(n==="small"?6:8)],[g,p]=sl(y,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:v},S=Object.assign(Object.assign({width:`${da(o)}%`,height:p,borderRadius:v},h),{[bR]:da(o)/100}),b=Cf(e),w={width:`${da(b)}%`,height:p,borderRadius:v,backgroundColor:f?.strokeColor},C={width:g<0?"100%":g},R=Ef.createElement("div",{className:`${t}-inner`,style:x},Ef.createElement("div",{className:(0,q3.default)(`${t}-bg`,`${t}-bg-${m}`),style:S},m==="inner"&&l),b!==void 0&&Ef.createElement("div",{className:`${t}-success-bg`,style:w})),_=m==="outer"&&d==="start",O=m==="outer"&&d==="end";return m==="outer"&&d==="center"?Ef.createElement("div",{className:`${t}-layout-bottom`},R,l):Ef.createElement("div",{className:`${t}-outer`,style:C},_&&l,R,O&&l)},K3=eK;var SR=E(I()),X3=E(Ee());var tK=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,h]=sl(d,"step",{steps:r,strokeWidth:i}),v=m/r,y=Array.from({length:r});for(let g=0;g<r;g++){let p=Array.isArray(a)?a[g]:a;y[g]=SR.createElement("div",{key:g,className:(0,X3.default)(`${l}-steps-item`,{[`${l}-steps-item-active`]:g<=u-1}),style:{backgroundColor:g<=u-1?p:s,width:v,height:h}})}return SR.createElement("div",{className:`${l}-steps-outer`},y,c)},Y3=tK;var rK=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 oK=["normal","exception","active","success"],nK=Jr.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:h={}}=e,v=rK(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:g="outer"}=h,p=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,S=Jr.useMemo(()=>{if(p){let V=typeof p=="string"?p:Object.values(p)[0];return new it(V).isLight()}return!1},[a]),b=Jr.useMemo(()=>{var V,F;let z=Cf(e);return parseInt(z!==void 0?(V=z??0)===null||V===void 0?void 0:V.toString():(F=s??0)===null||F===void 0?void 0:F.toString(),10)},[s,e.success,e.successPercent]),w=Jr.useMemo(()=>!oK.includes(f)&&b>=100?"success":f||"normal",[f,b]),{getPrefixCls:C,direction:R,progress:_}=Jr.useContext(at),O=C("progress",r),[N,k,L]=G3(O),j=u==="line",W=j&&!i,D=Jr.useMemo(()=>{if(!c)return null;let V=Cf(e),F,z=d||(H=>`${H}%`),U=j&&S&&g==="inner";return g==="inner"||d||w!=="exception"&&w!=="success"?F=z(da(s),da(V)):w==="exception"?F=j?Jr.createElement(Du,null):Jr.createElement(Fa,null):w==="success"&&(F=j?Jr.createElement(D$,null):Jr.createElement(Qy,null)),Jr.createElement("span",{className:(0,CR.default)(`${O}-text`,{[`${O}-text-bright`]:U,[`${O}-text-${y}`]:W,[`${O}-text-${g}`]:W}),title:typeof F=="string"?F:void 0},F)},[c,s,b,w,u,O,d]),$;u==="line"?$=i?Jr.createElement(Y3,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof i=="object"?i.count:i}),D):Jr.createElement(K3,Object.assign({},e,{strokeColor:p,prefixCls:O,direction:R,percentPosition:{align:y,type:g}}),D):(u==="circle"||u==="dashboard")&&($=Jr.createElement(H3,Object.assign({},e,{strokeColor:p,prefixCls:O,progressStatus:w}),D));let M=(0,CR.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&sl(l,"circle")[0]<=20,[`${O}-line`]:W,[`${O}-line-align-${y}`]:W,[`${O}-line-position-${g}`]:W,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:R==="rtl"},_?.className,o,n,k,L);return N(Jr.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_?.style),m),className:M,role:"progressbar","aria-valuenow":b,"aria-valuemin":0,"aria-valuemax":100},Gr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),$))}),Q3=nK;var Z3=Q3;var ex=E(I());var iK={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"},J3=iK;var aK=function(t,r){return ex.createElement(mt,ee({},t,{ref:r,icon:J3}))},sK=ex.forwardRef(aK),e4=sK;var tx=E(I());var lK={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"},t4=lK;var cK=function(t,r){return tx.createElement(mt,ee({},t,{ref:r,icon:t4}))},uK=tx.forwardRef(cK),r4=uK;var rx=E(I());var fK={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"},o4=fK;var dK=function(t,r){return rx.createElement(mt,ee({},t,{ref:r,icon:o4}))},pK=rx.forwardRef(dK),n4=pK;var ox=E(I());var mK={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"},i4=mK;var gK=function(t,r){return ox.createElement(mt,ee({},t,{ref:r,icon:i4}))},hK=ox.forwardRef(gK),a4=hK;var nx=E(I());var vK={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"},s4=vK;var yK=function(t,r){return nx.createElement(mt,ee({},t,{ref:r,icon:s4}))},xK=nx.forwardRef(yK),l4=xK;var ix=E(I());var bK={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"},c4=bK;var SK=function(t,r){return ix.createElement(mt,ee({},t,{ref:r,icon:c4}))},CK=ix.forwardRef(SK),wR=CK;var fx=E(I());var vr=E(I()),PR=E(bi()),cx=E(Ee());var sx=E(I());var d4=E(Ee());var Yp=E(I());var ax=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)?(Vt(!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 u4(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function ER(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),u4(t)):e.onSuccess(u4(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 EK=function(){var e=so(Lt().mark(function t(r,o){var n,i,a,s,l,c,u,f;return Lt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=so(Lt().mark(function v(y){return Lt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",new Promise(function(x){y.file(function(S){o(S)?(y.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),x(S)):x(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=so(Lt().mark(function v(y){var g,p,x,S,b;return Lt().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:g=y.createReader(),p=[];case 2:return C.next=5,new Promise(function(R){g.readEntries(R,function(){return R([])})});case 5:if(x=C.sent,S=x.length,S){C.next=9;break}return C.abrupt("break",12);case 9:for(b=0;b<S;b++)p.push(x[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(h){return i.push(h.webkitGetAsEntry())}),u=function(){var h=so(Lt().mark(function v(y,g){var p,x;return Lt().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(y){b.next=2;break}return b.abrupt("return");case 2:if(y.path=g||"",!y.isFile){b.next=10;break}return b.next=6,l(y);case 6:p=b.sent,p&&n.push(p),b.next=15;break;case 10:if(!y.isDirectory){b.next=15;break}return b.next=13,a(y);case 13:x=b.sent,i.push.apply(i,se(x));case 15:case"end":return b.stop()}},v)}));return function(y,g){return h.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)}}(),f4=EK;var RK=+new Date,OK=0;function Xp(){return"rc-upload-".concat(RK,"-").concat(++OK)}var _K=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],PK=function(e){Nr(r,e);var t=Ir(r);function r(){var o;lt(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)),T(et(o),"state",{uid:Xp()}),T(et(o),"reqs",{}),T(et(o),"fileInput",void 0),T(et(o),"_isMounted",void 0),T(et(o),"onChange",function(s){var l=o.props,c=l.accept,u=l.directory,f=s.target.files,d=se(f).filter(function(m){return!u||ax(m,c)});o.uploadFiles(d),o.reset()}),T(et(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)}}),T(et(o),"onKeyDown",function(s){s.key==="Enter"&&o.onClick(s)}),T(et(o),"onFileDrop",function(){var s=so(Lt().mark(function l(c){var u,f,d;return Lt().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u=o.props.multiple,c.preventDefault(),c.type!=="dragover"){h.next=4;break}return h.abrupt("return");case 4:if(!o.props.directory){h.next=11;break}return h.next=7,f4(Array.prototype.slice.call(c.dataTransfer.items),function(v){return ax(v,o.props.accept)});case 7:f=h.sent,o.uploadFiles(f),h.next=14;break;case 11:d=se(c.dataTransfer.files).filter(function(v){return ax(v,o.props.accept)}),u===!1&&(d=d.slice(0,1)),o.uploadFiles(d);case 14:case"end":return h.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),T(et(o),"uploadFiles",function(s){var l=se(s),c=l.map(function(u){return u.uid=Xp(),o.processFile(u,l)});Promise.all(c).then(function(u){var f=o.props.onBatchStart;f?.(u.map(function(d){var m=d.origin,h=d.parsedFile;return{file:m,parsedFile:h}})),u.filter(function(d){return d.parsedFile!==null}).forEach(function(d){o.post(d)})})}),T(et(o),"processFile",function(){var s=so(Lt().mark(function l(c,u){var f,d,m,h,v,y,g,p,x;return Lt().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:h=b.sent,b.next=22;break;case 21:h=m;case 22:if(v=o.props.data,typeof v!="function"){b.next=29;break}return b.next=26,v(c);case 26:y=b.sent,b.next=30;break;case 29:y=v;case 30:return g=(pe(d)==="object"||typeof d=="string")&&d?d:c,g instanceof File?p=g:p=new File([g],c.name,{type:c.type}),x=p,x.uid=c.uid,b.abrupt("return",{origin:c,data:y,parsedFile:x,action:h});case 35:case"end":return b.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),T(et(o),"saveFileInput",function(s){o.fileInput=s}),o}return ct(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,h=u.headers,v=u.withCredentials,y=u.method,g=s.uid,p=d||ER,x={action:l,filename:m,data:a,file:c,headers:h,withCredentials:v,method:y||"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[g]},onError:function(b,w){var C=i.props.onError;C?.(b,w,c),delete i.reqs[g]}};f(s),this.reqs[g]=p(x)}}},{key:"reset",value:function(){this.setState({uid:Xp()})}},{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,h=n.styles,v=h===void 0?{}:h,y=n.multiple,g=n.accept,p=n.capture,x=n.children,S=n.directory,b=n.openFileDialogOnClick,w=n.onMouseEnter,C=n.onMouseLeave,R=n.hasControlInside,_=Ae(n,_K),O=(0,d4.default)(T(T(T({},a,!0),"".concat(a,"-disabled"),u),s,s)),N=S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=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 Yp.default.createElement(i,ee({},k,{className:O,role:R?void 0:"button",style:m}),Yp.default.createElement("input",ee({},Ao(_,{aria:!0,data:!0}),{id:f,name:d,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(j){return j.stopPropagation()},key:this.state.uid,style:P({display:"none"},v.input),className:c.input,accept:g},N,{multiple:y,onChange:this.onChange},p!=null?{capture:p}:{})),x)}}]),r}(Yp.Component),p4=PK;function RR(){}var m4=function(e){Nr(r,e);var t=Ir(r);function r(){var o;lt(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)),T(et(o),"uploader",void 0),T(et(o),"saveUploader",function(s){o.uploader=s}),o}return ct(r,[{key:"abort",value:function(n){this.uploader.abort(n)}},{key:"render",value:function(){return sx.default.createElement(p4,ee({},this.props,{ref:this.saveUploader}))}}]),r}(sx.Component);T(m4,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:RR,onError:RR,onSuccess:RR,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var g4=m4;var OR=g4;var TK=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${re(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:`${re(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 ${re(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}}}}}},h4=TK;var NK=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({},Iu()),{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({},Ti),{padding:`0 ${re(e.paddingXS)}`,lineHeight:n,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
${l}:focus-visible,
|
|
&.picture ${l}
|
|
`]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},v4=NK;var IK=e=>{let{componentCls:t}=e,r=new xt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=new xt("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`]:Yl(e)},r,o]},y4=IK;var x4=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:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Ti),{width:o,height:o,lineHeight:re(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% - ${re(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='${zs[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${zs.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},b4=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({},Iu()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${re(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% - ${re(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${re(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 ${re(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% - ${re(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% - ${re(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var $K=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},S4=$K;var DK=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"}})}},AK=e=>({actionsColor:e.colorTextDescription}),C4=_t("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:o,controlHeightLG:n,calc:i}=e,a=rt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(o).equal(),uploadPicCardSize:i(n).mul(2.55).equal()});return[DK(a),h4(a),x4(a),b4(a),v4(a),y4(a),S4(a),Jw(a)]},AK);var qt=E(I());var _R=E(Ee());function Qp(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 Zp(e,t){let r=se(t),o=r.findIndex(n=>{let{uid:i}=n;return i===e.uid});return o===-1?r.push(e):r[o]=e,r}function lx(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(o=>o[r]===e[r])[0]}function w4(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 MK=function(){let t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},E4=e=>e.indexOf("image/")===0,R4=e=>{if(e.type&&!e.thumbUrl)return E4(e.type);let t=e.thumbUrl||e.url||"",r=MK(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)},ll=200;function O4(e){return new Promise(t=>{if(!e.type||!E4(e.type)){t("");return}let r=document.createElement("canvas");r.width=ll,r.height=ll,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${ll}px; height: ${ll}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=ll,l=ll,c=0,u=0;i>a?(l=a*(ll/i),u=-(l-s)/2):(s=i*(ll/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 Wt=E(I());var cl=E(Ee());var LK=Wt.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:h,showRemoveIcon:v,showDownloadIcon:y,previewIcon:g,removeIcon:p,downloadIcon:x,extra:S,onPreview:b,onDownload:w,onClose:C}=e;var R,_;let{status:O}=s,[N,k]=Wt.useState(O);Wt.useEffect(()=>{O!=="removed"&&k(O)},[O]);let[L,j]=Wt.useState(!1);Wt.useEffect(()=>{let Y=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(Y)}},[]);let W=u(s),D=Wt.createElement("div",{className:`${r}-icon`},W);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(N==="uploading"||!s.thumbUrl&&!s.url){let Y=(0,cl.default)(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:N!=="uploading"});D=Wt.createElement("div",{className:Y},W)}else{let Y=m?.(s)?Wt.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):W,ne=(0,cl.default)(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:m&&!m(s)});D=Wt.createElement("a",{className:ne,onClick:Q=>b(s,Q),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}let $=(0,cl.default)(`${r}-list-item`,`${r}-list-item-${N}`),M=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,V=(typeof v=="function"?v(s):v)?f((typeof p=="function"?p(s):p)||Wt.createElement(e4,null),()=>C(s),r,i.removeFile,!0):null,F=(typeof y=="function"?y(s):y)&&N==="done"?f((typeof x=="function"?x(s):x)||Wt.createElement(r4,null),()=>w(s),r,i.downloadFile):null,z=a!=="picture-card"&&a!=="picture-circle"&&Wt.createElement("span",{key:"download-delete",className:(0,cl.default)(`${r}-list-item-actions`,{picture:a==="picture"})},F,V),U=typeof S=="function"?S(s):S,H=U&&Wt.createElement("span",{className:`${r}-list-item-extra`},U),A=(0,cl.default)(`${r}-list-item-name`),G=s.url?Wt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:A,title:s.name},M,{href:s.url,onClick:Y=>b(s,Y)}),s.name,H):Wt.createElement("span",{key:"view",className:A,onClick:Y=>b(s,Y),title:s.name},s.name,H),q=(typeof h=="function"?h(s):h)&&(s.url||s.thumbUrl)?Wt.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y=>b(s,Y),title:i.previewFile},typeof g=="function"?g(s):g||Wt.createElement(gf,null)):null,oe=(a==="picture-card"||a==="picture-circle")&&N!=="uploading"&&Wt.createElement("span",{className:`${r}-list-item-actions`},q,N==="done"&&F,V),{getPrefixCls:Z}=Wt.useContext(at),X=Z(),ie=Wt.createElement("div",{className:$},D,G,z,oe,L&&Wt.createElement(ao,{motionName:`${X}-fade`,visible:N==="uploading",motionDeadline:2e3},Y=>{let{className:ne}=Y,Q="percent"in s?Wt.createElement(Z3,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return Wt.createElement("div",{className:(0,cl.default)(`${r}-list-item-progress`,ne)},Q)})),te=s.response&&typeof s.response=="string"?s.response:((R=s.error)===null||R===void 0?void 0:R.statusText)||((_=s.error)===null||_===void 0?void 0:_.message)||i.uploadError,K=N==="error"?Wt.createElement(Ha,{title:te,getPopupContainer:Y=>Y.parentNode},ie):ie;return Wt.createElement("div",{className:(0,cl.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)}),_4=LK;var kK=(e,t)=>{let{listType:r="text",previewFile:o=O4,onPreview:n,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=R4,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:b=!0,itemRender:w,disabled:C}=e,R=SE(),[_,O]=qt.useState(!1),N=["picture-card","picture-circle"].includes(r);qt.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(H=>{!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",o?.(H.originFileObj).then(A=>{H.thumbUrl=A||"",R()}))})},[r,f,o]),qt.useEffect(()=>{O(!0)},[]);let k=(H,A)=>{if(n)return A?.preventDefault(),n(H)},L=H=>{typeof i=="function"?i(H):H.url&&window.open(H.url)},j=H=>{a?.(H)},W=H=>{if(l)return l(H,r);let A=H.status==="uploading";if(r.startsWith("picture")){let G=r==="picture"?qt.createElement(Kl,null):s.uploading,q=c?.(H)?qt.createElement(l4,null):qt.createElement(n4,null);return A?G:q}return A?qt.createElement(Kl,null):qt.createElement(a4,null)},D=(H,A,G,q,oe)=>{let Z={type:"text",size:"small",title:q,onClick:X=>{var ie,te;A(),qt.isValidElement(H)&&((te=(ie=H.props).onClick)===null||te===void 0||te.call(ie,X))},className:`${G}-list-item-action`};return oe&&(Z.disabled=C),qt.isValidElement(H)?qt.createElement(cp,Object.assign({},Z,{icon:Qn(H,Object.assign(Object.assign({},H.props),{onClick:()=>{}}))})):qt.createElement(cp,Object.assign({},Z),qt.createElement("span",null,H))};qt.useImperativeHandle(t,()=>({handlePreview:k,handleDownload:L}));let{getPrefixCls:$}=qt.useContext(at),M=$("upload",u),V=$(),F=(0,_R.default)(`${M}-list`,`${M}-list-${r}`),z=qt.useMemo(()=>Gr(K$(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),U=Object.assign(Object.assign({},N?{}:z),{motionDeadline:2e3,motionName:`${M}-${N?"animate-inline":"animate"}`,keys:se(f.map(H=>({key:H.uid,file:H}))),motionAppear:_});return qt.createElement("div",{className:F},qt.createElement($w,Object.assign({},U,{component:!1}),H=>{let{key:A,file:G,className:q,style:oe}=H;return qt.createElement(_4,{key:A,locale:s,prefixCls:M,className:q,style:oe,file:G,items:f,progress:x,listType:r,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:m,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,iconRender:W,actionIconRender:D,itemRender:w,onPreview:k,onDownload:L,onClose:j})}),S&&qt.createElement(ao,Object.assign({},U,{visible:b,forceRender:!0}),H=>{let{className:A,style:G}=H;return Qn(S,q=>({className:(0,_R.default)(q.className,A),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:A?"none":void 0}),q.style)}))}))},FK=qt.forwardRef(kK),P4=FK;var zK=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(o.next(u))}catch(f){a(f)}}function l(u){try{c(o.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):n(u.value).then(s,l)}c((o=o.apply(e,t||[])).next())})},Rf=`__LIST_IGNORE_${Date.now()}__`,WK=(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:h,isImageUrl:v,progress:y,prefixCls:g,className:p,type:x="select",children:S,style:b,itemRender:w,maxCount:C,data:R={},multiple:_=!1,hasControlInside:O=!0,action:N="",accept:k="",supportServerRender:L=!0,rootClassName:j}=e,W=vr.useContext(Ur),D=d??W,[$,M]=zt(o||[],{value:r,postState:de=>de??[]}),[V,F]=vr.useState("drop"),z=vr.useRef(null),U=vr.useRef(null);vr.useMemo(()=>{let de=Date.now();(r||[]).forEach((me,ze)=>{!me.uid&&!Object.isFrozen(me)&&(me.uid=`__AUTO__${de}_${ze}__`)})},[r]);let H=(de,me,ze)=>{let Ce=se(me),Ue=!1;C===1?Ce=Ce.slice(-1):C&&(Ue=Ce.length>C,Ce=Ce.slice(0,C)),(0,PR.flushSync)(()=>{M(Ce)});let Ye={file:de,fileList:Ce};ze&&(Ye.event=ze),(!Ue||de.status==="removed"||Ce.some(gt=>gt.uid===de.uid))&&(0,PR.flushSync)(()=>{c?.(Ye)})},A=(de,me)=>zK(void 0,void 0,void 0,function*(){let{beforeUpload:ze,transformFile:Ce}=e,Ue=de;if(ze){let Ye=yield ze(de,me);if(Ye===!1)return!1;if(delete de[Rf],Ye===Rf)return Object.defineProperty(de,Rf,{value:!0,configurable:!0}),!1;typeof Ye=="object"&&Ye&&(Ue=Ye)}return Ce&&(Ue=yield Ce(Ue)),Ue}),G=de=>{let me=de.filter(Ue=>!Ue.file[Rf]);if(!me.length)return;let ze=me.map(Ue=>Qp(Ue.file)),Ce=se($);ze.forEach(Ue=>{Ce=Zp(Ue,Ce)}),ze.forEach((Ue,Ye)=>{let gt=Ue;if(me[Ye].parsedFile)Ue.status="uploading";else{let{originFileObj:Tt}=Ue,ht;try{ht=new File([Tt],Tt.name,{type:Tt.type})}catch{ht=new Blob([Tt],{type:Tt.type}),ht.name=Tt.name,ht.lastModifiedDate=new Date,ht.lastModified=new Date().getTime()}ht.uid=Ue.uid,gt=ht}H(gt,Ce)})},q=(de,me,ze)=>{try{typeof de=="string"&&(de=JSON.parse(de))}catch{}if(!lx(me,$))return;let Ce=Qp(me);Ce.status="done",Ce.percent=100,Ce.response=de,Ce.xhr=ze;let Ue=Zp(Ce,$);H(Ce,Ue)},oe=(de,me)=>{if(!lx(me,$))return;let ze=Qp(me);ze.status="uploading",ze.percent=de.percent;let Ce=Zp(ze,$);H(ze,Ce,de)},Z=(de,me,ze)=>{if(!lx(ze,$))return;let Ce=Qp(ze);Ce.error=de,Ce.response=me,Ce.status="error";let Ue=Zp(Ce,$);H(Ce,Ue)},X=de=>{let me;Promise.resolve(typeof n=="function"?n(de):n).then(ze=>{var Ce;if(ze===!1)return;let Ue=w4(de,$);Ue&&(me=Object.assign(Object.assign({},de),{status:"removed"}),$?.forEach(Ye=>{let gt=me.uid!==void 0?"uid":"name";Ye[gt]===me[gt]&&!Object.isFrozen(Ye)&&(Ye.status="removed")}),(Ce=z.current)===null||Ce===void 0||Ce.abort(me),H(me,Ue))})},ie=de=>{F(de.type),de.type==="drop"&&u?.(de)};vr.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:q,onProgress:oe,onError:Z,fileList:$,upload:z.current,nativeElement:U.current}));let{getPrefixCls:te,direction:K,upload:Y}=vr.useContext(at),ne=te("upload",g),Q=Object.assign(Object.assign({onBatchStart:G,onError:Z,onProgress:oe,onSuccess:q},e),{data:R,multiple:_,action:N,accept:k,supportServerRender:L,prefixCls:ne,disabled:D,beforeUpload:A,onChange:void 0,hasControlInside:O});delete Q.className,delete Q.style,(!S||D)&&delete Q.id;let J=`${ne}-wrapper`,[le,ue,fe]=C4(ne,J),[he]=_i("Upload",Oi.Upload),{showRemoveIcon:ye,showPreviewIcon:we,showDownloadIcon:ce,removeIcon:ae,previewIcon:Re,downloadIcon:Me,extra:Be}=typeof i=="boolean"?{}:i,Ie=typeof ye>"u"?!D:ye,Oe=(de,me)=>i?vr.createElement(P4,{prefixCls:ne,listType:a,items:$,previewFile:f,onPreview:s,onDownload:l,onRemove:X,showRemoveIcon:Ie,showPreviewIcon:we,showDownloadIcon:ce,removeIcon:ae,previewIcon:Re,downloadIcon:Me,iconRender:h,extra:Be,locale:Object.assign(Object.assign({},he),m),isImageUrl:v,progress:y,appendAction:de,appendActionVisible:me,itemRender:w,disabled:D}):de,be=(0,cx.default)(J,p,j,ue,fe,Y?.className,{[`${ne}-rtl`]:K==="rtl",[`${ne}-picture-card-wrapper`]:a==="picture-card",[`${ne}-picture-circle-wrapper`]:a==="picture-circle"}),Ve=Object.assign(Object.assign({},Y?.style),b);if(x==="drag"){let de=(0,cx.default)(ue,ne,`${ne}-drag`,{[`${ne}-drag-uploading`]:$.some(me=>me.status==="uploading"),[`${ne}-drag-hover`]:V==="dragover",[`${ne}-disabled`]:D,[`${ne}-rtl`]:K==="rtl"});return le(vr.createElement("span",{className:be,ref:U},vr.createElement("div",{className:de,style:Ve,onDrop:ie,onDragOver:ie,onDragLeave:ie},vr.createElement(OR,Object.assign({},Q,{ref:z,className:`${ne}-btn`}),vr.createElement("div",{className:`${ne}-drag-container`},S))),Oe()))}let He=(0,cx.default)(ne,`${ne}-select`,{[`${ne}-disabled`]:D,[`${ne}-hidden`]:!S}),$e=vr.createElement("div",{className:He},vr.createElement(OR,Object.assign({},Q,{ref:z})));return le(a==="picture-card"||a==="picture-circle"?vr.createElement("span",{className:be,ref:U},Oe($e,!!S)):vr.createElement("span",{className:be,ref:U},$e,Oe()))},BK=vr.forwardRef(WK),ux=BK;var jK=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},VK=fx.forwardRef((e,t)=>{var{style:r,height:o,hasControlInside:n=!1}=e,i=jK(e,["style","height","hasControlInside"]);return fx.createElement(ux,Object.assign({ref:t,hasControlInside:n},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))}),T4=VK;var TR=ux;TR.Dragger=T4;TR.LIST_IGNORE=Rf;var NR=TR;var po=E(wr(),1),YK=()=>{let[e,t]=(0,D4.useState)(Je.data.useSliderForNumberWidget),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()};return(0,po.jsxs)("div",{className:"settings-container",children:[(0,po.jsx)("h2",{children:ve("SDPPP Settings/Misc")}),(0,po.jsxs)("div",{className:"settings-section",children:[(0,po.jsx)("div",{className:"settings-label",children:(0,po.jsx)("label",{children:ve("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,po.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,po.jsxs)("div",{className:"settings-section settings-row",children:[(0,po.jsx)("div",{className:"settings-label",children:(0,po.jsx)("label",{children:ve("Photoshop plugin")})}),(0,po.jsx)("div",{className:"settings-control",children:(0,po.jsx)("button",{onClick:r,className:"download-button",children:ve("Download")})})]}),(0,po.jsxs)("div",{className:"settings-section settings-row",children:[(0,po.jsx)("div",{className:"settings-label",children:(0,po.jsx)("label",{htmlFor:"maxImageSize",children:ve("use slider for number widget:")})}),(0,po.jsx)("div",{className:"settings-control",children:(0,po.jsx)(Ip,{id:"useSliderForNumberWidget",checked:e,onChange:o=>{t(o.target.checked),Je.setUseSliderForNumberWidget(o.target.checked),Oo.storeSetting("sdppp.useSliderForNumberWidget",o.target.checked)}})})]})]})},A4=YK;var U4=E(I(),1);var Jp=E(I(),1);var M4=E(I(),1);function px(e){return{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var en=E(wr(),1);function $R({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:o,onWidgetChange:n,onTitleRender:i}){let a=(0,Jp.useMemo)(()=>e.nodeIndexes.map(l=>{let c=e.nodes[l],u=(h,v,y)=>h.keepRender?v.outputType==="error"?(h.result.push((0,en.jsx)("span",{className:"list-error-label",children:t[c.id][y]})),h):(o?.(h,c,v,y),h):h,d=Object.values(e.groups).find(h=>h.nodeIDs.includes(c.id))?.color||"rgba(127, 127, 127, .4)",m=c.uiWeightSum<=8&&c.widgets.length==1&&(c.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,en.jsxs)("div",{className:"workflow-edit-field",children:[(0,en.jsx)("div",{className:"workflow-edit-field-title",title:c.title,style:{...px(m?4:12),borderColor:d},children:i?i(c.title,c):(0,en.jsx)("span",{children:c.title})}),c.widgets.reduce(u,{keepRender:!0,result:[]}).result.map((h,v)=>(0,en.jsx)(IR,{children:h},v)),r[c.id]?(0,en.jsx)("span",{className:"list-error-label",children:r[c.id]}):""]},c.id)}),[e,t,r,o,n,i]),s=(0,Jp.useMemo)(()=>Object.keys(r).filter(l=>!e.nodes[parseInt(l)]),[r,e]);return(0,en.jsxs)(en.Fragment,{children:[s.length>0&&s.map(l=>(0,en.jsx)("span",{className:"list-error-label",children:r[l]},l)),Object.keys(e.nodes).length?"":(0,en.jsx)("span",{className:"list-error-label",children:ve("no suitable node to control in this workflow")}),(0,en.jsx)("div",{className:"workflow-edit-content",children:a})]})}var IR=class extends Jp.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,en.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var yc=E(I(),1);var L4=E(I(),1);function ul(e){return(0,L4.useMemo)(()=>px(e),[e])}var fl=E(wr(),1),k4=({inputMin:e,inputMax:t,inputStep:r,name:o,value:n=0,uiWeight:i=1,extraOptions:a,onValueChange:s})=>{let l=ul(i||12),[c,u]=(0,yc.useState)(+n.toFixed(3));(0,yc.useEffect)(()=>{u(+n.toFixed(3))},[n]);let f=(0,yc.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),d=(0,yc.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,fl.jsxs)(Xa,{style:{width:"100%",...l},align:"center",children:[(0,fl.jsx)(KE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:f}),(0,fl.jsx)(O0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:f,controls:!1})]}):(0,fl.jsxs)(Xa,{style:{width:"100%",...l},align:"center",children:[o&&(0,fl.jsx)("span",{style:{flex:1},children:o}),(0,fl.jsx)(O0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:f,onBlur:d,controls:!1})]})};var em=E(wr(),1),F4=({onSelectUpdate:e,options:t,value:r,name:o,uiWeight:n})=>{let i=s=>{let l=t.indexOf(s);e(s,l)},a=ul(n||12);return(0,em.jsxs)(Xa,{style:{width:"100%",...a},align:"center",children:[o&&(0,em.jsx)("span",{style:{flex:1},children:o}),(0,em.jsx)(Tp,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:ve("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var W4=E(wr(),1),z4=({value:e,name:t,onValueChange:r,uiWeight:o})=>{let n=a=>{r(a.target.checked)},i=ul(o||12);return(0,W4.jsx)(Ip,{checked:!!e,onChange:n,style:{...i},children:t||""})};var DR=E(wr(),1),{TextArea:QK}=Up,B4=({value:e="",onValueChange:t,uiWeight:r})=>{let o=ul(r||12);return(0,DR.jsx)("div",{className:"widget-container",style:o,children:(0,DR.jsx)(QK,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var tm=E(I(),1);var mx=E(wr(),1);function j4({title:e,onTitleChange:t}){let[r,o]=(0,tm.useState)(!1),[n,i]=(0,tm.useState)(e);(0,tm.useEffect)(()=>{i(e)},[e]);let a=()=>{o(!0)};return r?(0,mx.jsx)(Up,{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,mx.jsx)(Ha,{title:ve("click to edit"),children:(0,mx.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:n})})}var Za=E(wr(),1),V4=({value:e,onValueChange:t,options:r})=>{let o=n=>{if(n.file.status==="done"){let i=n.file.response.name;t?.(i)}};return(0,Za.jsxs)(Xa,{gap:5,align:"stretch",vertical:!0,children:[(0,Za.jsxs)(Xa,{gap:5,children:[(0,Za.jsx)(Tp,{style:{flex:1},value:e,onChange:n=>{t?.(n)},options:r.map(n=>({label:n.split("/").pop(),value:n}))}),(0,Za.jsx)(NR,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:n=>({image:n}),children:(0,Za.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Za.jsx)(wR,{})," ",ve("upload")]})})]}),e&&(0,Za.jsx)(cR,{src:`./api/view?filename=${e}&type=input&subfolder=&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain"}})]})};var pa=E(wr(),1),H4=window.comfyAPI.api.api,Of=class extends U4.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},widgetTableStructure:Je.data.widgetTableStructure,widgetTableValue:Je.data.widgetTableValue,widgetTableErrors:Je.data.widgetTableErrors};eventListeners=[];unsubscribes=[];constructor(t){super(t);let r=(a,s)=>{H4.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:""}})});let o=a=>{this.setState({widgetTableStructure:a})};Je.subscribe("/widgetTableStructure",o);let n=a=>{this.setState({widgetTableValue:a})};Je.subscribe("/widgetTableValue",n);let i=a=>{this.setState({widgetTableErrors:a})};Je.subscribe("/widgetTableErrors",i),this.unsubscribes.push(()=>{Je.unsubscribe(o),Je.unsubscribe(n),Je.unsubscribe(i)})}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{H4.removeEventListener(t,r)}),this.unsubscribes.forEach(t=>t())}render(){let t={widgetTableStructure:this.state.widgetTableStructure,widgetTableValue:this.state.widgetTableValue,widgetTableErrors:this.state.widgetTableErrors,onWidgetChange:async(o,n,i,a)=>{let s=app.graph.nodes.find(l=>l.id==o);s&&_m(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,pa.jsx)(k4,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,name:i.name,value:parseFloat(this.state.widgetTableValue[n.id][a]),onValueChange:u=>{t.onWidgetChange(n.id,a,u,n)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}else{if(i.outputType==="combo")return o.result.push((0,pa.jsx)(F4,{uiWeight:i.uiWeight||12,options:i.options?.values||[],name:i.name,onSelectUpdate:s=>{t.onWidgetChange(n.id,a,s,n)},value:this.state.widgetTableValue[n.id][a],extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="toggle")return o.result.push((0,pa.jsx)(z4,{uiWeight:i.uiWeight||12,name:i.name,value:this.state.widgetTableValue[n.id][a],onValueChange:s=>{t.onWidgetChange(n.id,a,s,n)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="string"||i.outputType==="customtext"||i.outputType==="text")return o.result.push((0,pa.jsx)(B4,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[n.id][a],onValueChange:s=>{t.onWidgetChange(n.id,a,s,n)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return o.result.push((0,pa.jsx)("p",{children:ve("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return o.result.push((0,pa.jsx)(V4,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[n.id][a],options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(n.id,a,s,n)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}return!0},onTitleRender:(o,n)=>(0,pa.jsx)(j4,{title:o,onTitleChange:i=>{Ho.instance.setNodeTitle({node_id:n.id,title:i})}})},r=12;return(0,pa.jsx)(ka,{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,pa.jsx)($R,{...t})})}};var Fo=E(wr(),1),G4=document.createElement("style");G4.innerHTML=yN;document.head.appendChild(G4);function AR({onClose:e,tab:t}){let[r,o]=(0,_f.useState)("1"),[n,i]=(0,_f.useState)(0);return(0,_f.useEffect)(()=>{o(t)},[t]),(0,_f.useEffect)(()=>{let a=document.getElementById("graph-canvas"),s=0,l,c=()=>{if(s++,s%3===0&&a){let u=document.querySelector(".side-bar-panel");u&&u.style.display!=="none"?i(u.clientWidth):i(0)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}},[]),(0,Fo.jsx)(ka,{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,Fo.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:n},children:[(0,Fo.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Fo.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,Fo.jsx)("button",{onClick:()=>o("1"),className:r==="1"?"active":"",children:ve("Simplify Workflow")}),(0,Fo.jsx)("button",{onClick:()=>o("2"),className:r==="2"?"active":"",children:ve("Photoshop")})]}),(0,Fo.jsx)("span",{children:"Powered by SDPPP"}),(0,Fo.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,Fo.jsx)(Fa,{})})]}),(0,Fo.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Fo.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,Fo.jsx)(Of,{})}),(0,Fo.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,Fo.jsx)(A4,{})})]})]})})}var xc=E(wr(),1);function MR({onMaximize:e,onPhotoshop:t}){return(0,xc.jsxs)("div",{className:"sdppp-side-container",children:[(0,xc.jsxs)("div",{className:"sdppp-side-header",children:[(0,xc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,xc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,xc.jsx)(Of,{})]})}var q4=null,ZK=null,LR=null;async function zR(e){if(!q4){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=>{ZK||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,kR.createRoot)(r).render((0,FR.createElement)(MR,{onMaximize:()=>{o("1")},onPhotoshop:()=>{o("2")}}))),t.style.display="none";function o(n){q4?LR.props.tab=n:(LR=(0,FR.createElement)(AR,{onClose:()=>{t.style.display="none"},tab:n}),(0,kR.createRoot)(t).render(LR)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}Oo.addEventListener("graphChanged",e=>{let r=(Dt.workflowManager||Dt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let o=Je.data.widgetTableStructure,n=Pm(Dt.graph,r);Z4(n,o)&&Je.setWidgetTableStructure(n),Je.setWidgetTableValue(Bf(Dt.graph))});Oo.addEventListener("executed",()=>{Je.setWidgetTableValue(Bf(Dt.graph))});var K4=0,X4=!0,Y4="";function Q4(){requestAnimationFrame(Q4);let e=Dt.workflowManager||Dt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,o=t?.path||"",n=t?.isPersisted||!0;if(r===K4&&o===Y4&&n===X4)return;K4=r,Y4=o,X4=n;let i=Pm(Dt.graph,t),a=Bf(Dt.graph);Je.setWidgetTableStructure(i),Je.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=Pm(Dt.graph,t),l=Bf(Dt.graph);Z4(s,i)&&Je.setWidgetTableStructure(s),Je.setWidgetTableValue(l)},800)}requestAnimationFrame(Q4);function Z4(e,t){return e.nodeIndexes.length!==t.nodeIndexes.length||JSON.stringify(e.nodeIndexes)!==JSON.stringify(t.nodeIndexes)||JSON.stringify(e.groups)!==JSON.stringify(t.groups)||JSON.stringify(e.nodes)!==JSON.stringify(t.nodes)}async function JK(e,t,r){t.addEventListener("progress",({detail:s})=>{if(!s||isNaN(s.value/s.max))return;let l=Math.round(s.value/s.max*100);Je.setProgress(l)}),t.addEventListener("status",s=>{s.detail?.exec_info&&Je.setQueueSize(s.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:s})=>{Je.setExecutingNodeTitle(""),Je.setLastError(s.exception_message),s.node_id&&Je.setWidgetTableErrors({[s.node_id]:s.exception_message})});let o=[];t.addEventListener("execution_start",({detail:s})=>{if(Je.setLastError(""),Je.setProgress(0),Je.setWidgetTableErrors({}),Je.setExecutingNodeTitle(""),o.length){let l=o.shift();l&&n.set(s.prompt_id,l)}}),t.addEventListener("executing",s=>{let l=s.detail,c=graph.nodes.find(u=>u.id==l);c&&Je.setExecutingNodeTitle(c.title)}),t.addEventListener("execution_success",s=>{Je.setProgress(0),Je.setExecutingNodeTitle(""),yl.get(s.detail.prompt_id)&&yl.delete(s.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{Je.setProgress(0),Je.setExecutingNodeTitle("")});let n=new Map;t.addEventListener("executed",s=>{if(s.detail.output&&Array.isArray(s.detail.output.images)&&s.detail.output.images.length>0){let l=null;if(yl.get(s.detail.prompt_id)?l=yl.get(s.detail.prompt_id):l=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!l)return;e.graph.nodes.filter(c=>c.type=="Send Images To Photoshop").filter(c=>c.mode==0).length||i?.sendImage(l,{document_identify:Xt.getSpecialDocumentForPreview(),layer_identifies:s.detail.output.images.map(()=>Xt.getSpecialLayerForSend()[0]),boundaries:s.detail.output.images.map(()=>""),image_urls:s.detail.output.images.map(c=>location.origin+"/api/view?type="+c.type+"&filename="+c.filename),new_layer_name:Tm(Je.data.widgetTableStructure.widgetTablePath)})}}),zR(e);var i=new Ho;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{FO(s,l)}catch(u){rm.push(u.stack||u.message||u)}}})}var rm=[];(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 XR(),await JK(e,r,t),import("./sdppp-custom.js").then(o=>{o.default(ma)})}catch(e){rm.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),rm.length&&(console.error(rm[0]),alert(`sd-ppp init failed:
|
|
`+rm.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.
|
|
*)
|
|
|
|
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.
|
|
*)
|
|
|
|
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.
|
|
*)
|
|
|
|
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 *)
|
|
*/
|